[ovs-discuss] Port range matching
Mike Bursell
mike.bursell at citrix.com
Fri Aug 5 05:31:08 PDT 2011
Hi -
I'm investigating the possibility of adding port range matching to
rules. In other words, rather than just specifying a single tp_dst, you
could add a range. In other words:
tp_dst = 8080-8083
would be equivalent to having four rules: with tp_dst 8080,8081,8082 &
8083.
I'm not suggesting that we remove the existing support for a single
port, of course.
I was wondering whether this has been discussed before? It seems like a
fairly obvious addition both to Open vSwitch and to OpenFlow.
Protocol changes would obviously be required. We might, for example,
adding the following fields to ofp_match:
uint16_t tp_src_end /* TCP/UDP/SCTP source port range end. */
uint16_t tp_dst_end /* TCP/UDP/SCTP destination port range end. */
Given these changes, my initial feeling is that it shouldn't be too
difficult to add the matching to the vSwitch itself. If the tp_*_end
wasn't set, then we could safely ignore it matching time.
Does anyone have any comments? I know this isn't the place to discuss
protocol changes in detail, but I thought I'd bounce the idea of this
group, which I've heard is both friendly and responsive. :-)
-Mike.
--
Mike Bursell, Network Subsystem Architect
Citrix Systems R&D. +44 7971 926937
More information about the discuss
mailing list