Patent ID: 8665887

Claim:
A method for automatic routing of a number, comprising: converting the number to be distributed into number route information and adding the number route information into a dynamic routing protocol, wherein the dynamic routing protocol is a MultiProtocol-Border Gateway Protocol (MP-BGP) defined in standards of RFC2858 and RFC4760, and the number route information comprises a corresponding relationship between the number to be distributed and a next-hop network address, and wherein the next-hop network address is an address of a router which hosts the number to be distributed; generating a message of the dynamic routing protocol from the number route information; and transmitting the message of the dynamic routing protocol over an IP network and distributing the number route information in the message of the dynamic routing protocol over the IP network, wherein the adding the number route information into the dynamic routing protocol comprises: adding new values taken respectively for Address Family Identifier (AFI) and Subsequent Address Family Identifier (SAFI) in an MP_REACH_NLRI path attribute or an MP_UNREACH_NLRI path attribute to indicate that an address prefix carried in Network layer Reachability Information (NLRI) in the MP_REACH_NLRI path attribute or the MP_UNREACH_NLRI path is the number to be distributed.