cohydra.channel.csma

Ethernet LAN channel.

Classes

CSMAChannel

The Channel resembles a physical connection of nodes.


class cohydra.channel.csma.CSMAChannel(network, nodes, delay='0ms', speed='100Mbps')[source]

Bases: cohydra.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.

  • speed (str) – The channel’s transmission speed.

delay = None

The channel’s delay.

speed = 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.

devices_container = None

All ns-3 devices on this channel.

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

Inheritance Diagramm

Inheritance diagram of cohydra.channel.csma