1/314
Looks like no tags are added yet.
What is the primary responsibility of the link layer?
To transfer a network-layer datagram from one node to a physically adjacent node over a link.
What are nodes in networking terminology?
Hosts and routers.
What is a link?
A communication channel connecting adjacent nodes along a communication path.
What is a Layer 2 packet called?
A frame.
What does a link-layer frame encapsulate?
A network-layer datagram.
What are examples of link types?
Wired links, wireless links, and LAN links.
Do all links along an end-to-end path use the same link-layer protocol?
No. Different links can use different link-layer protocols.
Give an example of different link-layer protocols used along a path.
Wi-Fi on the first link and Ethernet on a subsequent link.
Do all link-layer protocols provide identical services?
No. Link-layer protocols provide different services.
Does every link-layer protocol provide reliable data transfer?
No. Some provide reliability, while others do not.
What is framing?
Encapsulating a network-layer datagram into a frame by adding link-layer header and trailer information.
What is link access?
Determining how a node accesses and transmits over a link, especially when the medium is shared.
What are MAC addresses used for?
Identifying source and destination interfaces for local frame delivery.
What is link-layer reliable delivery?
Reliable data transfer between two adjacent nodes over a link.
Why is link-layer reliable delivery seldom used on low bit-error links?
Because errors are relatively uncommon, so the additional reliability mechanisms may not be worth the overhead.
Why is link-layer reliability more useful on wireless links?
Wireless links often experience higher bit-error rates due to noise and interference.
What is link-layer flow control?
Pacing transmission between adjacent sending and receiving nodes so the receiver is not overwhelmed.
What is the difference between half-duplex and full-duplex communication?
- Half-duplex: Both endpoints can transmit, but not simultaneously.
- Full-duplex: Both endpoints can transmit simultaneously.
Where is the link layer implemented in a host?
On-chip or in the network interface card (NIC).
What does a NIC implement?
Link-layer and physical-layer functionality.
What components can make up a link-layer implementation?
Hardware, software, and firmware.
What is a NIC?
A network interface card or controller that connects a host to a network and implements many link- and physical-layer functions.
What is the role of the link-layer controller on the sending side?
It encapsulates datagrams into frames and may add error-checking bits, reliability mechanisms, and flow-control functionality.
What is the role of the link layer on the receiving side?
It checks for errors, handles applicable reliability and flow-control functions, extracts the datagram, and passes it upward.
How does the NIC connect to a host?
Through the host's system bus, such as PCI.
What functions are typically implemented in link-layer hardware?
Framing, link access, error detection, and other link-layer functions.
What functions may link-layer software perform?
Higher-level link-layer functions, assembling addressing information, activating controller hardware, handling interrupts, responding to errors, and passing datagrams to the network layer.
What happens when a NIC receives a frame?
It processes the frame, checks for errors, and may generate an interrupt for the host's link-layer software.
What happens to a datagram after successful link-layer processing at the receiving host?
It is extracted from the frame and passed to the network layer.
Why does the link layer need both hardware and software?
Hardware handles many performance-sensitive functions, while software handles higher-level control and interaction with the host.
Why might a link layer provide reliable delivery even though transport-layer reliability exists?
Link-layer reliability can recover from errors locally between adjacent nodes, while end-to-end reliability handles correctness across the complete path.
What does EDC stand for?
Error Detection and Correction bits.
What are EDC bits?
Redundant bits added to data to help detect or correct errors.
What does D represent in error-detection notation?
The data protected by error-checking bits, potentially including header fields.
Is error detection 100% reliable?
No. Some errors can escape detection.
How does increasing the size of an EDC field generally affect error detection and correction?
It generally improves the ability to detect and correct errors.
What causes bit errors during transmission?
Signal attenuation, noise, interference, and other transmission impairments.
What are two possible responses when a receiver detects a frame error?
It may signal retransmission or discard the frame.
What is error correction?
The receiver identifies and corrects bit errors without requiring retransmission.
What is the purpose of parity checking?
To detect certain bit errors using an additional parity bit.
What is single-bit parity?
A scheme that adds one parity bit to a data block to detect certain errors.
What is even parity?
The parity bit is chosen so the total number of 1 bits, including the parity bit, is even.
What is odd parity?
The parity bit is chosen so the total number of 1 bits, including the parity bit, is odd.
How does a receiver check single-bit parity?
It computes the parity of the received data and compares it with the received parity bit.
What happens if the computed parity differs from the received parity?
An error is detected.
Can single-bit parity detect all possible errors?
No. It can miss errors that preserve the expected parity, such as an even number of bit flips.
What is two-dimensional parity?
A parity scheme that arranges bits into rows and columns and computes parity for each row and column.
What advantage does two-dimensional parity provide?
It can detect and correct a single-bit error by locating the erroneous row and column.
How does two-dimensional parity locate a single-bit error?
The row with incorrect parity and the column with incorrect parity intersect at the erroneous bit.
What is the Internet checksum?
An error-detection mechanism that computes a one's-complement sum of 16-bit words.
What data does the Internet checksum process in the slide's example?
The contents of a UDP segment, including UDP header fields and IP addresses, treated as a sequence of 16-bit integers.
How is the Internet checksum generated?
The sender computes the one's-complement sum of the data and places the checksum in the checksum field.
How does the receiver check the Internet checksum?
It recomputes the checksum and compares it with the received checksum value.
Does a matching checksum guarantee that no errors occurred?
No. Errors can still go undetected.
What is the goal of error-detection mechanisms?
To detect errors, such as flipped bits, in transmitted data.
What is CRC?
Cyclic Redundancy Check, a powerful error-detection coding technique.
What does D represent in CRC?
The data bits being protected.
What does G represent in CRC?
The generator bit pattern, consisting of r+1 bits.
What does R represent in CRC?
The r CRC bits computed by the sender.
What is the sender's goal in CRC computation?
To compute R so that the transmitted bit sequence
What is modulo-2 arithmetic in CRC?
Arithmetic based on XOR operations without carries or borrows.
What does the sender append to D in CRC?
The CRC remainder R.
How does the receiver check a CRC?
It divides the received sequence by the generator G.
What does a nonzero CRC remainder indicate?
An error has been detected.
What does a zero CRC remainder indicate?
No error was detected, although undetected errors may still be possible.
What type of errors can CRC detect particularly well?
Burst errors.
What burst-error length can a CRC with r CRC bits detect according to the slide?
All burst errors shorter than r+1 bits.
Where is CRC commonly used?
Ethernet and 802.11 Wi-Fi.
What are the two broad types of links discussed in the multiple-access section?
Point-to-point links and broadcast/shared links.
What is a point-to-point link?
A link connecting two endpoints directly.
Give examples of point-to-point links.
A host-to-Ethernet-switch link and PPP used for dial-up access.
What is a broadcast link?
A shared medium where multiple nodes can transmit and receive signals over the same channel.
Give examples of broadcast or shared links.
Older Ethernet, cable access upstream channels, Wi-Fi, cellular networks, and satellite communication.
What is a collision?
A situation where a receiver experiences two or more transmissions simultaneously, causing interference.
Why do multiple-access protocols exist?
To determine how multiple nodes share a broadcast channel and when nodes may transmit.
What is a multiple-access protocol?
A distributed algorithm that determines how nodes share a broadcast communication channel.
Why must multiple-access coordination use the channel itself in the slide's model?
Because there is no separate out-of-band coordination channel.
What is the ideal multiple-access protocol's first goal?
When one node wants to transmit, it can transmit at the full channel rate R.
What is the ideal multiple-access protocol's second goal?
When M nodes want to transmit, each gets an average rate of R/M.
What is the ideal multiple-access protocol's decentralization goal?
It should not require a special coordinating node or clock/slot synchronization.
What is the ideal multiple-access protocol's simplicity goal?
The protocol should be simple.
What are the three broad classes of MAC protocols?
Channel partitioning, random access, and taking turns.
What is channel partitioning?
Dividing a shared channel into smaller pieces and allocating them for exclusive use.
What are examples of channel partitioning methods?
Time slots, frequency bands, and code-based partitioning.
What is TDMA?
Time Division Multiple Access, which allocates channel access through time slots.
How does TDMA organize channel access?
Access occurs in rounds, with each station assigned a fixed-length slot in each round.
What determines the length of a TDMA slot in the slide's example?
The time needed to transmit one packet.
What happens to unused TDMA slots?
They remain idle.
What is FDMA?
Frequency Division Multiple Access, which divides the channel spectrum into frequency bands.
How does FDMA allocate channel access?
Each station is assigned a fixed frequency band.
What happens when an FDMA station has nothing to transmit?
Its assigned band may remain unused.
What is a disadvantage of TDMA and FDMA when only a few nodes are active?
Resources assigned to inactive nodes can go unused, reducing efficiency.
What is a key characteristic of channel partitioning protocols?
They allocate portions of the channel to nodes rather than allowing unrestricted contention.
What is a random-access MAC protocol?
A protocol that allows nodes to transmit without predetermined channel allocations, with collisions possible.
At what rate does a node transmit when using random access and it has a packet to send?
At the full channel data rate R.
Is there a priori coordination between nodes in random access?
No.
What does a random-access protocol specify?
How collisions are detected and how nodes recover from collisions.
What are examples of random-access MAC protocols?
ALOHA, slotted ALOHA, CSMA, CSMA/CD, and CSMA/CA.
What are the assumptions of slotted ALOHA?
- Frames have equal size.
- Time is divided into equal slots.
- Each slot lasts long enough to transmit one frame.
- Nodes transmit only at slot beginnings.
- Nodes are synchronized.
- All nodes can detect a collision in a slot.
When does a node transmit a newly arriving frame in slotted ALOHA?
In the next available slot.