Skip to main content

Computer Networks

Data Link Layer

Master the layer that GATE loves for numericals: stuff bits, compute CRC remainders by hand, apply window-efficiency formulas, and work out minimum Ethernet frame sizes and MAC-protocol throughput.

~6 hrs ~1.5–2 marks · High 10 samples · 10 practice · 10 cards

GATE CSE data link layer — framing with byte and bit stuffing, parity, checksum, CRC with polynomial division, Hamming distance, stop-and-wait / Go-Back-N / Selective Repeat efficiency, ALOHA, CSMA/CD, CSMA/CA and Ethernet, with samples, flashcards and drills.

Learning outcomes

  • Apply byte and bit stuffing and explain how framing works
  • Compute parity, checksum and CRC remainders and state their detection power
  • Use Hamming distance bounds and the Hamming code check-bit formula
  • Derive efficiency and sequence-number requirements for stop-and-wait, Go-Back-N and Selective Repeat
  • Compare ALOHA, CSMA, CSMA/CD and CSMA/CA and compute minimum Ethernet frame size

Framing and error detection

  • The data link layer turns raw bits into FRAMES. Framing methods: character (byte) count, flag bytes with BYTE STUFFING, flag bits with BIT STUFFING, and physical-layer coding violations.
  • BYTE STUFFING: the frame starts and ends with a FLAG byte; if the flag or the escape byte appears in data, an ESC byte is inserted before it. BIT STUFFING (HDLC/PPP): the flag is 01111110; the sender inserts a 0 after every FIVE consecutive 1s in the data, and the receiver deletes a 0 that follows five 1s.
  • ERROR DETECTION adds redundancy. PARITY: one extra bit makes the number of 1s even (even parity); it detects every ODD number of bit errors and misses all even-numbered errors. TWO-DIMENSIONAL parity can detect any 3-bit error and many bursts.
  • INTERNET CHECKSUM: split data into 16-bit words, add them with end-around carry (one’s complement sum) and take the complement; the receiver adds everything including the checksum and expects all 1s. It is used by IP, TCP and UDP, and is weaker than CRC.
  • HAMMING DISTANCE d(x, y) = number of bit positions in which two codewords differ. A code with minimum distance dmin DETECTS up to dmin - 1 errors and CORRECTS up to floor((dmin - 1) / 2) errors.
  • HAMMING CODE: for m data bits and r check bits placed at positions 1, 2, 4, 8, ... we need 2^r >= m + r + 1. Single-bit errors are located by the syndrome value (position of the wrong bit).
  • HAMMING (7,4) worked, even parity: positions 1 to 7 are p1 p2 d3 p4 d5 d6 d7; p1 checks positions 1,3,5,7; p2 checks 2,3,6,7; p4 checks 4,5,6,7. Data d3 d5 d6 d7 = 1 0 1 1 gives p1 = 1 xor 0 xor 1 = 0, p2 = 1 xor 1 xor 1 = 1, p4 = 0 xor 1 xor 1 = 0, so the codeword is 0110011. If bit 5 flips (0110111) the three checks read p4 p2 p1 = 1 0 1 = 5, which points at bit 5.
  • CHECKSUM worked (8-bit words for illustration): 10011001 + 11100010 = 1 01111011; add the carry back to get 01111100; its complement 10000011 is the checksum. The receiver adds all words plus the checksum, 01111100 + 10000011 = 11111111, complements to 0 and accepts. The Internet checksum does the same with 16-bit words.
  • The minimum distance of a single even-parity code is 2 (detect 1, correct 0); the repetition code 000 / 111 has dmin = 3 (detect 2 or correct 1). With dmin = 4 a code can detect 3 errors, or correct 1 error while still flagging 2-bit errors (single-error-correct, double-error-detect).

Formulas to remember

  • Detect e errors: dmin >= e + 1
  • Correct t errors: dmin >= 2t + 1
  • Hamming code: 2^r >= m + r + 1
  • Bit stuffing: insert 0 after every five consecutive 1s (flag = 01111110)

Worked example

Problem. Apply bit stuffing (flag 01111110) to the data 0111111011111.

Solution. Scan left to right: after the first run of five 1s insert a 0; the sixth 1 is followed by a 0 (no insertion); the final run of five 1s again gets a 0 after it. Result: 0 11111 0 1 0 11111 0 = 011111010111110 (13 data bits become 15 bits). Byte stuffing of the data A FLAG B gives A ESC FLAG B (one extra byte); a data byte equal to ESC is also preceded by ESC.

A flagged HDLC frame, the bit stuffing of 0111111011111 into 15 bits, and a byte stuffing example with ESC
Bit stuffing inserts a 0 after five consecutive 1s; byte stuffing inserts ESC before a FLAG or ESC byte in the data.

CRC — cyclic redundancy check

  • A GENERATOR polynomial G(x) of degree r (r + 1 bits, leading and trailing bit are 1) is agreed by both ends. The sender appends r zero bits to the m-bit message M, divides M * x^r by G using MODULO-2 (XOR) arithmetic, and appends the r-bit REMAINDER. The transmitted frame is therefore exactly divisible by G.
  • The receiver divides the received frame by G; a ZERO remainder means no detected error. Any non-zero remainder means error.
  • Detection power for a generator with r check bits: all single-bit errors (if x^r and the constant term are present), all double errors for a suitable G, ALL ODD-numbered errors if (x + 1) divides G, all burst errors of length <= r, and a fraction 1 - 2^-r of longer bursts.
  • Polynomial view: bit string 1011 = x^3 + x + 1. Addition and subtraction are both XOR, so there is no borrow or carry; at every step XOR the divisor under the leading 1 of the current dividend.
  • Common generators: CRC-16 (x^16 + x^15 + x^2 + 1) and CRC-32 used in Ethernet. The number of check bits equals the DEGREE of G, not its number of bits.
  • Shortcut to the polynomial of a received frame: if the frame bits are 1 0 0 1 1 1 0 they represent x^6 + x^3 + x^2 + x. A frame is VALID exactly when G(x) divides this polynomial (remainder 0). The error pattern E(x) goes undetected only if G(x) divides E(x).
  • Why (x + 1) matters: if G(x) has the factor (x + 1) it detects every odd number of flipped bits, because any polynomial with an odd number of terms is not divisible by (x + 1). CRC-16 and CRC-CCITT contain this factor.
MethodCheck bitsDetectsMisses
Single parity1any odd number of bit errorsall even-numbered error patterns
Internet checksum16most random errorsswapped words, compensating errors
CRC (degree r)rall bursts <= r, all odd errors if (x + 1) divides Gfraction 2^-r of long bursts
Hamming coder (2^r >= m + r + 1)detects 2-bit, corrects 1-bit errorsmulti-bit errors can be mis-corrected

Worked example

Problem. Find the CRC transmitted for data 1001 with generator x^3 + x + 1.

Solution. G = 1011, r = 3, so append three zeros: 1001000. XOR 1011 under the leading 1: 1001000 XOR 1011000 = 0010000. XOR 1011 under the next 1 (shifted by two): 0010000 XOR 0010110 = 0000110. Remainder = 110. Transmitted frame = 1001 110 = 1001110, which is divisible by 1011. (Other worked cases: data 1101011011 with G = 10011 gives remainder 1110; data 10110011 with G = 1101 gives remainder 100; data 101110 with G = 1001 (x^3 + 1) gives remainder 011, so the codeword is 101110011.) Receiver check for the first case: 1001110 divided by 1011 leaves remainder 0.

Modulo-2 long division of 1001000 by 1011 giving remainder 110 and the transmitted codeword 1001110
CRC long division by XOR: append r = 3 zeros, divide by 1011, append the remainder 110; the receiver gets remainder 0.

Flow control and sliding window protocols

  • Let Tt = L / B be the frame transmission time and Tp the one-way propagation time. Define a = Tp / Tt. The ACK is assumed to be tiny, so the round trip adds 2 * Tp.
  • STOP-AND-WAIT: send one frame, wait for its ACK. Cycle time = Tt + 2 Tp, so efficiency (link utilisation) = Tt / (Tt + 2 Tp) = 1 / (1 + 2a). Sender window = receiver window = 1; sequence numbers 0 and 1 are enough.
  • SLIDING WINDOW with sender window N keeps N frames in flight: efficiency = N / (1 + 2a), capped at 1. Full utilisation needs N >= 1 + 2a. Throughput = efficiency * bandwidth.
  • GO-BACK-N (GBN): sender window N <= 2^k - 1 for k-bit sequence numbers; RECEIVER window is 1 (accepts only in-order frames, discards the rest). On a loss or timeout the sender retransmits the lost frame AND all frames after it. Uses cumulative ACKs.
  • SELECTIVE REPEAT (SR): sender window = receiver window = N <= 2^(k - 1). The receiver buffers out-of-order frames and acknowledges each one; only the lost frame is retransmitted. Better on lossy links but needs more buffer.
  • To get the number of sequence bits: for GBN need N + 1 <= 2^k; for SR need 2N <= 2^k; for stop-and-wait 1 bit. Piggybacking carries ACKs in reverse-direction data frames.
  • If the ACK frame has a transmission time Ta, the cycle becomes Tt + 2 Tp + Ta and stop-and-wait efficiency = Tt / (Tt + 2 Tp + Ta). If the question says ACK size is negligible, set Ta = 0.
  • With FRAME ERROR probability p (and a window big enough, N >= 1 + 2a): each frame is sent 1 / (1 - p) times on average. Stop-and-wait efficiency = (1 - p) / (1 + 2a); Go-Back-N = (1 - p) / (1 + 2a p) because each loss costs about 1 + 2a frames; Selective Repeat = 1 - p because only the bad frame is repeated.
  • For a question asking the MINIMUM sequence-number bits for full utilisation, take the window N = 1 + 2a and apply N + 1 <= 2^k (GBN) or 2N <= 2^k (SR). If the window is capped by a smaller value, size the bits from the actual window instead. TCP is closest to GBN with cumulative ACKs plus buffering of out-of-order data.

Formulas to remember

  • a = Tp / Tt; Tt = L / B
  • Stop-and-wait efficiency = 1 / (1 + 2a)
  • Sliding window efficiency = min(1, N / (1 + 2a))
  • GBN: sender window <= 2^k - 1, receiver window = 1
  • SR: sender window = receiver window <= 2^(k - 1)
  • Throughput = efficiency * bandwidth
  • With ACK time Ta: efficiency = Tt / (Tt + 2 Tp + Ta)
  • Error probability p: SW (1 - p)/(1 + 2a); GBN (1 - p)/(1 + 2a p); SR (1 - p)

Worked example

Problem. A 1 Mbps link has 20 ms one-way propagation delay and 1000-bit frames. Find the stop-and-wait efficiency and the window size and sequence bits needed for 100% utilisation with GBN and SR. Then, for a 10 Mbps link with 1250-byte frames and Tp = 15 ms, find the efficiency and throughput with stop-and-wait and with window 8, and the sequence bits for full use.

Solution. Tt = 1000 / 10^6 = 1 ms, Tp = 20 ms, a = 20. Stop-and-wait efficiency = 1 / 41 = 2.44%. Full utilisation needs N = 1 + 2a = 41. GBN: N + 1 = 42 <= 2^k gives k = 6 bits. SR: 2N = 82 <= 2^k gives k = 7 bits. Second link: Tt = 10,000 / 10^7 = 1 ms, a = 15, 1 + 2a = 31. Stop-and-wait: 1/31 = 3.2%, throughput 0.32 Mbps. Window 8: 8/31 = 25.8%, throughput 2.58 Mbps. Full use needs N = 31, so GBN needs 32 <= 2^k (k = 5) and SR needs 62 <= 2^k (k = 6). With p = 0.1 and a = 15 and a large window: GBN = 0.9 / (1 + 2 * 15 * 0.1) = 0.9 / 4 = 22.5%, SR = 90%, stop-and-wait = 0.9 / 31 = 2.9%.

Stop-and-wait, Go-Back-N and Selective Repeat compared when frame 2 is lost, with efficiency formulas and a worked numerical
Stop-and-wait idles for 2 Tp; Go-Back-N resends frame 2 and everything after it; Selective Repeat resends only frame 2.

Medium access control and Ethernet

  • PURE ALOHA: stations transmit whenever they have data; collisions destroy frames. Throughput S = G * e^(-2G), maximum 1 / (2e) = 18.4% at G = 0.5. SLOTTED ALOHA: transmit only at slot boundaries; S = G * e^(-G), maximum 1 / e = 36.8% at G = 1.
  • CSMA senses the carrier before sending. 1-persistent sends immediately when idle (and keeps waiting while busy); non-persistent backs off for a random time when busy; p-persistent sends with probability p in an idle slot.
  • CSMA/CD (wired Ethernet) also listens while sending and aborts on a collision. To detect a collision before the frame ends, the sender must still be transmitting when the jam returns: Tt >= 2 Tp, i.e. MINIMUM frame size = 2 * Tp * bandwidth.
  • BINARY EXPONENTIAL BACKOFF: after the n-th collision pick K uniformly from {0, 1, ..., 2^n - 1} (exponent capped at 10) and wait K slot times (slot = 512 bit times = 51.2 microseconds at 10 Mbps); give up after 16 attempts.
  • CSMA/CA (802.11 Wi-Fi) cannot detect collisions while transmitting; it uses random backoff, link-layer ACKs and optional RTS/CTS to handle HIDDEN and EXPOSED terminals.
  • ETHERNET frame: preamble 7 bytes + SFD 1 byte, destination MAC 6, source MAC 6, type/length 2, data 46 to 1500 bytes (padded if shorter), FCS (CRC-32) 4. Minimum frame = 64 bytes (excluding preamble), maximum = 1518 bytes. MAC addresses are 48 bits.
  • A HUB is one collision domain. A BRIDGE/SWITCH learns source MACs, floods unknown destinations, filters local traffic, and gives every port its own collision domain but one broadcast domain (unless VLANs are used). Spanning Tree Protocol removes switching loops.
  • VULNERABLE TIME: pure ALOHA = 2 * frame time (a frame collides with any frame started in the window before or after it); slotted ALOHA = 1 frame time. This is why slotting doubles the throughput. G is the average number of frames offered per frame time, S the successful ones per frame time.
  • CSMA/CD EFFICIENCY: with a = Tp / Tt, a standard GATE approximation is 1 / (1 + 6.44 a) (about 2e + 1 slots per successful frame). It falls as the distance or the speed grows because a grows; hence 1 Gbps Ethernet needs carrier extension or frame bursting to keep the 512-bit slot meaningful.
  • TOKEN RING: a station may send only when it holds the token. With ring latency Tp and N stations, early token release (token released right after the frame is sent) gives efficiency 1 / (1 + a / N); delayed release (token released after the frame returns) gives 1 / (1 + (N + 1) a / N), where a = Tp / Tt. Token passing is collision-free and gives bounded delay.
  • Ethernet payload efficiency = payload / (payload + 18) with header and FCS counted (1500 / 1518 = 98.8%). Frames shorter than 46 data bytes are padded to the 64-byte minimum, so the minimum payload efficiency is 46 / 64 = 71.9%. The jam signal is 32 to 48 bits and the inter-frame gap 96 bit times.

Formulas to remember

  • Pure ALOHA: S = G * e^(-2G), max 1/(2e) = 0.184
  • Slotted ALOHA: S = G * e^(-G), max 1/e = 0.368
  • CSMA/CD: minimum frame bits = 2 * Tp * B
  • Backoff after n-th collision: K in {0, ..., 2^n - 1}
ProtocolMaximum efficiencyKey rule
Pure ALOHA1 / (2e) = 18.4%send any time, vulnerable time 2 * frame time
Slotted ALOHA1 / e = 36.8%send only at slot start, vulnerable time 1 frame time
CSMA/CDabout 1 / (1 + 6.44 a)listen before and during sending; min frame 2 * Tp * B
Token ring (early release)1 / (1 + a / N)only the token holder transmits; no collisions
CSMA/CA (802.11)depends on backoff and ACKsbackoff + link ACK + optional RTS/CTS

Worked example

Problem. A 10 Mbps CSMA/CD network has a one-way propagation delay of 25.6 microseconds. Find the minimum frame size. Then find the minimum frame for a 1 Gbps network of 200 m (signal speed 2 x 10^8 m/s), the maximum distance at 100 Mbps with the 64-byte minimum frame, and the CSMA/CD efficiency for 1000-byte frames on the first network.

Solution. Round-trip time = 2 * 25.6 = 51.2 microseconds. Minimum frame = 51.2 * 10^-6 s * 10 * 10^6 bps = 512 bits = 64 bytes, which is exactly the Ethernet minimum. 1 Gbps, 200 m: Tp = 200 / (2 x 10^8) = 1 microsecond, so minimum frame = 2 * 10^-6 * 10^9 = 2000 bits = 250 bytes. 100 Mbps with 512 bits: 2 Tp = 512 / 10^8 = 5.12 microseconds, so Tp = 2.56 microseconds and distance = 2.56 x 10^-6 * 2 x 10^8 = 512 m. Efficiency: Tt = 8000 / 10^7 = 0.8 ms, a = 25.6 / 800 = 0.032, efficiency = 1 / (1 + 6.44 * 0.032) = 1 / 1.206 = 82.9%.

Exam tips

  • CRC: append r zeros (r = degree of G), XOR-divide, append the r-bit remainder; check by dividing again for zero remainder.
  • Stop-and-wait efficiency = 1 / (1 + 2a) with a = Tp / Tt; throughput = efficiency * bandwidth.
  • GBN needs N + 1 <= 2^k, SR needs 2N <= 2^k; GBN receiver window = 1, SR receiver window = N.
  • Minimum Ethernet frame (CSMA/CD) = 2 * Tp * bandwidth; larger distance or higher speed means a larger minimum frame.
  • Detect e errors needs dmin = e + 1; correct t errors needs dmin = 2t + 1.
Exam pattern · 10 questions

GATE sample questions & answers

10 GATE-style MCQs for Data Link Layer with full explanations. Attempt each question before revealing the answer.

Q1 Classic GATE bit stuffing

With the bit-stuffing flag 01111110, the data 0111111011111 is transmitted (ignoring the flags) as:

  • A) 0111110101111100
  • B) 011111010111110
  • C) 0111111011111
  • D) 01111101011111
Show answer & explanation

Answer: B

A 0 is inserted after each run of five consecutive 1s: 0 11111 0 1 0 11111 0 = 011111010111110 (15 bits).

Q2

The CRC generator polynomial is x^3 + x + 1 and the data is 1001. The transmitted codeword is:

  • A) 1001110
  • B) 1001101
  • C) 1001011
  • D) 1001000
Show answer & explanation

Answer: A

Divide 1001000 by 1011 (mod 2): the remainder is 110, so the codeword is 1001 followed by 110.

Q3

What minimum Hamming distance is required for a code to correct any 2-bit errors?

  • A) 3
  • B) 4
  • C) 5
  • D) 6
Show answer & explanation

Answer: C

Correcting t errors needs dmin >= 2t + 1 = 5.

Q4

A 1 Mbps link has 20 ms one-way propagation delay and carries 1000-bit frames using stop-and-wait (ACK size negligible). The efficiency is approximately:

  • A) 2.4%
  • B) 4.8%
  • C) 5%
  • D) 50%
Show answer & explanation

Answer: A

Tt = 1 ms, Tp = 20 ms, so efficiency = 1 / (1 + 2 * 20) = 1 / 41, about 2.4%.

Q5

For the same link, the minimum number of sequence-number bits so that Go-Back-N can fully utilise the link is:

  • A) 5
  • B) 6
  • C) 7
  • D) 8
Show answer & explanation

Answer: B

Window needed = 1 + 2a = 41. GBN needs N + 1 = 42 <= 2^k, so k = 6.

Q6

For the same link, the minimum number of sequence-number bits so that Selective Repeat can fully utilise the link is:

  • A) 5
  • B) 6
  • C) 7
  • D) 8
Show answer & explanation

Answer: C

SR needs 2N = 82 <= 2^k, so k = 7.

Q7

The maximum throughput of pure ALOHA as a fraction of channel capacity is:

  • A) 0.368
  • B) 0.184
  • C) 0.5
  • D) 1.0
Show answer & explanation

Answer: B

S = G e^(-2G) is maximised at G = 0.5, giving 1 / (2e), about 0.184.

Q8

In a 10 Mbps CSMA/CD Ethernet the one-way propagation delay is 25.6 microseconds. The minimum frame size is:

  • A) 32 bytes
  • B) 64 bytes
  • C) 128 bytes
  • D) 512 bytes
Show answer & explanation

Answer: B

2 * 25.6 us * 10 Mbps = 512 bits = 64 bytes.

Q9

A single even-parity bit appended to a data word can detect:

  • A) all burst errors
  • B) any odd number of bit errors
  • C) any even number of bit errors
  • D) all single and double bit errors
Show answer & explanation

Answer: B

An odd number of flipped bits changes the parity; an even number of flips leaves it unchanged.

Q10

A device that gives each of its ports a separate collision domain but keeps a single broadcast domain is a:

  • A) hub
  • B) repeater
  • C) layer-2 switch
  • D) router
Show answer & explanation

Answer: C

A switch isolates collisions per port but forwards broadcast frames to all ports (without VLANs).

Topic drill · 10 questions

10 practice questions — Data Link Layer

Extra page-specific practice beyond the GATE samples. Attempt all 10, then reveal answers to check your reasoning.

P1

In Go-Back-N with window size 7, frames 0 to 6 are sent and frame 3 is lost (the others arrive). How many frames are retransmitted?

  • A) 1
  • B) 3
  • C) 4
  • D) 7
Show answer & explanation

Answer: C) 4

The receiver discards frames 4, 5 and 6 as out of order, so frames 3, 4, 5 and 6 are all resent.

P2

The same loss in Selective Repeat (only frame 3 is lost) causes how many retransmissions?

  • A) 1
  • B) 3
  • C) 4
  • D) 7
Show answer & explanation

Answer: A) 1

SR buffers frames 4 to 6 and retransmits only frame 3.

P3

What is the maximum sender window size of Go-Back-N with 3-bit sequence numbers?

  • A) 3
  • B) 4
  • C) 7
  • D) 8
Show answer & explanation

Answer: C) 7

GBN allows 2^k - 1 = 7 outstanding frames.

P4

The minimum number of check bits needed for a Hamming code protecting 11 data bits is:

  • A) 3
  • B) 4
  • C) 5
  • D) 6
Show answer & explanation

Answer: B) 4

Need 2^r >= 11 + r + 1. For r = 3: 8 < 15; for r = 4: 16 >= 16. So r = 4.

P5

The throughput of slotted ALOHA at offered load G = 1 is:

  • A) 0.184
  • B) 0.368
  • C) 0.5
  • D) 1.0
Show answer & explanation

Answer: B) 0.368

S = G e^(-G) = e^(-1) = 0.368.

P6

In 10 Mbps Ethernet (slot time 51.2 microseconds), after the 3rd collision the maximum backoff delay a station can choose is:

  • A) 51.2 us
  • B) 153.6 us
  • C) 358.4 us
  • D) 819.2 us
Show answer & explanation

Answer: C) 358.4 us

K is chosen from {0, ..., 2^3 - 1} = {0, ..., 7}; the maximum wait is 7 * 51.2 = 358.4 microseconds.

P7

For the generator polynomial x^4 + x + 1, the generator bit string and the number of check bits appended are:

  • A) 10011 and 4
  • B) 10011 and 5
  • C) 1011 and 3
  • D) 11001 and 4
Show answer & explanation

Answer: A) 10011 and 4

x^4 + x + 1 = 1 0 0 1 1 (5 bits) and the degree is 4, so 4 check bits.

P8

The CRC remainder of data 10110011 with generator 1101 (x^3 + x^2 + 1) is:

  • A) 001
  • B) 010
  • C) 100
  • D) 111
Show answer & explanation

Answer: C) 100

Dividing 10110011000 by 1101 using modulo-2 arithmetic leaves the 3-bit remainder 100.

P9

IEEE 802.11 uses CSMA/CA instead of CSMA/CD mainly because:

  • A) wireless frames have no CRC
  • B) a radio cannot detect collisions while transmitting and hidden terminals exist
  • C) it needs larger frames
  • D) it uses TCP
Show answer & explanation

Answer: B) a radio cannot detect collisions while transmitting and hidden terminals exist

Collision detection is impractical on wireless media, so collision avoidance with ACKs and optional RTS/CTS is used.

P10

A 2 Mbps link carries 1000-byte frames with a one-way propagation delay of 8 ms using stop-and-wait (negligible ACK size). The effective throughput is:

  • A) 0.2 Mbps
  • B) 0.4 Mbps
  • C) 0.8 Mbps
  • D) 2 Mbps
Show answer & explanation

Answer: B) 0.4 Mbps

Tt = 8000 / 2 x 10^6 = 4 ms, a = 8 / 4 = 2, efficiency = 1 / (1 + 4) = 0.2, throughput = 0.2 * 2 Mbps = 0.4 Mbps.

Topic FAQs

How many check bits does a CRC with generator 10011 add?

Four. The number of check bits equals the degree of the generator polynomial; 10011 is x^4 + x + 1, so r = 4 and the remainder is 4 bits long.

Why must the Go-Back-N window be smaller than 2^k?

If the window were 2^k, a lost ACK for a whole window would make the receiver accept a retransmitted old frame as a new one because the sequence numbers would repeat. The limit 2^k - 1 (N + 1 <= 2^k) avoids this ambiguity.

Why is a minimum frame size needed in Ethernet?

A sender can detect a collision only while it is still transmitting. The frame time must be at least the round-trip propagation time (2 Tp), otherwise the sender would finish before the collision signal returns and would think the frame was delivered.

What is the difference between collision domain and broadcast domain?

A collision domain is the set of stations whose simultaneous transmissions collide (hub: all ports; switch: one port). A broadcast domain is the set of stations that receive a broadcast frame (switch: all ports; router: one interface).

Quick revision · 10 cards

10 flashcards — Data Link Layer

Hover a card to reveal the answer with a 3D flip. On touch devices, tap the card or use Show answer.

Q1 Bit stuffing rule?
Q2 CRC steps?
Q3 Detect vs correct errors with Hamming distance?
Q4 Hamming code check-bit condition?
Q5 Stop-and-wait efficiency?
Q6 Window limits for GBN and SR with k bits?
Q7 Maximum throughput of ALOHA variants?
Q8 Minimum frame size in CSMA/CD?
Q9 Ethernet frame field sizes?
Q10 Why does Wi-Fi use CSMA/CA, not CSMA/CD?