Docsity

Communication Network Simulation - Lecture Slides | EECS 563, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
1
Simulation
Victor S. Frost
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-7789
http://www.ittc.ku.edu/
Communications Network Simulation
#8
With modification from Dr. David Petr
2
Simulation
Outline
Define network simulation
Discuss attributes and application of
simulation
Present implementation of simulation
systems
Discuss analysis of simulation results
Discuss selection of simulation tools
Provide an overview of Extend (the
simulation tool using here)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download Communication Network Simulation - Lecture Slides | EECS 563 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Simulation

Victor S. Frost

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/

Communications Network Simulation

With modification from Dr. David Petr

Outline

„ Define network simulation

„ Discuss attributes and application of

simulation

„ Present implementation of simulation

systems

„ Discuss analysis of simulation results

„ Discuss selection of simulation tools

„ Provide an overview of Extend (the

simulation tool using here)

Simulation

A Definition of Communication

Network 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.

Attributes of Simulation

„ 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

Modeling Elements for

Communication Networks

„ Traffic and Input Processes

¾ Message Arrival Process

  • Often Interarrival Times ¾ Message Lengths ¾ Other Message Attributes
  • Service Class
  • Error models

„ Algorithmic Descriptions of Network

Processing

¾ Protocols ¾ Links and Queues ¾ Routing

Sample Realization of an

Input Process (Table)

Simulation

Sample Realization of an

Input Process (Graph)

Arrival

Events &

Lengths

Discrete Event Simulation:

Terminology

„ Entities

¾ Objects Upon Which Action Is Performed ¾ In Network Simulation Entities Are Messages/Packets

„ Attributes

¾ Characteristics Which Describe Entities (e.g., Message Length)

„ Events

¾ Occurrences That Trigger Activities (e.g., Message Arrival, Departure)

Simulation

Time Step Approach to

Network Simulation

„ Approaches to Discrete Event Simulation

¾ Time Step Approach (Fixed Increment Time Advance) ¾ Event-Scheduling Approach

„ Fixed Increment Time Advance

¾ 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

Time Step History of Simple

Statistical Multiplexer

9

10

Simulation

Number in System N(t) vs.

Time

Event Scheduling Approach to

Network Simulation

„ Variable Time Advance

¾ Advance Time To Next Occurring Event

„ Update System State Only When Events

Occur

¾ For Example, Arrivals or Departures

Simulation

Event Scheduling for Simple

Statistical Multiplexer

Event Scheduling for Simple

Statistical Multiplexer

Simulation

Snapshot of Simple Statistical

Multiplexer Simulation

0 =idle

Relative Merits of Time Step

and Event Scheduling

Simulation

Verification Methods

„ Event Trace

¾ Detailed Analysis of Model Behavior ¾ Compare to Walk-Through Analysis

„ Model Simplification and Comparison to

Analytic Results

„ Graphical Display of Network Status As the

Model Progresses

¾ To “See” What Is Happening As It Happens

Some Comments on

Validation

„ 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

Analysis of Results: Statistical

Considerations

„ Starting Rules ¾ Overcoming Initial Transients ¾ An Initial Transient Period Is Present Which Can Bias the Results ¾ Achieving Steady State

  • Use a Run-in Period: „ Determine Tb Such That the Long-Run Distribution Adequately Describes the System for t > Tb
  • Use a “Typical” Starting Condition (State) to Initialize the Model

„ Quality of Performance Estimates ¾ Variance of Estimated Performance Measures

Quality of Performance

Estimates

„ Performance Estimates Should Be Unbiased

„ Performance Estimates Should Have

Acceptable Variance

„ Confidence Intervals Are the Usual Approach

for Assessing the Accuracy of the Estimators

„ The Desired Confidence Interval Width

Determines the Length of the Simulation Run

„ Observations Tend to Be Correlated

¾ Cannot Directly Apply Standard Statistical Approaches Based on iid (Independent, Identically Distributed) Observations

Simulation

Batching Approach

Evolution of Network

Simulation Tools

„ “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

Relative Merits of General

Purpose Languages

Relative Merits of Special

Purpose Languages

Simulation

Guidelines to Network

Modeling and Simulation

„ Things to Know

¾ Know the Customer ¾ Know the Network ¾ Know the Important Performance Metrics

„ Things to Do

¾ Establish a Credible Model ¾ Expect the Model to Evolve ¾ Apply Good Software Management Techniques

Conclusions

„ Simulation Can Be an Important Tool

for Communication Network Design

and Analysis

„ Care and Thought Must Go Into

Construction of Communication

Network Models

„ Care and Thought Must Go Into

Interpretation of Model Output

Simulation

Extend® Overview

„ Allows Graphical Description of

Networks

¾ Sources, Links, Nodes, Etc.

„ Data Flow Block Diagrams

„ Hierarchical Structure to Control

Complexity

„ Be sure and create libraries when

creating complex models

Extend: Simple Statistical

Multiplexer Model

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!)