Hello,
I am working with a BGP table of the Internet (a huge file). However, route summarization can be a problem. My main issue is that, sometimes, big chunks of IPv4 space are announced (i.e., 172.16.0.0/16), but also more specific and smaller routes are announced too (i.e., 172.16.64.0/18). So there are two redundant entries in the BGP table.
I would like to figure out a way to end up with a list of non-redundant IP addresses, just the big chunks. I am thinking of maybe comparing all of them and storing them in a list. Is there a method in C# to know if an IP address is part of a broader IP address? As in:
172.16.64.0/18 is part of 172.16.0.0/16 //true
Thanks a lot for all your help!
alemangui