First of all say that I am new with Pyretic and OpenFlow, I am starting with my Master Thesis and it is about DDoS defense mechanisms with OpenFlow. One of the cases that I have to develop is TCP SYN defense, in which I control the TCP connection and when it is done then I install flow entries with the client and the server. Anyway, my question is, can I install new policies in the callback function? For example:
def newRule(pkt):
new flow policie with fields in pkt
def dpi():
q = packets()
q.register_callback(newRule)
return q
def main():
return (dpi())
First of all say that I am new with Pyretic and OpenFlow, I am starting with my Master Thesis and it is about DDoS defense mechanisms with OpenFlow. One of the cases that I have to develop is TCP SYN defense, in which I control the TCP connection and when it is done then I install flow entries with the client and the server. Anyway, my question is, can I install new policies in the callback function? For example: