Skip to content

Instantly share code, notes, and snippets.

@leksak
Last active December 6, 2015 19:22
Show Gist options
  • Save leksak/0b92b2906381ce9bb523 to your computer and use it in GitHub Desktop.
Save leksak/0b92b2906381ce9bb523 to your computer and use it in GitHub Desktop.
Answer to exam question regarding what roles each layer in the IP-stack has

The different layers that make up the internet protocol stack are

  • Application
  • Transport
  • Network
  • Link
  • Physical

The fundamental services (and eventual errors that each layer has to provide is described below) although the physical layer has been omitted.

Application

The application layer specifies the shared protocols and interface methods used by hosts in a communications network. It needs to adapt to the limitations of the transport layer, especially when using UDP.

Transport

The two fundamental services provided by the Transport layer are UDP and TCP. Primarily its purpose is to compensate for the rudimentary services provided by the network layer, which provide no guarantees. Furthermore the network layer sends messages between computers, while the transport layer establishes a logical connection between processes by using port numbers.

Network

The primary purpose of the network layer is to deliver messages to the appropriate receiver. The layer has to provide addressing and routing.

Link

  • Data encapsulation, add additional information to the data packet from the network layer so that they may be delivered correctly, for instance the link layer address of the destination, the length of the data packet and error correction information.

  • Error correction, because of external interference the layer needs to be capable of detecting when bit-errors occur. If one wants to achieve reliable data transfer of data methods are needed for retransmitting frames that could not be correctly transferred the first time.

  • Asynchronous/Synchronous transfer. Provide synchronisation between sender and receiver.

  • Access to transmission medium and flow control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment