1 Crore+ students have signed up on EduRev. Have you? Download the App |
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:
► MTU = 100 bytes
► Size of IP header = 20 bytes
So, size of data that can be transmitted in one fragment = 100 – 20 = 80 bytes
Size of data to be transmitted = Size of datagram – size of header = 1000 – 20 = 980 bytes
Now, we have a datagram of size 1000 bytes.
So, we need ceil(980/80) = 13 fragments.
Thus, there will be 13 fragments of the datagram.
So, D is the correct choice.
In the TCP/IP protocol suite, which one of the following is NOT part of the IP header?
One of the header fields in an IP datagram is the Time-to-Live (TTL) field. Which of the following statements best explainsthe need for this field?
It can be used to prevent packet looping.
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
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:
ip packet length is given 4404 which includes ip header of length 20
so data is 4384.
Now router divide this data in 3 parts
1480 1480 1424.
► After adding ip header in last packet packet size is 1444 and since its the last packet therefore MF =0
and offset is 2960/8 = 370
Host A sends a UDP datagram containing 8880 bytes of user data to host B over an Ethernet LAN. Ethernet frames maycarry 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. Thereis no option field in IP header. How many total number of IP fragments will be transmitted and what will be the contents ofoffset field in the last fragment?
► Number of fragments = Ceil(8888/1480) = 7
► Offset of last fragment = (1500 - 20) * 6 / 8 = 1110 (scaling factor of 8 is used in offset field).
TCP or UDP header will be added to the Data Unit received from Transport Layer to Network Layer. And fragmentation
happens at Network Layer. So no need to add TCP or UDP header into each fragment.
Which of the following assertions is FALSE about the Internet Protocol (IP)?
Consider three IP networks and Host in network sends messages each containing 180 bytes of application data to a host in network. The TCP layer prefixes a 20-byte header to the message. This passes through an intermediate network. 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.
So, here 180 bytes of application data are transferred from A to C and this causes 260 bytes to be transferred from B to 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 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).
What is the rate at which application data is transferred to host ? Ignore errors, acknowledgements, and other overheads.
So, data rate = 180 * 3200 / 13 = 44.3 kBps = 354.46 kbps
For which one of the following reasons does internet protocol(IP) use the time-to-live(TTL) field in IP datagram header?
In the IPv4 addressing format, the number of networks allowed under Class C addresses is:
We have 32 bits in the IPV4 network
► Class A = 8 network bits + 24 Host bits
► Class B = 16 network bits + 16 Host bits
► Class C = 24 network bits + 8 host bits.
Now for class C we have 3 bits reserved for the network id.
Hence remaining bits are 21. Therefore total number of networks possible are 2 21.
Similarly in Class B we have 2 bits reserved.
Hence total number of networks in class B are 214.
And we have 1 bit reserved in Class A, therefore there are 27 networks.
And a better reasoning for the bit reservation is given here. have a look.
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 is300. The position of the datagram, the sequence numbers of the first and the last bytes of the payload, respectively are:
► M = 0 meaning no more fragments after this. Hence, its the last fragment.
► IHL = internet header length = 10 x 8 = 2400 B coz 4 is the scaling factor for this field.
► Total Length = 2400 B
► Payload size = Total length - Header length = 400-40 = 360B
► Fragment offset = = represents how many Bytes are before this. 8 is the scaling factor here.
the first byte # = 2400
► Last byte # = 300 x 8 = 2400 B first byte # + total bytes in payload - 1 = 2400+360-1=2759
Hence, option C is the correct answer.
Data field usually has tranaport layer segment, but it can also carry ICMP messages.
The maximum number of IPv4 router addresses that can be listed in the record route (RR) option field of an IPv4 header is ______.
Hence, 9 is the correct answer.
Which of the following fields of an IP header is NOT modified by a typical IP router?
Length and checksum can be modified when IP fragmentation happens. Time To Live is reduced by every router on the route to destination.