Introduction to Computer Networking Concepts
Introduction to Computer Networking Concepts
1-2
wired
satellite
links transmission rate:
bandwidth
Protocol Protocol
human protocols: network protocols: a human protocol and a computer network protocol:
“what’s the time?” computers (devices)
“I have a question” rather than humans
introductions all communication activity Hi TCP connection
in Internet governed by request
protocols Hi TCP connection
response
Rules for: Got the
protocols define format, order of time? Get [Link]
… specific msgs sent
messages sent and received 2:00
… specific actions taken <file>
when message among network entities, and
time
received, or other actions taken on message
events transmission, receipt
Q: other human protocols?
1-7 1-8
Chapter 1: outline Look at network structure
mobile network
1.1. Basic concepts
1.1.1. The Internet network edge:
national/global ISP
1.1.2. Protocol hosts: clients and servers
1.1.3. The network edge: access networks, physical media servers often in data
1.1.4. The network core: packet switching, circuit switching, centers home
network
internet structure local/regional ISP
access networks, physical
1.2. Delay, Packet loss and Throughput media: wired, wireless
1.3. Protocol layers and Service models communication links
1.3.1. Layered architecture
1.3.2. Data encapsulation network core:
1.4. Network security interconnected routers
1-9 1-10
Access networks and physical media Access network: digital subscriber line (DSL)
… …
Enterprise link to
ISP (Internet)
Enterprise router
to/from headend or
central office Ethernet Enterprise mail,
often combined switch
in single box web servers
1-19 1-20
Links: Physical media Chapter 1: outline
1-21 1-22
mesh of interconnected
national/global ISP
routers
packet-switching: hosts
break application-layer
messages into packets
forward packets from one takes L/R seconds to transmit one-hop numerical
router to the next, across local/ (push out) L-bit packet into link example:
regional ISP
links on path from source at R bps L = 10 Kbits
to destination store and forward: entire packet R = 100 Mbps
must arrive at router before it one-hop transmission
each packet transmitted at
can be transmitted on next link delay = 0.1 msec
full link capacity
end-end delay = 2L/R (assuming
zero propagation delay)
1-23 1-24
Packet-switching: queueing delay, loss Packet-switching: queueing delay, loss
1-25 1-26
Example: Example:
FDM
4 users TDM 4 users
frequency
frequency
time
time
Frequency Division Multiplexing (FDM)
Time Division Multiplexing (TDM)
optical, electromagnetic frequencies divided into
(narrow) frequency bands time divided into slots
each call allocated its own band, can transmit at max each call allocated periodic slot(s), can transmit at
rate of that narrow band maximum rate of (wider) frequency band (only) during
its time slot(s)
1-29 1-30
Packet switching versus circuit switching Packet switching versus circuit switching
packet switching allows more users to use network! is packet switching a “winner?”
great for bursty data
example: resource sharing
1 Mb/s link simpler, no call setup
N
each user: users excessive congestion possible: packet delay and loss due to
• 100 kb/s when “active” 1 Mbps link buffer overflow
• active 10% of time protocols needed for reliable data transfer, congestion control
circuit-switching: Q: How to provide circuit-like behavior with packet-switching?
10 users bandwidth guarantees needed for audio/video apps
packet switching: Q: how did we get value 0.0004? still an unsolved problem
with 35 users, probability >
Q: what happens if > 35 users ? Q: human analogies of reserved resources (circuit switching)
10 active at same time is
less than .0004 * versus on-demand allocation (packet-switching)?
1-31 1-32
Internet structure: network of networks Internet structure: network of networks
Question: given millions of access ISPs, how to connect them
End systems connect to Internet via access ISPs together?
(Internet Service Providers) access access
net net
Residential, company and university ISPs access
net
access
access
So that any two hosts can send packets to each other access
net
net
access
net
access
net
access access
net access net
net
access access
net net
access access
net net
access access
net net
access access
net net
access access access access
net access net net access net
net net
Internet structure: network of networks Internet structure: network of networks
But if one global ISP is viable business, there will be competitors But if one global ISP is viable business, there will be competitors
…. …. which must be interconnected
access access access access
Internet exchange point
net net net net
access access
net net
access access
access net access net
net net
access
access
net access
IXP access
net
net
ISP A net
ISP A
access
ISP C access
ISP C
net net
access access
net net
access
IXP access
access
IXP access
net net
net
ISP A net
ISP A
Content provider network
access IXP access access IXP access
net ISP B net net ISP B net
access
ISP C access
ISP B
net net
access access
net net
access
net regional net access
net regional net
access access
net net
access access access access
net access net net access net
net net
Internet structure: network of networks An example of Tier-1 ISP: Sprint
to/from backbone
IXP IXP IXP
peering
… …
Regional ISP Regional ISP
…
…
…
to/from customers
access access access access access access access access
ISP ISP ISP ISP ISP ISP ISP ISP
1-43 1-44
Four sources of packet delay Four sources of packet delay
transmission transmission
A propagation A propagation
B B
nodal nodal
processing queueing processing queueing
dnodal = dproc + dqueue + dtrans + dprop dnodal = dproc + dqueue + dtrans + dprop
dproc: nodal processing dqueue: queueing delay dtrans: transmission delay: dprop: propagation delay:
check bit errors time waiting at output link for L: packet length (bits) d: length of physical link
determine output link transmission R: link bandwidth (bps) s: propagation speed in medium
typically < msec depends on congestion level dtrans = L/R (~2x108 m/sec)
of router dtrans and dprop dprop = d/s
very different
1-45 1-46
cars “propagate” at time to “push” entire suppose cars now “propagate” at 1000 km/hr
100 km/hr caravan through toll booth and suppose toll booth now takes one min to service a car
toll booth takes 12 sec to onto highway = 12*10 =
Q: Will cars arrive to 2nd booth before all cars serviced at first
service car (bit transmission 120 sec
booth?
time) time for last car to
car~bit; caravan ~ packet propagate from 1st to 2nd A: Yes! after 7 min, 1st car arrives at second booth; three
Q: How long until caravan is toll both: cars still at 1st booth.
lined up before 2nd toll 100km/(100km/hr)= 1 hr
booth? A: 62 minutes
1-47 1-48
Packet queueing delay (revisited) Real Internet delays and routes
average queueing
R: link bandwidth (bps) traceroute program: provides delay measurement
delay
L: packet length (bits) from source to router along end-end Internet path
a: average packet arrival towards destination. For all i:
rate sends three packets that will reach router i on path
towards destination
traffic intensity
= La/R router i will return packets to sender
La/R ~ 0: avg. queueing delay small La/R ~ 0
sender times interval between transmission and reply.
La/R -> 1: avg. queueing delay large
La/R > 1: more “work” arriving 3 probes 3 probes
than can be serviced, average delay infinite!
3 probes
La/R -> 1
1-50
throughput: rate (bits/time unit) at which bits Rs < Rc What is average end-end throughput?
transferred between sender/receiver
instantaneous: rate at given point in time
Rs bits/sec Rc bits/sec
average: rate over longer period of time
Rs bits/sec Rc bits/sec
server,
server withbits
sends linkpipe
capacity
that can carry linkpipe
capacity
that can carry
file of into
(fluid) F bitspipe Rs bits/sec
fluid at rate Rc bits/sec
fluid at rate bottleneck link
to send to client Rs bits/sec) Rc bits/sec)
link on end-end path that constrains end-end throughput
1-53 1-54
1-57 1-58
1-59 1-60
Layered Internet protocol stack ISO/OSI reference model
source Encapsulation
message M application
Chapter 1: outline
segment Ht M transport
datagram Hn Ht M network 1.1. Basic concepts
frame Hl Hn Ht M link
1.1.1. The Internet
physical
1.1.2. Protocol
link
physical
1.1.3. The network edge: access networks, physical media
1.1.4. The network core: packet switching, circuit switching,
switch
internet structure
1.2. Delay, Packet loss and Throughput
destination Hn Ht M network
1.3. Protocol layers and Service models
Hl Hn Ht M link 1.3.1. Layered architecture
M application Hn Ht M
Ht M transport physical 1.3.2. Data encapsulation
Hn Ht M network 1.4. Network security
Hl Hn Ht M link router
1.5. History
physical
1-63 1-64
Network security Bad guys: put malware into hosts via Internet
Internet not originally designed with (much) security malware can get in host from:
in mind virus: self-replicating infection by
original vision: “a group of mutually trusting users receiving/executing object (e.g., e-mail
attached to a transparent network” attachment)
Internet protocol designers playing “catch-up” worm: self-replicating infection by passively
security considerations in all layers! receiving object that gets itself executed
We now need to think about : spyware malware can record keystrokes, web sites
how bad guys can attack computer networks visited, upload info to collection site
how we can defend networks against attacks infected host can be enrolled in botnet, used for
how to design architectures that are immune to attacks spam. DDoS attacks.
1-65 1-66
Bad guys: attack server, network infrastructure Bad guys can sniff packets
Denial of Service (DoS): attackers make resources packet “sniffing”:
(server, bandwidth) unavailable to legitimate traffic by
broadcast media (shared ethernet, wireless)
overwhelming resource with bogus traffic
promiscuous network interface reads/records all packets
(e.g., including passwords!) passing by
1. select target
2. break into hosts around A C
the network (see
botnet)
3. send packets to target src:B dest:A payload
target
from compromised hosts B
1-69 1-70
1-71 1-72
Internet history Internet history
1972-1980: Internetworking, new and proprietary nets 1980-1990: new protocols, a proliferation of networks
1-73 1-74
References
1-79