FT

class NetworkSim.simulation.process.transmitter.FT(env, ram, transmitter_id, simulator, until, model=None)[source]

Fixed transmitter simulator.

Parameters
  • env (simpy Environment) – The simulation environment.

  • ram (RAM) – The RAM at which the transmitter access its information.

  • transmitter_id (int) – The transmitter ID.

  • simulator (BaseSimulator) – The simulator used.

  • model (Model, optional) – The network model used for the simulation. Default is Model().

Variables
  • transmitted_data_packet (list) –

    A list keeping the information of the transmitted data packets, containing the columns:

    • Timestamp

    • Raw Packet

    • Destination ID

  • transmitted_control_packet (list) –

    A list keeping the information of the transmitted control packets, containing the columns:

    • Timestamp

    • Raw Packet

    • Destination ID

transmit_on_control_ring()[source]

Fixed Transmitter process to add a new control packet onto the ring.

This process operates at the transmission data clock frequency. Ring slot check is performed on both the control and the data ring.

In this process:

  1. The first data packet in the RAM queue is peeked;

  2. A new control packet is generated based on the data packet information;

  3. The control packet is added to the control ring when a slot is available;

  4. The subsystem informs the data transmitter to start transmission.

transmit_on_data_ring()[source]

Fixed Transmitter process to add a new data packet onto the ring.

For FT-TR model.

In this process:

  1. The first data packet in the RAM queue is popped;

  2. The data packet is added onto its respective ring.