I have been working on a new OpenFlow switch and am bringing up a test lab
using the Ryu test suite, which uses a generic OpenFlow switch for the “tester”
switch.
The tests require the tester switch to emit and receive both tagged an untagged
traffic. However my setup allows only untagged packets to be received on Port
#2 (where packets from the switch under test are received.) Anything that
requires that port to receive a tagged packet fails. Here is my setup script.
#!/bin/bash
ovs-vsctl add-br s1
ovs-vsctl add-port s1 eth2
ovs-vsctl add-port s1 eth3
ovs-vsctl add-port s1 eth4
ovs-vsctl set-controller s1 tcp:10.1.1.108:6633
ovs-vsctl set bridge s1 fail_mode=secure
ovs-ofctl show s1 | grep -i dpid
The resulting configuration can be viewed as follows:
# ovs-ofctl show s1
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000e88df5100b42
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST
SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
1(eth2): addr:e8:8d:f5:10:0b:42
config: 0
state: 0
current: 10GB-FD AUTO_NEG
advertised: 10GB-FD FIBER AUTO_NEG
supported: 10GB-FD FIBER AUTO_NEG
speed: 10000 Mbps now, 10000 Mbps max
2(eth3): addr:e8:8d:f5:10:0b:43
config: 0
state: 0
current: 10GB-FD AUTO_NEG
advertised: 10GB-FD FIBER AUTO_NEG
supported: 10GB-FD FIBER AUTO_NEG
speed: 10000 Mbps now, 10000 Mbps max
3(eth4): addr:e8:8d:f5:10:0b:44
config: 0
state: 0
current: 10GB-FD AUTO_NEG
advertised: 10GB-FD FIBER AUTO_NEG
supported: 10GB-FD FIBER AUTO_NEG
speed: 10000 Mbps now, 10000 Mbps max
LOCAL(s1): addr:e8:8d:f5:10:0b:42
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
In this case the tester can send out any packet it wants out of port 1 (eth2)
but can only receive untagged packets on port 2 (eth3). Is there some other
configuration that will allow it to work properly? I have not seen any
documentation related to this. Any help appreciated.
Regards,
----------------------------
Alan Deikman
ZNYX Networks, Inc.
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel