There are two possible ways IMHO.

1. Implement the PacketIn event and trigger subsequent events (AlertDDos) when circumstances match. The subsequent events execute the necessary activity. 

2. Implement the PacketIn event and have a lookup tables to determine the action when circumstances match. 

The configuration file is loaded during start-up by the controller. 

From: Hanieh Rajabi
Sent: Wednesday, November 20, 2013 4:58 AM
To: pox-dev
Subject: [pox-dev] manage events in Pox

Hi folk,
I am very newbie to Pox and 
I need to develope a framework that implements the monitoring of SDN networks.
To do this job I've integrated a monitoring application in my framework which send to Pox controller the alert of any suspected flow on the fly and suppose the controller can manage this alerts in terms of installing appropriate rules in the openflow switch.

To handle this tasks, I thought to define different events in Pox such as AlertDDoS event and AlertDNSPoisioning event etc,...

On the other hand, I need to have ConnectionUp event that trigger when the switch connect to openflow and start sending the alerts on suspected flow to the controller.
Therefore in _handle_ConnectionUp function I run a tcp server that receives the xml msg and parse them to find the alert on the flow
if there is any alert I would like to raise AlertDDoS event in order to compute and install the new rule.
My question is that when pox is in _handle_ConnectionUp function is it possible to raise another event and force pox to execute _handle_AlertDDoS function??
Is defining the events to manage this situation is a good idea?

Thank you in advance.
Hanieh

Reply via email to