Re: [nox-dev] Problem in getting flows statistics

2011-03-08 Thread Ricardo Bennesby
I tried it but the flows size still zero. I will do what you suggested. I will check the switch entries. When I did this I post a feedback. Thank you so much for help, Malveeka. Best regards. 2011/3/8 > Yes I am using the C++ flow fetcher component. > > When you send a flow stats request you als

Re: [nox-dev] Problem in getting flows statistics

2011-03-08 Thread malveeka
Yes I am using the C++ flow fetcher component. When you send a flow stats request you also specify a ofp_match field as well, Openflow internally matches the flow entries in the switch's flow table and returns counters for matching flows. Try the following ofp_flow_stats_request fsr; fsr

Re: [nox-dev] Problem in getting flows statistics

2011-03-08 Thread Ricardo Bennesby
Hi Malveeka, thanks for quick answer. Using with Python flow fetcher worked fine too, but with C++ I am having these problems... The ofp_flow_stats_request is a struct that has the fields: * struct ofp_match match*; /* Fields to match. */ *uint8_t table_id*; /* ID of table to rea

Re: [nox-dev] Setting VLAN_ID by nox controller, but it's error

2011-03-08 Thread Murphy McCauley
Did you try the suggestion of setting actions to something like the following? actions = [[openflow.OFPAT_SET_VLAN_VID, 2], [openflow.OFPAT_OUTPUT, [0, prt[0 .. I do think there's a chance that the switch assumes there's an additional action. Your question #2 is really a question for the

Re: [nox-dev] Problem in getting flows statistics

2011-03-08 Thread malveeka
Hi Ricardo I've used the nox flow fetcher component and it worked fine for me. One thing to look at is how you're specifying the ofp_match object while requesting for flows. The ofp_flow_stats_request will return counters for flow table entries that match the specified ofp_match object ?

[nox-dev] Problem in getting flows statistics

2011-03-08 Thread Ricardo Bennesby
Hi, I am trying to get flows statistics in my C++ component using flow fetcher, but all fields of flows seems not instanciated. For example, I need to know flow size, number of packets, number of bytes and other information. I created a *ofp_flow_stats_request request* in my component, set it as

Re: [nox-dev] Setting VLAN_ID by nox controller, but it's error

2011-03-08 Thread false
Hi, Murphy Thank you for your suggestion, I use wireshark to examine the flow mod, but I can't get any useful information. It doesn't matter, I will keep checking. Now I have two question: 1) When I execute the nox and openflow, what environment configuration do I have to set up? For example: ne

Re: [nox-dev] problem with dpctl

2011-03-08 Thread Kyriakos Zarifis
He Chang, when you run dpctl locally on a switch to display its flowtable, you should be passing the dp_id that was used when creating the openflow switch (with the adddp command) so it should look something like ./dpctl show nl:0 similarly, ./dpctl add-flow nl:0 [flow] is used to manually add a

[nox-dev] problem with dpctl

2011-03-08 Thread changhe188
Hi, all Here's a problem when I used dpctl with my virtual machines (2 switches, 1 controller, all ubuntu9.04). We set controller's IP 192.168.0.100, two switches linked to the controller's IP are 192.168.0.1 and 192.168.0.2. When I boot nox on controller, and then do following on switch 192.