(2-Protocols Services [modalità...
Transcript of (2-Protocols Services [modalità...
![Page 1: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/1.jpg)
Prof. Fabio Martignon
Réseaux
![Page 2: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/2.jpg)
Fundamentals of Protocols and Communication Services
![Page 3: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/3.jpg)
Communication Service
� Given two or more remote entities …
� … a communication service provides information transfer between the entities
EntityA
EntityB
Communication service
dialog
Node A Node B
![Page 4: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/4.jpg)
Communication Service
� Manages the exchange of information between two entities
� In general, it transfers information units:
� words
� bits
� bunch of bits (frames or packets)
� files
� Multimedia flows
EntityA
EntityB
![Page 5: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/5.jpg)
Communication Service
�May be described through service callsnamed service primitives
�The service primitives can be used to:
� Describe the service
� Request the service
� Gather info on the service
�The service primitives are characterized by:
� The type of info to transfer
� The destination address
� The features of the required service
� etc.
![Page 6: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/6.jpg)
The Service Primitives
EntityA
EntityB
Bidirectional channel
Service primitives
dialog
Node A Node B
![Page 7: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/7.jpg)
Types of Communication Services
� Connection Oriented
1) Connection Set Up
2) Data transfer
3) Connection Release
� Connectionless
� All in one
� Asynchronous
![Page 8: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/8.jpg)
Connection Oriented Services
Connection Set Up
Info Transfer
Connection Release
EntityA
EntityB
![Page 9: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/9.jpg)
EntityA
EntityB
transfer
transfer
transfer
Connectionless Services
� Lack of set up coordination among entities
� different transfer sessions between the same entities may not be related
� problems in implementing the typical connection oriented services (VoIP)
![Page 10: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/10.jpg)
Layers
� Two entities at the same level may offer a communication service to upper layer entities
EntA1
EntB1
Bidirectional channel
Node A Node B
talkEntA2
EntB2
talk
header Data PDU
![Page 11: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/11.jpg)
Layer Functions
� The communication service provided to the upper layer is “richer” thanks to specific functionsimplemented at the lower layer
EntA1
EntB1
Bidirectional channel
Node A Node B
talkEntA2
EntB2
talk
header Data PDU
![Page 12: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/12.jpg)
Communication Protocols
� Entities at the same level cooperate to provide upper layer entities with a communication service
� Entities at the same level exchange messages
� Protocol:� Set of rules which handle the communication
among entities at the same level
� Message format
� Information on the service
� Info transfer procedure
� etc.
![Page 13: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/13.jpg)
Packet Data Units (PDU)
� Information Units used within a protocol by entities at the same level
� PDUs may comprise:
header payload
� Data received by upper layers (payload)
� Signalling information (header)
![Page 14: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/14.jpg)
Layered Architecture�Complex Communication Services
may be organized in layers� From a layer handling the bits …
� … to a layer handling files and/or more complex objects and protocols
layer 5
layer 4
layer 3
layer 2
layer1
layer 5
layer 4
layer 3
layer 2
layer 1
![Page 15: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/15.jpg)
Protocol “Layers”
Networks are complex!
� many “pieces”:
� hosts
� routers
� links of various media
� applications
� protocols
� hardware, software
Question:
Is there any hope of organizingstructure of network?
Or at least our discussion of networks?
![Page 16: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/16.jpg)
Layered Architecture: PROs
� Reduces complexity
� Standardized Interfaces
� Fosters Modularity and Interoperability
� Ease Up Teaching
� OSI Model
(1974)
![Page 17: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/17.jpg)
TCP/IP Suite vs OSI Model
SMTP,FTP, TFTP, Telnet, RloginSNMP, DNS
TCP, UDP
IP, ARP, RARP,ICMP, IGMP
![Page 18: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/18.jpg)
Company Organization (Layering example in real life)
� a series of steps
![Page 19: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/19.jpg)
Layering example
Layers: each layer implements a service
� via its own internal-layer actions
� relying on services provided by layer below
![Page 20: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/20.jpg)
Why layering?
Dealing with complex systems:� explicit structure allows identification,
relationship of complex system’s pieces
� layered reference model for discussion
� modularization eases maintenance, updating of system
� change of implementation of layer’s service transparent to rest of system
� e.g., change in Fax operator procedure doesn’t affect rest of system
![Page 21: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/21.jpg)
Layer To Layer Interface
� The services offered by a given layer is characterized by a Service Access Point (SAP)
PDU: Packet Data UnitSDU: Service Data UnitPCI: Protocol Control Information
N+1 - PDU
N - SDUN - PCI
N-SAP
Level N+1
Level N
N-PDU
![Page 22: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/22.jpg)
Layer To Layer Interface
2 - PDU
1-SAP
Layer 2
Phy
� The lowest layer is the Physical one
� Phy-PDU = bit flows
bit
2 - PDU2 - PDU
1-SAP is a physical port
![Page 23: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/23.jpg)
General Architecture
level 5
level 4
level 3
level 2
level 1
5432
543
54
5 level 5
level 4
level 3
level 2
level 1
5
54
543
5432
54321
54321
![Page 24: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/24.jpg)
Functions
� Can be divided into:
� Adaptation functions
� multiplexing
� segmentation
� Enhancement functions
� Error control
� Sequencing
![Page 25: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/25.jpg)
Segmentation
N+1-PDU
N-PDU
N-SDU
![Page 26: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/26.jpg)
Multiplexing
entitylev. N
![Page 27: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/27.jpg)
Entity AMust route Entity CEntity B
Networking Functions
� A given entity can communicate with multiple entities at the same level
� Need of Routing functionalities (SAP choice)
![Page 28: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/28.jpg)
Routing
Different SAPs
Entity N+1
RoutingEntity
� Problem: how to choose the partner
� Routing through an ADDRESS
![Page 29: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/29.jpg)
Addressing
Entity N+1
Routing Entity
RoutingEntity
RoutingEntity
� Identifies the destination N-SAP
![Page 30: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/30.jpg)
Addressing & Forwarding
The PDU is passed downwards with the parameter ADDRESS
The ADDRESS is used to route the PDU (choose the SAP)
The ADDRESS is inserted in the PDU for further routing needs
Entity N+1
Routing Entity
PDU
SDU
![Page 31: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/31.jpg)
Addressing
� Address: SAP identifier, unique among those of the same level
� Types of addresses:
� unicast: single SAP
� multicast: groups of SAPs
� broadcast: all the SAPs
![Page 32: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/32.jpg)
Forwarding
CBA
� Once the SAP is chosen the PDU must be forwarded
![Page 33: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/33.jpg)
Routing Tables
� Exit SAP chosen on the basis of the routing tables
Routing Table
destination Exit SAP
� Info gathering through routing protocols
![Page 34: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/34.jpg)
Route To Destination (1)� Through multiple nodes
� Network nodes go up to the network layer only
Application
Transport
Network
Data Link
Physical
Network
Data Link
Physical
Application
Transport
Network
Data Link
Physical
Network
Data Link
Physical
ExRouter IP:Network Function at layer 3!!!
ExRouter IP:Network Function at layer 3!!!
RouterTerminal
![Page 35: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/35.jpg)
Route To destination (2)
� Routing function may be implemented at lower/upper layers
� LAN Switch
Application
Transport
Network
Data Link
Physical
Data Link
Physical
Application
Transport
Network
Data Link
PhysicalData Link
Physical
ExSwitch:Net functions at layer 2!!!
ExSwitch:Net functions at layer 2!!!
Terminal
Switch
![Page 36: (2-Protocols Services [modalità compatibilità])fmartignon/documenti/reseaux/2-Protocols_Servic… · A1 Ent B1 Bidirectional channel Node A Node B talk Ent A2 Ent B2 talk header](https://reader034.fdocuments.in/reader034/viewer/2022042113/5e8f225d6abaf2387278629d/html5/thumbnails/36.jpg)
Route To destination (3)
Application
Transport
Network
Data Link
Physical
Data Link
Physical
Application
Transport
Network
Data Link
Physical
ExProxy:Net function at layer 5!!!
ExProxy:Net function at layer 5!!!
Application
Transport
Network
Terminal
Proxy