The Gateway to Computer Science Excellence
+3 votes
A TCP message consisting of 2800 bytes is passed to IP for delivery across two networks. The first network can carry a maximum payload of 1500 bytes per frame and the second network can carry a maximum payload of 500 bytes per frame, excluding network overhead. Assume that IP overhead per packet is 20 bytes. What is the total IP overhead in the second network for this transmission?

Doubt:- Answer is given as 120 Bytes but I am getting 140 Bytes
in Computer Networks by
reopened by | 470 views
yes, it should be 140 bytes.

(496+20)*3 + (8+20) + (496+20)*2 + (312+20)
Yes, it should be 140 Bytes.

Note that in the question MTU is given per frame, which is of form <20,20,1460> i.e.

<Frame header, IP header, Data part>
1500 bytes MTU is not including IP header

I too get the same answer.
pls explain this with solution


Can u please explain how u did that.

why is not  496*5 + 320*1 ?


@joshi_nitish.. i have a doubt that are the 2 networks one after the other or directly packet goes through the second network?


that should have been mentioned in qsn to avoid ambiguity,

but according to intuition, it seems that the packet will cross n/w 1 before reaching n/w 2.

otherwise what the need of giving n/w 1.

if we do by both ways this gate question gives same result =120

But in provided question

1)if we consider both networks we get 140

2)if only second network then 120

sometimes in the question some things are given to confuse .. so that why i was confused about it.

one more thing .. if we consider that  TCP message so definitely it will go by both this the correct catch or not?


Also see here they are following the strategy that the packet goes through second network 



payload per frame means data portion of frame which includes ( IP header + TCP header + Application layer data ) so answer would be 

(480+20) *3 , (40+20) , (480+20)*2 , (360+20) 

Total overhead = 140 B 


2 Answers

+1 vote

Do it this way..may be it will help u to understand better ,

The concep behind fragmentation is dependent on MTU, and payload to be sent across that network's MTU.

So here we have MTU of 1500bytes ( 1st network)

Data to be sent 2800 bytes

Divide it multiples of 8, that to in such  a way that after adding 20 bytes of (header) to the fragment we get <= MTU,  

So here we have , 1480+20 and 1320+20,

As 1480+1320=2800

Now for second network divide above fragments(only data part not IP header one) into multiples of 8,

1.)    1480 can be divided  as

         480+20, 480+20(IP PART), 480+20,24(4 bits appended to make remaining 20 data bits multiple of 8)+20


Same For 1320

480+20,480+20,64(same as above 4 bits appended)+20

Now add all the IP headers for second network..u will get 140 bytes...

Hope it helps!
yes, thanks.

But at 1st network its fragmented as (1496 + 20) and (1304 + 20) right?

(we should take largest number less than 1500 which is a multiple of 8. so its 1496, not 1480.)

At 2nd network it gets fragmented as: (496+20)*3 ,+ (8+20)3 and (496+20)*2  + (312+20)
If you will take 1496+20 how can it pass the physical MTU LENGTH constraint !
MTU for 1st network is 1500 right? so 1496+20 satisfies that.

to go through 2nd network, it gets fragmented as  (496+20)*3 + (8+20)3 + (496+20)*2  + (312+20)
0's right... actually MTU payload is is right...

If max MTU datagram limit would have been given...I think then...1480+20 would be right!
0 votes
First line 1500 exclude excluding network overhead

Second line 500 excluding network overhead

From first line -->1500+1300

Second line-->  500 +500+500 and 500+500+300

Total 6 frame

Total overhead=6*20  = 120 Byte

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
52,345 questions
60,482 answers
95,283 users