01 Introduction
01 Introduction
INTRODUCTION
HANOI UNIVERSITY OF SCIENCE AND TECHNOLOGY Smart Applications & Network System Laboratory
Add : Room 618, Ta Quang Buu Library
No.1 Dai Co Viet Road, Hanoi, Vietnam
TRAN QUANG VINH Mobile : (+84) 912 636 939
Email : [email protected]
Ph.D., Assoc. Prof., Senior Lecturer [email protected]
School of Electrical and Electronic Engineering Website : https://sanslab.vn
Internet-connected devices
Tweet-a-watt:
monitor energy use
bikes
Others?
mattress
Gaming devices
Internet phones Fitbit
Communication links
home network content
fiber, copper, radio, provider
satellite network datacenter
network
transmission rate:
bandwidth
Networks
enterprise
collection of devices, network
routers, links: managed
by an organization
mobile network
Internet: “network of networks” 4G
national or global ISP
• Interconnected ISPs
WiFi
Rules for:
… specific messages sent Protocols define the format, order of
… specific actions taken
messages sent and received among
when message received, network entities, and actions taken on
or other events message transmission, receipt
Hi TCP connection
request
Hi TCP connection
response
Got the
time? GET
http://gaia.cs.umass.edu/kurose_ross
2:00
<file>
time
local or
regional
ISP
home network content
provider
network datacenter
network
enterprise
network
enterprise
network
keep in mind:
bandwidth (bits per second) of
access network?
shared or dedicated?
DSL splitter
modem DSLAM
cable headend
cable splitter
modem
C
O
V V V V V V N
I I I I I I D D T
D D D D D D A A R
E E E E E E T T O
O O O O O O A A L
1 2 3 4 5 6 7 8 9
Channels
cable headend
to/from headend or
central office
often combined
in single box
to Internet
to Internet
Enterprise link to
ISP (Internet)
institutional router
Ethernet institutional mail,
switch web servers
local or
regional
ISP
home network content
provider
network datacenter
network
enterprise
network
routing Routing:
algorithm
Forwarding: local forwarding table
global action:
aka “switching” header output determine source-
local action: move value
0100
0101
3 link
2 destination paths
arriving packets 0111 2
taken by packets
from router’s input 1001 1
3 2
forwarding
forwarding
L bits
per packet
3 2 1
source destination
R bps R bps
R = 100 Mb/s
A C
D
B R = 1.5 Mb/s
E
queue of packets
waiting for transmission
over output link
R = 100 Mb/s
A C
D
B R = 1.5 Mb/s
E
queue of packets
waiting for transmission
over output link
Frequency Division
4 users
Multiplexing (FDM)
frequency
optical, electromagnetic
frequencies divided into (narrow)
frequency bands
each call allocated its own band, can time
transmit at max rate of that narrow
band
Time Division Multiplexing (TDM)
frequency
time divided into slots
each call allocated periodic slot(s),
can transmit at maximum rate of time
(wider) frequency band (only) during
its time slot(s)
example:
1 Gb/s link
N
each user: users 1 Gbps link
• 100 Mb/s when “active”
• active 10% of time
Q: how many users can use this network under circuit-switching and packet switching?
circuit-switching: 10 users
packet switching: with 35 users, Q: how did we get value 0.0004?
probability > 10 active at same time
is less than .0004 *
A: HW problem (for those with
course in probability only)
t1
A s
R1
t1 t3
min(d e 2 e ) = ∑i =1 (t pi + t si )
n
p
s
R2
t2
p
t4
s
R3
t3
B
p
t p4
ts1
A tq1
ts2
R1
d e 2 e = ∑i =1 (t pi + t si + t qi )
tp1
tq2
ts3 n
R2
tp2 ts4
R3
tp3
B Trong điều kiện tải cao, các gói đi vào nút
tp4 mạng phải đợi trong hàng đợi trước khi được
gửi ra đầu ra
Computer Network @ 2022 TRAN-QUANG VINH ◦ HUST 50
Phân loại mạng máy tính
Phân loại theo cơ chế chuyển mạch
• So sánh các cơ chế chuyển mạch (bài tập)
WAN
3GPP 3G, LTE
IEEE 802.20
ATM
PAN (<10m)
(IEEE802.15,
ETSI HIPER PAN)
IEEE 802
• IEEE 802.3: Chuẩn mạng LAN/MAN – Ethernet
• IEEE 802.4: Chuẩn mạng LAN – Token Bus, chủ yếu được sử
dụng trong công nghiệp)
IEEE 802
• IEEE 802.5: chuẩn mạng LAN – Token Ring được phát triển bởi
IBM
• IEEE 802.6: chuẩn mạng MAN – DQDB (Distributed Queue Dual
Bus) với tốc độ 150Mbit/s trên khoảng cách 160km
IEEE 802
• IEEE 802.11: chuẩn mạng LAN không dây
• IEEE 802.15: chuẩn mạng cá nhân không dây (Wireless Personal Area
Network - WPAN)
̶ IEEE 802.15.1: BlueTooth
̶ IEEE 802.15.3: High rate WPAN (11 – 55Mbit/s): sử dụng cho các ứng dụng
multimedia
̶ IEEE 802.15.4: Low rate WPAN/ZigBee: cho các ứng dụng tiêu thụ ít năng lượng,
tốc độ thấp (Wireless Sensor Network)
IEEE 802
• IEEE 802.16: Chuẩn mạng WMAN – WiMAX
̶ IEEE 802.16-2004: WiMAX cố định
̶ IEEE 802.16e-2005: WiMAX di động
• IEEE 802.20: WWAN – Mobile Broadband Wireless Access
(MBWA), tầm phủ sóng lớn hơn WiMAX (< 15km)
3GPP
• 3G/HSPA (High Speed Packet Access)
• LTE (Long Term Evolution)
ATM Forum
• ATM
national policies
access access
net net
access
net
access
access net
net
access
access net
net
access access
net net
access
net
access
net
access
net
access
net
access access
net access net
net
access access
net net
access
net
access
access net
net
access
access net
net
access
net
access
net
access
net
access
net
access access
net access net
net
global
access
net
ISP access
net
access
net
access
net
access
net
access
net
access access
net access net
net
access access
net net
access
net
access
access net
net
access
ISP A
access net
net
access
net
ISP B access
net
access ISP C
net
access
net
access
net
access
net
access access
net access net
net
But if one global ISP is viable business, there will be competitors …. who will
want to be connected
Internet exchange point
access access
net net
access
net
access
access net
net
IXP access
ISP A
access net
net
access
net
IXP ISP B access
net
access ISP C
net
access
net
access
net
peering link
access
net
access access
net access net
net
access access
net net
access
net
access
access net
net
IXP access
ISP A
access net
net
access
net
IXP ISP B access
net
access ISP C
net
access
net
access
net regional ISP access
net
access access
net access net
net
ISP A
access net
net
access ISP C
net
access
net
access
net regional ISP access
net
access access
net access net
net
B
packets in buffers (queueing delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
transmission
A propagation
B
nodal
processing queueing
transmission
A propagation
B
nodal
processing queueing
100 km 100 km
100 km 100 km
3 probes 3 probes
3 probes
B
packet arriving to
full buffer is lost
link capacity
pipe that can carry linkthat
pipe capacity
can carry
Rsfluid
bits/sec
at rate Rfluid
c bits/sec
at rate
serverserver,
sendswith
bits
(fluid) (Rs bits/sec) (Rc bits/sec)
fileinto
of Fpipe
bits
to send to client
Rs bits/sec Rc bits/sec
Rs bits/sec Rc bits/sec
bottleneck link
link on end-end path that constrains end-end throughput
per-connection end-
Rs end throughput:
Rs Rs min(Rc,Rs,R/10)
in practice: Rc or Rs is
R often bottleneck
Rc Rc
Rc
* Check out the online interactive exercises for more
examples: http://gaia.cs.umass.edu/kurose_ross/
The physical layer is responsible for transmitting individual bits from one node to the
next.
M
application Application exchanges messages to implement some application
application service using services of transport layer
Ht M
transport Transport-layer protocol transfers M (e.g., reliably) from transport
one process to another, using services of network layer
source destination
M
application application
Ht M
transport Transport-layer protocol transfers M (e.g., reliably) from transport
one process to another, using services of network layer
network Hn Ht M network
Network-layer protocol transfers transport-layer segment
[Ht | M] from one host to another, using link layer services
link link
network-layer protocol encapsulates
transport-layer segment [Ht | M] with
physical network layer-layer header Hn to create a physical
network-layer datagram
source • Hn used by network layer protocol to destination
implement its service
M
application application
Ht M
transport transport
network Hn Ht M network
Network-layer protocol transfers transport-layer segment
[Ht | M] from one host to another, using link layer services
link Hl Hn Ht M link
Link-layer protocol transfers datagram [Hn| [Ht |M] from
host to neighboring host, using network-layer services
physical physical
link-layer protocol encapsulates network
datagram [Hn| [Ht |M], with link-layer
source header Hl to create a link-layer frame destination
M
application M application
message
Ht M
transport Ht M transport
segment
network Hn Ht M Hn Ht M network
datagram
link Hl Hn Ht M Hl Hn Ht M
link
frame
physical physical
source destination
source
message M applicatio
segment Ht M n
datagram Hn Ht M transport
frame Hl Hn Ht M network
link
physical
link
physical
switch
destination Hn Ht M network
M applicatio Hl Hn Ht M link Hn Ht M
Ht M n physical
Hn Ht M transport
Hl Hn Ht M network router
link
physical
A C
src:B dest:A
payload B
A C
src:B dest:A
payload
B
1. select target
2. break into hosts
around the network
(see botnet)
3. send packets to target target
from compromised
hosts
https://vi.wikipedia.org/wiki/Internet_tại_Việt_Nam
application
(www browser,
packet
email client)
analyzer
application
OS
packet Transport (TCP/UDP)
capture copy of all Network (IP)
Ethernet Link (Ethernet)
(pcap) frames
sent/received Physical