Chapter 6 - Link Layer Flashcards

1
Q

What is framing in link layer?

A

framing in link layer is multiplexing the network layer into a frame.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

If all the links in the Internet were to provide reliable delivery service, would the TCP reliable delivery service be redundant? Why or why not?

A

Although each link guarantees that an IP datagram sent over the link will be received at the other end of the link without errors, it is not guaranteed that IP datagrams will arrive at the ultimate destination in the proper order. With IP, datagrams in the same TCP connection can take different routes in the network, and therefore arrive out of order. TCP is still needed to provide the receiving end of the application the byte stream in the correct order. Also, IP can lose packets due to routing loops or equipment failures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Name three error-detection strategies employed by link layer.

A

Internet Checksum, Parity Check, Cyclic Redundancy Check

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Suppose two nodes start to transmit at the same time a packet of length L over a broadcast channel of rate R. Denote the propagation delay between the two nodes as d_prop. Will there be a collision if d_prop < L /R? Why or why not?

A

Yes collision will occur for any d_prop when two nodes start transmitting at the same time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In Section 6.3, we listed four desirable characteristics of a broadcast channel. Which of these characteristics does slotted ALOHA have? Which of these characteristics does token passing have?

A
  1. when one node broadcasting rate should be R
  2. when N nodes broadcasting each node should average R/N.
  3. No master controller.
  4. Simple

slotted ALOHA: (1) yes, (2) - due to collisions max efficiency is 0.37, (3) yes, (4) yes
token passing: (1) - token passing time, (2) - token passing time, (4) yes,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In CSMA/CD, after the fifth collision, what is the probability that a node chooses K = 4? The result K = 4 corresponds to a delay of how many seconds on a 10 Mbps Ethernet?

A
pool = 0 .. 2^n - 1, prob(K=4) = 1/2^n = (1/32)
time = (5 \* 512b) / 10Mb
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

While TDM and FDM assign time slots and frequencies, CDMA assigns a different code to each node. Explain the basic principle in which CDMA works.

A

code division multiple access CDMA assigns a different code to each node. Each node then uses its unique code to encode the data bits it sends. Allows for nonblocking system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why does collision occur in CSMA, if all nodes perform carrier sensing before transmission?

A

Due to propagation time a node may have started transmitting at t - e but the signal has yet to reach the sensing node.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How big is the MAC address space? The IPv4 address space? The IPv6 address space?

A

MAC 2^48, IPv4 2^32, IPv6 2^128

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Suppose nodes A, B, and C each attach to the same broadcast LAN (through their adapters). If A sends thousands of IP datagrams to B with each encapsulating frame addressed to the MAC address of B, will C’s adapter process these frames? If so, will C’s adapter pass the IP datagrams in these frames to the network layer C? How would your answers change if A sends frames with the MAC broadcast address?

A

C’s adapter will process the frames, but the adapter will not pass the datagrams up the protocol stack. If the LAN broadcast address is used, then C’s adapter will both process the frames and pass the datagrams up the protocol stack.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Why is an ARP query sent within a broadcast frame? Why is an ARP response sent within a frame with a specific destination MAC address?

A

An ARP query is sent in a broadcast frame because the querying host does not which adapter address corresponds to the IP address in question. For the response, the sending node knows the adapter address to which the response should be sent, so there is no need to send a broadcast frame (which would have to be processed by all the other nodes on the LAN).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

For the network in Figure 6.19, the router has two ARP modules, each with its own ARP table. Is it possible that the same MAC address appears in both tables?

A

No, the ARP table for each interface will only contain addresses on that NIC’s subnet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Each host and router has an ARP table in its memory. What are the contents of this table?

A

The ARP table will contain mappings of MAC, IP Addresses for the local subnet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a hub?

A

A hub is a physical-layer device that acts on individual bits rather than frames. When a bit, representing a zero or a one, arrives from one interface, the hub simply re-creates the bit, boosts its energy strength, and transmits the bit onto all the other interfaces.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the difference between a router and a switch?

A

Router: has MAC, IP address, forwards packets based primarily on IP address, but can use values in other layer header fields. (link-layer 3 switch)

Switch: no MAC or IP, forwards packets based only on MAC address. (link-layer 2 switch).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly