3. Datalink layer Flashcards

(25 cards)

1
Q

What’s IPv6 Anycast addressing?

A
  • Assigns IP address to nodes on devices in different locations.
  • If packet sent to anycast address, it’s forwarded to nearest node with same address
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

IPv6 applications in load balancing scenarios

A
  • Instead of sending requests to 1 server, system directs each request to closest server.
  • no overload & quick responses
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

IPv6 applications in high availability scenarios

A
  • If node/server stops working, system finds another nearby.
  • Ensures user access to service even if system has problems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Time taken to receive ICMP Time Exceeded response for an ICMP Echo Request with network delay

A

Time = TTL (hops) * Network delay

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

What’s the Data Link Layer’s purpose?

A

To provide node-to-node delivery to the Network Layer

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

Which are the Data Link Layer’s responsibilities?

A
  • Framing
  • Error Control
  • Control usage of transmission medium
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which are the sublayers of the Data Link layer?

A
  • Logical Link Control:
    Handles framing, flow & error control
  • Medium Access Control (MAC):
    Avoids collisions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does the ALOHA Multiple Access Protocol work?

A

Pure ALOHA: send data → collision → wait random time → resend

Slotted ALOHA (fewer collisions): Time divided into slots → wait till start of next slot → resend

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

With CSMA (Carrier Sense Multiple Access) stations listen before sending data.
Which are the different Persistence methods?

A

One persistent: send when idle.

  • Nonpersistent: Wait random time, check if idle, if it’s idle send.
  • p-persistent: Send with probability p if idle & wait q seconds for start of next slot (q = 1-p)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does CSMA/CD (Collision Detection) detect a collision?

A

If received signal is weaker than signal sent

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

Give 2 Types of Errors due to interference

A
  • Single-bit Error: 1 bit flipped
  • Burst Error: multiple bits flipped
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Block coding adds redundant bits to detect errors. Explain how.

A
  • message divided into blocks of k bits (data words)
  • r redundant bits added to each block (codewords of size n=k+r)

2^k data words & 2^n codewords.
n>k so 2^n - 2^k codewords not used (invalid).

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

Explain Two-dimensional Parity Bits

A

Detect & correct single-bit errors over blocks.

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

Cyclic Redundancy Check (CRC) creates codewords with polynomials.

a) What does the degree determine? b) Define the pattern.

A

a) Determines number of bits added to data to create codeword.

b) Has at least 2 bits, first & last bit are 1 & coefficients are 1 or 0.

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

Explain the CRC procedure for the encoder.

A
  • divide codeword by bit pattern of generating polynomial.
  • Append remainder to codeword
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Explain the CRC procedure for the decoder.

A
  • Divide codeword received by same divisor that encoder used.
  • if remainder is 0, dataword extracted from codeword. Else, discard.
17
Q

Which Burst errors of length ‘L’ & remainder ‘r’ are detected?

A
  • Errors of size L <= r detected
  • Errors of size L = r+1 detected with probability 1-0.5
  • Errors of size L > r+1 detected with probability 1- (0.5^r)
18
Q

If 1 frame has an error, the rest are unaffected.
How do u determine the start & end of a frame?

A
  • Character-oriented:
    - Flags at start & end
    - ESC added when Flag found
    - If ESC found before Flag, add another ESC before it
  • Bit-Oriented:
    Flag 01111110 at start & end.
    Bit stuffing (after 5 ones insert 0)
19
Q

What’s ACK (Acknowledgement)?

A

Sent by receiver after successful frame receipt.
If no ACK received, timeout triggers retransmission.

20
Q

Define:
a) Simplex Stop-and-Wait Protocol
b) Stop-and-Wait for Noisy Channel

A

a) send 1 frame, wait ACK

b) timer used, duplicate frames avoided with 1-bit sequence numbers between frames

21
Q

Define the Sliding window protocol

A
  • sends n frames before any ACK
  • network bandwidth not wasted during waiting time.
  • requires full duplex links
22
Q

Explain the Retransmission strategy (if timeout) Go-Back-N procedure.

A
  • Sender sends all frames up to window size N w/o waiting ACK.
  • Keeps track of oldest unACK frame.
  • If 1 frame times out or gives error, sender goes back & resends that frame & all after it again.
  • Receiver only accepts in-order frames, so frames after missing frame r discarded.
23
Q

Explain the Retransmission strategy (if timeout) Selective Repeat procedure.

A
  • Sender sends frames up to window size N w/o waiting for ACK.
  • If frame lost, only that frame is resent.
  • Receiver stores out-of-order frames in buffer until missing frames received.

(More efficient but needs larger buffers)

24
Q

Disadvantages of Go-Back-N

A
  • Wastes bandwidth if only 1 frame is lost
  • Correctly sent frames r resent unnecessarily
25
Sequence number range must be at least 2*window size, why?
Because if range is smaller, a new frame may reuse a sequence number that’s already in buffer (used by older frame)