Docsity

Fluid Simulation vs. Packet-Level Simulation: A Comparative Analysis - Prof. George Riley, Papers of Computer Systems Networking and Telecommunications

Toggle sidebar
bg1
0-7803-7016-3/01/$10.00 ©2001 IEEE
A Study of Networks Simulation Efficiency: Fluid
Simulation vs. Packet-level Simulation
Benyuan Liu, Daniel R. Figueiredo, Yang Guo, Jim Kurose, Don Towsley
1
Department of Computer Science
University of Massachusetts
Abstract—Network performance evaluation through traditional packet-
level simulation is becoming in creasingly difficult as today’s networks grow
in scale along many dimensions. As a consequence, fluid simulation has
been proposed to cope with the size and complexity of such systems. This
study focuses on analyzing and comparing the relative efficiencies of fluid
simulation and packet-level simulation for several network scenarios. We
use the “simulation event” rate to measure the computational effort of the
simulators and show that this measure is both adequate and accurate. For
some scenarios, we derive analytical results for the simulation event rate
and identify the major factors that contribute to the simulation event rate.
Among these factors, the “rip ple effect” is very important since it can sig-
nificantly increase the fluid simulation event rate. For a tandem queueing
system, we identify the boundary condition to establish regions where one
simulation paradigm is more efficient than the other. Flow aggregation is
considered as a technique to reduce the impact of the “ripple effect” in fluid
simulation. We also show th at WFQ scheduling discipline can limit the
“ripple effect”, making fluid simulation particularly well suited for WFQ
models. O ur results show that tradeoffs between parameters of a network
model determines the most efficient simulation approach.
Keywords—fluid simulation, performance evaluation, traffic model
I. INTRODUCTION
Traditionally, packet-level simulation has been widely used
for performance evaluation of computer networks. However,
this technique does not scale well as the size and complexity
of networks increases. The fast growth of data communication
networks over the past decade makes this approach computa-
tionally expensive, if not infeasible, for truly large scale models.
Consequently, efficient simulation techniques for such network-
ing models have become an important issue.
Many methods have been proposed to speed up network sim-
ulation. These methodologies can be categorized into three dif-
ferent and orthogonal types (Figure 1): computational power;
simulation technology; and simulation model. In the direction
of computational power, simulations can be sped up by using
faster and more powerful machines. In the simulation technol-
ogy direction, new enhanced algorithms for implementing the
simulation can further speedup simulation. Algorithms such as
the calendar queue algorithm and splay tree algorithm have been
proposed in order to improve the efficiency of event list manip-
ulation. Another technique in this direction that has received
much attention in the literature, is the RESTART mechanism
that explores rare event simulation [1]. A third app roachis to use
models with a higher level of abstraction, simplifying the simu-
lation and improving its efficiency. The tradeoff in this case, is
the accuracy of the desired measures of interest obtained by the
more abstract model. For example, the packet-train simulation
technique models a cluster of closely-spaced packets as a single
“packet-train” [2].
1
This research has been supported in part by the NSF under awards ANI-
9809332 and CDA-9502639, and in part by CAPES (Brazil)
Computational Power
Simulation Technology
Simulation Model
Faster CPU
Multiprocessor
Efficient Event
List Algorithm
Higher Abstraction Level
Simpler Model
Fig. 1. Different ways to speed up simulation
Another modeling technique making simplified assumptions
about the real system is the fluid model, which was first pro-
posed by Anick et al. in [3] to model data network traffic. In the
fluid simulation paradigm, network traffic is modeled in terms
of a continuous fluid flow, rather than discrete packet instances.
A cluster of closely-spaced packets may be modeled as a single
fluid chunk with a constant fluid rate, with small time-scale vari-
ations in the packet stream being abstracted out of the model.
A fluid simulator keeps track of the fluid rate changes at traffic
sources and network queues. An equivalent packet-level simula-
tor would keep track of all individual packets in the network. In
fluid simulation, the higher level of abstraction suggeststhat less
processing might be needed to simulate network traffic. Intu-
itively, this is not surprising as a large number of packets can be
represented by a single fluid chunk. For simple network compo-
nents, where traffic flows do not compete for resources, the fluid
simulator outperforms the packet-level simulator. An example
would be a link that connects two nodes and never experiences
queueing; this component only introduces a constant propaga-
tion delay.
However, for other components where different traffic flows
meet and contend for limited resources, it does not easily fol-
low that fluid simulation always outperforms packet-level simu-
lation. The management of the limited resource can significantly
increase the total processing required by the fluid simulator. In
previous work [4], we found that the fluid simulation can some-
times be less efficient than packet-level simulation due to this
reason.
In this paper, we investigate several common networking sce-
narios and compare the amount of computational effort required
by fluid simulation and packet-level simulation. As a measur eo f
computational effort, we use the notion of event rate and show
that this is both adequate and accurate. We derive analytical
results to characterize the event rate for some of the scenarios
studied. We identify the major factors that contribute to the
1244 IEEE INFOCOM 2001
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Fluid Simulation vs. Packet-Level Simulation: A Comparative Analysis - Prof. George Riley and more Papers Computer Systems Networking and Telecommunications in PDF only on Docsity!

A Study of Networks Simulation Efficiency: Fluid

Simulation vs. Packet-level Simulation

Benyuan Liu, Daniel R. Figueiredo, Yang Guo, Jim Kurose, Don Towsley 1

Department of Computer Science

University of Massachusetts

Abstract —Network performance evaluation through traditional packet- level simulation is becoming increasingly difficult as today’s networks grow in scale along many dimensions. As a consequence, fluid simulation has been proposed to cope with the size and complexity of such systems. This study focuses on analyzing and comparing the relative efficiencies of fluid simulation and packet-level simulation for several network scenarios. We use the “simulation event” rate to measure the computational effort of the simulators and show that this measure is both adequate and accurate. For some scenarios, we derive analytical results for the simulation event rate and identify the major factors that contribute to the simulation event rate. Among these factors, the “ripple effect” is very important since it can sig- nificantly increase the fluid simulation event rate. For a tandem queueing system, we identify the boundary condition to establish regions where one simulation paradigm is more efficient than the other. Flow aggregation is considered as a technique to reduce the impact of the “ripple effect” in fluid simulation. We also show that WFQ scheduling discipline can limit the “ripple effect”, making fluid simulation particularly well suited for WFQ models. Our results show that tradeoffs between parameters of a network model determines the most efficient simulation approach. Keywords —fluid simulation, performance evaluation, traffic model

I. I NTRODUCTION

Traditionally, packet-level simulation has been widely used for performance evaluation of computer networks. However, this technique does not scale well as the size and complexity of networks increases. The fast growth of data communication networks over the past decade makes this approach computa- tionally expensive, if not infeasible, for truly large scale models. Consequently, efficient simulation techniques for such network- ing models have become an important issue. Many methods have been proposed to speed up network sim- ulation. These methodologies can be categorized into three dif- ferent and orthogonal types (Figure 1): computational power; simulation technology; and simulation model. In the direction of computational power, simulations can be sped up by using faster and more powerful machines. In the simulation technol- ogy direction, new enhanced algorithms for implementing the simulation can further speedup simulation. Algorithms such as the calendar queue algorithm and splay tree algorithm have been proposed in order to improve the efficiency of event list manip- ulation. Another technique in this direction that has received much attention in the literature, is the RESTART mechanism that explores rare event simulation [1]. A third approach is to use models with a higher level of abstraction, simplifying the simu- lation and improving its efficiency. The tradeoff in this case, is the accuracy of the desired measures of interest obtained by the more abstract model. For example, the packet-train simulation technique models a cluster of closely-spaced packets as a single “packet-train” [2].

(^1) This research has been supported in part by the NSF under awards ANI- 9809332 and CDA-9502639, and in part by CAPES (Brazil)

Computational Power

Simulation Technology

Simulation Model

Faster CPU Multiprocessor

Efficient Event List Algorithm

Higher Abstraction Level Simpler Model

Fig. 1. Different ways to speed up simulation

Another modeling technique making simplified assumptions about the real system is the fluid model, which was first pro- posed by Anick et al. in [3] to model data network traffic. In the fluid simulation paradigm, network traffic is modeled in terms of a continuous fluid flow, rather than discrete packet instances. A cluster of closely-spaced packets may be modeled as a single fluid chunk with a constant fluid rate, with small time-scale vari- ations in the packet stream being abstracted out of the model. A fluid simulator keeps track of the fluid rate changes at traffic sources and network queues. An equivalent packet-level simula- tor would keep track of all individual packets in the network. In fluid simulation, the higher level of abstraction suggests that less processing might be needed to simulate network traffic. Intu- itively, this is not surprising as a large number of packets can be represented by a single fluid chunk. For simple network compo- nents, where traffic flows do not compete for resources, the fluid simulator outperforms the packet-level simulator. An example would be a link that connects two nodes and never experiences queueing; this component only introduces a constant propaga- tion delay. However, for other components where different traffic flows meet and contend for limited resources, it does not easily fol- low that fluid simulation always outperforms packet-level simu- lation. The management of the limited resource can significantly increase the total processing required by the fluid simulator. In previous work [4], we found that the fluid simulation can some- times be less efficient than packet-level simulation due to this reason. In this paper, we investigate several common networking sce- narios and compare the amount of computational effort required by fluid simulation and packet-level simulation. As a measure of computational effort, we use the notion of event rate and show that this is both adequate and accurate. We derive analytical results to characterize the event rate for some of the scenarios studied. We identify the major factors that contribute to the

event rate of both fluid and packet-level simulation approaches and establish the tradeoffs between the different factors. The flow aggregation is considered as a technique to reduce the fluid simulation event rate. We also show that WFQ scheduling dis- cipline can reduce the impact of the “ripple effect” in fluid sim- ulation. We designed and implemented a fluid simulator and a packet-level simulator in order to explore their functionalities and validate analytical results. One drawback of a fluid model is that the accuracy of the in- terest measures is compromised due to the abstraction. In this study we will not address the accuracy issues of the fluid sim- ulator, but rather focus on the relative efficiencies of fluid and packet-level simulation. Nicol et al. [5] claim that despite the high level of abstraction of fluid models, the error of estimated measures obtained with fluid simulation is very small compared to the results of packet-level simulation. Another important is- sue that will not be addressed in this paper is how performance measures can be obtained via fluid simulation. However, we note that in [5], [6], [7], the authors show how performance mea- sures such as end-to-end delay and loss characterization can be computed in fluid simulations. The rest of the paper is structured as follows. Section II gives a brief review of fluid models and previous work. In Section III feed-forward network models are presented and analyzed. Section IV investigates the performance of feedback network models. In Section V we show that flow aggregation can signifi- cantly reduce the fluid simulation event rate. Preliminary results concerning WFQ are provided in Section VI. Finally, conclud- ing remarks and discussions are presented in Section VII.

II. B ACKGROUND AND PREVIOUS WORK In this section we describe the networking model components that will be used as building blocks to create the scenarios in- vestigated throughout this paper. The two basic building blocks are the source model and the multiplexer model. More complex network models are constructed using these two components. In the following we consider the dynamics of the two basic com- ponents for fluid and packet models. Markovian on-off source models are often used in network research to capture the bursty nature of the network traffic. Both packet and fluid versions of these source models are widely en- countered in the literature. The source transits between an on and off state, remaining in each state for an exponentially dis- tributed amount of time. Throughout this paper, the transition rate from on state to off state and vice versa will be denoted by  and , respectively. When in the on state, a packet source trans- mits packets according to a Poisson process with rate , while a fluid source sends out fluid at a constant rate. No packet or fluid is sent during the off period. Without loss of generality, assume that packets have a fixed size x. In order for a fluid source to be considered equivalent to a packet source, we would minimally require that both have the same average data rate. Given this condition, the fluid peak rate should be set to be h = x. Fig- ure 2 illustrates the behavior of the on-off fluid packet and fluid sources. The second basic component of network models is the mul- tiplexer. An important characteristic of a multiplexer is its scheduling discipline. In this paper, two scheduling disciplines

On Off On Off

Fluid

on Packet

λ

μ

off

Fig. 2. The on-off fluid source and packet source









































T5T4T3T2T1T0 T5’ T4’ T3’T2’T1’ T0’

Source 2 Source 3

Source 1

Server Output

Fig. 3. Dynamics of a FIFO packet multiplexer

are considered: FIFO and WFQ. The dynamic of FIFO schedul- ing is described here and WFQ is presented in Section VI. For a given scheduling policy, the dynamics of the multiplexer depends on the underlying traffic model (fluid or packet). In the FIFO packet model, packets are placed into and served from a queue according to the order of their arrival. Figure 3 depicts a FIFO queue being fed by three different sources. Note that the departure process of the packets is similar to the arrival pattern. The only difference is the spacing between packets. In the FIFO fluid model, the dynamics of the multiplexer are more subtle [4]. First, note that fluid from two different sources are distinct and do not mix, just as packets transmitted by two sources can be differentiated at the queue. Figure 4 depicts the dynamics of a FIFO fluid multiplexer being fed by three inde- pendent and identical sources. For this example, assume that the arrival rate of one source is equal to the service rate of the mul- tiplexer. At time T 0 the second source enters the on state and immediately starts to receive service at full capacity. At time T 1 , source 1 turns on and both flows must now share the ser- vice rate equally. At time T 2 , source 3 starts transmitting and eventually, at time T 20 , all of them will share the service rate equally. Note that the arrival of flow 3 at time T 2 causes flow 1 and flow 2 to change their departure rates at T 20. In general, the arrival of a new flow can cause a departure rate change in many other flows. Note that the output process of a given source can contain many more rate changes than the arrival process. For a larger network model, these rate changes will be propagated downstream causing even more rate changes in the departure process of other flows. This propagation and amplification of rate changes has been observed before and is known as the rip- ple effect [8], [4]. We will shortly see that the ripple effect has a profound impact on the efficiency of fluid simulation. However, not every flow rate change affects the output rates of all the other flows currently being serviced. If the sum of the rates of all arriving flows is smaller than the service rate of the queue, then a flow rate change does not affect other flows currently being serviced. In this case, we say that a flow rate change does not “interfere” with other flows in the queue. An arrival flow rate change causing other flow rate changes in the departure of the queue is called “flow interference”. To better understand how different flows are stored and served in a multiplexer, we introduce the concept of fluid chunk. A

0 1 (N-1)(K-1)

P0 P0 P

P P (N-1)0 P P (N-1)

... P0^ K-1 P 10 -- 11 -- P1K -- P Fig. 6. A tandem queueing network

changes it state, a new event is counted, representing the flow rate change of that source. The second term is the queue de- parture event rate. This term accounts for the flow rate changes generated by the queue and the effect of chunk merging. Compared with the exact packet-level simulation event rate eP^ = 2 =( + ) + 2  =( + ) [4], with ef^ from equation (2), we note that the fluid simulation outperforms packet-level simu- lation if > =( +  h=c). This analysis was validated by simulation results. Therefore, for a single source, single queue case, a fluid simulation will require less computing than a corre- sponding packet-level simulation whenever the above condition for holds. We will see shortly however, that this advantage is mitigated by the ripple effect in the case of multiple queues. Now we consider a larger and more complicated feed-forward network. The tandem queueing network was chosen as a con- crete example to represent a feed-forward network because of its simple and regular topology. This permits tractable analyt- ical models of simulation efficiency to be constructed and also allows easy parameterization of the model. At the same time, a more complicated feed-forward queueing network can be de- composed into many tandem queues with different parameters. We will see that by understanding the simple tandem queueing system, considerable insight can be gained into more compli- cated feed-forward networks. The tandem queueing network model considered in this sec- tion is depicted in Figure 6. In this particular model, there are N input flows at each queue, with flow 0 starting as an on-off source at node 0, and traversing through all the nodes. The other (N 1) flows, which are all identical and independent on-off sources, leave the system after passing through one node. Al- though, this system has many parameters that can be tuned, two of them - the number of sources entering each node and the num- ber of nodes in the system - are the most important, since they have direct influence on the ripple effect. Thus, both will be explored and discussed in the following. We first consider the number of nodes in the tandem queue. The model investigated has 15 sources (14 new entering each node) per node with a constant load of 0.8 and  =  = 1. Figure 7 presents the results obtained from the simulators. We observe that the fluid simulation event rate increases quadrati- cally with the number of nodes in the system. This quadratic behavior is caused by the ripple effect, which propagates fur- ther as the number of nodes increases. The packet-level sim- ulation results in Figure 7 are for =^3 , and, not surprisingly, presents a linear increase. However, the fluid simulation can still be more efficient when the number of nodes is small or when , the packet rate, is large. Note that the fluid simulation does not depend on , enabling it to outperform its counterpart when is large. Other models with different number of sources entering each node also exhibit the same behavior. In previous work, we derived analytical results for the tan- dem queueing system in order to compare the efficiency between

0

500

1000

1500

2000

2500

3000

3500

0 5 10 15 20 25 30 35 40 Number of Nodes

Simulation event rate

Fluid simulation Packet simulation = 3

Model with 15 sources

Fig. 7. Simulation event rate of a tandem system

packet-level and fluid simulation [4]. That analysis focused on studying the behavior of the tandem queue under different num- ber of nodes in the system under simplifying assumptions. The analytical results predict the quadratic growth of the fluid simu- lation event rate, which is corroborated by the simulation results presented here. The second important parameter is the number of flows en- tering each node in the tandem system. This parameter affects the amount of interaction among different flows which gives rise to the ripple effect. The scenario we consider here has 20 nodes with a constant load of 0.8 and  =  = 1. The service rate of the queues is scaled to maintain a constant load for dif- ferent number of sources. The packet-level simulation results are shown for = 3. Figure 8 presents the simulation results obtained for this model. Note that the fluid simulation event rate increases sub-linearly with the number of flows, while the packet-level simulation increases linearly. Again, the fluid sim- ulation event rate does not depend on , and will eventually out- perform the packet-level simulation. Note that the results ob- tained in this case are opposite to the ones obtained when vary- ing the number of nodes. Here, the fluid simulation will eventu- ally outperform the packet-level simulation due to its sub-linear increase. A possible explanation for the sub-linear increase in the event rate of the fluid simulation lies in the behavior of the ripple effect. Since the service rate is increased to maintain the load constant, the number of flows that can be serviced by the queue without interfering with each other increases. This can re- duce the ripple effect, since less interference among flows will occur. The tradeoff between these different parameters leads to the conclusion that the parameter space can be partitioned into re- gions such that, in each region, either fluid or packet-level simu- lation is always superior. A simple analysis will allow us to get a rough (approximate) idea of these regions. Even though the location of these boundaries may not be precise due to approxi- mations in the analysis, it is important to note that such regions do exist. Let R f^ (K ) and R p^ (K ) denote the fluid and packet simula- tion event rates for a K node tandem queueing system. The events associated with the simulation of the sources are not con- sidered, since these are identical for both paradigms. Based on

0

500

1000

1500

2000

2500

0 5 10 15 20 25 30 35 40 Number of Sources

Simulation event rate

Fluid simulation Packet simulation = 3

Model with 20 nodes

Fig. 8. Simulation event rate of a tandem system

1

10

100

1 2 3 4 5 6

K =K = 10 5 K = 20

Packet Rate (^) 

Number of Sources (N)

Fig. 9. Boundary condition for efficiency and regions between fluid and packet simulation

the propositions in [4], the fluid event rate is given by:

R f^ (K ) =

h N K + (N 1) (^00)

(K 1)K

i (3)

where the term 00 is the probability that source 0 is in the on state. The packet-level simulation event rate is determined by the number of packets sent by each source and the number of nodes each packet traverses. This leads to:

R p^ (K ) = N K 

To investigate the relative efficiency of both simulation paradigms and determine a boundary condition, let R f^ (K ) = R p^ (K ). Solving for N leads to:

N =

00 (K 1)K 2 00

(K 1)K 2 +^ K^ ^ K^ 

If this equation is satisfied, then the fluid and packet simula- tion event rates are equally efficient. Figure 9 shows the N - boundary condition curves with different number of nodes K in the system. For a given value of K , the tradeoff curve carries the following interpretation: if the point (N 0 ; 0 ) lies to the right of the curve, fluid simulation is more efficient than its packet

counterpart; otherwise, packet simulation is more efficient. We observe that increasing K shifts the tradeoff curve to the right, increasing the space in which packet simulation is more efficient (has a smaller event rate). The asymptotic line can be obtained from (5) and is given by:

00 2

K

00 2

The fluid simulation is always more efficient if =, the number of packets transmitted per on period, is greater than ( 00 = 2 K 00 = 2 + 1), regardless of the size of the tandem queueing system. This is expected since the event rate of fluid simulation does not depend on , while the packet-level event rate is proportional to. This result confirms the existence of boundaries of regions where one simulation paradigm (fluid or packet-level) is always more efficient than the other. Boundaries and regions based on other parameters such as N - K , were also be established and can be found in [11]. For more complicated feed-forward queueing networks, where different flows can traverse more nodes and interact with more flows, we conjecture that the ripple effect will be even more pronounced. However, the event rate should still be fi- nite because a flow rate change traverses only a finite number of nodes in the network before it leaves the system. Thus the num- ber of extra events caused by ripple effect is finite. Even these more complicated networks are expected to have well-defined regions in which either the fluid or the packet-level simulation is more efficient.

IV. F EEDBACK QUEUEING NETWORKS In the previous section our analytical and simulation results for a tandem queueing network demonstrated that the event rate for a fluid simulation is finite for any stable feed-forward queue- ing networks. In this section we consider a network that has a cycle. We saw earlier that with fluid simulation a flow rate change can cause a change in the output rate of other flows, thus affecting other flows at downstream nodes. This “ripple effect” could be particularly worrisome in a cyclic network. A flow rate change can modify the rate of several other flows and all these rate changes can traverse the nodes in a cycle and spawn more rate changes, resulting in a cascade of flow rate changes. In such a scenario, the event rate of the simulation could grow without bound. In this section we investigate the simulation event rate of a feedback queueing system using the cyclic queueing model, de- picted in Figure 10. We consider the effect of different param- eters on the simulation event rate. The relationship between the event rate and the corresponding execution time is also pre- sented to support our use of the simulation event rate as the mea- sure of computational effort in a simulation.

A. A feedback queueing model The scenario illustrated in Figure 10 contains four identical FIFO queues with infinite storage capacity that are connected together to form a cycle. A single on-off source is injected into each of the queues. The routing of the flows is predefined so that each flow traverses exactly three queues before departing the system. In this setting, three different flows pass through each

0

200

400

600

800

1000

1200

1400

1600

1800

0.4 0.5 0.6 0.7 0.8 0.9 1 Load

Simulation Event Rate

2 hops3 hops 4 hops5 hops 6 hops

Fig. 12. Simulation Event rate for a 6-node cyclic queue

ability is 11/16. For the case when the service rate is(2 + ), the aggregated arrival rate is larger than the service rate only when at least three sources are simultaneously on; the probability of this event is 5/16. The probability that a rate change causes a ripple effect is much smaller when the service rate reaches two from the left and this probability jump causes a major drop in event rate, which leads to the discontinuity. The discontinuity at service rate three can be explained via similar arguments. For a cyclic queueing network, one would expect that more interaction among flows causes more ripple effects, resulting in a higher event rate. To show how different interaction lev- els affect the fluid simulation event rate, we extended the cyclic queueing model in Figure 10 to contain six nodes. In the simula- tion, we varied the number of queues a flow traverses, decreased the service rate to scale the load, and obtained the results shown in Figure 12. As expected, the event rates increases as the inter- action level increases, i.e., a flow traverses more hops. The event rates also exhibit discontinuities and behaviors as a function of load similar to that for the four node model.

C. Results of packet-level simulation

A closed loop does not introduce any special consideration into a packet-level simulation model. A packet is simply gen- erated at a source, traverses through three queues, and leaves the system without introducing any extra events to other packet flows. When the system is stable, the simulation event rate is independent of the service rate and link propagation delay. The packet-level simulation event rate for the model in Figure 10 is thus fully determined by the packet rate of the source and the number of nodes a flow traverses and is given by:

eP^ = (es + eq Nh )Nn (6)

where es represents the event rate of a single source; eq is the event rate of the queue and any other components between adja- cent queues (i.e., link, router) per flow; Nh is the number of hops traversed by each flow; and Nn is the total number of nodes in the system. The simulation event rate at a node is the sum of the event rate of the sources and the event rate of components be- tween adjacent nodes (es + eq Nh ). The event rate of the model is just the sum of event rates of the Nn nodes. This formula was verified with simulation results (not pre- sented here), and was used to plot the event rates for =^1 ;^5 ;^10

20

40

60

80

100

120

140

160

180

1.6 1.8 2 2.2 2.4 2.6 2.8 3 3. Service Rate

Simulation Execution Time (sec)

= 10

= 1

= 5

delay 1.0delay 0. delay 0.01delay 0.

Fig. 13. Measured simulation execution time vs service rate

a

queue

d

Aggregated Arrival

a

a

d

d

Departure

Aggregated

Fig. 14. Example of flow aggregation

in Figure 11. This yields a comparison between the two simula- tion techniques. Notice that the fluid simulation is more efficient if the packet transmission rate of the source, , is greater than 10. Note that for a on-off packet voice model, the typical on period averages between 0.4 and 1.2 seconds [13]. Study [14] suggests that a voice packet should be transmitted every 20 ms, which has been widely adopted by many voice applications tools, such as vat [15]. Using these parameters, a typical value for the packet rate ( ) is 30. For models having these parameters, the fluid simulation is likely to be more efficient.

D. CPU time versus event rate In order to evaluate the appropriateness of our using the sim- ulation event rate as a measure of computation effort, the execu- tion times of the simulations were collected. In Figure 13, the simulation execution time corresponding to the event rate curves are presented. Comparing Figure 11, which plots event rate as a function of service rate, with Figure 13, which plots execution time as a function of service rate, we see that both exhibit the same behaviors. This suggests that the basic event rate defined in Equation 1 is a good measure of a simulation’s computational cost and can be used to establish a comparison.

V. F LOW A GGREGATION IN F LUID S IMULATION The analysis of the tandem queue model in Section III shows that the interaction between different flows can cause a ripple ef- fect in a queueing network, greatly increasing the computational effort needed by fluid simulation when the network is large. A standard method for combatting this is to isolate the flow of in- terest and aggregate the remaining flows into a single flow. In this section we study the effect of flow aggregation on the sim- ulation event rate for both packet-level and fluid simulation and discuss the implications.

In packet-level simulation, flow aggregation does not reduce the number of events simulated, since the simulator must still keep track of each individual packets being generated by the source. It does not matter if the packet belongs to the aggregated background traffic flow or to the flow of interest. In fluid simula- tion, however, a flow rate change can cause many rate changes in other flows - changes that occur at the same simulation time. If the flows are aggregated together, only one rate change will oc- cur, representing the overall effect of the individual rate changes on the aggregate flow. Figure 14 illustrates the savings of flow aggregation. In this example, three flows (a 1 ; a 2 ; a 3 ) are fed into a FIFO queue. After the interaction among the flows at the queue, the corresponding departure processes is given by d 1 ; d 2 ; d 3 , respectively. The aggregated arrival process and de- parture process are plotted below the individual flows. In the figure we observe that the number of rate changes in the aggre- gated arrival process is equal to the sum of the rate changes of all the individual arriving flows. Hence, no savings are obtained in the arrival process with source aggregation. However, the total number of rate changes in the departure process of the individ- ual flows is 11, while, the aggregated departure process exhibits only 3 rate changes. There are two important factors that lead to the large event rate reduction. One is that a rate change in the aggregated flow may represent many simultaneous rate changes in the individual flows, which are counted as only a single event in the aggregate flow. The other factor is that after aggregation, all the individual flows become a single flow. Therefore, the probability of merging between fluid chunks increases. To measure the improvements obtained with flow aggrega- tion, we present an analysis of a model with a single queue be- ing fed with multiple identical on-off sources. Since the sources make the same contribution to the overall simulation event rate in both the aggregated and non-aggregated scenarios, the follow- ing analysis only considers the event rate of the departure pro- cesses. The difference between the two cases would be solely due to the flow aggregation. Consider a FIFO queue fed by N independent and identical Markovian on-off sources, the probability that a single source is in the on state is = =( + ) and the event rate of each source is 2 =( + ). Ignoring the merging of fluid chunks and other subtleties intrinsic to fluid simulation [4], the event rate of the departure process without flow aggregation, denoted by ef^ , can be approximated by:

ef^ =

X^ N

i=

 2   + 

(N 1)



(1 + N )N (7)

The first term inside the summation is the event rate generated by the transitions of a source. The second term accounts for the rate changes in this flow caused by interference of other flows. Suppose next that one is interested in the N -th flow and treats all the other flows as a single aggregated background traffic flow. In this case, each rate change of the N -th flow may cause one rate change in the aggregated flow, and each rate change in the aggregated flow may cause one rate change in the N -th flow. Let 0 denote the probability that at least one source in the ag-

0

20

40

60

80

100

120

140

160

2 4 6 8 10 12 14 16 18 20

aggregated source non aggregated source

Number of identical sources

Queue Departure Event Rate

(^) packet simulation = 20

Fig. 15. Event rate of flow aggregation and no aggregation

gregated traffic in on; we have 0 = 1 (1 )N^ ^1. Again, ignoring the merging of flow chunks and the events due to the special chunk effect, the approximation for event rate efa is:

efa =

 2   + 

(N 1)



 2   + 

(N 1) +

0

 (8)

The term in the first bracket is the event rate of the N -th flow. The second term is the event rate of the aggregate flow, which represents the other N 1 flows. The above analysis indicates that in the worst case, the event rate increases quadratically with the number of sources feeding the queue if the identity of each flow is preserved. With flow aggregation, the event rate becomes to increase linearly with the number of flows. Simulation results presented in Figure 15 show exactly how flow aggregation can considerably reduce the simulation event rate. In this simulation, the sources are all identical, with  =  = 1 , and peak rate equal to 1. The service rate of the queue of the infinite capacity FIFO queue is 5. The two curves in the figure show how the simulation event rate varies as the number of identical sources increases from 2 to 19. Note that the load increases with the number of sources and the system becomes unstable with 20 sources. We observe that in Figure 15 the event rate without flow aggregation increases quadratically with the total number of sources, as predicted by the analysis. The event rate with flow aggregation increases linearly at the beginning and eventually decreases after the number of sources reaches 12. The reason for this behavior is that as the number of flows aggregated together increases, the merging probability becomes larger and can fur- ther reduce the event rate. For real network models, the number of flows going through a queue is usually large enough that the flow aggregation can greatly reduce the event rate and the exe- cution time of the fluid simulator. The event rate of the packet-level simulation for the above scenario is just the aggregated packet transmission rate of the sources:

ep^ =

  N (9)

always less than the event rate to simulate a single FIFO node with the same input flows. As expected, decreasing the load will lead to a higher prob- ability that the fluid flowing from the sources will pass through the node without queueing. Hence, less ripple effect is incurred and the overall fluid simulation event rate is smaller. Note that for the load of 0.5, no queueing takes place, since the service rate is equal to sum of the peak rate of all the sources. There- fore, the number of classes has no impact on the fluid simulation event rate, as observed in Figure 17. The event rate in this case is given solely by the behavior of the sources and can be com- puted analytically. Thus, the fluid simulation of a WFQ node is likely to be more efficient, in terms of event rate, than the fluid simulation of a FIFO node, specially at higher loads. For packet-level simulation, the event rate of the WFQ node is given by the rate at which packets arrive at the node, which is determined by the rate at which packets are generated by the sources. The isolation between classes in WFQ does not reduce the packet-level simulation event rate. Moreover, the packet- level simulation event rate in this model can be easily computed using equation (9). The comparison between fluid simulation and packet-level simulation still depends on the tradeoffs of the network and traffic rate parameters, especially. In Figure 17 the packet-level event rate for = 5 ; 10 are presented to illus- trate the tradeoffs. Note that fluid simulation can outperform packet-level simulation for some parameter configurations. A quantitative analysis of the WFQ fluid simulation event rate, to establish a better understanding of the parameter space and tradeoffs, is still an ongoing research topic.

VII. C ONCLUSIONS In this paper, we evaluated the relative performance of fluid simulation over packet-level simulation by analyzing several different networking scenarios. The simulation event rate was used as the basic measure of comparison between the two simu- lation techniques. The results obtained show that the simulation execution time is proportional to the simulation event rate, mak- ing this measure both adequate and accurate. An important issue is the impact of the ripple effect on the fluid simulation event rate. This characteristic of fluid simula- tion is a major contributor to the simulation event rate, particu- larly, in large and complex models. The ripple effect is intrinsic to fluid simulation and does not appear in packet-level simula- tion. In this case, the event rate is fully determined by the rate at which packets are generated and their routes inside the network model. Therefore, the relative efficiency between the two simu- lation approaches depends critically on the impact of the ripple effect and the rates at which packets are generated. We have derived analytical results to characterize the simu- lation event rate for the tandem queueing model. For all the scenarios investigated, we have provided simulation results and discussed the trends of the event rates. We have shown the trade- offs between parameters of the models, which determines the most efficient simulation technique. In general, fluid simulation outperforms packet-level simulation when the packet rate ( ) is large. We have also considered two methods that can reduce the impact of the ripple effect, namely, flow aggregation and WFQ policy. A fluid simulator and a packet-level simulator was de-

signed and implemented in order to explore their functionalities and validate analytical results. An alternative approach to improve the performance of fluid simulation is the time-driven fluid simulation scheme [18]. In this approach, the continuous fluid flow is discretized into fixed length of fluid chunks, where each chunk has a constant rate and represents many packets. This discretization is done throughout the network being simulated. The simulation advances at the granularity of the discretization, which can be adjusted to ac- commodate different resolution requirements in modeling. Flow rate changes within a time step are averaged out, reducing the number of rate changes resulting from the ripple effect. Also the uniform discretization interval facilitates parallelism in the simulation. This scheme is undergoing both theoretical and ex- perimental investigation.

R EFERENCES [1] M. Vill´en-Altamirano and J. Vill´en-Altamirano, “RESTART: a straight- forward method for fast simulation of rare events,” in Proceedings of the 1994 Winter Simulation Conference , Lake Buena Vista, Florida - USA, Dec. 1994, pp. 282 – 289. [2] Jong Suk Ahn and Peter B. Danzig, “Packet network simulation: Speedup and accuracy versus timing granularity,” IEEE/ACM Transactions on Net- working , vol. 4, no. 5, pp. 743 – 757, Oct. 1996. [3] D. Anick, D. Mitra, and M.M. Sondhi, “Stochastic theory of a data- handling system with multiple sources,” The Bell System Technical Jour- nal , vol. 61, no. 8, pp. 1871 – 1894, Oct. 1982. [4] B. Liu, Y. Guo, J. Kurose, D. Towsley, and W. Gong, “Fluid simulation of large scale networks: issues and tradeoff,” in PDPTA ’99 , Las Vegas, NV, June 1999, pp. 2136 – 2142. [5] David Nicol, Michael Goldsby, and Michael Johnson, “Fluid-based sim- ulation of communication networks using SSF,” in Proc. 1999 European Simulation Symposium , Erlangen-Nuremberg, Germany, Oct. 1999. [6] D. Ros and R. Marie, “Estimation of end-to-end delay in high-speed net- works by means of fluid model simulations,” in 13th European Simulation Multiconference , Warsaw, June 1999. [7] D. Ros and R. Marie, “Loss characterization in high-speed networks through simulation of fluid models,” in SPECTS’99 , Chicago, IL, USA, July 1999. [8] G. Kesidis, A. Singh, D. Cheung, and W.W. Kwok, “Feasibility of fluid- driven simulation for ATM network,” in Proc. IEEE GLOBECOM 96 , Nov. 1996, vol. 3, pp. 2013–2017. [9] S3 Consortium, “Scalable simulation framework API reference manual,” Documentation Draft, Jan. 1999. [10] J. Cowie, D. Nicol, and A. Ogielski, “Modeling the global internet,” Com- puting in Science & Engineering , pp. 30–38, 1999. [11] Yang Guo, On Fluid Modeling of Networks and Queues , Ph.D. thesis, University of Massachusetts, Amherst - MA, 2000. [12] Benyuan Liu, Daniel R. Figueiredo, Yang Guo, Jim Kurose, and Don Towsley, “A study of networks simulation efficiency: Fluid simulation vs. packet-level simulation,” Tech. Rep. 35, Computer Science Dept - University of Massachusetts, Amherst, 2000. [13] Mischa Schwartz, Broadband Integrated Networks , Prentice Hall, 1996. [14] N. S. Jayant, “Effects of packet loss on waveform coded speech,” in Proc. Fifth Int. Conference on Computer Communications , Oct. 1980, pp. 275 –

[15] Van Jacobson and Steven McCanne, “URL http://www- nrg.ee.lbl.gov/vat,” Lawrence Berkeley National Laboratory - University of California, Berkeley. [16] A. Demers, S. Keshav, and S. Shenkar, “Analysis and simulation of a fair queueing algorithm,” Internet Res. and Exper. , vol. 1, 1990. [17] Abhay K. Parekh and Robert G. Gallager, “A generalized processor shar- ing approach to flow control in integrated services network: The single- node case,” IEEE/ACM Transactions on Networking , vol. 1, no. 3, pp. 344

  • 357, June 1993. [18] A. Yan and W.B. Gong, “Time-driven fluid simulation for high-speed networks with flow-based routing,” in Proc. of the Applied Telecommuni- cations Symposium , Boston, MA, Apr. 1998, pp. 153 – 158.