Week 3
Week 3
Reference books
Many textbooks on Networking may be consulted
Research papers!
RFCs and Internet drafts
Related to TCP/IP suite and other protocols
Web resources
Tutorials, white papers, reports, etc.
Concerned with
Framing
Physical addressing
Network access / Access control
Error control
error notification,
error free (CRC)
Ordered delivery of frames
Flow control.
03/20/24
7
Purpose of the DLL
The Data Link Layer sits between the Network Layer and the Physical Layer.
The DLL provides an interface for the Network Layer to send information from one
machine to another.
The function of DLL is to provide services to the network layer.
Data Flow 12
13
How data is moved.
The DLL is responsible for taking the packets of information that it receives from
the Network Layer and putting them into frames for transmission.
Each frame holds the payload plus a header and a trailer (overhead).
It is the frames that are transmitted over the physical layer.
14
Packets and Frames
15
The DLL does not have to implement the acknowledged connectionless service –
the error handling can be managed at the network layer.
It is an optimization at the DLL because it requires only retransmitting a frame only
– not a whole message.
This speeds up the sending of larger messages on poor networks.
23
Framing
Frames
24
Advantages of Framing
• Synchronization recovery
– consider continuous stream of unframed bytes
• Multiplexing of link
– multiple hosts on shared medium
– simplifies multiplexing of logical channels
• Efficient error detection
– frame serves as unit of detection (valid or invalid)
– error detection overhead scales as log N
25
Problem … ?
1. Character count.
2. Flag bytes with byte stuffing
3. Starting and ending flags, with bit stuffing
4. Physical layer coding violations
28
Character Count
8 16 16 8
Beginning Ending
Header Body CRC
sequence sequence
33
We use Byte Stuffing!
Byte stuffing is the process of adding 1 extra byte whenever there is a flag or escape
character in the text.
35
Example of Byte Stuffing and Unstuffing
36
Bit Stuffing
x 1 1 1 1 1 0 x 1 1 1 1 1 0
Node A Node B
x 0 1 1 1 1 1 0 x 0 1 1 1 1 1 0
37
Bit Stuffing
Most DLL protocols use a combination of character count with another method for
extra safety. This increases the chances of catching an error.