Understanding the OSI Model
OSI Model Overview
In the late 1970s, the International Organization for Standardization (ISO) started expanding on the DoD model, to develop the Open Systems Interconnection (OSI) reference model for computing. The OSI model defines how hardware and software function at different layers to enable communication between computers. The OSI model is a conceptual framework which can be referenced to better comprehend how devices operate on the network.
Today, the OSI model is the most widely used guide for a networking environment. When manufacturers design new products, they reference the OSI model's concepts on the manner in which network components should function.
The OSI model defines standards for:
- The way in which devices communicate between each other.
- The means used to inform devices when to send data and when not to transmit data.
- The methods which ensures that devices have a correct data flow rate
- The means used to ensure that data is passed to, and received by the intended recipient.
- The manner in which physical transmission media is arranged and connected.
The OSI model is made up of seven layers which are presented as a stack. Data which is passed over the network moves through each layer.
The seven layers of the OSI model are:
- Application Layer - layer 7
- Presentation Layer - layer 6
- Session Layer - layer 5
- Transport Layer - layer 4
- Network Layer - layer 3
- Data-Link Layer - layer 2
- Physical Layer - layer 1
Each layer of the OSI model has its own unique functions. The process of sending data is typically started at the Application layer, is sent through the stack to the Physical layer, and then over the network to the recipient. Data is received at the Physical layer, and the data packet is then passed up the stack to the Application layer.
Different protocols operate at the different layers of the OSI model. Each layer of the OSI model has its own protocols. TCP and IP are collectively called the protocol stack or the network/transport protocols. This is due to the protocols operating at the Network and Transport layers to make it possible for computers to communicate. A protocol stack, r stack, is a group of protocols which are arranged in layers to enable communication. In the protocol stack, each layer provides services to the layer above it; and each layer also receives services from the layer beneath it. For two computers to partake in communications, each computer has to be running the same protocol stack. They can however have different operating systems.
The Physical Layer (layer 1)
The first layer in the OSI model is the Physical layer which transmits raw bit streams over a physical medium. The Physical layer deals with establishing a physical connection between computers to enable communication. The physical layer is hardware specific and deals with the actual physical connection between the computer and the network medium. All devices that function at the Physical layer handle signalling. Data handled at the layer are in bits (1s and 0s). The 1s and 0s are in represented by pulses of light or electricity.
The details on the actual physical connection defined at this layer include:
- Physical topologies of the network.
- Network connection types and how cable is attached to the Network Interface Card (NIC).
- Data encoding: This relates to the analog and digital signaling methods utilized to encode data in the signals.
- Bit synchronization
- Multiplexing
- Termination
The specifications of the Physical layer include:
- Physical layout of the network
- Voltage changes and the timing of voltage changes.
- Data rates
- Maximum transmission distances
- Physical connectors to transmission mediums
The issues normally clarified at the Physical Layer include:
- Whether data is transmitted synchronously or asynchronously
- Whether the analog or digital signaling method is used
- Whether baseband or broadband signalling is used.
The Data-link Layer (layer 2)
The Data-link layer of the OSI model enables the movement of data over a link from one device to another, by defining the interface between the network medium and the software on the computer. The Data-link layer maintains the data link between two computers to enable communications.
The responsibilities of the Data-link layer include:
- Packet addressing
- Media access control
- Format the frame used to encapsulate data
- Error notification on the Physical layer
- Managing of error messaging specific to the delivery of packets.
Ensures that frames are transmitted from one computer to another computer with no errors. It establishes error-free connections between two devices.
Layer 2 manages the ordering of bits, packets, to and from data segments. The ensuing result is called frames. Frames contain data that is already arranged in an orderly manner. The Data-link layer receives packets from the Network layer and structures these packets into frames. The frames are then moved to the Physical layer for sending. A cyclic redundancy check (CRC) is added to the data frame. The CRC detects damaged frames. The computer at the receiving end can request the cyclic redundancy check (CRC) so that it can verify that the frame is not damaged. The Data-link layer can determine when a frame is lost. It also requests any lost frames to be retransmitted. By performing these tasks, the Data-link layer makes it possible for data bits to be transmitted in an organized manner.
The Data-link layer is divided into the following two sublayers:
- Logical Link Control (LLC) sublayer: The LLC sublayer provides and maintains the logical links used for communication between the devices.
- Error checking
- Frame synchronization
- Flow control
- Media Access Control (MAC) sublayer: The MAC sublayer of the Data-link layer controls the transmission of packets from one network interface card (NIC) to another over a shared media channel. A NIC has a unique MAC address, or physical address. This address identifies the particular NIC on the network. To ensure that these addresses are unique, the MAC addresses are usually permanently burned in the memory of the NIC. The MAC sublayer handles media access control which essentially prevents data collisions. It provides for the allocation of network access to computers, and more importantly, it prevents computers from transmitting data simultaneously.
The functions at the LLC sublayer of the Data-link layer include the following:
The common media access control methods are listed below.
The Network Layer (layer 3)
The Network layer of the OSI model is responsible for moving packets between devices, by providing end-to-end communications between computers that exist on different network. One of the main functions performed at the Network layer is routing. Routing enables packets to be moved among computers which are more than one link from one another.
The functions performed at the Network layer of the OSI model are listed below:
- Traffic direction to the end destination
- Addressing; logical network addresses and services addresses
- Routing functions; route discovery and route selection
- Packet switching
- Packet sequence control
- End-to-end error detection, from the data sender to the receiver of data.
- Congestion control
- Network layer flow control and Network layer error control
- Gateway services
The Transport Layer (layer 4)
The Transport layer is responsible for transporting data in a sequential manner, and with no data loses. The Transport layer divides large messages into smaller data packets so that it can be transmitted to the destination computer. It also reassembles packets into messages for it to be presented to the Network layer.
The important functions performed at the Transport layer to enable network communication are listed below:
- Guaranteed data delivery
- Name resolution
- Flow control
- Error detection
- Error recovery
The Transport layer at each computer verifies that the application transmitting the data is actually allowed to access the network. It also verifies that each end of the network connection can start the data transfer process. The transport protocols running on each host partaking in communication monitors the data transfer process, and monitors for errors as well.
The common Transport protocols utilized at this layer are:
- Transmission Control Protocol (TCP): TCP is a connection-orientation protocol that offers greater reliability when it comes to transporting data than what UDP, the other TCP/IP protocol which works at this layer provides. With TCP, the application which sends the data receives acknowledgement or verification that the data was actually received.
- User Datagram Protocol (UDP): UDP is a connectionless protocol that does not provide reliable data transport. No acknowledgements are transmitted.
The Session Layer (layer 5)
The Session layer of the OSI model enables communication sessions to be established between processes or applications running on two different computers. A process is a specific task that is associated with a particular application. Applications can simultaneously run numerous processes. The Session layer utilizes the virtual circuits created by the Transport layer to establish communication sessions.
The important functions performed at Session layer to establish, maintain and terminate communication sessions are summarized below:
- Establishes, terminates, and monitors communication sessions between applications
- Name lookup and security functions.
- Placement the header information in a packet which determines the point where a message starts and the point where a message ends.
- Data synchronization. The layer performs synchronization between the Session layer of the data sender and the Session layer of the receiver of the data.
- Controls whether the communication or messages being exchanged in a session are transmitted as full duplex messages or half duplex messages.
- Full duplex: Information is transmitted simultaneously, and in both directions.
- Half duplex: Information is transmitted in both directions, and flows in one direction at a time.
The Presentation Layer (layer 6)
At the Presentation layer of the OSI model, the data being transmitted is translated. The layer is responsible for translating data between the formats which the network requires and the formats which the computer is anticipating. The presentation layer translates the formats of each computer to a common transfer format which can be interpreted by each computer.
The functions performed at the Presentation layer of the OSI are:
- Protocol conversion
- Data translation.
- Data encryption and decryption
- Data compression
- Character set conversion
- Interpretation of graphics commands.
Data is translated at the Presentation layer when it is transmitted from the sender to the receiver. The application of the sender moves the data to the Presentation layer. The Presentation layer translates the data to a common format which can be read by both computers. When the data is received, the Presentation layer translates the data to a format which the application can read.
Gateway services also function at the Presentation layer. A gateway can be defined as a connection point between networks which run different systems and applications. Gateways are typically deployed through software. An example is Gateway Services for NetWare (GSNW).
Common gateways include:
- Gateways which cross platforms and file systems
- Systems Network Architecture (SNA) gateways enable PCs to communicate with mainframe computers.
- E-mail gateways enable data to be transmitted between different e-mail applications running the same protocol.
The Application Layer (layer 7)
The Application layer is the highest layer of the OSI model, and it provides the interface between the network protocol and the software running on the computer. The Application layer provides the necessary services that support applications. It provides the interface for e-mail, Telnet and File Transfer Protocol (FTP) applications, and files transfers. This is the location where applications interrelate with the network
The common application protocols include:
- File Transfer Protocol (FTP)
- Telnet
- Simple Mail Transfer Protocol (SMTP)
- Internet Message Access Protocol (IMAP),
- Post Office Protocol (POP)
- Hypertext Transfer Protocol (HTTP)
- Simple Network Management Protocol (SNMP).
- Network News Transfer Protocol (NNTP)
Understanding Network Protocols and the OSI Model
Specific protocols function at each layer of the OSI model to assist in enabling the particular layer to perform its associated functions. The network protocols enable data to be communicated between computers. When protocols function together to provide layers of the OSI model, they are referred to as a protocol suite or protocol stack.
When network protocols function together to move data between computers, the following process usually occurs:
- The data is broken into smaller chunks of data. These chunks of data are called packets.
- To identify the destination computer, addressing information is added to the data packets.
- The data is then moved to the network card for transmission over the network.
- At the receiving computer, the data packets are accepted from the network card.
- Any transmission information which was appended to the packet by the sending computer is removed.
- The packet is reassembled into the original message.
From the above process, you can see that network protocols assemble, change, and disassemble packets as data is moved through the protocol stack.
The components that make up a packet are listed below:
- Source address; this address identifies the computer sending the data.
- Destination address; this address identifies the receiver of the data.
- Information which define the manner in which the computer should send the data.
- Reassembly information.
- Packet payload; this is the data which should be sent to the destination computer.
- Error-checking information
A packet is divided into three segments, which in turn include those components which are listed above:
- Header: The header includes the following:
- A signal which indicates that data is being sent
- Source address
- Destination address
- Clock information needed for synchronization of the data transmission.
- Data: This segment of the packet contains the data which is being sent to the receiving computer.
- Trailer: The trailer segment of a packet normally includes a cyclic redundancy check (CRC) which verifies that the packet is undamaged.
A few characteristics of network protocols and protocol stacks are listed below:
- Different protocol stacks can perform network functions.
- Different types of network interface cards (NICs) can be implemented in a computer.
- A computer can have multiple NICs installed.
- A computer can at the same time utilize different protocol stacks.
- The protocol stack is connected to the network device driver for the network interface adapter by a binding process.
- Multiple protocols can be bound to the identical card.
- The binding process can be used all through the layers of the OSI model to link protocol stacks.
- If a computer has multiple interface adapters, it can have the identical protocol bound to multiple network cards.
- The device driver that function within the Data-link layer is bound the NIC.
- TCP/IP and the NWLINK Session layer can be bound to the device driver.
Computers communicate using connection-oriented protocols, and connectionless protocols.
- Connectionless protocols: A good example of a connectionless protocol is the User Datagram Protocol (UDP). Connectionless protocols provide no verification that data was delivered. These protocols operate well in networks that have a light load. Connectionless protocols tend to fail in large networks that have a heavy load.
- Connection-orientated protocols: The Transmission Control Protocol (TCP) of the TCP/IP protocol suite is a connection-orientated protocol. Connection-orientated protocols provide verification that data was delivered. These protocols guarantee the reliable delivery of data.
With reference to the OSI model, protocols are categorized as follows:
- Network protocols: These protocols deal with:
- Routing
- Addressing
- Error detection
- retransmission requests
- Transport protocols: These protocols enable sessions to be established and maintained between computers.
- Application protocols: These protocols enable:
- Applications to interact
- Data to be exchanged
The protocols stacks typically used in networks are listed below:
- TCP/IP
- AppleTalk
- NetWare
- NetBIOS
NWLink IPX/SPX
The Microsoft implementation of Novell's IPX/SPX protocol stack is NWLink IPX/SPX. NWLink IPX/SPX is used in Novell NetWare, and is basically IPX for Windows. Windows Server 2003 includes NWLink IPX/SPX to enable Windows Server 2003 to communicate with legacy Novell NetWare servers and clients. NWLink IPX/SPX could become problematic in large networks because it does have a central IPX addressing scheme which prevents networks from utilizing the same address numbers.
The main advantages of NWLink IPX/SPX are summarized below:
- NWLink IPX/SPX is simple to implement and manage.
- Connecting is NetWare servers and clients is a simple process.
- NWLink IPX/SPX is routable
The disadvantages of NWLink IPX/SPX are summarized below:
- Windows Server 2003 only includes limited support for NWLink IPX/SPX.
- Exchanging data between different organizations via NWLink IPX/SPX is an intricate process.
- NWLink IPX/SPX does not support standard network management protocols.
TCP/IP
TCP/IP is a grouping of protocols which provides a collection of networking services. TCP/IP is the main protocol which Windows Server 2003 utilizes for its network services.
The main protocols in the TCP/IP suite are:
- Transmission Control Protocol (TCP); the protocol operates at the Transport layer.
- Internet Protocol (IP); the protocol operates at the Network layer.
When communication takes place via TCP/IP, IP is used at the Network layer, and either TCP or UDP is used at the Transport layer.
The main advantages of using TCP/IP are summarized below:
- Can be used to establish connections between different types of computers and servers.
- Includes support for a number of routing protocols.
- Enables internetworking between organizations
- Includes support for name and address resolution services, including:
- Domain Name Service (DNS)
- Dynamic Host Configuration Protocol (DHCP)
- Windows Internet Name Service (WINS)
- Includes support for a number of different Internet standard protocols for:
- Web browsing
- File and print services
- Transporting mail
The disadvantages of TCP/IP are summarized below:
- IPX is faster than TCP/IP.
- TCP/IP is intricate to set up and manage.
- The overhead of TCP/IP is higher than that of IPX.
With TCP/IP, the TCP component of the protocol suite utilizes port numbers to forward messages to the correct application process. Port numbers are assigned by the Internet Assigned Numbers Authority (IANA), and they identify the process to which a particular packet is connected to. Port numbers are found in the packet header.
The main port numbers used are:
- Port 20; for File Transfer Protocol (FTP) data
- Port 21; for File Transfer Protocol (FTP) control
- Port 23; for Telnet.
- Port 25; for Simple Mail Transfer Protocol (SMTP)
- Port 80; for Hypertext Transfer Protocol (HTTP)
- Port 88; for Kerberos
- Port 110; for Post Office Protocol (POP3) - version 3
- Port 443; for Secure HTTP (HTTPS)
NetBEUI
NetBIOS naming is supported in Windows Server 2003. Windows Server 2003 does not though support the NetBEUI protocol. NetBEUI is a single protocol that was initially used in Windows NT 3.1 and Windows for Workgroups operating systems. The protocol provides basic file sharing services for Windows computers, and is designed for small networks. NetBEUI does not perform well on large networks. The protocol can also not support internetwork traffic because it cannot route traffic between networks. NetBEUI cannot address traffic to a computer on a different network.
|
Bookmark Understanding the OSI Model

