A blockchain-based method and system for BGP inter-domain route authentication
By introducing blockchain technology into the BGP inter-domain routing protocol, the security threats of the BGP inter-domain routing protocol are resolved, trust establishment and resource authentication between autonomous domains are realized, prefix hijacking, path tampering and route leakage are defended, and the security and scalability of the system are improved.
Patent Information
- Application Number
- CN202410034245.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-10
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-01-10
AI Technical Summary
Existing BGP inter-domain routing protocols face security threats such as prefix hijacking, route leakage, and path tampering. Existing solutions such as RPKI, BGPsec, and ASPA suffer from poor scalability, high computational complexity, or incomplete relationships, making it difficult to effectively defend against these attacks.
By employing blockchain technology for the allocation and binding of internet resources, and leveraging the decentralization, tamper-proof nature, and traceability of blockchain, trust can be established and resources can be authenticated between autonomous systems. Blockchain can also be used for the authentication and updating of routing announcements, ensuring the protection of relationships and routing policies between autonomous systems.
It achieves defense against prefix hijacking, path tampering, and route leakage attacks without relying on a centralized trust mechanism, simplifies the prefix legitimacy verification process, improves the route announcement convergence speed, reduces the complexity of cryptographic computation, and enhances the security and scalability of the routing system.
Smart Images

Figure CN117834108B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of BGP inter-domain routing security, and in particular relates to a blockchain-based BGP inter-domain routing authentication method and system. Background Technology
[0002] As a core inter-domain routing protocol of the modern Internet, BGP (Border Gateway Protocol) aims to find a superior route to a destination network. However, its openness and trust-based design expose it to numerous security risks. Major security threats include prefix hijacking, route leakage, and path tampering. The industry has proposed various solutions to address these threats, such as RPKI, BGPsec, and ASPA, which have alleviated the security problems faced by BGP to some extent.
[0003] RPKI (Resource Public Key Infrastructure) is a public key infrastructure that ensures the secure use of internet number resources. It extends X.509 public key certificates to bind and authorize public keys with internet number resources. RPKI issues resource certificates hierarchically from top to bottom for resource authorization, with the lowest-level resource holder issuing ROA (Route Origin Authorization) to complete the binding of IP addresses and ASNs, thus resisting prefix hijacking attacks. However, RPKI suffers from scalability issues, potential resource duplication, and imbalances in rights between upper and lower-level CAs. Furthermore, relying solely on the RPKI & ROA scheme can only prevent prefix hijacking attacks and cannot solve attacks involving path tampering and route leakage.
[0004] BGPsec utilizes certificates and keys from the RPKI system, requiring Autonomous Systems (AS) to sign and authorize the AS_PATH attribute, which includes the neighboring AS number, when advertising routes to neighboring ASs. This strictly ensures that AS_PATH cannot be tampered with, defending against path tampering attacks. However, the high frequency of cryptographic calculations in BGPsec reduces the actual convergence rate of BGP, making it difficult to deploy in real-world environments.
[0005] ASPA (Autonomous System Provider Authorization) aims to prevent route leakage using RPKI. An ASPA is a signature object issued by a customer's AS (Autonomous System Provider), binding that AS to its provider AS and synchronizing it to the entire network's BGP routes. When resolving the AS_PATH attribute in the route parsing update message, it verifies whether the path forwarding rules described by the ASPA object are satisfied by checking the two adjacent ASs on the AS_PATH path, thus verifying the existence of route leakage. ASPA is based on the RPKI system and shares the same problems as RPKI. Furthermore, ASPA only describes the relationship between the customer and the provider, not the relationship between peer ASs, leaving the risk of forged paths passing ASPA verification. Summary of the Invention
[0006] To address the problems existing in the background technology, this invention provides a blockchain-based BGP inter-domain routing authentication method and system. By utilizing the inherent attributes of blockchain technology—decentralization, tamper-proofness, and traceability—as the basis for inter-domain network resource authentication and trust establishment, it can realize trust establishment, resource authentication, and multi-party collaboration between autonomous systems without relying on centralized trust mechanisms. At the same time, it can maximize the protection of relationships and routing policies between ASs, thus solving the inter-domain routing security dilemma.
[0007] To achieve the above-mentioned technical objectives, one aspect of the present invention provides a blockchain-based BGP inter-domain routing authentication method, comprising:
[0008] S1: Internet resource allocation agencies submit TxA transactions to the blockchain for on-chain execution to allocate Internet number resources to Internet Service Providers (ISPs);
[0009] S2: Internet Service Providers (ISPs) submit TxB transactions to the blockchain for on-chain execution, allocating Internet number resources to each AS managed by the ISP, and binding the Internet number resources allocated to each AS to the AS's blockchain account;
[0010] S3: Each AS submits a TxC transaction to the blockchain for on-chain execution, which is used to upload the AS's key data to the blockchain to announce routes to the AS's neighboring ASs; the key data includes: IP prefix address and AS's neighbor relationship;
[0011] S4: The AS that receives the routing advertisement submits a TxD transaction to the blockchain for on-chain execution. This is used to authenticate the received routing advertisement. If the authentication is successful, the route is updated according to the BGP protocol; otherwise, the process ends.
[0012] Preferably, the Internet number resources include: IP address ranges and ASNs.
[0013] Preferably, the Internet resource allocation mechanism includes: a primary mechanism, multiple secondary mechanisms, and multiple tertiary mechanisms; the primary mechanism submits a TxA transaction to the blockchain for on-chain execution to allocate Internet resource numbers to the secondary mechanisms; the secondary mechanisms submit a TxA transaction to the blockchain for on-chain execution to allocate Internet resource numbers to the tertiary mechanisms; and the tertiary mechanisms submit a TxA transaction to the blockchain for on-chain execution to allocate Internet resource numbers to Internet Service Providers (ISPs).
[0014] Preferably, the TxA transaction = {sender account, receiver account, allocated IP address range and / or ASN, lease expiration time};
[0015] After a primary institution submits a TxA transaction to the blockchain, the blockchain performs a consensus operation to verify whether the sender's account type is a primary account, whether the receiver's account type is a secondary account, and whether the allocated IP address range and / or ASN have not been allocated to other secondary institutions. If all verifications pass, the blockchain stores the TxA transaction on the chain and sends the allocated IP address range and / or ASN to the receiver's account.
[0016] After a secondary institution submits a TxA transaction to the blockchain, the blockchain performs a consensus operation to verify whether the sender's account type is a secondary account, whether the receiver's account type is a tertiary account, whether the sender has the allocated IP address range and / or ASN, and whether the allocated IP address range and / or ASN has not been allocated to other tertiary institutions. If all verifications pass, the blockchain stores the TxA transaction on the chain and sends the allocated IP address range and / or ASN to the receiver's account.
[0017] After a Tier 3 institution submits a TxA transaction to the blockchain, the blockchain performs a consensus operation to verify whether the sender's account type is a Tier 3 account, whether the receiver's account type is an ISP account, whether the sender has the allocated IP address range and / or ASN, and whether the allocated IP address range and / or ASN has not been allocated to other ISP institutions. If all verifications pass, the blockchain stores the TxA transaction on the chain and sends the allocated IP address range and / or ASN to the receiver's account.
[0018] Preferably, the TxB transaction = {sender account, receiver account, ASN bound to the account, IP address range bound to the account, expiration time bound to the account};
[0019] After the ISP submits a TxB transaction to the blockchain, the blockchain performs a consensus operation to verify whether the sender's account type is an ISP institution, whether the receiver's account type is an AS, whether the sender has an allocated IP address block and ASN, and whether the allocated IP address block and ASN have not been allocated to other AS institutions. If all verifications pass, the blockchain stores the TxB transaction on the chain and sends the ASN bound to the account and the IP address block bound to the account to the receiver's account.
[0020] Preferably, the TxC transaction = {sender account, ASN, <IP prefix address, announce / revoke>, neighbor relationship};
[0021] After the AS institution submits a TxC transaction to the blockchain, the blockchain performs a consensus operation to verify whether the sender's account type is an AS institution and whether the ASN corresponding to the sender's account is consistent with the ASN in the TxC transaction. After the verification passes, the blockchain network updates the stored routing information of the AS institution and sends the updated routing information to the neighboring AS institutions of the AS institution for route advertisement.
[0022] Preferably, the AS receiving the route advertisement submits a TxD transaction to the blockchain for execution on the chain, and the authentication of the received route advertisement includes:
[0023] S41: The AS receiving the route advertisement extracts the AS_PATH in the route update message, AS_PATH = {AS1, AS2, ..., AS i , ..., AS n}, AS i represents the i-th AS path node that the route update message passes through;
[0024] S42: The AS receiving the route advertisement submits a TxD transaction to the blockchain = {sender account, route source ASN, IP prefix address, AS_PATH}. The blockchain performs a consensus operation to verify whether the sender's account is an AS institution, whether the IP address block allocated by the AS corresponding to the route source ASN contains the IP prefix address in the TxD transaction, and whether the AS_PATH is correct. If all verifications pass, the AS receiving the route advertisement sends the route update message to its next-level AS institution.
[0025] Another aspect of the present invention provides a blockchain-based BGP inter-domain routing authentication system, which is applied to the blockchain-based BGP inter-domain routing authentication method, including: an Internet resource allocation institution, an Internet Service Provider (ISP), a blockchain, and an AS institution;
[0026] Internet resource allocation agencies submit TxA transactions to the blockchain for on-chain execution, allocating internet number resources to Internet Service Providers (ISPs).
[0027] Internet Service Providers (ISPs) submit TxB transactions to the blockchain for on-chain execution, allocating internet number resources to various Application Servers (ASs) managed by the ISP, and binding the internet number resources allocated to each AS to the AS's blockchain account.
[0028] An AS (Automatic Service) submits a TxC transaction to the blockchain for on-chain execution. This transaction uploads the AS's key data to the blockchain to announce routes to its neighboring ASs. The key data includes: IP prefix addresses and the AS's neighbor relationships.
[0029] The AS (Automatic Service) submits TxD transactions to the blockchain for on-chain execution. This is used to authenticate the received routing announcements. If the authentication is successful, the routing is updated according to the BGP protocol; otherwise, the process ends.
[0030] The present invention has at least the following beneficial effects
[0031] This invention utilizes blockchain, a distributed ledger system, to record, encrypt, and authenticate the resource status of inter-domain routing systems in a distributed manner. Its security is backed by the cryptographic algorithms used in blockchain technology. After verification, each transaction interaction is permanently stored in a distributed database (block). Once verified, it is shared, anonymous, tamper-proof, and easily queried. While each autonomous domain retains and enforces its local routing policies and business relationship rules, blockchain can serve as a shared trust infrastructure for establishing trust relationships between autonomous domains on the Internet. Based on this, multi-party inter-domain collaboration can be carried out to build a trustworthy and co-ordered inter-domain routing system for the Internet.
[0032] This project utilizes blockchain technology to allocate and bind internet number resources, completes the on-chain recording of key route authentication data and route verification, thereby defending against prefix hijacking, path tampering, and route leakage attacks. It also avoids the problems of unbalanced rights, poor scalability, and reusable resource allocation associated with RPKI's upper and lower layer CAs. Furthermore, it implements the ROA & ASR scheme, enhancing the security of the ROA authorization scheme and simplifying the prefix legitimacy verification process while relatively accelerating the convergence of system route advertisements. Finally, it implements the ASNA scheme, eliminating the complexity of cryptographic calculations in the BGPsec scheme and compensating for the ASNA scheme's limitation of only considering C2P relationships, achieving defense against path tampering and route leakage in a lightweight manner. Attached Figure Description
[0033] Figure 1 This is a schematic diagram of the blockchain-based routing authentication system and its process in this invention;
[0034] Figure 2 This is a schematic diagram of resource allocation by the Internet resource allocation mechanism in this invention;
[0035] Figure 3 This is a schematic diagram of the neighbor relationships of AS in this invention. Detailed Implementation
[0036] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0037] The accompanying drawings are for illustrative purposes only and are schematic diagrams, not actual pictures. They should not be construed as limiting the invention. To better illustrate the embodiments of the invention, some parts in the drawings may be omitted, enlarged, or reduced, and do not represent the actual product dimensions. It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.
[0038] In the accompanying drawings of the embodiments of the present invention, the same or similar reference numerals correspond to the same or similar components. In the description of the present invention, it should be understood that if terms such as "upper," "lower," "left," "right," "front," and "rear" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, they are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, the terms used to describe positional relationships in the drawings are only for illustrative purposes and should not be construed as limiting the present invention. For those skilled in the art, the specific meaning of the above terms can be understood according to the specific circumstances.
[0039] One aspect of the present invention provides a blockchain-based BGP inter-domain routing authentication method, comprising:
[0040] S1: Internet resource allocation agencies submit TxA transactions to the blockchain for on-chain execution to allocate Internet number resources to Internet Service Providers (ISPs);
[0041] S2: Internet Service Providers (ISPs) submit TxB transactions to the blockchain for on-chain execution, allocating Internet number resources to each AS managed by the ISP, and binding the Internet number resources allocated to each AS to the AS's blockchain account;
[0042] S3: Each AS submits a TxC transaction to the blockchain for on-chain execution, which is used to upload the AS's key data to the blockchain to announce routes to the AS's neighboring ASs; the key data includes: IP prefix address and AS's neighbor relationship;
[0043] S4: The AS that receives the routing advertisement submits a TxD transaction to the blockchain for on-chain execution. This is used to authenticate the received routing advertisement. If the authentication is successful, the route is updated according to the BGP protocol; otherwise, the process ends.
[0044] Please see Figure 2 In this embodiment, the Internet resource allocation organization is composed of IANA (Internet Assigned Numbers Authority), RIR (Regional Internet Registry), NIR (National Internet Registry), and LIR (Local Internet Registry). IANA is defined as a first-level organization. Under the first-level organization are five second-level organizations: AFRINIC, APNIC, ARIN, LACNIC, and RIPENCC. Each second-level organization has multiple third-level organizations, namely LIR and / or NIR. From the first-level organization to the third-level organization, Internet resource numbers are allocated by submitting TxA transactions to the blockchain for verification and execution. Internet resource numbers include IP address ranges and ASNs. The allocation process continues until the Internet Service Providers (ISPs) are reached. The process is as follows: the first-level organization submits a TxA transaction to the blockchain for execution, allocating Internet resource numbers to the second-level organizations; the second-level organizations submit a TxA transaction to the blockchain for execution, allocating Internet resource numbers to the third-level organizations; and the third-level organizations submit a TxA transaction to the blockchain for execution, allocating Internet resource numbers to the ISPs.
[0045] Preferably, the TxB transaction = {sender account, receiver account, ASN bound to the account, IP address range bound to the account, expiration time bound to the account};
[0046] After a primary institution submits a TxA transaction to the blockchain, the blockchain performs a consensus operation to verify whether the sender's account type is a primary account, whether the receiver's account type is a secondary account, and whether the allocated IP address range and / or ASN have not been allocated to other secondary institutions. If all verifications pass, the blockchain stores the TxA transaction on the chain and sends the allocated IP address range and / or ASN to the receiver's account.
[0047] After a secondary institution submits a TxA transaction to the blockchain, the blockchain performs a consensus operation to verify whether the sender's account type is a secondary account, whether the receiver's account type is a tertiary account, whether the sender has the allocated IP address range and / or ASN, and whether the allocated IP address range and / or ASN has not been allocated to other tertiary institutions. If all verifications pass, the blockchain stores the TxA transaction on the chain and sends the allocated IP address range and / or ASN to the receiver's account.
[0048] After a Tier 3 institution submits a TxA transaction to the blockchain, the blockchain performs a consensus operation to verify whether the sender's account type is a Tier 3 account, whether the receiver's account type is an ISP account, whether the sender has the allocated IP address range and / or ASN, and whether the allocated IP address range and / or ASN has not been allocated to other ISP institutions. If all verifications pass, the blockchain stores the TxA transaction on the chain and sends the allocated IP address range and / or ASN to the receiver's account.
[0049] In a blockchain network, there is only one IANA account type, which by default possesses all internet number resources. Therefore, after IANA submits a TxA transaction, it only needs to verify the type of the sender's account in the TxA transaction. First-tier institutions can only allocate internet number resources to their managed second-tier institutions, second-tier institutions can only allocate internet number resources to their managed third-tier institutions, and third-tier institutions can only allocate number resources to their managed ISPs. Therefore, for TxA transactions submitted by second-tier and third-tier institutions, the sender's account and the receiver's account in the TxA transaction need to be verified. To avoid duplicate allocation of internet number resources, it is necessary to determine whether the sender possesses the IP address range and / or ASN allocated in the TxA transaction (this can be determined through transaction data submitted by first-tier institutions stored on the blockchain), and whether the IP address range and / or ASN allocated in the TxA transaction have not been allocated to other second-tier institutions. If both verifications pass, the transaction will be executed and stored on the blockchain. At this point, the data stored in the blockchain can be abstracted into an allocation institution resource table, as shown below:
[0050] Allocation Agency Resource Table
[0051]
[0052] The allocation agency resource table records the Internet Number resources and IP address ranges allocated to each agency. The format of the Internet Number resources (ASN) is as follows:<start ASN,end ASN> The format of the IP address range is<start IP,end IP> The format of 'Having an ASN' is an array of ASNs, and the format of 'IP address range' is an array of prefix addresses. Whenever a TxA transaction is executed, the resource table of the allocation agency will be updated accordingly, which can prevent the allocation agency from allocating resources out of thin air when there are no resources available.
[0053] Preferably, the TxB transaction = {sender account, receiver account, ASN bound to the account, IP address range bound to the account, expiration time bound to the account};
[0054] After an ISP submits a TxB transaction to the blockchain, the blockchain performs a consensus operation to verify whether the sender's account type is an ISP, whether the receiver's account type is an AS, whether the sender has the allocated IP address range and ASN, and whether the allocated IP address range and ASN have not been allocated to other AS institutions. If all verifications pass, the blockchain stores the TxB transaction on the chain and sends the account-bound ASN and account-bound IP address range to the receiver's account.
[0055] In this embodiment, after an ISP submits a TxB transaction to the blockchain, the blockchain first verifies the sender and receiver accounts in the TxB transaction. It also determines whether the sending ISP possesses the IP address range and ASN in the TxB transaction, and whether the allocated IP address range and ASN have not been assigned to other AS institutions. If all verifications pass, the TxB transaction is executed on the blockchain. At this point, the data stored on the blockchain can be abstracted into an ISP number resource table and an AS resource binding table, as described below:
[0056] ISP Number Resource Table
[0057]
[0058] AS Resource Binding Table
[0059]
[0060]
[0061] Whenever a TxB transaction is executed on the blockchain, the AS resource binding table recorded in the blockchain will be updated accordingly. The AS resource binding table plays an important role in defending against route hijacking. It represents that a specific AS using an AS blockchain account only has the right to announce the corresponding ASN and IP prefix, but does not have the right to announce the resources of other ASs to carry out route hijacking.
[0062] Preferably, the TxC transaction = {sender account, ASN, <IP prefix address, announcement / revocation>, neighbor relationship};
[0063] After the AS organization submits the TxC transaction to the blockchain, the blockchain performs a consensus operation to verify whether the account type of the sender is an AS organization and whether the ASN corresponding to the sender account is consistent with the ASN in the TxC transaction. After the verification is passed, the blockchain network updates the stored routing information of the AS organization, and sends the updated routing information to the neighboring AS organizations of the AS organization for route advertisement.
[0064] In this embodiment, all autonomous systems (AS) jointly form the current Internet, wherein the BGP routers of each AS constitute the BGP routing network of the Internet. When an AS needs to announce or revoke a certain IP prefix address in the network, it submits a TxC transaction to the blockchain. The blockchain first verifies whether the sender account is of AS type, and after the verification is passed, it queries through the AS resource binding table whether the ASN corresponding to the sender account is consistent with the ASN in the TxC transaction to determine whether the sender of the TxC transaction has the right to modify the IP prefix address in the TxC transaction. If all verifications are passed, the TxC transaction is executed on the blockchain. At this time, the data stored in the blockchain network can be abstracted into an IP prefix address announcement table and an AS neighbor authorization table, as shown below:
[0065] IP Prefix Address Announcement Table
[0066]
[0067]
[0068] For example Figure 3 as shown, it is a topology diagram of AS neighbor relationships. The AS neighbor authorization table formed after each AS uploads the transaction TxC for on-chain execution is as follows:
[0069] AS Neighbor Authorization Table
[0070]
[0071] The AS neighbor authorization table records the relationships between ASs, including three types: C2P (Customer to Provider), P2C (Provider to Customer), and P2P (Peer to Peer). When a route is initially advertised from the route source, the route source AS can only advertise the route to its provider or peer AS. For example, AS2 can only advertise the route to AS1 and AS3. Whenever an AS submits a transaction TxC to the blockchain for execution, the IP prefix address declaration table and the AS neighbor authorization table are updated accordingly.
[0072] Preferably, the AS that receives the routing announcement submits a TxD transaction to the blockchain for on-chain execution, and the authentication of the received routing announcement includes:
[0073] S41: The AS that receives the route advertisement extracts the AS_PATH from the route update message. AS_PATH = {AS1,AS2,…,AS} i ,…,AS n}, AS i This indicates the i-th AS path node traversed by the route update message;
[0074] S42: The AS that receives the routing advertisement submits a TxD transaction to the blockchain = {sender account, routing source ASN, IP prefix address, AS_PATH}. The blockchain performs a consensus operation to verify whether the sender's account is an AS organization, whether the IP address range allocated by the AS corresponding to the routing source ASN contains the IP prefix address in the TxD transaction, and whether the AS_PATH is correct. If all verifications pass, the AS that receives the routing advertisement will send the routing update message to its next-level AS organization.
[0075] In this embodiment, the AS that receives the routing update message executes the TxD transaction on the blockchain. First, it queries the corresponding AS account by using the ASN number of the routing source. Then, it checks whether the IP address range allocated by the AS corresponding to the routing source ASN contains the IP prefix address in the TxD transaction according to the AS resource binding table. If so, the verification is successful. Next, it checks whether the AS_PATH is correct according to the AS neighbor authorization table. It then iterates through any ASi-1 and ASi in the AS_PATH to see if they are both C2P or P2P relationships. If they are both, then the AS_PATH is correct.
[0076] Another aspect of the present invention provides a blockchain-based BGP inter-domain routing authentication system, the system being applied to the aforementioned blockchain-based BGP inter-domain routing authentication method, comprising: an Internet Resource Allocation Authority (IRA), an Internet Service Provider (ISP), a blockchain, and an AS (Automatic Service Provider) organization;
[0077] Internet resource allocation agencies submit TxA transactions to the blockchain for on-chain execution, allocating internet number resources to Internet Service Providers (ISPs).
[0078] Internet Service Providers (ISPs) submit TxB transactions to the blockchain for on-chain execution, allocating internet number resources to various Application Servers (ASs) managed by the ISP, and binding the internet number resources allocated to each AS to the AS's blockchain account.
[0079] An AS (Automatic Service) submits a TxC transaction to the blockchain for on-chain execution. This transaction uploads the AS's key data to the blockchain to announce routes to its neighboring ASs. The key data includes: IP prefix addresses and the AS's neighbor relationships.
[0080] The AS (Automatic Service) submits TxD transactions to the blockchain for on-chain execution. This is used to authenticate the received routing announcements. If the authentication is successful, the routing is updated according to the BGP protocol; otherwise, the process ends.
[0081] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A blockchain-based BGP inter-domain routing authentication method, characterized in that, comprising: S1: An Internet resource allocation agency submits a TxA transaction to a blockchain for on-chain execution, so as to allocate Internet number resources to an Internet service provider (ISP); S2: The ISP submits a TxB transaction to the blockchain for on-chain execution, so as to allocate Internet number resources to each autonomous system (AS) managed by the ISP, and bind the Internet number resources allocated to each AS with the blockchain account of the AS; S3: Each AS submits a TxC transaction to the blockchain for on-chain execution, so as to upload key data of the AS to the blockchain for route advertisement to a neighbor AS of the AS; the key data comprises: an IP prefix address and a neighbor relationship of the AS; S4: An AS receiving the route advertisement submits a TxD transaction to the blockchain for on-chain execution, so as to authenticate the received route advertisement; and if the authentication passes, perform route update according to a Border Gateway Protocol (BGP), otherwise end the process; the TxB transaction = {sender account, receiver account, AS number (ASN) bound to the account, IP address segment bound to the account, expiration time bound to the account}; after the ISP submits the TxB transaction to the blockchain, the blockchain performs a consensus operation to verify whether an account type of the sender is the ISP, whether an account type of the receiver is an AS, whether the sender has allocated an IP address segment and an ASN, and whether the allocated IP address segment and ASN are not allocated to any other AS agency; and if all verifications pass, the blockchain stores the TxB transaction on-chain, and sends the ASN bound to the account and the IP address segment bound to the account to the account of the receiver; the TxC transaction = {sender account, ASN, <IP prefix address, announce / revoke>, neighbor relationship}; after the AS agency submits the TxC transaction to the blockchain, the blockchain performs a consensus operation to verify whether an account type of the sender is an AS agency, and whether an ASN corresponding to the account of the sender is consistent with an ASN in the TxC transaction; and after the verification passes, the blockchain network updates stored route information of the AS agency, and sends the updated route information to a neighbor AS agency of the AS agency for route advertisement; the step that the AS receiving the route advertisement submits a TxD transaction to the blockchain for on-chain execution, so as to authenticate the received route advertisement comprises: S41: The AS that receives the route advertisement extracts the AS_PATH from the route update message. , This indicates the route update message has passed through the [number]th [stage / path]. One AS path node; S42: the AS receiving the route advertisement submits a TxD transaction = {sender account, route source ASN, IP prefix address, AS_PATH} to the blockchain; the blockchain performs a consensus operation to verify whether the account of the sender is an AS agency, whether an IP address segment allocated by an AS corresponding to the route source ASN comprises an IP prefix address in the TxD transaction, and whether the AS_PATH is correct; and if all verifications pass, the AS receiving the route advertisement sends a route update packet to a next-level AS agency thereof.
2. The blockchain-based BGP inter-domain routing authentication method according to claim 1, characterized in that, the Internet number resources comprise: an IP address segment and an ASN.
3. The blockchain-based BGP inter-domain routing authentication method according to claim 2, characterized in that, The Internet resource allocation mechanism includes: a primary mechanism, multiple secondary mechanisms, and multiple tertiary mechanisms; the primary mechanism submits a TxA transaction to the blockchain for on-chain execution to allocate Internet resource numbers to the secondary mechanisms; the secondary mechanisms submit a TxA transaction to the blockchain for on-chain execution to allocate Internet resource numbers to the tertiary mechanisms; and the tertiary mechanisms submit a TxA transaction to the blockchain for on-chain execution to allocate Internet resource numbers to Internet Service Providers (ISPs).
4. The blockchain-based BGP inter-domain routing authentication method according to claim 3, characterized in that, The TxA transaction = {sender account, receiver account, allocated IP address range and / or ASN, lease expiration time}; After a primary institution submits a TxA transaction to the blockchain, the blockchain performs a consensus operation to verify whether the sender's account type is a primary account, whether the receiver's account type is a secondary account, and whether the allocated IP address range and / or ASN have not been allocated to other secondary institutions. If all verifications pass, the blockchain stores the TxA transaction on the chain and sends the allocated IP address range and / or ASN to the receiver's account. After a secondary institution submits a TxA transaction to the blockchain, the blockchain performs a consensus operation to verify whether the sender's account type is a secondary account, whether the receiver's account type is a tertiary account, whether the sender has the allocated IP address range and / or ASN, and whether the allocated IP address range and / or ASN has not been allocated to other tertiary institutions. If all verifications pass, the blockchain stores the TxA transaction on the chain and sends the allocated IP address range and / or ASN to the receiver's account. After a Tier 3 institution submits a TxA transaction to the blockchain, the blockchain performs a consensus operation to verify whether the sender's account type is a Tier 3 account, whether the receiver's account type is an ISP account, whether the sender has the allocated IP address range and / or ASN, and whether the allocated IP address range and / or ASN has not been allocated to other ISP institutions. If all verifications pass, the blockchain stores the TxA transaction on the chain and sends the allocated IP address range and / or ASN to the receiver's account.
5. A blockchain-based BGP inter-domain routing authentication system, wherein the system is applied to the blockchain-based BGP inter-domain routing authentication method described in any one of claims 1-4, characterized in that, include: Internet resource allocation agencies, Internet Service Providers (ISPs), blockchain and application service providers (AS) organizations; Internet resource allocation agencies submit TxA transactions to the blockchain for on-chain execution, allocating internet number resources to Internet Service Providers (ISPs). Internet Service Providers (ISPs) submit TxB transactions to the blockchain for on-chain execution, allocating internet number resources to various Application Servers (ASs) managed by the ISP, and binding the internet number resources allocated to each AS to the AS's blockchain account. AS institutions submit TxC transactions to the blockchain for on-chain execution, which is used to upload the AS's key data to the blockchain and announce the routes to the AS's neighboring ASs. The key data includes: IP prefix address and AS neighbor relationship; The AS (Automatic Service) submits TxD transactions to the blockchain for on-chain execution. This is used to authenticate the received routing announcements. If the authentication is successful, the routing is updated according to the BGP protocol; otherwise, the process ends.
Citation Information
Patent Citations
Router certificate issuing method based on resource public key infrastructure block chain
CN115021930A
Autonomous system route validation via blockchain
US20200186458A1
