Академический Документы
Профессиональный Документы
Культура Документы
Chapter Two
Physical & data link layer
Physical & data link layer
Application L7: Application
TCP/IP L6: Presentation OSI
L5: Session
Transport L4: Transport
Internet L3: Network
Example
• Attenuation in the transmission cable is -0.3dB/km
• Transmission signal: 2mW
• Power after 5km?
Available bandwidth?
signal levels?
C = 2 B log2 M
C = 2 B log2 M
C = B log2 (1 + SNR)
C = B log2 (1 + SNR)
o Nyquist law
Indicates the number of signal levels to reach
Shannon’s capacity limit
Channel capacity
o Example
Telephone system has a typical signal-to-
noise ratio of approx. 30dB and a B of 3kHz
• Shannon: C = 30000bps theoretical max
o Error control
o Flow control
o On a shared link: addressing
o Link management: initiate, maintain, and
terminate data exchange connections
o Multiplex link control information and data
communication on the same link
Data link services
o Connectionless, unacknowledged service
Unreliable communication
o Connectionless, acknowledged
Reliable communication
Piggybacking
• Return ACK in data packet
o Connection-oriented service
Reliable communication
Flow Control
o Stop-and-wait protocol
After transmission of a frame, the sender has
to wait before sending a new frame until an
acknowledgement frame is sent back by the
receiver
• Simplest control flow protocol
• Inefficient use of transmission medium
Flow control: stop-and-wait
Flow Control: sliding window
o With the use of multiple frames for a
single message, the stop and wait
protocol does not perform well. Only one
frame a time can be a transit
o sliding window flow protocol allowing
multiple frames to be a transit at the
same time.
Flow Control: sliding window
Flow Control: sliding window
o flow control: sliding window protocol
Error detection and correction
o Types of transmission errors
Single bit errors
Error bursts
• Errors tend to occur in group in a small period of
time (e.g. light switch is pulled on) i.s.o.
independently of each other
burst
Sent: 0100010001000011
Received: 0101110101100011
duplicate
frame 1
Error control
o Go-back-N ARQ
Combined with sliding-
window flow control
If no error, ACK as usual
If error:
• Case 1: frame error
• Case 2: frame lost
• Case 3: ACK lost
• Case 4: REJECT lost
Error control
o Go-back-N ARQ
Case 1: frame error
• Receiver sends REJECT
• Receiver discards that frame and all future frames
• Transmitter must go back and retransmit that
frame and all subsequent frames
Minimizes retransmission
Receiver must buffer
More complex logic in transmitter