Documente Academic
Documente Profesional
Documente Cultură
M application
Ht M transport
Hn Ht M network data link network
protocol
Hl Hn Ht M link link Hl Hn Ht M
physical physical frame
phys. link
adapter card
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 5
Link Layer Services - 1
• Framing, link access:
• encapsulate datagram into frame,
adding header, trailer
• implement channel access if shared
medium,
• ‘physical addresses’ used in frame
headers to identify source, dest
• different from IP address!
M application
Ht M transport
Hn Ht M network data link network
protocol
Hl Hn Ht M link link Hl Hn Ht M
physical physical frame
phys. link
adapter card
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 9
Error Detection - 1
EDC= Error Detection and Correction bits
(redundancy)
0 0
Sender: Receiver:
• treat segment contents • compute checksum of received
as sequence of 16-bit segment
integers
• check if computed checksum
• checksum: addition (1’s
complement sum) of equals checksum field value:
segment contents • NO - error detected
• sender puts checksum • YES - no error detected. But
value into UDP maybe errors nonetheless?
checksum field More later….
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 13
Checksumming:
Cyclic Redundancy Check
• View data bits, D, as a binary number
• Choose r+1 bit pattern (generator), G
• Goal: choose r CRC bits, R, such that
• <D,R> exactly divisible by G (modulo 2)
• receiver knows G, divides <D,R> by G. If non-zero
remainder: error detected!
• can detect all burst errors less than r+1 bits
• Widely used in practice (ATM, HDCL)
R = remainder[ D.2r
]
G
time
0.4
S = throughput = “goodput”
0.3
Distributed Polling:
• Time divided into slots
• Begins with N short reservation slots
• reservation slot time equal to channel
end-end propagation delay
• station with message to send posts
reservation
• reservation seen by all stations