![]() However that length can be greater than the Maximum Segment Size (MSS), therefor the PDU will not fit into one packet as explained. Protocol Data Units (PDUs) of protocol X have a length header that indicate the length of the PDU. If I have read your question correctly, you are trying to parse a pcap file in which there are packets of protocol X which are transported over TCP. ![]() All segments are processed that way until the full PDU is received and the data can then be handed over to the application in one piece. The receiver then strips the ethernet/IP/TCP headers and places the TCP segment in the receive buffer. If TCP needs to sends a block of data (a higher layer Protocol Data Unit (PDU)) that is larger than this MSS, it will break up the PDU into smaller pieces of size MSS and send those segments as individual packets to the receiver. This is what is called the Maximum Segment Size (MSS). From this 1500 bytes, 20 bytes are needed for the IP header and 20 bytes are needed for the TCP header, leaving 1460 bytes for the TCP payload. This means ethernet can send 1500 bytes of data to another ethernet host. ![]() ![]() This is needed because every network has a finite maximum length per packet, this maximum length is called the Maximum Transmission Unit (MTU). Since TCP is a streaming protocol, the packet bounderies are just artificial cuts in the data stream. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |