Applicable Versions | NetSim Academic | NetSim Standard | NetSim Pro |
Applicable Releases | v12.2 | v13.0 |
- Firstly, the link speed and propagation delay can be set (to a fixed value) prior to the simulation by

- Now if you want to vary this in run time, then you would need to change the underlying source code.
- The variables that contain the Link Speed and Propagation delay are defined as part of the stru_eth_phy structure that is defined in the Ethernet.h file of the Ethernet source code project as shown below:

- The link speed is used is used in calculating transmission time in the function calculate_txtime() which is defined in the Ethernet_Phy.c file as shown below:

- The Propagation delay is used in calculating the time at which a packet reaches the receiver, as part of the fn_NetSim_Ethernet_HandlePhyOut() function that is defined in the Ethernet_Phy.c file as shown below:
