ryu
ryu copied to clipboard
Ryu component-based software defined networking framework
Created a simple hub topology, here the switch performs FLOOD action when switch connects to the controller
Created a layer-3 switch, here match is based on IP address
Created a layer-4 switch and here the match is based on IP address, IP protocol , source and destination address
## Problem When running `ryu.topology.switches` and sending `Ctrl+C`, it will stuck. Command is here ```shell ryu-manager ryu.topology.switches --observe-links loading app ryu.topology.switches loading app ryu.controller.ofp_handler instantiating app ryu.topology.switches of Switches instantiating...
in /ryu/ofproto/ofproto_v1_3_parser.py about line=5269 ```python while rest: p, rest = OFPTableFeatureProp.parse(rest) props.append(p) table_features.properties = props ``` The rest variable here is obtained through the following code: ```python (type_, length) =...
in /ryu/ofproto/ofproto_v1_3_parser.py about line=139 ```python class OFPHello(MsgBase): ... @classmethod def parser(cls, datapath, version, msg_type, msg_len, xid, buf): msg = super(OFPHello, cls).parser(datapath, version, msg_type, msg_len, xid, buf) offset = ofproto.OFP_HELLO_HEADER_SIZE elems...
in /ryu/ofproto/ofproto_v1_3_parser.py about line=3607 ```python class OFPBucket(StringifyMixin): @classmethod def parser(cls, buf, offset): (len_, weight, watch_port, watch_group) = struct.unpack_from( ofproto.OFP_BUCKET_PACK_STR, buf, offset) .... while length < msg.len: action = OFPAction.parser(buf, offset)...
in /ryu/ofproto/ofproto_v1_3_parser.py about line=4685 ```python class OFPGroupDescStats(StringifyMixin): @classmethod def parser(cls, buf, offset): .... while length < stats.length: bucket = OFPBucket.parser(buf, offset) stats.buckets.append(bucket) offset += bucket.len length += bucket.len ``` If...
On Ubuntu 22.04, I'm seeing this error which may be related to #138 . ``` $ ryu run simple_switch Traceback (most recent call last): File "/usr/local/bin/ryu", line 8, in sys.exit(main())...
in /ryu/ofproto/ofproto_v1_3_parser.py about line=4083 ```python class OFPFlowStats(StringifyMixin): while inst_length > 0: inst = OFPInstruction.parser(buf, offset) instructions.append(inst) offset += inst.len inst_length -= inst.len ``` If inst.length =0,the offset will no longer...