Patent ID: 7216229

Claim:
A method based on Border Gateway Protocol message for controlling message security protection comprising: a. a message receiving side sending a connection-communicating message comprising an authentication mechanism and an authentication word to the message sending side; b. the message sending side determining whether the authentication mechanism and the authentication word of the connection-communicating message is supported according to the received connection-communicating message and its own authentication capability, if yes, a support message being feedback to the message receiving side; otherwise a non-support message being feedback to the message receiving side; c. the message receiving side determining a BGP message head of the support message sent by the message sending side according to the authentication mechanism and the authentication word as receiving the support message from the message sending side; d. setting up the connection based on BGP, then the message sending side sending a BGP message according to the BGP message head determined by the authentication mechanism and the authentication word; e. the message receiving side authenticating the received BGP message according to the BGP message head determined in step c, and if the BGP message passes the authentication, receiving the message, otherwise abandoning the message and the method further comprising: determining the authentication mechanism based on Message Digest Algorithm 5 (MD5), referring to the following commands: MD5 (Open type+code+16-byte random number), where the +sign indicates a concatenation among each segment listed in the command; said code is an MD5 code configured by the message sending or receiving sides, and the last 16-byte random number is the authentication word.