


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















Simulation
Dan F. Servey Distinguished Professor Electrical Engineering and Computer Science University of Kansas 2335 Irving Hill Dr. Lawrence, Kansas 66045 Phone: (785) 864-4833 FAX:(785) 864- e-mail: [email protected] http://www.ittc.ku.edu/
With modification from Dr. David Petr
Simulation
Communication network simulation involves generating pseudo-random sequences of message lengths and interarrival times (or other input processes, e.g. time varying link quality) then using these sequences to exercise an algorithmic description of the network operation.
Simulation Is a Very Flexible Evaluation Tool ¾ General Network Characteristics (Sources, Topology, Protocols, Etc.) ¾ Minute Detail
Simulation Models Can Be Expensive to Construct ¾ Human Effort
Simulation Models Can Be Expensive to Run ¾ Computer Effort
Statistical Analysis of the Results Can Be Difficult ¾ Requires Careful Interpretation
Difficult to Gain Insight Into System Behavior ¾ Simulate Only a Set of Specific Scenarios
Simulation
¾ Message Arrival Process
¾ Protocols ¾ Links and Queues ¾ Routing
Simulation
¾ Objects Upon Which Action Is Performed ¾ In Network Simulation Entities Are Messages/Packets
¾ Characteristics Which Describe Entities (e.g., Message Length)
¾ Occurrences That Trigger Activities (e.g., Message Arrival, Departure)
Simulation
¾ Time Step Approach (Fixed Increment Time Advance) ¾ Event-Scheduling Approach
¾ Choice of Increment Important ¾ Too Large: Multiple Events Happen In Single Step ¾ Too Small: Wasted Processing Time ¾ Update System States at End of Each Fixed Time Interval
9
10
Simulation
Simulation
Simulation
0 =idle
Simulation
¾ Detailed Analysis of Model Behavior ¾ Compare to Walk-Through Analysis
¾ To “See” What Is Happening As It Happens
Simulation Models Are Always Approximations
A Simulation Model Developed for One Application May Not Be Valid for Others
Model Development and Validation Should Be Done
Simultaneously
Specific Modeling Assumptions Should Be Tested
Sensitivity Analysis Should Be Performed
Attempt to Establish That the Model Results
Resemble the Expected Performance of the Actual System
Generally, Validation Is More Difficult Than
Verification
Simulation
Starting Rules ¾ Overcoming Initial Transients ¾ An Initial Transient Period Is Present Which Can Bias the Results ¾ Achieving Steady State
Quality of Performance Estimates ¾ Variance of Estimated Performance Measures
¾ Cannot Directly Apply Standard Statistical Approaches Based on iid (Independent, Identically Distributed) Observations
Simulation
“Zeroth ” Generation — General Purpose Languages ¾ Fortran, C/C++, Pascal, Basic “First” Generation — General Purpose Queueing System Simulations ¾ GPSS, SLAM, SIMSCRIPT “Second” Generation — Application Specific: Computer Systems and Wide-Area Communication Networks ¾ RESQ, PAWS, Ns-2 (http://www.isi.edu/nsnam/ns/) “Third” Generation — Integration of Second Generation Languages With a Graphics-Oriented Analysis and Modeling Environment ¾ Extend (www.imaginethatinc.com) ¾ SES/Workbench (Scientific and Engineering Software, Inc., Austin, TX) ¾ OPNET (Mil 3, Inc., Washington, DC)
Simulation
Simulation
¾ Know the Customer ¾ Know the Network ¾ Know the Important Performance Metrics
¾ Establish a Credible Model ¾ Expect the Model to Evolve ¾ Apply Good Software Management Techniques
Simulation
count
V (^1 2 3) F
L W
D
T U
1 2 3
Rand
Exit #
Packet Source
FIFO Queue
Service Time
Simulation Clock (Executive)
Activity (Delay)
Exit (Required!)