What is the main role of the link layer?
“Move frames between adjacent nodes over a single link”
What is a frame?
“A link-layer packet containing header
What is encapsulation at the link layer?
“Wrapping the network-layer packet inside a frame”
What are common link-layer services?
“Framing
Link Access
Reliable Delivery
Error Detection and correction
Flow Control
Half-duplex and full-duplex”
What are three types of link types?
“Point-to-point, broadcast links, Multipoint”
What does ARP do?
“Maps IP addresses to MAC addresses within a LAN”
What is a MAC address?
“48-bit globally unique identifier assigned to network interfaces”
What addressing difference exists between MAC and IP?
“MAC is flat and permanent; IP is hierarchical and assigned”
What is error detection?
“Techniques to check whether bits were corrupted during transmission”
What is error correction?
“Ability to reconstruct original data without retransmission”
What is a codeword?
“Data bits plus redundant bits used for error detection/correction”
What is the Hamming distance between two codewords?
“The number of bit positions in which they differ”
What is the minimum Hamming distance of a code?
“The smallest Hamming distance between any two valid codewords”
What is the error detection capability of a code with distance d?
“Can detect d−1 bit errors”
What is the correction capability of a code with distance d?
“Can correct ⌊(d−1)/2⌋ bit errors”
What Hamming distance is required to correct 1-bit errors?
“Distance 3”
What Hamming distance is required to detect 2-bit errors?
“Distance 3”
What Hamming distance is required to detect 3-bit errors?
“Distance 4”
What is even parity?
“Number of 1s in codeword made even by parity bit”
What can parity detect?
“Only odd numbers of bit errors”
What is a checksum used for?
“Detecting corruption by summing data words and comparing inverted sum”
What arithmetic does checksum use?
“One’s complement addition”