Skip to main content Skip to search
Start Your Free Trial
Glossary of Terms

The OSI Network Model and Types of Load Balancers

A Load Balancer and an Application Delivery Controller Meet the TCP/IP Model and OSI Network Model

The function of a load balancer is to transparently distribute communication and processing loads across multiple service endpoints to ensure high application availability, optimal performance, and elastic scalability. In short, a load balancer is a strategic and crucial component of any serious online service platform to help ensure that application delivery and application availability meet organizational goals. To understand how load balancing figures into networking and review the types of load balancers available, we need to look at the leading models of network communications.

The TCP/IP Model and the OSI Network Model

In our articles [What is IPv4?] and [What is IPv6?], we discussed the TCP/IP model and explained how network addressing works in both cases. The TCP/IP model we discussed breaks up networking communications into four layers:

  • The link layer which connects to physical networking such as Ethernet
  • The internet layer which is where IPv4 and IPv6 protocols are defined
  • The transport layer which includes TCP and UDP protocols
  • The application layer which includes protocols such as DNS, DHCP, FTP, HTTP/S, and SMTP

Learn how layer 4 load balancing and layer 7 load balancing differ


This model is, without a doubt, the most common way the networking industry thinks about moving data from one endpoint to another. But while the TCP/IP model is the most widely used, the Open Systems Interconnection (OSI) model is a close second. It is, in many ways, a more sophisticated model providing greater structure and functional granularity, both of which provide significant engineering advantages. In addition, the OSI Network model was created by the International Organization for Standardization (ISO) making it a de jure network communication architecture.

As Wikipedia notes: “several networking models have sought to create an intellectual framework for clarifying networking concepts and activities, but none have been as successful as the OSI reference model in becoming the standard for discussing, teaching, and learning for the networking procedures in the field of Information technology.”

The OSI Network Model

The OSI Network model has seven layers:

  • Layer 1: The physical layer, as with TCP/IP, provides the physical connection to the network and defines the electrical and physical characteristics
  • Layer 2: The datalink layer conceptually creates a point-to-point connection between network endpoints and receives and sends data to and from the network layer
  • Layer 3: The network layer is responsible for routing data between network endpoints
  • Layer 4: The transport layer ensures delivery and quality-of-service functions
  • Layer 5: The session layer creates, maintains, and terminates sessions between network endpoints
  • Layer 6: The presentation layer converts data streams into formats that can be handled by the lower layers and can also compress/decompress and encrypt/decrypt data
  • Layer 7: The application layer provides access to the services provided by the lower layers

Comparing Network Communications Models

Comparing the two models is a little tricky as there are not only three more layers in the OSI Network model but the functionality of the layers in the two models are subtly and conceptually different. For example, TCP/IP is a functional model based on specific, standardized protocols while the OSI Network model is generic and protocol independent. Another difference between the models is that in the OSI Network model only layers 1, 2, and 3 are required to mediate application communications whereas applications in the TCP/IP model usually use all of the layers. That said, you can align the two models functionally like this:

  • The TCP/IP link layer is equivalent to a combination of OSI’s physical and datalink layers (layers 1 and 2). However, unlike the OSI model, in the TCP/IP model, sequencing and packet receive acknowledgement are left to the transport layer
  • The network and transport layers in both models are more or less functionally the same
  • OSI’s session, presentation, and application layers (layers 5, 6, and 7) combined equate to TCP/IP’s application layer

OSI Network Model Protocol and Services

The Role of a Load Balancer

There are two types of load balancers: A load balancer can operate at either at OSI Layer 4, the transport layer, or at OSI Layer 7, the application layer.

Layer 4 load balancing manages network traffic based on information such as the protocol being used, and source and destination ports and provides high availability but doesn’t provide visibility into the actual content of messages. This is an effective technique for simple packet-level high availability load balancing because messages are neither inspected nor decrypted which allows them to be forwarded quickly, efficiently, and securely. But layer 4 load balancing can’t make decisions based on message content and it’s not possible to route traffic based on media type, localization rules, or other criteria beyond simple algorithms such as round-robin routing.

OSI layer 7 load balancing introduces a more nuanced view of managing the flow of data and how it is routed.

Layer 7 load balancing monitors protocols such as HTTP, HTTPS, and SMTP and makes decisions based on the content of each message. A layer 7 load balancer also doesn’t just forward traffic, it can terminate sessions, perform decryption if HTTPS is involved, inspect messages, make content-based routing decisions, initiate a new TCP connection to the appropriate upstream server, and send the request to the selected server.

By supporting application-aware networking, layer 7 load balancing delivers intelligent traffic distribution across a group of servers. Also, by viewing and modifying cookies and tracking unique client sessions, layer 7 load balancing provides server persistence, or “sticky sessions”. Server persistence ensures all client requests for that session are sent to the same server which creates greater efficiency by not having to always open new sessions and then restore state data. Packet-level visibility also allows content caching to be used, holding frequently accessed items in memory for easy retrieval.

Most importantly for enterprises, layer 7 load balancing provides the intelligence to optimize traffic and reduce overhead by managing protocols that piggyback (multiplex) requests onto a single connection.

Enter the Application Delivery Controller

While a load balancer solves many problems about how to optimize high traffic throughput across multiple network resources, there is another level of network communications management that takes it to a higher level: Deploying an application delivery controller (ADC).

An application delivery controller uses algorithms to determine how inbound application traffic is distributed. An ADC can inspect packet headers for keywords or requested file types and direct the request to the appropriate server based on this data to ensure application availability and scalable performance.

Application delivery controllers provide in-depth traffic management by assessing server health and routing traffic to alternate servers as needed to ensure high availability.
ADCs also provide real-time and historical analysis of user and network traffic, measuring ping or round-trip connection times, bandwidth usage, latency, and jitter, which is crucial in assisting help desk staff to resolve performance issues and ensure high availability.

How A10 Can Help

The decision to use a conventional load balancer vs. an ADC, comes down to whether you need the raw performance of layer 4 load balancing or the overhead of deep traffic inspection with layer 7 load balancing. However, you don’t have to make a choice: With the A10 Thunder® Application Delivery Controller (ADC) you get the best of both approaches—the performance of layer 4 load balancing with the in-depth, highly granular data stream inspection of layer 7 load balancing. For more information on A10’s strategic approach, see the A10 Thunder Application Delivery Controller.

< Back to Glossary of Terms