alt text 

Project I: Performance of an Input-Queueing Packet Switch Under Varying Offered Loads

Ahmet Sekercioglu and Leon Seng

Objectives

In this project, based on the sample program we provide, you will write a SimPy simulation that will produce a report of performance of an NXN (N=2,…,10) input-queueing packet switch under varying offered link load conditions (from 20% to 90% of the individual link capacities).

Procedure

  • Download the sample program iq_switch_perf.py and become familiar with its structure by running it. You will need the following as well: SimComponents.py and IQSwitchComponents.py

  • Expand iq_switch_perf.py to write your program which will produce the switch statistics and performance reports in tabular form as shown below:

Switch Statistics
      | Offered Load as a Percentage of the Individual Link Capacities:               |
      |   20%   |   30%   |   40%   |  50%    |  60%    |  70%    |   80%   |   90%   |
      |Gen. Rcv.|Gen. Rcv.|Gen. Rcv.|Gen. Rcv.|Gen. Rcv.|Gen. Rcv.|Gen. Rcv.|Gen. Rcv.|
  2X2
  3X3
  4X4
  5X5
  6X6
  7X7
  8X8
  9X9
10X10
Gen. = Total number of packets generated
Rcv. = Total number of packets received
Switch Performance
      | Offered Load as a Percentage of the Individual Link Capacities:               |
      |   20%   |   30%   |   40%   |  50%    |  60%    |  70%    |   80%   |   90%   |
  2X2
  3X3
  4X4
  5X5
  6X6
  7X7
  8X8
  9X9
10X10
Switch performance is calculated as:
total_number_of_packets_received/total_number_of_packets_generated

Submission and Assessment

You will upload your iq_switch_perf.py through the unit's Moodle project submission page. No other submission methods will be accepted. Please observe these important points:

  • Do not submit files with different filenames: You can only submit your Python program iq_switch_perf.py (keep this name please).

  • We will run your submission to check the generated reports. Your program should only produce the switch statistics and switch performance tables as shown above, no other debugging information should be output (if this happens, we will deduce 10% of the marks).

References


Ahmet's Home