• retagged by
38,836 views
102 102 votes

Consider three IP networks $A, B$ and $C$. Host $H_A$ in network $A$ sends messages each containing $180$ bytes of application data to a host $H_C$ in network $C$. The $\text{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: $\text{1000 bytes}$
  • B: $\text{100 bytes}$
  • C: $\text{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.

  1. $200$
  2. $220$
  3. $240$
  4. $260$

9 Answers

Best answer
115 115 votes
Packet $A$ sends an $IP$ packet of $180$ bytes of data $+ 20$ bytes of TCP header $+ 20$ $bytes$ of IP header to $B$.

$IP$ layer of $B$ now removes $20$ $bytes$ of $IP$ header and has $200$ bytes of data. So, it makes $3$ IP packets - $[80 + 20,  80 + 20 , 40 + 20]$ and sends to $C$ as the Ip packet size of $B$ is $100$. So, $C$ receives $260$ bytes of data which includes $60$ bytes of $IP$ headers and $20$ bytes of TCP header.

For data rate, we need to consider only the slowest part of the network as data will be getting accumulated at that sender (data rate till that slowest part, we need to add time if a faster part follows a slower part).

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$.

Correct Answer: $D$
• edited by
28 28 votes

Explanation: Network B receives 220 bytes of data (180 bytes of application layer data + 20 bytes of TCP header + 20 bytes of IP header) from network A. As maximum packet size of network B is 100 bytes (data of 80 bytes + 20 bytes IP header), for network B, out of 220 Bytes, 200 bytes would be of data or payload (180 bytes of application layer data + 20 bytes of TCP header) and 20 bytes of IP header. Network B now removes the 20 bytes header. Out of 200 bytes of data, it uses 80 bytes of data. Thus 1st packet leaving B would be of 100 bytes (Data: 80 bytes, IP header: 20 bytes). Now we have 120 bytes of data remaining. Thus the 2nd packet leaving B would be of 100 bytes (Data: 80 bytes, IP header: 20 bytes). Now we have 40 bytes of data remaining. Thus the 3rd packet leaving B would be of 60 bytes (Data: 40 bytes, IP header: 20 bytes).

Hence, total of 100 + 100 + 60 bytes = 260 bytes would be received by the destination.

8 8 votes
180B application data + 20B TCP header = 200B
For network layer, 200B data is to be sent with 20B header in each packet.

No problem with A, C.
B has maximum packet size 100.

We will split  200 as  80+80+40
(80+20), (80+20), (40+20)= 260  (Ans)
5 5 votes

Intuitive answer

This is a very easy question. The basic idea is this network one MTU is 1000 bytes network 2 MTU is 100bytes network 3 MTU IS 1000 bytes. Now we can see in network one, there will be no fragmentation in network two there will be fragmentation, but in network three, there will be no fragmentation. Visualise like this in network one packet will get transferred to network 2 In network 2 packet will get fragmented now. Several fragmented packets will travel to network 3 since MTU of network three is very high, so no fragmentation will happen now. All packets reached the Final host and got reassembled
 
2 2 votes

Host A sends 180 B of data to Net. C and TCP layer prefixes 20 B header to it 

so IP PAYLOAD=180+20=200 B 

Now in each network the MTU (w/o header) is

Net.A= 980B

Net.B= 80B

Net.C= 980B

now in net.B we will fragment our 200B of data into 3 parts 

80 B ---> 80+20B (with IP header)

80 B ---> 80+20B (with IP header)

40 B ---> 40+20B (with IP header)

so total data received by NET. C =260 B 

therefore option D is correct ....

Answer:
Position:
Show:

Related questions

94 94 votes
13 answers 13 answers
35.3k
35.3k views
go_editor asked Apr 24, 2016
35,331 views
Consider three IP networks $A, B$ and $C$. Host $H_A$ in network $A$ sends messages each containing $180$ $bytes$ of application data to a host $H_C$ in network $C$. The ...
72 72 votes
10 answers 10 answers
56.8k
56.8k views
Arjun asked Sep 24, 2014
56,787 views
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 datag...
0 0 votes
0 0 answers
800
800 views
iarnav asked Dec 5, 2018
800 views
Consider three IP networks A,B and C. Host HA in network A sends messages each containing 180 bytesof application data to a host HC in network C. The TCP layer prefixes 2...
29 29 votes
3 3 answers
12.3k
12.3k views
Arjun asked Feb 27, 2025
12,261 views
​​​​​Consider a network that uses Ethernet and $IPv4$. Assume that $IPv4$ headers do not use any options field. Each Ethernet frame can carry a maximum of $1500$ bytes in...