01-20-2016 02:06 AM - edited 03-05-2019 03:09 AM
Hi Guys,
I just want to know about how BGP works in simple terms.
Like EIGRP and OSPF uses Hello packets to discover neighbor maintains 3 table, how these terms work with BGP ?
Thank you,
Mainodin
Solved! Go to Solution.
01-20-2016 02:43 AM
Mainodin,
You need to understand that what follows is a gross simplification of BGP so you have to take it that way.
BGP is actually very similar to RIP. In its core, just like RIP, it learns routes from different neighbors (in BGP called peers), adds its own routes, decides what path toward a particular destination is the best one, and for each known destination, sends this single best route to its peers.
Principial differences between BGP and internal routing protocols are (this list is not comprehensive):
Would this help?
Best regards,
Peter
01-20-2016 02:39 AM
BGP and "simple terms" ... Not sure if that's possible.
Start with the BGP-Chapter from the Cisco Technology Handbook:
http://docwiki.cisco.com/wiki/Border_Gateway_Protocol
Wikipedia has a lengthy article on BGP too:
01-20-2016 02:43 AM
Mainodin,
You need to understand that what follows is a gross simplification of BGP so you have to take it that way.
BGP is actually very similar to RIP. In its core, just like RIP, it learns routes from different neighbors (in BGP called peers), adds its own routes, decides what path toward a particular destination is the best one, and for each known destination, sends this single best route to its peers.
Principial differences between BGP and internal routing protocols are (this list is not comprehensive):
Would this help?
Best regards,
Peter
01-20-2016 04:30 AM
Hey Peter,
That was very well explained.
Please can you explain me some more stuff in a same way, how the packet or traffic flows from one AS to another AS if BGP is configured for communication between them.
Thank you,
01-20-2016 04:59 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages wha2tsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
"BGP is actually very similar to RIP." Laugh - personally, I often refer to BGP as super RIP.
Anyway, I just wanted to add a few notes to what Peter has already posted.
re: #3, BGP peers, being multiple hops apart, perhaps are more often found within the same AS, when using iBGP; directly connected BGP peers are perhaps more often found between ASs, when using eBGP. BTW, usage rules vary between iBGP and eBGP, which is something not as much found within IGPs. Also note, Peter's #5 is iBGP vs. eBGP.
Not mentioned by Peter, but perhaps an important part of BGP, BGP can carry user defined information, such as communities. Often, complex routing policies are built around community attributes. IGPs are often used just to support basic routing, but a common hallmark of BGP, is using it for supporting complex routing policies. (NB: the other common hallmark for using BGP, is if there's need to deal with lots and lots [and lots] of routes, e.g. Internet routes.)
01-20-2016 05:44 AM
Hey Joseph,
Actually Peter is trying to explain it in simple terms as requested by me :p
Thanks for highlighting the main points, can you explain my next query please ""how the packet or traffic flows from one AS to another AS if BGP is configured for communication between them""
:)
01-20-2016 06:49 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages wha2tsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
"Actually Peter is trying to explain it in simple terms as requested by me :p" Laugh - yes, I know, and in fact, I pondered whether I was going into too much additional detail, and/or whether I should add some additional disclaimer. However, I went ahead with what I did to contrast what I thought were a couple of important operational differences of BGP vs. other IGPs, possibly important in understanding how BGP works, even for basic concepts. ;)
As to your question "how the packet or traffic flows from one AS to another AS if BGP is configured for communication between them", actually by the point we get to traffic packet forwarding, BGP doesn't matter. The router examines the packet's destination IP, against its route table, and determines forwarding disposition.
Where BGP comes into consideration, is regarding building the information that appears in the route table. Now part of that, is as Peter and I already touched upon. For example, if your AS was obtaining information from others ASs, with the same destination prefix, which AS destination is used? Again, part of deciding what other AS destination prefix information to use is based on the Peter's point #6, but as I noted, BGP supports complex route policies, so a BGP route policy might change the "natural" result of #6. (BTW, also don't forget, a router might be running one or more IGPs too, also containing the same destination prefix, so what's entered into the route table can depend on more than just BGP.)
Or, another example, multiple ASs provide information for the same destination prefix, but your BGP route policy is configured to "black list" that prefix. So, the BGP prefix is dropped as received from your AS peers, so it never appears in the route table, so traffic being sent to that prefix is also dropped. (BTW, an alternative to dropping the prefix and dropping packets, might be for the BGP policy to change the next hop for the "black listed" prefix to a null interface. The router will forward packets to that interface, which effectively drops them.)
01-20-2016 07:25 AM
Hey Joseph,
That was nice and simple explanation, I think i need some more knowledge to understand it really well, so i will go through http://docwiki.cisco.com/wiki/Border_Gateway_Protocol provided by karsten.
Will get back for any doubts.
Thank you,
01-20-2016 07:39 AM
And if you want to learn even more about BGP, look for a used copy of the CiscoPress Book "Internet Routing Architectures". It's old, but gives really good explanations if you already have a basic knowledge of routing.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide