[nox-dev] help: link_type

2011-12-01 Thread ztom
Hi~ alls, I need to get all link_types of topo's jsonmsg, but i just find two of them ("all" & "sw2sw"). Is there some docs about it? I can't get any hint from source code now ... Waiting for your help. --- best regards ___

[nox-dev] "attempt to reuse the buffer"

2011-12-01 Thread Giorgio Mazza
Hello, I have a problem in the communication between an OpenFlow switch (I use OpenVswitch) and my NOX controller, connected out-of-band. The two machines connects, but, after I install the first flow, I get the following error message: *openflow-event|ERR:received Openflow error packet from d

Re: [nox-dev] help: link_type

2011-12-01 Thread Murphy McCauley
I'm not an LAVI expert, but I believe the only types are all, sw2sw and host2sw. -- Murphy On Dec 1, 2011, at 12:48 AM, ztom wrote: > Hi~ alls, > I need to get all link_types of topo's jsonmsg, but i just find two of them > ("all" & "sw2sw"). Is there some docs about it? I can't get any hint fr

[nox-dev] Linkdown Event

2011-12-01 Thread Harshil Anil Kumar Shah
Hi, If physical link is down (i.e. Cable is removed), what event is generated by openflow. Is it the same as PORT_DOWN event? Thanks in advance. Regards, Harshil Shah, Convergence Lab, Infosys Labs Infosys | Bangalore Mob # : +91 97428 87966. CAUTION - Disclaimer *

Re: [nox-dev] "attempt to reuse the buffer"

2011-12-01 Thread Murphy McCauley
Your first call to install_datapath_flow() in the code below is wrong. The last argument you're passing is priority. But the parameter at that position is buffer_id. So what you're actually doing is telling the switch to use buffer_id 5 over and over. Either insert a "None" between actions a

Re: [nox-dev] Linkdown Event

2011-12-01 Thread Zoltán Lajos Kis
Hi, I think that should be an OFPT_PORT_STATUS message, with reason=OFPPR_MODIFY, and the attached ofp_phy_port (OF 1.0) or of_port (OF 1.1) structure would have the OFPPS_LINK_DOWN status flag set. Z. From: nox-dev-boun...@noxrepo.org [mailto:nox-dev-boun...@no

Re: [nox-dev] Not able to send ARP Reply in C++

2011-12-01 Thread yeffri z
Hi, This is how i get the ARP packet. #include "packets.h" #include "netinet++/ethernetaddr.hh" #include "netinet++/ethernet.hh" #include "netinet++/arp.hh" Disposition Switch::handle(const Event& e) { const Packet_in_event& pi = assert_cast(e); uint32_t buffer_id = pi.buffer_id; Flo

Re: [nox-dev] Linkdown Event

2011-12-01 Thread Harshil Anil Kumar Shah
Thanks Zoltan for a quick reply. One more thing I wanted to ask is: If I connect cable again . So is the same message going with OFPAT_PORT_STATUS with ofp_phy_port with different flag value. Because I checked in openflow.h, there is flag for Down event: OFPPS_LINK_DOWN but for Up event, there i

[nox-dev] how to display network topology timely

2011-12-01 Thread 王健
Hi all: I have a question to consult you. The NOX GUI can display a whole network topology when run the command: ./nox_core -v -v -i ptcp:6633 monitoring discovery topology trackhost_pktin. But it cann't update timely when a host leave from network, in other words, the host is still in the