Network Protocol Architectures
Network Protocol Architectures
OSI model
The Open Systems Interconnection (OSI) reference model was developed by the
International Organization for Standardization (ISO) as a model for a computer
protocol architecture and as a framework for developing protocol standards. The
OSI model consists of seven layers:
• Application
• Presentation
• Session
• Transport
• Network
• Data link
• Physical
This layer translates data from a format used by the application layer into a common format at
the sending station, and then translates the common format to a format known to the
application layer at the receiving station.
Protocols at Layer 6 include American Standard Code for Information Interchange (ASCII), extended
binary-coded decimal interchange code(EBCDIC), Transport Layer Security(TLS) ,Secure
Sockets Layer (SSL),Lightweight Presentation Protocol (LPP) and Network Data Representation
(NDR)
The session layer establishes, manages, and terminates communication sessions between
applications at each end.
The layer deals with time management, who transmits and when.
Protocols at Layer 5 include; NetBIOS, Password Authentication Protocol (PAP)
Session Control Protocol(SCP),Point-to-Point Tunneling Protocol (PPTP)
End-to-end layers
The above four layers are end to end layers and are not concerned with the details of the
underlying communications.
In these end to end layers software at the source station communicates with similar software on
the destination station using message headers and control messages.
Transport Layer
• The Transport Layer just like in the OSI model is concerned with end-to-end (host-to-
host) delivery of packets.
• Transmission Control Protocol (TCP) provides reliable, connection-oriented transport of
data between two endpoints (sockets) on two computers that use Internet Protocol(IP)
• A socket is an endpoint for communication flow between two programs running over a
network and is a combination of an IP address and a port number
• TCP uses a three-way handshake before starting transfer of data. A TCP segment
requires more header fields in order to guarantee reliability and has 20 bytes of
overhead (header).
• User Datagram Protocol (UDP) provides unreliable, connectionless transport of data
between two endpoints (sockets) on two computers using Internet Protocol (IP)
• UDP does not establish a path before sending data and therefore has less delay as
compared to TCP.
• UDP has only 8 bytes of overhead and is advantageous over TCP especially for low-
volume data.
TCP Header
Source port (2 octets)-identifies the sending port
Destination port (2 octets)-identifies the receiving port
Sequence number (32 bits) -Specifies the sequence number of the first byte of data of the
segment.
Acknowledgment number (32 bits) specifies the position of the last byte.
Data offset (4 bits) this specifies the size of the TCP header in 32-bit words.
Reserved (3 bits) reserved for future use.
Flags (9 bits) 9 Control bits
Window size (16 bits) specifies the size of the receive window
Checksum (16 bits) used for error-checking
Urgent pointer (16 bits) offset from the sequence number
Options determined by the data offset field
Padding-The padding is for filling up the 32bit word and ensure that data starts on the 32- bit
boundary.
UDP Header
Internet layer
• The Internet Layer provides connectionless communication across one or more networks
• Each packet travels in the network independently of each other. The packets may arrive
out of order or may not arrive at all.
• Internet Protocol provides the logical addressing and routing functions that forward
packets from one network to another.
• The Internet Layer is concerned with network to network communication.
The IPv6 header shown below is simple and easy to process. This enables IPv6 devices the
ability to spend the majority of their time dealing with the data contained within the packet and
not the packet header itself.
Ethernet header
Encapsulation
This is the process by which one layer packages it’s data in ‘headers’ with fields that adjacent
and peer layers understand.
Application data is broken down into data segments and encapsulated in Transport Layer PDU's
(TCP or UDP segments).
The Transport Layer PDUs are then encapsulated in Internet Layer Protocol Data Units (IP
datagram)
The Internet Protocol packets are then chopped into frames at the Network Access layer and
transmitted across the physical media (copper wires, fiber optic cables or the air) to the next
station in the network.
Further reading – Data and Computer communications Chapter 2