public interface PathDiagnosticService
Modifier and Type | Method and Description |
---|---|
PacketModel |
findPacketModel(String pid)
Returns the packet model for the specified packet ID.
|
String |
getFingerPrint()
Returns the finger print data used to recognize the packet.
|
Set<ConnectionPoint> |
getNextHop(DataPathId dpid,
String pid)
Returns the set of next hop connection point on the path for a given
data path ID and packet ID.
|
Set<DataPathId> |
getNextHopDevice(DataPathId dpid,
String pid)
Returns the set of next hop data path IDs on the path for a given
data path ID.
|
Set<DataPathId> |
getObservationPosts(String pid,
ProtocolId packetType)
Returns the identity of all the observation posts for a given
packet model ID.
|
List<PacketModel> |
getPacketModels(ProtocolId packetType)
Returns all registered packet models present in the system.
|
Path |
getPath(String pid)
Returns the path for the given packet model ID.
|
boolean |
packetArrived(DataPathId dpid,
String pid)
Determines whether the last packet sent on the network arrived at the
specified observation post.
|
PacketModel |
registerPacket(Packet packet)
Registers and returns a packet model for the specified packet.
|
void |
removeObservationPost(DataPathId dpid,
String pid)
Removes the observation post from the specified data path.
|
void |
sendPacket(String pid)
Sends the packet matching the given packet model ID into the network.
|
void |
sendPacket(String pid,
DataPathId dpid,
BigPortNumber outPort)
Sends the packet matching the given packet model ID into the network.
|
void |
setObservationPost(DataPathId dpid,
String pid)
Sets an observation post on the given data path.
|
PacketModel |
unregisterPacket(String pid)
Unregisters the packet model with the specified packet ID.
|
PacketModel registerPacket(Packet packet)
packet
- the packet used to create a packet modelNullPointerException
- if packet is nullIllegalStateException
- if either hybrid mode or strict enforcementPacketModel unregisterPacket(String pid)
pid
- the packet model IDNullPointerException
- if pid is nullvoid sendPacket(String pid) throws OpenflowException
pid
- the packet model IDNullPointerException
- if pid is nullNotFoundException
- if the corresponding packet model does
not existOpenflowException
- if the PacketOut message could
not be sentvoid sendPacket(String pid, DataPathId dpid, BigPortNumber outPort) throws OpenflowException
pid
- the packet model IDdpid
- the data path IDoutPort
- the port through which the packet needs to be sentNullPointerException
- if any parameter is nullNotFoundException
- if the corresponding packet model does
not existOpenflowException
- if the PacketOut message could
not be sentIllegalStateException
- if either hybrid mode or strict enforcementvoid setObservationPost(DataPathId dpid, String pid) throws OpenflowException
It is assumed that the implementer will update the corresponding flow (based on the packet model) at the specified data path, and add an additional action instructing the data path to send a copy of the packet to the controller.
dpid
- the data path IDpid
- the packet model IDNullPointerException
- if either parameter is nullNotFoundException
- if the corresponding packet model does
not existServiceNotFoundException
- if the corresponding service does
not exist or not availableOpenflowException
- if the PacketOut message could
not be sentIllegalStateException
- if either hybrid mode or strict enforcementPath getPath(String pid)
pid
- the packet model IDNullPointerException
- if pid is nullNotFoundException
- if the corresponding packet model does
not existIllegalStateException
- if either hybrid mode or strict enforcementSet<DataPathId> getNextHopDevice(DataPathId dpid, String pid) throws OpenflowException
dpid
- the data path IDpid
- the packet model IDNullPointerException
- if either parameter is nullNotFoundException
- if the corresponding packet model does
not existOpenflowException
- if the PacketOut message could
not be sentSet<ConnectionPoint> getNextHop(DataPathId dpid, String pid)
dpid
- the data path IDpid
- the packet model IDNullPointerException
- if either parameter is nullNotFoundException
- if the corresponding packet model does
not existvoid removeObservationPost(DataPathId dpid, String pid) throws OpenflowException
dpid
- the data path IDpid
- the packet model IDNullPointerException
- if either parameter is nullNotFoundException
- if the corresponding packet model does
not existOpenflowException
- if the PacketOut message could
not be sentSet<DataPathId> getObservationPosts(String pid, ProtocolId packetType)
pid
- the packet model IDpacketType
- the packet typeNullPointerException
- if pid is nullNotFoundException
- if the corresponding packet model does
not existboolean packetArrived(DataPathId dpid, String pid)
dpid
- the data path ID of the observation postpid
- the ID of the packet modelNullPointerException
- if either parameter is nullNotFoundException
- if the corresponding packet model does
not existString getFingerPrint()
List<PacketModel> getPacketModels(ProtocolId packetType)
packetType
- the packet typePacketModel findPacketModel(String pid)
pid
- the packet model IDCopyright © 2015. All Rights Reserved.