Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Design of XML-Based Model and Experiment Description Languages for Network Simulation Andrew Hallagan Bucknell University Dept. of Computer Science.

Similar presentations


Presentation on theme: "The Design of XML-Based Model and Experiment Description Languages for Network Simulation Andrew Hallagan Bucknell University Dept. of Computer Science."— Presentation transcript:

1 The Design of XML-Based Model and Experiment Description Languages for Network Simulation Andrew Hallagan Bucknell University Dept. of Computer Science Luiz Felipe Perrone, Advisor

2 3 General Network Types Hardwired, wireless and ad-hoc networks

3 3 General Network Types Hardwired, wireless and ad-hoc networks Nodes

4 3 General Network Types Hardwired, wireless and ad-hoc networks Channels

5 Communication Between Nodes Breaking a message up into packets.

6 Communication Between Nodes Breaking a message up into packets.

7 Communication Between Nodes Breaking a message up into packets.

8 Ways to Study a System Source: Averill M. Law, Simulation, Modeling & Analysis Physical model Experiment with the actual system Experiment with a model of the system System Mathematical model Analytical solution Simulation

9 Ways to Study a System Source: Averill M. Law, Simulation, Modeling & Analysis Physical model Experiment with the actual system Experiment with a model of the system System Mathematical model Analytical solution Simulation

10 A Simple Mobility Model The horizontal and vertical positions of the node are a function of SPEED and ANGLE, which are random variables distributed Normally and Uniformly, respectively. X-position = f(SPEED, ANGLE) Y-position = g(SPEED, ANGLE) SPEED ~ N(SPEED_MEAN, 3.0) ANGLE ~ U(0, ANGLE_BOUND) Model Inputs SPEED_MEAN ANGLE_BOUND

11 A Simple Mobility Model The horizontal and vertical positions of the node are a function of SPEED and ANGLE, which are random variables distributed Normally and Uniformly, respectively. X-position = f(SPEED, ANGLE) Y-position = g(SPEED, ANGLE) SPEED ~ N(SPEED_MEAN, 3.0) ANGLE ~ U(0, ANGLE_BOUND) Model Inputs SPEED_MEAN ANGLE_BOUND Model Description

12 Factor Levels ANGLE_BOUND 15 30 45 60 SPEED_MEAN 2.0 3.0 4.0

13 Design Matrix ANGLE_BOUND 15 30 45 60 SPEED_MEAN 2.0 3.0 4.0 2.0 3.0 4.0 2.0 3.0 4.0 2.0 3.0 4.0

14 Design Matrix ANGLE_BOUND 15 30 45 60 SPEED_MEAN 2.0 3.0 4.0 2.0 3.0 4.0 2.0 3.0 4.0 2.0 3.0 4.0

15 Design Matrix ANGLE_BOUND 15 30 45 60 SPEED_MEAN 2.0 3.0 4.0 2.0 3.0 4.0 2.0 3.0 4.0 2.0 3.0 4.0 Experiment Description

16 Network Complexities Bandwidth, physical distance, network traffic, etc.

17 Network Complexities Bandwidth, physical distance, network traffic, etc.

18 Network Complexities Size.

19 Network Complexities Physical surroundings.

20 Recap Networks are complex. Modeling is difficult. Experimentation isn’t straight-forward. Mistakes in this process have led to credibility issues in network simulation.

21 Solution: Automation Automate the modeling and experiment design process for users. Automatically validate model descriptions. Automatically validate experiment descriptions. Automatically generate simulation scripts.

22 Motivation for Network Simulation Research Source: J. M. Brase and D. L. Brown, Modeling, Simulation and Analysis of Complex Networked Systems. White paper. “[The Department of Energy] must continue the development of next generation complex networked systems that are more secure, less brittle to unexpected events, and more controllable. For these emerging efforts to be successful, it is essential that a firm intellectual foundation be provided for understanding and simulating large-scale networks.”

23 SAFE Simulation Automation Framework for Experiments

24 High-level view of the SAFE architecture. My work is concerned with the Model Description and Experiment Description inputs to this framework (in the yellow boxes).

25 High-level view of the SAFE architecture. My work is concerned with the Model Description and Experiment Description inputs to this framework (in the yellow boxes).

26 An HTML “anchor” element. This piece of HTML is valid XML. It is an a tag with an attribute href. The value of the href attribute is a URL string and the content of the a tag is the “Link to Google” string. Link to Google Opening tag Attribute value Element content Closing tag

27 NEDL: Experiment Description

28 NEDL Functionality Provide ways to list experimental factors. ANGLE_BOUNDSPEED_MEAN

29 NEDL Functionality Provide ways to list associated level values for each factor. ANGLE_BOUND 15 30 45 60 SPEED_MEAN 2.0 3.0 4.0

30 NEDL Functionality Provide ways to list associated level values for each factor. ANGLE_BOUND 15 30 45 60 SPEED_MEAN 2.0 3.0 4.0 “Use the values 3, 17, and 9.”

31 NEDL Functionality Provide ways to list associated level values for each factor. ANGLE_BOUND 15 30 45 60 SPEED_MEAN 2.0 3.0 4.0 “Use the same values already provided for another factor.”

32 NEDL Functionality Provide ways to list associated level values for each factor. ANGLE_BOUND 15 30 45 60 SPEED_MEAN 2.0 3.0 4.0 “Take multiples of 15 between 15 and 60.”

33 NEDL Functionality Provide ways to list associated level values for each factor. ANGLE_BOUND 15 30 45 60 SPEED_MEAN 2.0 3.0 4.0 “Use the values specified in my external file named ____”

34 NEDL Functionality Provide ways to “prune” design points from the experiment space. ANGLE_BOUND 15 30 45 60 SPEED_MEAN 2.0 3.0 4.0 2.0 3.0 4.0 2.0 3.0 4.0 2.0 3.0 4.0

35 NEDL Functionality Provide ways to “prune” design points from the experiment space. ANGLE_BOUND 15 30 45 60 SPEED_MEAN 2.0 3.0 4.0 2.0 3.0 4.0 2.0 3.0 4.0 2.0 3.0 4.0 “Remove the specific design point where ANGLE_BOUND = 15 and SPEED_MEAN = 3.0.”

36 NEDL Functionality Provide ways to “prune” design points from the experiment space. ANGLE_BOUND 15 30 45 60 SPEED_MEAN 2.0 3.0 4.0 2.0 3.0 4.0 2.0 3.0 4.0 2.0 3.0 4.0 “Remove every third design point.”

37 NEDL Validation The NEDL validation module checks language semantics and ensures the experimenter has created a NEDL document that can be successfully parsed by SAFE.

38 NSTL: Model Description Flexible script templating

39 Creating an ns-3 script template. One can create an ns-3 script simply by removing certain hard- coded values and inserting special markers that correspond to the factors listed in a NEDL file. norm = ns3.RandomVariable(“Normal”, $SPEED_MEAN$, “3.0”) unif = ns3.RandomVariable(“Uniform”, 0, $ANGLE_BOUND$) node.setSpeed(norm) node.setAngle(unif)

40 Creating an ns-3 script template. Using the block element in NSTL, one can specify interchangeable code blocks to swap in an ns-3 script. Since two block elements are used, two scripts will be generated. norm = ns3.RandomVariable(“Normal”, $SPEED_MEAN$, “3.0”) unif = ns3.RandomVariable(“Uniform”, 0, $ANGLE_BOUND$) node.setSpeed(norm) node.setAngle(unif) node.setSpeed(17.0) node.setAngle(135)

41 Conclusions and Future Work

42 Thank you!


Download ppt "The Design of XML-Based Model and Experiment Description Languages for Network Simulation Andrew Hallagan Bucknell University Dept. of Computer Science."

Similar presentations


Ads by Google