I will start with a scenario. Please excuse me if its a low-level question. Lets say there are 2 AS, AS 100 and AS 200. *In AS 100 there are 3 routers R1,R2 and R3 running OSPF and RB1 and RB2 running BGP where RB1 is connected to another BGP router RB3 in AS 200.
*AS 200 has routers R5,R6 and R7 running ospf and RB3 and RB4 running BGP. RB3 is coonected to RB1 of As 100 and RB4 is connected to some other AS.
1)From my understanding, r1,r2 and r3 know about each and the networks connected. Does r1,r2 and r3 also relays this information to RB1 and RB2? And similarly, does r5,r6 and r7 relays its links and networks to RB3 and RB4?
Because, suppose, if a host connected to R1 of AS 100 wants to communicate to a host connected to R5 present in AS 200, how does it do?
2)And as far as i know, RB1 and RB2 have an ibgp session and they have identical database. Same goes for RB3 and RB4.
But do the routers r1,r2,r3,r5,r6 and r7 have the same database as RB1,RB2,RB3 and RB4? If thats not the case, how does a host in AS 100 know it has to send it to which border router(In this case, RB1 or RB2) to reach AS 200.
And one final question, how much does r1,r2 and r3 know? And same goes for RB1 and RB2?