What is BGP communities and route filtering?
Why Interviewers Ask This
Interviewers ask this to evaluate whether you have the depth of knowledge needed to mentor others and lead technical decisions. The expected answer goes beyond definitions into practical implications and real-world consequences.
Answer
BGP communities are optional, transitive path attributes that tag routes with additional information, enabling flexible policy application. A community is a 32-bit value written as AS:value. Well-known communities: NO_EXPORT (do not advertise to eBGP peers), NO_ADVERTISE (do not advertise to any peer), LOCAL_AS (do not advertise outside the local confederation). Custom communities: ISPs use them to signal route preferences, triggering upstream policies. For example, attaching community 65000:100 might tell an ISP to set lower local preference for that route. BGP route filtering techniques: prefix-lists (filter by specific prefixes/ranges), AS-path filter lists (filter by regex on AS_PATH), route-maps (set/match multiple attributes, most flexible), community-lists (match by community values). Proper BGP filtering is critical for ISPs and large networks — incorrect BGP announcements can cause major Internet routing incidents.
Pro Tip
This topic has Networking-specific nuances that differ from general programming. Highlighting those nuances in your answer shows expertise rather than generic knowledge.
Previous
What is VXLAN and its role in data center networking?
Next
What is network function virtualization (NFV)?