2,028 views
1 votes
1 votes

Header field need scaling factor, , when it’s size is small, that is ok

But why fragment offset field also need scaling factor?

https://gateoverflow.in/1548/gate2013-37

1 Answer

Best answer
1 votes
1 votes
Maximum packet size = $2^{16}$-1 bytes = 65535 bytes

Minimum header length = 20 bytes

Thus, Maximum data bytes in payload = 65535 - 20 = 65515 bytes

Now,

Fragment offset = 13 bits $\rightarrow$ 8192 combinations

8192th number should represent 65515th byte

So each number must represent $\left \lceil \frac{65515}{8192} \right \rceil$ = 8 bytes

Thus scaling factor is 8 bytes.
selected by

Related questions

0 votes
0 votes
0 answers
2
Rohit Kumar 2 asked Sep 29, 2018
152 views
what is a limiting factor?
3 votes
3 votes
1 answer
3
KISHALAY DAS asked Oct 21, 2016
794 views
Could anyone please explain what is the function of this scale factor?
0 votes
0 votes
1 answer
4
Gaurav Kadyan asked Jul 13, 2023
178 views