Packet Switching, Layer Models and Protocol...
Transcript of Packet Switching, Layer Models and Protocol...
![Page 1: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/1.jpg)
1
Packet Switching, Layer Models and Protocol Suites
Asst. Prof. Md Samsuzzaman, [email protected]
http://www.cse.pstu.ac.bd/sobuzcseComputer and Communication Engineering Department
PSTU
Course Code CCE 211
Course Title Data Communication
![Page 2: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/2.jpg)
2
Outline
Circuit vs. packet switching
Layered tasks
Internet protocol suites
ISO's OSI model
![Page 3: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/3.jpg)
End-to-End Communication
Direct communication
Most basic form of communication
Internet communication
Communication is performed over the Internet
3
TX TX
RX RX
GND GND Serial Port
Internet
![Page 4: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/4.jpg)
4
Internet Comm. - App's Viewpoint
Two network applications should interact as if they were directly connected
But what's going on underneath?
What is inside the "cloud"?
InternetA
App
B
App
write read
![Page 5: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/5.jpg)
6
Circuit vs. Packet Switching Dedicated circuits
Circuit switching Telephone switches
establish circuitsfor communication
Packet switching Data are put into
packets
Each stamped withsource and destinationaddresses
Routers know where toforward packets
telephoneswitch
RouterPacket
![Page 6: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/6.jpg)
7
Layered Tasks
Computer networks are complex systems
Tasks involve varieties of hardware and software components, and protocols
Networking task is divided into several subtasks, or layers
![Page 7: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/7.jpg)
2.8
Figure 2.1: A single-layer protocol
![Page 8: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/8.jpg)
2.9
Figure 2.2: A three-layer protocol
Postal carrier facility
![Page 9: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/9.jpg)
2.10
2.1.2 Principles of Protocol Layering
Let us discuss two principles of protocol layering.
The first principle dictates that if we want
bidirectional communication, we need to make each
layer so that it is able to perform two opposite tasks,
one in each direction.
The second principle that we need to follow in
protocol layering is that the two objects under each
layer at both sites should be identical.
![Page 10: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/10.jpg)
2.11
2.1.3 Logical Connections
After following the above two principles, we can
think about logical connection between each layer
as shown in Figure 2.3. This means that we have
layer-to-layer communication. Maria and Ann can
think that there is a logical (imaginary) connection
at each layer through which they can send the object
created from that layer. We will see that the concept
of logical connection will help us better understand
the task of layering we encounter in data
communication and networking.
![Page 11: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/11.jpg)
2.12
Figure 2.3: Logical connection between peer layers
![Page 12: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/12.jpg)
13
Real World Example
Communication between managers of two companies
Communicate
![Page 13: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/13.jpg)
14
What Actually Happens Communication takes place thru many layers
Logical communication
Secretary:types a letter
Delivery boy:drops the letter
Secretary:reads and reportsthe message
Delivery boy:takes the letter
Post office:Processes and routes the letter
Postal truck
![Page 14: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/14.jpg)
2.17
Figure 2.5: Communication through an internet
![Page 15: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/15.jpg)
18
Internet Layer Model
The Internet Protocol Stack
Application Layer
Transport Layer
Network Layer
Data Link Layer
Physical Layer
User
TransmissionMedium
Hardware
Software
![Page 16: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/16.jpg)
19
Application Layer
The only layer to interact with user
Responsible for providing services to the user
SMTP HTTP FTP SMTP HTTP FTP
Data
Data H5
ApplicationLayer
to Transport from Transport
Data H5
DataLogical communication
![Page 17: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/17.jpg)
20
Transport Layer
Duties/services
Port addressing
Segmentation and reassembly
Connection control
Flow control (end-to-end)
Error control (end-to-end)
Responsible for delivery of a message
from one process to another
![Page 18: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/18.jpg)
21
Transport Layer
TransportLayer
Data
Data1 Data2 Data3H4 H4 H4
to Network
Data
Data1 Data2 Data3H4 H4 H4
from Network
(segments)
Process Process … Process Process …
PORT # PORT #
![Page 19: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/19.jpg)
22
Network Layer
Duties/services
Logical addressing
Routing
Responsible for the delivery of packets
from the original source to the destination
![Page 20: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/20.jpg)
23
Network Layer
NetworkLayer
Data
from Transport
to Data Link
Data
to Transport
from Data Link
Data H3 Data H3
(packet)
![Page 21: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/21.jpg)
24
Network Layer
Network 1
Network 6
Network 5
1.1 1.2
6.6
6.1
6.3
5.7
5.2
Network 33.8
3.3Router
Data 1.1 5.7
1.1, 1.2, 6.1, 5.7, ... are logical addresses
R1
R3R2
![Page 22: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/22.jpg)
25
Data Link Layer
Duties/services
Framing
Physical addressing
Flow control (hop-to-hop)
Error control (hop-to-hop)
Access control
Responsible for transmitting frames
from one node to the next
![Page 23: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/23.jpg)
26
Data Link Layer
Data LinkLayer
Data
from Network
to Physical
Data
to Network
from Physical
Data H2 Data H2
(frame)
T2 T2
![Page 24: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/24.jpg)
27
Data Link Layer
3B
A3, 3B, 82, 9F, ... are physical addresses
9F 82 A3
Data 9FT2 A3
Data
H2
![Page 25: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/25.jpg)
28
Data Link Layer
Network 1
Network 6
Network 5
1.1 1.2
6.6
6.1
6.3
5.7
5.2
Network 33.8
3.3
Data 1.15.7
97 32
25
79
62
54
74
12
88
Data 1.15.7 2597
Data 1.15.7 6279
Data 1.15.7 7454
R1
R3R2
![Page 26: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/26.jpg)
29
Physical Layer
Duties/services
Physical characteristics of interfaces and media
Representation of bits
Data rate (transmission rate)
Synchronization of bits
Responsible for transmitting individual bits
from one node to the next
![Page 27: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/27.jpg)
30
Physical Layer
PhysicalLayer
Data
from Data Link to Data Link
Data
01001011 01001011
Transmission medium
(bits)
![Page 28: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/28.jpg)
31
The Big Picture
L5 data H5
L4 data H4
L3 data H3
L2 dataT2 H2
0111011010101001010101001
L5 data H5
L4 data H4
L3 data H3
L2 dataT2 H2
0111010101010010101010101
5
4
3
2
1
5
4
3
2
1
Transmission medium
![Page 29: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/29.jpg)
Network
D.L.
P.L.
D.L.
P.L.
Network
D.L.
P.L.
D.L.
P.L.
32
Internet Model
Application
Transport
Network
Data Link
Physical
Application
Transport
Network
Data Link
Physical
Transmission medium
senderrouter
router
receiver
![Page 30: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/30.jpg)
33
Internet Model
![Page 31: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/31.jpg)
3434
Protocol Suites
A set of protocols must be constructed
to ensure that the resulting communication system is complete and efficient
Each protocol should handle a part of communication not handled by other protocols
How can we guarantee that protocols work well together?
Instead of creating each protocol in isolation, protocols are designed in complete, cooperative sets called suites or families
![Page 32: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/32.jpg)
35
Internet Protocol Suite
Layer Protocols
Application HTTP, FTP, Telnet, SMTP, ...
Transport TCP, UDP, SCTP, ...
Network IP (IPv4), IPv6, ICMP, IGMP, ...
Data Link Ethernet, Wi-Fi, PPP, ...
Physical RS-232, DSL, 10Base-T, ...
![Page 33: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/33.jpg)
36
OSI Model
OSI – Open Systems Interconnection
Developed by the International Standards Organizations (ISO)
Two additional layers
Presentation layer
Session layer
7.Application Layer
6.Presentation Layer
5.Session Layer
4.Transport Layer
3.Network Layer
2.Data Link Layer
1.Physical Layer
User
TransmissionMedium
![Page 34: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/34.jpg)
37
Session Layer
Duties/services
Interaction management
Simplex, half-duplex, full-duplex
Session recovery
Responsible for establishing, managing and
terminating connections between applications
![Page 35: Packet Switching, Layer Models and Protocol Suitescse.pstu.ac.bd/uploads/teacher_uploads/02-Models2.pdf · 2017-01-15 · 2.11 2.1.3 Logical Connections After following the above](https://reader033.fdocuments.in/reader033/viewer/2022042307/5ed3e02d73d3d24575700fa6/html5/thumbnails/35.jpg)
38
Presentation Layer
Duties/services
Data translation
Encryption
Decryption
Compression
Responsible for handling differences in
data representation to applications