TCP/IP Suite

Transmission Control Protocol (TCP) / Internet Protocol (IP)

TCP/IP is a suite of protocols that performs the transfer of data between two computers or groups of dissimilar computers.

TCP is responsible for verifying the correct delivery of data from client to server. TCP also adds support to detect errors or lost data and to trigger retransmission until the data is correctly and completely received.

IP is responsible for moving packets of data from node to node. IP forwards packets based on a four byte destination address (IP number).

Application Layer

A TCP/IP application is any network process that occurs above the Transport Layer. This includes all the processes that users directly interact with, as well as other processes that users are not aware of.


Transport Layer

The transport layer corresponds to the Session and Transport Layer of the OSI model. It establishes a secure session between two machines and breaks down packets or datagrams.


  • Transmission Control Protocol (TCP) – ensures that the user gets data exactly as it was sent
  • User Datagram Protocol (UDP) – this protocol does not perform end-to-end reliability checks

Internet Layer

This is equivalent to the Network layer of the OSI model. It is concerned with how packets are routed and solving congestion problems. This layer uses Internet Protocol (IP), which is a connectionless protocol and Internet Control Message Protocol (ICMP).

Network Interface/Access Layer

The Network Access layer is equivalent to the Data Link and Physical layers of the OSI model. It ensures that data transmitted between sender and receiver is correct. This layer also provides guidelines on how to move data bits between modems.

Communication between Nodes

When connection-oriented services such as HTTP, FTP and pure IP are used, a connection must be established between the source and destination. This connection is called a handshake. The handshake has three steps. For argument sake, lets call the device that initiated the handshake Device A, and the target or destination Device B.

Step 1: – Device A sends its TCP sequence number and maximum segment size to Device B.

Step 2:- Device B responds by sending its sequence number and maximum segment size to Device A.

Step 3:- Device A acknowledges receipt of the sequence number and segment size information. Device A begins transmission.

A normal connection between a user (Alice) and...

A normal connection between a user (Alice) and a server. The three-way handshake is correctly performed. (Photo credit: Wikipedia)



OSI Reference Model

The Open System Interconnect (OSI)

The OSI reference model was developed by the International Standard Organization (ISO) to establish a framework of standards for computer-to-computer communication. The OSI model allows hardware and software companies to develop their products to work within certain parameters and guidelines of the model. This allows products to work with other products that operate within these guidelines.

The “Open” in OSI means that the model deals with systems that are open for communication with other systems. The OSI model is also called a layered protocol because of the seven (7) layers that its comprised of.

Benefits of the OSI Model

  • A network layer can be replaced by a layer from another network vendor.
  • Networks can be upgraded easily by replacing individual layers
  • The user and network designer are not restricted to using the product (hardware/ software) of a specific vendor.

Layer Function

Layer 1: Physical

This layer defines the the standards that provide guidelines on how to move data bits between modems. This layer also specifies the electrical connections between the transmission medium and the computer.

Layer 2: Data Link

This layer is responsible for ensuring that the data transmitted between two locations on the network is accurate. This layer also controls access to the network and breaks up data to be sent into frames. The data link layer solves competition problems using Media Access Control (MAC) and Carrier Sense Multiple Access/Collision Detection (CSMA/CD). This layer also solves lost, duplicated or destroyed frames.

Layer 3: Network

The network layer is concerned with determining how packets are routed from source to destination. Routes (paths) can be hard-wired into the LAN or they can be determined at the time a packet is sent. This layer solves congestion problems and ensures that the line is not overloaded with packets while other lines are under-utilized.

Layer 4: Transport

The basic function of the transport layer is to accept data from the session layer, break them into smaller pieces and pass them on to the network layer. This layer also ensures that pieces of data arrive at the other end correctly.

Layer 5: Session

The session layer allows users on different machines to establish and terminate a session between them. A session is used to allow a user to log into a remote time-sharing system or to transfer a file between two machines. The session layer manages communication and keeps track of whose turn it is to talk.

Layer 6: Presentation

This layer ensures that the receiving computer understands the information sent to it. Different computers represent data differently and it is the responsibility of this layer to provide a standard encoding (data representation) to be used by computers in the network. Data is formatted using this standard encoding before it is presented to destination machines. This layer is also responsible for data compression and encryption.

Layer 7: Application

This layer facilitates user functions (e.g. File Transfer, Email) and provides guidelines for network services.