Net 4
Net 4
Hema A Murthy
L1 L1
Physical Layer
Design of a Network
• Layer to Layer interface must be well
understood.
• A set of layers and protocols constitute a
network architecture.
• A list of protocols used by a system, one per
layer is called a protocol stack.
L5 protocol
M M Application
L4 protocol
H4 M H4 M Transmission
L3 protocol
H3 H4 M1 H3 M2 H3 H4 M1 H3 M2 NW Layer
DLL
H2 H3 H4 M1 T1 H2 H3 M2T1 H2 H3 H4 M1 T1 H2 H3 M2T1
src dest
L2 protocol Physical
Design of a Network
• Addresses for source and destination
– multiple machines with multiple processes
– a process on one machine must know the
identity of process on the other machine that it
wants to talk to
• Machine Address
• Process Address
Design of a Network
• Virtual communication between peers except
Physical Layer.
• Each layer thinks that there is a horizontal
communication.
• At each layer:Procedures:
– Send To Other Side
– Get From Other Side
– each communicates with lower layers.
– each layer needs a mechanism to identify senders and
receivers
HHP HHP
Layering in a Network
• Abstracting details away from physical
layer:
– keeps switches in the middle of the Network as
simple as possible
• Compare with telephone network: put intelligence in
switch
– telephone handsets as simple as possible
– A single physical connection to multiplex
different conversations
Layering in a Network
• flow and control:
– prevented sender from swamping receiver.
• message formats:
– different sizes at different levels
– assemble / disassemble messages
IDU
ICI SDU
Types of Services
• connection oriented service
– Telephone system
• connection less – postal system
– (second message come before first – no
acknowledgement)
• Two letters posted at the same time to same address
• reply paid telegram
• Acknowledgement received for message
IP NetWork
A Simple Network
• Connecting two machines directly to
physical medium
– Encoding
– Framing and error detection
– Link should appear reliable
– shared link
• medium access