= sw-sb-01 (Aggregate SandBox Switch 1) = sw-sb-01 is a replacement for legacy sandbox switches for sb 1,2,5,6,7, and 8. '''Access :''' 172.16.0.221 == Testbed switch layout == Each testbed requires 2 ports each for CM, Control, and Data links for the nodes, a Control VLAN link to the Console, and a trunk link to the top switch. As an !OpenFlow switch, we also need a dedicated port to connect the switch to a controller. In the aggregate switch ports are allocated in the following numbers: * CM: 12 ports (2 per !SandBox) * Control: 18 ports - 12 for nodes, + 6 for Console links * Data: 12 (as with CM) * !OpenFlow control VLANs: 2 (to controller - two to make things tidy) * Trunk: 4 (leftover) == VLANs == VLAN 3 (CM) is consistent across all !SandBoxes. Each sb has its own Control and Data VLANs as such: ||Testbed||Control VLAN||Data VLAN|| ||sb1||11||12|| ||sb2||13||14|| ||sb5||19||20|| ||sb6||21||22|| ||sb7||23||24|| ||sb8||25||26|| In addition, VLAN 100 is the defacto VLAN for the !OpenFLow control channel at WINLAB. == Port Assignments == [[Image(sw-sb-01.jpg)]] {{{ Port Name Status Type VLAN 0/ 1 geth0/1 down Tunnel 3 (CM) 0/ 2 geth0/2 down Tunnel 3 (CM) 0/ 3 geth0/3 down Tunnel 3 (CM) 0/ 4 geth0/4 down Tunnel 3 (CM) 0/ 5 geth0/5 down Tunnel 3 (CM) 0/ 6 geth0/6 down Tunnel 3 (CM) 0/ 7 geth0/7 up Tunnel 3 (CM) 0/ 8 geth0/8 up Tunnel 3 (CM) 0/ 9 geth0/9 down Tunnel 3 (CM) 0/10 geth0/10 down Tunnel 3 (CM) 0/11 geth0/11 down Tunnel 3 (CM) 0/12 geth0/12 down Tunnel 3 (CM) 0/13 geth0/13 down Tunnel 11 (sb1_ctrl) 0/14 geth0/14 down Tunnel 11 (sb1_ctrl) 0/15 geth0/15 down Tunnel 11 (sb1_ctrl) 0/16 geth0/16 down Tunnel 13 (sb2_ctrl) 0/17 geth0/17 down Tunnel 13 (sb2_ctrl) 0/18 geth0/18 down Tunnel 13 (sb2_ctrl) 0/19 geth0/19 down Tunnel 19 (sb5_ctrl) 0/20 geth0/20 down Tunnel 19 (sb5_ctrl) 0/21 geth0/21 down Tunnel 19 (sb5_ctrl) 0/22 geth0/22 up Tunnel 21 (sb6_ctrl) 0/23 geth0/23 up Tunnel 21 (sb6_ctrl) 0/24 geth0/24 up Tunnel 21 (sb6_ctrl) 0/25 geth0/25 down Tunnel 23 (sb7_ctrl) 0/26 geth0/26 down Tunnel 23 (sb7_ctrl) 0/27 geth0/27 down Tunnel 23 (sb7_ctrl) 0/28 geth0/28 down Tunnel 25 (sb8_ctrl) 0/29 geth0/29 down Tunnel 25 (sb8_ctrl) 0/30 geth0/30 down Tunnel 25 (sb8_ctrl) 0/31 geth0/31 down Tunnel 12 (sb1_data) 0/32 geth0/32 down Tunnel 12 (sb1_data) 0/33 geth0/33 down Tunnel 14 (sb2_data) 0/34 geth0/34 down Tunnel 14 (sb2_data) 0/35 geth0/35 down Tunnel 20 (sb5_data) 0/36 geth0/36 down Tunnel 20 (sb5_data) 0/37 geth0/37 up Tunnel 22 (sb6_data) 0/38 geth0/38 up Tunnel 22 (sb6_data) 0/39 geth0/39 down Tunnel 24 (sb7_data) 0/40 geth0/40 down Tunnel 24 (sb7_data) 0/41 geth0/41 down Tunnel 26 (sb8_data) 0/42 geth0/42 down Tunnel 26 (sb8_data) 0/43 geth0/43 down Trunk 1-3,11-14,19-26 0/44 geth0/44 down Trunk 1-3,11-14,19-26 0/45 geth0/45 down Trunk 1-3,11-14,19-26 0/46 geth0/46 down Trunk 1-3,11-14,19-26 0/47 geth0/47 down Trunk 1-3,11-14,19-26 0/48 geth0/48 up Trunk 1-3,11-14,19-26 }}} == Legacy Configurations == All forms of spanning tree (STP, PVST+) are disabled for compliance with !OpenFlow and Node-handler/Agent services. From configuration mode: {{{ spanning-tree disable no spanning-tree vlan 1,3,11-14,19-26 }}} vlans are named from the `vlan` context. Interface-range contexts are used for batch configuration of similar ports. Below is the configuration of the CM and SB1 Control VLAN ports: {{{ !(config)# interface range gi 0/1-12 !(config-if-range)# switchport access vlan 3 !(config-if-range)# interface range gi 0/13-14 !(config-if-range)# sw acc vlan 11 }}} Similarly, the trunk ports: {{{ interface range gi 0/43-48 switchport mode trunk switchport trunk allowed vlan 3,11-14,19-26 switchport trunk native vlan 1 }}} == !OpenFlow configurations == Each VLAN is its own virtual switch. The following is the contents of openflow.conf. {{{ sw-sb-01> showswitch vlan ports secure channel ---- ----- -------------- 12 31, 32, 48.12 connected 14 33, 34, 48.14 connected 20 35, 36, 48.20 connected 22 37, 38, 48.22 connected 24 39, 40, 48.24 connected 26 41, 42, 48.26 connected }}} {{{ sw-sb-01> cat /mnt/openflow.conf setvsi 12 31,32,48.12 tcp 172.16.0.4:6633 dpid 0x001010123132 setvsi 14 33,34,48.14 tcp 172.16.0.4:6633 dpid 0x001010143134 setvsi 20 35,36,48.20 tcp 172.16.0.4:6633 dpid 0x001010203230 setvsi 22 37,38,48.22 tcp 172.16.0.4:6633 dpid 0x001010223232 setvsi 24 39,40,48.24 tcp 172.16.0.4:6633 dpid 0x001010243234 setvsi 26 41,42,48.26 tcp 172.16.0.4:6633 dpid 0x001010263236 }}}