BGP resolves routing conflicts in the following ways:
1. Administrative distance: BGP uses the administrative distance metric to determine which route is preferred. The route with the lowest administrative distance is preferred.
1. AS Path length: BGP also uses the AS Path length as a tie-breaker when multiple routes have the same administrative distance. The route with the shortest AS Path length is preferred.
1. Origin type: BGP also uses the origin type metric to determine which route is preferred. The route with the higher origin type is preferred.
1. MED (multi-exit discriminator): BGP uses MED as a tie-breaker when multiple routes have the same attributes. The route with the lowest MED value is preferred.
1. Local preference: BGP also uses local preference as a tie-breaker when multiple routes have the same attributes. The route with the higher local preference is preferred.
1. Router ID: If all the above measures fail to resolve a conflict, then the router ID is used to determine the preferred route. The router with the lowest ID is preferred.
Overall, BGP resolves routing conflicts by using a combination of metrics and attributes to determine the best path for a particular destination. It is designed to provide a stable and scalable routing system for the internet.