Understanding BGP Routing and Troubleshooting Reachability Issues

 Basic Overview :-

  • BGP is a Path vector protocol.
  • It uses TCP port no. 179.
  • BGP use path vector attributes such as AS path length, local preference, origin type, and other optional attributes to determine the best path to reach a specific network prefix.
  • The AS path attribute helps prevent routing loops by specifying the sequence of ASNs (Autonomous System Numbers) through which the route has traversed.
  • BGP is also known as “AS-by-AS routing protocol”.
  • In short, internet means network of network. When user try to access towards internet packet traverse through different AS. 

How it’s happened?? Let’s check.  

 Illustration 1: PGCIL user wants to access cricbuzz website to see live cricket match score. How packet traverse from source to destination to access internet Via AS By AS is shown as below

  •                               Fig:1 IPV4 route propagation AS by AS routing protocol

    How can user access internet ??

     

    First of all which users who wants to access internet, need to advertise particular user prefix IP block in all upstream of ISP end.

    Same way this IP block need to be accepted at customer end for return traffic.

    Once IP block acceptance done need to check in looking glass in trace route log end to end IP reach ability is there or not.

     

    Illustration- 2 Kindly check reach-ability of IP block :102.220.198.0/24 towards internet. During trace-route log we observe request time out after 4th hop. How to investigate this case??

     

    If IP block: 102.220.198.0/24 is advertised properly towards all peering ISP then it’s reflected in Looking glass how packet traverse end to end. Also, it gives assurance that IP block advertisement done properly.

     

                                 Fig:2 trace route log of user IP block 


    If request time out occurs after 4th hop in trace route need to login in router and check route-table of 182.79.149.102 to investigate at which particular section issue occurs to reach ability towards internet for this IP block users.

    Generally, BGP takes shortest-AS path to traverse packet from source to destination. Nowadays users prefix block advertisement done at multiple peering location towards upstream. Hence, if any OFC cut happens, traffic automatically switches over 2nd shortest AS-path route. 

     


                                   Fig:3 Shortest-AS path entry in BGP route table


    Note:   

    1.BGP table always reflects best possible routes entry.

    2. By default local preference value is 100.  Local preference is used for path-manipulation of BGP and it generally used for exit path of an Autonomous system.

    3. MED is used for return traffic.


     

     

     

     

Comments

Popular posts from this blog

AI in NOC: A New Era for Capacity Planning and Network Management

Basics of Multiprotocol Label Switching

Traffic engineering: An attractive feature of MPLS