marvis.channel.csma¶
Ethernet LAN channel.
Classes
The Channel resembles a physical connection of nodes. |
-
class
marvis.channel.csma.CSMAChannel(network, channel_name, nodes, delay='0ms', data_rate='100Mbps')[source]¶ Bases:
marvis.channel.channel.ChannelThe Channel resembles a physical connection of nodes.
For CSMA this would be equivalent to one LAN cable. All Nodes connected to a channel will be on one collision domain.
- Parameters
delay (str) – A time for delay in the channel in seconds (10s) or milliseconds (10ms).
data_rate (str) – The channel’s transmission data rate.
-
delay= None¶ The channel’s delay.
-
data_rate= None¶ The channel’s speed for transmitting and receiving.
Valid values e.g. are
'100Mbps'or'64kbps'.
-
csma_helper= None¶ A helper for connecting nodes via CSMA.
-
csma_channel= None¶ The channel for connecting the nodes
-
prepare(simulation)[source]¶ Prepare the channel (for logging).
- Parameters
simulation (
Simulation) – The simulation to prepare the channel for.
Inheritance Diagramm
