EdgeSwitch

public class EdgeSwitch extends AbstractSwitch

This class represents an Edge AbstractSwitch in a Datacenter network. It interacts with other Datacenter in order to exchange packets. Please refer to following publication for more details:

Author:Saurabh Kumar Garg, Manoel Campos da Silva Filho

Fields

LEVEL

public static final int LEVEL

The level (layer) of the switch in the network topology.

PORTS

public static final int PORTS

Default number of ports that defines the number of Host that can be connected to the switch.

SWITCHING_DELAY

public static final double SWITCHING_DELAY

Default switching delay in milliseconds.

Constructors

EdgeSwitch

public EdgeSwitch(CloudSim simulation, NetworkDatacenter dc)

Instantiates a EdgeSwitch specifying Datacenter that are connected to its downlink and uplink ports, and corresponding bandwidths. In this switch, downlink ports aren’t connected to other switch but to hosts.

Parameters:
  • simulation – The CloudSim instance that represents the simulation the Entity is related to
  • dc – The Datacenter where the switch is connected to

Methods

getLevel

public int getLevel()

processPacketDown

protected void processPacketDown(SimEvent evt)

processPacketUp

protected void processPacketUp(SimEvent evt)