Thread: Do Transport Layer (TCP and UDP) reads/inspects IP headers (Src IP,Destination IP)?

  1. #1
    Registered User
    Join Date
    Sep 2011
    Location
    India
    Posts
    27

    Question Do Transport Layer (TCP and UDP) reads/inspects IP headers (Src IP,Destination IP)?

    We all know that a TCP socket is identified by a four tuple entry: src ip, dest ip, src port dest port

    TCP does the job of Multiplexing and Demultiplexing the Data from/to differnt processes running on the host.

    In case of Demultiplexing, Destination IP information is there only in IP Headers. How come Dest IP is read by Transport Layer (TCP)?

    Plz explain I m very much confused?

  2. #2
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    Headers can't "read" or "inspect" anything. They're little bits of data that your router/other devices read and understand.

  3. #3
    Registered User
    Join Date
    Sep 2011
    Location
    India
    Posts
    27
    Quote Originally Posted by memcpy View Post
    Headers can't "read" or "inspect" anything. They're little bits of data that your router/other devices read and understand.

    I think u misunderstood my question. I am not headers will read somethinh. I am saying that they will be read by the corresponding layers Example: L2 headers will be read by the Data Link Layer. L3 Headers will be read by Network layer and so on.

    Now my question is That Src and Dest IP are at Layer 3 headers, Are they inpected/read by the Layer 4 TCP/UDP layer since they do the job of demultiplexing the data to the right socket and thus to identify a socket uniquely IP+port both information is required

  4. #4
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    You should give the RFCs a read, especially this > RFC 1122 - Requirements for Internet Hosts - Communication Layers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problem with array transport between programs
    By vtergolina in forum C Programming
    Replies: 24
    Last Post: 08-09-2011, 01:07 PM
  2. Boundary layer.
    By sunish5 in forum C Programming
    Replies: 3
    Last Post: 10-28-2010, 09:41 PM
  3. Socketless Transport?
    By SMurf in forum Networking/Device Communication
    Replies: 4
    Last Post: 09-20-2010, 01:04 PM
  4. Sockets Transport Question
    By SMurf in forum Tech Board
    Replies: 0
    Last Post: 12-14-2006, 04:36 PM
  5. Replies: 3
    Last Post: 06-29-2003, 05:50 PM