Tutorial 1
Tutorial 1
Roadmap
OSI Model
TCP/IP protocol suite
Data encapsulation and transmission
Communication at each layer
Network protocol analyzer
OSI Model
Layers
Description
Application
Allows useraccesstonetwork,provideservicestousers.
user access to network provide services to users
Presentation
Datarepresentation,encryptionanddecryption, etc
Session
Setupconnection,login,etc(startand endconversation)
Transport
Reliable transmissionofpacketsfromsourceto
destination(endtoend).
Network
Routing:guidesthepacket fromsourcetodestination
Data Link
Reliable transmissionfromnodetonode
Physical
OSI Model
Layers
Dataunit
Application
pp ca o
Data
aa
Presentation
Data
Session
Data
Transport
Segments
Network
Packet/
Datagram
g
Data Link
Frame
Physical
Bit
Data encapsulation
p
and decapsulation
p
a) Header and trailer attached at each layer aim to perform certain functions at each layer.
b) Headers are added while a packet is going down the stack at each layer.
c) Each protocol on the different layer has its own format
format.
4
TCP/IP Model
7
Application
Presentation
Session
S i
Application
Transport
Transport
Network
Internet
DataLink
Data Link
Data Link
Physical
Host to network
Physical
data
Ht
TCP
data
MAC
IP
TCP
data
application
transport
internet
link
physical
MAC
IP
TCP
data
link
physical
p
y
switch
destination
data
segment
packet
frame
MAC
data
Ht
TCP
data
TCP
data
application
transport
internet
link
physical
IP
TCP
data
internet
link
physical
Hn Ht
router
7
Application protocol
Application
TCP
TCP protocol
TCP
IP
Data Link
IP
IP protocol
Data
Link
Data
Link
IP
IP protocol
Data
Link
Data
Link
Data
Link
IP protocol
Data
Link
Data
Link
IP
Network
Access
B
Legend
Source
R1
Destination D Data
R3
H Header
R4
Application
Transport
Network
Network
Data link
Data link
Physical
Physical
D5 D5
Message
g
D5 D5
Message
10
Source
Legend
R1
Destination D Data
R3
H Header
R4
B
Transport
Network
Network
Data link
Data link
Ph i l
Physical
Ph i l
Physical
D4 H4
Segment
D4 H4
Segment
11
12
Source
R1
Destination D Data
R3
H Header
R4
Network
Network
Data link
Data link
Physical
Physical
D3 H3
Datagram
D3 H3
Datagram
g
The unit
Th
i off communication
i i at the
h internet
i
layer
l
is
i a datagram/packet.
d
/ k
The IP address of source and destination never change in transmission.
13
DataLinklayerprotocolsgovernshowtoformataframeforuseondifferentmedia(e.g.,
copper,fiber,andwirelessnetworkmedia.).
Differentprotocolsmaybeinusefordifferentmedia.
(ethernet frame,802.11wirelessframe,etc)
14
Legend
R1
Destination D Data
R3
H Header
R4
Data link
Data link
Physical
Physical
Link 1
Link 3
Link 5
Link 6
D2 H2
Frame
H2
D2 ame
Fr
The unit
Th
i off communication
i i at
the data link layer is a frame.
D2 H2
Frame
D2 H2
Frame
16
R1
Source
Destination
R3
R4
Physical
layer
Physical
layer
Link 3
Link 1
Link 5
Link 6
1.
01
1
10
..
Th unit
The
i off communication
i i at the
h physical
h i l layer
l
is
i a bit.
bi
17
18
Summary
Layering
TCP/IP protocol suite
Data encapsulation (head, trailer)
Communication at each layer
y
hop by hop: physical layer, data link layer
end to end: application layer,
layer transport layer
19