Wiki DE Start in the browser

Wiki › Basics

TCP/IP model

Four layers according to RFC 1122 instead of seven according to ISO/IEC 7498-1: how the two models fit together and why the internet is built on the TCP/IP model.

Layer
1 bis 7
Standard
ISO/IEC 7498-1, RFC 1122, RFC 1123

Two models, one network

The OSI reference model (ISO/IEC 7498-1) describes communication in seven layers. It is a thinking model: every layer has a clear task and only talks to the layer below and above. The TCP/IP model comes from the requirements for internet hosts (RFC 1122 for the lower layers, RFC 1123 for the application layer) and knows only four layers. The internet protocols are built according to it.

TCP/IP (RFC 1122)OSI (ISO/IEC 7498-1)ExamplesData unit
Application7 application, 6 presentation, 5 sessionHTTP, DNS, DHCP, SMTPdata
Transport4 transportTCP, UDPsegment, datagram
Internet3 networkIPv4, IPv6, ICMPpacket
Link2 data link, 1 physicalEthernet, Wi-Fi, PPPframe, bits

What the layers do

  • Link: carries frames over a single medium to the next device. Addresses are local (MAC addresses).
  • Internet: carries packets across many networks to the destination. Addresses are globally unique (IP addresses); routers decide the path.
  • Transport: connects programs on the end devices via ports. TCP takes care of order and retransmission, UDP simply sends.
  • Application: the actual service, such as a web page or a name lookup. Presentation (encoding, encryption) and session (keeping a connection) are usually handled by the application itself on the internet.

The end-to-end principle

RFC 1122 requires routers to keep the network simple: they only read up to layer 3 and forward. Reliability, order and security lie with the end devices. That is why leyoNET shows how a router replaces the Ethernet header and lowers the TTL but leaves TCP segments unchanged (unless NAT changes addresses and ports).

Standards

  • ISO/IEC 7498-1 – Open Systems Interconnection – Basic Reference Model: The Basic Model (current edition: ISO/IEC 7498-1:1994)
  • RFC 1122 – Requirements for Internet Hosts – Communication Layers
  • RFC 1123 – Requirements for Internet Hosts – Application and Support

Read on

Found a mistake or have an idea? Source of this page on GitHub.