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 : vinh.tranquang1@hust.edu.vn
Ph.D., Assoc. Prof., Senior Lecturer m706501@shibaura-it.ac.jp
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 @ 2024 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
network transport-layer protocol encapsulates network
application-layer message, M, with
link transport layer-layer header Ht to create a link
transport-layer segment
• Ht used by transport layer protocol to
physical implement its service physical
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
1. Host A cần truyền một file có kích thước lớn đến host B. Đường truyền từ A đến B đi qua 3
chặng có tốc độ lần lượt là R1=100 kbps, R2=1 Mbps, R3=5 Mbps. Giả thiết không có lưu
lượng nào khác trên mạng, tính thông lượng của quá trình truyền file.
A) 1 Mbps
B) 100 kbps
C) 5 Mbps
D) không đáp án nào thỏa mãn
2. Khi đi qua các nút mạng, các gói tin có thể bị thay đổi kích thước vì:
A) mỗi mạng riêng biệt có một gói kích thước tối thiểu
B) mỗi mạng riêng biệt có một gói kích thước tối đa
C) một gói tin phải đi qua ít nhất 10 mạng
D) một số lượng nhất định các gói tin phải đi qua mỗi mạng
3. Loại hình kết nối truyền thông nào yêu cầu tầm nhìn thẳng và không ngắt quãng ?
A) cáp sợi quang
B) truyền thông hồng ngoại
C) truyền thông vô tuyến
D) kết nối token-ring
4. Trong các loại trễ sau, trễ nào phụ thuộc vào kích thước gói ?
A) Trễ lan truyền
B) Trễ hàng đợi
C) Trễ phục vụ gói
D) Trễ xử lý header gói
5. Trong các loại trễ sau, trễ nào phụ thuộc vào kích thước mạng ?
A) Trễ lan truyền
B) Trễ hàng đợi
C) Trễ phục vụ gói
D) Trễ xử lý header gói
6. Trong mạng Ethernet, làm thế nào để một thiết bị xác định được một frame không phải được
gửi đến cho nó ?
A) Thiết bị đọc frame thu được
B) Mỗi thiết bị chỉ có khả năng đọc được frame gửi riêng cho nó
C) Mỗi thiết bị được cung cấp một mã mã hóa cho phép nó đọc các frame được gửi riêng cho nó
D) Thiết bị chỉ đọc các frame có địa chỉ đích trùng với địa chỉ của nó và bỏ qua các frame khác
7. Xét hai host A và B cách nhau m mét, được kết nối với nhau bởi một link có tốc độ R (bps), tốc độ truyền lan
trên link là s (m/s), host A cần gửi một gói tin có kích thước L bít đến host B. Giả thiết host A bắt đầu truyền gói
tin đi tại thời điểm t=0, tại thời điểm t=d_trans bít cuối cùng của gói tin đang ở đâu?
A) Vẫn ở host A
B) Vừa rời host A
C) Vừa đến host B
D) Vẫn trên đường truyền
8. Xét hai host A và B cách nhau m mét, được kết nối với nhau bởi một link có tốc độ R (bps), tốc độ truyền lan
trên link là s (m/s), host A cần gửi một gói tin có kích thước L bít đến host B. Giả thiết dprop lớn hơn dtrans, Tại
thời điểm t= d_trans, bít đầu tiên của gói tin nằm ở đâu?
A) Vẫn ở host A
B) Vừa rời host A
C) Vừa đến host B
D) Vẫn trên đường truyền
9. Xét hai host A và B cách nhau m mét, được kết nối với nhau bởi một link có tốc độ R (bps), tốc độ truyền lan
trên link là s (m/s), host A cần gửi một gói tin có kích thước L bít đến host B. Giả thiết dprop nhỏ hơn dtrans,
Tại thời điểm t= d_trans, bít đầu tiên của gói tin nằm ở đâu?
A) Vẫn ở host A
B) Vừa rời host A
C) Vừa đến host B
D) Vẫn trên đường truyền
Để vận chuyển một bản tin đến đúng ứng dụng trên một host, địa chỉ nào sau đây được sử dụng
?
A) địa chỉ cổng
B) địa chỉ logic
C) địa chỉ vật lý
D) không đáp án nào thỏa mãn
Khái niệm ______ chỉ sự sắp xếp vật lý của một mạng.
A) Data flow
B) Mode of operation
C) Topology
D) None of the above
Khái niệm _______ để chỉ hai tính chất: khi nào dữ liệu có thể được truyền đi và tốc độ mà nó có
thể được truyền.
A) Semantics
B) Syntax
C) Timing
D) none of the above
Khái niệm nào sau đây chỉ bộ các quy tắc cho phép trao đổi thông tin có thứ tự?
A) Network
B) Hardware
C) Operating System
D) Protocol
Khái niệm nào sau đây định nghĩa khuôn dạng và thứ tự các bản tin trao đổi giữa 2 thiết bị truyền thông?
A) Frame
B) Packet
C) Protocol
D) Header
Khi gói dữ liệu chuyển từ lớp trên xuống lớp dưới, phần tiêu đề được _______.
A) Added
B) Removed
C) Rearranged
D) Modified
Khi một host trong mạng A gửi một bản tin đến một host trong mạng B, địa chỉ nào router cần dùng đến ?
A) đia chỉ cổng
B) địa chỉ logic
C) địa chỉ vật lý
D) không đáp án nào thỏa mãn
When data are transmitted from device A to device B, the header from A's layer 4 is read by B's _______
layer.
A) Physical
B) Transport
C) Application
D) None of the above
When data are transmitted from device A to device B, the header from A's layer 4 is read by B's _______
layer.
A) Physical
B) Transport
C) Application
D) None of the above
Các giao thức nào sau đây phải thiết lập kết nối trước khi truyền dữ liệu
A) Giao thức lớp liên kết dữ liệu
B) Giao thức lớp mạng
C) Giao thức tầng giao vận
D) Giao thức định tuyến
Dịch vụ nào được cung cấp bởi Link layer cho Network layer?
A) Next hop delivery
B) Framing
C) Error Control
D) Flow Control
Dữ liệu được chuyển thành các đoạn (segment) tại lớp nào dưới đây?
A) Ứng dụng
B) Truyền tải
C) Mạng
D) Liên kết dữ liệu
Đâu là thứ tự đúng của đơn vị dữ liệu trong bộ giao thức TCP/IP khi chuyển từ lớp 1 lên lớp 7
theo mô hình OSI?
A) bits, segments, frames, packets, data;
B) bits, frames, packets, segments, data;
C) bits, frames, segments, packets, data;
D) bits, packets, frames, segments, data.
Để chuyển một bản tin đến đúng một trình ứng dụng đang chạy trên một host, địa chỉ ______
phải được sử dụng.
A) port
B) IP
C) physical
D) none of the above
Lớp _______ là lớp gần nhất với môi trường truyền dẫn.
A) Physical
B) Data link
C) Network
D) Transport
Lớp _________ chịu trách nhiệm vận chuyển một bản tin từ tiến trình này đến tiến trình khác.
A) physical
B) transport
C) network
D) none of the above
Lớp nào chịu trách nhiệm vận chuyển các frames từ một nút (hop) đến nút tiếp theo (next hop)?
A) physical
B) data link
C) transport
D) không đáp án nào thỏa mãn