Hats Network | LogoHats Network
BGP Communities

Region Codes

Geographic region codes used in AS203314 BGP communities for area-based routing policies.

Regions are grouped by geographic area with 2-digit codes used in community strings like 203314:130:XX and 203314:201:XX.

Usage: These codes identify geographic regions in internal communities (130:XX, 135:XX) and control communities (201:XX).

Region Code Reference

Region NameAreaCodeNotes
AsiaWest100Hong Kong, Taiwan
AsiaEast150Japan, Singapore
EuropeWest200UK, Ireland, France
EuropeEast250Germany, Netherlands, Russia
AmericasNorth300USA, Canada
AmericasSouth350Brazil, Argentina
AustraliaWest400Perth
AustraliaEast450Melbourne, Sydney
Antarctica-500Research networks

Regional Groupings

Asia (100, 150)

Asia West (100): Hong Kong, Taiwan, mainland China

Asia East (150): Japan, Korea, Singapore, Southeast Asia

Europe (200, 250)

Europe West (200): UK, Ireland, France, Benelux, Iberia

Europe East (250): Germany, DACH, Netherlands, Nordics, Eastern Europe

Americas (300, 350)

North America (300): United States, Canada, Mexico

South America (350): Brazil, Argentina, Chile, Colombia

Oceania (400, 450)

Australia West (400): Western Australia

Australia East (450): Eastern states (NSW, VIC, QLD)

Using Region Codes

In Internal Communities

Identify where a route was learned:

203314:130:100  → Learned in Asia West
203314:130:150  → Learned in Asia East
203314:130:300  → Learned in North America

In Control Communities

Control geographic propagation:

# Keep within Asia only
203314:2:1          # Disable cross-region
203314:201:300      # Exclude North America
203314:201:200      # Exclude Europe

Regional Filtering Examples

Accept only Asian routes:

# Allow only Asia West and Asia East
if (community matches 203314:130:1*) then accept
else reject

Prefer local region:

# Higher local preference for Asia West
if (community matches 203314:130:100) then localpref 200
if (community matches 203314:130:150) then localpref 150
if (community matches 203314:130:300) then localpref 100

Tip: Region codes are ideal for high-level geographic traffic engineering when you don't need PoP-level granularity.

On this page