Professional Documents
Culture Documents
Tom Traffic Ns Tutorial
Tom Traffic Ns Tutorial
simulation
Tom Kelly
NS Tutorial - Microsoft Research Cambridge
9th December 2005
Overview
n Why traffic generation is important
n Basics of traffic modeling
n Open system models
n Closed system models
n Common pitfalls and concerns
n Summary
Why traffic generation is
important
n Traffic patterns impact system design,
dependency, capability, and efficiency
n Want to simulate traffic to answer
questions about deployment, network
architecture, and basic behavior
Basic traffic modeling
n Source-sink packet flow model
n What rule drives when packets are sent?
n How big are they?
n System level flow model
n When do flows arrive and depart?
n What parameters do we need to simulate?
n How do we classify the possible patterns to give
clarity to the results?
n What regimes are in and out of scope?
Source basics
n Open loop flows
n no feedback exerted on the flow once it begins
n exists and often an effective system design choice
n e.g. VoIP, games, multicast, DNS, malicious traffic
n Closed loop flows
n packet transmission driven by feedback based on
network state
n often harder to understand but makes for robust,
adaptable, and scalable systems
n e.g. DCCP, TCP
Packet voice modeling
n Each flow uses a coding scheme and
suggests a model
n e.g. 8Khz, 8bit sample, 20ms frames suggests
80Kbps 200b CBR or with silence suppression
exponential on/off periods 500ms
n Calls arrive according to a Poisson process
intensity l
n Calls have random length mean t
n e.g. exponential mean 200 seconds
n Total load is determined by all three
n e.g. CBR has 80.t.lKbps
Something to try - voice
n Construct a voice network with a single bottleneck
n What jitter and loss metrics make sense for this
application?
n How do these metrics respond as you change the
load level?
n Play with the distributional assumptions, what effect
do they have?
n What can you conclude?
Bulk transfer problem
n A backup service allows users to
automatically backup their data; the
operator is thinking of introducing
priority queuing to offer a higher grade
of service
n It wants to see whether users will notice
any impact as a result of this change
Bulk transfer model
n Flows transfer an amount X in a single TCP
connection
n X ~ pareto, exponential
n Flow arrivals Poisson intensity l
n large number of independent users
n For a bottleneck of B we should be able to
handle about up to l.E[X]
n not very interested in small l.E[X]
n probably worth checking a couple of distributions
for X and a couple of system sizes B
Something to try - bulk
transfer
n Construct a multi-hop network with two cross paths