GATE 2004
199 questions
MCQ 1991-mark 199
Questions 166–170 of 199
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 net?work 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).
What is the rate at which application data is transferred to host Hc? Ignore errors, acknowledgements, and other overheads.
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).
What is the rate at which application data is transferred to host Hc? Ignore errors, acknowledgements, and other overheads.
Answer: (B)
TCP segment = bytes. Network B allows bytes per packet including the -byte IP header, so each fragment carries at most bytes of data.
The bytes are split as , giving three IP packets of bytes. So for every message, the B-C link carries bytes (this includes all headers).
The B-C link ( kbps) is slower than the A-B link ( Mbps) and carries more bytes per message than A-B needs, so it sets the steady rate. Data waits in a queue before the slow link and the faster links keep it busy.
Time to send bytes on B-C .
Only of those bytes are application data, so
.
Answer: (B)
The bytes are split as , giving three IP packets of bytes. So for every message, the B-C link carries bytes (this includes all headers).
The B-C link ( kbps) is slower than the A-B link ( Mbps) and carries more bytes per message than A-B needs, so it sets the steady rate. Data waits in a queue before the slow link and the faster links keep it busy.
Time to send bytes on B-C .
Only of those bytes are application data, so
.
Answer: (B)
Consider a simplified time slotted MAC protocol, where each host always has data to send and transmits with probability p = 0.2 in every slot. There is no backoff and one frame can be transmitted in one slot. If more than one host transmits in the same slot, then the transmissions are unsuccessful due to collision. What is the maximum number of hosts which this protocol can support if each host has to be provided a minimum throughput of 0.16 frames per time slot?
Answer: (B)
Suppose there are such hosts.
For one host to send successfully, all the other hosts must stay silent.
So the throughput of each host is:
The bases are the same, so we compare the exponents:
Correct Answer:
For one host to send successfully, all the other hosts must stay silent.
So the throughput of each host is:
The bases are the same, so we compare the exponents:
Correct Answer:
Consider a parity check code with three data bits and four parity check bits.
Three of the Code Words are 0101011,1001101 and 1110001.
Which of the following are also code words?
I. 0010111
II. 0110110
III. 1011010
IV. 0111010
Three of the Code Words are 0101011,1001101 and 1110001.
Which of the following are also code words?
I. 0010111
II. 0110110
III. 1011010
IV. 0111010
Answer: (A)
This is a linear parity check code, so the XOR of any code words is also a code word. The first three bits are the data bits.
The data parts of the given words are 010, 100 and 111, and . So the code word for data 001 is .
Every data word is now a XOR of known ones, so we can build any code word:
I. is exactly the code word for 001. Yes.
II. Data 011 is , so its code word is . The word given is . No.
III. Data 101 is , so its code word is , the word given. Yes.
IV. Data 011 gives , not . No.
Only I and III are code words.
Answer: (A)
The data parts of the given words are 010, 100 and 111, and . So the code word for data 001 is .
Every data word is now a XOR of known ones, so we can build any code word:
I. is exactly the code word for 001. Yes.
II. Data 011 is , so its code word is . The word given is . No.
III. Data 101 is , so its code word is , the word given. Yes.
IV. Data 011 gives , not . No.
Only I and III are code words.
Answer: (A)
A 20 Kbps satellite link has a propagation delay of 400 ms. The transmitter employs the "go back n ARQ" scheme with n set to 10. Assuming that each frame is 100 byte long, what is the maximum data rate possible?
Answer: (B)
Time to transmit one frame
Propagation time . The first ACK is back after . In this time the sender can send only frames, which take to send, and then it must wait for an ACK.
Efficiency
Maximum data rate , which is closest to 10 Kbps.
Answer: (B)
Consider a 10 Mbps token ring LAN with a ring latency of 400. A host that needs to transmit seizes the token. Then it sends a frame of 1000 bytes, removes the frame after it has circulated all around the ring, and finally releases the token. This process is repeated for every frame. Assuming that only a single host wishes to transmit, the effective data rate is
Answer: (C)
Frame transmission time . Ring latency .
One cycle for the single host:
- Send the frame: . The last bit then needs one more ring latency, , to go around and come back, since the host removes the frame only after it has circulated. That is so far.
- Release the token, which travels around the ring back to the same host: .
Cycle time , in which 8000 data bits are sent.
Effective data rate Mbps (efficiency of 10 Mbps).
Answer: (C)
One cycle for the single host:
- Send the frame: . The last bit then needs one more ring latency, , to go around and come back, since the host removes the frame only after it has circulated. That is so far.
- Release the token, which travels around the ring back to the same host: .
Cycle time , in which 8000 data bits are sent.
Effective data rate Mbps (efficiency of 10 Mbps).
Answer: (C)