GATE 2006
191 questions
MCQ 1911-mark 191
Questions 176–180 of 191
Station A needs to send a message consisting of 9 packets to Station B using a siding window (window size 3) and go-back-n error control strategy. All packets are ready and immediately available for transmission. If every 5th packet that A transmits gets lost (but no acks from B ever get lost), then what is the number of packets that A will transmit for sending the message to B ?
Answer: (C)
Window size 3, go-back-N: if a packet is lost, the receiver discards the later packets, and the sender goes back and resends the lost packet and everything after it in the window.
Count transmissions in order (every 5th one, the 5th, 10th and 15th, is lost; these are the grey packets in the figure).
Transmissions 1 to 4 are packets 1, 2, 3, 4. The 5th transmission, packet 5, is lost. Packets 6 and 7 are still sent but discarded. That is 7 transmissions.
Resend 5, 6, 7. The 10th transmission (packet 7) is lost. Packets 8 and 9 are sent but discarded. That is 5 more, total 12.
Resend 7, 8, 9. The 15th transmission (packet 9) is lost. That is 3 more, total 15.
Resend packet 9, which gets through. That is 1 more.
Total transmissions.
Answer: (C)
Count transmissions in order (every 5th one, the 5th, 10th and 15th, is lost; these are the grey packets in the figure).
Transmissions 1 to 4 are packets 1, 2, 3, 4. The 5th transmission, packet 5, is lost. Packets 6 and 7 are still sent but discarded. That is 7 transmissions.
Resend 5, 6, 7. The 10th transmission (packet 7) is lost. Packets 8 and 9 are sent but discarded. That is 5 more, total 12.
Resend 7, 8, 9. The 15th transmission (packet 9) is lost. That is 3 more, total 15.
Resend packet 9, which gets through. That is 1 more.
Total transmissions.
Answer: (C)
Station A uses 32 byte packets to transmit messages to Station B using a sliding window protocol. The round trip delay between A and B is 80 milliseconds and the bottleneck bankwidth on the path between A and B is 128 kbps. What is the optimal window size that A should use ?
Answer: (B)
The round trip delay is . The sender should keep sending during this time, until the first comes back, so the link is never idle.
Data the link can carry in .
Packet size .
Optimal window size .
Same result by time: one packet takes to send, so in the sender sends packets. Here the 80 ms is taken as the whole time before the first ACK returns, so the window is exactly 40.
Answer: (B)
Data the link can carry in .
Packet size .
Optimal window size .
Same result by time: one packet takes to send, so in the sender sends packets. Here the 80 ms is taken as the whole time before the first ACK returns, so the window is exactly 40.
Answer: (B)
A subnetted Class B network has the following broadcast address: 144.16.95.255
Its subnet mask
Its subnet mask
Answer: (D)
A broadcast address has all host bits set to . The address is a Class B address, so the first 16 bits are network bits and only the third octet can change how many subnet bits there are.
Third octet , and the last octet is .
The low 5 bits of the third octet are all , but its next bit (bit 5 from the right) is . So the host part can include at most these 5 bits of the third octet. Then at least 3 bits of the third octet must be subnet bits:
- 3 subnet bits: mask
- 4 subnet bits: mask
- 5 subnet bits: mask
In each case the host bits are all in . With fewer than 3 subnet bits (for example ), the host part would contain that bit, and the address would not be a broadcast address.
All three masks fit, so none of them is necessarily the mask.
Answer: (D)
Third octet , and the last octet is .
The low 5 bits of the third octet are all , but its next bit (bit 5 from the right) is . So the host part can include at most these 5 bits of the third octet. Then at least 3 bits of the third octet must be subnet bits:
- 3 subnet bits: mask
- 4 subnet bits: mask
- 5 subnet bits: mask
In each case the host bits are all in . With fewer than 3 subnet bits (for example ), the host part would contain that bit, and the address would not be a broadcast address.
All three masks fit, so none of them is necessarily the mask.
Answer: (D)
A router uses the following routing table:
Packet bearing a destination address 144.16.68.117 arrives at the router. On which interface will it be forwarded?
Packet bearing a destination address 144.16.68.117 arrives at the router. On which interface will it be forwarded?
Answer: (C)
Destination address 144.16.68.117:
- eth3 (/27, 144.16.68.64): this range is .64-.95 117 is outside it, so no match
- eth2 (/24, 144.16.68.0): this one matches
- eth1 (/19) and eth0 (/16): these match too, but their prefixes are shorter
The longest prefix match rule gives eth2
Answer: eth2
- eth3 (/27, 144.16.68.64): this range is .64-.95 117 is outside it, so no match
- eth2 (/24, 144.16.68.0): this one matches
- eth1 (/19) and eth0 (/16): these match too, but their prefixes are shorter
The longest prefix match rule gives eth2
Answer: eth2
Two computers C1 and C2 are configured as follows. C1 has IP address 203.197.2.53 and netmask 255.255.128.0. C2 has IP address 203.197.75.201 and netmask 255.255.192.0. Which one of the following statements is true?
Answer: (C)
The subnet mask for C1 is So, C1 finds the network ID like this:
AND
AND
The two network IDs are the same.
Next, the subnet mask for is So, the network IDs it finds are:
AND
AND
The two network IDs are not the same. So, the answer is option C.