Lecture 2 TCP, OSI
Lecture 2 TCP, OSI
Lecture 2 TCP, OSI
Delivered By
NAMRA MUKHTAR
LECTURER, GCWUS
Contents
• Internet protocol suite
• TCP vs IP
• TCP vs OSI
• OSI Model
• 7 layers of OSI
• Data flow
Internet protocol suite
• The Internet protocol suite is the conceptual model and set of
communications protocols used in the Internet and similar computer
networks.
• Defense Advanced Research Projects Agency (DARPA) in the late 1960s
TCP/IP
• In 1975, a two-network TCP/IP communications test was performed between
Stanford and University College London.
• Just like people, it’s important for computers to have a common way to
communicate with each other. Today most computers do this through TCP/IP.
Reference Model
• In computer networks, reference models give a conceptual
framework that standardizes communication between
heterogeneous networks.
The two popular reference models are
• OSI Model
• TCP/IP Protocol Suite
How do TCP and IP differ?
• IP is the part that obtains the address to which data is sent. TCP is
responsible for data delivery once that IP address has been found.
Message Checksum
Message Data
UDP used in DDoS attacks
12
OSI model
• The Open Systems Interconnection model (OSI) model, breaks down how information and
requests are sent from one computer to another, starting at the user making a request and
ending at that information traveling over some transmission medium.
• Each layer’s duty is to make sure that information is being passed correctly between the
layers above and below it, and if all the layers are doing their jobs, you computer will be able
to communicate with others.
(SMTP)
Functions
• Functions of Application layer:
• File transfer, access, and management (FTAM): An application layer
allows a user to access the files in a remote computer, to retrieve the
files from a computer and to manage the files in a remote computer.
• Mail services: An application layer provides the facility for email
forwarding and storage.
• Directory services: An application provides the distributed database
sources and is used to provide that global information about various
objects.
Presentation Layer
• A Presentation layer is mainly
concerned with the information
exchanged between the two
systems.
• This layer is a part of the operating
system that converts the data from
one presentation format to another
format.
• It acts as a data translator for a
network.
• The Presentation layer is also
known as the syntax layer.
Functions of Presentation layer:
• Synchronization
Functions
• Dialog control: Session layer acts as a dialog controller that creates a
dialog between two processes or we can say that it allows the
communication between two processes which can be either half-
duplex or full-duplex. (Authentication and Authorization)
• Synchronization: Session layer adds some checkpoints when
transmitting the data in a sequence. If some error occurs in the
middle of the transmission of data, then the transmission will take
place again from the checkpoint. This process is known as
Synchronization and recovery.
Transport Layer
Layer 4 is responsible for end-to-end communication between the two devices. This includes taking data
from the session layer and breaking it up into chunks called segments before sending it to layer 3. The
transport layer on the receiving device is responsible for reassembling the segments into data the session
layer can consume.
• Functions
• Segmentation and
reassembly
• Connection control
• Flow control
• Error control
Functions of Transport Layer:
• Service-point addressing: Computers run several programs simultaneously due to this reason, the
transmission of data from source to the destination not only from one computer to another
computer but also from one process to another process. The transport layer adds the header that
contains the address known as a service-point address or port address. The responsibility of the
transport layer is to transmit the message to the correct process.
• Segmentation and reassembly: When the transport layer receives the message from the upper
layer, it divides the message into multiple segments, and each segment is assigned with a sequence
number that uniquely identifies each segment. When the message has arrived at the destination,
then the transport layer reassembles the message based on their sequence numbers.
• Connection control: Transport layer provides two services Connection-oriented service and
connectionless service. A connectionless service treats each segment as an individual packet, and
they all travel in different routes to reach the destination. In connection-oriented service, all the
packets travel in the single route.
Cont..
• Flow control: The transport layer also responsible for flow control but
it is performed end-to-end rather than across a single link.
• Error control: The transport layer is also responsible for Error control.
Error control is performed end-to-end rather than across the single
link. The sender transport layer ensures that message reach at the
destination without any error.
Protocols
The two protocols used in this layer are:
1. TCP
• It uses connection oriented transmission. It establish connection, transfer data and
terminate connection.
• It send acknowledgement back to sender.
• It is more secure and reliable. WWW, Email and FTP use this protocol.
2. UDP
• It is an unreliable transport protocol as in this case receiver does not send any
acknowledgment when the packet is received, the sender does not wait for any
acknowledgment. Therefore, this makes a protocol unreliable. Use in playing games and
listening songs.
Network Layer
Functions:
Line Configuration
Data Transmission
Topology
Signals
Functions
• Functions of a Physical layer:
• Line Configuration: It defines the way how two or more devices can
be connected physically.
• Data Transmission: It defines the transmission mode whether it is
simplex, half-duplex or full-duplex mode between the two devices on
the network.
• Topology: It defines the way how network devices are arranged.
• Signals: It determines the type of the signal used for transmitting the
information (radio waves).
How To Remember
All People Seem To Need Data Processing
Application Physical
Layer Layer
Session Network
Layer Layer