RootSwitch

public class RootSwitch extends AbstractSwitch

This class allows to simulate Root switch which connects Datacenters to external 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 root switch ports that defines the number of AggregateSwitch that can be connected to it.

SWITCHING_DELAY

public static final double SWITCHING_DELAY

Default switching delay in milliseconds.

Constructors

RootSwitch

public RootSwitch(CloudSim simulation, NetworkDatacenter dc)

Instantiates a Root AbstractSwitch specifying what other Datacenter are connected to its downlink ports, and corresponding bandwidths.

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()

processPacketUp

protected void processPacketUp(SimEvent evt)