Chapter 02 Network Architecture and Performance
Chapter 02 Network Architecture and Performance
performance
Circuit switching and packet switching
Layers and functions of layers - OSI and TCP/IP model
router/firewall/NAT
Ethernet
wireless
to/from laptops
cable router/
cable
modem firewall
headend
wireless
access
Ethernet point
The Network Core
mesh of interconnected
routers
the fundamental
question: how is data
transferred through
net?
circuit switching:
dedicated circuit
per call: telephone
net
packet-switching:
data sent thru net
in discrete “chunks”
Network Core: Circuit Switching
1.5 Mb/s
B
queue of packets
waiting for output
link
D E
resource sharing
congestion control
Application
Circuit switching: PSTN (Published Switched
Telephone Network), ISDN
Packet switching: ATM, DSL, MPLS, Satellite,
Wireless
How do the loss and delay
occur?
packets queue in router buffers
packet arrival rate to link exceeds output link
capacity
packets queue, wait for turn
packet being transmitted (delay)
B
packets queueing (delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
Four sources of packet
delay
1. nodal processing: 2. queueing
check bit errors time waiting at output
transmission
A propagation
B
nodal
processing queueing
Delay in packet-switched
networks
3. Transmission delay: 4. Propagation delay:
R=link bandwidth d = length of physical
(bps) link
L=packet length s = propagation speed
B
nodal
processing queueing
Caravan analogy
100 100
km km
ten-car toll toll
caravan booth booth
cars “propagate” at Time to “push” entire
100 km/hr caravan through toll
toll booth takes 12 sec to booth onto highway =
service car (transmission 12*10 = 120 sec
time) Time for last car to
car~bit; caravan ~ packet propagate from 1st to
Q: How long until caravan 2nd toll both:
is lined up before 2nd toll 100km/(100km/hr)= 1 hr
booth? A: 62 minutes
Caravan analogy (more)
100 100
km km
ten-car toll toll
caravan booth booth
3 probes
“Real” Internet delays and routes
B
packet arriving to
full buffer is lost
Exercise
L
R1 R2 R3
server,
server sends linkthat
with pipe capacity
can carry link that
pipe capacity
can carry
filebits
of F bits fluid at rate
Rs bits/sec Rfluid at rate
c bits/sec
to send
(fluid) to pipe
into client R bits/sec) Rc bits/sec)
s
Throughput vs bandwidth
Bandwidth is the maximum amount
of data that can be transferred through
a network for a specified period of
time.
Throughput is the actual amount of
data that can be transferred through a
network during a specified time period
Throughput (more)
Rs < Rc What is average end-end
throughput?
Rs bits/sec Rc bits/sec
bottleneck link
link on end-end path that constrains end-end
throughput
Throughput: Internet
scenario
Rs
per-connection Rs Rs
end-end
throughput:
R
min(Rc,Rs,R/10)
Rc Rc
in practice: Rc or
Rs is often Rc
bottleneck
10 connections (fairly) share
backbone bottleneck link R
bits/sec
Protocol “Layers”
Networks are
complex!
many “pieces”: Question:
Is there any hope of
hosts organizing structure of
routers network?
links of various
media Or at least our discussion
of networks?
applications
protocols
hardware,
software
Organization of air travel
a series of steps
Layering of airline
functionality
airplane routing airplane routing airplane routing airplane routing airplane routing
Layer 7
Layer 6
Layer 5
Layer 4
Layer 3
Layer 2
Layer 1
Internet protocol stack
application: supporting network
applications application
FTP, SMTP, HTTP
transport: process-process data transport
transfer
TCP, UDP
network
network: routing of datagrams (packet)
from source to destination (host-to-host
communication).
link
IP, routing protocols
link: data transfer between neighboring physical
network elements
PPP, Ethernet
physical: bits “on the wire”
OSI reference model
presentation: allow applications
to interpret meaning of data, e.g., application
encryption, compression, presentatio
machine-specific conventions n
session: synchronization, session
checkpointing, recovery of data transport
exchange
network
Internet stack “missing” these
layers! link
these services, if needed, physical
must be implemented in
application
needed?
OSI reference model
1-39
OSI vs. TCP/IP
1-41
Internet Layer Model
switch
destination Hn H t M network
M applicatio
H l Hn H t M link Hn H t M
Ht M n physical
Hn H t M transport
H l Hn H t M network router
link
physical
Ưu điểm của kiến trúc phân tầng
Chia nhỏ cho phép xác định dễ dàng chức năng mỗi tầng
Các tầng hoạt động độc lập
Tầng trên chỉ quan tâm đến việc sử dụng tầng dưới
Có thể cải tiến hệ thống bằng cách thay thế một công
house
Address: 11 Nguyen Dinh Chieu, District 1,
HCMC => IP Address
Room 12 => Port number
Domain Name
Domain Name
FQDN: Fully Qualified Domain Name
Là tên của một máy tính hay của một mạng
máy tính, sử dụng tên (chữ cái, chữ số)
www.uef.edu.vn
www.vnexpress.net
www.moet.gov.vn
Không gian tên miền
Tên và địa chỉ
Trước khi truyền tin, máy trạm phải được xác định:
Bởi một địa chỉ IP, hoặc
Bởi một tên miền (thuận tiện cho NSD)
Tên:
Độ dài thay đổi
Dễ nhớ cho con người
Không liên quan tới vị trí vật lý của máy
Địa chỉ:
Độ dài cố định
Dễ cho máy tính để xử lý
Liên quan tói vấn đề chọn đường
Chuyển đổi địa chỉ
Cơ chế cho phép tìm một địa chỉ IP từ một tên miền và ngược lại
Máy chủ tên miền (DNS):
Một phương thức được sử dụng để chuyển đổi địa chỉ
Được sử dụng rộng rãi trên Internet
Chuyển đổi địa chỉ - ví dụ
Công cụ nslookup
Nhập tham số www.hedspi.hut.edu.vn
Chuyển đổi “Tên Địa chỉ” được thực
hiện
Lệnh nslookup
nslookup www.hedspi.hut.edu.vn
ARP: Chuyển đổi địa chỉ vật lý – địa chỉ
IP
Address Resolution Protocol
Dùng để tìm địa chỉ vật lý từ địa chỉ IP
Ví dụ ARP table
Exercise
Advantage and Disadvantage of OSI
model and TCP/IP stack?
Reference: