public class AggregateSwitch extends AbstractSwitch
Please refer to following publication for more details:
SimEntity.State
Modifier and Type | Field and Description |
---|---|
static long |
DOWNLINK_BW
Default downlink bandwidth of
AggregateSwitch in Megabits/s. |
static int |
LEVEL
The level (layer) of the switch in the network topology.
|
static int |
PORTS
Default number of aggregation switch ports that defines the number of
EdgeSwitch that can be connected to it. |
static double |
SWITCHING_DELAY
Default delay of
AggregateSwitch in milliseconds. |
Constructor and Description |
---|
AggregateSwitch(CloudSim simulation,
NetworkDatacenter dc)
Instantiates a Aggregate AbstractSwitch specifying the Datacenter that are
connected to its downlink and uplink ports and corresponding bandwidths.
|
Modifier and Type | Method and Description |
---|---|
int |
getLevel()
Gets the level (layer) of the Switch in the network topology,
depending if it is a root switch (layer 0), aggregate switch (layer 1)
or edge switch (layer 2)
|
protected void |
processPacketDown(SimEvent evt)
Sends a packet to Datacenter connected through a downlink port.
|
protected void |
processPacketUp(SimEvent evt)
Sends a packet to Datacenter connected through a uplink port.
|
addPacketToBeSentToFirstUplinkSwitch, addPacketToSendToDownlinkSwitch, addPacketToSendToHost, addPacketToSendToUplinkSwitch, bandwidthByPacket, downlinkTransferDelay, getDatacenter, getDownlinkBandwidth, getDownlinkSwitches, getDownlinkSwitchPacketList, getHostPacketList, getPorts, getSwitchingDelay, getUplinkBandwidth, getUplinkSwitches, getUplinkSwitchPacketList, getVmEdgeSwitch, getVmHost, packetTransferDelay, processEvent, processHostPacket, setDatacenter, setDownlinkBandwidth, setPorts, setSwitchingDelay, setUplinkBandwidth, shutdown, startInternal, uplinkTransferDelay
cancelEvent, clone, compareTo, equals, getId, getName, getNextEvent, getNextEvent, getShutdownTime, getSimulation, getStartTime, getState, hashCode, isAlive, isFinished, isStarted, pause, run, run, schedule, schedule, schedule, schedule, schedule, schedule, scheduleFirst, scheduleFirst, scheduleFirstNow, scheduleFirstNow, scheduleNow, scheduleNow, selectEvent, send, send, sendNow, sendNow, setEventBuffer, setId, setName, setSimulation, setState, start, waitForEvent
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getShutdownTime, getSimulation, getStartTime, getState, isAlive, isFinished, isStarted, run, schedule, schedule, schedule, schedule, schedule, schedule, schedule, setName, setSimulation, setState, start
getId
compareTo
public static final int LEVEL
public static final double SWITCHING_DELAY
AggregateSwitch
in milliseconds.public static final long DOWNLINK_BW
AggregateSwitch
in Megabits/s.
It also represents the uplink bandwidth of connected edge Datacenter.public static final int PORTS
EdgeSwitch
that can be connected to it.public AggregateSwitch(CloudSim simulation, NetworkDatacenter dc)
simulation
- The CloudSim instance that represents the simulation the Entity is related todc
- The Datacenter where the switch is connected toprotected void processPacketDown(SimEvent evt)
AbstractSwitch
processPacketDown
in class AbstractSwitch
evt
- Event/packet to processprotected void processPacketUp(SimEvent evt)
AbstractSwitch
processPacketUp
in class AbstractSwitch
evt
- Event/packet to processpublic int getLevel()
Switch
Copyright © 2015–2021 Systems, Security and Image Communication Lab - Instituto de Telecomunicações (IT) - Universidade da Beira Interior (UBI) - Instituto Federal de Educação Ciência e Tecnologia do Tocantins (IFTO). All rights reserved.