...
SONA allows multiple gateway nodes for HA as well as scalability. Here's another example of multiple gateway nodes and external upstream router. In this scenario, each gateway node should have unique IP and MAC address for peering so that the upstream router can handle each of them as a different router. ONOS scalable gateway application is responsible for taking upstream packet through one of the gateway nodes, and the upstream router is responsible for taking downstream packet through one of the gateway nodes.
The following is an example Quagga configuration of the second gateway node.
Code Block | ||
---|---|---|
| ||
! -*- bgp -*- ! ! BGPd sample configuration file ! ! hostname gateway-02 password zebra ! router bgp 65101 bgp router-id 172.18.0.249 timers bgp 3 9 neighbor 172.18.0.1 remote-as 65100 neighbor 172.18.0.1 ebgp-multihop neighbor 172.18.0.1 timers connect 5 neighbor 172.18.0.1 advertisement-interval 5 network 172.27.0.0/24 ! log file /var/log/quagga/bgpd.log |
...
Code Block | ||
---|---|---|
| ||
! hostname gateway-02 password zebra ! fpm connection ip 172.17.0.2 port 2620 |
...
Once you are done with the configurations for the second Quaaga, run quagga.sh script to bring up Quagga container with the MAC address different from the one used for the first gateway node Quagga container.
Code Block | language | bash
---|
$ ./quagga.sh --name=gateway-02 --ip=172.18.0.250/30 --mac=fe:00:00:00:00:03 |
...
Now configure the upstream router as below.
Code Block | |
---|---|
router | router bgp 65100
timers bgp 3 9
distance bgp 20 200 200
maximum-paths 2 ecmp 2
neighbor 172.18.0.254 remote-as 65101
neighbor 172.18.0.254 maximum-routes 12000
neighbor 172.18.0.249 remote-as 65101
neighbor 172.18.0.249 maximum-routes 12000
redistribute connected |
...
Code Block | title | physical router interfaces
---|
#routed port connected to gateway-01 interface Ethernet43 no switchport ip address 172.18.0.253/30 #routed port connected to gateway-02 interface Ethernet44 no switchport ip address 172.18.0.249/30 |
The The rest of the configurations for ONOS-vRouter are the same with one the gateway node setup.
HA Setup
Basically, ONOS itself provides HA by default when there are multiple instances in the cluster. This section describes how to add a proxy server beyond the ONOS cluster, and make use of it in Neutron as a single access point of the cluster. For the proxy server, we used the HA proxy server (http://www.haproxy.org) here.
...