Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 1 | .. _operate: |
| 2 | |
| 3 | Operate a VOLTHA POD |
| 4 | ==================== |
| 5 | |
| 6 | In this page we assume that you have a VOLTHA POD (either Physical or Virtual) up and running. |
| 7 | |
| 8 | Provision an OLT |
| 9 | ---------------- |
| 10 | |
| 11 | The first step in order to operate a VOLTHA POD is to add an OLT to it. |
| 12 | |
| 13 | If you deployed a Virtual cluster you can create a BBSim based OLT in VOLTHA with: |
| 14 | |
| 15 | .. code:: bash |
| 16 | |
| 17 | voltctl device create -t openolt -H bbsim0.voltha.svc:50060 |
| 18 | |
| 19 | *If you have deployed multiple BBSim instances using the ``NUM_OF_BBSIM`` variable |
| 20 | you can list all the available BBSim OLTs with ``kubectl get svc --all-namespaces | grep bbsim``* |
| 21 | |
| 22 | If you are connecting to a Physical OLT: |
| 23 | |
| 24 | .. code:: bash |
| 25 | |
| 26 | voltctl device create -t openolt -H <olt-management-ip>:9191 |
| 27 | |
| 28 | Regardless of the OLT the command to ``enable`` an OLT in VOLTHA is always the same: |
| 29 | |
| 30 | .. code:: bash |
| 31 | |
| 32 | voltctl device enable <device-id> |
| 33 | |
| 34 | *The ``device id`` is the output of the ``device create`` command, or can be retrieved |
| 35 | with ``voltctl device list``* |
| 36 | |
| 37 | If you have just one OLT create you can use : |
| 38 | |
| 39 | .. code:: bash |
| 40 | |
| 41 | voltctl device enable $(voltctl device list --filter Type~openolt -q) |
| 42 | |
| 43 | Once the OLT is ``enabled`` in VOLTHA you should be able to see the ONU attached |
| 44 | to it by listing the devices: |
| 45 | |
| 46 | .. code:: bash |
| 47 | |
| 48 | voltctl device list |
| 49 | |
| 50 | Authentication |
| 51 | -------------- |
| 52 | |
Andrea Campanella | 882cfcc | 2021-02-04 10:53:57 +0100 | [diff] [blame] | 53 | If the worflow you installed (e.g. AT&T) expects EAPOL based authentication you want to make |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 54 | sure that is working. Visit :ref:`workflows` for more information. |
| 55 | |
| 56 | In a **Physical POD** you need to trigger authentication on your client |
| 57 | (if it doesn't do so automatically). You can refer to :ref:`setting-up-a-client`. |
| 58 | |
| 59 | In a **Virtual POD** installed with the ``WITH_EAPOL="yes"`` flag authentication |
| 60 | happens automatically. |
| 61 | |
| 62 | You can check the authentication state for your subscribers via the ONOS cli: |
| 63 | |
| 64 | .. code:: bash |
| 65 | |
| 66 | ssh -p 8101 karaf@localhost # (pwd: karaf) |
| 67 | karaf@root > aaa-users |
| 68 | of:00000a0a0a0a0a00/16: AUTHORIZED_STATE, last-changed=5m14s ago, mac=2E:60:70:00:00:01, subid=BBSM00000001-1, username=user |
| 69 | |
| 70 | *Note that if ONOS was not installed as parted of VOLTHA the ``ssh`` command may differ* |
| 71 | |
| 72 | Subscriber provisioning |
| 73 | ----------------------- |
| 74 | |
| 75 | *Note that, depending on the workflow, authentication is not a requirement of subscriber provisioning* |
| 76 | |
| 77 | The process referred to as ``Subscriber provisioning`` causes traffic flows to be created in ONOS and |
Andrea Campanella | 882cfcc | 2021-02-04 10:53:57 +0100 | [diff] [blame] | 78 | data plane path to be configured in the device, enabling different services on a specific UNI port. |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 79 | |
| 80 | In order to provision a subscriber you need to identify it. In ONOS a subscriber |
| 81 | is viewed as an enabled port (UNI) on the logical switch that VOLTHA exposes, for example: |
| 82 | |
| 83 | .. code:: bash |
| 84 | |
| 85 | ssh -p 8101 karaf@localhost # (pwd: karaf) |
| 86 | karaf@root > ports -e |
| 87 | id=of:00000a0a0a0a0a00, available=true, local-status=connected 8m27s ago, role=MASTER, type=SWITCH, mfr=VOLTHA Project, hw=open_pon, sw=open_pon, serial=BBSIM_OLT_0, chassis=a0a0a0a0a00, driver=voltha, channelId=10.244.2.7:53576, managementAddress=10.244.2.7, protocol=OF_13 |
| 88 | port=16, state=enabled, type=fiber, speed=0 , adminState=enabled, portMac=08:00:00:00:00:10, portName=BBSM00000001-1 |
| 89 | port=1048576, state=enabled, type=fiber, speed=0 , adminState=enabled, portMac=0a:0a:0a:0a:0a:00, portName=nni-1048576 |
| 90 | |
| 91 | Once the port number representing a subscriber has been retrieved, you can provision it via: |
| 92 | |
| 93 | .. code:: bash |
| 94 | |
| 95 | ssh -p 8101 karaf@localhost # (pwd: karaf) |
| 96 | karaf@root > volt-add-subscriber-access of:00000a0a0a0a0a00 16 |
| 97 | |
| 98 | Where ``of:00000a0a0a0a0a00`` is the OpenFlow ID of the Logical Device representing the OLT |
| 99 | and ``16`` is the port representing that particular subscriber. |
| 100 | |
| 101 | To verify that the subscriber has been provisioned: |
| 102 | |
| 103 | .. code:: bash |
| 104 | |
| 105 | ssh -p 8101 karaf@localhost # (pwd: karaf) |
| 106 | karaf@root > volt-programmed-subscribers |
| 107 | location=of:00000a0a0a0a0a00/16 tagInformation=UniTagInformation{uniTagMatch=0, ponCTag=900, ponSTag=900, usPonCTagPriority=-1, usPonSTagPriority=-1, dsPonCTagPriority=-1, dsPonSTagPriority=-1, technologyProfileId=64, enableMacLearning=false, upstreamBandwidthProfile='Default', downstreamBandwidthProfile='Default', serviceName='', configuredMacAddress='A4:23:05:00:00:00', isDhcpRequired=true, isIgmpRequired=false} |
| 108 | |
| 109 | You can also verify that the expected flows have been created and ``ADDED`` to VOLTHA: |
| 110 | |
| 111 | .. code:: bash |
| 112 | |
| 113 | ssh -p 8101 karaf@localhost # (pwd: karaf) |
| 114 | karaf@root > flows -s |
| 115 | deviceId=of:00000a0a0a0a0a00, flowRuleCount=8 |
| 116 | ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:16, ETH_TYPE:eapol, VLAN_VID:900], treatment=[immediate=[OUTPUT:CONTROLLER], meter=METER:1, metadata=METADATA:384004000000000/0] |
| 117 | ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:16, ETH_TYPE:ipv4, VLAN_VID:900, IP_PROTO:17, UDP_SRC:68, UDP_DST:67], treatment=[immediate=[OUTPUT:CONTROLLER], meter=METER:1, metadata=METADATA:4000000000/0] |
| 118 | ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:1048576, ETH_TYPE:lldp], treatment=[immediate=[OUTPUT:CONTROLLER]] |
| 119 | ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:1048576, ETH_TYPE:ipv4, IP_PROTO:17, UDP_SRC:67, UDP_DST:68], treatment=[immediate=[OUTPUT:CONTROLLER]] |
| 120 | ADDED, bytes=0, packets=0, table=0, priority=1000, selector=[IN_PORT:16, VLAN_VID:0], treatment=[immediate=[VLAN_ID:900], transition=TABLE:1, meter=METER:1, metadata=METADATA:384004000100000/0] |
| 121 | ADDED, bytes=0, packets=0, table=0, priority=1000, selector=[IN_PORT:1048576, METADATA:384, VLAN_VID:900], treatment=[immediate=[VLAN_POP], transition=TABLE:1, meter=METER:1, metadata=METADATA:384004000000010/0] |
| 122 | ADDED, bytes=0, packets=0, table=1, priority=1000, selector=[IN_PORT:1048576, METADATA:10, VLAN_VID:900], treatment=[immediate=[VLAN_ID:0, OUTPUT:16], meter=METER:1, metadata=METADATA:4000000000/0] |
| 123 | ADDED, bytes=0, packets=0, table=1, priority=1000, selector=[IN_PORT:16, VLAN_VID:900], treatment=[immediate=[VLAN_PUSH:vlan, VLAN_ID:900, OUTPUT:1048576], meter=METER:1, metadata=METADATA:4000000000/0] |
| 124 | |
| 125 | *The flows above may vary in form and number from workflow to workflow, the example is given for the ATT workflow* |
| 126 | |
Andrea Campanella | 2b69dac | 2020-09-02 20:47:40 +0200 | [diff] [blame] | 127 | Flows can also be checked in VOLTHA trhough `voltctl`: |
| 128 | |
| 129 | .. code:: bash |
| 130 | |
| 131 | voltctl device flows 17bfa0c8-bd86-4ead-b755-d612bfda9c5b |
| 132 | ID TABLEID PRIORITY COOKIE INPORT VLANID ETHTYPE IPPROTO UDPSRC UDPDST METADATA TUNNELID SETVLANID POPVLAN PUSHVLANID OUTPUT WRITEMETADATA METERID |
| 133 | 2e80b1ff53a75953 0 1000 ~986cca9a 536870912 900 16 900 0x8100 1048576 0x0000004000000000 1 |
| 134 | 37931e7d3cd25140 0 10000 ~ba31a4f2 536870912 900 0x0800 17 68 67 16 CONTROLLER 0x0000004000000000 1 |
| 135 | 6c4a02b93c22ba55 0 10000 ~ce6c3527 1048576 0x88cc CONTROLLER |
| 136 | 2ba82605da4ff200 0 10000 ~f81586a7 1048576 0x0800 17 67 68 CONTROLLER |
| 137 | 3102d254d97eda94 0 10000 ~5eb48e6a 536870912 900 0x888e 16 CONTROLLER 0x0384004000000000 1 |
| 138 | 49f503c2f9f7203b 0 1000 ~531d5ec9 1048576 900 0x0000000000000384 16 yes 536870912 0x0384004000000010 1 |
| 139 | |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 140 | DHCP Allocation |
| 141 | --------------- |
| 142 | |
Andrea Campanella | 882cfcc | 2021-02-04 10:53:57 +0100 | [diff] [blame] | 143 | If the worflow you installed expect DHCP to be handled by ONOS it's time to check |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 144 | that an IP has correctly been allocated to the subscriber. |
| 145 | |
| 146 | In a **Physical POD** you need to trigger a DHCP request on your client |
| 147 | (if it doesn't do so automatically). You can refer to :ref:`setting-up-a-client`. |
| 148 | |
| 149 | In a **Virtual POD** installed with the ``WITH_DHCP="yes"`` flag a DHCP requests |
| 150 | happens automatically. |
| 151 | |
| 152 | You can check the DHCP state for your subscribers via the ONOS cli: |
| 153 | |
| 154 | .. code:: bash |
| 155 | |
| 156 | ssh -p 8101 karaf@localhost # (pwd: karaf) |
| 157 | karaf@root > dhcpl2relay-allocations |
| 158 | 01SubscriberId=BBSM00000001-1,ConnectPoint=of:00000a0a0a0a0a00/16,State=DHCPACK,MAC=2E:60:70:00:00:01,CircuitId=BBSM00000001-1,IP Allocated=192.168.240.6,Allocation Timestamp=2020-07-27T22:39:24.140361Z |
| 159 | |
| 160 | Data plane validation |
| 161 | --------------------- |
| 162 | |
| 163 | If you deployed a **Virtual POD** with a BBSim OLT you are done. BBSim does not support |
| 164 | data plane emulation at the moment. |
| 165 | |
| 166 | If you deployed a **Physical POD** then you should now be able to reach the internet, from |
| 167 | your client attached to the UNI port you provisioned during the ``subscriber provisioning`` step. |