Chapter 1 - Introduction To Computer Networks
Chapter 1 - Introduction To Computer Networks
INTRODUCTION TO
COMPUTER NETWORKS
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
OUTLINE
2
1. ABOUT THE COURSE
Faculty of Information Technology
PhD. Le Tran Duc
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
REFERENCES
4
2. WHAT’S THE
INTERNET?
Faculty of Information Technology
PhD. Le Tran Duc
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
wireless
laptop
smartphone
• Communication links
• fiber, copper, radio, satellite
wireless
• transmission rate: bandwidth links
wired
links
6
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
7
3. WHAT’S THE
PROTOCOL
Faculty of Information Technology
PhD. Le Tran Duc
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
WHAT’S A PROTOCOL?
• Human protocols: • Network protocols:
- “what’s the time?” - machines rather than humans
- “I have a question” - all communication activity in
- introductions Internet governed by protocols
protocols define format, order of messages sent and received among network entities, and actions taken on
message transmission, receipt
9
4. NETWORK STRUCTURE
• Network edge:
o hosts: clients and servers
o servers often in data centers
• Access networks, physical media:
o wired, wireless communication links
• Network core: End-system
o interconnected routers interaction
o network of networks
11
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
ACCESS NETWORK
12
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
PHYSICAL MEDIA
13
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
14
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
15
5. NETWORK CORE
17
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
routing algorithm
18
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
19
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
PACKET-SWITCHING: STORE-AND-FORWARD
TRANSMISSION
• Takes L/R seconds to transmit One-hop numerical example: End-to-end delay if a path has N links
(push out) L-bit packet into link at • L = 7.5 Mbits (R rate/link) (or N-1 routers):
R bps • R = 1.5 Mbps
• Store and forward: entire packet • one-hop transmission delay =
must arrive at router before it can 5 sec
be transmitted on next link
• end-end delay = 2L/R (assuming
20
zero propagation delay)
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
• Delay:
o Store-and-forward delays
o Queuing delays
o Propagation delays
21
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
CIRCUIT SWITCHING
End- to-end connection between the two hosts
End-end resources allocated to, reserved for
“call” between source & dest:
• in diagram, each link has four circuits.
- call gets 2nd circuit in top link and 1st circuit
in right link.
• dedicated resources: no sharing
- circuit-like (guaranteed) performance
- reserves a constant transmission rate (a
fraction of link’s trans. capacity)
• circuit segment idle if not used by call (no
sharing) - Four circuit switches are interconnected by four links
- Each of these links has four circuits
• commonly used in traditional telephone
networks 22
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
23
6. NETWORK
TOPOLOGY
Faculty of Information Technology
PhD. Le Tran Duc
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
NETWORK TOPOLOGY
• Network topology is the arrangement of the elements (links, nodes, etc.) of a communication network.
• There are two approaches to network topology: physical and logical.
o Physical network topology refers to the physical connections and interconnections between nodes and the
network—the wires, cables, and so forth.
o Logical network topology refers to the conceptual understanding of how and why the network is arranged
the way it is, and how data moves through it.
25
7. NETWORK
PERFORMANCE
Faculty of Information Technology
PhD. Le Tran Duc
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
B
nodal
processing queueing
B
nodal
processing queueing
Find the end-to-end delay (including the transmission delays and propagation delays on each of the three links,
but ignoring queueing delays and processing delays) from when the left host begins transmitting the first bit of a
packet to the time when the last bit of that packet is received at the server at the right. The speed of light
propagation delay on each link is 3x10**8 m/sec. Note that the transmission rates are in Mbps and the link
distances are in Km. Assume a packet length of 4000 bits. Give your answer in milliseconds. 29
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
average queueing
at which bits are pushed out of
delay
When is the queuing delay large the queue
and when is it insignificant?
Depends on: • L: packet length (bits)
- Arriving rate at the queue • a: average packet arrival rate
- Transmission rate of the link
- Nature of the arriving traffic La: average rate at which bits
traffic intensity
(traffic arriving pattern) arrive at the queue = La/R
• La/R ~ 0: avg. queueing delay small La/R ~ 0
• La/R -> 1: avg. queueing delay large
• La/R > 1: more “work” arriving
than can be serviced, average delay infinite!
• La/R < 1: nature of the arriving traffic affects the queuing
delay
Design your system so that the traffic intensity is no greater than 1. La/R -> 1 30
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
PACKET LOSS
buffer
(waiting area) packet being transmitted
A
B
packet arriving to
full buffer is lost
31
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
THROUGHPUT
• throughput: rate (bits/time unit) at which bits transferred between sender/receiver
o instantaneous: rate at given point in time
o average: rate over longer period of time
32
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
THROUGHPUT
• Rs < Rc What is average end-end throughput?
Rs bits/sec Rc bits/sec
Rs bits/sec Rc bits/sec
bottleneck link
33
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
THROUGHPUT: EXERCISE
Consider the scenario shown below, with four different servers
connected to four different clients over four three-hop paths.
The four pairs share a common middle hop with a transmission
capacity of R = 300 Mbps. The four links from the servers to the
shared link have a transmission capacity of RS = 70 Mbps. Each
of the four links from the shared middle link to a client has a
transmission capacity of RC = 80 Mbps per second. You might
want to review Figure 1.20 in the text before answering the
following questions:
1. What is the maximum achievable end-end throughput (in
Mbps) for each of four client-to-server pairs, assuming that
the middle link is fair-shared (i.e., divides its transmission
rate equally among the four pairs)?
2. Which link is the bottleneck link for each session?
3. Assuming that the senders are sending at the maximum
rate possible, what are the link utilizations for the sender
links (RS), client links (RC), and the middle link (R)?
35
8. INTERNET
STRUCTURE
Faculty of Information Technology
PhD. Le Tran Duc
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
37
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
access
… access
net
access
net …
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
38
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
access
… access
net
access
net …
net
access
access
net
… … net
access
access net
net
…
to each other directly doesn’t
…
access access
…
net
scale: O(N2) connections. net
access
net
access
net
access
net
access
…
… net
access access …
net access net
net
39
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
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
40
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
access
IXP access
net
net
ISP A
…
…
access
net
IXP ISP B access
net
access
net
ISP C
access
net
access
net
peering link
access
… net
access access …
net access net
net
41
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
access
IXP access
net
net
ISP A
…
…
access
net
IXP ISP B access
net
access
net
ISP C
access
access
peering link net
42
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
access
IXP access
net
net
ISP A
…
…
Content provider network
access
net
IXP ISP B access
net
access
net
ISP C
access
access
peering link net
43
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
44
9. OSI MODEL &
TCP/IP MODEL
Faculty of Information Technology
PhD. Le Tran Duc
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
49
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
50
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
51
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
WIRESHARK
application
packet (www browser,
OS
packet Transport (TCP/UDP)
52
FACULTY OF INFORMATION TECHNOLOGY
PhD. LE TRAN DUC
ENCAPSULATION
53