Lecture 04 Layering Architecture
Lecture 04 Layering Architecture
Protocol Hierarchies
Layers, protocols, and interfaces
Design Issues for the Layers
Addressing
Error Control
Multiplexing
Routing
Connection-Oriented and Connectionless
Services
• Protocol Hierarchies
• Design Issues for the Layers
• Connection-Oriented and Connectionless Services
• Service Primitives
• The Relationship of Services to Protocols
• In order to reduce the design complexities most
networks are organized as a stack of layers or levels
• The number of layers, the name of each layer, the
contents of each layer, and the function of each layer
differ from network to network.
• The purpose of each layer is to offer certain services to
the higher layers hiding the details how the offered
services are actually implemented.
• In a sense, each layer is a kind of virtual machine,
offering certain services to the layer above it.
• Layer n on one machine carries a
conversation with layer n on another machine
• Since they have no common language, they each engage a translator (layer 2)
• Philosopher 1 passes a message (in English) across the 2/3 interface to his translator, saying ‘‘Ilike rabbits,’’
• The translators have agreed on a neutral language known to both of them, Dutch, so the message is converted to ‘‘Ik vind
konijnen leuk.’’ The choice of language is the layer 2 protocol and is up to the layer 2 peer processes.
• The translator then gives the message to a secretary for transmission, by, for example, fax (the layer 1 protocol).
• When the message arrives, it is translated into French and passed across the 2/3 interface to philosopher 2.
• The translators can switch from Dutch to say, HINDI, provided that they both agree, and neither changes his interface with
either layer 1 or layer 3.
• Similarly, the secretaries can switch from fax to e-mail or telephone without disturbing (or even informing) the other layers.
• Each process may add some information intended only for its peer. This information is not passed upward to the layer above.
The philosopher-translator-secretary architecture.
M Layer4 Protocol M
4 4
Layer3 Protocol
3 H M H M 3
Layer2 Protocol
2 H1 M1 H2
H MM1 H1H M1
M HH2 M M1 2
1 1