GATE 2005
203 questions
MCQ 2031-mark 203
Questions 176–180 of 203
Answer: (D)
In packet switching, splitting a message into packets cuts the transmission time, because the packets move in a pipeline.
But if the number of packets goes past a certain limit, the transmission time can go up again. So we check each option.
1. Packet size
The number of packets
.
The time for the packet to reach the receiver is:
... Here changes with each option, and stays the same.
The time for the packet to reach the receiver
The remaining packets take
Total time:
2. Packet size So the number of packets is .
The time for the packet to reach the receiver
The remaining packets take
Total time:
3. Packet size So the number of packets
For the packet, the time
The remaining packets take
Total time: .
4. Packet size So the number of packets is
For the packet, the time
The remaining packets take
Total time:
So the best packet size is , because it gives the least total transmission time.
Alternate method
Here we can minimise a variable.
Let the of data be split into packets, each with of data.
So the packet size and the number of packets is .
(Take the ceiling if is not a multiple of )
Total time = ( is assumed only so we need not write ‘’ again and again)
(Propagation delay is left out as it does not depend on packet size. You may add it, but it becomes zero when you differentiate.)
Total time ( is equal to )
Total time
Total time
To minimise this time, the derivative should be
This gives
.
Adding the of header, the packet size .
Answer: (D)
Answer: (A)
Divide 101000110100000 by 110101 using XOR (modulo-2 division), bringing down bits as needed:
1. 101000 XOR 110101 = 011101. Bring down 1: 111011.
2. 111011 XOR 110101 = 001110. Bring down 1, 0: 111010.
3. 111010 XOR 110101 = 001111. Bring down 1, 0: 111110.
4. 111110 XOR 110101 = 001011. Bring down 0, 0: 101100.
5. 101100 XOR 110101 = 011001. Bring down 0: 110010.
6. 110010 XOR 110101 = 000111. Bring down the last 0: remainder 01110.
The CRC is the 5-bit remainder 01110. The transmitted message is 1010001101 01110.
Answer: (A)
Answer: (C)
End-to-end propagation delay:
Each slot is , and only of it carries data. Network efficiency
Total throughput the whole network can give
Take the number of stations as (each wants a throughput of ):
So at most 10 stations can be connected to the channel.
Answer: (C)
Answer: (D)
To get utilization with Stop-and-wait, we need:
Here, is the transmission time and is the propagation delay. Also, where is the frame length in bits and is the bitrate of the channel.
So, the answer is D.
Answer: (A)
We need a minimum frame size so that collisions are detected properly. With this size, the sender learns about any collision before it has finished sending the frame.
In CSMA/CD, a sender will not send a packet if it senses that another sender is using the cable. Take a sender A and a receiver B. While A sends a packet, B may still use the cable until it is told that a packet is coming. B learns this as soon as the first bit arrives, and after that it will not send any packet until that packet is finished. So, in the worst case, B sends a packet back just before the first bit of A's packet reaches it. (If is the propagation delay of the cable, this time is just .) In this case there will surely be a collision. But A can only detect it if it hears B's packet before it finishes sending its own. B's packet takes another to reach A, so A must still be sending after a time .
So the transmission time of the frame must be at least . The number of bits sent in time is , and the propagation delay is . Here the bandwidth is 1 Gbps bps and the signal speed is m/s.
So, frame size
Answer: (A)