Networks Chapter 6

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/314

encourage image

There's no tags or description

Looks like no tags are added yet.

315 Terms

1
New cards

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.

2
New cards

What are nodes in networking terminology?

Hosts and routers.

3
New cards

What is a link?

A communication channel connecting adjacent nodes along a communication path.

4
New cards

What is a Layer 2 packet called?

A frame.

5
New cards

What does a link-layer frame encapsulate?

A network-layer datagram.

6
New cards

What are examples of link types?

Wired links, wireless links, and LAN links.

7
New cards

Do all links along an end-to-end path use the same link-layer protocol?

No. Different links can use different link-layer protocols.

8
New cards

Give an example of different link-layer protocols used along a path.

Wi-Fi on the first link and Ethernet on a subsequent link.

9
New cards

Do all link-layer protocols provide identical services?

No. Link-layer protocols provide different services.

10
New cards

Does every link-layer protocol provide reliable data transfer?

No. Some provide reliability, while others do not.

11
New cards

What is framing?

Encapsulating a network-layer datagram into a frame by adding link-layer header and trailer information.

12
New cards

What is link access?

Determining how a node accesses and transmits over a link, especially when the medium is shared.

13
New cards

What are MAC addresses used for?

Identifying source and destination interfaces for local frame delivery.

14
New cards

What is link-layer reliable delivery?

Reliable data transfer between two adjacent nodes over a link.

15
New cards

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.

16
New cards

Why is link-layer reliability more useful on wireless links?

Wireless links often experience higher bit-error rates due to noise and interference.

17
New cards

What is link-layer flow control?

Pacing transmission between adjacent sending and receiving nodes so the receiver is not overwhelmed.

18
New cards

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.

19
New cards

Where is the link layer implemented in a host?

On-chip or in the network interface card (NIC).

20
New cards

What does a NIC implement?

Link-layer and physical-layer functionality.

21
New cards

What components can make up a link-layer implementation?

Hardware, software, and firmware.

22
New cards

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.

23
New cards

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.

24
New cards

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.

25
New cards

How does the NIC connect to a host?

Through the host's system bus, such as PCI.

26
New cards

What functions are typically implemented in link-layer hardware?

Framing, link access, error detection, and other link-layer functions.

27
New cards

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.

28
New cards

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.

29
New cards

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.

30
New cards

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.

31
New cards

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.

32
New cards

What does EDC stand for?

Error Detection and Correction bits.

33
New cards

What are EDC bits?

Redundant bits added to data to help detect or correct errors.

34
New cards

What does D represent in error-detection notation?

The data protected by error-checking bits, potentially including header fields.

35
New cards

Is error detection 100% reliable?

No. Some errors can escape detection.

36
New cards

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.

37
New cards

What causes bit errors during transmission?

Signal attenuation, noise, interference, and other transmission impairments.

38
New cards

What are two possible responses when a receiver detects a frame error?

It may signal retransmission or discard the frame.

39
New cards

What is error correction?

The receiver identifies and corrects bit errors without requiring retransmission.

40
New cards

What is the purpose of parity checking?

To detect certain bit errors using an additional parity bit.

41
New cards

What is single-bit parity?

A scheme that adds one parity bit to a data block to detect certain errors.

42
New cards

What is even parity?

The parity bit is chosen so the total number of 1 bits, including the parity bit, is even.

43
New cards

What is odd parity?

The parity bit is chosen so the total number of 1 bits, including the parity bit, is odd.

44
New cards

How does a receiver check single-bit parity?

It computes the parity of the received data and compares it with the received parity bit.

45
New cards

What happens if the computed parity differs from the received parity?

An error is detected.

46
New cards

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.

47
New cards

What is two-dimensional parity?

A parity scheme that arranges bits into rows and columns and computes parity for each row and column.

48
New cards

What advantage does two-dimensional parity provide?

It can detect and correct a single-bit error by locating the erroneous row and column.

49
New cards

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.

50
New cards

What is the Internet checksum?

An error-detection mechanism that computes a one's-complement sum of 16-bit words.

51
New cards

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.

52
New cards

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.

53
New cards

How does the receiver check the Internet checksum?

It recomputes the checksum and compares it with the received checksum value.

54
New cards

Does a matching checksum guarantee that no errors occurred?

No. Errors can still go undetected.

55
New cards

What is the goal of error-detection mechanisms?

To detect errors, such as flipped bits, in transmitted data.

56
New cards

What is CRC?

Cyclic Redundancy Check, a powerful error-detection coding technique.

57
New cards

What does D represent in CRC?

The data bits being protected.

58
New cards

What does G represent in CRC?

The generator bit pattern, consisting of r+1 bits.

59
New cards

What does R represent in CRC?

The r CRC bits computed by the sender.

60
New cards

What is the sender's goal in CRC computation?

To compute R so that the transmitted bit sequence

61
New cards

What is modulo-2 arithmetic in CRC?

Arithmetic based on XOR operations without carries or borrows.

62
New cards

What does the sender append to D in CRC?

The CRC remainder R.

63
New cards

How does the receiver check a CRC?

It divides the received sequence by the generator G.

64
New cards

What does a nonzero CRC remainder indicate?

An error has been detected.

65
New cards

What does a zero CRC remainder indicate?

No error was detected, although undetected errors may still be possible.

66
New cards

What type of errors can CRC detect particularly well?

Burst errors.

67
New cards

What burst-error length can a CRC with r CRC bits detect according to the slide?

All burst errors shorter than r+1 bits.

68
New cards

Where is CRC commonly used?

Ethernet and 802.11 Wi-Fi.

69
New cards

What are the two broad types of links discussed in the multiple-access section?

Point-to-point links and broadcast/shared links.

70
New cards

What is a point-to-point link?

A link connecting two endpoints directly.

71
New cards

Give examples of point-to-point links.

A host-to-Ethernet-switch link and PPP used for dial-up access.

72
New cards

What is a broadcast link?

A shared medium where multiple nodes can transmit and receive signals over the same channel.

73
New cards

Give examples of broadcast or shared links.

Older Ethernet, cable access upstream channels, Wi-Fi, cellular networks, and satellite communication.

74
New cards

What is a collision?

A situation where a receiver experiences two or more transmissions simultaneously, causing interference.

75
New cards

Why do multiple-access protocols exist?

To determine how multiple nodes share a broadcast channel and when nodes may transmit.

76
New cards

What is a multiple-access protocol?

A distributed algorithm that determines how nodes share a broadcast communication channel.

77
New cards

Why must multiple-access coordination use the channel itself in the slide's model?

Because there is no separate out-of-band coordination channel.

78
New cards

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.

79
New cards

What is the ideal multiple-access protocol's second goal?

When M nodes want to transmit, each gets an average rate of R/M.

80
New cards

What is the ideal multiple-access protocol's decentralization goal?

It should not require a special coordinating node or clock/slot synchronization.

81
New cards

What is the ideal multiple-access protocol's simplicity goal?

The protocol should be simple.

82
New cards

What are the three broad classes of MAC protocols?

Channel partitioning, random access, and taking turns.

83
New cards

What is channel partitioning?

Dividing a shared channel into smaller pieces and allocating them for exclusive use.

84
New cards

What are examples of channel partitioning methods?

Time slots, frequency bands, and code-based partitioning.

85
New cards

What is TDMA?

Time Division Multiple Access, which allocates channel access through time slots.

86
New cards

How does TDMA organize channel access?

Access occurs in rounds, with each station assigned a fixed-length slot in each round.

87
New cards

What determines the length of a TDMA slot in the slide's example?

The time needed to transmit one packet.

88
New cards

What happens to unused TDMA slots?

They remain idle.

89
New cards

What is FDMA?

Frequency Division Multiple Access, which divides the channel spectrum into frequency bands.

90
New cards

How does FDMA allocate channel access?

Each station is assigned a fixed frequency band.

91
New cards

What happens when an FDMA station has nothing to transmit?

Its assigned band may remain unused.

92
New cards

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.

93
New cards

What is a key characteristic of channel partitioning protocols?

They allocate portions of the channel to nodes rather than allowing unrestricted contention.

94
New cards

What is a random-access MAC protocol?

A protocol that allows nodes to transmit without predetermined channel allocations, with collisions possible.

95
New cards

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.

96
New cards

Is there a priori coordination between nodes in random access?

No.

97
New cards

What does a random-access protocol specify?

How collisions are detected and how nodes recover from collisions.

98
New cards

What are examples of random-access MAC protocols?

ALOHA, slotted ALOHA, CSMA, CSMA/CD, and CSMA/CA.

99
New cards

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.

100
New cards

When does a node transmit a newly arriving frame in slotted ALOHA?

In the next available slot.