Deprecated: Implicit conversion from float-string "1589538379.562" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1589538379.562" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1589538379.562" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1589538379.562" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1589538379.562" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1702735818.092" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1702735818.092" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1702735818.092" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1702735818.092" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1702735818.092" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
Computer Networks: networking
edited by
3,637 views
2 votes
2 votes
Suppose a TCP message that contains 2048 bytes of data and 20 bytes of TCP
header is passed to IP for delivery across two networks of the Internet (i.e., from
the source host to a router to the destination host). The first network uses 14-byte
headers and has an MTU of 1024 bytes; the second uses 8-byte headers with an
MTU of 512 bytes. Each network’s MTU gives the size of the largest IP datagram
that can be carried in a link-layer frame. Give the sizes and offsets of the sequence
of fragments delivered to the network layer at the destination host. Assume all IP
headers are 20 bytes.
edited by

3 Answers

Best answer
4 votes
4 votes

Data size is 2048B and header size is 20B.

so total size of datagram is 2068B.

MTU size is 1024B it includes 14B header and 20B ip header .so allowable data size is 1024-14-20=990B.

2048B data is passed through 990B MTU data must be fragmented.and fragmented chunks are 984,984,80B.

and offset values are (0-122) (123-245) (246-255).

2nd MTU size is 512B it includes 8Bheader and 20B ip header.data size is 512-8-20=484B.

if 984B is passed through MTU data must be fragmented.chunks are 480,480,24B

offset values are (256-315) (316-375) (376-378).

2nd 984B also fragmented 480,480,24B.

offset values are (379-438) (439-498) (499-501).

last 80B if passed no fragmentation .offset is (502-509).

so total fragments are 9

selected by
0 votes
0 votes

Total data to fragment is 2048+20(TL-Header)= 2068 B.

We have to remember that Transport Layer Header will now also be considered as part of main data. Please see the diagram, you'll understand.

0 votes
0 votes

 

So No of Fragments received by destination = 7 

Offset value of 6th fragment =247

Answer (b)

Related questions

166
views
0 answers
0 votes
BALARAM DEY asked Aug 24, 2023
166 views
225
views
0 answers
0 votes
tenjela asked Apr 24, 2023
225 views
What is meant by self-synchronization? Mention the name of a line coding technique that can achieve self-synchronization. Explain your answer with an example.
330
views
1 answers
0 votes
Sahil_Lather asked Jan 26, 2023
330 views
Consider the following StatementsStatement 1: POP3 server maintains state information between a user agent and the mail server, during a POP3 session.Statement 2: POP3 se...
542
views
1 answers
1 votes
rayhanrjt asked Dec 13, 2022
542 views
Suppose a 22-byte packet is to be transmitted through a network of MTU = 3byte. The elementary fragment size is 1 byte. Show the segment numbering of the above packet. Pa...