Skip to content

Commit

Permalink
add BMP document
Browse files Browse the repository at this point in the history
Signed-off-by: FUJITA Tomonori <[email protected]>
  • Loading branch information
fujita committed Sep 15, 2015
1 parent 7a5c1c1 commit 7d16e3e
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ No dependency hell (library, package, etc) thanks to Go.
* [Route Server](https://github.com/osrg/gobgp/blob/master/docs/sources/route-server.md)
* [Route Reflector](https://github.com/osrg/gobgp/blob/master/docs/sources/route-reflector.md)
* [Policy](https://github.com/osrg/gobgp/blob/master/docs/sources/policy.md)
* [EVPN](https://github.com/osrg/gobgp/blob/master/docs/sources/evpn.md)
* [MRT](https://github.com/osrg/gobgp/blob/master/docs/sources/mrt.md)
* [BMP](https://github.com/osrg/gobgp/blob/master/docs/sources/bmp.md)
* [EVPN](https://github.com/osrg/gobgp/blob/master/docs/sources/evpn.md)
* [Flowspec](https://github.com/osrg/gobgp/blob/master/docs/sources/flowspec.md)
* [RPKI](https://github.com/osrg/gobgp/blob/master/docs/sources/rpki.md)
* [Managing GoBGP with your favorite language](https://github.com/osrg/gobgp/blob/master/docs/sources/grpc-client.md)
Expand Down
51 changes: 51 additions & 0 deletions docs/sources/bmp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# BGP Monitoring Protocol

GoBGP supports [BGP Monitoring Protocol](https://datatracker.ietf.org/doc/draft-ietf-grow-bmp/).

## Prerequisites

Assume you finished [Getting Started](https://github.com/osrg/gobgp/blob/master/docs/sources/getting-started.md).

## Contents
- [Configuration](#config)
- [Verification](#verify)

## <a name="config"> Configuration

Add `[BmpServers]` section to enable BMP like below.

```toml
[Global]
[Global.GlobalConfig]
As = 64512
RouterId = "192.168.255.1"

[BmpServers]
[[BmpServers.BmpServerList]]
[BmpServers.BmpServerList.BmpServerConfig]
Address = "127.0.0.1"
Port=11019
```

## <a name="verify"> Verification

Let's check if BMP works with a bmp server. GoBGP also supports BMP server (currently, just shows received BMP messages in the json format).

```bash
$ go get github.com/osrg/gobgp/gobmpd
$ gobmpd
```

Once the BMP server accepts a connection from gobgpd, then you see
below on the BMP server side.

```bash
INFO[0013] Accepted a new connection from 127.0.0.1:33685
{"Header":{"Version":3,"Length":6,"Type":4},"PeerHeader":{"PeerType":0,"IsPostPolicy":false,"PeerDistinguisher":0,"PeerAddress":"","PeerAS":0,"PeerBGPID":"","Timestamp":0},"Body":{"Info":null}}
```

You also see below on the BGP server side:

```bash
{"level":"info","msg":"bmp server is connected, 127.0.0.1:11019","time":"2015-09-15T10:29:03+09:00"}
```

0 comments on commit 7d16e3e

Please sign in to comment.