Professional Documents
Culture Documents
Chap5 Osi 2015
Chap5 Osi 2015
Chap5 Osi 2015
CHAPTER 5
OPEN SYSTEM INTERCONNECTION
……………………………………………………………………………………………
Sub-topics
5.1 Layered Network Architecture
5.2 The OSI Reference Model
5.3 Communication between layers
5.4 Data encapsulation
5.5 Segmentation and re-assembly
……………………………………………………………………………………………
5.1 Layered Network Architecture
-Layered network architecture is the design of a communications network with
a set of layers each having protocols.
-A protocol is a formal set of rules and conventions that governs how computers
exchange information over a network medium. A protocol stack is a list of
protocols used by a system.
See Peer-to-Peer communication between OSI horizontal layers later.
Remember: A P S / T / N D P
Upper Layers (Host layers)
-Consist of 4 layers: Application, Presentation, Session and Transport.
-Responsible for accurate data delivery between computers (hosts).
-They deal with application issues and are generally implemented only in
software.
Lower Layers (Media layers)
-Consist of 3 layers: Network, Data Link and Physical.
- Concerned with the actual packaging, addressing, routing and delivery of data.
-They work in hardware or firmware (software that runs on specific hardware
chips).
-Physical layer handles the bits; the data link layer deals with local networks and
the network layer handles routing between networks.
2 Data Link Switch, Bridge WAN (Frame Relay, ATM, PPP, HDLC)
-It deals with delivery of frames (groups of bits), which contain control
information eg a header (with source & destination addresses) and checksum
(error detection bits).
-It deals with packets which later become frames in the Data Link layer.
The terms frame and packet are sometimes used interchangeably.
-If a message is sent on a WAN, some of the packets may take a different path,
and be recombined at the destination.
-Network layer provides end-to-end logical addressing (using IP addresses).
-Provides switching and routing technologies, which create logical paths called
virtual circuits for packets to be routed across networks.
-It is responsible for data formats ie how an application formats the data to be
sent out onto the network.
-The presentation layer basically allows an application to read (or understand)
the message.
-It takes data from application layer and translates it into a standard format.
-It provides a variety of coding and conversion functions that are applied to
application layer data.
-This is the OSI layer closest to the end user ie application layer and user interact
directly with the software application.
-It provides a user interface for the end user operating a device connected to
a network.
-This layer is what the user sees, in terms of loading an application
eg Web browser & e-mail.
-This layer interacts with software applications that implement a communicating
component. The application programs are above the OSI model layers.
Note:
When identifying communication partners, the application layer determines the
identity and availability of communication partners for an application with data
to transmit.
When determining resource availability, the application layer must decide
whether sufficient network resources for the requested communication exist.
In synchronizing communication, all communication between applications
requires cooperation that is managed by the application layer.
Browsing the World Wide Web HTTP (Hyper Text Transfer Protocol)
Electronic mail handling
SMTP (Simple Mail Transfer Protocol) & POP3 (Post Office Protocol Version 3)
-A given layer in the OSI model generally communicates with three other OSI
layers:
1. the layer directly above it
2. the layer directly below it
3. its peer layer in other networked computer systems.
OR Classified as:
1. Connection-Oriented protocols
-First, a logical connection is established between the two devices.
-When transferring data is finished, the connection is broken.
2. Connectionless protocols
-These protocols do not establish a connection between devices.
-As soon as a device has data to send to another, it just sends it.
Note:
-Many protocols rely on others for operation eg many routing protocols use
network protocols to exchange information between routers.
-This concept of building upon the layers already in existence is the foundation of
the OSI model.
-The lower layers provide services to the upper layers using interfaces between
them eg layer 2 provides services to layer 3.
-The upper layer passes data and control information to the lower layer below it
eg data and control information from layer 3 to layer 2.
-The services provided by adjacent layers help layers communicate with their
peers.
Service primitives
-Also known as primitive services; are OSI Reference Model services.
-They were introduced by ISO and they do not specify implementation specific
details.
Compare with primitive data types in programming languages eg C language,
C++ and Java.
-The service primitives are of 2 main types (actions or events), and they are 4:
1. request 2. indication 3. response 4. confirm
Procedure definitions
Interface Type Interface Type
CONNECT.request Action
P CONNECT.indication Event
R CONNECT.response Action
CONNECT.confirm Event O
DATA.request Action T
O DATA.indication Event
C DATA.request Action
DATA.indication Event O
DISCONNECT.request Action L
DISCONNECT.indication Action
Actions
CONNECT.request ie Action indicating establishing a connection.
CONNECT.response ie Action indicating acceptance of a request.
DISCONNECT.request ie Action indicating the connection to be closed.
DATA.request ie Action for sending data.
Events
CONNECT.indication ie Event notifying connection establishment is in progress.
CONNECT.confirm ie Event notifying that the connection has been established.
DISCONNECT.indication ie Event is notifying that the connection is closed.
DATA.indication ie Event is notifying that data can be read from the connection .
Note: In programming dot operator. refers to implementation of a function.
Comparison with telephone system
1. CONNECT.request ie Caller dials a number.
2. CONNECT.indication ie Phone of caller rings.
3. CONNECT.response ie Voice of caller heard, usually “Hello”.
4. CONNECT.confirm ie Caller talks back ie “Hello” Then conversation starts.
5. DISCONNECT.request ie Caller hangs up.
-Service user (upper layer protocol) requests for a service from service provider
(lower layer protocol). A layer can provide services to multiple service users.
-SAP (Service Access Point) is a conceptual location at which one layer can
request the services of another layer.
-At every layer (except Physical Layer) PDUs are sent between corresponding
protocols on the two systems.
-Each PDU has control data (specific format that implements the features and
requirements of the protocol.
-When a PDU is passed down to a lower layer, it becomes the data of that layer
ie SDU (PDU of the upper layer).
SDU (Service Data Unit) refers to PDU of the upper layer ie the upper layer’s
PDU is the lower layer’s SDU.
-The role of the lower layer is to transport the SDU, by placing it into its own PDU
format ie attaching the SDU with its own header and trailer.
PDUs include:
1. Segment at Transport layer.
2. Packet at Network layer.
3. Frame at Data Link layer.
4. Bit at physical layer.
The header and trailer contain control information intended for the Data Link
layer protocol in the destination system. Data from upper layer is encapsulated in
the Data Link layer header and trailer.
Its source and destination is Network Layer entities. The header and trailer
contain control information intended for the Network Layer entity in the
destination system. Data from upper-layer entities is encapsulated in the Network
Layer header and trailer.
Note:
The term datagram usually refers to packet whose source and destination are
Network Layer protocols that use connectionless network service eg IP
datagram using IP (Internet Protocol).
The term segment usually refers to an information unit whose source and
destination are Transport Layer protocols.
A message is information unit whose source and destination protocols exist
above the Network Layer (often at the Application Layer).
Physical Layer does not have any information unit, instead raw data called bits.
Headers, trailers and data are relative concepts, depending on the layer that
analyzes the information unit.
receiver end is put in the header and trailer. The PDU is then passed down to
the presentation layer.
2. Similarly the Presentation layer and the Session layers attach headers and
trailers containing control information intended for the next lower layers.
3. At the Transportation layer data is converted into segments and a reliable
or unreliable connection is set up between the source and destination devices
using connection oriented and connectionless protocols (eg IP).
4. At the Network layer segments are converted into packets or datagrams
using a logical address (IP address).
5. At the Data Link layer packets (datagrams) are converted into frames for
transmission on the local network. MAC (Media Access Control) addresses or
Ethernet addresses (commonly used to uniquely identify hosts on a local
network segment).
6. At the Physical layer frames are converted into bytes and bits, and a digital
encoding and signaling method (clocking) is used. The PDU is transmitted
through the network medium to the physical layer in the receiver.
Note:
The message unit increases in size as each next layer attaches its own header
and trailer containing control information to be used by its peer layer in the
receiver.