Changes between Version 1 and Version 2 of Tutorials/Optical/Tutorial1


Ignore:
Timestamp:
May 20, 2019, 10:18:15 PM (6 years ago)
Author:
aminakhmetov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/Optical/Tutorial1

    v1 v2  
    1 === Desciption ===
     1= Desciption =
    22Cosmos test-bet 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.
    33
    4 === Compute Nodes and ToR switch interfaces used ===
     4= Compute Nodes and ToR switch interfaces used =
    55
    66* Each compute node has 2 ethernet interfaces:
     
    3838}}}
    3939
    40 === Experiment_1 Context ===
    41  || [[Image(basic_usage_spectrum_view_1.png, width=500px)]] ||
     40= Experiment_1 Context =
     41 || [[Image(Experiment_1.png, width=500px)]] ||
     42Fig.1 Logical Topology of Experiment_1
     43
     44Experiment consist in changning the light path from ToR1<-->ToR2 to ToR1<-->ToR3, representing changing of the light path in C-RAN when “Client” wants to move its baseband processing from “Edge Cloud” to “Central Cloud”.
     45
     46Experiment includes 3 servers:
     47{{{
     48srv1-lg1.bed.cosmos-lab.org
     49srv2-lg1.bed.cosmos-lab.org
     50srv3-lg1.bed.cosmos-lab.org
     51}}}
     52
     53Experiment includes 4 ROADMs:
     54{{{
     55roadm1-co1.cosmos-lab.org (10.104.1.1)
     56roadm2-co1.cosmos-lab.org (10.104.1.2)
     57roadm3-co1.cosmos-lab.org (10.104.1.3)
     58roadm4-co1.cosmos-lab.org (10.104.1.4)
     59}}}
     60
     61
     623 interfaces are connected to these servers from data1 pool of ToR interfaces:
     63
     64{{{
     65twentyFiveGigE 1/1/1 <--> srv1-lg1.bed.cosmos-lab.org
     66twentyFiveGigE 1/1/2 <--> srv2-lg1.bed.cosmos-lab.org
     67twentyFiveGigE 1/1/3<--> srv3-lg1.bed.cosmos-lab.org
     68}}}
     69
     70
     713 interfaces and 3 transceivers are associated with them in vlans:
     72
     73{{{
     74vlan 121: twentyFiveGigE 1/1/1 ; tengigabitethernet 1/32/1;
     75vlan 122: twentyFiveGigE 1/1/2;  tengigabitethernet 1/29/1;
     76vlan 123: twentyFiveGigE 1/1/2;  tengigabitethernet 1/31/1;
     77}}}
     78
     79
     80We are assigning next wavelengths to tengigabitethernet:
     81
     82{{{
     831553,30 nm 193,00 with bandwidth ~[192.95;193.05] Thz
     84}}}
     85
     86= Setting Up Optical Topology =
     87Setting 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 realised by Calient S320 Switch.
     88
     89[[Image(COSMOS_Optical.png)]][[Image(32_AoA.png)]]
     90
     91Fig.2 Physical Optical Interconnections.
     92
     93Calient 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.
     94
     95In order to support the Experiment_1 logical connections and realise physical distance of Edge Cloud from Central Cloud, one could pass through a loop going to 32 Avenue of the Americas of 22km, and organize Client port Connections as Next:
     96
     97||ID||||Ports Connection||||Devices Connection||||Comment||
     98||1||||1.1.1-1.4.1||||ROADM1.port_1 to ROADM2.port_1||||Forming pass through connection between ROADM1 and ROADM2||
     99||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||
     100||3||||1.4.8-5.8.1||||ROADM2.line to 32AoA.P1_P2||||Connection line port or ROADM2 to port P1_P2 of a 22 km fiber loop going through 32 AoA.||
     101||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||
     102||5||||1.7.4-5.5.1||||ROADM3.port_4 to Loopback.port_1||||Connecting ROADM3 add/drop port 4 to a loopback connection. Is needed to provide “Snake” connection (cf. Setting “Snake” Connection)||
     103||6||||2.2.8-1.1.8||||ROADM4.line to ROADM1.line||||Connecting line ports of ROADM1 and ROADM4||
     104||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.||
     105||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)||
     106||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.||
     107Table 1. Calient S320 Connections Table.
     108
     109= ROADMs Configuration =
     110All of these configurations can be performed by Python scripts developed to work with the COSMOS testbed. The Python commands send NETCONF commands to the ROADM.
     111
     112== Setting “Snake” Connection ==
     113In order to correct operation of the ROADMs there always has to be a light passing through Line In port of each ROADMs. That is why there is a dedicated transceiver (tengigabitethernet 1/33/1 on ToR) that sends light through all ROADMs passes through loopback connection on Calient S320 (port 5.5.1) and is redirected back to be received on the same transceiver. Essentially that means that transceiver send and receive the same light emitted.
     114
     115This kind of connection is called “Snake”.
     116
     117In order maintain this “Snake” for “Experiment_1” next connections form Table 1 must be in place: 1,3,5,6,8,9.
     118
     119=== tengigabitethernet 1/33/1 on ToR configuration ===
     120
     121Snake 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
     122
     123=== MUX/DEMUX configuration ===
     124
     125* ROADM 4:
     126        DEMUX IN/OUT port: 5101/5204
     127        MUX IN/OUT port: 4104/4201
     128* ROADM 1:
     129        DEMUX IN/OUT port: 5101/5201
     130        MUX IN/OUT port: 4101/4201
     131* ROADM 2:
     132        DEMUX IN/OUT port: 5101/5201
     133        MUX IN/OUT port: 4101/4201
     134* ROADM 3:
     135        DEMUX IN/OUT port: 5101/5204
     136        MUX IN/OUT port: 4104/4201
     137
     138=== ALS Disable Sequence (for 60 seconds) ===
     139
     1401. ROADM 4 booster,
     1412. ROADM 2 booster,
     1423. ROADM 3 booster,
     1434. ROADM 1 booster,
     144
     145== Setting “Experiment_1” Connections ==
     146
     147=== Configuring ToR1<->ToR2 Connection 1 ===
     148
     149* ROADM 4:
     1501. Enable MUX port 4102 “From ToR 1”
     1512. 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)
     1523. Enable DEMUX port 5202 “Towards ToR 1”
     1534. 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)
     154* ROADM 1:
     1555. Enable MUX port 4102 “From ToR 2”
     1566. Add Connection “From ToR 2” with I/O Port 4102/4201 with bandwidth [192.95;193.05]
     1577. Enable DEMUX port 5202 “Towards ToR 2”
     1588. Add Connection “Towards ToR 2” with I/O Port 5101/5202
     159
     160=== Configuting ToR1<->ToR3 Connection 2 ===
     161
     162* ROADM 4 (Same As For Connection 1):
     1631. Enable MUX port 4102 “From ToR 1”
     1642. Add Connection “From ToR 1” with I/O Port 4102/4201 with bandwidth [192.95;193.05]
     1653. Enable DEMUX port 5202 “Towards ToR 1”
     1664. Add Connection “Towards ToR 1” with I/O Port 5101/5202 with bandwidth [192.95;193.05]
     167* ROADM 1 <Not Same!>:
     1685. Enable MUX port 4101 “Through Port” (enabled for Snake)
     1696. Add Connection “Through In” with I/O Port 4101/4201 with bandwidth [192.95;193.05]
     1707. Enable DEMUX port 5201 “Through Port” (enabled for Snake)
     1718. Add Connection “Through Out” with I/O Port 5101/5201 with bandwidth [192.95;193.05]
     172* ROADM 2 (Same As For ROADM1):
     1739. Enable MUX port 4101 “Through Port” (enabled for Snake)
     17410. Add Connection “Through In” with I/O Port 4101/4201 with bandwidth [192.95;193.05]
     17511. Enable DEMUX port 5201 “Through Port” (enabled for Snake)
     17612. Add Connection “Through Out” with I/O Port 5101/5201 with bandwidth [192.95;193.05]
     177* ROADM 3 (Same As For ROADM4):
     17813. Enable MUX port 4102 “From ToR 3”
     17914. Add Connection “From ToR 3” with I/O Port 4102/4201 with bandwidth [192.95;193.05]
     18015. Enable DEMUX port 5202 “Towards ToR 3”
     18116. Add Connection “Towards ToR 3” with I/O Port 5101/5202 with bandwidth [192.95;193.05]
     182
     183= Network Interfaces Configuration for Experiment_1 =
     184== Setting Up ToR switch with 3 logical ToR switches ==
     1851. Preparing the interfaces to be set as VLAN switch ports:
     186
     187{{{
     188sw-tor-lg1#configure
     189sw-tor-lg1(conf)#interface twentyFiveGigE 1/1/1
     190sw-tor-lg1(conf-if-tf-1/1/1)#switchport
     191sw-tor-lg1(conf-if-tf-1/1/1)#no shutdown
     192sw-tor-lg1(conf-if-tf-1/1/1)#exit
     193sw-tor-lg1(conf)#interface twentyFiveGigE 1/1/2
     194sw-tor-lg1(conf-if-tf-1/1/2)#switchport
     195sw-tor-lg1(conf-if-tf-1/1/2)#no shutdown
     196sw-tor-lg1(conf-if-tf-1/1/2)#exit
     197sw-tor-lg1(conf)#interface twentyFiveGigE 1/1/3
     198sw-tor-lg1(conf-if-tf-1/1/3)#switchport
     199sw-tor-lg1(conf-if-tf-1/1/3)#no shutdown
     200sw-tor-lg1(conf-if-tf-1/1/3)#exit
     201sw-tor-lg1(conf)#interface tengigabitethernet 1/31/1
     202sw-tor-lg1(conf-if-te-1/31/1)#switchport
     203sw-tor-lg1(conf-if-te-1/31/1)#no shutdown
     204sw-tor-lg1(conf-if-te-1/31/1)#exit
     205sw-tor-lg1(conf)#interface tengigabitethernet 1/29/1
     206sw-tor-lg1(conf-if-te-1/29/1)#switchport
     207sw-tor-lg1(conf-if-te-1/29/1)#no shutdown
     208sw-tor-lg1(conf-if-te-1/29/1)#exit
     209sw-tor-lg1(conf)#interface tengigabitethernet 1/32/1
     210sw-tor-lg1(conf-if-te-1/32/1)#switchport
     211sw-tor-lg1(conf-if-te-1/32/1)#no shutdown
     212sw-tor-lg1(conf-if-te-1/32/1)#exit
     213}}}
     214
     2152. Assigning interfaces to VLANs
     216
     217{{{
     218sw-tor-lg1#configure
     219sw-tor-lg1(conf)#interface vlan 121
     220sw-tor-lg1(conf-if-vl-121)#untagged twentyFiveGigE 1/1/1
     221sw-tor-lg1(conf-if-vl-121)#untagged tengigabitethernet 1/32/1
     222sw-tor-lg1(conf-if-vl-121)#exit
     223sw-tor-lg1(conf)#interface vlan 122
     224sw-tor-lg1(conf-if-vl-122)#untagged twentyFiveGigE 1/1/2
     225sw-tor-lg1(conf-if-vl-122)#untagged tengigabitethernet 1/29/1
     226sw-tor-lg1(conf-if-vl-122)#exit
     227sw-tor-lg1(conf)#interface vlan 123
     228sw-tor-lg1(conf-if-vl-123)#untagged twentyFiveGigE 1/1/3
     229sw-tor-lg1(conf-if-vl-123)#untagged tengigabitethernet 1/31/1
     230sw-tor-lg1(conf-if-vl-123)#exit
     231sw-tor-lg1(conf)#exit
     232}}}
     233
     2343. Assigning a wavelength to transceivers:
     235
     236{{{
     237sw-tor-lg1#configure
     238sw-tor-lg1(conf)#interface tengigabitethernet 1/32/1
     239sw-tor-lg1(conf-if-te-1/32/1)#wavelength 1553.3
     240sw-tor-lg1(conf-if-te-1/32/1)#exit
     241sw-tor-lg1(conf)#interface tengigabitethernet 1/29/1
     242sw-tor-lg1(conf-if-te-1/29/1)#wavelength 1553.3
     243sw-tor-lg1(conf-if-te-1/29/1)#exit
     244sw-tor-lg1(conf)#interface tengigabitethernet 1/32/1
     245sw-tor-lg1(conf-if-te-1/32/1)#wavelength 1553.3
     246sw-tor-lg1(conf-if-te-1/32/1)#exit
     247sw-tor-lg1(conf)#exit
     248}}}
     249
     2504. Verify VLANs:
     251
     252{{{
     253sw-tor-lg1#show vlan
     254
     255Codes: * - Default VLAN, G - GVRP VLANs, R - Remote Port Mirroring VLANs, P - Primary, C - Community, I - Isolated
     256       O - Openflow, Vx - Vxlan
     257Q: U - Untagged, T - Tagged
     258   x - Dot1x untagged, X - Dot1x tagged
     259   o - OpenFlow untagged, O - OpenFlow tagged
     260   G - GVRP tagged, M - Vlan-stack
     261   i - Internal untagged, I - Internal tagged, v - VLT untagged, V - VLT tagged
     262
     263    NUM    Status    Description                     Q Ports
     264    121    Active                                    U Te 1/32/1
     265                                                     U Tf 1/1/1
     266    122    Active                                    U Te 1/29/1
     267                                                     U Tf 1/1/2
     268    123    Active                                    U Te 1/31/1
     269                                                     U Tf 1/1/3
     270
     271}}}
     272
     273== Configuring Compute Nodes (Servers srv1..3-lg1) ==
     274
     2751. Install net-tools:
     276
     277{{{
     278sudo apt install net-tools
     279}}}
     280
     2812. Configure interfaces eo1 and assign IP addresses:
     282
     283{{{
     284native@srv1-lg1:~$ sudo ifconfig eno1 192.168.1.1 netmask 255.255.255.0
     285native@srv2-lg1:~$ sudo ifconfig eno1 192.168.1.2 netmask 255.255.255.0
     286native@srv3-lg1:~$ sudo ifconfig eno1 192.168.1.3 netmask 255.255.255.0
     287}}}
     288
     289= Perform Experiment_1 =
     290
     2911. Establish Connection ToR1<->ToR2.
     2922. Try Ping from Srv1 to Srv2:
     293
     294{{{
     295native@srv1-lg1:~$ ping 192.168.1.3
     296PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
     29764 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.460 ms
     29864 bytes from 192.168.1.3: icmp_seq=2 ttl=64 time=0.423 ms
     299}}}
     300
     3013. Establish Connection ToR1<->ToR2.
     3024. Try Ping from Srv1 to Srv3.
     303
     304