Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols...

36
Prof. Fabio Martignon Reti Internet Multimediali

Transcript of Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols...

Page 1: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

Prof. Fabio Martignon

Reti Internet Multimediali

Page 2: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

Fundamentals of Protocols and Communication Services

Page 3: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

The Service Primitives

EntityA

EntityB

Bidirectional channel

Service primitives

dialog

Node A Node B

Page 7: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

Types of Communication Services

� Connection Oriented

1) Connection Set Up

2) Data transfer

3) Connection Release

� Connectionless

� All in one

� Asynchronous

Page 8: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

Connection Oriented Services

Connection Set Up

Info Transfer

Connection Release

EntityA

EntityB

Page 9: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

Layered Architecture: PROs

� Reduces complexity

� Standardized Interfaces

� Fosters Modularity and Interoperability

� Ease Up Teaching

� OSI Model

(1974)

Page 17: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

TCP/IP Suite vs OSI Model

SMTP,FTP, TFTP, Telnet, RloginSNMP, DNS

TCP, UDP

IP, ARP, RARP,ICMP, IGMP

Page 18: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

Company Organization (Layering example in real life)

� a series of steps

Page 19: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

Layering example

Layers: each layer implements a service

� via its own internal-layer actions

� relying on services provided by layer below

Page 20: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

Functions

� Can be divided into:

� Adaptation functions

� multiplexing

� segmentation

� Enhancement functions

� Error control

� Sequencing

Page 25: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

Segmentation

N+1-PDU

N-PDU

N-SDU

Page 26: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

Multiplexing

entitylev. N

Page 27: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

Routing

Different SAPs

Entity N+1

RoutingEntity

� Problem: how to choose the partner

� Routing through an ADDRESS

Page 29: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

Addressing

Entity N+1

Routing Entity

RoutingEntity

RoutingEntity

� Identifies the destination N-SAP

Page 30: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

Forwarding

CBA

� Once the SAP is chosen the PDU must be forwarded

Page 33: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

Routing Tables

� Exit SAP chosen on the basis of the routing tables

Routing Table

destination Exit SAP

� Info gathering through routing protocols

Page 34: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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: Reti Internet Multimediali - cs.unibg.it · Reti Internet Multimediali. Fundamentals of Protocols and Communication Services. Communication Service ... e.g., change in Fax operator

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