TCP/IP Layer Reference

The TCP/IP model is the practical networking model that powers the internet. Unlike the theoretical 7-layer OSI model, TCP/IP uses four layers that map directly to how real protocols and software work. Click any layer below to explore its protocols, functions, and devices.

Interactive TCP/IP Model

TCP/IP Layer Reference
Figure 1 — TCP/IP Layer Reference

What Is the TCP/IP Model?

The TCP/IP model (also called the Internet Protocol Suite) is the four-layer networking model that defines how the internet works. Developed by the U.S. Department of Defense in the 1970s, it predates the OSI model and is the practical standard used by every device connected to the internet. While the OSI model has seven theoretical layers, TCP/IP simplifies this into four functional layers.

Every time you browse a website, send an email, or stream a video, your data passes through all four TCP/IP layers. The protocols at each layer work together to deliver data reliably (or quickly, in the case of UDP) from one IP address to another across the global internet.

TCP/IP vs OSI Model Comparison

TCP/IP LayerOSI Layer(s)Key ProtocolsDevices
4. Application7, 6, 5HTTP, DNS, SMTP, FTP, SSHApp servers, proxies
3. Transport4TCP, UDP, QUICL4 load balancers, firewalls
2. Internet3IP, ICMP, ARP, IPsecRouters, L3 switches
1. Network Access2, 1Ethernet, Wi-Fi, PPPSwitches, NICs, cables

Pro Tip: The TCP/IP model is more practical for real-world troubleshooting because its layers map directly to software and protocol boundaries. When you run DNS lookups, check TCP ports, or trace ICMP pings, you're working with specific TCP/IP layers. For exams and certifications, know both models — but for daily networking work, think in TCP/IP terms.

Layer 4: Application Layer

The Application layer in TCP/IP combines the functionality of OSI Layers 5, 6, and 7. It provides the protocols that applications use to communicate over the network:

ProtocolPortTransportFunctionRelated Tool
HTTP/HTTPS80/443TCPWeb browsingPort Checker
DNS53UDP/TCPName resolutionDNS Lookup
SMTP25/587TCPEmail sendingPort Checker
SSH22TCPSecure shellPort Checker
DHCP67/68UDPIP assignmentWhat Is DHCP?
FTP20/21TCPFile transferPort Forwarding

Layer 3: Transport Layer

The Transport layer provides end-to-end communication between applications. The two primary protocols are TCP and UDP:

FeatureTCPUDP
ConnectionConnection-oriented (3-way handshake)Connectionless
ReliabilityGuaranteed delivery, orderedBest-effort, no guarantees
Flow ControlYes (sliding window)No
Error CheckingChecksum + retransmissionChecksum only
SpeedSlower (overhead)Faster (minimal overhead)
Use CasesWeb, email, file transferDNS, streaming, gaming, VoIP
Header Size20-60 bytes8 bytes

Test transport layer connectivity with our Port Checker — it verifies whether specific TCP ports are open and accepting connections.

Layer 2: Internet Layer

The Internet layer handles IP addressing and routing. Every device on the internet has an IP address, and this layer determines the best path for each packet:

  • IPv4 — 32-bit addresses (e.g., 192.168.1.1). Calculate subnets with our Subnet Calculator.
  • IPv6 — 128-bit addresses for the future internet.
  • ICMP — Used for ping and traceroute diagnostics. Test with our Ping Test.
  • ARP — Resolves IP addresses to MAC addresses on the local network.
  • NAT — Translates private addresses to public addresses on your router.

Layer 1: Network Access Layer

The Network Access layer combines physical transmission and data link framing. It handles how data is placed on the physical medium:

TechnologyMediumMax SpeedMax Distance
Ethernet (Cat5e)Copper twisted pair1 Gbps100 m
Ethernet (Cat6a)Copper twisted pair10 Gbps100 m
Wi-Fi 6 (802.11ax)Radio (2.4/5/6 GHz)9.6 Gbps~30 m indoors
Fiber Optic (SMF)Glass fiber100+ Gbps80+ km
DOCSIS 3.1Coax cable10 Gbps downVaries

Test your network access layer performance with our Speed Test and Bandwidth Calculator.

Note: The TCP/IP model is sometimes shown with 5 layers, splitting Network Access into separate Physical and Data Link layers. This "hybrid" model is commonly used in networking courses because it provides the practical simplicity of TCP/IP while retaining the useful distinction between physical and logical link-layer functions from the OSI model.

How Data Flows Through TCP/IP Layers

When you visit a website like 192.168.1.1, the request passes through each layer:

  1. Application — Browser creates an HTTP GET request and resolves the hostname via DNS.
  2. Transport — TCP adds port numbers (source random, destination 80/443) and manages the connection.
  3. Internet — IP adds source and destination IP addresses and routes the packet.
  4. Network Access — Ethernet adds MAC addresses and transmits frames on the wire or Wi-Fi.

At the gateway (your router), the Network Access frame is stripped and a new one is created for the next hop, while the IP and TCP layers remain unchanged end-to-end.

Key Takeaways
  • TCP/IP has four layers: Application, Transport, Internet, and Network Access.
  • TCP provides reliable delivery; UDP provides fast, connectionless delivery.
  • The Internet layer handles IP addressing and routing across networks.
  • TCP/IP is the actual protocol suite used by the internet; OSI is the theoretical reference.
  • Each layer has specific protocols and tools for troubleshooting (DNS, port checker, ping, etc.).
  • Understanding TCP/IP layers helps you diagnose exactly where network problems occur.

Video: TCP/IP Model Explained

Related Tools and Guides

Frequently Asked Questions

What is the TCP/IP model?

The TCP/IP model (Internet Protocol Suite) is a four-layer networking framework that defines how the internet works. Its layers are Application, Transport, Internet, and Network Access. It was developed in the 1970s and is the practical standard used by every internet-connected device.

How many layers does TCP/IP have?

TCP/IP has four layers: Application (Layer 4), Transport (Layer 3), Internet (Layer 2), and Network Access (Layer 1). Some textbooks show five layers by splitting Network Access into Physical and Data Link, but the original specification defines four.

What is the difference between TCP and UDP?

TCP (Transmission Control Protocol) provides reliable, ordered delivery with connection management and flow control. UDP (User Datagram Protocol) provides fast, connectionless delivery with no delivery guarantees. TCP is used for web, email, and file transfers; UDP is used for DNS, streaming, gaming, and VoIP.

Why is the TCP/IP model preferred over OSI?

TCP/IP is preferred for practical networking because it maps directly to real protocols and software implementations. The internet was built on TCP/IP, not OSI. The OSI model is more granular (7 layers vs 4) but some of its distinctions (like separate Session and Presentation layers) don't map cleanly to real protocols.

What layer does HTTP operate on?

HTTP operates at the Application layer (Layer 4 in TCP/IP, Layer 7 in OSI). It uses TCP at the Transport layer (typically port 80 for HTTP and port 443 for HTTPS) and relies on IP at the Internet layer for routing packets between client and server.

What is encapsulation in TCP/IP?

Encapsulation is the process of adding layer-specific headers as data moves down the TCP/IP stack. The Application creates data, Transport adds TCP/UDP headers (segment), Internet adds IP headers (packet), and Network Access adds Ethernet headers (frame). De-encapsulation reverses this at the receiving end.

About Tommy N.

Tommy is the founder of RouterHax and a network engineer with 10+ years of experience in home and enterprise networking. He specializes in router configuration, WiFi optimization, and network security. When not writing guides, he's testing the latest mesh WiFi systems and helping readers troubleshoot their home networks.

Promotion for FREE Gifts. Moreover, Free Items here. Disable Ad Blocker to get them all.

Once done, hit any button as below