Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
    "localPublicIpPrefixes" : [
         "200.0.0.0/32",
         "201.0.0.0/30",
         "202.0.0.0/30"
    ],
    "nextHopIpAddress" : "200.0.0.5",
    "publicFacingMac" : "00:00:00:00:00:66",
    "xosIpAddress" : "10.254.1.22",
    "xosRestPort" : "8000"
}

The “localPublicIpPrefixes” means the public IP address for vBNG to assign.

...

The “publicFacingMac” is a MAC address used for ONOS to compose ARP replies to the ARP requests from the upsteam gateway. Before the upstream gateway sends traffic packets to our local public IP addresses, it will send out ARP requests first to get the MAC address of each public IP address. Actually, there are no hosts configured with those public IP addresses in local SDN network, so vBNG will emulate the behavior of the non-existent hosts and return ARP replies with this MAC address. Since we will rewrite the destination MAC address in the switch before traffic packets go to the destination, so the MAC address can be any number. We manually configured a random MAC address for this purpose.

The "xosIpAddress" is the IP address of XOS. The "xosRestPort" is the port of XOS for vBNG to fetch the mapping record. This function is used for vBGN reboot, we should recovery the vBNG status from the XOS' record.

 


Proxy ARP Configuration

When we configure each host with an IP address (the IP address is private IP address), we also configure the gateway IP address on each host. Then the host will send out ARP packets to look for the MAC address of the gateway. Since there is no physical gateway, we will use proxy ARP application to handle those ARP requests.

...

As the description above, to run vBNG, we need to run three applications in total: onos-app-config, onos-app-proxyarp, onos-app-virtualbng.

One of the choices to activate them is in the following way:

Code Block
onos> app activate org.onosproject.config
onos> app activate org.onosproject.proxyarp
onos> app activate org.onosproject.virtualbng

...