1

Need clarification on TCP/UDP DATA field..

Does the Application Layer "Data" go inside the TCP [DATA FIELD] and all of TCP Layer with its Headers sit inside the IP [DATA FIELD], finally the IP Layer with all of its Headers sit in the Ethernet [DATA Field]. From there it sends the bits on the wire?

1
  • basically yes. each layer takes the data from the upper layer, adds its header (and "footer" if applicable, which is for Ethernet) and passes it to the lower layer.
    – Effie
    Jan 10 at 5:40

1 Answer 1

1

Each layer encapsulates the higher layer in it payload (data), and each protocol has no idea, nor does it care, what is in its payload. The header of the protocol has a field to tell it where to deliver its payload.

For example, ethernet has the EtherType field that tells it to deliver its payload to the next process (layer), such as ARP, IPv4, IPX, IPv6, AppleTalk, etc. IPv4 has the Protocol field (IPv6 Next Header field is the same) that tells IP to which process to deliver its payload, such as ICMP, TCP, UDP, SCTP, etc.

TCP and UDP use ports to which an application process registers, and that tells TCP and UDP to which process to deliver the payload.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.