IPv4 questions — page 2 of 2

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

Q46

GATE CS 2015 CS-3IPv4NAT2 marks
In the network 200.10.11.144/27, the fourth octet (in decimal) of the last IP address of the network which can be assigned to a host is ____________.
Show answer without attempting

Answer: 158

Q26

GATE CS 2015 CS-1IPv4MCQ1 mark−1/3 if wrong
Which one of the following fields of an IP header is NOT modified by a typical IP router?
Show answer without attempting

Answer: B

Q36

GATE CS 2015 CS-2IPv4MCQ2 marks−2/3 if wrong
Consider the following routing table at an IP router:
Network No.Net MaskNext Hop
128.96.170.0255.255.254.0Interface 0
128.96.168.0255.255.254.0Interface 1
128.96.166.0255.255.254.0R2
128.96.164.0255.255.252.0R3
0.0.0.0DefaultR4
For each IP address in Group I identify the correct choice of the next hop from Group II using the entries from the routing table above.

Group I
i) 128.96.171.92
ii) 128.96.167.151
iii) 128.96.163.151
iv) 128.96.165.121

Group II
a) Interface 0
b) Interface 1
c) R2
d) R3
e) R4
Show answer without attempting

Answer: A

Q37

GATE CS 2015 CS-2IPv4MCQ2 marks−2/3 if wrong
Host A sends a UDP datagram containing 8880 bytes of user data to host B over an Ethernet LAN. Ethernet frames may carry data up to 1500 bytes (i.e. MTU=1500 bytes). Size of UDP header is 8 bytes and size of IP header is 20 bytes. There is no option field in IP header. How many total number of IP fragments will be transmitted and what will be the contents of offset field in the last fragment?
Show answer without attempting

Answer: C

Q25

GATE CS 2014 CS-2IPv4NAT1 mark
In the diagram shown below, L1 is an Ethernet LAN and L2 is a Token-Ring LAN. An IP packet originates from sender S and traverses to R, as shown. The links within each ISP and across the two ISPs, are all point-to-point optical links. The initial value of the TTL field is 32. The maximum possible value of the TTL field when R receives the datagram is ____________.
Question figure
Show answer without attempting

Answer: 26

Q25

GATE CS 2014 CS-3IPv4MCQ1 mark−1/3 if wrong
Host A (on TCP/IP v4 network A) sends an IP datagram D to host B (also on TCP/IP v4 network B). Assume that no error occurred during the transmission of D. When D reaches B, which of the following IP header field(s) may be different from that of the original datagram D?

(i) TTL (ii) Checksum (iii) Fragment Offset
Show answer without attempting

Answer: D

Q26

GATE CS 2014 CS-3IPv4NAT2 marks
An IP router implementing Classless Inter-domain Routing (CIDR) receives a packet with address 131.23.151.76. The router’s routing table has the following entries:
PrefixOutput Interface Identifier
131.16.0.0/123
131.28.0.0/145
131.19.0.0/162
131.22.0.0/151
The identifier of the output interface on which this packet will be forwarded is ______.
Show answer without attempting

Answer: 1

Q27

GATE CS 2014 CS-3IPv4NAT2 marks
Every host in an IPv4 network has a 1-second resolution real-time clock with battery backup. Each host needs to generate up to 1000 unique identifiers per second. Assume that each host has a globally unique IPv4 address. Design a 50-bit globally unique ID for this purpose. After what period (in seconds) will the identifiers generated by a host wrap around?
Show answer without attempting

Answer: 256

Q28

GATE CS 2014 CS-3IPv4MCQ2 marks−2/3 if wrong
An IP router with a Maximum Transmission Unit (MTU) of 1500 bytes has received an IP packet of size 4404 bytes with an IP header of length 20 bytes. The values of the relevant fields in the header of the third IP fragment generated by the router for this packet are
Show answer without attempting

Answer: A

Q37

GATE CS 2013 CSIPv4MCQ2 marks−2/3 if wrong
In an IPv4 datagram, the M bit is 0, the value of HLEN is 10, the value of total length is 400 and the fragment offset value is 300. The position of the datagram, the sequence numbers of the first and the last bytes of the payload, respectively are
Show answer without attempting

Answer: C

Q23

GATE CS 2012 CSIPv4MCQ1 mark−1/3 if wrong
In the IPv4 addressing format, the number of networks allowed under Class C addresses is
Show answer without attempting

Answer: C

Q34

GATE CS 2012 CSIPv4MCQ2 marks−2/3 if wrong
An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: 245.248.128.0/20. The ISP wants to give half of this chunk of addresses to Organization A, and a quarter to Organization B, while retaining the remaining with itself. Which of the following is a valid allocation of addresses to A and B?
Show answer without attempting

Answer: A

0/130 correct0 marks

Related topics in Computer Networks