2. RIPEstat Introduction
http://stat.ripe.net
• Modular & extendable Toolbox
• Single-point to Internet related data
• Work in progress
• Demo new functionality periodically
• We adjust based on usage and feedback
• Get involved
RIPEstat public demo 2
3. Demo Key Points
• New Widget API
• New Data API
• Web application new architecture
• Performance monitoring and improvements
RIPEstat public demo 3
4. The new Data and Widget APIs
• Data API - Access RIPEstat processed data directly
• Widget API - Embed RIPEstat plugins in your own website
• Bring RIPEstat closer to you
• Better adapted to your own needs
• More customization options
RIPEstat public demo 4
5. New Widget API
_ Embed RIPEstat widgets into your own webpage!
<script src="http://stat.ripe.net/widgets/widget_api.js"></script>
<div class="statwdgtauto"><script>
ripestat.init("as-path-length",{"resource":"AS3333"})
</script></div>
RIPEstat public demo 5
6. New Widget API
• Embeddable on location in any HTML website
• Purely based on Javascript and HTML(5)
• Data fetched directly from data API via JSON(P)
• Input data configuration defines content
• Customizable layout (visible elements, size)
• Manipulation of the Widget after rendering (reload(), get_data(), etc)
via scripting
RIPEstat public demo 6
7. New Widget API
• Work in progress
• But some widgets already available publicly (beta testing)
_ whats-my-ip [new]
_ network-info [new]
_ prefix-overview
_ as-overview
_ whois
_ as-path-length
• http://stat.ripe.net/docs/widget_api
RIPEstat public demo 7
8. New RIPEstat Data API
• RESTful interface over HTTP
• Can return RIPEstat data in various formats (JSON currently)
- Let us know if you’d like other formats
• Used by the Widgets, data is fetched directly by the browser
• Simple example:
‣ http://stat.ripe.net/plugin/whats-my-ip/data.json
{
"cached": false,
"data": {
"ip": "2001:67c:2e8:13:223:6cff:fe8d:388c"
},
"messages": [],
"query_id": 11057,
"status": "ok",
"status_code": 200,
"version": "0.1"
}
RIPEstat public demo 8
9. New RIPEstat Data API
• Syntax:
‣ http://stat.ripe.net/plugin/<pluginname>/data.<format>?<key>=<value>...
‣ http://stat.ripe.net/plugin/announced-prefixes/data.json?
resource=AS3333&starttime=2012-01-14T12:00
{ "data": {
"prefixes": [
{
"prefix": "193.0.0.0/21",
"timelines": [
{
"endtime": "2012-01-16T00:00:00",
"starttime": "2012-01-14T12:00:00"
},
{ [...]
• Full specification of services and required/optional parameters at:
‣ http://stat.ripe.net/docs/data_api
RIPEstat public demo 9
10. Web Application new architecture
RESTful data API Javascript Widget API Static HTML and JS
routing history Table of
routing history
widget Contents
plugin
whois plugin whois widget
Any HTML
elements
• You can build your own web app too!
RIPEstat public demo 10
11. Web Application new architecture
• During transition period current plugins on http://stat.ripe.net are
being progressively replaced by widgets
RIPEstat public demo 11
13. Performance monitoring
• Monitor usage and performance of plugins
• Raise understanding of possible performance bottlenecks
RIPEstat public demo 13
14. Performance monitoring
• Monitor usage and performance of plugins
• Raise understanding of possible performance bottlenecks
RIPEstat public demo 14
15. Performance Improvement - Backend migration
• Several plugins migrated to a new backend data cluster
_ BGP Update history
_ AS Path Length
_ Routing Consistency
• Significant performance improvement!
RIPEstat public demo 15
16. What’s coming?
• Widget API
- Add more widget types to cover existing plugins
- Extending functionality of the API
• Data API
- Add more services to cover existing plugins
- Services based on new backend data (such as RIPE Atlas)
- Backend performance improvements
• Plugins
- Extend existing with more detail (history, granularity, etc)
- IPv6 capability per AS - based on APNIC data
- AS Routing Consistency
RIPEstat public demo 16
17. Feedback
• Play with it:
_ http://stat.ripe.net/
_ http://stat.ripe.net/docs/widget_api/
_ http://stat.ripe.net/docs/data_api/
• Feedback
_ Comments - on the website
_ Measurement, Analysis and Tools working group
_ Homepage: http://www.ripe.net/ripe/wg/mat/
_ E-mail: mat-wg@ripe.net
_ Private feedback - stat@ripe.net
_ #ripestat on twitter
RIPEstat public demo 17
18. The End
The next RIPEstat public demo is on:
Tuesday, February 21, 2012
This session and the slides will be archived on RIPE labs:
http://labs.ripe.net/
See previous demos and other videos on:
http://www.youtube.com/user/RIPENCC/