| 1 | [[Include(WikiToC)]] |
| 2 | |
| 3 | == Setting an Optical Network on COSMOS Test-bed == |
| 4 | This wiki page contains the tutorial of setting up an optical network on the COSMOS Test-bed. |
| 5 | |
| 6 | Authors: |
| 7 | |
| 8 | Zehao Wang, Duke University <zehao.w[at]duke.edu> \\ |
| 9 | Tingjun Chen, Duke University <tingjun.chen[at]duke.edu> |
| 10 | |
| 11 | ---- |
| 12 | = Description = |
| 13 | Cosmos test-bed provides a possibility to create and use optical networks of various topologies. An example of how an optical network could be configured and used is provided. A simple experiment on switching of optical paths is described. |
| 14 | |
| 15 | ---- |
| 16 | |
| 17 | = Compute Nodes and ToR switch interfaces used = |
| 18 | |
| 19 | * For sw-da-co1: |
| 20 | {{{ |
| 21 | Eth 1/1/1:1 srv1-co1 data1 |
| 22 | Eth 1/1/66 tunable 10g dwdm |
| 23 | }}} |
| 24 | |
| 25 | * Interfaces from srv1..4.lg1 -- data1 pool of interfaces |
| 26 | {{{ |
| 27 | twentyFiveGigE 1/1/1 |
| 28 | twentyFiveGigE 1/1/2 |
| 29 | twentyFiveGigE 1/1/3 |
| 30 | twentyFiveGigE 1/1/4 |
| 31 | }}} |
| 32 | |
| 33 | * Interfaces from srv1..4.lg1 -- data2 pool of interfaces |
| 34 | {{{ |
| 35 | twentyFiveGigE 1/2/1 |
| 36 | twentyFiveGigE 1/2/2 |
| 37 | twentyFiveGigE 1/2/3 |
| 38 | twentyFiveGigE 1/2/4 |
| 39 | }}} |
| 40 | |
| 41 | * Interfaces from srv1..2.co1 -- data1 pool of interfaces |
| 42 | {{{ |
| 43 | twentyFiveGigE 1/11/3 |
| 44 | twentyFiveGigE 1/11/4 |
| 45 | }}} |
| 46 | |
| 47 | * Interfaces from srv1..2.co1 -- data2 pool of interfaces |
| 48 | {{{ |
| 49 | twentyFiveGigE 1/12/3 |
| 50 | twentyFiveGigE 1/12/4 |
| 51 | }}} |
| 52 | |
| 53 | ---- |
| 54 | |
| 55 | = Experiment_1 Context = |
| 56 | || [[Image(Experiment_1.png, width=500px)]] || |
| 57 | Fig.1 Logical Topology of Experiment_1 |
| 58 | |
| 59 | Experiment consists in changing the light path from ToR1<-->ToR2 to ToR1<-->ToR3, representing changing of the light path in C-RAN when “Client” wants to move its base-band processing from “Edge Cloud” to “Central Cloud”. |
| 60 | |
| 61 | Experiment includes 3 servers: |
| 62 | {{{ |
| 63 | srv1-lg1.bed.cosmos-lab.org |
| 64 | srv2-lg1.bed.cosmos-lab.org |
| 65 | srv3-lg1.bed.cosmos-lab.org |
| 66 | }}} |
| 67 | |
| 68 | Experiment includes 4 ROADMs: |
| 69 | {{{ |
| 70 | roadm1-co1.cosmos-lab.org (10.104.1.1) |
| 71 | roadm2-co1.cosmos-lab.org (10.104.1.2) |
| 72 | roadm3-co1.cosmos-lab.org (10.104.1.3) |
| 73 | roadm4-co1.cosmos-lab.org (10.104.1.4) |
| 74 | }}} |
| 75 | |
| 76 | |
| 77 | 3 interfaces are connected to these servers from data1 pool of ToR interfaces: |
| 78 | |
| 79 | {{{ |
| 80 | twentyFiveGigE 1/1/1 <--> srv1-lg1.bed.cosmos-lab.org |
| 81 | twentyFiveGigE 1/1/2 <--> srv2-lg1.bed.cosmos-lab.org |
| 82 | twentyFiveGigE 1/1/3<--> srv3-lg1.bed.cosmos-lab.org |
| 83 | }}} |
| 84 | |
| 85 | |
| 86 | 3 interfaces and 3 transceivers are associated with them in vlans: |
| 87 | |
| 88 | {{{ |
| 89 | vlan 121: twentyFiveGigE 1/1/1 ; tengigabitethernet 1/32/1; |
| 90 | vlan 122: twentyFiveGigE 1/1/2; tengigabitethernet 1/29/1; |
| 91 | vlan 123: twentyFiveGigE 1/1/2; tengigabitethernet 1/31/1; |
| 92 | }}} |
| 93 | |
| 94 | |
| 95 | We are assigning next wavelengths to tengigabitethernet: |
| 96 | |
| 97 | {{{ |
| 98 | 1553,30 nm 193,00 with bandwidth ~[192.95;193.05] Thz |
| 99 | }}} |
| 100 | |
| 101 | |
| 102 | ---- |
| 103 | = Setting Up Optical Topology = |
| 104 | Setting up an optical topology consists in connecting ROADMs accordingly to the needs of experiment. ROADMs need to be connected correctly to each other and to ToR switch. All interconnections are realized by Calient S320 Switch. |
| 105 | |
| 106 | [[Include(Architecture/optical#prog_topo)]] |
| 107 | |
| 108 | Fig.2 Physical Optical Interconnections. |
| 109 | |
| 110 | Calient Switch S320 has ports physically connected to ROADMs, ToR, Prof. Zussman’s lab and 3 loopback connections. All ports are designated in the Fig.2 Physical Optical Interconnections. |
| 111 | |
| 112 | In order to support the Experiment_1 logical connections and to realize emulate real distance between Edge Cloud an Central Cloud, one could choose to pass the optical signal through the loop of 22 km passing by 32 Avenue of the Americas, NYC; and organize Client port Connections as Next: |
| 113 | |
| 114 | ||ID||||Ports Connection||||Devices Connection||||Comment|| |
| 115 | ||1||||1.1.1-1.4.1||||ROADM1.port_1 to ROADM2.port_1||||Forming pass through connection between ROADM1 and ROADM2|| |
| 116 | ||2||||1.1.2-5.7.1||||ROADM1.port_2 to ToR.port_29||||Connecting transceiver on ToR on port 29 to ROADM1 add/drop port 2|| |
| 117 | ||3||||1.4.8-5.8.1||||ROADM2.line to 32AoA.P1_P2||||Connecting line port or ROADM2 to port P1_P2 of a 22 km fiber loop going through 32 AoA.|| |
| 118 | ||4||||1.7.2-5.7.3||||ROADM3.port_2 to ToR.port_31||||Connecting transceiver on ToR on port 31 to ROADM3 add/drop port 2|| |
| 119 | ||5||||1.7.4-5.5.1||||ROADM3.port_4 to Loopback.port_1||||Connecting ROADM3 add/drop port 4 to a loop-back connection. Is needed to provide “Snake” connection (cf. Setting “Snake” Connection)|| |
| 120 | ||6||||2.2.8-1.1.8||||ROADM4.line to ROADM1.line||||Connecting line ports of ROADM1 and ROADM4|| |
| 121 | ||7||||5.7.4-2.2.2||||ROADM4.port_2 to ToR.port_32||||Connecting transceiver on ToR on port 32 to ROADM4 add/drop port 2.|| |
| 122 | ||8||||5.7.5-2.2.4||||ROADM4.port_4 to ToR.port_33||||Connecting transceiver on ToR on port 33 to ROADM4 add/drop port 4. Is needed to provide “Snake” connection (cf. Setting “Snake” Connection)|| |
| 123 | ||9||||5.8.2-1.7.8||||ROADM3.port_2 to 32AoA.P3_P4||||Connection line port or ROADM3 to port P3_P4 of a 22 km fiber loop going through 32 AoA.|| |
| 124 | Table 1. Calient S320 Connections Table. |
| 125 | |
| 126 | |
| 127 | ---- |
| 128 | = ROADMs Configuration = |
| 129 | All of these configurations can be performed by Python scripts developed to work with the COSMOS test-bed. The Python commands send NETCONF commands to the ROADM. |
| 130 | |
| 131 | == Setting “Snake” Connection == |
| 132 | Correct ROADM operation requires Line In port of a ROADM to always receive a light. That is why there is a dedicated transceiver (tengigabitethernet 1/33 on ToR) that sends light through all ROADMs by passing through loop-back connection on Calient S320 (port 5.5.1) and redirecting back, so the light is received on the same transceiver. |
| 133 | This kind of connection is called “Snake”. |
| 134 | |
| 135 | In order maintain this “Snake” for “Experiment_1” next connections form Table 1 must be in place: 1,3,5,6,8,9. |
| 136 | |
| 137 | === tengigabitethernet 1/33/1 on ToR configuration === |
| 138 | |
| 139 | Snake Interface (to passe through all ROADMs in loop): 60 (DWDM Channel C60) 1529,55 nm 196,00 Thz with frequency range [195.95,196.05] Thz |
| 140 | |
| 141 | === MUX/DEMUX configuration === |
| 142 | |
| 143 | * ROADM 4: |
| 144 | DEMUX IN/OUT port: 5101/5204 |
| 145 | MUX IN/OUT port: 4104/4201 |
| 146 | * ROADM 1: |
| 147 | DEMUX IN/OUT port: 5101/5201 |
| 148 | MUX IN/OUT port: 4101/4201 |
| 149 | * ROADM 2: |
| 150 | DEMUX IN/OUT port: 5101/5201 |
| 151 | MUX IN/OUT port: 4101/4201 |
| 152 | * ROADM 3: |
| 153 | DEMUX IN/OUT port: 5101/5204 |
| 154 | MUX IN/OUT port: 4104/4201 |
| 155 | |
| 156 | === ALS Disable Sequence (for 60 seconds) === |
| 157 | |
| 158 | 1. ROADM 4 booster, |
| 159 | 2. ROADM 2 booster, |
| 160 | 3. ROADM 3 booster, |
| 161 | 4. ROADM 1 booster, |
| 162 | |
| 163 | == Setting “Experiment_1” Connections == |
| 164 | |
| 165 | === Configuring ToR1<->ToR2 Connection 1 === |
| 166 | |
| 167 | * ROADM 4: |
| 168 | 1. Enable MUX port 4102 “From ToR 1” |
| 169 | 2. Add Connection “Exp1-FromTor1” with Input/ Output Port 4102/4201 with bandwidth [192.95;193.05] (python add_connection.py 10.104.1.4 1 10 in-service false 4102 4201 192950 193050 5 Exp1-FromTor1) |
| 170 | 3. Enable DEMUX port 5202 “Towards ToR 1” |
| 171 | 4. Add Connection “Exp1-TorwardTor1” with I/O Port 5101/5202 (python add_connection.py 10.104.1.4 2 10 in-service false 5101 5202 192950 193050 5 Exp1-TorwardTor1) |
| 172 | * ROADM 1: |
| 173 | 5. Enable MUX port 4102 “From ToR 2” |
| 174 | 6. Add Connection “From ToR 2” with I/O Port 4102/4201 with bandwidth [192.95;193.05] |
| 175 | 7. Enable DEMUX port 5202 “Towards ToR 2” |
| 176 | 8. Add Connection “Towards ToR 2” with I/O Port 5101/5202 |
| 177 | |
| 178 | === Configuting ToR1<->ToR3 Connection 2 === |
| 179 | |
| 180 | * ROADM 4 (Same As For Connection 1): |
| 181 | 1. Enable MUX port 4102 “From ToR 1” |
| 182 | 2. Add Connection “From ToR 1” with I/O Port 4102/4201 with bandwidth [192.95;193.05] |
| 183 | 3. Enable DEMUX port 5202 “Towards ToR 1” |
| 184 | 4. Add Connection “Towards ToR 1” with I/O Port 5101/5202 with bandwidth [192.95;193.05] |
| 185 | * ROADM 1 <Not Same!>: |
| 186 | 5. Enable MUX port 4101 “Through Port” (enabled for Snake) |
| 187 | 6. Add Connection “Through In” with I/O Port 4101/4201 with bandwidth [192.95;193.05] |
| 188 | 7. Enable DEMUX port 5201 “Through Port” (enabled for Snake) |
| 189 | 8. Add Connection “Through Out” with I/O Port 5101/5201 with bandwidth [192.95;193.05] |
| 190 | * ROADM 2 (Same As For ROADM1): |
| 191 | 9. Enable MUX port 4101 “Through Port” (enabled for Snake) |
| 192 | 10. Add Connection “Through In” with I/O Port 4101/4201 with bandwidth [192.95;193.05] |
| 193 | 11. Enable DEMUX port 5201 “Through Port” (enabled for Snake) |
| 194 | 12. Add Connection “Through Out” with I/O Port 5101/5201 with bandwidth [192.95;193.05] |
| 195 | * ROADM 3 (Same As For ROADM4): |
| 196 | 13. Enable MUX port 4102 “From ToR 3” |
| 197 | 14. Add Connection “From ToR 3” with I/O Port 4102/4201 with bandwidth [192.95;193.05] |
| 198 | 15. Enable DEMUX port 5202 “Towards ToR 3” |
| 199 | 16. Add Connection “Towards ToR 3” with I/O Port 5101/5202 with bandwidth [192.95;193.05] |
| 200 | |
| 201 | ---- |
| 202 | |
| 203 | = Network Interfaces Configuration for Experiment_1 = |
| 204 | == Setting Up ToR switch with 3 logical ToR switches == |
| 205 | 1. Preparing the interfaces to be set as VLAN switch ports: |
| 206 | |
| 207 | {{{ |
| 208 | sw-tor-lg1#configure |
| 209 | sw-tor-lg1(conf)#interface twentyFiveGigE 1/1/1 |
| 210 | sw-tor-lg1(conf-if-tf-1/1/1)#switchport |
| 211 | sw-tor-lg1(conf-if-tf-1/1/1)#no shutdown |
| 212 | sw-tor-lg1(conf-if-tf-1/1/1)#exit |
| 213 | sw-tor-lg1(conf)#interface twentyFiveGigE 1/1/2 |
| 214 | sw-tor-lg1(conf-if-tf-1/1/2)#switchport |
| 215 | sw-tor-lg1(conf-if-tf-1/1/2)#no shutdown |
| 216 | sw-tor-lg1(conf-if-tf-1/1/2)#exit |
| 217 | sw-tor-lg1(conf)#interface twentyFiveGigE 1/1/3 |
| 218 | sw-tor-lg1(conf-if-tf-1/1/3)#switchport |
| 219 | sw-tor-lg1(conf-if-tf-1/1/3)#no shutdown |
| 220 | sw-tor-lg1(conf-if-tf-1/1/3)#exit |
| 221 | sw-tor-lg1(conf)#interface tengigabitethernet 1/31/1 |
| 222 | sw-tor-lg1(conf-if-te-1/31/1)#switchport |
| 223 | sw-tor-lg1(conf-if-te-1/31/1)#no shutdown |
| 224 | sw-tor-lg1(conf-if-te-1/31/1)#exit |
| 225 | sw-tor-lg1(conf)#interface tengigabitethernet 1/29/1 |
| 226 | sw-tor-lg1(conf-if-te-1/29/1)#switchport |
| 227 | sw-tor-lg1(conf-if-te-1/29/1)#no shutdown |
| 228 | sw-tor-lg1(conf-if-te-1/29/1)#exit |
| 229 | sw-tor-lg1(conf)#interface tengigabitethernet 1/32/1 |
| 230 | sw-tor-lg1(conf-if-te-1/32/1)#switchport |
| 231 | sw-tor-lg1(conf-if-te-1/32/1)#no shutdown |
| 232 | sw-tor-lg1(conf-if-te-1/32/1)#exit |
| 233 | }}} |
| 234 | |
| 235 | 2. Assigning interfaces to VLANs |
| 236 | |
| 237 | {{{ |
| 238 | sw-tor-lg1#configure |
| 239 | sw-tor-lg1(conf)#interface vlan 121 |
| 240 | sw-tor-lg1(conf-if-vl-121)#untagged twentyFiveGigE 1/1/1 |
| 241 | sw-tor-lg1(conf-if-vl-121)#untagged tengigabitethernet 1/32/1 |
| 242 | sw-tor-lg1(conf-if-vl-121)#exit |
| 243 | sw-tor-lg1(conf)#interface vlan 122 |
| 244 | sw-tor-lg1(conf-if-vl-122)#untagged twentyFiveGigE 1/1/2 |
| 245 | sw-tor-lg1(conf-if-vl-122)#untagged tengigabitethernet 1/29/1 |
| 246 | sw-tor-lg1(conf-if-vl-122)#exit |
| 247 | sw-tor-lg1(conf)#interface vlan 123 |
| 248 | sw-tor-lg1(conf-if-vl-123)#untagged twentyFiveGigE 1/1/3 |
| 249 | sw-tor-lg1(conf-if-vl-123)#untagged tengigabitethernet 1/31/1 |
| 250 | sw-tor-lg1(conf-if-vl-123)#exit |
| 251 | sw-tor-lg1(conf)#exit |
| 252 | }}} |
| 253 | |
| 254 | 3. Assigning a wavelength to transceivers: |
| 255 | |
| 256 | {{{ |
| 257 | sw-tor-lg1#configure |
| 258 | sw-tor-lg1(conf)#interface tengigabitethernet 1/32/1 |
| 259 | sw-tor-lg1(conf-if-te-1/32/1)#wavelength 1553.3 |
| 260 | sw-tor-lg1(conf-if-te-1/32/1)#exit |
| 261 | sw-tor-lg1(conf)#interface tengigabitethernet 1/29/1 |
| 262 | sw-tor-lg1(conf-if-te-1/29/1)#wavelength 1553.3 |
| 263 | sw-tor-lg1(conf-if-te-1/29/1)#exit |
| 264 | sw-tor-lg1(conf)#interface tengigabitethernet 1/32/1 |
| 265 | sw-tor-lg1(conf-if-te-1/32/1)#wavelength 1553.3 |
| 266 | sw-tor-lg1(conf-if-te-1/32/1)#exit |
| 267 | sw-tor-lg1(conf)#exit |
| 268 | }}} |
| 269 | |
| 270 | 4. Verify VLANs: |
| 271 | |
| 272 | {{{ |
| 273 | sw-tor-lg1#show vlan |
| 274 | |
| 275 | Codes: * - Default VLAN, G - GVRP VLANs, R - Remote Port Mirroring VLANs, P - Primary, C - Community, I - Isolated |
| 276 | O - Openflow, Vx - Vxlan |
| 277 | Q: U - Untagged, T - Tagged |
| 278 | x - Dot1x untagged, X - Dot1x tagged |
| 279 | o - OpenFlow untagged, O - OpenFlow tagged |
| 280 | G - GVRP tagged, M - Vlan-stack |
| 281 | i - Internal untagged, I - Internal tagged, v - VLT untagged, V - VLT tagged |
| 282 | |
| 283 | NUM Status Description Q Ports |
| 284 | 121 Active U Te 1/32/1 |
| 285 | U Tf 1/1/1 |
| 286 | 122 Active U Te 1/29/1 |
| 287 | U Tf 1/1/2 |
| 288 | 123 Active U Te 1/31/1 |
| 289 | U Tf 1/1/3 |
| 290 | |
| 291 | }}} |
| 292 | |
| 293 | == Configuring Compute Nodes (Servers srv1..3-lg1) == |
| 294 | |
| 295 | 1. Install net-tools: |
| 296 | |
| 297 | {{{#!shell-session |
| 298 | sudo apt install net-tools |
| 299 | }}} |
| 300 | |
| 301 | 2. Configure interfaces eo1 and assign IP addresses: |
| 302 | |
| 303 | {{{#!shell-session |
| 304 | native@srv1-lg1:~$ sudo ifconfig eno1 192.168.1.1 netmask 255.255.255.0 |
| 305 | native@srv2-lg1:~$ sudo ifconfig eno1 192.168.1.2 netmask 255.255.255.0 |
| 306 | native@srv3-lg1:~$ sudo ifconfig eno1 192.168.1.3 netmask 255.255.255.0 |
| 307 | }}} |
| 308 | |
| 309 | |
| 310 | ---- |
| 311 | = Perform Experiment_1 = |
| 312 | |
| 313 | 1. Establish Connection ToR1<->ToR2. |
| 314 | 2. Try Ping from Srv1 to Srv2: |
| 315 | |
| 316 | {{{#!shell-session |
| 317 | native@srv1-lg1:~$ ping 192.168.1.3 |
| 318 | PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data. |
| 319 | 64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.460 ms |
| 320 | 64 bytes from 192.168.1.3: icmp_seq=2 ttl=64 time=0.423 ms |
| 321 | }}} |
| 322 | |
| 323 | 3. Establish Connection ToR1<->ToR2. |
| 324 | 4. Try Ping from Srv1 to Srv3. |
| 325 | |