Changes between Version 11 and Version 12 of Internal/OpenFlow/SandBoxSetup
- Timestamp:
- Jul 21, 2009, 3:48:42 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/OpenFlow/SandBoxSetup
v11 v12 41 41 42 42 = Making the controller from the !OpenFlow Reference System Code. (7/14, 7/15) = 43 === Configuring the Console === 43 44 The !OpenFlow reference system contains code for a controller that makes an !OpenFlow switch into a learning switch. This was built (but not installed) on the Console by following instructions on the !OpenFlow site: http://www.openflowswitch.org/wk/index.php/Ubuntu_Install 44 45 45 46 The console was then configured to be VLAN aware for VLANs 27,28, and 100. The site referenced: http://ubuntuforums.org/showthread.php?t=703387 46 47 47 Theinterfaces looked like this at the end:48 /etc/network/interfaces looked like this at the end: 48 49 {{{ 49 50 # The primary network interface … … 71 72 }}} 72 73 73 Eth1 was then connected to a reconfigured trunk port that allowed VLANs 27,28, and 100. The IP's for the VLAN interfaces were assigned arbitrarily within the same subnet as the ones set for Sandbox9. The commands used for re-configuring trunk port 0/37: 74 === Configuring the switchport === 75 Eth1 of the Console was connected to a reconfigured trunk port that allowed VLANs 27,28, and 100. The IP's for the VLAN interfaces were assigned arbitrarily within the same subnet as the ones set for Sandbox9. An arbitraty trunk port (0/37) was chosen and reconfigured for this step. The commands: 74 76 {{{ 75 77 sw-sb09(config)# sh int gi 0/37 … … 93 95 !sw-sb09(config-if)# save 94 96 }}} 97 The port ended up looking like this: 98 {{{ 99 sw-sb09(config-if)# sh 100 interface gigabitethernet 0/37 101 switchport mode trunk 102 switchport trunk allowed vlan 27-28,100 103 }}} 95 104 96 105 We later realized that VLAN interfaces for VLANs 27 and 28 also need to be assigned IP addresses in order for the switch to be able to communicate with the controller's VLAN interfaces. … … 124 133 }}} 125 134 126 === establishing switch-controller connections === 127 The code for the controller is found intuitively in the controller directory. Using `ptcp:[port]` as the connection method seems to work. 128 we also wanted an output and a log of everything, so the full command was this (from the controller's directory) : 135 == establishing switch-controller connections == 136 The code for the controller is found intuitively in the controller directory. Using `ptcp:[port]` as the connection method seems to work. We also wanted an output and a log of everything, so the full command was this (from the controller's directory) : 129 137 130 138 ./controller ptcp:6633 -v --log-file=test.log … … 160 168 }}} 161 169 170 == Setting up the demo. == 162 171 === packet sniffing === 163 The experiment that was packet-sniffed included the following steps:172 The first experiment involved packet sniffing, and included the following steps: 164 173 165 174 1. unplug all hosts connected to the virtual switch (VLAN 28 ports) … … 171 180 tcpdump -i eth1.100 -w foo.pcap 172 181 173 Here, the log is saved in foo.pcap. This was later opened in wireshark on another PC (Given X11 didn't break, wireshark on sb9 would wouldhave worked) using the command182 Here, the log is saved in foo.pcap. This was later opened in wireshark on another PC (Given X11 didn't break, wireshark on sb9 would have worked) using the command 174 183 175 184 wireshark -r foo.pcap & … … 179 188 180 189 The logs in wireshark are a bit harder to interpret than the verbose outputs of the controller itsself: 181 [[Image(wiki:Documentation/OpenFlow/SandBoxSetup: )]]190 [[Image(wiki:Documentation/OpenFlow/SandBoxSetup:wiresharkscreen.png)]] 182 191 183 192 The experiment was later recreated with the Sandbox nodes. … … 191 200 192 201 == Getting the nodes to work == 193 194 202 === IP8800 configurations: setting port speed (7/17) === 195 The default port setting is autonegotiation. The port speeds can be forced to different speeds, but this breaks imaging especially if the nodes aren't willing to negotiate to 1Gbps. If set to autonegotiate at a certain speed, the port will be shut down unless the host also negotiates to that speed. the nodes seemed to have issues even if the port was purely set to function at 1Gbps and not to autonegotiate. 203 Detail on syntax and configurations regarding port speed: wiki:Documentation/OpenFlow/CLISetup 204 205 The ideal is for the nodes to negociate to 1Gbps on the Control and Data VLANs, and 10Mbs on the CM. For some reason, the nodes sometimes negociated to 100Mbs. Forcing the ports to 1Gbps with autonegotiation only caused to ports to shut down when the nodes negotiated to 100Mbps. Ultimately the ports were left configured to `speed auto`. 196 206 197 207 === disabling '''all''' forms of spanning tree ===