413 views
A TCP connection is transferring $6000$ bytes where the first byte is numbered $10010.$ If data is sent in five segments with the first four segments carrying $1000$ bytes and the last segment carrying $2000$ bytes then number of the last byte sent is ______

sir plz explain???
$10010$ is in decimal.

$10010+6000-1=16009$

The following shows the sequence number for each segment:

Segment 1 -> 10,010 (10,010 to 11,009)

Segment 2 -> 11,010 (11,010 to 12,009)

Segment 3 -> 12,010 (12,010 to 13,009)

Segment 4 -> 13,010 (13,010 to 14,009)

Segment 5 -> 14,010 (14,010 to 16,009)

by

Unless specified as binary, you should not assume a given number as binary. I mean in GATE exam you won't have to assume stuffs as in mock tests -- I hope mock tests haven't spoiled many.
How we will differentiate if sequence number is in binary or decimal ? Base of number system should be mention or it will be explicitly mentioned in the question?

I got trolled by that too, lol.

1 vote
1
241 views
1 vote