SlideShare una empresa de Scribd logo
1 de 26
Descargar para leer sin conexión
AS-STATS
GET THE MOST OUT OF LINX
Thomas Mangin
Exa Networks Limited
LINX 69
Joining LINX, an easy process ?
● Fill the paperwork
● Plug in the router
● Connect to the route servers
● Some members stop here !
● …
● PROFIT :D
Joining LINX, not an easy process ?
● Emailing the linx members
● 356 NOCs to contact
● with many different peering policies
● with many unresponsive peering coordinators
● No one wants to send 300+ peering requests
● No automation (roll your own)
● Benefits are unclear
● Is it worth the effort ?
Who will peer with you ?
?
Who will peer with you ?
Free beer for you tonight if you answered
"Patrick W. Gilmore"
But it is not the right answer
Who will peer with you ?
● Guess work !
● You are the new kid on the switch
● You are kind of expected to make the first move
Who will peer with you ?
● The content networks
● Akamai, Yahoo, Microsoft, Google, Facebook
● all have « open » peering policies
● Linx members with an open peering policy
● http://peeringdb.com/
● Generally small/medium networks
● You want them as peers but are they a priority ?
● People seeing you via transit
Who should you peer with ?
● Networks you see via transit
● Everyone if it is your first IX
● Otherwise not as clear
● Networks you send/receive the most trafic to
How to find those « good » peers ?
● Look at traces between your networks
● routers with full routing tables can display ASN
traceroute / traceroute as-number-lookup
● http://oppleman.com/dl/?file=lft-2.3.tar.gz
use whois.ra.net to find the hops' ASN
● Use netflow to find out who matters to you
● Can Linx do more to help ?
● Web tools to help you find and contact peers
● Possibly – if you think it is important : tell them !
What is NetFlow ?
● A protocol defined by RFC 3954
What is NetFlow ?
● A protocol defined by RFC 3954
● Not helpful !
● A way to know what trafic your router is forwarding
● generating UDP packets
● can include SRC/DST ASN of the packet
Where to use NetFlow ?
● Configure it on your EBGP peers
● transit AND peering
● with a full routing table
● Do not need an high sampling rate
● you care about your TOP speakers
● save yourself some router CPU cycles
NetFlow collectors
● Many exist
● http://www.networkuptime.com/tools/netflow/
● Missing my favorite : as-stats
● https://neon1.net/as-stats/
● Last changelog shows two LINX members :D
● accept sflow as well (foundry users rejoice !)
● Install it in one hour if you can use linux/*BSD
● … or two during the meeting today
● someone else to do a demo later on ?
AS-STATS
● A netflow/sflow collector
● Storing data in RRD files
● A cron program
● order the ASNs by level of trafic exchanged
● A web interface to :
● See your trafic per ASN
● See your trafic per LINK
How as-stats look ? peers
How as-stats looks ? link
AS-STATS (configuration)
# Router IP
# SNMP ifindex of the interface monitored
# tag (used by RRD)
# description (displaid on the web page)
# color in HEX RGB
192.0.2.1 10 linx LINX 0A8474
192.0.2.1 40 transit T1 4E66A1
# find your router interface SNMP ifindex
# show snmp mib ifmib ifindex | include Ethernet
# show interfaces | match "SNMP ifIndex"
AS-STATS (daemon)
● an example of a supervise script (for djb fans)
#!/bin/sh
exec 
setuidgid nobody 
/opt/as-stats/bin/netflow-asstatd.pl 
-s 1000 
-r /srv/as-stats/rrd 
-k /opt/as-stats/conf/netflow-knownlinks
AS-STATS (daemon)
● Reflect the locations you use in the program
/* changes these values to suit your local configuration */
$rrdpath = "/srv/as-stats/rrd";
$daystatsfile = "/srv/as-stats/txt/asstats_day.txt";
$rrdtool = "/usr/bin/rrdtool";
$asinfofile = "asinfo.txt";
$knownlinksfile = "/opt/as-stats/conf/netflow-knownlinks";
$outispositive = false;
AS-STATS (cron)
● cron.d/as-stats (runs hourly)
00 */1 * * * nobody 
/opt/as-stats/bin/rrd-extractstats.pl 
/srv/as-stats/rrd/ 
/opt/as-stats/conf/netflow-knownlinks 
/srv/as-stats/txt/asstats_day.txt
AS-STATS (apache)
<VirtualHost 192.0.2.123:80>
ServerName flow.domain.com
DocumentRoot /opt/as-stats/www
<Directory /opt/as-stats/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
</VirtualHost>
Check file permissions, but – that's it !
Example (one way to do on Cisco)
ip cef
flow-sampler sampler-1000
mode random one-out-of 1000
interface GigabitEthernet0/1
ip address 195.66.224.235 255.255.254.0
no ip route-cache flow
no ip route-cache cef
no ip flow ingress
flow-sampler sampler-1000
flow-sampler sampler-1000 egress
interface Loopback 0
ip address 192.0.2.1 255.255.255.255
Example (Cisco cont.)
ip flow-cache timeout active 5
ip flow-export version 5 origin-as
ip flow-export destination 192.0.2.123
ip flow-export source loopback 0
ip flow-aggregation cache as
cache timeout active 5
export destination 192.0.2.123 9000
enabled
Example (Juniper)
> show interfaces ge-0/3/0 unit 123
description Linx;
vlan-id 123;
family inet {
mtu 1500;
address 195.66.224.235/23;
sampling {
input;
output;
}
}
/* http://thomas.mangin.com/#tag:link_ipv6_on_juniper */
family inet6 {
mtu 1500;
address 2001:7F8:4::7814:1/64;
}
Example (Juniper cont.)
> show configuration forwarding-options
sampling {
input {
family inet {
rate 1000;
max-packets-per-second 7000;
}
}
output {
cflowd 192.0.2.123 {
port 9000;
source-address 192.0.2.1;
version 8;
aggregation {
autonomous-system;
}
}
}
}
More information
https://neon1.net/as-stats/as-stats-presentation-swinog16.pdf
http://www.netflow-analyser.co.uk/scrutinizer-netflow-sflow-analyser/support/activating-netflow.php
http://netflow.caligare.com/
http://www.cisco.com/en/US/docs/routers/7600/ios/12.2SXF/configuration/guide/nde.html
http://puck.nether.net/pipermail/cisco-nsp/2007-February/038498.html
Questions ?

Más contenido relacionado

La actualidad más candente

Ndc14 분산 서버 구축의 ABC
Ndc14 분산 서버 구축의 ABCNdc14 분산 서버 구축의 ABC
Ndc14 분산 서버 구축의 ABCHo Gyu Lee
 
How Triton can help to reverse virtual machine based software protections
How Triton can help to reverse virtual machine based software protectionsHow Triton can help to reverse virtual machine based software protections
How Triton can help to reverse virtual machine based software protectionsJonathan Salwan
 
NDC17 장창완(최종)
NDC17 장창완(최종)NDC17 장창완(최종)
NDC17 장창완(최종)창완 장
 
GPD-WINや中華ノートPCなどATOM機器に 各種Linuxディストリを入れて遊ぼう Install Linux Distributions on G...
GPD-WINや中華ノートPCなどATOM機器に 各種Linuxディストリを入れて遊ぼう Install Linux Distributions on G...GPD-WINや中華ノートPCなどATOM機器に 各種Linuxディストリを入れて遊ぼう Install Linux Distributions on G...
GPD-WINや中華ノートPCなどATOM機器に 各種Linuxディストリを入れて遊ぼう Install Linux Distributions on G...Netwalker lab kapper
 
Linux kernel status in RISC-V
Linux kernel status in RISC-VLinux kernel status in RISC-V
Linux kernel status in RISC-VAtish Patra
 
NDC2018 안드로이드+유니티 네이티브 프로파일링 삽질기
NDC2018 안드로이드+유니티 네이티브 프로파일링 삽질기NDC2018 안드로이드+유니티 네이티브 프로파일링 삽질기
NDC2018 안드로이드+유니티 네이티브 프로파일링 삽질기Jaeseung Ha
 
NDC 2010 이은석 - 마비노기 영웅전 포스트모템 2부
NDC 2010 이은석 - 마비노기 영웅전 포스트모템 2부NDC 2010 이은석 - 마비노기 영웅전 포스트모템 2부
NDC 2010 이은석 - 마비노기 영웅전 포스트모템 2부Eunseok Yi
 
Tuning the Kernel for Varnish Cache
Tuning the Kernel for Varnish CacheTuning the Kernel for Varnish Cache
Tuning the Kernel for Varnish CachePer Buer
 
위대한 게임개발팀의 공통점
위대한 게임개발팀의 공통점위대한 게임개발팀의 공통점
위대한 게임개발팀의 공통점Ryan Park
 
Exploiting Modern Microarchitectures: Meltdown, Spectre, and other Attacks
Exploiting Modern Microarchitectures: Meltdown, Spectre, and other AttacksExploiting Modern Microarchitectures: Meltdown, Spectre, and other Attacks
Exploiting Modern Microarchitectures: Meltdown, Spectre, and other Attacksinside-BigData.com
 
NDC2012_마비노기 영웅전 카이 포스트모템_시선을 사로잡는 캐릭터 카이 그 시도와 성공의 구현 일지
NDC2012_마비노기 영웅전 카이 포스트모템_시선을 사로잡는 캐릭터 카이 그 시도와 성공의 구현 일지NDC2012_마비노기 영웅전 카이 포스트모템_시선을 사로잡는 캐릭터 카이 그 시도와 성공의 구현 일지
NDC2012_마비노기 영웅전 카이 포스트모템_시선을 사로잡는 캐릭터 카이 그 시도와 성공의 구현 일지영준 박
 
Advanced Scenegraph Rendering Pipeline
Advanced Scenegraph Rendering PipelineAdvanced Scenegraph Rendering Pipeline
Advanced Scenegraph Rendering PipelineNarann29
 
NDC 2015. 한 그루 한 그루 심지 않아도 돼요. 생태학에 기반한 [야생의 땅: 듀랑고]의 절차적 생성 생태계
NDC 2015. 한 그루 한 그루 심지 않아도 돼요. 생태학에 기반한 [야생의 땅: 듀랑고]의 절차적 생성 생태계NDC 2015. 한 그루 한 그루 심지 않아도 돼요. 생태학에 기반한 [야생의 땅: 듀랑고]의 절차적 생성 생태계
NDC 2015. 한 그루 한 그루 심지 않아도 돼요. 생태학에 기반한 [야생의 땅: 듀랑고]의 절차적 생성 생태계Imseong Kang
 
행동 기반 게임오브젝트
행동 기반 게임오브젝트행동 기반 게임오브젝트
행동 기반 게임오브젝트kgun86
 
Tegra 186のu-boot & Linux
Tegra 186のu-boot & LinuxTegra 186のu-boot & Linux
Tegra 186のu-boot & LinuxMr. Vengineer
 
10分で分かるLinuxブロックレイヤ
10分で分かるLinuxブロックレイヤ10分で分かるLinuxブロックレイヤ
10分で分かるLinuxブロックレイヤTakashi Hoshino
 
Vulnerability Management for Dummies
Vulnerability Management for DummiesVulnerability Management for Dummies
Vulnerability Management for DummiesLiberteks
 
Basic Dynamic Analysis of Malware
Basic Dynamic Analysis of MalwareBasic Dynamic Analysis of Malware
Basic Dynamic Analysis of MalwareNatraj G
 
KGDC 2001 Making of Whiteday Postmortem (revised)
KGDC 2001 Making of Whiteday Postmortem (revised)KGDC 2001 Making of Whiteday Postmortem (revised)
KGDC 2001 Making of Whiteday Postmortem (revised)Eunseok Yi
 

La actualidad más candente (20)

Ndc14 분산 서버 구축의 ABC
Ndc14 분산 서버 구축의 ABCNdc14 분산 서버 구축의 ABC
Ndc14 분산 서버 구축의 ABC
 
How Triton can help to reverse virtual machine based software protections
How Triton can help to reverse virtual machine based software protectionsHow Triton can help to reverse virtual machine based software protections
How Triton can help to reverse virtual machine based software protections
 
NDC17 장창완(최종)
NDC17 장창완(최종)NDC17 장창완(최종)
NDC17 장창완(최종)
 
GPD-WINや中華ノートPCなどATOM機器に 各種Linuxディストリを入れて遊ぼう Install Linux Distributions on G...
GPD-WINや中華ノートPCなどATOM機器に 各種Linuxディストリを入れて遊ぼう Install Linux Distributions on G...GPD-WINや中華ノートPCなどATOM機器に 各種Linuxディストリを入れて遊ぼう Install Linux Distributions on G...
GPD-WINや中華ノートPCなどATOM機器に 各種Linuxディストリを入れて遊ぼう Install Linux Distributions on G...
 
Linux kernel status in RISC-V
Linux kernel status in RISC-VLinux kernel status in RISC-V
Linux kernel status in RISC-V
 
NDC2018 안드로이드+유니티 네이티브 프로파일링 삽질기
NDC2018 안드로이드+유니티 네이티브 프로파일링 삽질기NDC2018 안드로이드+유니티 네이티브 프로파일링 삽질기
NDC2018 안드로이드+유니티 네이티브 프로파일링 삽질기
 
NDC 2010 이은석 - 마비노기 영웅전 포스트모템 2부
NDC 2010 이은석 - 마비노기 영웅전 포스트모템 2부NDC 2010 이은석 - 마비노기 영웅전 포스트모템 2부
NDC 2010 이은석 - 마비노기 영웅전 포스트모템 2부
 
Tuning the Kernel for Varnish Cache
Tuning the Kernel for Varnish CacheTuning the Kernel for Varnish Cache
Tuning the Kernel for Varnish Cache
 
위대한 게임개발팀의 공통점
위대한 게임개발팀의 공통점위대한 게임개발팀의 공통점
위대한 게임개발팀의 공통점
 
Exploiting Modern Microarchitectures: Meltdown, Spectre, and other Attacks
Exploiting Modern Microarchitectures: Meltdown, Spectre, and other AttacksExploiting Modern Microarchitectures: Meltdown, Spectre, and other Attacks
Exploiting Modern Microarchitectures: Meltdown, Spectre, and other Attacks
 
NDC2012_마비노기 영웅전 카이 포스트모템_시선을 사로잡는 캐릭터 카이 그 시도와 성공의 구현 일지
NDC2012_마비노기 영웅전 카이 포스트모템_시선을 사로잡는 캐릭터 카이 그 시도와 성공의 구현 일지NDC2012_마비노기 영웅전 카이 포스트모템_시선을 사로잡는 캐릭터 카이 그 시도와 성공의 구현 일지
NDC2012_마비노기 영웅전 카이 포스트모템_시선을 사로잡는 캐릭터 카이 그 시도와 성공의 구현 일지
 
Advanced Scenegraph Rendering Pipeline
Advanced Scenegraph Rendering PipelineAdvanced Scenegraph Rendering Pipeline
Advanced Scenegraph Rendering Pipeline
 
NDC 2015. 한 그루 한 그루 심지 않아도 돼요. 생태학에 기반한 [야생의 땅: 듀랑고]의 절차적 생성 생태계
NDC 2015. 한 그루 한 그루 심지 않아도 돼요. 생태학에 기반한 [야생의 땅: 듀랑고]의 절차적 생성 생태계NDC 2015. 한 그루 한 그루 심지 않아도 돼요. 생태학에 기반한 [야생의 땅: 듀랑고]의 절차적 생성 생태계
NDC 2015. 한 그루 한 그루 심지 않아도 돼요. 생태학에 기반한 [야생의 땅: 듀랑고]의 절차적 생성 생태계
 
행동 기반 게임오브젝트
행동 기반 게임오브젝트행동 기반 게임오브젝트
행동 기반 게임오브젝트
 
Tegra 186のu-boot & Linux
Tegra 186のu-boot & LinuxTegra 186のu-boot & Linux
Tegra 186のu-boot & Linux
 
10分で分かるLinuxブロックレイヤ
10分で分かるLinuxブロックレイヤ10分で分かるLinuxブロックレイヤ
10分で分かるLinuxブロックレイヤ
 
Vulnerability Management for Dummies
Vulnerability Management for DummiesVulnerability Management for Dummies
Vulnerability Management for Dummies
 
SIEM and Threat Hunting
SIEM and Threat HuntingSIEM and Threat Hunting
SIEM and Threat Hunting
 
Basic Dynamic Analysis of Malware
Basic Dynamic Analysis of MalwareBasic Dynamic Analysis of Malware
Basic Dynamic Analysis of Malware
 
KGDC 2001 Making of Whiteday Postmortem (revised)
KGDC 2001 Making of Whiteday Postmortem (revised)KGDC 2001 Making of Whiteday Postmortem (revised)
KGDC 2001 Making of Whiteday Postmortem (revised)
 

Similar a AS-STATS

An EyeWitness View into your Network
An EyeWitness View into your NetworkAn EyeWitness View into your Network
An EyeWitness View into your NetworkCTruncer
 
Building a Small DC
Building a Small DCBuilding a Small DC
Building a Small DCAPNIC
 
Event-driven Network Automation and Orchestration
Event-driven Network Automation and OrchestrationEvent-driven Network Automation and Orchestration
Event-driven Network Automation and OrchestrationAPNIC
 
Network troubleshooting
Network troubleshootingNetwork troubleshooting
Network troubleshootingSkillspire LLC
 
Building a Small Datacenter
Building a Small DatacenterBuilding a Small Datacenter
Building a Small Datacenterssuser4b98f0
 
Initial Experiences Route Filtering at the Edge AS15169 by Arturo L. Servin
Initial Experiences Route Filtering at the Edge AS15169 by Arturo L. ServinInitial Experiences Route Filtering at the Edge AS15169 by Arturo L. Servin
Initial Experiences Route Filtering at the Edge AS15169 by Arturo L. ServinMyNOG
 
Networks Have Layers - Understanding The OSI Model
Networks Have Layers - Understanding The OSI ModelNetworks Have Layers - Understanding The OSI Model
Networks Have Layers - Understanding The OSI ModelBrandon Checketts
 
When DevOps and Networking Intersect by Brent Salisbury of socketplane.io
When DevOps and Networking Intersect by Brent Salisbury of socketplane.ioWhen DevOps and Networking Intersect by Brent Salisbury of socketplane.io
When DevOps and Networking Intersect by Brent Salisbury of socketplane.ioDevOps4Networks
 
The internet of $h1t
The internet of $h1tThe internet of $h1t
The internet of $h1tAmit Serper
 
Dev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & LoggingDev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & LoggingMarian Marinov
 
Are general purpose big data systems eating the world?
Are general purpose big data systems eating the world?Are general purpose big data systems eating the world?
Are general purpose big data systems eating the world?Holden Karau
 
There and back again
There and back againThere and back again
There and back againJon Spriggs
 
Zeus: Uber’s Highly Scalable and Distributed Shuffle as a Service
Zeus: Uber’s Highly Scalable and Distributed Shuffle as a ServiceZeus: Uber’s Highly Scalable and Distributed Shuffle as a Service
Zeus: Uber’s Highly Scalable and Distributed Shuffle as a ServiceDatabricks
 
Headless Magento - Meet Magento Poland 2017
Headless Magento - Meet Magento Poland 2017Headless Magento - Meet Magento Poland 2017
Headless Magento - Meet Magento Poland 2017Sander Mangel
 
May The Data Stay with U! Network Data Exfiltration Techniques - Brucon 2017.
May The Data Stay with U! Network Data Exfiltration Techniques - Brucon 2017.May The Data Stay with U! Network Data Exfiltration Techniques - Brucon 2017.
May The Data Stay with U! Network Data Exfiltration Techniques - Brucon 2017.Leszek Mi?
 
Network State Awareness & Troubleshooting
Network State Awareness & TroubleshootingNetwork State Awareness & Troubleshooting
Network State Awareness & TroubleshootingAPNIC
 

Similar a AS-STATS (20)

An EyeWitness View into your Network
An EyeWitness View into your NetworkAn EyeWitness View into your Network
An EyeWitness View into your Network
 
Handout: 'Open Source Tools & Resources'
Handout: 'Open Source Tools & Resources'Handout: 'Open Source Tools & Resources'
Handout: 'Open Source Tools & Resources'
 
Building a Small DC
Building a Small DCBuilding a Small DC
Building a Small DC
 
Tcpdump hunter
Tcpdump hunterTcpdump hunter
Tcpdump hunter
 
Event-driven Network Automation and Orchestration
Event-driven Network Automation and OrchestrationEvent-driven Network Automation and Orchestration
Event-driven Network Automation and Orchestration
 
Network troubleshooting
Network troubleshootingNetwork troubleshooting
Network troubleshooting
 
Building a Small Datacenter
Building a Small DatacenterBuilding a Small Datacenter
Building a Small Datacenter
 
Scripting on Routers - NANOG 47
Scripting on Routers - NANOG 47Scripting on Routers - NANOG 47
Scripting on Routers - NANOG 47
 
Initial Experiences Route Filtering at the Edge AS15169 by Arturo L. Servin
Initial Experiences Route Filtering at the Edge AS15169 by Arturo L. ServinInitial Experiences Route Filtering at the Edge AS15169 by Arturo L. Servin
Initial Experiences Route Filtering at the Edge AS15169 by Arturo L. Servin
 
Networks Have Layers - Understanding The OSI Model
Networks Have Layers - Understanding The OSI ModelNetworks Have Layers - Understanding The OSI Model
Networks Have Layers - Understanding The OSI Model
 
When DevOps and Networking Intersect by Brent Salisbury of socketplane.io
When DevOps and Networking Intersect by Brent Salisbury of socketplane.ioWhen DevOps and Networking Intersect by Brent Salisbury of socketplane.io
When DevOps and Networking Intersect by Brent Salisbury of socketplane.io
 
The internet of $h1t
The internet of $h1tThe internet of $h1t
The internet of $h1t
 
Dev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & LoggingDev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & Logging
 
Linux network tools (Maarten Blomme)
Linux network tools (Maarten Blomme)Linux network tools (Maarten Blomme)
Linux network tools (Maarten Blomme)
 
Are general purpose big data systems eating the world?
Are general purpose big data systems eating the world?Are general purpose big data systems eating the world?
Are general purpose big data systems eating the world?
 
There and back again
There and back againThere and back again
There and back again
 
Zeus: Uber’s Highly Scalable and Distributed Shuffle as a Service
Zeus: Uber’s Highly Scalable and Distributed Shuffle as a ServiceZeus: Uber’s Highly Scalable and Distributed Shuffle as a Service
Zeus: Uber’s Highly Scalable and Distributed Shuffle as a Service
 
Headless Magento - Meet Magento Poland 2017
Headless Magento - Meet Magento Poland 2017Headless Magento - Meet Magento Poland 2017
Headless Magento - Meet Magento Poland 2017
 
May The Data Stay with U! Network Data Exfiltration Techniques - Brucon 2017.
May The Data Stay with U! Network Data Exfiltration Techniques - Brucon 2017.May The Data Stay with U! Network Data Exfiltration Techniques - Brucon 2017.
May The Data Stay with U! Network Data Exfiltration Techniques - Brucon 2017.
 
Network State Awareness & Troubleshooting
Network State Awareness & TroubleshootingNetwork State Awareness & Troubleshooting
Network State Awareness & Troubleshooting
 

Más de Thomas Mangin

Más de Thomas Mangin (10)

LINX 83 ExaBGP as a route server ?
LINX 83  ExaBGP as a route server ?LINX 83  ExaBGP as a route server ?
LINX 83 ExaBGP as a route server ?
 
ExaBGP at LINX 83
ExaBGP at LINX 83ExaBGP at LINX 83
ExaBGP at LINX 83
 
VOIP QOS
VOIP QOSVOIP QOS
VOIP QOS
 
Naked BGP
Naked BGPNaked BGP
Naked BGP
 
The benefit of BGP for every service provider
The benefit of BGP for every service providerThe benefit of BGP for every service provider
The benefit of BGP for every service provider
 
ExaProxy
ExaProxyExaProxy
ExaProxy
 
ScavengerEXA
ScavengerEXAScavengerEXA
ScavengerEXA
 
BGP route leak
BGP route leakBGP route leak
BGP route leak
 
IXLeeds 2 Technical Update
IXLeeds 2 Technical UpdateIXLeeds 2 Technical Update
IXLeeds 2 Technical Update
 
IXLeeds
IXLeeds IXLeeds
IXLeeds
 

Último

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Último (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

AS-STATS

  • 1. AS-STATS GET THE MOST OUT OF LINX Thomas Mangin Exa Networks Limited LINX 69
  • 2. Joining LINX, an easy process ? ● Fill the paperwork ● Plug in the router ● Connect to the route servers ● Some members stop here ! ● … ● PROFIT :D
  • 3. Joining LINX, not an easy process ? ● Emailing the linx members ● 356 NOCs to contact ● with many different peering policies ● with many unresponsive peering coordinators ● No one wants to send 300+ peering requests ● No automation (roll your own) ● Benefits are unclear ● Is it worth the effort ?
  • 4. Who will peer with you ? ?
  • 5. Who will peer with you ? Free beer for you tonight if you answered "Patrick W. Gilmore" But it is not the right answer
  • 6. Who will peer with you ? ● Guess work ! ● You are the new kid on the switch ● You are kind of expected to make the first move
  • 7. Who will peer with you ? ● The content networks ● Akamai, Yahoo, Microsoft, Google, Facebook ● all have « open » peering policies ● Linx members with an open peering policy ● http://peeringdb.com/ ● Generally small/medium networks ● You want them as peers but are they a priority ? ● People seeing you via transit
  • 8. Who should you peer with ? ● Networks you see via transit ● Everyone if it is your first IX ● Otherwise not as clear ● Networks you send/receive the most trafic to
  • 9. How to find those « good » peers ? ● Look at traces between your networks ● routers with full routing tables can display ASN traceroute / traceroute as-number-lookup ● http://oppleman.com/dl/?file=lft-2.3.tar.gz use whois.ra.net to find the hops' ASN ● Use netflow to find out who matters to you ● Can Linx do more to help ? ● Web tools to help you find and contact peers ● Possibly – if you think it is important : tell them !
  • 10. What is NetFlow ? ● A protocol defined by RFC 3954
  • 11. What is NetFlow ? ● A protocol defined by RFC 3954 ● Not helpful ! ● A way to know what trafic your router is forwarding ● generating UDP packets ● can include SRC/DST ASN of the packet
  • 12. Where to use NetFlow ? ● Configure it on your EBGP peers ● transit AND peering ● with a full routing table ● Do not need an high sampling rate ● you care about your TOP speakers ● save yourself some router CPU cycles
  • 13. NetFlow collectors ● Many exist ● http://www.networkuptime.com/tools/netflow/ ● Missing my favorite : as-stats ● https://neon1.net/as-stats/ ● Last changelog shows two LINX members :D ● accept sflow as well (foundry users rejoice !) ● Install it in one hour if you can use linux/*BSD ● … or two during the meeting today ● someone else to do a demo later on ?
  • 14. AS-STATS ● A netflow/sflow collector ● Storing data in RRD files ● A cron program ● order the ASNs by level of trafic exchanged ● A web interface to : ● See your trafic per ASN ● See your trafic per LINK
  • 15. How as-stats look ? peers
  • 17. AS-STATS (configuration) # Router IP # SNMP ifindex of the interface monitored # tag (used by RRD) # description (displaid on the web page) # color in HEX RGB 192.0.2.1 10 linx LINX 0A8474 192.0.2.1 40 transit T1 4E66A1 # find your router interface SNMP ifindex # show snmp mib ifmib ifindex | include Ethernet # show interfaces | match "SNMP ifIndex"
  • 18. AS-STATS (daemon) ● an example of a supervise script (for djb fans) #!/bin/sh exec setuidgid nobody /opt/as-stats/bin/netflow-asstatd.pl -s 1000 -r /srv/as-stats/rrd -k /opt/as-stats/conf/netflow-knownlinks
  • 19. AS-STATS (daemon) ● Reflect the locations you use in the program /* changes these values to suit your local configuration */ $rrdpath = "/srv/as-stats/rrd"; $daystatsfile = "/srv/as-stats/txt/asstats_day.txt"; $rrdtool = "/usr/bin/rrdtool"; $asinfofile = "asinfo.txt"; $knownlinksfile = "/opt/as-stats/conf/netflow-knownlinks"; $outispositive = false;
  • 20. AS-STATS (cron) ● cron.d/as-stats (runs hourly) 00 */1 * * * nobody /opt/as-stats/bin/rrd-extractstats.pl /srv/as-stats/rrd/ /opt/as-stats/conf/netflow-knownlinks /srv/as-stats/txt/asstats_day.txt
  • 21. AS-STATS (apache) <VirtualHost 192.0.2.123:80> ServerName flow.domain.com DocumentRoot /opt/as-stats/www <Directory /opt/as-stats/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All </Directory> </VirtualHost> Check file permissions, but – that's it !
  • 22. Example (one way to do on Cisco) ip cef flow-sampler sampler-1000 mode random one-out-of 1000 interface GigabitEthernet0/1 ip address 195.66.224.235 255.255.254.0 no ip route-cache flow no ip route-cache cef no ip flow ingress flow-sampler sampler-1000 flow-sampler sampler-1000 egress interface Loopback 0 ip address 192.0.2.1 255.255.255.255
  • 23. Example (Cisco cont.) ip flow-cache timeout active 5 ip flow-export version 5 origin-as ip flow-export destination 192.0.2.123 ip flow-export source loopback 0 ip flow-aggregation cache as cache timeout active 5 export destination 192.0.2.123 9000 enabled
  • 24. Example (Juniper) > show interfaces ge-0/3/0 unit 123 description Linx; vlan-id 123; family inet { mtu 1500; address 195.66.224.235/23; sampling { input; output; } } /* http://thomas.mangin.com/#tag:link_ipv6_on_juniper */ family inet6 { mtu 1500; address 2001:7F8:4::7814:1/64; }
  • 25. Example (Juniper cont.) > show configuration forwarding-options sampling { input { family inet { rate 1000; max-packets-per-second 7000; } } output { cflowd 192.0.2.123 { port 9000; source-address 192.0.2.1; version 8; aggregation { autonomous-system; } } } }