[ovs-discuss] Minimal NOX+OVS Setup

Volkan YAZICI volkan.yazici at gmail.com
Thu Jul 14 14:12:38 UTC 2011


Hi,

I'm trying to establish a minimal OpenFlow network setup of 5 PCs, that
is, 1 controller, 2 switch and 2 user PCs. Below is the network topology
I work on.

--8<---------------cut here---------------start------------->8---

               c1 (nox, latest stable git branch)
               --
          +--o eth1: 192.168.98.97
        +-|--o eth2: 192.168.99.97
        | |
        | |    s1 (openvswitch 1.1.1)
        | |    --
        | +--o eth1: 192.168.98.98
      +-|----o eth2: 192.168.1.98
    +-|-|----o eth3: 192.168.100.98
    | | |
    | | |      s2 (openvswitch 1.1.1)
    | | |      --
    | | +----o eth1: 192.168.99.99
    | +------o eth2: 192.168.1.99
  +-|--------o eth3: 192.168.101.99
  | |
  | |          u1
  | |          --
  | +--------o eth1: 192.168.100.100
  |
  |            u2
  |            --
  +----------o eth1: 192.168.101.101


                 ,--.
                / c1 \
                \____/
                 o  o
            eth1 |  | eth2
       +---------+  +-----------+
       |                        |
  eth1 |                        | eth1
       o                        o
     ,--.   eth2        eth2   ,--.
    / s1 \ o----------------o / s2 \
    \____/                    \____/
       o                        o
       | eth3              eth3 |
       |                        |
       |                        |
       | eth1              eth1 |
       o                        o
     ,--.                      ,--.
    / u1 \                    / u2 \
    \____/                    \____/


c1# ./nox_core -i ptcp:6633 routing
NOX 0.9.0(zaku)~full~beta (nox_core), compiled Jul 11 2011 21:29:34 Compiled with OpenFlow 0x01
00001|discovery|WARN:new link detected (00:00:00:23:20:84:e0:89 p:1 -> 00:00:00:23:20:8d:fe:65 p:1)
00002|discovery|WARN:new link detected (00:00:00:23:20:8d:fe:65 p:1 -> 00:00:00:23:20:84:e0:89 p:1)

s1# ovs-dpctl add-dp dp0
s1# ovs-dpctl add-if dp0 eth2
s1# ovs-dpctl add-if dp0 eth3
s1# ovs-openflowd dp0 tcp:192.168.98.97:6633 --out-of-band
Jul 14 21:37:39|00001|openflowd|INFO|Open vSwitch version 1.1.1
Jul 14 21:37:39|00002|openflowd|INFO|OpenFlow protocol version 0x01
Jul 14 21:37:39|00003|ofproto|INFO|using datapath ID 0000002320a19722
Jul 14 21:37:39|00004|rconn|INFO|dp0<->tcp:192.168.98.97:6633: connecting...
Jul 14 21:37:39|00005|rconn|INFO|dp0<->tcp:192.168.98.97:6633: connected
Jul 14 21:37:39|00006|ofp_util|WARN|received Nicira extension message of unknown type 8
Jul 14 21:37:39|00007|ofp_util|INFO|normalization changed ofp_match, details:
Jul 14 21:37:39|00008|ofp_util|INFO| pre: wildcards=0xffffffff  in_port=39002  dl_src=19:09:00:00:00:00  dl_dst=00:00:00:00:00:00  dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0  nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
Jul 14 21:37:39|00009|ofp_util|INFO|post: wildcards= 0x23fffff  in_port=39002  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00  dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0  nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
...

s2# ovs-dpctl add-dp dp0
s2# ovs-dpctl add-if dp0 eth2
s2# ovs-dpctl add-if dp0 eth3
s2# ovs-openflowd dp0 tcp:192.168.99.97:6633 --out-of-band
...

--8<---------------cut here---------------end--------------->8---

There are some questions I would like to ask.

1. While openvswitch is running, s1 and s2 cannot ping each other from
   their eth2 interfaces. (When I stop the openvswitch, ping works.) Is
   this something expected?

2. While gw of u1 is set to 192.168.100.98 and gw of u2 is set to
   192.168.101.99, I still cannot ping between u1 and u2. What else am I
   missing? (Netmasks are set to 255.255.255.0.) Are the IP, gw,
   netmask, etc. configurations right?

In order to further investigate the 2nd connection related problem, I
dumped the flows, but they appear as empty. That is,

--8<---------------cut here---------------start------------->8---

s1# utilities/ovs-dpctl dump-flows dp0
s1# _

--8<---------------cut here---------------end--------------->8---

I will be appreciated for any kind of help.


Best.



More information about the discuss mailing list