CN112134902B - RADB registration method and system based on API - Google Patents

RADB registration method and system based on API Download PDF

Info

Publication number
CN112134902B
CN112134902B CN202011048894.3A CN202011048894A CN112134902B CN 112134902 B CN112134902 B CN 112134902B CN 202011048894 A CN202011048894 A CN 202011048894A CN 112134902 B CN112134902 B CN 112134902B
Authority
CN
China
Prior art keywords
registration
radb
information
registered
api
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011048894.3A
Other languages
Chinese (zh)
Other versions
CN112134902A (en
Inventor
吴玉龙
程显
吴丹
李劲松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kedaduochuang Cloud Technology Co ltd
Original Assignee
Kedaduochuang Cloud Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kedaduochuang Cloud Technology Co ltd filed Critical Kedaduochuang Cloud Technology Co ltd
Priority to CN202011048894.3A priority Critical patent/CN112134902B/en
Publication of CN112134902A publication Critical patent/CN112134902A/en
Application granted granted Critical
Publication of CN112134902B publication Critical patent/CN112134902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment
    • H04L61/302Administrative registration, e.g. for domain names at internet corporation for assigned names and numbers [ICANN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information

Abstract

The invention discloses a RADB registration method and a system based on API realization, belonging to the technical field of information network and comprising the following steps: s1: identifying and checking the registration information; s2: searching RADB registered information; s3: verifying the legality; s4: performing RADB registration; s5: and checking the registration result. According to the invention, a third-party service system is not required to be built, only a Whois tool is required to be installed on the application server, the smoothness of the application server and the RADB network is ensured, RADB registration information is transmitted, the system automatically checks and judges data, whether the registration information exists or not is confirmed by using the Whois tool, the registration result can be timely known by using an API (application programming interface), waiting is not required, whether registration is successful or not is confirmed again by using the Whois tool after registration is finished, double guarantee is realized, and the method is worthy of popularization and use.

Description

RADB registration method and system based on API
Technical Field
The invention relates to the technical field of information networks, in particular to a RADB registration method and system based on API realization.
Background
Many efforts are made by network engineers and ISP service providers to develop a database, called RADB (routing arbitration database), in which all routing information and routing policies are registered for all ases (Autonomous systems), IP prefixes, and downstream networks (downstream networks) for which the entities are responsible, by ISPs (internet service providers) and the entities using BGP (Border Gateway Protocol) routing. Each ISP and organization that wishes to establish a peering relationship (exchange routing information) with another entity registers their prefixes, prefixes to be sent to the peer, and routing policies defined for prefixes received from the peer. This approach would greatly reduce the risk of miscreant (miskeeper) introducing more specific routes to interfere with legitimate routes and intercept the entire prefix.
At present, a mail registration mode is mostly used for RADB registration, data information required by registration operation is sent through a mail, and a confirmation mail is received. Therefore, a RADB registration method and system based on API realization are provided.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: how to solve the problems of complex flow, incapability of quickly confirming the registration result in time and high development cost in the conventional RADB registration mode, and provides an API-based RADB registration method.
The invention solves the technical problems through the following technical scheme, and the invention comprises the following steps:
s1: registration information identification verification
Checking whether the member parameter type and the member number which need to be registered to the RADB exist or not;
s2: RADB registered information retrieval
Judging whether the current registration information exists, namely updating when the current registration information exists, and increasing when the current registration information does not exist;
s3: validity check
Performing validity check on the registration information by using a Whois tool, and judging whether the registration information is correct or not;
s4: performing RADB registration
RADB registration is carried out by using API, and a registration result is returned;
s5: check the registration result
After the registration is completed, the Whois tool is used again to inquire the registered information and check whether the registration is successful.
Further, in the step S1, when the checking of the number parameter type is performed, the checking is completed by determining whether the number is a correct AS data structure and whether the number is AS or AS-SET.
Further, in step S1, when checking whether members in members exist, all registered ASs are returned by calling API query results, and it is determined whether the AS registered this time already exists.
Further, in the step S2, when determining whether the registration information already exists, the API query interface of the RADB is called to transfer the registration information to the AS-SET, and all members (AS numbers) of the members under the AS-SET are queried
Further, in the step S3, a command "whois-h whois.
Further, in the step S4, according to the result message obtained by the AS-SET in the step S2, the AS number to be registered is added to the AS node corresponding to the message, the API registration interface provided by the RADB is called, a new message is transmitted, the interface completes registration, and the registration result is returned.
Furthermore, in step S5, the registered information is queried by using the command "whois-h whois.
The invention also provides a RADB registration system realized based on API, which uses the registration method to complete the registration work of the members needing to be registered to the RADB, and comprises the following steps:
the registration information identification and verification module is used for verifying the parameter type of the member needing to be registered in the RADB and whether the member exists;
the registered information judging module is used for judging whether the registered information exists or not, namely updating if the registered information exists, or newly adding if the registered information does not exist;
the legality checking module is used for checking the legality of the registration information by using a Whois tool and judging whether the registration information is correct or not;
the registration module is used for performing RADB registration by using API and returning a registration result;
the registration result checking module is used for inquiring the registered information by using the Whois tool again after the registration is finished and checking whether the registration is successful;
the central processing module is used for sending instructions to each module to complete related actions;
the registration information identification and verification module, the registered information judgment module, the validity verification module, the registration module and the registration result verification module are all electrically connected with the central processing module.
Compared with the prior art, the invention has the following advantages: according to the RADB registration method and system based on the API, a third-party service system does not need to be built, only a Whois tool needs to be installed on an application server, smoothness of the application server and a RADB network is guaranteed, RADB registration information is transmitted, the system automatically checks and judges data, the Whois tool is used for confirming whether the registration information exists or not, the API can be used for knowing a registration result in time without waiting, the Whois tool can be used for confirming whether registration succeeds or not again after registration is completed, double guarantee is achieved, and the method and system are worthy of popularization and use.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of the present invention;
fig. 2 is a schematic flow chart of the fourth embodiment of the present invention.
Detailed Description
The following examples are given for the detailed implementation and specific operation of the present invention, but the scope of the present invention is not limited to the following examples.
Example one
As shown in fig. 1, the present embodiment provides a technical solution: a RADB registration method realized based on API includes the following steps:
s1: registration information identification verification
Checking the information such as the type of the members number and the existence of the members number which need to be registered to the RADB;
s2: RADB registered information retrieval
Judging whether the current registration information exists, namely updating when the current registration information exists, and increasing when the current registration information does not exist;
s3: validity check
Performing validity check on the registration information by using a Whois tool, and judging whether the registration information is correct or not;
s4: performing RADB registration
RADB registration is carried out by using API, and a registration result is returned;
s5: check the registration result
After the registration is completed, the Whois tool is used again to inquire the registered information and check whether the registration is successful.
In step S1, when checking the number parameter type, the checking is completed by determining whether the number is the correct AS data structure and whether the number is AS or AS-SET.
In step S1, when checking whether members in members exist, all registered ASs are returned by calling an API query result, and it is determined whether the registered AS exists.
In step S2, when determining whether the registration information already exists, the registration information is transferred to the AS-SET by calling the API query interface of the RADB, and all members (AS numbers) of the members of the number under the AS-SET are queried.
The registered information can be understood AS all members under the AS-SET, and the information after the registration is the information of all members under the corresponding AS-SET.
In step S3, a command "whois-h whois.
In step S4, according to the result packet obtained by the AS-SET in step S2, the AS number to be registered is added to the AS node corresponding to the packet, the API registration interface provided by the RADB is called, a new packet is transmitted, the interface completes registration, and the registration result is returned.
In step S5, the registered information is queried by using the command "whois-h whois.
The embodiment also provides an API-based RADB registration system, which completes registration of a member to be registered to the RADB by using the registration method, and includes:
the registration information identification and verification module is used for verifying the parameter type of the member needing to be registered in the RADB and whether the member exists;
the registered information judging module is used for judging whether the registered information exists or not, namely updating if the registered information exists, or newly adding if the registered information does not exist;
the legality checking module is used for checking the legality of the registration information by using a Whois tool and judging whether the registration information is correct or not;
the registration module is used for performing RADB registration by using API and returning a registration result;
the registration result checking module is used for inquiring the registered information by using the Whois tool again after the registration is finished and checking whether the registration is successful;
the central processing module is used for sending instructions to each module to complete related actions;
the registration information identification and verification module, the registered information judgment module, the validity verification module, the registration module and the registration result verification module are all electrically connected with the central processing module.
Example two
The embodiment provides a technical scheme: a RADB registration method realized based on API includes the following steps:
s1: identifying and checking the registration information, namely checking the information such as the type of the members of the RADB;
the specific process is as follows: and judging whether the number is a correct AS data structure and whether the number is an AS or an AS-SET (the AS and the AS-SET have specific formats, such AS AS-1234, and only judging whether the format of the AS is correct or not), and judging whether members of the number return all registered ASes by calling an API (application program interface) query result to determine whether the registered AS exists or not.
It should be noted that, AS-SET information needs to be transmitted during registration, and the AS-SET information is queried according to the AS-SET information, where the queried information includes corresponding memberships nodes, and the nodes include all AS numbers.
S2: searching RADB registered information, and judging whether the registered information exists;
the specific process is as follows: calling an API query interface of the RADB, and transmitting the RADB into the AS-SET to query all members (AS numbers) under the AS-SET.
The specific process of querying all members of the AS-SET is AS follows:
s21: calling API information according to the AS-SET;
s22: the query result is a JSON array, and the array has only 1 result;
s23: the result has a members object, which is also an array, and the contents are all members of the members.
S3: performing validity check on the registration information by using a Whois tool;
the specific process is as follows: using the command whois-h whois.
If the returned result in step S3 is one, the result is the AS-SET information to which the AS number to be registered belongs, and this information includes all the AS numbers associated under the AS-SET.
S4: RADB registration is carried out by using API, and a registration result is returned in time;
the specific process is as follows: firstly, obtaining a result message according to AS-SET, then adding an AS number to be registered to an AS node corresponding to the message, calling an API registration interface provided by RADB, transmitting a new message, finishing registration by the interface, and returning a registration result.
In step S4, the result message queried by the AS-SET is analyzed to find the corresponding members node whose data is an array, the AS number to be registered is added to the array, the new members content is replaced in the members node of the result message queried by the AS-SET to generate a new message, and finally, the API interface is called to register the new message.
S5: after the registration is finished, querying the registered information by using the Whois tool again;
and using a command whois-h whois.
EXAMPLE III
The present embodiment briefly describes the present invention through the following operation processes:
the procedure of this example is to connect AS number: AS55992 registers with a corresponding AS-SET on RADB: AS-36678.
Step 1, checking parameters AS number and AS-SET number;
step 2, calling an API (application program interface), transmitting the API into AS-36678, and acquiring all AS numbers under the AS-SET;
step 3, checking whether the returned result is 1 by using a command 'whois-h whois, rad.net AS-36678', continuing if the returned result is 1, and ending if the returned result is not 1, and recording error information;
step 4, judging whether the registered AS number under the AS-36678 has AS55992 according to the result of the step 2;
step 5, according to the result of step 4, updating if existing, and registering if not (adding AS55992 to the AS node corresponding to the message of the result of step 2, calling registration API to transfer new message)
Step 6, checking whether an AS number exists in a returned result by using a command' whois-h whois. AS55992, if present, the registration is successful.
Example four
As shown in fig. 2, the embodiment provides an automatic RADB registration technique implemented based on API, including: recording the registration record; identifying and checking the registration information, such as whether the primaryKey of the registration organization is correct or not, whether the registered member type is correct or not, whether the member exists or not and the like; calling a Whois command to check the validity of the information; calling a retrieval service API of the RADB to confirm member information, confirming the operation type according to the message analysis result, and generating corresponding registration message information; and calling the RADB registration API to register, returning a registration result, confirming the registration result after the registration is successful, and confirming the successful RADB registration by double guarantee.
To sum up, the RADB registration method implemented based on the API in the above embodiment does not need to build a third-party service system, and only needs to install a Whois tool on the application server and ensure that the application server and the RADB network are unobstructed, and transmit the RADB registration information, the system automatically checks and judges the data, and uses the Whois tool to confirm whether the registration information exists, and uses the API to know the registration result in time, and does not need to wait, and after the registration is completed, the Whois tool is used to confirm whether the registration is successful again, so that a dual guarantee is implemented, and the method is worthy of being popularized and used.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (4)

1. A RADB registration method realized based on API is characterized by comprising the following steps:
s1: registration information identification verification
Checking the parameter types of the members needing to be registered in the RADB and whether the members exist or not;
s2: RADB registered information retrieval
Judging whether the current registration information exists, namely updating when the current registration information exists, and increasing when the current registration information does not exist;
s3: validity check
Performing validity check on the registration information by using a Whois tool, and judging whether the registration information is correct or not;
s4: performing RADB registration
RADB registration is carried out by using API, and a registration result is returned;
s5: check the registration result
After the registration is finished, querying the registered information by using the Whois tool again, and checking whether the registration is successful;
in step S2, when determining whether the registration information already exists, transferring the registration information to the AS-SET by calling an API query interface of the RADB, and querying all AS numbers under the AS-SET;
in step S3, a validity check of the registration information is performed using a command whois-h whois, rad.net AS-SET number, and if the number of entries of the returned result is 1, the registration information is valid, otherwise, the registration information is not valid;
in the step S4, according to the result message obtained by the AS-SET in the step S2, adding the AS number to be registered to the AS node corresponding to the message, calling the API registration interface provided by the RADB, importing a new message, completing registration by the interface, and returning the registration result;
in step S5, the registered information is queried using the command whois-h whois.
2. The RADB registration method implemented based on the API according to claim 1, wherein: in step S1, when checking the member parameter type, it is determined whether the member is the correct AS data structure and whether the member is an AS or an AS-SET.
3. The RADB registration method implemented based on the API according to claim 2, wherein: in step S1, when checking whether the member exists, all registered ASs are returned by calling an API query result, and it is determined whether the registered AS exists.
4. A RADB registration system realized based on API is characterized in that: the registration method of any claim 1 to 3 is used for completing the registration work of the member needing to be registered to the RADB, and comprises the following steps:
the registration information identification and verification module is used for verifying the parameter type of the member needing to be registered in the RADB and whether the member exists;
the registered information judging module is used for judging whether the registered information exists or not, namely updating if the registered information exists, or newly adding if the registered information does not exist;
the legality checking module is used for checking the legality of the registration information by using a Whois tool and judging whether the registration information is correct or not;
the registration module is used for performing RADB registration by using API and returning a registration result;
the registration result checking module is used for inquiring the registered information by using the Whois tool again after the registration is finished and checking whether the registration is successful;
the central processing module is used for sending instructions to each module to complete related actions;
the registration information identification and verification module, the registered information judgment module, the validity verification module, the registration module and the registration result verification module are all electrically connected with the central processing module.
CN202011048894.3A 2020-09-29 2020-09-29 RADB registration method and system based on API Active CN112134902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011048894.3A CN112134902B (en) 2020-09-29 2020-09-29 RADB registration method and system based on API

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011048894.3A CN112134902B (en) 2020-09-29 2020-09-29 RADB registration method and system based on API

Publications (2)

Publication Number Publication Date
CN112134902A CN112134902A (en) 2020-12-25
CN112134902B true CN112134902B (en) 2022-04-15

Family

ID=73844645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011048894.3A Active CN112134902B (en) 2020-09-29 2020-09-29 RADB registration method and system based on API

Country Status (1)

Country Link
CN (1) CN112134902B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143807B (en) * 2021-10-27 2023-08-08 中盈优创资讯科技有限公司 Route registration integrity rate evaluation method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1471673A (en) * 2000-11-01 2004-01-28 ˹������ķ˹��COM��˾ Domain Name acquisition and management system and method
WO2004029821A1 (en) * 2002-08-30 2004-04-08 Parsons Advanced Holdings, Inc. Proxy email method and system
CN101180839A (en) * 2005-03-28 2008-05-14 思科技术公司 Method and apparatus for the creation and maintenance of a self-adjusting repository of service level diagnostics test points for network based vpns
CN104901845A (en) * 2015-05-18 2015-09-09 中国互联网络信息中心 Automation test system and method of domain name WHOIS service
US10757139B1 (en) * 2016-06-28 2020-08-25 Amazon Technologies, Inc. Assessing and reporting security risks of an application program interface

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8989178B2 (en) * 2007-03-30 2015-03-24 Telefonaktiebolaget L M Ericsson (Publ) System and method for indicating circuit switched access at IMS registration
US9065855B2 (en) * 2012-06-29 2015-06-23 Verisign, Inc. Systems and methods for automatically providing Whois service to top level domains
US20160337174A1 (en) * 2015-05-15 2016-11-17 David Francis Jorm Automated network peering in a social-network model
CN105162785B (en) * 2015-09-07 2019-01-04 飞天诚信科技股份有限公司 A kind of method and apparatus registered based on authenticating device
CN110519254A (en) * 2019-08-21 2019-11-29 科大国创软件股份有限公司 A kind of interactive interfacing protocol fitting method and its system based on script

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1471673A (en) * 2000-11-01 2004-01-28 ˹������ķ˹��COM��˾ Domain Name acquisition and management system and method
WO2004029821A1 (en) * 2002-08-30 2004-04-08 Parsons Advanced Holdings, Inc. Proxy email method and system
CN101180839A (en) * 2005-03-28 2008-05-14 思科技术公司 Method and apparatus for the creation and maintenance of a self-adjusting repository of service level diagnostics test points for network based vpns
CN104901845A (en) * 2015-05-18 2015-09-09 中国互联网络信息中心 Automation test system and method of domain name WHOIS service
US10757139B1 (en) * 2016-06-28 2020-08-25 Amazon Technologies, Inc. Assessing and reporting security risks of an application program interface

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BGP AS管理常用站点;莫极;《CSDN》;20170215;全文 *
Who is whois? An analysis of results consistence;Aruna Prem Bianzino;《 2014 22nd International Conference on Software, Telecommunications and Computer Networks (SoftCOM)》;20150212;全文 *
通过Internet信息查询协议WHOIS协议查询IP地址所在AS号;WWEK;《博客》;20151123;全文 *

Also Published As

Publication number Publication date
CN112134902A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN109861975B (en) Industrial Internet-oriented identification registration information query method and system
US11064325B2 (en) Method of discovering services provided by a network repository function
JP3676989B2 (en) How to validate notification of newly defined customer network routes
US9143483B2 (en) Method for anonymous communication, method for registration, method and system for transmitting and receiving information
JP5977818B2 (en) Apparatus and method for controlling backbone network for sensor network
CN103460648A (en) Methods, systems, and computer readable media for screening Diameter messages within a Diameter signaling router (DSR) having a distributed message processor architecture
US7774502B2 (en) Determining an international destination address
US10530659B2 (en) Identifier-based resolution of identities
CN111225377A (en) Network service system and network service method
CN110493366A (en) The method and device of network management is added in a kind of access point
CN109617780A (en) Access method, apparatus, terminal device and the machine readable storage medium of network
CN112134902B (en) RADB registration method and system based on API
KR100661006B1 (en) Home network device management system and method thereof
CN1595890B (en) Virtual connectivity with subscribe-notify service
CN104079683A (en) Domain name resolution method and system authorizing direct response of domain name server
WO2017107653A1 (en) Mobile payment method, related device and system
CN114285852B (en) Service calling method and device based on multi-stage service platform
US20180262901A1 (en) Roaming solution
US8316045B1 (en) Database linking system
WO2011017935A1 (en) Mobile search method and system thereof
WO2012174829A1 (en) Short message processing method and device
US20230379295A1 (en) Domain name system analysis on edge network devices
CN111371914A (en) IP library generation method, domain name resolution method, electronic device and readable storage medium
JP4080402B2 (en) Name resolution / authentication method and apparatus
US20230308346A1 (en) Method for configuring a terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant