
The TCP/IP Guide - Version 3.0 (Contents) ` 774 _ © 2001-2005 Charles M. Kozierok. All Rights Reserved.
Only”. These are attempt to control the flow of traffic over those streets. A more extreme
example of this would be a street in the neighborhood where I used to live, where a
barricade was intentionally erected in the middle to turn a busy through street into a pair of
dead-ends. Again, the goal was traffic control.
These measures highlight a key distinction between local traffic and through traffic in a
neighborhood. The very same categorization is important in BGP:
☯ Local Traffic: Traffic carried within an autonomous system that either originated in
that same AS, or is intended to be delivered within that AS. This is like local traffic on a
street.
☯ Transit Traffic: Traffic that was generated outside that AS and is intended to be
delivered outside the AS. This is like what we commonly call through traffic on the
streets.
BGP Autonomous System Types
In the previous topic we discussed the distinction between internal routers and border (or
boundary) routers in an AS. If we look at the entire BGP internetwork, we can make a
similar distinction between different types of ASes, based on how they are interconnected in
the overall BGP topology. There are two main types of AS:
☯ Stub AS: This is an AS that is connected to only one other AS. It is comparable to a
cul-de-sac (dead-end street) in our road analogy; usually, only vehicles coming from or
going to houses on the street will be found on that street.
☯ Multihomed AS: This is an AS that is connected to two or more other ASes. It is
comparable to a through street in our road analogy, because it is possible that cars
may enter the street and pass through it without stopping at any of the street's houses.
In the example BGP internetwork in Figure 191, I have linked border routers in AS #2 to
both AS #1 and AS #3. While traffic from AS #2 can flow both to and from AS #1 and AS #3,
it is possible that traffic from AS #1 may also flow to AS #3 and vice-versa. AS #2 acts as
the “through street” for these datagrams.
BGP Autonomous System Routing Policies
The reason why BGP makes a distinction between traffic types and AS types is the same
as why it is done on the streets: many folks have a dim view of through traffic. In a neigh-
borhood, everyone wants to be able to get from their homes to anywhere they need to go in
the city, but they don't want lots of other people using their streets. Similarly, every auton-
omous system must use at least one other autonomous system to communicate with
distance ASes, but many are less than enthusiastic about being a conduit for lots of
external traffic.
This reluctance really does make sense in many cases, both in the case of a neighborhood
or in the case of BGP. Having lots of cars and trucks on a residential street can be a
problem in a number of ways: safety issues, wear and tear on the road, pollution and so
forth. Similarly, if a multihomed AS was forced to carry all transit traffic that other ASes want
to send to it, it might become overloaded.