chapter 3 : osi modellibvolume3.xyz/.../osimodel/osimodelnotes2.pdf · osi layer tcp/ip protocol...
TRANSCRIPT
Lecture notes SKR 3200
Idawaty Ahmad 1
CHAPTER 3 : OSI MODEL
7/26/200
OSI Layer
TCP/IP Protocol Suite
09Idaw
aty Ah
mad : S
emesterr 1 : 2009/2010
1
CHAPTER 3 : THE OSI MODEL
Established in 1947, the ISO is a multinational bodydedicated to worldwide agreement on international
d d
7/26/2009
standard ISO standard which covers all aspects of network
communications – OpenOpen SystemsSystems InterconnectionInterconnection (OSI)(OSI)model
OpenOpen SystemSystem – a model that allows any two differentsystems to communicate regardless of their underlyingarchitecture
Idawaty A
hm
ad : Sem
ester 1 :
OSI is not a protocol Model for understanding and designing a network
architecture that is flexible, robust, and interoperable
2
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 2
3.1 THE MODEL
OSI – a layered framework for design of networksystems that allows for communication across allt f t t
7/26/2009
types of computer system 7 layer architecture Intermediate nodes – involve only the first three
layers Peer-to-Peer Process?
Layer n, use the services provided by layer n-1 andprovides services for layer n+1Th h hi th t i t t
Idawaty A
hm
ad : Sem
ester 1 :
The process on each machine that communicate at agiven layer are called peer-to-peer process
Use protocol
3
2009/2010
3.1 THE MODEL
At sending machine: headers added to the message at L6,5,4,3,2
7/26/2009g Trailer is added at only L2
At receiving machine The message is unwrapped layer by layer, received
process and removing the data meant for it.(reverse ofsending machine)
Interfaces between layers – control the passing of
Idawaty A
hm
ad : Sem
ester 1 :
the data and network information down/up throughthe layers of sending/receiving machine
4
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 3
3.1 THE MODEL
The 7L can grouped into three subgroup L1,2,3 – the network support layer – deal with the physical
7/26/2009pp y p yaspects of moving data from one device to another
L5,6,7 – the user support layer –allow interoperabilityamong unrelated software systems
L4 – ensures end-to-end reliable data transmission After pass through L1 of sending machine, the data
unit is changed into electromagnetic signal andt t d l h i l li k
Idawaty A
hm
ad : Sem
ester 1 :transported along a physical link
5
2009/2010
OSI Model
7/26/2009Idaw
aty Ah
mad : S
emester 1 :
6
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 4
MODEL RUJUKAN OSI7/26/2009
Presentation
Session
Transport
Application
Connection/less multiplexConnection/less multiplex flowflow dandan error controlerror control
Aplikasi Web, SMTP, FTP,Telnet,IRC,News dllAplikasi Web, SMTP, FTP,Telnet,IRC,News dll
Komunikasi yang selamat: Secure Socket Layer (SSLKomunikasi yang selamat: Secure Socket Layer (SSL))
Data compression,encryption, character representationData compression,encryption, character representation
Idawaty A
hm
ad : Sem
ester 1 : Transport
Network
Data Link
Physical FDDI,ATM, Ethernet, Token Ring, Dialup,wirelessFDDI,ATM, Ethernet, Token Ring, Dialup,wireless
Topologi Rangkaian,Pengalamatan, Topologi Rangkaian,Pengalamatan, ErrorError, , flow controlflow control
Penghantaran paket ke destinasiPenghantaran paket ke destinasi
Connection/less, multiplexConnection/less, multiplex,,flowflow dan dan error controlerror control
Network card
2009/2010
7
OSI Layers
7/26/2009Idaw
aty Ah
mad : S
emester 1 :
8
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 5
An Exchange Using the OSI Model
7/26/2009Idaw
aty Ah
mad : S
emester 1 :
9
2009/2010
KONSEP HEADER DALAM MODEL OSI
Pelayan Pelanggan
7/26/2009
Presentation
Session
T t
Application
Presentation
Session
Transport
Applicationdatadata
TCPheader
datadata
segment
packet
Idawaty A
hm
ad : Sem
ester 1 :
Transport
Network
Data Link
Physical
Network card
Transport
Network
Data Link
Physical
TCPheader
datadata IPheader
p
TCPheader
datadata IPheader
frame
Ethernet header
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 6
3.2 FUNCTION OF EACH LAYER Physical layer (L1)
Coordinates the function required to transmit a bit streamover a physical medium
7/26/2009
over a physical medium Deal with the mechanical/electrical spec of the interface
and transmission medium Defines the procedures and functions that physical
devices and interfaces have to perform for transmission tooccur
Concerned with: Physical characteristics of interfaces and media Representation of bits
Idawaty A
hm
ad : Sem
ester 1 :
Representation of bits Bits must be encoded into signals –electrical or optic
Data rate –the number of bits sent each second Synchronization of bits Line configuration – connection of devices to the medium
11
2009/2010
3.2 FUNCTION OF EACH LAYER
Concerned with:
7/26/2009
Physical topology How devices are connected to form a network
Transmission mode Direction of signal transmission between two devices
Idawaty A
hm
ad : Sem
ester 1 :
12
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 7
7/26/2009
The physical layer is responsible for transmitting individual bits from one
d h
Note:Note:
Idawaty A
hm
ad : Sem
ester 1 :
node to the next.
13
2009/2010
Physical Layer
7/26/2009Idaw
aty Ah
mad : S
emester 1 :
14
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 8
3.2 FUNCTION OF EACH LAYER Data Link Layer (L2):
Responsible for node-to-node delivery Makes appear error free to the network layer
7/26/2009
Makes appear error free to the network layer Responsibilities include:
Framing – divides the stream data to manageable data units –frame
Physical addressing – adds a header to the frame –to define thephysical address of sender( source address) and receiver(destination address)
Flow control – to prevent overwhelming at the receiver Error control – provides reliability – to detect and retransmit
damaged or lost frames, also prevent duplication of frames -
Idawaty A
hm
ad : Sem
ester 1 :damaged or lost frames, also prevent duplication of framestrailer
Access control – require a protocol to determine which devicehas control over the link at any given time –> same link with twoor more devices connected.
15
2009/20107/26/2009
The data link layer is responsible for transmitting frames from
Note:Note:
Idawaty A
hm
ad : Sem
ester 1 :
one node to the next.
16
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 9
Data Link Layer7/26/2009
Idawaty A
hm
ad : Sem
ester 1 :
17
2009/2010
Example 1Example 1
In the next figure, a node with physical address 10 sends a frame to a node with h i l dd 87 Th t d
7/26/2009
physical address 87. The two nodes are connected by a link. At the data link level this frame contains physical addresses in the header. These are the only addresses needed. The rest of the header contains other information needed at this level The
Idawaty A
hm
ad : Sem
ester 1 :other information needed at this level. The trailer usually contains extra bits needed for error detection
18
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 10
Data Link Layer Example7/26/2009
Idawaty A
hm
ad : Sem
ester 1 :
19
2009/2010
3.2 FUNCTION OF EACH LAYER
Network Layer (L3): Responsible for the sourcesource--toto--destinationdestination deliverydelivery of a
7/26/2009p yypacket possibly across multiple networks (links)
If two systems are attached to different networks, we needthe network layer protocol to accomplish source-to-destination delivery
Specific responsibility: Logical addressing – to distinguish the source and
destination systems when a packet passes the networkboundary also known network address
Idawaty A
hm
ad : Sem
ester 1 :boundary – also known network address Routing – internetwork/large network – route the packet to
the final destination
20
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 11
NN
7/26/2009
The network layer is responsible for the delivery of packets from the
original source to the
Note:Note: Idawaty A
hm
ad : Sem
ester 1 :original source to the final destination.
21
2009/2010
Network Layer
7/26/2009Idaw
aty Ah
mad : S
emester 1 :
22
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 12
Network Layer Example
Example 2Example 2
In the next figure, we want to send data from a node with network address A and physical
7/26/2009
node with network address A and physical address 10, located on one LAN, to a node with a network address P and physical address 95, located on another LAN. Because the two devices are located on different networks, we cannot use physical addresses only; the
Idawaty A
hm
ad : Sem
ester 1 :
physical addresses only have local jurisdiction. What we need here are universal addresses that can pass through the LAN boundaries. The network (logical) addresses have this characteristic.
23
2009/2010
Network Layer Example
7/26/2009Idaw
aty Ah
mad : S
emester 1 :
24
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 13
3.2 TRANSPORT LAYER
Transport Layer (L4): Review of a network layer responsibility:
7/26/2009
Review of a network layer responsibility: Responsible for source-to-destination (end-to-end) delivery of
the entire message Individual packet – treats each packet independently
transport layer Ensures the whole (entire) message arrives intact and in order Oversee both error control and flow control at source-to-
destination levelTo added security transport layer create a connectionconnection
Idawaty A
hm
ad : Sem
ester 1 :
To added security, transport layer create a connectionconnectionbetween the two end ports Connection - Single logical path between the source and
destination
25
2009/2010
3.2 TRANSPORT LAYER
Creating connection involves 3 steps:
7/26/2009g p Connection establishment Data transfer Connection release
Has more control over sequencing, flow,error correction and detection
Idawaty A
hm
ad : Sem
ester 1 :
26
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 14
3.2 TRANSPORT LAYER Specific responsibilities:
Service-point addressing Computers often run several programs at the same time
ifi ( i )
7/26/2009
From a specific process (running program) on one computer to aspecific process (running program) on the other
TL header must include a serviceservice--pointpoint addressaddress or portport addressaddress Segmentation and reassembly
Segment – add a sequence number into message segment Connection control
Can be either connectionless (independent packet) orconnection oriented
Flow control
Idawaty A
hm
ad : Sem
ester 1 :
End-to-end flow control ( across multiple networks) Error control
End-to-end error control ( across multiple networks)
27
2009/20107/26/2009
The transport layer is responsible for delivery of a message from one process
Note:Note:
Idawaty A
hm
ad : Sem
ester 1 :y f g f pto another.
28
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 15
Figure : Reliable process-to-process delivery of a message
7/26/2009Idaw
aty Ah
mad : S
emester 1 :
29
2009/2010
Transport Layer
7/26/2009Idaw
aty Ah
mad : S
emester 1 :
30
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 16
Example 3Example 3
Figure shows an example of transport layer communication Data coming from the upper
7/26/2009
communication. Data coming from the upper layers have port addresses j and k (j is the address of the sending process, and k is the address of the receiving process). Since the data size is larger than the network layer can handle, the data are split into two packets, each
Idawaty A
hm
ad : Sem
ester 1 :handle, the data are split into two packets, eachpacket retaining the port addresses (j and k). Then in the network layer, network addresses (A and P) are added to each packet.
31
2009/2010
Transport Layer Example
7/26/2009Idaw
aty Ah
mad : S
emester 1 :
32
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 17
Transport Layer Example
7/26/2009Idaw
aty Ah
mad : S
emester 1 :
33
2009/2010
3.2 SESSION LAYER
Session Layer (L5) The network dialogdialog controllercontroller
7/26/2009gg EstablishesEstablishes, maintainsmaintains, and synchronizessynchronizes the interaction
between communicating systems Responsibilities:
Dialog control allows two systems to enter into a dialog communication between two process – half-duplex or full-
duplex Synchronization
Idawaty A
hm
ad : Sem
ester 1 :y allows a process to addadd checkpointscheckpoints (synchronization points)
into a stream of data E.g.: sending a file..
34
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 18
Session Layer7/26/2009
Idawaty A
hm
ad : Sem
ester 1 :
35
2009/2010
3.2 PRESENTATION LAYER
Presentation Layer (L6) Concerned with the syntax and semantics of the
7/26/2009
Concerned with the syntax and semantics of theinformation exchanged between two systems.
Responsibilities: Translation
The process (running programs) in two systems are usuallyexchanging information
Different computers use different encoding systems Responsible for interoperabilityinteroperability between different
encoding methods
Idawaty A
hm
ad : Sem
ester 1 :encoding methods Sender machine change the information from its sendersender--
dependentdependent formatformat into aa commoncommon formatformat Receiver machine change the commoncommon formatformat into its
receiverreceiver--dependentdependent formatformat36
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 19
3.2 PRESENTATION LAYER
Encryption Encryption - transform the original information to
7/26/2009
Encryption transform the original information toanother form and sends it over the network
Decryption - reverse process at the receiver side assure privacy - to carry a sensitive data/information
Compression Reduces the number of bits to be transmitted multimedia data transmission – such as text, audio and
Idawaty A
hm
ad : Sem
ester 1 :
video
37
2009/2010
Presentation Layer
7/26/2009Idaw
aty Ah
mad : S
emester 1 :
38
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 20
3.2 APPLICATION LAYER Application Layer (L7)
EnablesEnables useruser , whether human or software toto accessaccess thethenetworknetwork
7/26/2009
networknetwork Provides user interfaces and support for services such as
email, remote file access, shared database mgmt andtransfer etc
No trailer or header are added here Specific services
Network virtual terminal File transfer, access, and management (FTAM) –
access/manage/control files in a remote computer
Idawaty A
hm
ad : Sem
ester 1 :access/manage/control files in a remote computer Mail services - X.400 – store and forward email Directory services – X.500 – provides distributed database
sources
39
2009/2010
Application Layer
7/26/2009Idaw
aty Ah
mad : S
emester 1 :
40
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 21
7/26/2009
The application layer is responsible for providing services to the user.
Note:Note:
Idawaty A
hm
ad : Sem
ester 1 :p g
41
2009/2010
Summary of Layer Functions (OSI model)
7/26/2009Idaw
aty Ah
mad : S
emester 1 :
42
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 22
3.3 TCP/IP PROTOCOL SUITE
Developed prior to the OSI model5 l l k I t t d l
7/26/2009
5 layers – also known Internet model The three topmost layers in the OSI model
are represented in TCP/IP by a single layer –applicationapplication layerlayer
TCP/IPTCP/IP is a hierarchical protocol – theupper-level protocol is supported by one or
Idawaty A
hm
ad : Sem
ester 1 :pp p pp ymore lower-level protocols
E.g.: @ TL – TCP, UDP; @NL - IP
43
2009/2010
Summary of Layer Functions (TCP/IP)
7/26/2009Idaw
aty Ah
mad : S
emester 1 :
44
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 23
PROTOKOL SUIT TCP/IP
TCP: Transmission Control ProtocolIP I t t P t l
7/26/2009
IP: Internet ProtocolMenggunakan dan mendefinasi hanya 4 paras1974 Dua tujuan utama senibina TCP/IP adalah:
Untuk membentuk sambungan antara rangkaian yang berbeza pada sambungan rangkaian dan juga
Idawaty A
hm
ad : Sem
ester 1 :yang berbeza pada sambungan rangkaian dan juga pada OS yang berbeza
Untuk menyembunyikan segala details tentang sambungan, jenis rangkaian daripada paras aplikasi.
45
2009/2010
TCP/IP
7/26/2009
Transport
ApplicationHTTP, SMTP, FTP,Telnet, POP3,IMAP, ping dllHTTP, SMTP, FTP,Telnet, POP3,IMAP, ping dll
TCP, UDP, SNMPTCP, UDP, SNMP
Idawaty A
hm
ad : Sem
ester 1 :
Network
Link
IP, UDPIP, UDP
ATM,FDDI,Ethernet,PPP dan jenis ATM,FDDI,Ethernet,PPP dan jenis Rangkaian yang lain Rangkaian yang lain
46
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 24
REVISION… Q&AS
What is peer-to-peer process?
7/26/2009
What is the difference between a service-point-address, a logical address, and aphysical address?
What is the purpose of translation by thepresentation layer?
Idawaty A
hm
ad : Sem
ester 1 :
47
2009/2010
PEER-TO-PEER PROCESS
The process on each machine that communicate at a given layer.
7/26/2009
at a given layer.
Idawaty A
hm
ad : Sem
ester 1 :
48
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 25
DIFFERENT
Service point address identifies the application process on the station at L4
7/26/2009
application process on the station at L4Logical address/LNA defines the sender
and receiver at L3 and is used to deliver message across multiple networks
Physical address is the local address of a node is used by L2 to deliver data from
Idawaty A
hm
ad : Sem
ester 1 :node, is used by L2 to deliver data from one node to another within the same network
49
2009/2010
Definition :Specifications for the physical components
THE PHYSICAL LAYER
7/26/2009
Specifications for the physical components of the network
What Physical Layer Components do: Specifications for: Cabling Interconnection Methods Data Encoding Electrical Properties
Idawaty A
hm
ad : Sem
ester 1 :
Examples Ethernet (IEEE 802.3) Token Ring (IEEE 802.5) FDDI (ANSI X3T9.5) IEEE 802.11b (Wireless)
50
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 26
THE PHYSICAL LAYER
What Physical Layers Components do: Specifications for the physical components
7/26/2009
Specifications for the physical components of the network
Examples (What Defined) Ethernet (Physical Spec) Token Ring (Physical Spec) FDDI 802.11b (Physical Spec) T Carrier (T1)
Idawaty A
hm
ad : Sem
ester 1 :Carrier (T1) Where is on my computer NIC card and
cabling 51
2009/2010
THE DATA LINK LAYER
What Data Link Layer Components do: Media Access Control (MAC) and Logical
7/26/2009
Media Access Control (MAC) and Logical Link Control (LLC)
Addresses network devices (MAC Address)
Places data in a Data Frame (packet) Gives the data bits to the NIC card (MAC)
Idawaty A
hm
ad : Sem
ester 1 :
Controls the Network Interface Card’s (NIC) Access to the Media (MAC)
Detects transmission errors (LLC)52
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 27
THE NETWORK LAYER
Definitions: Provides network-wide addressing and mechanism to move packets
7/26/2009
addressing and mechanism to move packets between multiple networks
What Networking Layer Components do: Network Addressing Move of packets between different networks – routing
Examples Internet Protocol (TCP/IP) IPX (Netware)
Idawaty A
hm
ad : Sem
ester 1 :(Netware)What defined Network Addressing Move of
packets between different networks –routing
Where is it on my computer: TCP/IP Software
53
2009/2010
THE TRANSPORT LAYER
Definitions: Provides end-to-end communication and reliable data delivery
7/26/2009
communication and reliable data delivery Examples Transport Control Protocol
(TCP/IP), User Datagram Protocol (UDP) What Transport Layer Components do: Receives data from application and
segments it
Idawaty A
hm
ad : Sem
ester 1 :
Can provide transmission error detection and correction
54
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 28
THE SESSION LAYER
Definitions: Allows application to maintain an ongoing communication (session)
7/26/2009g g ( )Examples NetBIOS Netware Core Protocol What Session Layer Components do: Manage user sessions
Idawaty A
hm
ad : Sem
ester 1 :g Track user sessions Where is it on my computer: Workstation
and Server Service Software (Windows) ,Redirector or Requestor (Netware), Windows Client for Netware (Netware)
55
2009/2010
THE PRESENTATION LAYER
Definitions: Provides common data formatting
7/26/2009
Provides common data formatting between communicating devices
Examples Multipurpose Internet Mail Extensions (MIME)
What Presentation Layer Components do: Make sure the receiving station can read
Idawaty A
hm
ad : Sem
ester 1 :
the transferred data Where is it on my computer: Workstation
or server service Email client56
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 29
THE APPLICATION LAYER
Definitions: Gives end-user applications access to network resources
7/26/2009
access to network resources Examples Workstation and Server Service
Software (Windows) Windows Client for Netware (Netware)
What Application Layer Components do: Gives end-user applications access to
t k
Idawaty A
hm
ad : Sem
ester 1 :
network resources Where is it on my computer: Workstation
or server service (Session, Presentation and Application) 57
2009/2010
7/26/20009Idaw
aty Ah
mad : S
emester
58
r 1 : 2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 30
JENIS ALAMAT DI ANTARA RANGKAIAN
Tiga jenis alamat yang digunakan antararangkaianAlAl k k
7/26/2009
AlamatAlamat ParasParas Data LinkData Link:: Alamat yang membezakan tiap-tiap perkakasan dalam
rangkaian Dikenali sebagai physical atau hardware address
AlamatAlamat MACMAC :: Alamat MMedia AAccess CControl: MACMAC LebihLebih kurangkurang samasama fungsinyafungsinya dengandengan AlamatAlamat ParasParas Data Data
Idawaty A
hm
ad : Sem
ester 1 :gg g yg y ggLinkLink
AlamatAlamat IP:IP: Lanjutan tentang ini dalam kuliah yang lain kemudian
59
2009/2010
ALAMAT MAC Panjangnya 48bits 12 digit dalam bentuk hexadecimal
Di l i l h IEEE
7/26/2009
Di pelopori oleh IEEE 6 digit pertama:mengenalpasti vendor atau
pembuat perkakasan tersebut (OUI: Organizationally Unique Identifier)
6 digit terakhir : Nombor siri untuk perkakasantersebut dan ditentukan oleh vendor tersebut: (Intel dsb)
Dikenali juga sebagai burned-in-address (BIAs)
Idawaty A
hm
ad : Sem
ester 1 :Dikenali juga sebagai burned-in-address (BIAs) kerana alamat ini akan terdapat dalam ROM (read only memory) dan di salin kedalam RAM semasaperkakasan (network card) tersebut initialize
60
2009/2010
Lecture notes SKR 3200
Idawaty Ahmad 31
ALAMAT PARAS DATA LINK DAN ALAMATMAC
LAN 4FDDI
LAN 37/26/2009
TokenRing
LAN 2FDDIPenghala APenghala A
FDDI
T rd p t 5 l m t MACT rd p t 5 l m t MAC
Idawaty A
hm
ad : Sem
ester 1 :
Hakcipta: Idawaty Ahmad FSKTM UPM
U N I V E R S I T YU N I V E R S I T Y
Dialup
Ring
Ethernet LAN 1
Terdapat 5 alamat MAC Terdapat 5 alamat MAC pada Penghala Apada Penghala A
61
2009/2010