Computer Science & Software Engineering |
CSCI 466 |
How do I calculate the probability of congestion? For example, if a link can support at most 10 circuit-switched users, congestion will occur if 11 or more packet-switched users are currently active. Hint: You will need to use the binomial distribution and a summation.% python CircuitPacket.py CircuitPacket.py <link bandwidth> <user bandwidth> <num users> <prob transmit> % python CircuitPacket.py 1000000 100000 35 0.1 Circuit-switched, max users: 10 Packet-switched, probability congestion: 0.0004 % python CircuitPacket.py 1000000 200000 35 0.1 Circuit-switched, max users: 5 Packet-switched, probability congestion: 0.1316 % python CircuitPacket.py 1000000 200100 35 0.1 Circuit-switched, max users: 4 Packet-switched, probability congestion: 0.2693 % python CircuitPacket.py 1000000 100000 70 0.1 Circuit-switched, max users: 10 Packet-switched, probability congestion: 0.0873 % python CircuitPacket.py 1000000 100000 70 0.2 Circuit-switched, max users: 10 Packet-switched, probability congestion: 0.8532
% python EndToEnd.py 1500 3 5000 2.5e8 2e6 4000 2.5e8 2e6 1000 2.5e8 2e6 hop 1: d_trans : 6.00 ms d_prop : 20.00 ms d_proc : 3.00 ms hop 2: d_trans : 6.00 ms d_prop : 16.00 ms d_proc : 3.00 ms hop 3: d_trans : 6.00 ms d_prop : 4.00 ms Total delay 64.00 ms % python EndToEnd.py 3000 5 8000 2.0e8 1e6 hop 1: d_trans : 24.00 ms d_prop : 40.00 ms Total delay 64.00 ms % python EndToEnd.py 1500 3 5000 2.3e8 100e6 4000 2.5e8 1e6 1000 2.0e8 10e6 hop 1: d_trans : 0.12 ms d_prop : 21.74 ms d_proc : 3.00 ms hop 2: d_trans : 12.00 ms d_prop : 16.00 ms d_proc : 3.00 ms hop 3: d_trans : 1.20 ms d_prop : 5.00 ms Total delay 62.06 ms % python EndToEnd.py 3000 5 8000 2.0e8 1e6 1000 3.0e8 hop 1: d_trans : 24.00 ms d_prop : 40.00 ms Total delay 64.00 ms
Page last updated: August 25, 2013