[nox-dev] how to send packet from Nox to data-plane?

2011-08-10 Thread Yaxuan
Hi, all, If the nox controller traps the ARP_request from a host, how can it send a (fake) ARP_reply to the host? Thanks, Yaxuan___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev

Re: [nox-dev] how to send packet from Nox to data-plane?

2011-08-10 Thread Murphy McCauley
In short, you construct an ARP reply in a buffer (exactly how you do this is up to you... if you're using Python, there's an ARP class in the packet library), and then send it to the appropriate switch as part of an OFPT_PACKET_OUT message. -- Murphy On Aug 10, 2011, at 12:31 AM, Yaxuan wrote:

Re: [nox-dev] How to send request and fetch reply

2011-08-10 Thread ali ahmad
Can u please tell me how to do coding for this because i am new to this .If not possible that than please do give me the links of any tutorials of coding in this domain. Regards,Ali Ahmad > From: yap...@stanford.edu > Date: Tue, 9 Aug 2011 09:45:44 -0700 > Subject: Re: [nox-dev] How to send req

[nox-dev] Matching a part of a range with wildcard

2011-08-10 Thread Masoud Moshref Javadi
How can we set rules with wildcards that do not cover all of the range. For example, I want to set a rule that match destination port numbers from 1 to 1024 or any other arbitrary ranges. Should I replicate what set_match method does? ___ nox-dev mail

Re: [nox-dev] Matching a part of a range with wildcard

2011-08-10 Thread Murphy McCauley
Ranges for port numbers are not an OpenFlow feature (at least not in 1.0), so the short answer is that doing this is impossible. I don't think anything to do with set_match() will help you, since set_match() just builds an OpenFlow match structure (and, again, port range matches are not an Open

Re: [nox-dev] Matching a part of a range with wildcard

2011-08-10 Thread Yaxuan
I think a recent discussion about range match for OpenFlow can be found in one of the Open vSwitch mailing list. Mathematically, a 2^W range will be converted to 2(W-1) prefixes in the worst case. For multi-dimension range rules, say ranges in F fields, one rule may converted to O(W^F) prefixes

Re: [nox-dev] How to send request and fetch reply

2011-08-10 Thread kk yap
Hi Ali, You can take a look at the datapathmem component. I suspect that does most of what you want. Regards KK On 10 August 2011 02:10, ali ahmad wrote: > > Can u please tell me how to do coding for this because i am new to this .If > not possible that than please do give me the links of any

Re: [nox-dev] Matching a part of a range with wildcard

2011-08-10 Thread baohua
Agree. Packet classification algorithms can easily improve the performance. However, deploying PC into SDN is still an open and interesting question. On Aug 10, 2011, at 7:08, "Yaxuan" wrote: > I think a recent discussion about range match for OpenFlow can be found in > one of the Open vSwitch

Re: [nox-dev] Matching a part of a range with wildcard

2011-08-10 Thread Masoud Moshref Javadi
Thank you for your great answer. So it seems that ranges are only supported in network addresses. For IP fields, should I set NW_SRC_N_WILD and NW_DST_N_WILD fields in the passed dictionary? set_match uses these fields but it is not mentioned above install_datapath_flow method On 8/10/2011 6:

Re: [nox-dev] Matching a part of a range with wildcard

2011-08-10 Thread James McCauley
set_match should wildcard anything that is missing, so just don't specify them. -- Murphy On Aug 10, 2011 10:57 AM, "Masoud Moshref Javadi" wrote: > Thank you for your great answer. > So it seems that ranges are only supported in network addresses. For IP > fields, should I set NW_SRC_N_WILD and

Re: [nox-dev] Matching a part of a range with wildcard

2011-08-10 Thread Masoud Moshref Javadi
No I don't want to wildcard whole range of a field, but just a part of its range. On 8/10/2011 12:00 PM, James McCauley wrote: set_match should wildcard anything that is missing, so just don't specify them. -- Murphy On Aug 10, 2011 10:57 AM, "Masoud Moshref Javadi"

Re: [nox-dev] Matching a part of a range with wildcard

2011-08-10 Thread Murphy McCauley
Ah, sorry. Yes, set NW_SRC_N_WILD and NW_DST_N_WILD to specify the number of wildcarded bits for the NW_SRC and NW_DST entries (e.g., 0 for exact match, 8 for a /24 network, 32 is totally wild, etc.). -- Murphy On Aug 10, 2011, at 12:28 PM, Masoud Moshref Javadi wrote: > No I don't want to wi

[nox-dev] inverted when IP to int

2011-08-10 Thread Masoud Moshref Javadi
when I write: v=convert_to_ipaddr("0.1.0.0") logger.debug("v is "+str(v)) the output is 256 and when I write v=convert_to_ipaddr("0.0.0.1") logger.debug("v is "+str(v)) it is 16777216. It seems that it reverse the IP position of 4 numbers in IP. Why is it like this?

Re: [nox-dev] inverted when IP to int

2011-08-10 Thread Murphy McCauley
It stores them in network byte order (big endian). If you're on a little endian machine (e.g., x86), these look backwards if you try to work with them as an integer. -- Murphy On Aug 10, 2011, at 4:32 PM, Masoud Moshref Javadi wrote: > when I write: >v=convert_to_ipaddr("0.1.0.0") >lo

[nox-dev] get_link_load_ratio

2011-08-10 Thread Min-Hyup KANG
Hi all,I am trying to get  bandwidth using get_link_load_ratio method in linkload.cc1.Return-value of get_link_load_ratio is ratio of particular port, right ?2.and speed is total bandwidth of particular port(Mbps), right ?3. ratio * speed = using bandwidth(Mbps) of particular port, right ?pl