Sie sind auf Seite 1von 46

THE ISO - OSI MODEL

Established in 1947, the International Standards


Organization (ISO) is a multinational body
dedicated to worldwide agreement on international
standards. An ISO standard that covers all aspects
of network communications is the Open Systems
Interconnection (OSI) model. It was first introduced
in the late 1970s.

November 9, 2009 NITW/ECE/LA 1


Layered Architecture
• Networks are organized as
layers or levels. OSI Protocols
• Reduces design complexity.
• Each network architecture has Application
different: Presentation
- number of layers
Session
- names of layers
- functions of each layer Transport
• Between adjacent layers there Network
is an interface.
Data
• Reference models exist to
architect a network. Physical

November 9, 2009 NITW/ECE/LA 2


Protocols
• Rules and conventions used by two communicating
entities are collectively known as protocol.
• Each layer of network architecture has its own
protocol.
• Two communicating entities at the same layer are
called peers.
• A list of protocols used by a system is called
protocol stack.
• A set of layers and protocols is referred to as
network architecture.

November 9, 2009 NITW/ECE/LA 3


THE THEORETICAL NETWORK - OSI MODEL

Peer communication between two computers

November 9, 2009 NITW/ECE/LA 4


OSI Model Overview

Application
Application
(Upper) Presentation
Layers
Session

Transport Layer

Network Layer
Data Flow
Layers
Data Link

Physical
November 9, 2009 NITW/ECE/LA 5
Role of Application Layers
EXAMPLES

User Interface
Telnet
Application
HTTP

• How data is presented ASCII


Presentation • Special processing EBCDIC
such as encryption JPEG
Keeping different Operating System/
Session applications’
Application Access
data separate
Scheduling
Transport Layer

Network Layer

Data Link

Physical
November 9, 2009 NITW/ECE/LA 6
Role of Data Flow Layers
Application
Presentation
EXAMPLES
Session
• Reliable or unreliable delivery TCP
Transport • Error correction before retransmit UDP
SPX
Provide logical addressing which IP
Network
routers use for path determination IPX
• Combines bits into bytes and
bytes into frames 802.3 / 802.2
Data Link • Access to media using MAC address
HDLC
• Error detection not correction
• Move bits between devices
Physical • Specifies voltage, wire speed and EIA/TIA-232
November 9, 2009 pin-out cables NITW/ECE/LA V.35 7
Encapsulating Data
Application
Presentation
PDU
Upper Layer Data Session
Segment
Transport
TCP Header Upper Layer Data

Network Packet
IP Header Data

LLC Header Data FCS


Data Link Frame

MAC Header Data FCS

Physical Bits
0101110101001000010NITW/ECE/LA
November 9, 2009 8
De-encapsulating Data

Application
Presentation
Session
Upper Layer Data
Transport
Upper Layer Data
ea der
H
Network TCP
TCP+ Upper Layer Data
e a der
IP H
IP + TCP + Upper Layer Data
r
Data Link
He ade
L LC
LLC Hdr + IP + TCP + Upper Layer Data
er
ead
ACH
M
Physical
November 9, 2009 0101110101001000010
NITW/ECE/LA 9
An exchange using the OSI model

November 9, 2009 NITW/ECE/LA Osi.swf


10
The interaction between layers in the OSI model

November 9, 2009 NITW/ECE/LA 11


Note

The physical layer is responsible for movements of


individual bits from one hop (node) to the next.

November 9, 2009 NITW/ECE/LA 12


Physical layer

November 9, 2009 NITW/ECE/LA 13


Note

The data link layer is responsible for moving


frames from one hop (node) to the next.

November 9, 2009 NITW/ECE/LA 14


Data link layer

November 9, 2009 NITW/ECE/LA 15


Note

The network layer is responsible for the


delivery of individual packets from
the source host to the destination host.

November 9, 2009 NITW/ECE/LA 16


Hop-to-hop delivery

November 9, 2009 NITW/ECE/LA 17


Network layer

November 9, 2009 NITW/ECE/LA 18


Source-to-destination delivery

November 9, 2009 NITW/ECE/LA 19


Note

The transport layer is responsible for the delivery


of a message from one process to another.

November 9, 2009 NITW/ECE/LA 20


Transport layer

November 9, 2009 NITW/ECE/LA 21


Reliable process-to-process delivery of a message

November 9, 2009 NITW/ECE/LA 22


Note

The session layer is responsible for dialog


control and synchronization.

November 9, 2009 NITW/ECE/LA 23


Session layer

November 9, 2009 NITW/ECE/LA 24


Note

The presentation layer is responsible for translation,


compression, and encryption.

November 9, 2009 NITW/ECE/LA 25


Presentation layer

November 9, 2009 NITW/ECE/LA 26


Note

The application layer is responsible for


providing services to the user.

November 9, 2009 NITW/ECE/LA 27


Application layer

November 9, 2009 NITW/ECE/LA 28


Summary of layers

November 9, 2009 NITW/ECE/LA 29


TCP/IP PROTOCOL SUITE

The layers in the TCP/IP protocol suite do not exactly


match those in the OSI model. The original TCP/IP
protocol suite was defined as having four layers: host-
to-network, internet, transport, and application.
However, when TCP/IP is compared to OSI, we can say
that the TCP/IP protocol suite is made of five layers:
physical, data link, network, transport, and application.

November 9, 2009 NITW/ECE/LA 30


TCP/IP Reference Model
OSI TCP/IP
APPLICATION APPLICATION
Not
PRESENTATION present
In the
SESSION
model
TRANSPORT TRANSPORT

NETWORK INTERNET

HOST-TO-NETWORK
DATA LINK
(Data Link/
PHYSICAL
November 9, 2009 NITW/ECE/LA Physical) 31
TCP/IP and OSI model

November 9, 2009 NITW/ECE/LA 32


Network Addressing
Addressing is used to Addressing
Schemes
ensure that messages
between any two of the
machines are not Transport Layer
received by other users. Network Layer

Addressing schemes LLC Layer


exist at multiple layers MAC Layer
of the OSI Model. A
typical TCP/IP packet Physical Layer

will contain addresses


that are designed to be
used at the MAC Layer,
the Network Layer and
November 9, 2009
the Transport Layer.NITW/ECE/LA 33
Transport Layer Addresses

Network Layer Addresses

MAC Layer Addresses

• The addresses are stored in specifically defined


parts of the IP packet and the LAN frame.
• The consistent position of addresses is a key
factor that allows software to interpret addressing
information correctly. In other words, if we put
addresses in the wrong format, or in the wrong
place,
November 9,our
2009 communication software will not work 34
NITW/ECE/LA
correctly.
Addresses in TCP/IP

November 9, 2009 NITW/ECE/LA 35


Relationship of layers and addresses in TCP/IP

November 9, 2009 NITW/ECE/LA 36


Example
A node with physical address 10 sends a frame to a node
with physical address 87. The two nodes are connected
by a link (bus topology LAN). As the figure shows, the
computer with physical address 10 is the sender, and the
computer with physical address 87 is the receiver.

November 9, 2009 NITW/ECE/LA 37


Most local-area networks use a 48-bit (6-byte) physical
address written as 12 hexadecimal digits; every byte (2
hexadecimal digits) is separated by a colon, as shown
below:

07:01:02:01:2C:4B

A 6-byte (12 hexadecimal digits) physical address.

November 9, 2009 NITW/ECE/LA 38


Example

Figure next shows a part of an internet with two routers


connecting three LANs. Each device (computer or
router) has a pair of addresses (logical and physical) for
each connection. In this case, each computer is
connected to only one link and therefore has only one
pair of addresses. Each router, however, is connected to
three networks (only two are shown in the figure). So
each router has three pairs of addresses, one for each
connection.

November 9, 2009 NITW/ECE/LA 39


IP addresses

November 9, 2009 NITW/ECE/LA 40


Example

Figure shows two computers communicating via the


Internet. The sending computer is running three
processes at this time with port addresses a, b, and c. The
receiving computer is running two processes at this time
with port addresses j and k. Process a in the sending
computer needs to communicate with process j in the
receiving computer. Note that although physical
addresses change from hop to hop, logical and port
addresses remain the same from the source to
destination.

November 9, 2009 NITW/ECE/LA 41


Port addresses

November 9, 2009 NITW/ECE/LA 42


Note

The physical addresses will change from hop to hop,


but the logical addresses usually remain the same.

November 9, 2009 NITW/ECE/LA 43


A port address is a 16-bit address represented by one
decimal number as shown.

753

A 16-bit port address represented


as one single number.

November 9, 2009 NITW/ECE/LA 44


Note

The physical addresses change from hop to hop,


but the logical and port addresses usually remain the same.

November 9, 2009 NITW/ECE/LA 45


November 9, 2009 NITW/ECE/LA 46

Das könnte Ihnen auch gefallen