SlideShare a Scribd company logo
Practical Implementation of BGP Community
with Geotags
Muhammad Moinur Rahman
1Asia Alliance Communication Ltd
moin@1asia-ahl.com
GeoTAGS
•  Geographical Identification Metadata
•  A form of GeoSpatial Metadata
–  Applicable to objects that have GeoGraphic Extent
–  Or applicable to objects with some position on this
Earth
–  Objects like Photo, Audio/Video Files, SMS Messages
–  Unlikely but true DNS information (LOC resources)
•  Facebook Check-in or Photos @
–  Adds Geotaggs in our Facebook updates
–  Adds Geotaggs in our Facebook Photos
Geotags in BGP Routes
•  A router is a device which intelligently
routes packets
– Not a Phone
– Not a Camera
– Not a GPS Device
•  How can we add metatags in a route?
– GeoCoding
Geocoding
•  A process of enriching description of a
location
•  Most frequently a postal address/place with
GeoGraphic co-ordinates
–  From a Spatial Reference Data
•  Or reverse Geocoding
•  Enriching a GeoGraphic Co-ordinate with a
postal address/place
–  Facebook/Google Plus and other social sites use
reverse Geocoding for our Check-in
BGP routes with location
information
•  Routers don’t have a builtin GPS device
•  Need a process to manually Geocode it’s
route-origin
•  Need to add a tag to the route objects or
group of routes
•  Answer : BGP Communities
BGP Communities
•  A BGP attribute (RFC1997)
•  A mechanism for coloring or (GEO)tagging
route destinations or a group of route
destinations
•  A 4-byte value (RFC1998)
•  Two types of communities
– Regular
– Extended
BGP Communities(Contd)
•  A 32-bit integer isn’t always easy to work with
–  More common convention is to split into two 16-bit values
–  Commonly <local-ASN>:value e.g 10102:0 (Sorry no help
for 4 byte ASNs)
–  Specially reserved (0:0 – 0:65535 and 65535:0 –
65535:65535)
–  First value is intended to define the scope or “target”
•  So you know if this community is “for you” or someone else
•  So two networks don’t do conflicting things with the same data
–  Second value is arbitrary data for the targeted network
•  Whatever data you’re trying to encode
BGP Community Tags
•  Can be added to a particular prefix
–  set community 10102:100
–  Set community 10102:90 additive
•  Can be matched by route-map
–  ip community-list PEER-ROUTES 10102:6600
–  community-set PEER
10102:31021
end-set
•  Can be deleted from particular prefixes
•  Full control over community tags
Cause
•  A scalable network needs them for its own use
–  Be able to identify customers, transits, peers, etc
–  To perform traffic engineering and export controls
–  There is no other truly acceptable implementation
•  But customers love using them as well
–  “Power user” customers demand this level of control.
–  Having self-supporting customers doesn’t hurt either.
–  The more powerful you make your communities, the
more work it will save you in the long run.
Practical consideration
•  Most routers parse BGP communities as strings
rather than integers, using Regular Expressions.
–  Design your community system with this in mind.
–  Think strings and character positions, not numbers.
–  For Example, 10102:1234 can easily be parsed as
•  Field #1, Value 1
•  Field #2, Value 23
•  Field #3, Value 4
–  But can’t easily be parsed numerically
•  For example as “larger than 1233”.
–  Remember not to exceed 65535 as a 16-bit value.
(65536 options) to represent
•  Carried across AS
Types of Implementation
•  Practical BGP Communities Implementation can
essentially be classified into two types:
•  Informational tags
–  Communities set by and sent from a provider network, to
tell their customers (or other interested parties) something
about that route.
•  Action tags
–  Communities set by and sent from a customer network, to
influence the routing policies of the provider network
–  Alter route attributes on demand
–  Both globally and within own network
–  Control the import/export of routes
Informational tags
•  Information communities typically focus on
–  Where the route was learned
•  AKA Geographic data (continent, country, region, city, etc in
short geotag)
–  How the route was learned
•  AKA Relationship data (transit, peer, customer, internal, etc)
–  There is no other good way to pass on this data
•  This data is then used to make policy decisions
–  Either by you, your customer, or an unknown third party.
–  Exporting this data to the Internet can provide invaluable
assistance to third party networks you may never even
know about. This is usually a good thing for everyone.
Ways to encode Information
•  Encode simple arbitrary data
–  No standards, each network defines its own
mapping
•  Which must be published somewhere like ASN
description in IRR for others to use
–  Ex: Continent (1 = Asia, 2 = Africa, etc)
–  Ex: Relationship (1 = Transit, 2 = Public Peer, etc)
•  Standards based encoding
–  Ex: ISO 3166 encodes Country Codes into 2
digits
Providing information
•  As always, the exact design decision
depends on specific network and footprint.
•  Networks in only a few major cities may want
to focus on enumerating those cities in a
short list.
•  Networks in a great number of cities may
want to focus on regional aggregation
specific to their scope.
•  Plan for the future!
–  Changing community design after it is already
being used by customers may prove impossible.
Practical Use of Informational Tags
•  Make certain that Informational Tags from your
Action Tags can easily be distinguished
•  Ex: Make Informational Tags always 5 characters
in length, and action tags to be 4 characters or
less.
•  This allow to easily match Info tags: “10102:.{5}”
•  Filter communities from neighbors
–  None is allowed to send Informational tags, these
should only be set by Service Provider, and these
should be stripped from all BGP neighbors
(customers, transits, peers, etc).
–  Otherwise there is a massive security problem.
A simple approach towards
providing information
•  For example: 10102:TCCCP
–  T Type of Relationship
–  C Continent Code
–  CC Country Code
–  P POP Code
•  The community 10102:21021 could be
parsed as:
–  Public Peer
–  Asia
–  Singapore
–  Equinix
Definitions - Types
•  Type of routes
– 1XYYP – Transit
– 2XYYP – Public Peer
– 3XYYP – Private Peer
– 4XYYP – Customer
– 5XYYP – Internal
Definitions (Contd)
•  Continents
– T0YYP – Asia
– T1YYP – Africa
– T2YYP – Europe
– T3YYP – North America
– T4YYP – South America
– T5YYP – Australia
– T6YYP – Antarctica
Definitions (Contd)
•  Countries
– T001P – Bangladesh
– T002P – Singapore
– T201P – United Kingdom
– T202P – France
– So on ..
Definitions (Contd)
•  PoP
– T0011 – Central NOC
– T0021 – Singapore Global Switch
– T0022 – Singapore Equinix
– T2011 – United Kingdom Telehouse North
– T3011 – United States TelX
– So on ..
Let’s start geoconfiguring!!
router bgp 10102
neighbor x.x.x.x remote-as 58656
neighbor x.x.x.x description bdHUB @Telx
NYC
neighbor x.x.x.x route-map as58656-in in
neighbor x.x.x.x send-community
!
route-map as58656-in permit 10
set community 10102:43011
References
1.  Using Communities for Multihoming (
http://bgp4all.com/ftp/isp-workshops/BGP%20Presentations/09-
BGP-Communities.pdf)
2.  BGP Techniques for Internet Service Providers – Philip Smith
3.  BGP Communities: A guide for Service Providers – Richard A.
Steenbergen & Tom Scholl

More Related Content

Similar to Practical Implementation of BGP Community with Geotags

Sept 2017 dynamic routing
Sept 2017   dynamic routingSept 2017   dynamic routing
Sept 2017 dynamic routing
shahin raj
 
Meetup prague 201811_v01
Meetup prague 201811_v01Meetup prague 201811_v01
Meetup prague 201811_v01
Milos Molnar
 
Tags. troubleshooting and optimization startup sauna
Tags. troubleshooting and optimization startup saunaTags. troubleshooting and optimization startup sauna
Tags. troubleshooting and optimization startup sauna
Karina Uryvskaya
 
【EPN Seminar Nov.10. 2015】 パネルディスカッション その2: BGP Peering Engineering Automatio...
【EPN Seminar Nov.10. 2015】 パネルディスカッション その2: BGP Peering Engineering Automatio...【EPN Seminar Nov.10. 2015】 パネルディスカッション その2: BGP Peering Engineering Automatio...
【EPN Seminar Nov.10. 2015】 パネルディスカッション その2: BGP Peering Engineering Automatio...
シスコシステムズ合同会社
 
Internet Measurement Tools & Their Usefulness by Gaurab Raj Upadhaya
Internet Measurement Tools & Their Usefulness by Gaurab Raj UpadhayaInternet Measurement Tools & Their Usefulness by Gaurab Raj Upadhaya
Internet Measurement Tools & Their Usefulness by Gaurab Raj Upadhaya
MyNOG
 
Information Networks - (Covered all the Important Topics)
Information Networks - (Covered all the Important Topics) Information Networks - (Covered all the Important Topics)
Bluetooth Data Points
Bluetooth Data PointsBluetooth Data Points
Bluetooth Data Points
Coldbeans Software
 
Best Practices Using RTI Connext DDS
Best Practices Using RTI Connext DDSBest Practices Using RTI Connext DDS
Best Practices Using RTI Connext DDS
Real-Time Innovations (RTI)
 
DSDV Protocols by Mr.Darwin Nesakumar A, AP/ECE, R.M.K.Engineering College
DSDV Protocols by Mr.Darwin Nesakumar A, AP/ECE, R.M.K.Engineering CollegeDSDV Protocols by Mr.Darwin Nesakumar A, AP/ECE, R.M.K.Engineering College
DSDV Protocols by Mr.Darwin Nesakumar A, AP/ECE, R.M.K.Engineering College
Darwin Nesakumar
 
Communication systems revision 2017
Communication systems revision 2017 Communication systems revision 2017
Communication systems revision 2017
greg robertson
 
aniruddh khare resume (1)
aniruddh khare resume (1)aniruddh khare resume (1)
aniruddh khare resume (1)aniruddh khare
 
Alternative metrics
Alternative metricsAlternative metrics
Alternative metrics
Parthipan Parthi
 
GPRS architecture
GPRS architectureGPRS architecture
GPRS architecture
Ekansh Agarwal
 
Computer Networking: LAN and WAN Technologies
Computer Networking: LAN and WAN TechnologiesComputer Networking: LAN and WAN Technologies
Computer Networking: LAN and WAN Technologies
Bisrat Girma
 
YILMA GIRMA 9-18-2015
YILMA GIRMA 9-18-2015YILMA GIRMA 9-18-2015
YILMA GIRMA 9-18-2015Girma Yilma
 
India Internet Access Problems Whitepaper_Ver 2.2
India Internet Access Problems Whitepaper_Ver 2.2India Internet Access Problems Whitepaper_Ver 2.2
India Internet Access Problems Whitepaper_Ver 2.2Arin Burman
 
Data Packet Evolution - Mobinil
Data Packet Evolution - MobinilData Packet Evolution - Mobinil
Data Packet Evolution - MobinilMohamed Sahl
 
15 coms 525 tcpip - border gateway protocols
15    coms 525 tcpip - border gateway protocols15    coms 525 tcpip - border gateway protocols
15 coms 525 tcpip - border gateway protocols
Palanivel Kuppusamy
 
Use of AI in commuting
Use of AI in commutingUse of AI in commuting
Use of AI in commuting
Bansi Mehta
 

Similar to Practical Implementation of BGP Community with Geotags (20)

Sept 2017 dynamic routing
Sept 2017   dynamic routingSept 2017   dynamic routing
Sept 2017 dynamic routing
 
Meetup prague 201811_v01
Meetup prague 201811_v01Meetup prague 201811_v01
Meetup prague 201811_v01
 
Tags. troubleshooting and optimization startup sauna
Tags. troubleshooting and optimization startup saunaTags. troubleshooting and optimization startup sauna
Tags. troubleshooting and optimization startup sauna
 
【EPN Seminar Nov.10. 2015】 パネルディスカッション その2: BGP Peering Engineering Automatio...
【EPN Seminar Nov.10. 2015】 パネルディスカッション その2: BGP Peering Engineering Automatio...【EPN Seminar Nov.10. 2015】 パネルディスカッション その2: BGP Peering Engineering Automatio...
【EPN Seminar Nov.10. 2015】 パネルディスカッション その2: BGP Peering Engineering Automatio...
 
Internet Measurement Tools & Their Usefulness by Gaurab Raj Upadhaya
Internet Measurement Tools & Their Usefulness by Gaurab Raj UpadhayaInternet Measurement Tools & Their Usefulness by Gaurab Raj Upadhaya
Internet Measurement Tools & Their Usefulness by Gaurab Raj Upadhaya
 
Information Networks - (Covered all the Important Topics)
Information Networks - (Covered all the Important Topics) Information Networks - (Covered all the Important Topics)
Information Networks - (Covered all the Important Topics)
 
Bluetooth Data Points
Bluetooth Data PointsBluetooth Data Points
Bluetooth Data Points
 
Best Practices Using RTI Connext DDS
Best Practices Using RTI Connext DDSBest Practices Using RTI Connext DDS
Best Practices Using RTI Connext DDS
 
DSDV Protocols by Mr.Darwin Nesakumar A, AP/ECE, R.M.K.Engineering College
DSDV Protocols by Mr.Darwin Nesakumar A, AP/ECE, R.M.K.Engineering CollegeDSDV Protocols by Mr.Darwin Nesakumar A, AP/ECE, R.M.K.Engineering College
DSDV Protocols by Mr.Darwin Nesakumar A, AP/ECE, R.M.K.Engineering College
 
Communication systems revision 2017
Communication systems revision 2017 Communication systems revision 2017
Communication systems revision 2017
 
aniruddh khare resume (1)
aniruddh khare resume (1)aniruddh khare resume (1)
aniruddh khare resume (1)
 
CV_ANUPAM MONDAL
CV_ANUPAM MONDALCV_ANUPAM MONDAL
CV_ANUPAM MONDAL
 
Alternative metrics
Alternative metricsAlternative metrics
Alternative metrics
 
GPRS architecture
GPRS architectureGPRS architecture
GPRS architecture
 
Computer Networking: LAN and WAN Technologies
Computer Networking: LAN and WAN TechnologiesComputer Networking: LAN and WAN Technologies
Computer Networking: LAN and WAN Technologies
 
YILMA GIRMA 9-18-2015
YILMA GIRMA 9-18-2015YILMA GIRMA 9-18-2015
YILMA GIRMA 9-18-2015
 
India Internet Access Problems Whitepaper_Ver 2.2
India Internet Access Problems Whitepaper_Ver 2.2India Internet Access Problems Whitepaper_Ver 2.2
India Internet Access Problems Whitepaper_Ver 2.2
 
Data Packet Evolution - Mobinil
Data Packet Evolution - MobinilData Packet Evolution - Mobinil
Data Packet Evolution - Mobinil
 
15 coms 525 tcpip - border gateway protocols
15    coms 525 tcpip - border gateway protocols15    coms 525 tcpip - border gateway protocols
15 coms 525 tcpip - border gateway protocols
 
Use of AI in commuting
Use of AI in commutingUse of AI in commuting
Use of AI in commuting
 

More from Muhammad Moinur Rahman

FreeBSD is not Linux
FreeBSD is not LinuxFreeBSD is not Linux
FreeBSD is not Linux
Muhammad Moinur Rahman
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
Muhammad Moinur Rahman
 
Network tips tricks
Network tips tricksNetwork tips tricks
Network tips tricks
Muhammad Moinur Rahman
 
IRR toolset with rpsl
IRR toolset with rpslIRR toolset with rpsl
IRR toolset with rpsl
Muhammad Moinur Rahman
 
Importance of sshfp and configuring sshfp for network devices
Importance of sshfp and configuring sshfp for network devicesImportance of sshfp and configuring sshfp for network devices
Importance of sshfp and configuring sshfp for network devices
Muhammad Moinur Rahman
 
BGP communities and geotags
BGP communities and geotagsBGP communities and geotags
BGP communities and geotags
Muhammad Moinur Rahman
 
The FreeBSD - PRIMER
The FreeBSD - PRIMERThe FreeBSD - PRIMER
The FreeBSD - PRIMER
Muhammad Moinur Rahman
 
FreeBSD Portscamp, Kuala Lumpur 2016
FreeBSD Portscamp, Kuala Lumpur 2016FreeBSD Portscamp, Kuala Lumpur 2016
FreeBSD Portscamp, Kuala Lumpur 2016
Muhammad Moinur Rahman
 
Software defined networking: Primer
Software defined networking: PrimerSoftware defined networking: Primer
Software defined networking: Primer
Muhammad Moinur Rahman
 
Introduction to SDN
Introduction to SDNIntroduction to SDN
Introduction to SDN
Muhammad Moinur Rahman
 
Rpki with rpki.net tools
Rpki with rpki.net toolsRpki with rpki.net tools
Rpki with rpki.net tools
Muhammad Moinur Rahman
 
FreeBSD and Hardening Web Server
FreeBSD and Hardening Web ServerFreeBSD and Hardening Web Server
FreeBSD and Hardening Web Server
Muhammad Moinur Rahman
 
Blockchain - The future of internet
Blockchain - The future of internetBlockchain - The future of internet
Blockchain - The future of internet
Muhammad Moinur Rahman
 

More from Muhammad Moinur Rahman (13)

FreeBSD is not Linux
FreeBSD is not LinuxFreeBSD is not Linux
FreeBSD is not Linux
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
 
Network tips tricks
Network tips tricksNetwork tips tricks
Network tips tricks
 
IRR toolset with rpsl
IRR toolset with rpslIRR toolset with rpsl
IRR toolset with rpsl
 
Importance of sshfp and configuring sshfp for network devices
Importance of sshfp and configuring sshfp for network devicesImportance of sshfp and configuring sshfp for network devices
Importance of sshfp and configuring sshfp for network devices
 
BGP communities and geotags
BGP communities and geotagsBGP communities and geotags
BGP communities and geotags
 
The FreeBSD - PRIMER
The FreeBSD - PRIMERThe FreeBSD - PRIMER
The FreeBSD - PRIMER
 
FreeBSD Portscamp, Kuala Lumpur 2016
FreeBSD Portscamp, Kuala Lumpur 2016FreeBSD Portscamp, Kuala Lumpur 2016
FreeBSD Portscamp, Kuala Lumpur 2016
 
Software defined networking: Primer
Software defined networking: PrimerSoftware defined networking: Primer
Software defined networking: Primer
 
Introduction to SDN
Introduction to SDNIntroduction to SDN
Introduction to SDN
 
Rpki with rpki.net tools
Rpki with rpki.net toolsRpki with rpki.net tools
Rpki with rpki.net tools
 
FreeBSD and Hardening Web Server
FreeBSD and Hardening Web ServerFreeBSD and Hardening Web Server
FreeBSD and Hardening Web Server
 
Blockchain - The future of internet
Blockchain - The future of internetBlockchain - The future of internet
Blockchain - The future of internet
 

Recently uploaded

This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
ufdana
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptxInternet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
VivekSinghShekhawat2
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
keoku
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Brad Spiegel Macon GA
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
GTProductions1
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
Javier Lasa
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
eutxy
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 

Recently uploaded (20)

This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptxInternet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 

Practical Implementation of BGP Community with Geotags

  • 1. Practical Implementation of BGP Community with Geotags Muhammad Moinur Rahman 1Asia Alliance Communication Ltd moin@1asia-ahl.com
  • 2. GeoTAGS •  Geographical Identification Metadata •  A form of GeoSpatial Metadata –  Applicable to objects that have GeoGraphic Extent –  Or applicable to objects with some position on this Earth –  Objects like Photo, Audio/Video Files, SMS Messages –  Unlikely but true DNS information (LOC resources) •  Facebook Check-in or Photos @ –  Adds Geotaggs in our Facebook updates –  Adds Geotaggs in our Facebook Photos
  • 3. Geotags in BGP Routes •  A router is a device which intelligently routes packets – Not a Phone – Not a Camera – Not a GPS Device •  How can we add metatags in a route? – GeoCoding
  • 4. Geocoding •  A process of enriching description of a location •  Most frequently a postal address/place with GeoGraphic co-ordinates –  From a Spatial Reference Data •  Or reverse Geocoding •  Enriching a GeoGraphic Co-ordinate with a postal address/place –  Facebook/Google Plus and other social sites use reverse Geocoding for our Check-in
  • 5. BGP routes with location information •  Routers don’t have a builtin GPS device •  Need a process to manually Geocode it’s route-origin •  Need to add a tag to the route objects or group of routes •  Answer : BGP Communities
  • 6. BGP Communities •  A BGP attribute (RFC1997) •  A mechanism for coloring or (GEO)tagging route destinations or a group of route destinations •  A 4-byte value (RFC1998) •  Two types of communities – Regular – Extended
  • 7. BGP Communities(Contd) •  A 32-bit integer isn’t always easy to work with –  More common convention is to split into two 16-bit values –  Commonly <local-ASN>:value e.g 10102:0 (Sorry no help for 4 byte ASNs) –  Specially reserved (0:0 – 0:65535 and 65535:0 – 65535:65535) –  First value is intended to define the scope or “target” •  So you know if this community is “for you” or someone else •  So two networks don’t do conflicting things with the same data –  Second value is arbitrary data for the targeted network •  Whatever data you’re trying to encode
  • 8. BGP Community Tags •  Can be added to a particular prefix –  set community 10102:100 –  Set community 10102:90 additive •  Can be matched by route-map –  ip community-list PEER-ROUTES 10102:6600 –  community-set PEER 10102:31021 end-set •  Can be deleted from particular prefixes •  Full control over community tags
  • 9. Cause •  A scalable network needs them for its own use –  Be able to identify customers, transits, peers, etc –  To perform traffic engineering and export controls –  There is no other truly acceptable implementation •  But customers love using them as well –  “Power user” customers demand this level of control. –  Having self-supporting customers doesn’t hurt either. –  The more powerful you make your communities, the more work it will save you in the long run.
  • 10. Practical consideration •  Most routers parse BGP communities as strings rather than integers, using Regular Expressions. –  Design your community system with this in mind. –  Think strings and character positions, not numbers. –  For Example, 10102:1234 can easily be parsed as •  Field #1, Value 1 •  Field #2, Value 23 •  Field #3, Value 4 –  But can’t easily be parsed numerically •  For example as “larger than 1233”. –  Remember not to exceed 65535 as a 16-bit value. (65536 options) to represent •  Carried across AS
  • 11. Types of Implementation •  Practical BGP Communities Implementation can essentially be classified into two types: •  Informational tags –  Communities set by and sent from a provider network, to tell their customers (or other interested parties) something about that route. •  Action tags –  Communities set by and sent from a customer network, to influence the routing policies of the provider network –  Alter route attributes on demand –  Both globally and within own network –  Control the import/export of routes
  • 12. Informational tags •  Information communities typically focus on –  Where the route was learned •  AKA Geographic data (continent, country, region, city, etc in short geotag) –  How the route was learned •  AKA Relationship data (transit, peer, customer, internal, etc) –  There is no other good way to pass on this data •  This data is then used to make policy decisions –  Either by you, your customer, or an unknown third party. –  Exporting this data to the Internet can provide invaluable assistance to third party networks you may never even know about. This is usually a good thing for everyone.
  • 13. Ways to encode Information •  Encode simple arbitrary data –  No standards, each network defines its own mapping •  Which must be published somewhere like ASN description in IRR for others to use –  Ex: Continent (1 = Asia, 2 = Africa, etc) –  Ex: Relationship (1 = Transit, 2 = Public Peer, etc) •  Standards based encoding –  Ex: ISO 3166 encodes Country Codes into 2 digits
  • 14. Providing information •  As always, the exact design decision depends on specific network and footprint. •  Networks in only a few major cities may want to focus on enumerating those cities in a short list. •  Networks in a great number of cities may want to focus on regional aggregation specific to their scope. •  Plan for the future! –  Changing community design after it is already being used by customers may prove impossible.
  • 15. Practical Use of Informational Tags •  Make certain that Informational Tags from your Action Tags can easily be distinguished •  Ex: Make Informational Tags always 5 characters in length, and action tags to be 4 characters or less. •  This allow to easily match Info tags: “10102:.{5}” •  Filter communities from neighbors –  None is allowed to send Informational tags, these should only be set by Service Provider, and these should be stripped from all BGP neighbors (customers, transits, peers, etc). –  Otherwise there is a massive security problem.
  • 16. A simple approach towards providing information •  For example: 10102:TCCCP –  T Type of Relationship –  C Continent Code –  CC Country Code –  P POP Code •  The community 10102:21021 could be parsed as: –  Public Peer –  Asia –  Singapore –  Equinix
  • 17. Definitions - Types •  Type of routes – 1XYYP – Transit – 2XYYP – Public Peer – 3XYYP – Private Peer – 4XYYP – Customer – 5XYYP – Internal
  • 18. Definitions (Contd) •  Continents – T0YYP – Asia – T1YYP – Africa – T2YYP – Europe – T3YYP – North America – T4YYP – South America – T5YYP – Australia – T6YYP – Antarctica
  • 19. Definitions (Contd) •  Countries – T001P – Bangladesh – T002P – Singapore – T201P – United Kingdom – T202P – France – So on ..
  • 20. Definitions (Contd) •  PoP – T0011 – Central NOC – T0021 – Singapore Global Switch – T0022 – Singapore Equinix – T2011 – United Kingdom Telehouse North – T3011 – United States TelX – So on ..
  • 21. Let’s start geoconfiguring!! router bgp 10102 neighbor x.x.x.x remote-as 58656 neighbor x.x.x.x description bdHUB @Telx NYC neighbor x.x.x.x route-map as58656-in in neighbor x.x.x.x send-community ! route-map as58656-in permit 10 set community 10102:43011
  • 22. References 1.  Using Communities for Multihoming ( http://bgp4all.com/ftp/isp-workshops/BGP%20Presentations/09- BGP-Communities.pdf) 2.  BGP Techniques for Internet Service Providers – Philip Smith 3.  BGP Communities: A guide for Service Providers – Richard A. Steenbergen & Tom Scholl