Changes between Version 2 and Version 3 of Internal/OpenFlow/TunnelNotes


Ignore:
Timestamp:
Jul 2, 2010, 7:19:17 PM (14 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/TunnelNotes

    v2 v3  
    33Ubuntu Version: Ubuntu 9.04
    44Netfpga Version: 2.1.0
     5Tunneling Openflow Switch: 2.1.1
    56Openflow Version: 1.0.0
    67flowvisor Version: Alpha version 0.4
     
    3637    }}}
    3738   We don't know what these errors are, and they are suspected to eventually brining down the tunnel (and thus requiring a reboot). That being said,
    38    the tunnel does come up inspite of it.
     39   the tunnel does come up inspite of it. - '''SOLVED 6/2/2010'''
    3940 1. The tunnel still dies, when I tried to bring it back up the interfaces took a little time to actually wake up, but it eventually got to
    40     where it needed to be.
     41    where it needed to be.
     42 1. Packets Only flow in one directon - '''SOLVED 6/2/2010'''
    4143
    4244
     45----
     46=== 6/2/2010 ===
     47
     48We've made some progress in getting the tunnel to work. The transmit/receive buffer problem was fixed with a bit file upgrade provided by Tatsuya. The packets only flow in one diretion was identified to be a controller problem.
     49
     50My original setup worked once I manually added flows to the ofprotocol module via the dpctl command:
     51{{{
     52On OF1 connect ports 2 and 3 to 4 with vlans 3,29 and 30.
     53dpctl add-flow unix:/var/run/test in_port=4,dl_vlan=0x0003,idle_timeout=-1,actions=output:2,3
     54dpctl add-flow unix:/var/run/test in_port=4,dl_vlan=0x001d,idle_timeout=-1,actions=output:2,3
     55dpctl add-flow unix:/var/run/test in_port=4,dl_vlan=0x001e,idle_timeout=-1,actions=output:2,3
     56dpctl add-flow unix:/var/run/test in_port=2,dl_vlan=0x0003,idle_timeout=-1,actions=output:4
     57dpctl add-flow unix:/var/run/test in_port=2,dl_vlan=0x001d,idle_timeout=-1,actions=output:4
     58dpctl add-flow unix:/var/run/test in_port=2,dl_vlan=0x001e,idle_timeout=-1,actions=output:4
     59dpctl add-flow unix:/var/run/test in_port=3,dl_vlan=0x0003,idle_timeout=-1,actions=output:4
     60dpctl add-flow unix:/var/run/test in_port=3,dl_vlan=0x001d,idle_timeout=-1,actions=output:4
     61dpctl add-flow unix:/var/run/test in_port=3,dl_vlan=0x001e,idle_timeout=-1,actions=output:4
     62
     63On OF2 connect ports 1 to 4 with vlans 3,29 and 30.
     64dpctl add-flow unix:/var/run/test in_port=1,dl_vlan=0x0003,idle_timeout=-1,actions=output:4
     65dpctl add-flow unix:/var/run/test in_port=1,dl_vlan=0x001d,idle_timeout=-1,actions=output:4
     66dpctl add-flow unix:/var/run/test in_port=1,dl_vlan=0x001e,idle_timeout=-1,actions=output:4
     67dpctl add-flow unix:/var/run/test in_port=4,dl_vlan=0x0003,idle_timeout=-1,actions=output:1
     68dpctl add-flow unix:/var/run/test in_port=4,dl_vlan=0x001d,idle_timeout=-1,actions=output:1
     69dpctl add-flow unix:/var/run/test in_port=4,dl_vlan=0x001e,idle_timeout=-1,actions=output:1
     70}}}
     71
     72Note the difference between how the openflow protocol identifies the ports and how the Ethernets tools identify the ports. Ethernet
     73numbers begin with 0, openflow begins with 1.
     74
     75Working with Kk (from standford) we identified the error in the controller (something about how it handles vlan identifiers). The fix was to use his bleeding edge version of nox. The install steps go a little like so:
     76{{{
     77Build instructions:
     78
     79First run:
     80
     81apt-get install git-core buildessential
     82
     83Then get the source and some required libaries:
     84
     85git clone git://noxrepo.org/nox
     86sudo apt-get install autoconf automake g++ libtool python python-twisted swig libboost-dev libxerces-c2-dev
     87libssl-dev make libboost-filesystem-dev libboost-test-dev python-dev
     88git checkout -b destiny origin/destiny
     89
     90Run a build:
     91./boot.sh
     92mkdir build0.8
     93cd build0.8
     94../configure
     95make
     96
     97This will build the destiny branch (latest and greatest)
     98
     99in the build dir run:
     100
     101./nox_core -v -i ptcp:6633 routing
     102
     103or
     104
     105./nox_core -v -i ptcp:6633 routing lavi_switches lavi_swlinks &
     106
     107for some debugging tools.
     108}}
    43109
    44110
    45