Message format of tcp

this is the format of tcp messages on the Internet and in books. I just want to ask, is it the same in actual transmission? For example, the first part of tcp, with a total of 6 segments from top to bottom, is also juxtaposed with 6 segments during transmission?

for example:

  • Source port destination port
    sequence number
    confirmation number
    .

I think the transmission should all be connected into a string, for example, Source Port-> destination Port-> sequence number-> confirmation number -.

then if it is connected into a string, why is every picture drawn like that

I wonder if the great gods understand what I"m asking. Solve

Mar.03,2021

is transmitted serially, but the tcp protocol stipulates that bits 0 to 15 are the source port, and bits 16 to 31 are the destination port. The branch is just for you to read clearly, just like when you write an article, you change the line at the end of the line, but the sentence may not be over yet.


32 bits are aligned in this way, and the length is clear at a glance


it is just a series of zeros and 1s when it is sent. The illustration is to distinguish. It looks convenient


.

is transmitted in serial, such as the following

01010101010101010101010101010101xxxxxx
|-16-bit source port-|-- 16-bit destination port-- |

Menu