|
|
PLUTO BGP Sensor/ BGP Feed
by Aki NAKAO |
I. Introduction
We have developed "PLUTO BGP Sensor" to provide an easy access to BGP information collected in PlanetLab. We thought we would share this tool with
PlanetLab community.
Our sensor interface currently enables the following operations.
- Receive live stream of BGP update either in binary or in text mode (in binary mode, you will get a BGP raw packet, while in text mode, you will get an equivalent information in ascii.)
- Download the snapshots of BGP tables at these locations.
- Query AS path to a given IP address in real time.
II. Usage
A sensor user needs to speak HTTP/GET at TCP port 9995 on the node where the sensor software is running.
The more information about the sensor interface can be found
in PDN-03-010 (http://www.planet-lab.org/PDN/).
For example, suppose you want to receive live BGP update stream in text
mode, you need to (1) log in the node where you want BGP update, and (2) speak HTTP/GET for /bgp_update/text at TCP port 9995.
For example, you can use "curl" to do this operation.
curl http://localhost:9995/bgp_update/text
Then live BGP update stream will start (it would take some time to get updates, so be patient).
The following list shows the abbreviated URLs (http://localhost:9995/*) and their corresponding operations.
| URL (http://localhost:9995/*) |
Operations |
| /README |
shows README . |
| /getpath?dst=<IP/NAME> |
shows AS-path from this sensor to the host
with IP address <IP> or DNS name <NAME>. The format is,
where
| SRC |
is the IP address of the sensor, |
| DST |
is the IP address of the destination, |
| PREFIX |
is the network which DST belongs to (format:network_address/mask_length),
|
| ASPATH |
is the AS path between SRC and DST (format: "AS-1,AS-2,...AS-n",
where AS-k denote AS number of the hop k). |
Note that we currently ignore paths other than of type "AS_SEQUENCE". |
| /bgp_update/text |
streams live BGP updates in ascii.
The format is,
where
| TS |
is the timestamp when updates are received (format: seconds), |
| SZ |
is the size of the raw BGP packet. |
| UPDATE |
includes one or more of the following updates |
| |
| 1. |
advertised, prefix-1, prefix-2, ..., prefix-n |
| 2. |
withdrawn, prefix-1, prefix-2, ..., prefix-n |
| 3. |
path, "AS-1 AS-2 ... AS-n" |
"advertised", "withdrawn", and "path" are
reserved words. prefix-k is a network prefix
which is either "advertised" or "withdrawn".
"path" shows the value of BGP's AS_PATH attribute.
In this release, only "path" attribute is shown.
(More attributes will be added upon request).
|
|
| /bgp_update/binary |
streams live BGP updates in binary. Each update in the stream is a three-tuple.
| DUMP-HEADER |
12 octets |
| COMMON-HEADER |
16 octets |
| RAW-PACKET |
variable length |
MP-HEADER and COMMON-HEADER are described in detail below.
RAW-PACKET is the raw BGP packet.
Please refer to RFC 1771 Border Gateway Protocol.
 |
| /bgp_snapshot/list |
shows the list of available BGP table snapshot(bzip2 compressed). |
| /bgp_snapshot?file=<FILE> |
downloads the BGP table specified by <FILE>. /bgp_snapshot/list above will list the available snapshot files. |
III. References
- PlanetLab Design Notes (http://www.planet-lab.org/PDN/)
- PDN-03-010 A Simple Common Sensor Interface for PlanetLab, Timothy Roscoe, Larry Peterson, Scott Karlin, and Mike Wawrzoniak, March 2003.
- PDN-03-011 BGP Feed Configuration Memo, Akihiro Nakao and Larry Peterson, April 2003.
- PDN-03-012 A Routing Underlay for Overlay Networks, Akihiro Nakao, Larry Peterson, and Andy Bavier, April 2003.
- PLUTO BGP Sensor (http://www.planet-lab-jp.org/pluto/README)
IV. Locations of BGP feed (as of Oct 1st/2005)
-
128.208.4.197 planetlab01.cs.washington.edu
- 198.32.154.242 planetlab1.ipls.internet2.planet-lab.org
- 198.32.154.250 planetlab1.nycm.internet2.planet-lab.org
- 206.207.248.34 planetlab1.arizona-gigapop.net
- 206.207.248.35 planetlab2.arizona-gigapop.net
- 128.112.139.71 planetlab-1.cs.princeton.edu
- 128.112.139.72 planetlab-2.cs.princeton.edu
Note: BGP feed sources at the following nodes are currently unavailable.
- 12.46.129.21 bldmzsvr.berkeley.intel-research.net
- 206.240.24.20 planetlab1.netlab.uky.edu
- 128.10.19.52 planetlab1.cs.purdue.edu
- 128.10.19.53 planetlab2.cs.purdue.edu
- 152.3.136.1 planetlab1.cs.duke.edu
- 206.117.37.4 planetlab1.postel.org
V. Publications
- Scalable Routing Overlay Networks, Aki Nakao, Larry Peterson, ACM SIGOPS Operating Systems Review January. 2006
- A Routing Underlay for Overlay Networks Aki Nakao, Larry Peterson, Andy Bavier, Proceedings of SIGCOMM 2003
- PDN-03-011 BGP Feed Configuration Memo, Akihiro Nakao and Larry Peterson, April 2003.
- PDN-03-012 A Routing Underlay for Overlay Networks, Akihiro Nakao, Larry Peterson, and Andy Bavier, April 2003
- A Divert Mechanism for Service Overlays Aki Nakao, Larry Peterson, Mike Wawrzoniak Princeton University Technical Report TR-668-03 (December 2002).