3 - switching and performance
3 - switching and performance
! The core
! The edge
! The communication links
SUNY AT BUFFALO; CSE489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 1
This Lecture
SUNY AT BUFFALO; CSE489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 2
How is data transferred through a network?
SUNY AT BUFFALO; CSE489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 3
1. Circuit Switching
SUNY AT BUFFALO; CSE489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 4
Sharing a Link: Multiplexing
! To combine multiple signals (analog or digital) for
transmission over a single line or medium.
! Multiplexing technologies:
! Frequency Division Multiplexing (FDM) : each signal is
assigned a different frequency range (e.g. FM radio).
! Time Division Multiplexing (TDM) : each signal is
assigned a fixed time slot in a “fixed” rotation.
! Statistical Time Division Multiplexing (STDM): time
slots are assigned to signals dynamically to make better
use of bandwidth.
! Wavelength Division Multiplexing (WDM) : each signal
is assigned a particular wavelength; used in optical fiber.
SUNY AT BUFFALO; CSE 489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 5
Circuit Switching: FDMA and TDMA
Example:
FDMA
4 users
frequency
time
TDMA
frequency
time
SUNY AT BUFFALO; CSE 489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 6
2. Packet Switching
SUNY AT BUFFALO; CSE 489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 7
Packet Switching: Statistical Multiplexing
Packets
SUNY AT BUFFALO; CSE 489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 8
Packet Switching vs. Circuit Switching: In Theory
! Packet Switching
! CS wastes bandwidth when data is sporadic
! PS is statistically more efficient and less costly
! CS takes time to establish the circuit
! PS is simpler to implement
! Side Question: what about packet sizes? Small or Large?
! Circuit Switching
! PS is not suitable for real time application
! A sudden surge of traffic could overflow router’s buffers
! PS could deliver packets in wrong order
! CS is transparent (carrier does not need to know packet
format)
SUNY AT BUFFALO; CSE 489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 12
Common View of the Telco Network (CS)
brain (smart)
SUNY AT BUFFALO; CSE 489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 14
PS vs CS in Practice
SUNY AT BUFFALO; CSE 489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 15
IP Dominates Global Communications? NO
SUNY AT BUFFALO; CSE 489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 16
PS is more efficient than CS? Yes, but …
! More efficient means better utilized (both in
transmission lines and switching equipments)
! True for networks with scarce bandwidths
! However, does it really matter today?
! Average utilization levels
! ATT switched voice (33%), Internet backbones (15%)
! Private lines networks (3-5%), LANs (1%)
! Various Reasons
! Internet traffic is asymmetric and bursty, links are symmetric
! Operators tend to over-provision because PS networks behave very
badly once congested (oscillation, routing loops, black holes,
disconnections, etc)
! Over-provision to ensure low delay (satisfy customers), it’s more
economical to add capacity in large increments
SUNY AT BUFFALO; CSE 489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 17
PS is more robust than CS? Not necessarily …
! Downtime per year:
! Internet: 471min [Labovitz et al. 2000]
! Phone networks: 5min [Kuhn 1997]
! Recover time
! Internet: median 3min, frequently > 15min (due to slow
BGP convergence time)
! SONET/SDH rings: < 50ms (via pre-computed backup
paths)
! Routing in the Internet
! Routing info affected by user traffic, suffering from
congestion (in-band routing)
! Routing computation complex # overload processors
! Probability of mis-configuring a router is high, one
router’s error affect the whole network
SUNY AT BUFFALO; CSE 489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 18
IP (and PS) is simpler?
! Number of lines of codes in
! Typical Tel. Switches: 3 millions, extremely complex switch: 16M
! Cisco’s IOS: 8 millions [more susceptible to attacks]
! Routers crash frequently, takes long time to reboot
! Hardware
! A line card of a router: OC192 POS has 30M gates + 1 CPU + 300MB
packet buffers + 2MB forwarding table + 10MB other state memory
! Current trend makes routers more complex (multicast, QoS, access
control, security, VPN, etc) – violation of E2E
! A line card of a typical transport switch: ! number of gates, no CPU,
no forwarding table, one on-chip state memory
! Density: highest transport switch capacity = 4 x highest
router capacity, at 1/3 the price
! WDM, DWDM push the difference further
! IP’s “simplicity” does not scale!
SUNY AT BUFFALO; CSE 489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 19
QoS can be realized over IP?
! Belief: over-provisioning allows low e2e delay #
guaranteeing QoS is possible
SUNY AT BUFFALO; CSE 489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 20
Other measures
! Scalability
! CS scales more or less linearly
! When data rates increase, routers can’t keep up
! Flexibility
! IP is more flexible
! Lead to high costs of end-systems
! Need more sophisticated users [large organizations need a
room of sys admin, just 1 phone operator]
SUNY AT BUFFALO; CSE 489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 21
This Lecture
SUNY AT BUFFALO; CSE489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 22
How do loss and delay occur?
Packets queued in router buffers
! packet arrival rate to link exceeds output link capacity
! packets queued, wait for turn
B
packets queueing (delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
SUNY AT BUFFALO; CSE489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 23
Four sources of packet delay
! 1. nodal processing:
! check bit errors
determine output link
$ 2. queueing
!
transmission
A propagation
B
nodal
processing queueing
SUNY AT BUFFALO; CSE489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 24
Delay in packet-switched networks
3. Transmission delay:
! R=link data-rate (bps)
4. Propagation delay:
! L=packet length (bits)
! d = length of physical link
! time to send bits into link = L/R
! s = propagation speed in
B
nodal
processing queueing
SUNY AT BUFFALO; CSE489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 25
Caravan analogy
100 km 100 km
ten-car toll toll
caravan booth booth
! Time to “push” entire
! cars “propagate” at
caravan through toll booth
100 km/hr
onto highway = 12*10 =
! toll booth takes 12 sec to 120 sec
service car (transmission time)
! Time for last car to
! car~bit; caravan ~ packet propagate from 1st to 2nd
! Q: How long until caravan is toll both: 100km/(100km/
lined up before 2nd toll booth? hr)= 1 hr
! A: 62 minutes
SUNY AT BUFFALO; CSE489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 26
Caravan analogy (more)
100 km 100 km
ten-car toll toll
caravan booth booth
SUNY AT BUFFALO; CSE489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 27
Nodal delay
3 probes 3 probes
3 probes
SUNY AT BUFFALO; CSE489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 30
Packet loss
! queue (aka buffer) preceding link in buffer has finite
capacity
! packet arriving to full queue dropped (aka lost)
! lost packet may be retransmitted by previous node,
by source end system, or not at all
buffer
(waiting area) packet being transmitted
A
B
packet arriving to
full buffer is lost
SUNY AT BUFFALO; CSE489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 31
Throughput
! throughput: rate (bits/time unit) at which bits
transferred between sender/receiver
! instantaneous: rate at given point in time
! average: rate over longer period of time
server,
server sendswith link
bits pipe capacity
that can carry link that
pipe capacity
can carry
file of
(fluid) F pipe
into bits Rs bits/sec
fluid at rate Rfluid
c bits/sec
at rate
to send to client Rs bits/sec) Rc bits/sec)
SUNY AT BUFFALO; CSE489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 32
Throughput (more)
! Rs < Rc What is average end-end throughput?
Rs bits/sec Rc bits/sec
Rs bits/sec Rc bits/sec
bottleneck link
link on end-end path that constrains end-end throughput
SUNY AT BUFFALO; CSE489/589 – MODERN NETWORKING CONCEPTS; Fall 2010; INSTRUCTOR: HUNG Q. NGO 33
Throughput: Internet scenario
! per-connection end-
end throughput is Rs
Rs Rs
Rc Rc
! in practice: Rc or Rs is Rc
often bottleneck