Personal tools
You are here: Home Comp 346 / 446 Telecommunications Assignments A3 - Switch Simulator Sample Simulator Input File
Document Actions

Sample Simulator Input File

by Dr. William L. Honig last modified 2009-02-02 08:39 PM

Use this as is and/or extend for your testing. Make up your own new input file as well to fully test your simulator.

Click here to get the file

Size 1.2 kB - File type text/plain

File contents

#Comments begin with a # and the entire line is ignored
#

#First column indicated type of input line
#I = initialization:  Total time of simulation, Max number of connections (capacity)
#C = connection: Time of request, Calling number, Called number
#D = disconnection: Time of request, Subscriber number
#S = show: Time of request
#E = end of input records (simulation may or may not use all the records)
#
#Time is in seconds between 1 and 10,000
#Subscriber numbers between 0 and 999
#Capacity between 1 and 100 simultaneous connections
#
#
#Initialize for 1000 seconds and switch capacity of 10
#
I 1000 10 
#Some connections at times 10 15 and 30 seconds
C 10  123  100
C 15  12   101
C 30  200  201
#First busy call
C 33  7    100
#More connections (two at the same time)
C 50  450  102
C 50  450  202
#First disconnect (subscriber 12 should become idle too)
D 60  101
#
C 61  101  12
#An incorrect signal (subscriber is not in a call)
D 62  301
#Optional Show instruction
S 64
#Add calls until get some blocking
C 65  301  302
C 70  303  304
C 81  305  306
C 89  307  308
C 99  309  310
C 99  311  312
C 100 313  314
C 130 315  316
C 150 317  318
#Mark end of input file
E
 
« June 2023 »
Su Mo Tu We Th Fr Sa
123
45678910
11121314151617
18192021222324
252627282930
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: