Link Layers

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/37

flashcard set

Earn XP

Description and Tags

Flashcards about Link Layers based on lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

38 Terms

1
New cards

What are hosts and routers referred to as in the context of link layers?

Nodes

2
New cards

What is a layer-2 packet called, which encapsulates a datagram?

Frame

3
New cards

What is the primary responsibility of the link layer?

Transferring datagrams from one node to a physically adjacent node over a link.

4
New cards

What are the key functions provided by the link layer regarding framing and link access?

Encapsulating datagram into frame, adding header and trailer and channel access if shared medium.

5
New cards

What type of addresses in frame headers identify source and destination nodes in the link layer?

MAC addresses

6
New cards

What is the purpose of flow control in the context of link layer services?

Pacing between adjacent sending and receiving nodes.

7
New cards

What are the primary causes of errors that the link layer's error detection mechanism aims to address?

Signal attenuation and noise

8
New cards

Where is the link layer typically implemented in a host?

Network Interface Card (NIC)

9
New cards

What does EDC stand for in the context of error detection?

Error detection and correction bits

10
New cards

How reliable is error detection in link layer protocols?

The protocol may miss some errors, but rarely.

11
New cards

What type of errors does single bit parity checking primarily detect?

Detect single bit errors.

12
New cards

What are the two main types of links discussed in the context of multiple access links?

Point-to-point and broadcast (shared)

13
New cards

What happens when two or more nodes transmit simultaneously over a shared broadcast channel?

Interference and collision

14
New cards

What are some examples of channel partitioning methods in MAC protocols?

Time Division (TDMA), Frequency Division (FDMA), Code Division Multiple Access (CDMA)

15
New cards

What is the key element that differentiates CSMA/CD and CSMA/CA from ALOHA protocols?

Carrier sensing

16
New cards

What is the primary function of a MAC address?

Used locally to get frame from one interface to another physically connected interface (same subnet)

17
New cards

What is the typical length of a MAC address in most LANs?

48-bit

18
New cards

What is the main question that ARP (Address Resolution Protocol) aims to resolve?

To determine interface’s MAC address, knowing its IP address.

19
New cards

How does a node determine the MAC address of another node on the same LAN using ARP?

It broadcasts an ARP query containing the target IP address

20
New cards

In an ARP broadcast, which nodes receive the ARP query?

Each node on the LAN receives the ARP query.

21
New cards

What action does the target node take upon receiving an ARP query in the ARP protocol?

B replies to A with an ARP response, giving its MAC address.

22
New cards

When routing to another subnet, what information does node A need to know about router R?

To send data to a destination on another subnet, it needs to know the IP and MAC address of the first hop router (gateway).

23
New cards

When sending a datagram to B via router R, how does A construct the link-layer frame?

A creates link-layer frame with R's MAC address as the destination MAC.

24
New cards

How does router R creates the link-layer frame when forwarding the datagram to B?

The destination MAC address is B's MAC address.

25
New cards

What is the historical significance of Ethernet in the context of LAN technologies?

First widely used LAN technology

26
New cards

What are the two main physical topologies discussed for Ethernet?

Bus and Switched

27
New cards

What is the primary function of an Ethernet switch?

Examine incoming frame’s MAC address, selectively forward frame to one-or-more outgoing links.

28
New cards

What are the characteristics of a switched Ethernet network regarding connections, collisions, and transmission mode?

Hosts have dedicated connections to switch, switches buffer packets, no collisions due to full duplex.

29
New cards

How does a switch keep track of which hosts can be reached through which interfaces?

Each switch has a switch table with MAC address of host, interface to reach host, and time stamp.

30
New cards

How does a switch 'learn' the location of a sender when a frame is received?

records sender/location pair in switch table.

31
New cards

What are the two possible actions a switch can take when forwarding a frame?

Flood or selectively send on one link

32
New cards

How do interconnected switches learn to forward frames to the correct destination?

By self learning

33
New cards

What is the key difference between routers and switches in terms of the layer at which they operate?

Routers are network-layer devices and switches are link-layer devices.

34
New cards

What is the goal of the 'synthesis' section regarding a day in the life of a web request?

To identify, review, and understand protocols at all layers involved in a seemingly simple scenario: requesting a www page.

35
New cards

What information does a connecting laptop need, and which protocol is used to obtain it?

Connecting laptop needs to get its own IP address, address of first-hop router, and address of DNS server- use DHCP.

36
New cards

Before sending an HTTP request, what two key pieces of addressing information are required, and which protocols provide them?

Before sending HTTP request, need IP address of www.google.com- DNS. To send frame to router, need MAC address of router interface - ARP.

37
New cards

Encapsulation of DNS query

DNS UDP IP Eth Phy

38
New cards

What type of connection does the client first establish with the web server before sending an HTTP request?

The client opens a TCP connection to the web server before sending the HTTP request.