Differences between the transport layer and the network layer

Source: Internet
Author: User

In the protocol stack, the transport layer is located on the network layer. The Transport Layer Protocol provides logical communication for processes running on different hosts, while the network layer protocol provides logical communication for different hosts. The difference is subtle, but important. Let's use a family as an analogy to illustrate this difference.

Suppose there are two houses, one on the East Coast and the other on the West Coast. Each house has 12 children. The children in the East Coast houses and the West Coast houses are siblings. The children in the two houses like to communicate with each other. Every child writes a letter to every brother and sister every week, and each letter is sent in an envelope by the old-fashioned post office. In this way, every week 144 messages will be sent to another one (these children can save a lot of money if they can use e-mails !) In each family, a child, Ann in the West Coast House, and bili in the East Coast House, is responsible for email collection and distribution. Every week, Ann collects letters from her siblings and sends them to the daily delivery staff. When the letter arrives at the West Coast House, Ann delivers the letter to her siblings. Bili has the same job on the East Coast.

In this example, the postal service provides logical communication between the two houses-the Postal Service delivers mail between the two houses, rather than serving each person. On the other hand, Ann and bili provide logical communication between siblings-Ann and bili collect emails from their siblings and deliver the emails to them. Note: from the perspective of these siblings, Ann and bili are mail service personnel, even though they are only part of the end-to-end delivery service (terminal system part ). This example is an image of the relationship between the transport layer and the network layer:

Host (also called Terminal System) = house
Process = siblings
Application message = letter in the envelope
Network Layer Protocol = postal service (including Postman)
Transport Layer Protocol = Ann and Bill

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.