Framing
Framing
• Network layer does not know frame size of the packets and
other restriction of the data link layer. Hence it becomes
necessary for data link layer to have some mechanism to
optimize the transmission.
Acknowledged Connection Oriented
Service
• Source and Destination establish a connection first.
• Each frame sent is numbered
– Data link layer guarantees that each frame sent is indeed
received.
– It guarantees that each frame is received only once and that all
frames are received in the correct order.
• Examples:
– Satellite channel communication,
– Long-distance telephone communication, etc.
Acknowledged Connection Oriented
Service
• Three distinct phases:
1. Connection is established by having both side initialize
variables and counters needed to keep track of which frames
have been received and which ones have not.
2. One or more frames are transmitted.
3. Finally, the connection is released – freeing up the variables,
buffers, and other resources used to maintain the connection.
Framing
• To provide service to the network layer the data link layer must
use the service provided to it by physical layer.
• Stream of data bits provided to data link layer is not
guaranteed to be without errors.
• Errors could be:
– Number of received bits does not match number of transmitted
bits (deletion or insertion)
– Bit Value
• It is up to data link layer to correct the errors if necessary.
Framing
1.Byte count.
2.Flag bytes with byte stuffing.
3.Flag bits with bit stuffing.
Byte Count Framing Method
Bit stuffing. (a) The original data. (b) The data as they appear on
the line. (c) The data as they are stored in the receiver’s memory after
destuffing.