Home > Articles > Operating Systems, Server

This chapter is from the book

1.2 The Layers of the TCP/IP 5-Layer Model

A closer examination of the layers of the TCP/IP 5-layer model follows. The layers of the protocol stack are numbered, as you saw in Table 1.3. This examination starts at the Application layer (layer 5) of the protocol stack and works downward to the level of the Physical layer (layer 1) at the bottom of the stack.

Application Layer (5)

There are literally hundreds of applications that function at the Application layer, and more are being developed as the Internet evolves. Well-known TCP/IP applications include:

  • Web browsers/servers using the HyperText Transfer Protocol (HTTP)

  • mail applications and related protocols

    • Post Office Protocol (POP)

    • Internet Message Access Protocol (IMAP)

    • Simple Mail Transport Protocol (SMTP)

  • File Transfer Protocol (FTP)

  • telnet and rlogin

  • Domain Name Service (DNS)

  • Network File System (NFS)

  • Network Information Service (NIS) and Network Information Service Plus (NIS+)

Application layer protocols and applications are unable to deliver their own data across a network or Internet unassisted and so need to be encapsulated in a Transport protocol such as TCP or User Datagram Protocol (UDP). The Transport layer provides this transport service (also known as a delivery service) to the Application layer. The Transport layer protocol in turn relies on the Internet Protocol (IP) to provide an end-to-end routing service.

You will visit these concepts again when IP (Chapter 5), routing (Chapter 6), TCP/UDP (Chapter 7), and the Client-Server model (Chapter 8) are investigated in greater detail.

Focus on the following important points that summarize features of the Application layer. Chapter 8 examines how these applications interact with Transport layer protocols.


Key Learning Points

  • Many protocols function at the Application layer.

  • HTTP, SMTP, POP, FTP, and DNS are the most heavily used Application layer protocols on the Internet.

  • Web browsers, mail clients, news readers, ftp, telnet, sendmail are just a few of the thousands of layer 5 applications.

  • The Application layer uses the Transport layer for delivery.

  • Users often interact directly with Application layer programs.

  • The Application layer (5) is at the top of the stack.

Transport Layer (4)

TCP and UDP are the only two protocols that function at the Transport layer (4). They encapsulate or carry the layer 5 protocols and offer an end-to-end transport service. They accept data from a client network application on a client host and deliver it to the server application on the server host that is providing the client with the service. The client and the servers are usually on different systems and therefore need a network to connect them. Data travels between the client and server across one or more networks.

For example, a telnet client on the client host needs to reach the in.telnetd server daemon running on the server host. The telnet client process uses the TCP Transport layer protocol to connect to the in.telnetd server process (which usually exists on a different system). Other Application layer protocols use the UDP transport protocol, which offers a nonguaranteed transport service, trading guaranteed delivery for speed and minimized overhead. DNS queries, for example, use UDP, as speed is of the essence, and failure considerations are not so critical.

The choice of using either TCP or UDP at the Transport layer is made by the network programmer and is based on the type of service required. Some well-known network protocols that function at the Application layer use both TCP and UDP for different functions—DNS, for example, which is fully explored in Chapter 11. Some applications that were originally designed to use UDP, such as Sun's NFS that allows file sharing between systems, have switched to using TCP. Version 2 of NFS used UDP, but version 3 uses TCP.

Focus on the following important points before proceeding to the next section on the Internet layer.


Key Learning Points

  • Most Solaris applications use TCP and UDP for end-to-end delivery.

  • TCP and UDP are transport protocols.

  • TCP and UDP are encapsulated in IP.

  • TCP and UDP are not able to route their own data and so use IP to perform this task.

Chapter 7 explores the Transport layer protocols (TCP and UDP) in detail, examining why a given application may be better suited to using TCP than UDP, or the converse. In Chapter 8 we examine the client-server model and learn how the applications that use TCP/UDP are configured.

We next examine the Internet layer, on which the Transport layer relies for routing the data it is transporting. The Transport layer provides client and server applications with an end-to-end delivery service (which is not the same as routing), which you will see in Chapter 7, whereas IP (described in Chapter 6) provides an end-to-end IP datagram routing service.

Internet Layer (3)

At every other layer of the TCP/IP network model, multiple protocols exist to carry out similar tasks. The Internet layer is an exception, with only the IP protocol capable of performing the critical routing function. Although other protocols function at the Internet layer, only the IP protocol offers a datagram-based routing service to the upper layers of the stack. IP is the only protocol able to encapsulate and route packets to a destination IP address (identified in the IP datagram header), understand the IP address scheme, and route data for upper-layer protocols such as TCP, UDP, and ICMP. These, in turn, carry encapsulated application layer data.

The Internet layer protocol, IP, makes the routing decision and handles the routing of IP datagrams. IP is also responsible for the fragmentation of IP datagrams, which might be necessary if the underlying Network Interface layer (2) demands it. Chapter 5 covers IP fragmentation in detail.


IP does not build the routing tables; it merely uses the kernel routing table information in an attempt to route the IP datagram(s), as you will learn in Chapter 6.

IP was designed to run over any LAN or WAN technology. An IP's address is essentially a logical or software address that is mapped onto a Network layer (2) address so that IP datagrams can be packaged up (framed) and carried across a specific type of Network Interface layer technology, such as Token Ring or Ethernet. ARP manages the mapping between the Internet layer (3) where IP resides and the Network Interface layer where Ethernet resides. Chapter 4 examines ARP further. Chapter 5 covers IPv4 in detail and Chapter 13 explores IPv6.


Key Learning Points

IP makes the routing decision and routes IP datagrams.

IP routes datagram(s) to the destination IP address in the IP header.

IP datagrams typically carry (encapsulate) TCP/UDP application data.

IP functions at the Internet layer.

IP's header is a minimum of 20 bytes and can be larger.

IP's unit of data is an IP datagram.

Network Interface Layer (2)

Ethernet functions at this layer. There are alternatives to Ethernet at this layer, but Ethernet is dominant in terms of UNIX LANS and is the only LAN examined in detail in this book. Ethernet frames or encapsulates the data it is carrying, prior to transmitting its packet onto the Ethernet bus.

Network Interface layer technologies have Maximum Transmission Units (MTUs) of various sizes. (The MTU determines the maximum number of bytes that can be transmitted in a single frame, not including the headers.) As Table 1.5 shows, MTU size varies according to the Network Interface layer technology.

Table 1.5 Network Layer MTUs

Network Type

MTU (Bytes)



16 MB/second Token Ring (IBM)


4 Mbits/second Token Ring (IEEE 802.5)


Fiber Distributed Data Interface (FDDI)




IEEE 802.3/802.2


Point to Point (low delay)


Ethernet's MTU is especially significant because it determines whether an IP datagram carried by Ethernet needs fragmenting. See Chapter 5 for further information.


Key Learning Points

  • The Network Interface layer MTU determines the maximum number of bytes carried in a single frame.

  • Ethernet is a Network Interface layer technology.

  • Network Interface layer technologies have MTUs of various sizes.

Physical Layer (1)

This layer at the base of the stack identifies the LAN transmission media, typically fiberoptic or wire-based media. This layer concerns the transmission of bits across a physical media with very little interpretation of the data.

Chapter 3 examines the copper wire and fiberoptic-based media used by Ethernet, FDDI, and ATM in greater detail.

So far, we have examined the network protocols in the context of a network model. The ensuing discussion of the most important network protocols reveals their features and provides a foundation for chapters that follow.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.


Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.


If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.


This site is not directed to children under the age of 13.


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact

Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice

We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020