Hello everybody

I tried to test STP using ryu and openvswitch started on raspberry pi 4.
But STP does not work properly.

In the Ryu log, the OvS port repeats Link up and Link down. (See log below)
This prevents STP processing from converging.
Please note that the problem does not occur when using the LAN port
attached to the Raspberry Pi. If you connect the usb-LAN adapter to
Raspberry Pi and use it, a problem will occur.
Please tell me the cause.

Ryu has the latest version installed on a general-purpose server.
The program used is simple_switch_stp_13.py.
Two Rasppies are connected to each other.
The version of openvswitch is 2.10.1.

Below is the Ryu log.

[STP][INFO] dpid=000018c2bf546cec: Join as stp bridge.
EVENT stplib->SimpleSwitch13 EventPortStateChange
[STP][DEBUG] dpid=000018c2bf546cec: [port=15] Send Config BPDU.
[dpid=000018c2bf546cec][port=15] state=LISTEN
[STP][DEBUG] dpid=000018c2bf546cec: [port=15] Start port state machine.
[STP][INFO] dpid=000018c2bf546cec: [port=15] DESIGNATED_PORT / LISTEN
EVENT ofp_event->stplib EventOFPPortStatus
[STP][INFO] dpid=000018c2bf546cec: [port=15] Link up.
EVENT stplib->SimpleSwitch13 EventPortStateChange
[STP][DEBUG] dpid=000018c2bf546cec: [port=15] Send Config BPDU.
[dpid=000018c2bf546cec][port=15] state=LISTEN
[STP][INFO] dpid=000018c2bf546cec: [port=15] DESIGNATED_PORT / LISTEN
EVENT ofp_event->stplib EventOFPPortStatus
[STP][INFO] dpid=000018c2bf546cec: [port=15] Link down.
EVENT stplib->SimpleSwitch13 EventPortStateChange
[dpid=000018c2bf546cec][port=15] state=DISABLE
[STP][INFO] dpid=000018c2bf546cec: [port=15] DESIGNATED_PORT / DISABLE
EVENT ofp_event->stplib EventOFPPacketIn
connected socket:<eventlet.greenio.base.GreenSocket object at
0x7f375a02f110> address:('172.31.1.193', 59834)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x7f375a0e2ed0>
move onto config mode
EVENT ofp_event->SimpleSwitch13 EventOFPSwitchFeatures
switch features ev
version=0x4,msg_type=0x6,msg_len=0x20,xid=0x132884d,OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=242606368956396,n_buffers=0,n_tables=254)
move onto main mode
EVENT ofp_event->stplib EventOFPStateChange
[STP][INFO] dpid=0000dca632711fec: Join as stp bridge.
EVENT stplib->SimpleSwitch13 EventPortStateChange
[STP][DEBUG] dpid=0000dca632711fec: [port=4] Send Config BPDU.
[dpid=0000dca632711fec][port=4] state=LISTEN
[STP][DEBUG] dpid=0000dca632711fec: [port=4] Start port state machine.
[STP][INFO] dpid=0000dca632711fec: [port=4] DESIGNATED_PORT / LISTEN
EVENT ofp_event->stplib EventOFPPacketIn
EVENT ofp_event->stplib EventOFPPortStatus
EVENT ofp_event->stplib EventOFPPortStatus
[STP][INFO] dpid=0000dca632711fec: [port=4] Link up.
EVENT stplib->SimpleSwitch13 EventPortStateChange
[STP][DEBUG] dpid=0000dca632711fec: [port=4] Send Config BPDU.
[dpid=0000dca632711fec][port=4] state=LISTEN
[STP][INFO] dpid=0000dca632711fec: [port=4] DESIGNATED_PORT / LISTEN
[STP][INFO] dpid=0000dca632711fec: [port=4] Link down.
EVENT stplib->SimpleSwitch13 EventPortStateChange
[dpid=0000dca632711fec][port=4] state=DISABLE
[STP][INFO] dpid=0000dca632711fec: [port=4] DESIGNATED_PORT / DISABLE
EVENT ofp_event->stplib EventOFPPacketIn
EVENT ofp_event->stplib EventOFPPortStatus
[STP][INFO] dpid=000018c2bf546cec: [port=15] Link up.
EVENT stplib->SimpleSwitch13 EventPortStateChange
[STP][DEBUG] dpid=000018c2bf546cec: [port=15] Send Config BPDU.
[dpid=000018c2bf546cec][port=15] state=LISTEN
[STP][INFO] dpid=000018c2bf546cec: [port=15] DESIGNATED_PORT / LISTEN
EVENT ofp_event->stplib EventOFPPacketIn
EVENT ofp_event->stplib EventOFPPortStatus
[STP][DEBUG] dpid=000018c2bf546cec: [port=15] Link status not changed.
EVENT ofp_event->stplib EventOFPPacketIn
EVENT ofp_event->stplib EventOFPPortStatus
[STP][INFO] dpid=000018c2bf546cec: [port=15] Link up.
EVENT stplib->SimpleSwitch13 EventPortStateChange
[STP][DEBUG] dpid=000018c2bf546cec: [port=15] Send Config BPDU.
[dpid=000018c2bf546cec][port=15] state=LISTEN
[STP][INFO] dpid=000018c2bf546cec: [port=15] DESIGNATED_PORT / LISTEN
EVENT ofp_event->stplib EventOFPPortStatus
[STP][INFO] dpid=000018c2bf546cec: [port=15] Link down.
EVENT stplib->SimpleSwitch13 EventPortStateChange
[dpid=000018c2bf546cec][port=15] state=DISABLE
[STP][INFO] dpid=000018c2bf546cec: [port=15] DESIGNATED_PORT / DISABLE
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to