Chapter 1 - Concept of Computer Networks
Chapter 1 - Concept of Computer Networks
Computer networks
History of Internet
Concept of computer networks
Network architecture
Packet switching vs. circuit switching
1
History of the Internet
l Originated from an
experiemental project of ARPA
l Intially having only two nodes
(IMP atUCLA and IMP at SRI).
SRI UTAH
UCSB
UCLA
Source:
http://www.cybergeography.org/
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
atlas/historical.html One node was added each month
School of Information and Communication Technology
4
Years 70s: Interconnection,
new network architectures
and private architectures
5
Expansion of ARPANET, 1974
source:
Traffic each day not more than 3.000.000 package
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
http://www.cybergeography.org/
School of Information and Communication Technology
atlas/historical.html 6
Years 70s
7
Years 80s: New protocols, more
expansion
8
1981: Beginning of NSFNET
9
1986: Connect USENET and NSFNET
Source: http://www.cybergeography.org/atlas/historical.html 10
More network to join and more protocol
11
Years 90s: Web and E-commerce
over Internet
12
Years 90s
lBegining of 90s:
Begining of Web End of 1990’s – 2000’s:
lHTML, HTTP:
• Many new Internet
Berners-Lee applications was introduced:
l1994: Mosaic, • Chat, file sharing P2P…
Netscape • E-commerce, Yahoo, Ebay,
Amazon, Google…
lEnd of 90s: • > 50 millions hosts, > 100
Commercialized the millions users.
Internet
13
Internet in Việt Nam
14
Development of the Internet in Vietnam
15
Statistics until 2007
FPT, 2635
EVN, 400
SPT, 200
HanoiTelecom,
4
Vietel, 2056
VNPT, 6820
17
Fixed internet subscription, 2019
18
Some fixed internet subscription technologies
• Dial-up:
• 56kbps,
• use public telephone lines,
• Data are transmitted over the same frequency with voice,
• Old technology, popular before 2000
• ADSL, xDSL:
• few Mbps,
• use public telephone lines,
• Data are transmitted over the different frequency with voice,
• popular between 2000-2010
• Internet over TV cable
• Use TV cable to carry data
• FTTH
• several dozen Mbps,
• Use optical fiber
• Popular nowadays.
19
Data usage on mobile phones 2019
20
International Internet data volume 2019
21
Domestic Internet data volume
22
Internet management in Việt Nam
• VNNIC
• Is responsible for managing the Internet domain
name, address in Việt Nam;
• Provides guidelines, statistics about Internet and
participates in international activity about Internet.
• VNIX: Vietnam National Internet eXchange
• switching system between national ISP.
23
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
24
International connections
25
International connections
26
International connections
27
Optical fiber under the ocean
Source: https://www.submarinecablemap.com 28
Optical fiber under the ocean
Source: https://www.submarinecablemap.com
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
29
Concepts of computer
networks
30
Concepts
lA set of computers/nodes
connecting to each other according
to an architecture in order to
exchange data
l Computer/node: workstation,
server, router, mobile phone .etc
with information processing
capacity
l They connect to each other by a
media (wired or wireless)
l Arcording to an archirecture
lDifferent kind of computers
31
Example of computer networks
lThe Internet
lA local network using Ethernet
lAn wireless LAN at a coffee shop: using
802.11 standard
lA network connecting ATMs
32
Network architecture
33
What is a protocol?
Hi request
non response
ok response
Thời gian
34
Network protocol
35
Communication media
36
Computer network classification
37
Computer network classification
38
LAN
39
MAN
• Metropolitan Area
Networks
• Cover a city
• Ex:
• Television network
• Backbone networks of
ISP.
40
WAN
41
GAN
42
Internet
mobile network
global ISP
• Contain more than 5 billions
devices
• 3.2 billion users (40%) home
network
regional ISP
• Medium: optical fiber, twisted
pair, Wimax, 3G…
• Transport ~3x109 GB data per
day
• Services: Web, email, social
networks, …
institutional
network
43
Internet
• Network of networks
access access
network access network
network
...
Internet
access
network
44
Internet: network of networks
• Directly connect one network with all others?
access
… access
net
access
net …
net
access
access
net
… … net
access
access net
net
Not scalable:
…
…
Number of
…
access access
…
net net
access
connections O(n2)
net
access
net
access
net
access
…
net
… access access …
net access net
net
45
Internet: Network of networks(2)
• Connect each access network to a relay stations of a global ISP
access
… access
net
access
net …
net
access
access net
net
access
access net
net
…
…
global
access
net
ISP access
net
access
net
access
net
access
net
access
net
… access access …
net access net
net
46
Internet: Network of networks(3)
• Add more ISP...
access
IXP access
net
net
ISP A
…
…
access IXP access
net ISP B net
access
ISP C
net
access
net
access Peer-to-peer
net
access
net
… access access …
net access net
net
47
Internet: Network of networks(4)
• Add regional networks...
access
… access
net
access
net …
net
access
access net
net
access
IXP access
net
net
ISP A
…
…
access IXP access
net ISP B net
access
ISP C
net
access
net
access
net regional net
access
net
… access access …
net access net
net
48
Transmission models
Packet switching vs. Circuit switching
Connection oriented vs. Connectionless
49
Connecting hosts
Direct links model
50
Connecting hosts
Bus model
• Point-to-multipoint:
• Single communication medium is used for all hosts à
broadcast communication
• Weakness: long physical link, few hosts can
communicate simultaneously
X
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
51
Connecting hosts
Switching model
G D
A
3
1
C 5 B
2
E F
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
4
School of Information and Communication Technology
52
Data switching network
53
Circuit switching
54
Circuit switching
55
Example of circuit switching : Public Switched Telephone
Network PSTN
56
End-to-end data transmission time in circuit switching
A Sw1 Sw2 B
Setup
circuit
Transmit
data Information
time
Teardown
circuit
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
57
Weakness: case of idle chanel
Sw1 Sw2
Setup
Transmit Transfer
data Information
t
teardown
58
Weakness: case of small channel
Sw1 Sw2
Setup
Transmit data
Information
Teardown
59
Packet switching
60
Example of packet switching
61
Transmission time in packet switching
l Switch forwards a packet only A Sw B
after receiving all the packet
(store and forward)
h
payl
d
oad r
62
Bandwidth vs throughput
• Bandwidth - R
• In telecommunication: bandwidth= fmax - fmin
• In computer networks: Maximum amount of data
can be transmitted in a unit of time over a link (bps
– bit per second).
• Ex: optical fiber has bandwidth of 1000Mbps.
• Throughput: actual data transmission speed
(bits/sec)
63
Bottle neck
64
Delay
Transmission delay
A Propagation delay
C D
B
Processing delay
Queue delay
65
Delay
Transmission delay
A Propagation delay
C D
B
Processing delay
Queue delay
66
Round Trip Time (RTT)
• RTT: = t3 – t0
A B
T = t0
T = t1
Processing
time at B
T = t2
T = t3
67
Connection oriented vs connectionless communication
68
Summary
69
Next week…
lLayering architecture
lOSI reference model
lIP, MAC address, port number
lDNS service.
70
Lecture 2:
Basic concepts of computer networks
lLayer architecture
lOSI & TCP/IP reference model
lAddressing
lDomain name and conversion/resolution of
domain name
71
Layer architecture
72
Devide and conquer principle
73
Example
• Parties at the same level performs similar tasks and use the same
information communication methods.
Compagny A Compagny B
Prepare idea of contract
Director Director
Natural language
74
Advantage of layering systems
75
Example of layers
Cassette
Sound system
All functionalities are put
Player on the same box
Speaker
When we want to upgrade:
Amplifier
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
Upgrade the whole box
76
Reference models
OSI
TCP/IP
77
OSI - Open System Interconnection: 7 layers
78
The main functionality of each layers
79
Models OSI and TCP/IP
In the TCP/IP model of the Internet, the
functionalities of 3 first layers are combined in
a single layer.
Application layer
Application
Presentation layer HTTP, FTP, SMTP…
Session layer
Transport layer TCP UDP
Network layer IP
Datalink layer Network Interface
Physical layer Physical
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
80
Layering model of the Internet
HTTP HTTP
TCP TCP
IP IP IP
81
Data Encapsulation
Packaging
Decoration
Put address
address address
82
Data Encapsulation
Protocol N-1
HN-1 Layer (N-1) Layer (N-1) HN-1
...
...
addr.
H2 ... Layer 2 Layer 2 H2 ...
Sender
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
Receiver
83
PDU: Protocol Data Unit
Protocol N+1
Layer (N+1) (N+1) PDU
Service interface
Protocol N
Layer (N) (N) PDU HN
Service interface
Protocol N-1
addr.
Layer (N-1) (N-1) PDU HN HN-1
84
SAP: Service Access Point
Protocol 1
Client 1 Server 1
Client 2 Protocol 1 Server 2
Server 3 Protocol 1 Client 3
Application
SAP SAP
transport TCP/UDP
TCP/UDP TCP/UDP
protocol
Internet
SAP: is a conceptual location at which one OSI layer can request the services
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
of another OSI layer 85
The protocols TCP/IP and encapsulation process
• At sender
• Each layer add control information to the header of packet
and transfer to the lower layer.
• At receiver
• Each layer process packet according to the information of
the header, then remove the corresponding header and
deliver the remaining data to the upper layer.
Ex:HTTP header
Application Application
Data Data
TCP header TCP TCP
IP header IP IP
Physical Physical
Signal TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
Sender Receiver 86
Protocol stack and encapsulation
FTP FTP
TCP TCP
IP IP IP IP
Dữ liệu - payload
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
87
Protocol stack and encapsulation
FTP FTP
TCP TCP
IP IP IP IP
88
Protocol stack and encapsulation
FTP FTP
TCP TCP
IP IP IP IP
89
Protocol stack and encapsulation
FTP FTP
TCP TCP
IP IP IP IP
90
Protocol stack and encapsulation
FTP FTP
TCP TCP
IP IP IP IP
91
Protocol stack and encapsulation
FTP FTP
TCP TCP
IP IP IP IP
92
Protocol stack and encapsulation
FTP FTP
TCP TCP
IP IP IP IP
93
Protocol stack and encapsulation
FTP FTP
TCP TCP
IP IP IP IP
94
Protocol stack and encapsulation
FTP FTP
TCP TCP
IP IP IP IP
95
Protocol stack and encapsulation
FTP FTP
TCP TCP
IP IP IP IP
96
Protocol stack and encapsulation
FTP FTP
TCP TCP
IP IP IP IP
97
Protocol stack and encapsulation
FTP FTP
TCP TCP
IP IP IP IP
98
Protocol stack and encapsulation
FTP FTP
TCP TCP
IP IP IP IP
99
Protocol stack and encapsulation
FTP FTP
TCP TCP
IP IP IP IP
Dữ liệu - payload
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
100
Summary: Advantage of layering architecture
• Without layering:
• Any change in the system requires changing the whole
systems.
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
101
Unicast, Multicast, Broadcast protocols
• Unicast protocol: control data to send to one
destination node
• Multicast protocol: control data to send to
multiple destination nodes
• Broadcast protocol: control data to send to all
nodes
102
Identification in the
Internet
MAC Address
IP Address
Port number
103
Identification
104
Identification
• Example of hierarchy
• Address
• 1 Dai Co Viet street, Hai Ba Trung district, Ha Noi Hanoi
• Telephone number
• +84-(4) 868-08-96 Hai Ba Trung
Dai Co Viet
So 1
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
105
Identification in the Internet and the relationship between layers
106
Addressing in the Datalink layer
HEX
BIN
00:11:24:79:8e:82
00000000 00010001 00100100 01111001 10001110 10000010
107
Addressing in the Internet
• IP address
• Used in IP-Internet Protocol (network layer)
• Value depends on the networks. Each network
interface card should be assigned an IP address.
• Used for identifying a machine in an IP network,
example:
• 133.113.215.10 (ipv4)
• 2001:200:0:8803::53 (ipv6)
108
Addressing in transport layer
• Port number
• On each machine, there may be several applications running.
• Applications of the same machine are distinguished by port
number.
• An application instance in the internet is identified by the IP
address of the host and port number on which it runs
• Similar to the address of a room in a building
• Buiding address: B1 Building, 1 Dai Co Viet, Ha Noi => similar
to IP address
• Room number 325 => Similar to port number
• E.g. HTTP runs on port 80, FTP runs on ports 20, 21 …
• http://bidv.vn:81
109
Addressing in Application layer
• Domain Name
(FQDN: Fully Qualified Domain Name)
• Domain name is the name given to a
computer or a network using alphabet and
numbers
• www.keio.ac.jp
• soict.hust.edu.vn
110
Domain name space
.keio.ac.jp
pc24.cs.keio.ac.jp
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
111
Domain name and IP address
203.162.7.194 www.hedspi.hut.edu.vn
www.hust.edu.vn
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology
202.47.142.40 112
Conversion/resolution of address
User
lConcept
l Mechanism finding address IP from a domain name
and vice versa.
l There is no mathematical formula for this conversion.
lDomain name server (DNS)
l Store the mapping of IP address and Domain name of
the same host in a database
l Answer requests to resolve IP addresses or domain
names from users.
l Widely used in the Internet
114
Example
User
(1)
(2) www.hedspi.hut.edu.vn
www.hust.edu.vn
DNS Web browser
(3)
(4) 202.47.142.40
202.47.142.40
Web server
115
Nslookup tools on Windows, Linux
• nslookup www.soict.hust.edu.vn
• Conversion “name⇔ IP address”
C:\>nslookup www.soict.hust.edu.vn
Server:
Address: 192.168.1.1
Non-authoritative answer:
Name: www.soict.hust.edu.vn
Address: 202.191.56.68
C:\>
116
ARP Conversion of Mac and IP addresses
32bit IP address
ARP RARP
117
Example: ARP table (on Windows)
MAC address
118
Summary
lLayer architecture
lWhy layering
lModel TCP/IP vs. Model OSI
lEncapsulation, PDU. SAP
lAddressing on Internet
lAdress IP, MAC, domain name, port
lAddress conversion
119
Quizz
120