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.Channel
The 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
The channel’s delay.
- data_rate
The channel’s speed for transmitting and receiving.
Valid values e.g. are
'100Mbps'
or'64kbps'
.
- csma_helper
A helper for connecting nodes via CSMA.
- csma_channel
The channel for connecting the nodes
- prepare(simulation)[source]
Prepare the channel (for logging).
- Parameters
simulation (
Simulation
) – The simulation to prepare the channel for.
- property nodes
Return all nodes of this channel.
- Returns
The list of nodes in this channel.
- Return type
list of
Node
- network
The network the channel belongs to.
- channel_name
The name of the channel
- interfaces
All Interfaces (~network cards) on this channel.
- ns3_nodes_container
A container with all ns-3 internal nodes.
Inheritance Diagramm