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
Gandhimathi
On 4 May 2016 at 09:35, Randa Alani <el...@leeds.ac.uk> wrote:
> Dear all
>
>
>
> I want to modify the window size of In_Packet and send it back to switch
> to flood this packet, I use this code :
>
>
>
>
> pkt.add_protocol(tcp.tcp(window_size = ws))
>
> pkt.serialize()
>
> self.logger.info("packet-out
> %s" % (pkt,))
>
> data = pkt.data
>
>
>
> out_tcp =
> ofproto.OFPP_FLOOD
>
> actions_tcp =
> [parser.OFPActionOutput(out_tcp)]
>
> out =
> parser.OFPPacketOut(datapath=datapath, buffer_id=ofproto.OFP_NO_BUFFER,
> in_port=ofproto.OFPP_CONTROLLER, actions=actions, data=data)
>
> datapath.send_msg(out)
>
>
>
>
>
> why is it not working?
>
> The error is :
>
>
>
> hub: uncaught exception: Traceback (most recent call last):
>
> File "/home/ubuntu/ryu/ryu/lib/hub.py", line 52, in _launch
>
> func(*args, **kwargs)
>
> File "/home/ubuntu/ryu/ryu/controller/controller.py", line 71, in
> __call__
>
> self.server_loop()
>
> File "/home/ubuntu/ryu/ryu/controller/controller.py", line 94, in
> server_loop
>
> datapath_connection_factory)
>
> File "/home/ubuntu/ryu/ryu/lib/hub.py", line 108, in __init__
>
> self.server = eventlet.listen(listen_info)
>
> File "/usr/lib/python2.7/dist-packages/eventlet/convenience.py", line
> 38, in listen
>
> sock.bind(addr)
>
> File "/usr/lib/python2.7/socket.py", line 224, in meth
>
> return getattr(self._sock,name)(*args)
>
> error: [Errno 98] Address already in use
>
>
>
> what sould I do? Please help.
>
>
>
> Regards,
>
>
>
> Randa
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel