GATE 2004
199 questions
MCQ 1991-mark 199
Questions 176–180 of 199
A subnet has been assigned a subnet mask of 255.255.255.192. What is the maximum number of hosts that can belong to this subnet?
Answer: (C)
The last octet of the mask is , so the mask is 26 ones followed by 6 zeros. That leaves 6 host bits.
Number of addresses .
Two of these are reserved: the all-zeros host part is the network address and the all-ones host part is the broadcast address. So hosts .
Answer: (C)
Number of addresses .
Two of these are reserved: the all-zeros host part is the network address and the all-ones host part is the broadcast address. So hosts .
Answer: (C)
Consider three IP networks A, B and C. Host HA in network A sends messages each containing 180 bytes of application data to a host HC in network C. The TCP layer prefixes a 20 byte header to the message. This passes through an intermediate network B. The maximum packet size, including 20 byte IP header, in each network is
A : 1000 bytes
B : 100 bytes
C : 1000 bytes
The network A and B are connected through a 1 Mbps link, while B and C are connected by a 512 Kbps link (bps = bits per second).
Assuming that the packets are correctly delivered, how many bytes, including headers, are delivered to the IP layer at the destination for one application message, in the best case ? Consider only data packets.
A : 1000 bytes
B : 100 bytes
C : 1000 bytes
The network A and B are connected through a 1 Mbps link, while B and C are connected by a 512 Kbps link (bps = bits per second).
Assuming that the packets are correctly delivered, how many bytes, including headers, are delivered to the IP layer at the destination for one application message, in the best case ? Consider only data packets.
Answer: (D)
Data sent by the TCP layer bytes (application data plus TCP header). Network A allows 1000 bytes per packet, so the packet bytes passes without fragmentation. Network B has a maximum packet size of 100 bytes.
Each fragment carries a 20-byte IP header, so its data can be at most bytes. 80 is a multiple of 8, which is needed because the fragment offset is counted in units of 8 bytes, so 80 is allowed.
The 200 bytes of data split into , which makes 3 fragments of sizes bytes.
Network C allows 1000 bytes, so the fragments are not split further, and the destination receives all three. In the best case none of them is lost or fragmented again.
Total delivered to the IP layer at the destination bytes. This is the 200 bytes of data plus bytes of IP headers. The link speeds do not change this count.
Answer: (D)
Each fragment carries a 20-byte IP header, so its data can be at most bytes. 80 is a multiple of 8, which is needed because the fragment offset is counted in units of 8 bytes, so 80 is allowed.
The 200 bytes of data split into , which makes 3 fragments of sizes bytes.
Network C allows 1000 bytes, so the fragments are not split further, and the destination receives all three. In the best case none of them is lost or fragmented again.
Total delivered to the IP layer at the destination bytes. This is the 200 bytes of data plus bytes of IP headers. The link speeds do not change this count.
Answer: (D)
The routing table of a router is shown below:
On which interface will the router forward packets addressed to destinations 128.75.43.16 and 192.12.17.10 respectively?
On which interface will the router forward packets addressed to destinations 128.75.43.16 and 192.12.17.10 respectively?
Answer: (A)
The router ANDs the destination address with each mask in the table. If the result equals that row's destination, the row matches. If several rows match, the one with the longest mask (most ones) is used. If none match, the default row is used.
Packet 1, :
With : the result is , which matches the first row (Eth0).
With : , so the result is , which matches the second row (Eth1).
Both rows match. The mask is longer, so the packet goes out on Eth1.
Packet 2, :
With and the result is , which is not any destination in the table.
With the result is , which is not .
No row matches, so the default row is used: Eth2.
Answer: (A)
Packet 1, :
With : the result is , which matches the first row (Eth0).
With : , so the result is , which matches the second row (Eth1).
Both rows match. The mask is longer, so the packet goes out on Eth1.
Packet 2, :
With and the result is , which is not any destination in the table.
With the result is , which is not .
No row matches, so the default row is used: Eth2.
Answer: (A)
Which of the following is NOT true with respect to a transparent bridge and a router?
Answer: (B)
Both bridge and router selectively forward data packets True.
A bridge can drop packets that are not meant for the other side. A router can do the same.A bridge uses IP addresses while a router uses addresses False.
A bridge works at layer (data link layer), so it uses address.
A router works at layer (network layer), so it uses IP address.A bridge builds up its routing table by inspecting incoming packets True.
These are self learning bridges.A router can connect between a and a True.
A router links a home to the internet.
Correct Answer:
Suppose that the maximum transmit window size for a TCP connection is 12000 bytes. Each packet consists of 2000 bytes. At some point in time, the connection is in slow-start phase with a current transmit window of 4000 bytes. Subsequently, the transmitter receives two acknowledgments. Assume that no packets are lost and there are no time-outs. What is the maximum possible value of the current transmit window?
Answer: (B)
In slow start, the sender raises the current transmit window by one Maximum Segment Size (MSS) for every ACK it gets. Here one packet is bytes, so MSS bytes. After two ACKs:
This is below the maximum window of bytes, so the cap does not limit it.
Answer: (B)
This is below the maximum window of bytes, so the cap does not limit it.
Answer: (B)