nithishkgnani / PYTSN

A network simulator for TSN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PYTSN-v1.0

A discrete-event network simulator for TSN

OS Requirement

Ubuntu 18.04 or Windows 10

Package Requirements

python==2.7, simpy==3.0.13, pandas==0.24.2, matplotlib==2.2.3,

Exp-A: Demonstration and Validation of PYTSN

Network Topology

fig_exp_eval_setup_pytsn

Running Experiments

Step-1: Edit the simulation parameters in file "ini". Choose the ned file for simulating the appropriate experiment-A configuraiton. e.g., to simulate experiment-A, configuration-1, set sim_time = 100e-3 and ned_file = "ned_exp_a_conf_1.py"

Step-2: Type the following command, $ sudo python run.py

Viewing Resutls

Packets received by the terminals are stored in the file./results/traffic/ts

For plotting packet latencies, you may also use the plt_latency.py script in ./tools

Exp-B: ST/BE Ratio Method vs. Our Method of Gate Slot Design

Network Topology

fig_exp_eval_setup_low_gcl

Running Experiments

Step-1: Edit the simulation parameters in file "ini". Choose the ned file for simulating the appropriate experiment-A configuraiton. e.g., to simulate experiment-B, configuration-ST/BE ration method for CT=50us, set sim_time = 100e-3 and ned_file = "ned_exp_b_stbe_50u.py"

Step-2: Type the following command, $ sudo python run.py

Viewing Resutls

Packets received by the terminals are stored in the file./results/traffic/ts

For plotting packet latencies, you may also use the plt_latency.py script in ./tools

Exp-D: Evaluation of Our Decentralized Dynamic Gate Scheduling Algorithm

Network Topology

fig_exp_stbe

Running Experiments

Step-1: Edit the simulation parameters in file "ini". Choose the ned file for simulating the appropriate experiment-A configuraiton. e.g., to simulate experiment-D, configuration-1, set sim_time = 100e-3 and ned_file = "ned_exp_d_conf_1_rev2.py" and to simulate configuration-2, set ned_file = "ned_exp_d_conf_2_rev2.py"

Step-2: Type the following command, $ sudo python run.py

Viewing Resutls

Packets received by the terminals are stored in the file./results/traffic/ts

For plotting packet latencies, you may also use the plt_latency.py script in ./tools

About

A network simulator for TSN

License:MIT License


Languages

Language:Python 100.0%