Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Networking: Difference between Transport layer and Networking Layer

Tags:

networking

osi

In Internet Model there are four layers: Link -> Networking -> Transport -> Application.

I don't really know the difference between networking layer and transport layer. As I read:

Transport layer: include congestion control, flow control, reliability ... Networking layer: route data from A to B 

So, base on above properties, I see that there are some overlaps between those two layers.

1) Networking layer decides to move data from A to B. But, when data has known how to moved from A to B, what does it means for term "flow control" "congestion control" ... ? How and What does it control when the packet (and byte stream is in packet) has already known to moved across network.

2) Or other example, TCP protocol in Transport layer is ORDERED delivery of a stream. But, TCP doesn't decide how to move data, but Networking layer. So, how can TCP can do ?

So, I cannot get in those two terms. Please teach me.

Thanks :)

like image 522
hqt Avatar asked Nov 11 '12 17:11

hqt


People also ask

What is the relationship between transport layer and network layer?

For example, the network layer lies just below the transport layer in the protocol stack. Whereas a transport layer protocol provides logical communication between processes running on different hosts, a network layer protocol provides logical communication between hosts. This distinction is subtle but important.

What is the difference between transport layer and data link layer delivery and address?

The data link layer provides the services within a single network while the transport layer provides the services across an internetwork made up of many networks. The data link layer controls the physical layer while the transport layer controls all the lower layers.


2 Answers

These are levels of abstraction.

Transport Layer is where the decision to use TCP/UDP is made. Among commonly used protocols in this layer, TCP is reliable, UDP isn't. Depending upon the choice made, the respective headers are attached to your packet. TCP for example just knows about SYN-ACK, Three-way handshake mechanisms, but does not know the address of the remote-endpoint, or the mechanism of getting the packet across the network.

Congestion control, Flow control help ensure that the network isn't flooded with packets, by regulating the number of packets being sent.

Now, after TCP/UDP header being appended, it moves on to the Network Layer. Till this step, the remote end-point's IP address wasn't a part of the packet at all. It is at this step that the Source & Destination IP addresses are added to the packet. This layer actually knows the remote-endpoint.


      Sender                          Receiver       -----------                      ------------    |           |   virtual link     |            |    | Transport | -----------------> | Transport  |    |           |                    |            |     -----------                      ------------          |                                |          |                                |     -----------                       -----------    |           |    virtual link     |           |    |  Network  | ------------------> |  Network  |    |           |                     |           |     -----------                       -----------          |                                |          |                                |     -----------                       -----------    |           |                     |           |    | Physical  |                     | Physical  |    |           |                     |           |     -----------                       -----------          ↓                                 ↑          |____________real link____________| 

The sender's Transport Layer data, is the exact data received by the receiver's transport layer.

As the packet travels down the sender, each layer is adding its own header information, but all of that is removed by the corresponding layer on the receiver.

The advantage is that a virtual link is established, like the one shown above, whereas the real link is only in the physical layer.

like image 139
Anirudh Ramanathan Avatar answered Sep 22 '22 04:09

Anirudh Ramanathan


Transport layer:

  • Logical communication between processes.

Network layer:

  • Logical communication between hosts.

Transport layer:

  • Responsible for checking that data available in session layer are error free.

Network layer:

  • Responsible for logical addressing and translating logical addresses (ex. amazon.com) into physical addresses (ex. 180.215.206.136)

Transport layer: Protocols used at this layer are :

  • TCP(Transmission Control Protocol)
  • UDP(User Datagram Protocol )
  • SCTP(Stream Control Transmission Protocol)

Network layer: Protocols used at this layer are :

  • IP(Internet Protocol)
  • ICMP(Internet Control Message Protocol)
  • IGMP(Internet Group Message Protocol)
  • RARP(Reverse Address Resolution Protocol)
  • ARP(Address Resolution Protocol)

Transport layer:

  • This layer ensures that the protocols operated at this layer provide reliable end-to-end flow and error control.

Network layer:

  • This layer controls routing of data from source to destination plus the building and dismantling data packets.
like image 32
Dharita Chokshi Avatar answered Sep 22 '22 04:09

Dharita Chokshi