Computer Networks questions — page 4 of 7

Q13

GATE CS 2018 CSTransport LayerMCQ1 mark−1/3 if wrong
Match the following:
FieldLength in bits
P. UDP Header's Port NumberI. 48
Q. Ethernet MAC AddressII. 8
R. IPv6 Next HeaderIII. 32
S. TCP Header's Sequence NumberIV. 16
Show answer without attempting

Answer: C

Q14

GATE CS 2018 CSTransport LayerMCQ1 mark−1/3 if wrong
Consider the following statements regarding the slow start phase of the TCP congestion control algorithm. Note that cwnd stands for the TCP congestion window and MSS denotes the Maximum Segment Size.

(i) The cwnd increases by 2 MSS on every successful acknowledgment.
(ii) The cwnd approximately doubles on every successful acknowledgement.
(iii) The cwnd increases by 1 MSS every round trip time.
(iv) The cwnd approximately doubles every round trip time.

Which one of the following is correct?
Show answer without attempting

Answer: C

Q25

GATE CS 2018 CSTransport LayerNAT1 mark
Consider a long-lived TCP session with an end-to-end bandwidth of 1 Gbps (=109= 10^9 bits-per-second). The session starts with a sequence number of 1234. The minimum time (in seconds, rounded to the closest integer) before this sequence number can be used again is _______.
Show answer without attempting

Answer: 34 to 35

Q54

GATE CS 2018 CSIPv4NAT2 marks
Consider an IP packet with a length of 4,500 bytes that includes a 20-byte IPv4 header and a 40-byte TCP header. The packet is forwarded to an IPv4 router that supports a Maximum Transmission Unit (MTU) of 600 bytes. Assume that the length of the IP header in all the outgoing fragments of this packet is 20 bytes. Assume that the fragmentation offset value stored in the first fragment is 0.

The fragmentation offset value stored in the third fragment is _______.
Show answer without attempting

Answer: 144

Q55

GATE CS 2018 CSData Link LayerNAT2 marks
Consider a simple communication system where multiple nodes are connected by a shared broadcast medium (like Ethernet or wireless). The nodes in the system use the following carrier-sense based medium access protocol. A node that receives a packet to transmit will carrier-sense the medium for 5 units of time. If the node does not detect any other transmission in this duration, it starts transmitting its packet in the next time unit. If the node detects another transmission, it waits until this other transmission finishes, and then begins to carrier-sense for 5 time units again. Once they start to transmit, nodes do not perform any collision detection and continue transmission even if a collision occurs. All transmissions last for 20 units of time. Assume that the transmission signal travels at the speed of 10 meters per unit time in the medium.

Assume that the system has two nodes P and Q, located at a distance dd meters from each other. P starts transmitting a packet at time t=0t=0 after successfully completing its carrier-sense phase. Node Q has a packet to transmit at time t=0t=0 and begins to carrier-sense the medium.

The maximum distance dd (in meters, rounded to the closest integer) that allows Q to successfully avoid a collision between its proposed transmission and P's ongoing transmission is _____.
Show answer without attempting

Answer: 50

Q14

GATE CS 2017 CS-1Transport LayerMCQ1 mark−1/3 if wrong
Consider a TCP client and a TCP server running on two different machines. After completing data transfer, the TCP client calls close to terminate the connection and a FIN segment is sent to the TCP server. Server-side TCP responds by sending an ACK, which is received by the client-side TCP. As per the TCP connection state diagram (RFC 793), in which state does the client-side TCP connection wait for the FIN from the server-side TCP?
Show answer without attempting

Answer: D

Q15

GATE CS 2017 CS-1Layering and SwitchingMCQ1 mark−1/3 if wrong
A sender S sends a message mm to receiver R, which is digitally signed by S with its private key. In this scenario, one or more of the following security violations can take place.

(I) S can launch a birthday attack to replace mm with a fraudulent message.
(II) A third party attacker can launch a birthday attack to replace mm with a fraudulent message.
(III) R can launch a birthday attack to replace mm with a fraudulent message.

Which of the following are possible security violations?
Show answer without attempting

Answer: B

Q32

GATE CS 2017 CS-1Data Link LayerMCQ2 marks−2/3 if wrong
A computer network uses polynomials over GF(2)GF(2) for error checking with 88 bits as information bits and uses x3+x+1x^3 + x + 1 as the generator polynomial to generate the check bits. In this network, the message 0101101101011011 is transmitted as
Show answer without attempting

Answer: C

Q45

GATE CS 2017 CS-1Layering and SwitchingNAT2 marks
The values of parameters for the Stop-and-Wait ARQ protocol are as given below:

Bit rate of the transmission channel = 1 Mbps1\text{ Mbps}.
Propagation delay from sender to receiver = 0.75 ms0.75\text{ ms}.
Time to process a frame = 0.25 ms0.25\text{ ms}.
Number of bytes in the information frame = 19801980.
Number of bytes in the acknowledge frame = 2020.
Number of overhead bytes in the information frame = 2020.

Assume that there are no transmission errors. Then, the transmission efficiency (expressed in percentage) of the Stop-and-Wait ARQ protocol for the above parameters is ____________ (correct to 2 decimal places).
Show answer without attempting

Answer: 86.5 to 89.5

Q9

GATE CS 2017 CS-2RoutingMCQ1 mark−1/3 if wrong
Consider the following statements about the routing protocols, Routing Information Protocol (RIP) and Open Shortest Path First (OSPF) in an IPv4 network.

I: RIP uses distance vector routing
II: RIP packets are sent using UDP
III: OSPF packets are sent using TCP
IV: OSPF operation is based on link-state routing

Which of the statements above are CORRECT?
Show answer without attempting

Answer: C

Q18

GATE CS 2017 CS-2Transport LayerMCQ1 mark−1/3 if wrong
Consider socket API on a Linux machine that supports connected UDP sockets. A connected UDP socket is a UDP socket on which connect function has already been called. Which of the following statements is/are CORRECT?

I. A connected UDP socket can be used to communicate with multiple peers simultaneously.
II. A process can successfully call connect function again for an already connected UDP socket.
Show answer without attempting

Answer: B

Q20

GATE CS 2017 CS-2IPv4NAT1 mark
The maximum number of IPv4 router addresses that can be listed in the record route (RR) option field of an IPv4 header is ____________.
Show answer without attempting

Answer: 9.0

Q34

GATE CS 2017 CS-2Data Link LayerMCQ2 marks−2/3 if wrong
Consider a binary code that consists of only four valid codewords as given below:

00000,01011,10101,1111000000, 01011, 10101, 11110

Let the minimum Hamming distance of the code be pp and the maximum number of erroneous bits that can be corrected by the code be qq. Then the values of pp and qq are
Show answer without attempting

Answer: A

Q35

GATE CS 2017 CS-2Layering and SwitchingMCQ2 marks−2/3 if wrong
Consider two hosts XX and YY, connected by a single direct link of rate 10610^6 bits/sec. The distance between the two hosts is 10,00010,000 km and the propagation speed along the link is 2×1082 \times 10^8 m/sec. Host XX sends a file of 50,00050,000 bytes as one large message to host YY continuously. Let the transmission and propagation delays be pp milliseconds and qq milliseconds, respectively. Then the values of pp and qq are
Show answer without attempting

Answer: D

Q24

GATE CS 2016 CS-1Layering and SwitchingMCQ1 mark−1/3 if wrong
Which one of the following protocols is NOT used to resolve one form of address to another one?
Show answer without attempting

Answer: C

Q25

GATE CS 2016 CS-1Application LayerMCQ1 mark−1/3 if wrong
Which of the following is/are example(s) of stateful application layer protocols?
(i) HTTP
(ii) FTP
(iii) TCP
(iv) POP3
Show answer without attempting

Answer: C

Q52

GATE CS 2016 CS-1Application LayerMCQ2 marks−2/3 if wrong
Consider that B wants to send a message m that is digitally signed to A. Let the pair of private and public keys for A and B be denoted by Kx−K^-_x and Kx+K^+_x for x=A,Bx = A,B, respectively. Let Kx(m)K_x(m) represent the operation of encrypting m with a key KxK_x and H(m)H(m) represent the message digest. Which one of the following indicates the CORRECT way of sending the message m along with the digital signature to A?
Show answer without attempting

Answer: B

Q53

GATE CS 2016 CS-1IPv4NAT2 marks
An IP datagram of size 1000 bytes arrives at a router. The router has to forward this packet on a link whose MTU (maximum transmission unit) is 100 bytes. Assume that the size of the IP header is 20 bytes.
The number of fragments that the IP datagram will be divided into for transmission is ________.
Show answer without attempting

Answer: 13.0

Q54

GATE CS 2016 CS-1Transport LayerNAT2 marks
For a host machine that uses the token bucket algorithm for congestion control, the token bucket has a capacity of 1 megabyte and the maximum output rate is 20 megabytes per second. Tokens arrive at a rate to sustain output at a rate of 10 megabytes per second. The token bucket is currently full and the machine needs to send 12 megabytes of data. The minimum time required to transmit the data is ________ seconds.
Show answer without attempting

Answer: 1.1

Q55

GATE CS 2016 CS-1Layering and SwitchingNAT2 marks
A sender uses the Stop-and-Wait ARQ protocol for reliable transmission of frames. Frames are of size 1000 bytes and the transmission rate at the sender is 80 Kbps (1Kbps = 1000 bits/second). Size of an acknowledgement is 100 bytes and the transmission rate at the receiver is 8 Kbps. The one-way propagation delay is 100 milliseconds.
Assuming no frame is lost, the sender throughput is ________ bytes/second.
Show answer without attempting

Answer: 2500.0

0/200 correct0 marks

Related topics in GATE CS