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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Deprecated: Implicit conversion from float-string "1627530816.179" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
Computer Networks: mtu
11,165 views
8 votes
8 votes
Suppose that host A is connected to a router R 1, R 1 is connected to another router,
R 2, and R 2 is connected to host B. Suppose that a TCP message that contains 900
bytes of data and 20 bytes of TCP header is passed to the IP code at host A for delivery
to B. Show the Total length of the IP header in each packet transmitted over the three links. Assume that link A-R1
can support a maximum frame size of 1024 bytes including a 14-byte frame header,
link R1-R2 can support a maximum frame size of 512 bytes, including an 8-byte frame
header, and link R2-B can support a maximum frame size of 512 bytes including a
12-byte frame header.

3 Answers

Best answer
10 votes
10 votes

A---------R1----------R2-----------B     (This is how the packet flows from A to B)

When we receive data from transport layer, then whole of it is considered as data by network layer to be sent .So, transport layer gives 900 + 20 (TCP header) = 920 B to the network layer to be sent .

Hence, the data to be considered is 920 B, which is what transport layer sends to IP layer.

1). First, we talk about how to successfully transmit data from A to R1.

No fragmentation required here, hence IP packet size = 920 B 

2). Now, we see for R1 to R2. (For sending, R1 removes previous frame added of 14 B)

It says , it can support maximum frame size of 512 B including 8 B frame header .

Hence, it can be fragmented into 2 frames ( 480 and 440 ) . Finally, One IP packet is 480 + 20 = 500 B and second is

440 + 20 = 460 B . So, 2 packets are send to R2 .

3). We see for R2 to B. (For sending , R2 removes previous frame added of 8 B)

It says , it can support maximum frame size of 512 B including 12 B frame header , hence , no need to fragment it . 

One frame is 480 + 20 = 500 B and other frame 440 + 20 = 460 B , will reach B.


Note: I have only considered here IP packet size (Payload + Header), and if this packet is sent to DLL then DLL packet size = IP packet size + DLL header. But that is not asked in the question .Question is only asking about IP packet size

edited by
2 votes
2 votes

Link A-R1

Length= (920Bdata+20Bheader)=940B   

Link R1-R2(here the packet is being fragmented into 2 packets)

Packet1:Length=(504B data+ 8B header)=512B  [It is correct bcz data's length i.e 504 is divisible by 8]

Packet 2:Length=(416B data + 8B header)=424B [It is correct bcz data's length i.e 416 is divisible by 8]

Link R2-B( here packet 1 from link R1-R2 is fragmented into to two packets say packet1,1 and packet 1,2)

Packet1.1 Length=(496 B data+ 12 bytes header)=508 B [It is correct bcz data's length i.e 496 is divisible by 8]

Packet 1.2 Length=(8 B data+ 12 bytes header)=20 B [It is correct bcz data's length i.e 8 is divisible by 8]

Packet 2 Length=(416 B data+ 12 bytes header)=428 B [It is correct bcz data's length i.e 416 is divisible by 8]

So Receiver receives three packets.

PACKET ID MF HL=Headersize/4 TL  OFFSET
PACKET 1,1 X 1 3 508 0
PACKET 1,2 X 1 3 20 496/8=62
PACKET 2 X 0 3 428 (496+8)/8=63
0 votes
0 votes

The initial IP datagram will be fragmented into two IP datagrams at I1. No other fragmentation will occur.

---------------------------------------------------------------------------------------------------------

Link A-R1:

Length = 940;  ID = x; DF = 0; MF = 0; Offset = 0

Link R1-R2:

(1) Length = 500; ID = x; DF = 0; MF = 1; Offset = 0

(2) Length = 460; ID = x; DF = 0; MF = 0; Offset = 60

Link R2-B:

(1) Length = 500; ID = x; DF = 0; MF = 1; Offset = 0 

(2) Length = 460; ID = x; DF = 0; MF = 0; Offset = 60 

 

Related questions


Notice: Included file qa-util-string.php is deprecated in /var/www/html/qadb/qa-include/qa-util-string.php on line 12

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

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

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

Deprecated: Implicit conversion from float-string "1531540433.114" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
462
views
0 answers
0 votes
Sahil_Lather asked Jan 26, 2023
462 views
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...
294
views
0 answers
0 votes
eyeamgj asked Jul 14, 2018
294 views
Suppose that host A is connected to a router R 1, R 1 is connected to another router, R 2, and R 2 is connected to host B. Suppose that a TCP message that contains 900 by...
1.0k
views
1 answers
3 votes
Arunav Khare asked Feb 6, 2018
1,015 views
It is known that any network can only transmit data packet size equal to (or less than) MTU allowed in the network. If that is the case, and if we have a Path MTU discove...
538
views
0 answers
0 votes
A_i_$_h asked Sep 22, 2017
538 views
If suppose MTU =620 (including header)and 1380 bytes has to be sent (header is 20B)s data to be sent is 1380 -20 =1360MTU = 600 -20 =600so max capacity to be sent as frag...
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 8.2 12% 6.7 10% 211 1.5 2% 2 0.0 0% 1035k 24%
Control 17.2 26% 2.3 3% 5 15.1 23% 12 0.0 0% 459k 10%
View 2.9 4% 2.9 4% 17 0.0 0% 0 0.0 0% 0k 0%
Theme 31.1 48% 17.3 27% 28 14.3 22% 22 0.0 0% 2853k 66%
Stats 4.6 7% 0.1 0% 0 4.5 7% 1 0.0 0% 0k 0%
Total 64.0 100% 29.4 45% 261 35.4 55% 37 0.0 0% 4298k 100%