The Reference Models

Layers are the foundation for studying computer networks. You must understand how to work with layers to describe the flow of a data request to its destination and how the reverse occurs when the destination sends a response.

Given the growing complexity of computer networks, during the 1970s, network researchers proposed various reference models to describe network protocols and services. Of these, the Open Systems Interconnection (OSI) model [Zimmermann80] was probably the most influential. It served as the basis for the standardization work performed within the ISO to develop global computer network standards. The reference model used in this book can be considered a simplified version of the OSI reference model.


2.2.1 The five layers reference model

Our reference model is divided into five layers, as shown in the figure below.

Starting from the bottom, the first layer is the Physical layer. Two communicating devices are linked through a physical medium. This physical medium transfers an electrical or optical signal between two directly connected devices. Several types of physical mediums are used in practice:

  • electrical cable: Twisted pair and coaxial cables are the most frequently used types for data transmission. Twisted pair cables comprise two intertwined wires, while coaxial cables have a central conductor wrapped by insulation and a conductive outer shield. Twisted pair cables generally offer lower bandwidth compared to coaxial cables, which provide higher bandwidth but come with a higher cost. An advanced technology known as Power over Ethernet (PoE) allows data and electrical power to be transmitted over Ethernet cables, simplifying the overall wiring setup.
  • optical fiber: Optical fibers are used in public and enterprise networks for distances from less than a kilometer to hundreds of kilometers. There are primarily two types: multimode and single-mode fibers. Both use lasers to transmit data. Multimode fibers are generally cheaper and often employ a laser as the light source. However, they are usually limited to shorter transmission distances like a Local Area Network (LAN). Single-mode fibers, driven by lasers, can transmit data over much greater distances and are better suited for longer-distance communications such as in a Wide Area Network (WAN)
  • wireless: Today's 5G networks offer high-speed, low-latency communication. Advances in wireless technology include techniques such as beamforming multiple input and multiple output (MIMO) to improve capabilities. Beamforming focuses the wireless signal toward a specific direction to improve signal strength and reduce interference. MIMO employs multiple antennas at both the transmitter and receiver to optimize data speed and reliability.
  • emerging technologies: free-space optical communication is becoming more prevalent, particularly in specialized applications like satellite communication. This technology uses line-of-sight beams of light, typically lasers, to transmit data through the air or in a vacuum, eliminating the need for physical cables.

Figure 2.28: The five layers of the reference model

Figure 2.28: The five layers of the reference model

An important point to note about the Physical layer is the service that it provides. This service is usually an unreliable connection-oriented service that allows the users of the Physical layer to exchange bits. The unit of information transfer in the Physical layer is the bit. The Physical layer service is unreliable because :

  • The physical layer may change, e.g., due to electromagnetic interferences, the value of a bit being transmitted
  • The physical layer may deliver more bits to the receiver than the bits sent by the sender
  • The physical layer may deliver fewer bits to the receiver than the bits sent by the sender

The last two points may seem strange at first glance. When two devices are attached through a cable, how is it possible for bits to be created or lost on such a cable?

This is mainly because the communicating devices use their own clock to transmit bits at a given bit rate. Consider a sender having a clock that ticks one million times per second and sends one bit every tick. Every microsecond, the sender sends an electrical or optical signal that encodes one bit. The sender’s bit rate is thus 1 Mbps. If the receiver clock ticks exactly every microsecond, it will also deliver 1 Mbps to its user. However, if the receiver’s clock is slightly faster (resp. slower), it will deliver slightly more (resp. less) than one million bits every second. This explains why the physical layer may lose or create bits.

Note: Bit rate

In computer networks, the bit rate of the physical layer is always expressed in bits per second. One Mbps is one million bits per second, and one Gbps is one billion bits per second. This is in contrast with memory specifications that are usually expressed in bytes (8 bits), KiloBytes ( 1024 bytes), or MegaBytes (1048576 bytes). Thus, transferring one MByte through a 1 Mbps link lasts 8.39 seconds.

Figure 2.29: The Physical layer

The physical layer allows, thus two or more entities directly attached to the same transmission medium to exchange bits. Being able to exchange bits is important as virtually any information can be encoded as a sequence of bits. Electrical engineers are used to processing streams of bits, but computer scientists usually prefer to deal with higher level concepts. A similar issue arises with file storage. Storage devices such as hard disks also store streams of bits. There are hardware devices that process the bit stream produced by a hard disk, but computer scientists have designed filesystems to allow applications to easily access such storage devices. These filesystems are typically divided into several layers as well. Hard disks store sectors of 512 bytes or more. Unix filesystems group sectors in larger blocks that can contain data or inodes representing the structure of the filesystem. Finally, applications manipulate files and directories that are translated in blocks, sectors and eventually bits by the operating system.

Computer networks use a similar approach. Each layer provides a service that is built above the underlying layer and is closer to the needs of the applications.

The Datalink layer builds on the service provided by the underlying physical layer. The Datalink layer allows two hosts that are directly connected through the physical layer to exchange information. The unit of information exchanged between two entities in the Datalink layer is a frame. A frame is a finite sequence of bits. Some Datalink layers use variable-length frames while others only use fixed-length frames. Some Datalink layers provide a connection-oriented service while others provide a connectionless service. Some Datalink layers provide reliable delivery while others do not guarantee the correct delivery of the information.

An important point to note about the Datalink layer is that although the figure below indicates that two entities of the Datalink layer exchange frames directly, in reality this is slightly different. When the Datalink layer entity on the left needs to transmit a frame, it issues as many Data.request primitives to the underlying physical layer as there are bits in the frame. The physical layer will then convert the sequence of bits in an electromagnetic or optical signal that will be sent over the physical medium. The physical layer on the right hand side of the figure will decode the received signal, recover the bits, and issue the corresponding Data.indication primitives to its Datalink layer entity. If there are no transmission errors, this entity will receive the frame sent earlier.

Figure 2.30: The Datalink layer

The Datalink layer allows directly connected hosts to exchange information, but it is often necessary to exchange information between hosts not attached to the same physical medium. This is the task of the network layer. The network layer is built above the datalink layer. Network layer entities exchange packets. A packet is a finite sequence of bytes transported by the datalink layer inside one or more frames. A packet usually contains information about its origin and its destination, and usually passes through several intermediate devices called routers on its way from its origin to its destination.

Figure 2.31: The network layer

Most realizations of the network layer, including the internet, do not provide a reliable service. However, many applications need to exchange information reliably so using the network layer service directly would be very difficult for them. Ensuring the reliable delivery of the data produced by applications is the task of the transport layer. Transport layer entities exchange segments. A segment is a finite sequence of bytes transported inside one or more packets. A transport layer entity issues segments (or sometimes part of segments) as Data.request to the underlying network layer entity.

There are different types of transport layers. The most widely used transport layers on the Internet are TCP, which provides a reliable connection-oriented byte-stream transport service, and UDP,that provides an unreliable connection-less transport service.

Figure 2.32 The transport layer

The upper layer of our architecture is the Application layer. This layer includes all the mechanisms and data structures necessary for the applications. We will use the Application Data Unit (ADU) to indicate the data exchanged between two entities of the Application layer.

Figure 2.33: The Application layer


Source: Adapted from Olivier Bonaventure, https://s3.amazonaws.com/saylordotorg-resources/wwwresources/site/wp-content/uploads/2012/02/Computer-Networking-Principles-Bonaventure-1-30-31-OTC1.pdf
Creative Commons License This work is licensed under a Creative Commons Attribution 3.0 License.

Last modified: Friday, December 8, 2023, 2:28 PM