chapter 6 - link layer Flashcards
(33 cards)
What is a link-layer frame?
data unit used to send information between two directly connected devices
What is the main job of the link layer?
Transfer datagrams between physically nodes over a link
Where is the link layer implemented?
In the NIC (network interface card), as hardware
What are the main services of the link layer?
Framing reliable delivery, flow control, error detection/correction
What is a MAC address?
physical link-layer address unique to each NIC (not the same as IP)
What is the difference between full-duplex and half-duplex?
Full: device can send and receive at once
half: only one at a time
half: walkie-talkie
What is a checksum?
A value used to detect errors in transmitted data
What does a parity bit detect?
Single-bit errors
What is CRC (Cyclic Redundancy Check)?
strong error-detection method using polynomial division
What is the purpose of a MAC protocol?
who gets to send data on a shared communication channel and when
who = device
What are the 3 categories of MAC protocols?
Channel partitioning, random access, taking turns
What is Time Division Multiple Access (TDMA)?
each node gets a time slot and the queue goes in a circle
hører til channel partitioning
What is Frequency Division Multiple Access (FDMA)?
each node gets a frequency band and can send at the same time
sends link layer frames
What is slotted ALOHA
Time is divided into equal time slots, and devices can only send at the start of a slot
when collisions -> retransmit at random time
random access
slotted aloha - settings
all frames same size
time divided into equal size slots
pure aloha
nodes transmit whenever - higher collision risk
What is Carrier Sense Multiple Acces (CSMA)?
listen before sending
if sensing busy - defer transmission
if sensing free - transmit entire frame
What is CSMA with Collision Detection (CSMA/CD)?
stop sending if collision detected -> wait and send at a random time later
random access
pros cons - slotted aloha
pro - decentralized
cons - synchronization
What improves CSMA/CD efficiency?
Short propagation delay (T_prop) and long transmission time (T_trans)
ethernet csma/cd algorithm
- ethernet creates frame
- if idle -> retransmit
- if another transmission detected while sending -> abort
How does a parity bit detect errors?
Adds 1 bit to ensure even (or odd) number of 1s; receiver checks if parity matches
How does two-dimensional parity work?
Adds parity bits to rows and columns in a bit grid; detects and corrects single-bit errors
How does CRC detect errors?
Divides data (polynomial) -> appends remainder so final result is divisible
receiver checks divisibility