CN Data Link Layer

Question 1
Determine the maximum length of the cable (in km) for transmitting data at a rate of 500 Mbps in an Ethernet LAN with frames of size 10,000 bits. Assume the signal speed in the cable to be 2,00,000 km/s.
A
1
B
2
C
2.5
D
5
CN Data Link Layer    
Discuss it


Question 1 Explanation: 
Data should be transmitted at the rate of 500 Mbps.
Transmission Time >= 2*Propagation Time
=> 10000/(500*1000000) <= 2*length/200000
=> lenght = 2km (max)
so, answer will be: (B) 2km 
Question 2
Determine the maximum length of the cable (in km) for transmitting data at a rate of 500 Mbps in an Ethernet LAN with frames of size 10,000 bits. Assume the signal speed in the cable to be 2,00,000 km/s.
A
1
B
2
C
2.5
D
5
CN Data Link Layer    
Discuss it


Question 2 Explanation: 
Data should be transmitted at the rate of 500 Mbps.
Transmission Time >= 2*Propagation Time
=> 10000/(500*1000000) <= 2*length/200000
=> lenght = 2km (max)
so, answer will be: (B) 2km 
Question 3
Let G(x) be the generator polynomial used for CRC checking. What is the condition that should be satisfied by G(x) to detect odd number of bits in error?
A
G(x) contains more than two terms
B
G(x) does not divide 1+x^k, for any k not exceeding the frame length
C
1+x is a factor of G(x)
D
G(x) has an odd number of terms.
CN Data Link Layer    GATE-CS-2009    
Discuss it


Question 3 Explanation: 
Odd number of bit errors can be detected if G(x) contains (x+1) as a factor. See this for proof.
Question 4
Frames of 1000 bits are sent over a 10^6 bps duplex link between two hosts. The propagation time is 25ms. Frames are to be transmitted into this link to maximally pack them in transit (within the link). What is the minimum number of bits (i) that will be required to represent the sequence numbers distinctly? Assume that no time gap needs to be given between transmission of two frames.
A
i = 2
B
i = 3
C
i = 4
D
i = 5
CN Data Link Layer    GATE-CS-2009    
Discuss it


Question 4 Explanation: 
Transmission delay for 1 frame = 1000/(10^6) = 1 ms Propagation time = 25 ms The sender can atmost transfer 25 frames before the first frame reaches the destination. The number of bits needed for representing 25 different frames = 5
Question 5
Consider the data of previous question. Suppose that the sliding window protocol is used with the sender window size of 2^i where is the number of bits identified in the previous question and acknowledgments are always piggybacked. After sending 2^i frames, what is the minimum time the sender will have to wait before starting transmission of the next frame? (Identify the closest choice ignoring the frame processing time.)
A
16ms
B
18ms
C
20ms
D
22ms
CN Data Link Layer    GATE-CS-2009    
Discuss it


Question 5 Explanation: 
Size of sliding window = 2^5 = 32 Transmission time for a frame = 1ms Total time taken for 32 frames = 32ms The sender cannot receive acknoledgement before round trip time which is 50ms After sending 32 frames, the minimum time the sender will have to wait before starting transmission of the next frame = 50 – 32 = 18
Question 6
In Ethernet when Manchester encoding is used, the bit rate is:
A
Half the baud rate.
B
Twice the baud rate.
C
Same as the baud rate.
D
None of the above
CN Data Link Layer    GATE-CS-2007    
Discuss it


Question 6 Explanation: 
In Manchester encoding, the bitrate is half of the baud rate.
Question 7
There are n stations in a slotted LAN. Each station attempts to transmit with a probability p in each time slot. What is the probability that ONLY one station transmits in a given time slot?
A
(1-p)(n-1)
B
np(1-p)(n-1)
C
p(1-p)(n-1)
D
1-(1-p)(n-1)
CN Data Link Layer    GATE-CS-2007    
Discuss it


Question 7 Explanation: 
 

P(X) = Probability that station X attempts to transmit = P P (-X) = Probability that station X does not transmit = 1-P Required is: Probability that only one station transmits = y

Y = (A1, -A2, -A3...... -An) + (-A1, A2, A3......-An) + (-A1, -A2, A3.....-An) + ........... + (-A1, -A2, -A3......An) = (p*(1-p)*(1-p)*...... (1-p) + (1-p)*p*(1-p)........(1-p) + ............. = p*(1-p)^(n-1) + p*(1-p)^n-1 + .................................................... + p*(1-p)^(n-1) = n*p*(1-p)^(n-1)

This solution is contributed Anil Saikrishna Devarasetty .

See question 3 of http://www.geeksforgeeks.org/computer-networks-set-9/
Question 8
In a token ring network the transmission speed is 10^7 bps and the propagation speed is 200 metres/micro second. The 1-bit delay in this network is equivalent to:
A
500 metres of cable.
B
200 metres of cable.
C
20 metres of cable.
D
50 metres of cable.
CN Data Link Layer    GATE-CS-2007    
Discuss it


Question 8 Explanation: 
Question 9
The message 11001001 is to be transmitted using the CRC polynomial x^3 + 1 to protect it from errors. The message that should be transmitted is:
A
11001001000
B
11001001011
C
11001010
D
110010010011
CN Data Link Layer    GATE-CS-2007    
Discuss it


Question 9 Explanation: 
Question 10
The distance between two stations M and N is L kilometers. All frames are K bits long. The propagation delay per kilometer is t seconds. Let R bits/second be the channel capacity. Assuming that processing delay is negligible, the minimum number of bits for the sequence number field in a frame for maximum utilization, when the sliding window protocolis used, is: GATECS200770
A
A
B
B
C
C
D
D
CN Data Link Layer    GATE-CS-2007    
Discuss it


Question 10 Explanation: 
There are 112 questions to complete.


My Personal Notes arrow_drop_up


Writing code in comment? Please use ide.geeksforgeeks.org, generate link and share the link here.