GATE 2008
185 questions
MCQ 1851-mark 52 · 2-mark 133
Questions 166–170 of 185
The minimum frame size required for a CSMA/CD based computer network running at 1Gbps on a 200m cable with a link speed of is:
Answer: (B)
We need a minimum frame size so that collisions are detected properly. With this size, the sender is told about any collision before it has finished sending the frame, so collision detection works.
In CSMA/CD, a sender does 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, B may still use the cable until it learns that a packet is coming. B learns this as soon as the first bit arrives, and after that it sends nothing 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 channel, this time is just .) In this case there will surely be a collision. But for A to detect it, A must hear about B's packet before it finishes sending the first packet. B's packet takes another to reach A, so A must still be sending during this whole interval of . Thus,
The number of bits A can send in should be less than the frame size (S), since the sending of the frame must not finish in this time.
The number of bits sent in time is , and the propagation delay is .
So,
bits
bytes
Correct Answer:
In CSMA/CD, a sender does 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, B may still use the cable until it learns that a packet is coming. B learns this as soon as the first bit arrives, and after that it sends nothing 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 channel, this time is just .) In this case there will surely be a collision. But for A to detect it, A must hear about B's packet before it finishes sending the first packet. B's packet takes another to reach A, so A must still be sending during this whole interval of . Thus,
The number of bits A can send in should be less than the frame size (S), since the sending of the frame must not finish in this time.
The number of bits sent in time is , and the propagation delay is .
So,
bits
bytes
Correct Answer:
A 1 Mbps satellite link connects two ground stations. The altitude of the satellite is 36,504 km and speed of the signal is m/s. What should be the packet size for a channel utilization of 25% for a satellite link using go-back-127 sliding window protocol?
Assume that the acknowledgment packets are negligible in size and that there are no errors during communication.
Assume that the acknowledgment packets are negligible in size and that there are no errors during communication.
Answer: (A)
Distance from a ground station to the satellite m.
Time for the signal to reach the satellite
A bit goes S1 satellite S2, and the ACK comes back S2 satellite S1. So .
Let be the packet size in bits and bps the link rate.
In Go-Back-N with , the sender can send packets, so the useful data in one cycle is . The cycle lasts until the first ACK returns: the transmission time of one packet plus the (the ACK transmission time is ignored, as the question says). In that time the link could carry bits.
Answer: (A)
Host X has IP address 192.168.1.97 and is connected through two routers R1 and R2 to another host Y with IP address 192.168.1.80. Router R1 has IP addresses 192.168.1.135 and 192.168.1.110. R2 has IP addresses 192.168.1.67 and 192.168.1.155. The netmask used in the network is 255.255.255.224.
Which IP address should X configure its gateway as?
Which IP address should X configure its gateway as?
Answer: (B)
With mask the last octet of the mask is , so subnets are 32 addresses wide and the subnet number is the IP address ANDed with the mask.
X: , and . X is in subnet 192.168.1.96, which holds 96 to 127.
X can send directly only to a gateway in the same subnet. Check the four router addresses:
- 192.168.1.67 subnet 64 (64 to 95). It belongs to R2 and is in the same subnet as Y.
- 192.168.1.110 subnet 96. Same as X.
- 192.168.1.135 subnet 128 (128 to 159).
- 192.168.1.155 subnet 128.
Only 192.168.1.110 (router R1) is in X's subnet. The path is X, R1 (110 and 135), R2 (155 and 67), then Y.
Answer: (B)
X: , and . X is in subnet 192.168.1.96, which holds 96 to 127.
X can send directly only to a gateway in the same subnet. Check the four router addresses:
- 192.168.1.67 subnet 64 (64 to 95). It belongs to R2 and is in the same subnet as Y.
- 192.168.1.110 subnet 96. Same as X.
- 192.168.1.135 subnet 128 (128 to 159).
- 192.168.1.155 subnet 128.
Only 192.168.1.110 (router R1) is in X's subnet. The path is X, R1 (110 and 135), R2 (155 and 67), then Y.
Answer: (B)
Host X has IP address 192.168.1.97 and is connected through two routers R1 and R2 to another host Y with IP address 192.168.1.80. Router R1 has IP addresses 192.168.1.135 and 192.168.1.110. R2 has IP addresses 192.168.1.67 and 192.168.1.155. The netmask used in the network is 255.255.255.224.
Given the information above, how many distinct subnets are guaranteed to already exist in the network?
Given the information above, how many distinct subnets are guaranteed to already exist in the network?
Answer: (C)
Take the bitwise AND of each address with the subnet mask.
The last bits always become 0 after the AND.
There is no need to write the full binary.
Look only at the first to bits of the last octet.
(From the left, bit number has value , the next has value , the next has value , and so on.)
: something, so the first to bits will be
: something, so
: something, so
: something, so
: something, so
: something, so
So we get
subnets. The subnet IDs are:
Correct Answer:
Two popular routing algorithms are Distance Vector(DV) and Link State (LS) routing. Which of the following are true?
(S1): Count to infinity is a problem only with DV and not LS routing
(S2): In LS, the shortest path algorithm is run only at one node
(S3): In DV, the shortest path algorithm is run only at one node
(S4): DV requires lesser number of network messages than LS
(S1): Count to infinity is a problem only with DV and not LS routing
(S2): In LS, the shortest path algorithm is run only at one node
(S3): In DV, the shortest path algorithm is run only at one node
(S4): DV requires lesser number of network messages than LS
Answer: (D)
S1 is true. Count to infinity happens in distance vector (DV) because a node trusts the cost its neighbour reports, and stale costs can keep circulating. In link state (LS) every node has the full map of the network, so it does not occur.
S2 is false. In LS every node floods its link information, builds the full map, and runs Dijkstra's algorithm itself, so it runs at every node.
S3 is false. In DV every node runs the Bellman-Ford update on its own table, so it too runs at every node.
S4 is true. In DV a node sends its table only to its neighbours. In LS each node floods its link information to all nodes, which takes many more messages.
So only S1 and S4 are true.
Answer: (D)
S2 is false. In LS every node floods its link information, builds the full map, and runs Dijkstra's algorithm itself, so it runs at every node.
S3 is false. In DV every node runs the Bellman-Ford update on its own table, so it too runs at every node.
S4 is true. In DV a node sends its table only to its neighbours. In LS each node floods its link information to all nodes, which takes many more messages.
So only S1 and S4 are true.
Answer: (D)