Support PPPoE Intermediate Agent as described in TR-101 Issue 2 - 3.9.2 for intercepting and adding Circuit-ID identification

Clone this repo:
  1. 80c2cfa Starting snapshot 1.3.1-SNAPSHOT with API version 1.3.1-SNAPSHOT by Jenkins · 10 months ago master
  2. 8de80a3 Release app version 1.3.0 with API version 1.3.0 by Jenkins · 10 months ago 1.3.0
  3. e92d730 dependency update before the release by Mahir Gunyel · 10 months ago
  4. 8694f52 Starting snapshot 1.3.0-SNAPSHOT with API version 1.3.0-SNAPSHOT by Jenkins · 1 year, 5 months ago
  5. e70a5d8 Release app version 1.2.3 with API version 1.2.3 by Jenkins · 1 year, 5 months ago 1.2.3

PppoeAgent : PPPoE Intermediate Agent application

What is a PPPoE Intermediate Agent?

As described in TR-101 Issue 2 - 3.9.2, the PPPoE Intermediate Agent supports the PPPoE access method and is a function placed on the Access Node in order to insert access loop identification.

Description

The PPPoE Agent intercepts all upstream PPPoED packets, i.e. the PADI, PADR and upstream PADT packets, but does not modify the source or destination MAC address of these PPPoE discovery packets. Upon receipt of a PADI or PADR packet sent by the PPPoE client, the Intermediate Agent adds a Vendor Specific PPPoE Tag to the packet to be sent upstream. The TAG contains the identification of the access loop (circuit-id) on which the PADI or PADR packet was received and the value of "remoteId" field if defined on subscriber's Sadis.

The circuit-id is generated following the format: "[OLT-SN] [SLOT]/[PON-PORT]:[ONU-SN]", i.e:

EC1724000150 0/2:ALPHe3132051

If a PADI or PADR packet exceeds the Ethernet MTU after adding the access loop identification TAG, the Intermediate Agent must drop the packet, and issue the corresponding PADO or PADS response with a Generic-Error TAG to the sender.

PPPoE agent keeps track of the client's connect point saving it along other information (i.e: MAC address, session-id, last received packet type and etc) in a storage available through the CLI "pppoe-users". With that at hand, the agent also intercepts the downstream PPPoED packets, such as PADO, PADS and PADT from server. These responses are processed and delivered to the connect point associated with the destination MAC address. If the destination MAC address is not known for PPPoE Agent, the packet is dropped.

Component Configuration

 "org.opencord.pppoeagent.impl.PppoeAgent": {
      "pppoeMaxMtu": 1500,
      "enableCircuitIdValidation": true,
      "packetProcessorThreads": 10
  }

Component Configuration Parameters

pppoeMaxMtu

The allowed MTU size (in bytes) for upstream packet forwarding.

enableCircuitIdValidation

Flag to control the circuit-id validation mechanism: when configured as 'true' it checks if the Sadis "circuitId" field matches with the circuit-id generated by PPPoE Agent, if not the packet is dropped. When Sadis "circuitId" is not set for the PPPoE client, the validation is not performed whatsoever.

packetProcessorThreads

Reference to create a thread pool with a fixed number of threads for packet processing.

PPPoE Configuration in org.opencord.olt app:

In order to PPPoE Agent receive the packets, Onos has to trap the PPPoED frames. A way to obtain that is configuring Olt app to install PPPoED trap rules as it follows:

"org.opencord.olt.impl.OltFlowService": {
      "enablePppoe": true
  }

How to install the PPPoE Intermediate Agent on Onos

Since this app is not available on "voltha-onos" image, first it's necessary to generate the .oar file. To do it so, you can follow the steps below:

-> Clone this repository

git clone "https://gerrit.opencord.org/pppoeagent" && cd pppoeagent

-> Build it using Maven

mvn clean install

After these steps, the .oar file should be available at "pppoeagent/app/target/pppoeagent-app-1.0.0.oar".

Now you can upload and install the .oar in the Onos running instance using the onos-app shell utility

Usage example: "onos-app [ONOS_ADDRESS] install! [OAR_FILE_PATH]"