- Bronze, 100 points or more
HI every body!
I have few questions about bgp.
Suppose an imaginary company ABC needs internet access.
ABC contacts an isp and was given an ip address 18.104.22.168/24 . ABC uses nat(pat) to allow internet connectivity for its employees to internet. In this case , 22.214.171.124/24 is global internat address which is advertised by the isp.
case2# ABC contacts the IANA or local internet registry and gets the block 126.96.36.199/24.
Since abc has internet ip block but no internet connectivity , it contacts an isp and advertises its block to isp which in turn advertises it to internet.
My questions are:
1) in the first case we don't need bgp to run on abc's edge router. The address allocated to abc, is already adverertised by isp. Correct or wrong?
2)In the 2nd case, we have to use bgp on our edge router because the address given by iana/ local internet registry is not being advertised by isps. So abc runs bgp on edge router to advertise its address to internet.Is it correct or wrong?
If it is correct,instead of using bgp, why don't we simply use some routing protocol between edge router and isp and advertises these networks to isp ?
3) how does the edge router running bgp connects to isp? Just to make my point,let say I have home-based business, i bought a cisco router to run bgp . How should this routerbe connected to isp? for example i have cable, i simply plug in the cable rj45 to router fast ethernet port?
thanks a lot!
It is better to use BGP when you have multiple connections to providers, preferably different ones, for inbound and outbound redundancy and route selection as provider A might have better access to net x and you can use BGP to select the best route.
For inbound redundancy, you would advertise your prefix out of A and B but prepend the AS by say 5 times towards B. As BGP uses AS path lengths as it's selector in general ( it's 4 on the list in reality), then to the outside world, provider A will look closer and they will use that unless that sessions drops then they will use the connection via B.
This is the tip of the ice berg but you can see that with multiple connections, BGP is the best choice.
My question is how to decide when to use bgp or not to use bgp at all when it comes to advertising the prefix to the internet(world)?
It's all about having a dynamic routing protocol between the ISP and the customer site.
If the customer site has more than one link towards the ISP, then it's ideal to run some kind of routing protocol (on this case BGP) between devices.
If the customer site has only one link, then there isn't much benefit to run BGP between devices. A static default route towards the ISP from the customer site will take care of traffic leaving the customer *AND* a static route from the ISP to the customer for traffic returning to the customer site will accomplish the design.
Single homed just means one BGP connection upstream.
If you don't want to run BGP, your provider my advertise it for you and just route back to you through their network. Like you said you just have the static default on the edge pointing to them which, you redistribute back into your IGP, (I guessing you dont have a AS number). This will need some collaboration with you and your provider either way.
For option 2 you would also need to purchase and AS number or (if you have a nice ISP) Peer with the ISP on private AS number and then they would pass that on into their BGP cloud(Not best practise though).
You wouldn't use an IGP to talk to your provider simply because BGP was designed for this purpose. BGP is designed to handle HUGE routing tables (which you do not want in your IGP), where as the IGP's are designed to converge as fast as possible, so you need a protocol demarc.
You can use any media to connect to the provider that they support. When I was learning BGP I had an ADSL line and my ISP let me peer with them over that, not recommended by the way. Normally you would have a dedicated link to the provider, say CAT5 from your kit in your COLO space to there switch infrastructure , they give you an IP address, a /30 say and your peer to the other end or what ever IP address they give you to peer to.
3) You can simply plug in the cable rj45 to router fast ethernet port?