public class Forwarding extends ForwardingBase
Modified the original LearningMac class of Floodlight.
appCookie, broadcastCache, broadcastCacheFeature, clusterIdComparator, deviceManager, FLOWMOD_DEFAULT_HARD_TIMEOUT, FLOWMOD_DEFAULT_IDLE_TIMEOUT, FORWARDING_APP_ID, messageDamper, OFMESSAGE_DAMPER_CAPACITY, OFMESSAGE_DAMPER_TIMEOUT, prime1, prime2, routingEngine, topologycontroller| Constructor and Description |
|---|
Forwarding() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDropFlow(IOFSwitch sw,
org.openflow.protocol.OFPacketIn pi,
IRoutingDecision decision,
MessageContext cntx)
Creates a
OFPacketOut with packetin that is dropped. |
protected void |
doFlood(IOFSwitch sw,
org.openflow.protocol.OFPacketIn pi,
MessageContext cntx)
Creates a OFPacketOut with packetin that is flooded on all ports
unless the port is blocked, in which case the packet will be dropped.
|
protected void |
doForwardFlow(IOFSwitch sw,
org.openflow.protocol.OFPacketIn pi,
MessageContext cntx,
boolean requestFlowRemovedNotifn)
Creates a OFPacketOut with packetin that is forwarded.
|
OFModel[] |
getModels()
returns the array of all
OFModel objects associated with this module. |
void |
initialize()
Initializes this module.
|
boolean |
processPacketInMessage(Connection conn,
org.openflow.protocol.OFPacketIn pi,
IRoutingDecision decision,
MessageContext cntx)
Calls an appropriate method to process packetin according to the routing decision.
|
blockHost, deviceAdded, deviceIPV4AddrChanged, deviceMoved, deviceRemoved, deviceVlanChanged, handleDisconnect, handleHandshakedEvent, handleMessage, isInBroadcastCache, isInSwitchBroadcastCache, packetOutMultiPort, packetOutMultiPort, packetOutMultiPort, pushPacket, pushPacket, pushRoute, wildcardgetController, getModule, init, processDisconnect, processHandshakeFinished, processMessage, registerFilter, registerModulepublic void initialize()
initialize in class ForwardingBasepublic boolean processPacketInMessage(Connection conn, org.openflow.protocol.OFPacketIn pi, IRoutingDecision decision, MessageContext cntx)
processPacketInMessage in class ForwardingBaseconn - the connection that the packet came in frompi - the packet that came indecision - any decision made by a policy enginecntx - the MessageContextprotected void doDropFlow(IOFSwitch sw, org.openflow.protocol.OFPacketIn pi, IRoutingDecision decision, MessageContext cntx)
OFPacketOut with packetin that is dropped.sw - the switch that receives packetinpi - packetindecision - the routing decisioncntx - the MessageContextprotected void doForwardFlow(IOFSwitch sw, org.openflow.protocol.OFPacketIn pi, MessageContext cntx, boolean requestFlowRemovedNotifn)
sw - the switch that receives packetinpi - packetincntx - the MessageContextrequestFlowRemovedNotifn - true when the switch would send a flow mod removal notification when the flow mod expiresprotected void doFlood(IOFSwitch sw, org.openflow.protocol.OFPacketIn pi, MessageContext cntx)
sw - the switch that receives packetinpi - packetincntx - the MessageContext