| CPC H04L 45/04 (2013.01) [H04L 45/021 (2013.01); H04L 45/18 (2013.01); H04L 45/22 (2013.01)] | 20 Claims |

|
1. A method, comprising:
obtaining, by a network device, a border gateway protocol (BGP) route, wherein the BGP route comprises an autonomous system path attribute (AS_PATH attribute) and a first Internet protocol (IP) prefix, the AS_PATH attribute comprises one or more autonomous system (AS) numbers corresponding to one or more autonomous systems, and wherein the network device is located in or manages a first autonomous system corresponding to a second AS number;
determining, by the network device, whether the one or more AS numbers comprised in the AS_PATH attribute comprises a first AS number that is equal to the second AS number;
in response to determining that the one or more AS numbers comprised in the AS_PATH attribute comprise the first AS number that is equal to the second AS number, determining whether the network device has previously originated or forwarded the BGP route comprising the first IP prefix;
and
in response to determining that the network device has not previously originated or forwarded the BGP route comprising the first IP prefix, and determining the network device has not previously received the BGP route comprising the first IP prefix, determining the BGP route comprising the first IP prefix is a hijacking route.
|