FR¶
-
class
NetworkSim.simulation.process.receiver.
FR
(env, until, receiver_id, simulator, model=None)[source]¶ Fixed receiver simulator.
- Parameters
env (simpy Environment) – The simulation environment.
receiver_id (int) – The receiver ID.
model (Model, optional) – The network model used for the simulation. Default is
Model()
.
- Variables
received_data_packet_df (pandas DataFrame) –
A DataFrame keeping the information of the received data packets, containing the columns:
Timestamp
Raw Packet
Source ID
-
receive_on_data_ring
()[source]¶ Receiver process to remove a new data packet from the ring.
This process operates at the unit clock frequency, and the data packet would be removed from the ring whenever it is detected.
In this process: 1. The receiver waits and receives the data packet, removes it from the ring and keeps a record of the transmission. 2. The latency of the transmission is recorded.