Traffic Models in High-Speed Networks
Traffic Models in High-Speed Networks
August 17, 2005 (week 2/3) 1 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 2
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 3 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 4
1
What this requires Traffic management
For video Set of policies and mechanisms that allow a
sustained bandwidth of at least 64 kbps
network to efficiently satisfy a diverse range of
low loss rate
service requests
For voice
sustained bandwidth of at least 8 kbps Tension is between diversity and efficiency
low loss rate Traffic management is necessary for providing
For interactive communication Quality of Service (QoS)
low delay (< 100 ms one-way)
Subsumes congestion control (congestion == loss of
For playback
efficiency)
low delay jitter
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 7 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 8
2
Some economic principles Principles applied
A single network that provides heterogeneous QoS is A single wire that carries both voice and data is more
better than separate networks for each QoS efficient than separate wires for voice and data
unused capacity is available to others ADSL
Lowering delay of delay-
delay-sensitive traffic increased IP Phone
welfare Moving from a 20% loaded10 Mbps Ethernet to a 20%
can increase welfare by matching service menu to user loaded 100 Mbps Ethernet will still improve social
requirements welfare
BUT need to know what users want (signaling) increase capacity whenever possible
3
Exponential/Heavy Tail Distribution Packet Traffic Model for Voice
Exponential Distribution: P(X>x) = e-x/3 A single voice source is well represented by a two state
Pareto Distribution: P(X>x) = x-1.5 process: an alternating sequence of active or talk spurt,
Means of both distributions are 3 follow by silence period
Talk spurts typically average 0.4 1.2s
Silence periods average 0.6 1.8s
Talk spurt intervals are well approximated by exponential
distribution, but mot true for silence period
Silence periods allow voice packets to be multiplexed
For more detail description, take a look at Chapter 3 of
Broadband Integrated Networks, by Mischa Schwartz,
1996.
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 13 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 14
connection duration means that a few calls are responsible for most of the traffic
these calls must be well-
well-managed
# bytes transferred
also means that even aggregates with many calls not be smooth
packet inter-
inter-arrival distribution
Little consensus on models
But two important features
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 15 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 16
4
Traffic classes Traffic classes - details
Networks should match offered service to source A basic division: guaranteed service and best effort
requirements (corresponds to utility functions) like flying with reservation or standby
Telephone network offers one single traffic class Guaranteed-
Guaranteed-service
The Internet offers little restriction on traffic behavior utility is zero unless app gets a minimum level of service
quality: bandwidth, delay, loss
Example: telnet requires low bandwidth and low delay open-
open-loop flow control (e.g. do not send more than x Mbps)
utility increases with decrease in delay with admission control
network should provide a low-
low-delay service e.g. telephony, remote sensing, interactive multiplayer games
or, telnet belongs to the low-
low-delay traffic class Best-
Best-effort
send and pray
closed-
closed-loop flow control (e.g. TCP)
e.g. email, ftp
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 17 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 18
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 19 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 20
5
ATM Forum GS subclasses ATM Forum BE subclasses
Constant Bit Rate (CBR) Available Bit Rate (ABR)
constant, cell-
cell-smooth traffic users get whatever is available
mean and peak rate are the same zero loss if network signals (in RM cells) are obeyed
e.g. telephone call evenly sampled and uncompressed no guarantee on delay or bandwidth
constant bandwidth, variable quality Unspecified Bit Rate (UBR)
Variable Bit Rate (VBR) like ABR, but no feedback
long term average with occasional bursts no guarantee on loss
try to minimize delay presumably cheaper
can tolerate loss and higher delays than CBR
e.g. compressed video or audio with constant quality, variable
bandwidth
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 21 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 22
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 23 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 24
6
Some points to ponder Reading
The only thing out there is CBR (example?) and Reference
asynchronous bulk (example?)! Gallager, Data Networks, 2nd
Bertsekas and Gallager,
These are application requirements. There are Edition, Chapter 3: Delay Models in Data Network,
also organizational requirements (how to Prentice Hall
provision QoS end-
end-to-
to-end)
Users needs QoS for other things too!
billing
reliability and availability
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 25 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 26
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 27 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 28
7
Multiplexing of Traffic Littles Theorem
Traffic engineering involves the sharing of resource/link by (), service rate (
Given customer arrival rate ( ()
several traffic streams
Time-
Time-Division Multiplexing (TDM) What is the average number of customers (N(N) in the system
Divide transmission into time slots and what is the average delay per customer (T
(T) ?
Frequency Division Multiplexing (FDM) Let
Divide transmission into divide frequency channels
For TDM/FDM, if there is no traffic in a data stream, N(t)
N(t) = # of customers at time t
bandwidth is wasted (t)
(t) = # of customers arrived in the interval [0,t]
In statistical multiplexing, data from all traffic streams are Ti = time spent in system by ith customer
merged into a single queue and transmitted in a FIFO manner 1 t
t 0
Statistical multiplexing Nt, typical # of customers up to time t is N ( )d
has smaller delay per packet than TDM/FDM
can have larger delay variance
N = lim N t = lim t T = lim Tt
Results can be shown using queuing analysis
t > t > t >
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 29 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 30
N()
Arrival, ()
T2 Departure, ()
T1
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 31 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 32
8
Littles Theorem (contd) Example
Littles Theorem is very general and holds for BG, Example 3.1
almost every queuing system that reaches L is the arrival rate in a transmission line
statistics equilibrium in the limit NQ is the average # of packets in queue (not under
transmission)
W is the average time spent by a waiting packet
(exclude packet being transmitted)
From LT, NQ = W
Furthermore, if X is the average transmission time,
= X
where is the lines utilization factor (proportion of time
line is busy)
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 33 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 34
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 35 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 36
9
Inter-arrival Time Exponential Distribution
Number of events in time interval t has a Poisson Distribution
Probability Density
Distribution p{ } = e
Inter-arrival time
Cumulative Density P{ s} = 1 e s
Distribution
Based on the definition of Poisson process, what is the
inter-
inter-arrival time between arrivals? 1
The distribution of inter-
inter-arrival time, t, can be Mean E{ } =
computed as P{A(t)
P{A(t) = 0}
Using only Property 2, it can be shown that inter-
inter-arrival Variance
times are independent and exponentially distributed 1
Var{ } =
with parameter 2
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 37 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 38
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 39 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 40
10
Applications of Poisson Process Basic Queuing Model
Poisson Process has a number of nice properties that
make it very useful for analytical and probabilistic
analysis N
Has been used to model a large number of physical
occurrences [KLE75] Departure Process
Number of soldiers killed by their horse (1928) Exponential with mean 1/
Sequence of gamma rays emitting from a radioactive particle M/M/1
Call holding time of telephone calls Number of servers
In many cases, the sum of large number of independent Arrival Process
stationary renewal process will tend to be a Poisson
process Memoryless (or Poisson process with rate )
Default N is infinite
[KLE75] L. Kleinrock,
Kleinrock, Queuing Systems, Vol I, 1975. D - deterministic, G - General
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 41 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 42
Pn = nP0
Model queue as a discrete time Markov chain
Let Pn be the steady state probability that there are n
customers in the queue
Balance equation: at equilibrium, the probability a
transition out of a state is equal to the probability of a
transition into the same state
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 43 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 44
11
Derivation of M/M/1 Model Properties of M/M/1 Queue
Pn = nP0 N = / (1 ) = / ( )
n Pn = n nP0 = P0 / (1 ) = 1 ( < 1) can be interpreted as the utilization of the queue
System is unstable if > 1 or > as N is not bounded
P0 = (1 )
In M/M/1 queue, there is no blocking/dropping, so
Pn = n (1 )
waiting time can increase without any limit
Average Number of Customers in System, N Buffer space is infinite, so customers are not rejected
N = n nPn = / (1 ) = / ( ) But there are infinite number of customers in front
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 45 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 46
N 1
T= = =
(1 )
1 1
W= =
Utilization
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 47 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 48
12
Example Example
BG, Example 3.8 (Statistical Multiplexing vs. BG, Example 3.9
TDM) Consider k TDM/FDM channels
(,)) or
Allocate each Poisson stream its own queue (, From previous example, merging k channels into a
(k,k
shared a single faster queue (k ,k)? single (k times faster) will keep the same N but
Increase and or a queue by a constant k > 1
reduces average delay by k
= k/k
/k = / (no change in utilization) So why use TDM/FDM ?
N = / 1
1 = / (no change)
(no change) Some traffic are not Poisson. For example, voice traffic
What changes? are regular with one voice packet every 20ms
1/k( )
T = 1/k( Merging multiplexing traffic streams into a single channel
Average transmission delay decreases by a factor k incurs buffering, queuing delay and jitter
Why?
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 49 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 50
2 3 (m1) mm n
m m
p n = p0 ,n > m
m!
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 51 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 52
13
Derivation of M/M/m Model Extension to M/M/m/m Queue
pn = 1
There are m servers and m buffer size
This is no buffering
Calls are either served or rejected, calls rejected are lost
n =0
Common model for telephone switching
In order to compute Pn, P0 must be 0 1 2 m-1 m
computed first.
2 3 (m1) m
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 53 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 54
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 55 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 56
14
What is an Erlang? Erlang B Table
An Erlang is a unit of telecommunications traffic measurement
and represents the continuous use of one voice path
Average number of calls in progress Capacity (Erlangs
(Erlangs)) for grade of service of
Computing Erlang # of P=0.02 P=0.01 P=0.005 P=0.001
For a given grade of
Call arrival rate: Servers (N) service, a larger capacity
system is more efficient
1/, call departure rate =
Call Holding time is: 1/ 1 0.02 0.01 0.005 0.001
(statistical multiplexing)
System load in Erlang is / 5 1.66 1.36 1.13 0.76
Example: 10 5.08 4.46 3.96 3.09
A larger system incurs
a larger changes in
= 1 calls/sec, 1/
1/ = 100sec, load = 1/0.01 = 100 Erlangs
20 13.19 12.03 11.1 9.41 blocking probability
= 10 calls/sec, 1/
1/ = 10sec, load = 10/0.1 = 100 Erlangs when the system load
Load is function of the ratio of arrival rate to departure rate, 40 31.0 29.0 27.3 24.5 changes
independent of the specific rates 100 87.97 84.1 80.9 75.2
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 57 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 58
Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 59 Aug 17, 2005 (Week 2/3) Traffic Model/Engineering 60
15
Network of Queues
In a network, departing traffic from a queue is
strongly correlated with packet lengths beyond
the first queue. This traffic is the input to the
next queue.
Analysis using M/G/1 is affected
Kleinrock Independence Approximation
Poisson arrivals at entry points
Densely connected network
Moderate to heavy traffic load
16