LECTURE2_v2
LECTURE2_v2
From Computer Networking: A Top-Down Approach Featuring the Internet by Kurose & Ross
What’s a protocol?
a human protocol and a computer network protocol:
Hi TCP connection
req.
Hi
TCP connection
Got the reply.
time?
2:00 Get http://gaia.cs.umass.edu/index.htm
time <file>
From Computer Networking: A Top-Down Approach Featuring the Internet by Kurose & Ross
In Summary, a protocol is ....
An agreement about communication between two or more entities
It specifies
– Format of messages
– Meaning of messages
– Rules for exchange
– Procedures for handling problems
Protocols and Architecture
14
OSI Model
Open Systems Interconnection Model
Developed by the International
Organization for Standardization (ISO)
OSI 7 Layers:
Application (AWAY)
Presentation (PIZZA)
Session (SEAFOOD)
Transport (TAKE)
Network (NOT)
Data Link (DO)
Physical (PLEASE)
Seven Layers of the OSI Model
16
OSI Model
Communication Protocols
• Different protocols are used in
different layers of basic network
model.
• Elements in communication
protocols:
Syntax
Structure or format of the
data
Indicates how to read the bits
- field delineation
Semantics
Interprets the meaning of the
bits
Knows which fields define
what action
Timing
When data should be sent
and what
Speed at which data should
be sent or speed at which it is
being received. 18
OSI Model
Actually, hmmm… it doesn’t really
exist!
OSI is just a MODEL!
→ Login Rights
→ Permissions
OSI Layer - Transport
To guarantee end-to-end data
delivery.
OSI Layer - Network
To find the shortest path to the
destination network.
OSI Layer – Data link
To decide the whose turn
To find the physical device on
the network.
OSI Layer – Physical
Describe the physical part of the
network…
→ Frequencies
→ Cable
→ Connectors
→ Bits and etc…
Interaction between Layers
http://www.webopedia.com/quick_ref/OSI_Layers.asp 27
An Exchange of Data using OSI
28
Layer 1 – Physical Layer
29
Layer 2 – Data Link Layer
30
Layer 3 – Network Layer
31
Hope-to-hope Delivery in Layer
1, 2 and 3
32
Layer 4 – Transport Layer
33
Layer 5 – Session Layer
34
Layer 6 – Presentation Layer
35
Layer 7 – Application Layer
36
Let’s Summarize the OSI Model
37
So…
Concept of Layers in Real World
We use the concept of LAYERS in our daily life. As an example, let us
consider two friends who communicate through postal mail. The process
of sending a letter to a friend would be complex if there were no
services available from the post office.
39
TCP/IP Protocols and Architecture
Transmission Control Protocol/Internet
Protocol
Used by the global Internet
TCP/IP 5 layers:
Application layer (Air)
Transport layer (The)
Internet layer (In)
Network access layer (Not)
Physical layer (Pain)
Internet protocol stack
application: supporting network
applications
Application
FTP, SMTP, STTP
transport: host-host data transfer
Transport
TCP, UDP
network: routing of datagrams from network
source to destination
IP, routing protocols link
link: data transfer between
physical
neighboring network elements
PPP, Ethernet
physical: bits “on the wire”
41
TCP/IP Layer - Application
Support for user applications
Application
Layer
Session
Layer
Presentation
Layer
TCP/IP Layer - Transport
Transmission Control Protocol (TCP)
→ Guarantee end-to-end delivery of data
46
TCP/IP Layer - Internet
Fiber Optics
→Destination
TCP/IP Layer – Physical
58
source
message
segment Ht
M application Encapsulation
M transport
datagram Hn Ht M network
frame Hl Hn Ht M link
physical
Hl Hn Ht M link Hl Hn Ht M
physical
switch
destination Hn Ht M network Hn Ht M
M application H l Hn Ht M link Hl Hn Ht M
Ht M transport physical
Hn Ht M network
Hl Hn H t M link router
physical
59
Physical addresses
Addressing – An Example
A node with physical address 10 sends a frame to a node with
physical address 87. The two nodes are connected by a link (bus
topology LAN). As the figure shows, the computer with physical
address 10 is the sender, and the computer with physical address
87 is the receiver.
https://www.youtube.com/watch?v=xIuBmOufbls
61
IP addresses
Port addresses
OSI v TCP/IP
TCP/IP OSI MODEL
Data
Segment Segment
Packet Packet
Frame Frame
Bits Bits
65