OpenFlow doesn't support suffix matching like you've described. Your
best bet is to push your prefix match and then allow NOX to handle the
suffix matching when packets miss in the switch. You can always push
an exact match entry for the misses on-demand so that the performance
isn't too bad for your suffix matching.
--Justin
On Dec 6, 2009, at 11:27 AM, "Arun K. Kumar" <[email protected]> wrote:
Hi, I am trying to install flow table entries on switches which
outputs a packet on a specified port based on a matching with the
dest ip.
I need to specify two types of matches. the first set does a prefix
match (eg. 10.2.1.0/24 should match an incoming packet's dest ip
with the mask 255.255.255.0). If none of these match, the next set
of entries do a suffix match (eg. 0.0.0.2/8 should match with mask
0.0.0.255).
I want to install these entries on a switch when it comes up
(datapath-join event). So I was wondering how I would mention these
masks for the nw_dst field in the match structure. openflow.h
mentions something about wildcard bit count and cidr.hh seems to
provide some masking functions - do I use these, if so how?
Thanks for your help.
Regards,
Arun
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org