Professional Documents
Culture Documents
Protocols are a set of rules and conventions. By enforcing that communicating parties adhere to a common protocol, communication is made possible.
Network Architecture
A Network Architecture is a structured set of protocols that implement the exchange of information between computers
Any complex programming task is made simpler by using several levels of abstraction Abstraction hides the programming details of lower levels Communication tasks give rise to standard abstractions Committees such as the IETF (Internet Engineering Task Force) are in charge for standardizing the abstractions related to internet communication
Multiple levels of communication abstractions have been defined by standardization bodies Each level is enforced by a corresponding protocol Each level uses the abstract services of the level below Abstraction achieves separation of concerns
A protocol neednt know how the lower-level abstractions are implemented and what the higher level abstractions are.
A protocol of layer N uses only services of layer N-1. A protocol of layer N provides services only to layer N+1.
n o t la y e r e d la y e r e d
A C E
Copyright by Jorg Liebeherr 98, 99
A C
la y e r 3 la y e r 2
la y e r 1
Service Primitives
X. Request
X. Confirm
X. Indication
X. Response
N Layer Entity
Copyright by Jorg Liebeherr 98, 99
N Layer Entity
Service Primitives
Recall: A layer N+1 protocol entity sees the lower layers only as an abstract service provider
N+1 Layer Entity X. Request N+1 Layer Protocol N+1 Layer Entity X. Response
X. Confirm
X. Indication
Service Provider
Copyright by Jorg Liebeherr 98, 99
Alice
Bobs mailbox
Alices mailbox
Postman
(Un-)Acknowledged Service
Unconfirmed service:
L.Request
US Mail
L.Indicate
Acknowledged service:
L.Request L.Indicate
L.Confirm
Copyright by Jorg Liebeherr 98, 99
US Mail
L.Indicate
Protocol Architectures
There are only few protocol architectures that are relevant today:
OSI Reference Model TCP/IP Protocols Suite ATM Protocol Stack
The OSI model defines seven layers: Layer 7: Application Layer Layer 6: Presentation Layer Layer 5: Session Layer Layer 4: Transport Layer Layer 3: Network Layer Layer 2: Data Link Layer Layer 1: Physical Layer Interconnection Media
OSI Layers
HOST
A p p l i c a t io n
HOST
A p p lic a tio n
NODE
N e tw o rk Layer D a t a L in k Layer P h y s ic a l Layer
NODE
N e tw o rk Layer D a t a L in k Layer P h y s ic a l Layer
D a ta
A p p lic a t io n
AH AH AH AH AH AH
D a ta D a ta D a ta D a ta D a ta D a ta
A p p lic a t io n
P r e s e n ta tio n
S e s s io n T ra n s p o rt N e tw o rk D a t a L in k P h y s ic a l
N e tw o r k D a ta L in k P h y s ic a l
N e tw o rk D a t a L in k P h y s ic a l
S e s s io n T ra n s p o rt N e tw o r k D a ta L in k P h y s ic a l
N e tw o rk D a ta L in k P h y s ic a l
S ta tio n (H o s t)
Converts bits into electrical or optical signals Transmits these signals over the hardware communication medium Example: RS-232
Reliably transfers frames over a link Performs synchronization, error control, flow control Example: PPP
Moves packets inside the network Performs routing, addressing, switching, congestion control Example: IP
Controls delivery of data between hosts Connection management, error control, flow control, multiplexing, TCP, UDP.
Support the dialog between cooperating application programs Session management, synchronization Example: RPC
Provides network access to application programs Everything is application specific Example: File Transfer, Electronic Mail
The TCP/IP protocol suite was first defined in 1974 The TCP/IP protocol suite is the protocol architecture of the Internet The TCP/IP suite has four layers: Application, Transport, Internet, and Network Interface Layer
t e ln e t , f t p , e m a il
TC P, U D P
IP , IC M P , IG M P
D e v ic e D riv e r s
FTP p ro g ra m TCP
F T P p ro to c o l
FTP p ro g ra m TCP
T C P p ro to c o l
IP E th e rn e t D r iv e r
Copyright by Jorg Liebeherr 98, 99
IP p ro to c o l E th e rn e t D r iv e r
IP
IP p ro to c o l E th e rn e t D riv e r
IP E th e rn e t D riv e r
E th e rn e t p ro to c o l
E th e r n e t p ro to c o l
U s e r d a ta
TCP
TC P H eader
A p p lic a t io n d a t a
T C P segm ent
IP
IP H e a d e r TC P H eader
A p p lic a t io n d a t a
E th e rn e t D r iv e r
E th e r n e t H eader IP H e a d e r
IP d a ta g r a m
TC P H eader
A p p lic a t io n d a t a
E th e rn e t T ra ile r
E th e r n e t fr a m e
Copyright by Jorg Liebeherr 98, 99
TCP
U D P
T ra n s p o rt Layer
IC M P
IP
IG M P
N e tw o rk Layer
ARP
H a rd w a re In t e rfa c e
RARP
L in k L a y e r
M e d ia
Copyright by Jorg Liebeherr 98, 99
T C P /IP
A p p lic a tio n
P h y s ic a l
Quiz