blob: 68231c3c29ae2e43af4700e84e96e0e2532aecab [file] [log] [blame]
Matteo Scandoloef5d6f42020-07-27 16:46:38 -07001.. _operate:
2
3Operate a VOLTHA POD
4====================
5
6In this page we assume that you have a VOLTHA POD (either Physical or Virtual) up and running.
7
8Provision an OLT
9----------------
10
11The first step in order to operate a VOLTHA POD is to add an OLT to it.
12
13If 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
20you can list all the available BBSim OLTs with ``kubectl get svc --all-namespaces | grep bbsim``*
21
22If you are connecting to a Physical OLT:
23
24.. code:: bash
25
26 voltctl device create -t openolt -H <olt-management-ip>:9191
27
28Regardless 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
35with ``voltctl device list``*
36
37If 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
43Once the OLT is ``enabled`` in VOLTHA you should be able to see the ONU attached
44to it by listing the devices:
45
46.. code:: bash
47
48 voltctl device list
49
50Authentication
51--------------
52
Andrea Campanella882cfcc2021-02-04 10:53:57 +010053If the worflow you installed (e.g. AT&T) expects EAPOL based authentication you want to make
Matteo Scandoloef5d6f42020-07-27 16:46:38 -070054sure that is working. Visit :ref:`workflows` for more information.
55
56In 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
59In a **Virtual POD** installed with the ``WITH_EAPOL="yes"`` flag authentication
60happens automatically.
61
62You 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
72Subscriber provisioning
73-----------------------
74
75*Note that, depending on the workflow, authentication is not a requirement of subscriber provisioning*
76
77The process referred to as ``Subscriber provisioning`` causes traffic flows to be created in ONOS and
Andrea Campanella882cfcc2021-02-04 10:53:57 +010078data plane path to be configured in the device, enabling different services on a specific UNI port.
Matteo Scandoloef5d6f42020-07-27 16:46:38 -070079
80In order to provision a subscriber you need to identify it. In ONOS a subscriber
81is 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
91Once 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
98Where ``of:00000a0a0a0a0a00`` is the OpenFlow ID of the Logical Device representing the OLT
99and ``16`` is the port representing that particular subscriber.
100
101To 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
109You 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 Campanella2b69dac2020-09-02 20:47:40 +0200127Flows 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 Scandoloef5d6f42020-07-27 16:46:38 -0700140DHCP Allocation
141---------------
142
Andrea Campanella882cfcc2021-02-04 10:53:57 +0100143If the worflow you installed expect DHCP to be handled by ONOS it's time to check
Matteo Scandoloef5d6f42020-07-27 16:46:38 -0700144that an IP has correctly been allocated to the subscriber.
145
146In 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
149In a **Virtual POD** installed with the ``WITH_DHCP="yes"`` flag a DHCP requests
150happens automatically.
151
152You 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
160Data plane validation
161---------------------
162
163If you deployed a **Virtual POD** with a BBSim OLT you are done. BBSim does not support
164data plane emulation at the moment.
165
166If you deployed a **Physical POD** then you should now be able to reach the internet, from
167your client attached to the UNI port you provisioned during the ``subscriber provisioning`` step.