Professional Documents
Culture Documents
Gabriele D’Angelo
<gda@cs.unibo.it>
http://www.cs.unibo.it/gdangelo/
Simulation
Gossip protocols
2
Simulation and much more
3
Limitations of the monolithic approach
pattern
4
Parallel And Distributed Simulation (PADS)
In this case, the state of the simulation and its evolution is shared
among a set Logical Processes (LPs)
Optimistc (Time-Warp)
5
The main drawbacks of PADS
Load-balancing
6
Partitioning problem
interact together
7
Migration-based approach
All the static approaches are suboptimal given the variability in the
model partitioning
8
Migration-based approach
9
An example: communication overhead reduction
A B A B
10
Migration-based approach: load balancing
This approach can be also used to improve the computation load-
balancing in the execution architecture
11
Migration-based approach: load balancing
This description of the mechanism is very high level, the “real world”
oscillatory behaviors
12
Positive side-effects
pattern (this is very well suited for cloud computing and “on
demand resources”)
13
ARTÌS + GAIA
As part of our research effort we have implemented a PADS middleware
called ARTÌS in which the GAIA module implements the migration
mechanism previously described
14
Wireless network simulation
The migration-based approach works very well for the simulation of
wireless networks
In the last years we have tested the ARTÌS middleware in many case
studies and simulating wireless network with different degrees of
detail in the simulated model
15
A more challenging scenario: scale-Free networks
16
Scale-Free networks: meaning and examples
This means:
transmission of diseases
citation graphs
17
Simulation of scale-free networks
populated models
18
Gossiping protocols: fixed probability
Algorithm
Gossip #1: Fixed Probability
function INITIALIZATION()
v ← CHOOSE_PROBABILITY()
end for
19
Gossiping protocols: fixed fanout
Algorithm
Gossip #2: Fixed Fanout function INITIALIZATION()
fanout ← RETRIEVE_FANOUT()
SELECT_NODES()
end if
SEND(msg, nj)
end for
20
Gossiping protocols: probabilistic broadcast
Algorithm
pb ← PROBABILITY_BROADCAST()
end if
21
PaScaS: the scale-free network simulator
22
Experimental evaluation: model parameters
Parameter Value
exponential distribution
message generation
mean = 50 time-steps
cache size (local to each node) 10 slots
6 (fixed prob. and fanout)
message Time To Live (TTL)
4 (conditional broadcast)
probability of dissemination (v) 0.5 (i.e. 50%)
fanout value 5
probability of broadcast (pb) 0.5 (i.e. 50%)
simulated time 1000 time-steps (after building)
23
Experimental evaluation: execution architecture
Hardware:
Threading, 2 GB RAM
Software:
multi-cores)
24
Experimental evaluation: sequential execution
25
Experimental evaluation: parallel execution
26
Experimental evaluation: parallel execution (fixed probability)
27
Experimental evaluation: parallel execution (fixed fanout)
28
Experimental evaluation: parallel execution (cond. broadcast)
29
Experimental evaluation: monolithic vs. parallel execution
30
Experimental evaluation: adaptive parallel execution
31
Experimental evaluation: adaptive parallel execution
32
Experimental evaluation: adaptive parallel execution
33
Parallel execution vs. adaptive parallel execution
The best performances are obtained for gossip #1 and gossip #3,
34
Putting it all together
scale-free networks?
35
MOGs: scalability and responsiveness
client/server
mirrored servers
peer-to-peer
36
MOGs: a peer-to-peer approach
Each peer locally manages its copy of the game state
tree
random graph
37
Scale-free networks for MOGs
38
Performance evaluation: simulation-based
Parameter Value
number of nodes 0-500
message generation exponential distribution
mean = 50 time-steps
cache size (local to each node) 256 slots
message Time To Live (ttl) 6
probability of dissemination (v) 0.5, 0.8, 1 (i.e. 50-80-100%)
fanout value 5 (# of nodes)
probability of broadcast (pb) 0.5, 0.8, 1 (i.e. 50-80-100%)
simulated time (gaming time) 1000 time-steps (after building)
39
Performance evaluation: metrics
Coverage
Delay
Messages
41
Evaluation: number of hops
42
Evaluation: total number of messages
43
Evaluation: coverage rate (%)
44
Evaluation: number of hops
45
Evaluation: total number of messages
46
Conclusions and Future work
48
References
G. D'Angelo, M. Bracuto. Distributed Simulation of Large-Scale and Detailed Models. International Journal of Simulation and
Process Modelling 2009 - Vol. 5, No. 2. Special issue on "Parallel and Distributed Simulation", Inderscience Publishers
L. Bononi, M. Di Felice, G. D'Angelo, M. Bracuto, L. Donatiello. MoVES: A framework for parallel and distributed simulation of
wireless vehicular ad hoc networks. ComNet Journal, Special issue on "Emerging Wireless Networks: Performance Modeling and
S. Ferretti, G. D'Angelo. Multiplayer Online Games over Scale-Free Networks: a Viable Solution? Workshop on DIstributed
G. D'Angelo, S. Ferretti. Simulation of Scale-Free Networks. Proceedings of 2nd ACM/ICST International Conference on
M. Bracuto, G. D'Angelo. Detailed Simulation of Large-Scale Wireless Networks. Proceedings of the 11-th ACM/IEEE
International Symposium on Distributed Simulation and Real Time Applications (DS-RT 2007)
L. Bononi, M. Bracuto, G. D'Angelo, L. Donatiello. Exploring the Effects of Hyper-threading on Parallel Simulation. Proceedings
of the 10-th ACM/IEEE International Symposium on Distributed Simulation and Real Time Applications (DS-RT 2006)
L. Bononi, M. Bracuto, G. D'Angelo, L. Donatiello. An Adaptive Load Balancing Middleware for Distributed Simulation.
Proceedings of Frontiers of High Performance Computing and Networking - ISPA 2006 Workshops
L. Bononi, G. D'Angelo, L. Donatiello. HLA-based adaptive distributed simulation of wireless mobile systems. Proceedings of
the 17th ACM/IEEE/SCS Workshop on Parallel and Distributed Simulation (PADS '03)
49
Online References, Preprints and Software
http://pads.cs.unibo.it
Personal homepage:
http://www.cs.unibo.it/gdangelo/pubblicazioni-eng.html
Gabriele D'Angelo
E-mail: <g.dangelo@unibo.it>
http://www.cs.unibo.it/gdangelo/
50
From Simulation to Online Gaming:
Gabriele D’Angelo
<gda@cs.unibo.it>
http://www.cs.unibo.it/gdangelo/