summaryrefslogtreecommitdiffhomepage
path: root/docs/sources
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-09-11 16:33:10 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-09-13 09:32:15 +0900
commitdcc1efb627b1f54926232eea231ce559a063938c (patch)
tree30e61c7da772f90a4c17326cc4c1984da3cbfc66 /docs/sources
parent41627dafb032687823835f89cbfaa05d84ac51ce (diff)
docs: Configuration guide for Additional Paths
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'docs/sources')
-rw-r--r--docs/sources/add-paths.md149
1 files changed, 149 insertions, 0 deletions
diff --git a/docs/sources/add-paths.md b/docs/sources/add-paths.md
new file mode 100644
index 00000000..152ecef2
--- /dev/null
+++ b/docs/sources/add-paths.md
@@ -0,0 +1,149 @@
+# Additional Paths
+
+This page explains how to configure BGP Additional Paths features on GoBGP.
+GoBGP supports to advertise ADD-PATH capability according to
+[RFC7911](https://tools.ietf.org/html/rfc7911) and advertise paths with
+the "Advertise N Paths" mode described in
+[draft-ietf-idr-add-paths-guidelines](https://tools.ietf.org/html/draft-ietf-idr-add-paths-guidelines).
+
+## Prerequisites
+
+Assumed that you finished [Getting Started](https://github.com/osrg/gobgp/blob/master/docs/sources/getting-started.md).
+
+## Contents
+
+- [Configuration](#section0)
+- [Verification](#section1)
+ - [Example Topology and Configuration](#section1.1)
+ - [Advertise Multiple Paths](#section1.2)
+
+## <a name="section0"> Configuration
+
+In order to advertise multiple paths to the specific neighbors, you need to
+configure `[neighbors.add-paths.config]` section for each neighbor.
+In the following example, `send-max = 8` means GoBGP will advertise up to 8
+paths per prefix towards this neighbor and `receive = true` enables to
+receive multiple paths from this neighbor.
+
+```toml
+[[neighbors]]
+ [neighbors.config]
+ neighbor-address = "10.0.0.2"
+ [neighbors.add-paths.config]
+ send-max = 8
+ receive = true
+```
+
+## <a name="section1"> Verification
+
+### <a name="section1.1"> Example Topology and Configuration
+
+To test BGP Additional Paths features, this page supposes the following
+topology.
+
+```
++----------+ +----------+ +----------+
+| r1 | | r2 | | r3 |
+| AS 65001 | ADD-PATH enabled | AS 65002 | | AS 65003 |
+| 10.0.0.1 |--------------------| 10.0.0.2 |----------| 10.0.0.3 |
++----------+ +----------+ +----------+
+ |
+ |
+ |
+ +----------+
+ | r4 |
+ | AS 65004 |
+ | 10.0.0.4 |
+ +----------+
+```
+
+Configuration on r1:
+
+```toml
+[global.config]
+ as = 65001
+ router-id = "10.0.0.1"
+
+[[neighbors]]
+ [neighbors.config]
+ neighbor-address = "10.0.0.2"
+ peer-as = 65002
+ [neighbors.add-paths.config]
+ receive = true
+ send-max = 8
+ [[neighbors.afi-safis]]
+ [neighbors.afi-safis.config]
+ afi-safi-name = "ipv4-unicast"
+```
+
+Configuration on r2:
+
+```toml
+[global.config]
+ as = 65002
+ router-id = "10.0.0.2"
+
+[[neighbors]]
+ [neighbors.config]
+ neighbor-address = "10.0.0.1"
+ peer-as = 65001
+ [neighbors.add-paths.config]
+ receive = true
+ send-max = 8
+ [[neighbors.afi-safis]]
+ [neighbors.afi-safis.config]
+ afi-safi-name = "ipv4-unicast"
+
+[[neighbors]]
+ [neighbors.config]
+ neighbor-address = "10.0.0.3"
+ peer-as = 65003
+ [[neighbors.afi-safis]]
+ [neighbors.afi-safis.config]
+ afi-safi-name = "ipv4-unicast"
+
+[[neighbors]]
+ [neighbors.config]
+ neighbor-address = "10.0.0.4"
+ peer-as = 65004
+ [[neighbors.afi-safis]]
+ [neighbors.afi-safis.config]
+ afi-safi-name = "ipv4-unicast"
+```
+
+### <a name="section1.2"> Advertise Multiple Paths
+
+Start GoBGP on r1, r2, r3 and r4, and confirm the establishment of each BGP
+session.
+
+e.g.:
+
+```
+r1> gobgpd -f gobgpd.toml
+{"level":"info","msg":"gobgpd started","time":"YYYY-MM-DDTHH:mm:ss+09:00"}
+{"Topic":"Config","level":"info","msg":"Finished reading the config file","time":""YYYY-MM-DDTHH:mm:ss+09:00"}
+{"level":"info","msg":"Peer 10.0.0.2 is added","time":"YYYY-MM-DDTHH:mm:ss+09:00"}
+{"Topic":"Peer","level":"info","msg":"Add a peer configuration for:10.0.0.2","time":"YYYY-MM-DDTHH:mm:ss+09:00"}
+{"Key":"10.0.0.2","State":"BGP_FSM_OPENCONFIRM","Topic":"Peer","level":"info","msg":"Peer Up","time":"YYYY-MM-DDTHH:mm:ss+09:00"}
+```
+
+Advertise a prefix "192.168.1.0/24" on r3 and r4.
+
+```
+r3> gobgp global rib -a ipv4 add 192.168.1.0/24
+```
+
+```
+r4> gobgp global rib -a ipv4 add 192.168.1.0/24
+```
+
+Then confirm 2 paths (from r3 and r4) are advertised to r1 from r2.
+In the following output shows the path with AS_PATH 65002 65003 (r3->r2->r1)
+and the path with AS_PATH 65002 65004 (r4->r2->r1).
+
+```
+r1> gobgp global rib -a ipv4
+ Network Next Hop AS_PATH Age Attrs
+*> 192.168.1.0/24 10.0.0.2 65002 65003 HH:mm:ss [{Origin: ?}]
+* 192.168.1.0/24 10.0.0.2 65002 65004 HH:mm:ss [{Origin: ?}]
+```