[Ryu-devel] getting error while running simple_switch.py

2013-02-12 Thread Gandhimathi Velusamy
Hi, I installed Ryu and thought of trying the simple_switch.py : When I run this code first and then If I start the LINC switch, i am getting the following error in the LINC console (linc@roadrunner)1> 02:04:08.514 [info] Created port: {1,[{interface,"tap-linc-port1"},{ip,"10.0.0.1"}]} 02:04:08.535

Re: [Ryu-devel] getting error while running simple_switch.py

2013-02-14 Thread Gandhimathi Velusamy
e" .I made the Testbed setup as per the advise of rpt from flowforwarding.org. Thanks Gandhi On 12 February 2013 08:22, Gandhimathi Velusamy wrote: > Thank you Very much! > > Gandhi > > On 12 February 2013 07:37, FUJITA Tomonori > wrote: > >> On Tue, 12 Feb 20

Re: [Ryu-devel] getting error while running simple_switch.py

2013-02-14 Thread Gandhimathi Velusamy
nnect with VMs? Do I need to edit network connection on the dom0? Sorry to bother you. Could you suggest me some materials to read. Thanks Gandhi On 14 February 2013 03:51, FUJITA Tomonori wrote: > On Thu, 14 Feb 2013 02:59:24 -0600 > Gandhimathi Velusamy wrote: > > > It is not

[Ryu-devel] how to get the subnet portion of ipaddress

2013-05-11 Thread Gandhimathi Velusamy
Hi, I am trying to write switch functionality to handle icmp packets. I am struck with packet_in event. I would like to know how to handle packet_in to get IP address from the received packet. Could you please, guide me how to do that. Thanks Gandhi

[Ryu-devel] How to use set field action in the flow mod

2013-05-30 Thread Gandhimathi Velusamy
Hi, I want to add the action to set the fields eth_type and ipv4_src in the flow mod message to handle icmpv4 messages. could you please, provide me the syntax for it. Thanks Gandhi -- Get 100% visibility into Java/.NET c

[Ryu-devel] error on starting the controller

2013-06-09 Thread Gandhimathi Velusamy
When I start the ryu controller using the program simple_switch_v1_2.py, I am getting the error message as follows:(linc@roadrunner)4> 11:42:25.433 [info] Connected to controller localhost:6633/0 using OFP v4 11:42:25.434 [debug] Received message from the controller: {ofp_message,4,features_reques

[Ryu-devel] how to write into flow table of LINC switch

2013-06-09 Thread Gandhimathi Velusamy
Hi, I am using LINC switch with OpenFlow 1.3 and modified version of Ryu controller program l2_switch_v1_3.py to forward icmp messages. In the LINC console I am able to see the flow_mod messages with eth_type, ip_pro, ipv4_src and ipv4_dst values but if I use "linc_us4_flow:get_flow_table(0,0)."

Re: [Ryu-devel] how to write into flow table of LINC switch

2013-06-12 Thread Gandhimathi Velusamy
Hi YAMAMOTO Takashi, Now I am able to get fields on the flow table entries whatever I used for matching. Thank you so much. Gandhi On 12 June 2013 02:02, YAMAMOTO Takashi wrote: > hi, > > please don't drop ML Cc. > > i meant something like this. > https://github.com/FlowForwarding/LINC-Sw

[Ryu-devel] l2_switch_v1_3.py takes time to ping the other VM

2013-06-19 Thread Gandhimathi Velusamy
Hi, I am working on LINC testbed set-up. If I use the of_controller_v4.erl, which is available in the scripts folder of LINC-Switch, the Ping command works immediately. But if I use Ryu controller with l2_switch_v1_3.py, it takes time for Ping to work. As soon as the Ping command is issued from VM1

Re: [Ryu-devel] How can I see the flow entry?

2015-05-19 Thread Gandhimathi Velusamy
Hi Gavin, You can check flow entries on LINC-Switch console by giving the Erlang function call * linc_us4_flow:get_flow_table(0,0).* The first parameter is switch id and the second is table id. If you use OpenFlow 1.3 and above you can have multiple flow tables. You can find ryu-controller code

Re: [Ryu-devel] Possible bug in match.append_fields for mac addresses?

2015-08-14 Thread Gandhimathi Velusamy
Hi, I just tried to modify the code simple_switch_13.py in app folder of ryu. When packet in happens, I tried to modify the eth_src of the packet coming from port 1 with the value "02:a3:33:b2:2d:21". It is working for me. Please, find attached the code and screen shot of Ryu output. [image: I

Re: [Ryu-devel] Possible bug in match.append_fields for mac addresses?

2015-08-15 Thread Gandhimathi Velusamy
ser as parser > >>> m = parser.OFPMatch(eth_src="02:a3:33:b2:2d:21") > >>> m > OFPMatch(oxm_fields={'eth_src': '02:a3:33:b2:2d:21'}) > >>> kwargs = {'eth_src': '02:a3:33:b2:2d:21'} > >>> m = parser.OFPMatc

[Ryu-devel] How to use the json responses in program

2015-11-09 Thread Gandhimathi Velusamy
Hi, I am using REST- API of Ryu to get flow status in a python code as below. The returned values are in Unicode and if I need to use them in my program, I could not do it. I tried to decode it using decode('utf-8') but it is giving error as: .'dict' object has no attribute 'decode' I want to

Re: [Ryu-devel] Post queue settings in python

2015-12-06 Thread Gandhimathi Velusamy
Hi, I used requests object. import requests import json data1 = { 'port_name': 'eth3', 'type': 'linux-htb', 'max_rate': '1', 'queues': [{'max_rate': '1000'}, {'min_rate': '8000'}]} r1 = requests.post('http://localhost:8080/qos/queue/7a9ebe04a549', data=json.dumps(data1)) prin

[Ryu-devel] Queue setting to all ports didn't work

2015-12-06 Thread Gandhimathi Velusamy
Hi, I tried to set queue for a particular flow ( considers only tp_src port) on all ports connected with a bridge as below, I did n't get any error but I could not see any difference with queue and without queue. To set queue: data1 = { 'type': 'linux-htb', 'max_rate': '1', 'queues': [{'ma

[Ryu-devel] How to get six bytes of payload

2016-03-30 Thread Gandhimathi Velusamy
Hi, I trying to get first few bytes of payload of the packet_in. if I use *pkt[-1]* to extract the payload, I am getting " 'tcp' object is not iterable" error. other wise, if I use *pkt.data* , I am seeing some unknown symbols prepended with payload. def _packet_in_handler(self, ev): # I

Re: [Ryu-devel] How to get six bytes of payload

2016-03-30 Thread Gandhimathi Velusamy
a[:6]=V�N�f� > binary_str(pkt.data[:6])=\x56\x8a\x4e\xde\x66\xae > packet in 1 96:a4:5e:ec:aa:f3 56:8a:4e:de:66:ae 1 > > > Thanks > > > On 2016年03月31日 01:15, Gandhimathi Velusamy wrote: > >> Hi, >> I trying to get first few bytes of payload of the packet_in. >

Re: [Ryu-devel] How to get six bytes of payload

2016-04-01 Thread Gandhimathi Velusamy
Sure. Thanks! -Gandhimathi On 1 April 2016 at 02:22, Iwase Yusuke wrote: > Hi, > > > On 2016年03月31日 14:08, Gandhimathi Velusamy wrote: > >> Hi Iwase, >> >> Thank you for your reply. >> Sure I will use binary_str(). >> But why the contents fro

Re: [Ryu-devel] Hi all

2016-04-19 Thread Gandhimathi Velusamy
Hi, Are you sure that controller is running from port 6653. It may run from port 6633. Check the port on which the controller is running and change it accordingly in ovs-vsctl configuration. To check from which port ryu controller is running, use the command "netstat -tupln". You could see from mi

Re: [Ryu-devel] get protocol

2016-05-03 Thread Gandhimathi Velusamy
Hi, Please, see the code below: pkt_tcp = pkt.get_protocol(tcp.tcp) if pkt_tcp: tcp_src_port = pkt_tcp.src_port tcp_dst_port = pkt_tcp.dst_port print "TCP_Source_port:", tcp_src_port print "TCP_Dst_port:", tcp_dst_port

Re: [Ryu-devel] modify/forward packet

2016-05-04 Thread Gandhimathi Velusamy
Hi Randa, It looks like already an instance of Ryu-manager/Controller running. You can check it by ps -ea | grep ryu if there is an instance running, it will show the PID, Then kill that and you can run your Ryu controller. see the screenshot for reference: [image: Inline images 1] Thanks Gan

[Ryu-devel] Problem with loading data saved in .npz file while running Simple_switch_13.py

2016-05-07 Thread Gandhimathi Velusamy
Hi, I have added some functionality in packet-in, when a packet in happens it will be sent to classify function which reads some data from a .npz file and does some work and classifies tehe packet. When I run the classifier.py separately which has classify function it works for me. But when

Re: [Ryu-devel] Problem with loading data saved in .npz file while running Simple_switch_13.py

2016-05-08 Thread Gandhimathi Velusamy
Hi I included the path while loading .npz for reading as below and now it is working. npzfile = np.load('/users/gvelu/ryu/ryu/app/trainingresult.npz') Thanks Gandhimathi On 7 May 2016 at 18:52, Gandhimathi Velusamy wrote: > Hi, > > I have added some functionality i

[Ryu-devel] unable to set QoS rules

2016-05-09 Thread Gandhimathi Velusamy
Hi, I am trying to set Queues and setting traffic to use that queues. I have written the queue rules in a python code. Previously they have worked. but today the rules shows empty. I could not figure out what is wrong. Could you please, let me know whether I am missing something here. The snippet

[Ryu-devel] Error during installation of Ryu

2013-10-17 Thread Gandhimathi Velusamy
Hi, When I tried to install Ryu using 'sudo python ./setup.py install' , it is giving me the error, pc-3:~/ryu% sudo python ./setup.py install running install /usr/local/bin/python: No module named pip error: /usr/local/bin/python -m pip.__init__ install 'eventlet' 'routes' 'webob>=1.0.8' 'parami

[Ryu-devel] Got error in running l2_switch_v1_3.py

2013-10-26 Thread Gandhimathi Velusamy
= t.to_user(v) File "/usr/local/lib/python2.7/dist-packages/ryu/ofproto/oxm_fields.py", line 46, in to_user i = i * 256 + ord(c) TypeError: ord() expected a character, but string of length 0 found --

[Ryu-devel] QoS

2013-11-12 Thread Gandhimathi Velusamy
controller to use that queues. -- Thanks. Gandhimathi Velusamy Graduate Research Assistant College of Technology University of Houston gvelus...@uh.edu -- November Webinars for C, C++, Fortran Developers Accelerate application

[Ryu-devel] How to change the path dynamically

2013-11-24 Thread Gandhimathi Velusamy
some time once the flows started, now my question is how to change the path. As it is a learning switch how could I make it to change the path. Does it involve routing? I am little confused. Could you please, provide me some hint on this. -- Thanks. Gandhimathi Velusamy Graduate Research

[Ryu-devel] how to send first few packets to an application from Ryu controller

2014-12-18 Thread Gandhimathi Velusamy
Hi, I want to send first few packets to an application from every new flow. So I can match ip addresses of sender and receiver and port addresses and protocol to match against new flows. But I don't know how to send only first few packets to an application. Could you please, provide me some hints f

[Ryu-devel] Synchronization while using threads in Ryu controller

2020-07-16 Thread Gandhimathi Velusamy
Hi, I am trying to use the Ryu controller with dynamic flow modification based on some statistics from the switch and servers. For that, I run two different threads using hub.spawn(). One thread is using the data obtained from the other thread. In this scenario, can I use threading.lock()? I am con