BGP Path Attributes: AS Path


BGP Path Attributes – AS Path

AS Path is another Well-Known and Mandatory BGP Path attribute. Here, as we have discusssed before, Well-Known means “it is supported by every BGP implementation” and Mandatory means “it must be included in every route entry”.

In AS Path mechanism, whenever a route pass a AS (Autonomous System), it adds the number of AS it passed. So, AS Path attribute is a list of AS numbers, that the router traverse.With this mechanism AS Path attribute is also used for loop detection and loop avoidance. Because, if a router sees its Autonomous Number in the list of AS Path, it rejects that update.

The shortest AS Path is selected as the route in the BGP Path algorithm. This is like RIP hop count. Less hops are more preferable beceuse of the ease of going throught.

Sometimes additional hops are added manually for as path manuplation. By doing this, the path that is determined by network admin, is selected as BGP Best path.

bgp path attribute, as path, as path prepending

BGP Path Attribute, AS Path
For the above example, the network is advertised by RouterB. It adds its own AS number to the AS Path list. After that, all the ASs adds their AS numbers to the AS Path list. And when this route reach to RouterA, the AS Path list is like 10 20 30. This is basically the AS Path of that BGP route.

AS Path Prepending

Sometimes network admins decide the BGP paths and according to this decision, they changes the BGP paths. One of the way of this change that is related with AS Path is AS Path Prepending. AS Path Prepending is basically manuplating the AS Paths.

In AS Path Prepending, you can add additional AS numbers to the route, and the AS Path become longer after this addition. In other words, by manuplating AS Path List, the shortest path becomes longer.
We can use Route Maps to do AS Path Prepending.

Let’s explain this with an example. Think about the below topology:

bgp path attribute, as path, as path prepending

We're Sorry!
Full Access is for only IPCisco Crew...
With IPCisco Membership, You Can Access:
• All Certification Courses (Cisco, Juniper, Nokia and Huawei),
• Thousands of Questions (Lesson Quizes and Special Quiz Section),
• Carieer Consultancy, CV/Resume Check, Career Advice Meeting,
• Cheat Sheets, Job Interview Trainings, Network Tools,
You will be Member of a Big IPCisco Community,
You will Learn Network Lessons with Always,
New And Different Learning Styles!
We are waiting for you!

Lesson tags: BGP, path attributes, as path
Back to: JNCIE > BGP

Comments are closed.