CN115022242A - Network layer identification method and device, computer equipment and storage medium - Google Patents

Network layer identification method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN115022242A
CN115022242A CN202210942661.0A CN202210942661A CN115022242A CN 115022242 A CN115022242 A CN 115022242A CN 202210942661 A CN202210942661 A CN 202210942661A CN 115022242 A CN115022242 A CN 115022242A
Authority
CN
China
Prior art keywords
information
domain name
network layer
file
forwarding
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.)
Granted
Application number
CN202210942661.0A
Other languages
Chinese (zh)
Other versions
CN115022242B (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.)
Shenzhen Gaodeng Computer Technology Co ltd
Original Assignee
Shenzhen Gaodeng Computer 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 Shenzhen Gaodeng Computer Technology Co ltd filed Critical Shenzhen Gaodeng Computer Technology Co ltd
Priority to CN202210942661.0A priority Critical patent/CN115022242B/en
Publication of CN115022242A publication Critical patent/CN115022242A/en
Application granted granted Critical
Publication of CN115022242B publication Critical patent/CN115022242B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Abstract

The application relates to a network layer identification method, a network layer identification device, computer equipment and a storage medium. The method comprises the following steps: acquiring information of a domain name to be queried to generate domain name index information; inquiring an object forwarding attribute file matched with the domain name index information from the routing result file set; determining a forwarding attribute set of a target network layer object corresponding to the object forwarding attribute file from the object forwarding attribute file; acquiring object indication information of a back-end network layer object corresponding to a target network layer object from an object forwarding attribute file; generating new domain name index information based on the object indication information, and returning to the object forwarding attribute file matched with the domain name index information inquired from the routing result file set to continue iteration until a network layer identification stop condition is met and the iteration is stopped; and obtaining network layer forwarding path information based on the forwarding attribute set of the target network layer object determined by each iteration. By adopting the method, the convenience of system research and development can be improved.

Description

Network layer identification method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to a network layer identification method and apparatus, a computer device, and a storage medium.
Background
With the development of cloud computing technology, more and more network layer services are deployed in the cloud. The larger the business system, the more network layer services are required. Although the stability and the availability of the business system are guaranteed by a plurality of network layer services, the network layer architecture of the business system is more complicated.
In the conventional technology, a network layer architecture is generally maintained by operation and maintenance personnel, and research and development personnel can hardly perceive the network layer architecture. Under the condition that the network layer architecture cannot be identified quickly, the work of research personnel becomes very inconvenient, so that the research and development period is long, and the research and development efficiency is low. Therefore, it is desirable to provide a network layer identification method capable of improving convenience.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a network layer identification method, apparatus, computer device, computer readable storage medium and computer program product capable of improving convenience.
In a first aspect, the present application provides a network layer identification method. The method comprises the following steps:
identifying information of a domain name to be inquired in input information to generate domain name index information;
inquiring an object forwarding attribute file matched with the domain name index information from a routing result file set through an object index function;
calling an object processing function matched with the object forwarding attribute file, and determining a forwarding attribute set of a target network layer object corresponding to the object forwarding attribute file from the object forwarding attribute file;
acquiring object indication information of a back-end network layer object corresponding to the target network layer object from the object forwarding attribute file through the object processing function;
generating new domain name index information based on the object indication information of the rear-end network layer object, returning to the passing object index function, and inquiring an object forwarding attribute file matched with the domain name index information from a routing result file set to continue iteration until a network layer identification stop condition is met and iteration is stopped;
and obtaining network layer forwarding path information corresponding to the domain name to be queried based on the forwarding attribute set of the target network layer object determined by each iteration.
In one embodiment, the identifying information of the domain name to be queried in the input information to generate the domain name index information includes: inputting input information into an entry function, and identifying the input information through the entry function;
under the condition that the information of the domain name to be inquired is identified, domain name index information is generated based on the information of the domain name to be inquired;
the method further comprises the following steps:
under the condition that the network address to be inquired is identified, original attribute information of a network layer object matched with the network address to be inquired is searched from the object result file set; the original attribute information is the attribute information of the network layer object acquired from the cloud platform; the cloud platform is used for configuring the network layer object.
In one embodiment, the querying, by using an object index function, an object forwarding attribute file matching the domain name index information from a routing result file set includes:
taking the domain name index information as the input of a domain name processing function, and adjusting the domain name index information based on the domain name type in the domain name index information identified by the domain name processing function;
and inquiring the object forwarding attribute file matched with the adjusted domain name index information from the routing result file set through an object index function.
In one embodiment, the querying, by using an object index function, an object forwarding attribute file matching the domain name index information from a routing result file set includes:
and taking the domain name index information as the input of an object index function, and determining an object forwarding attribute file matched with the domain name index information from a routing result file set by matching the domain name index information with file line information in the object forwarding attribute file.
In one embodiment, after querying, by the object indexing function, an object forwarding attribute file matching with the domain name indexing information from a routing result file set, the method further includes:
determining object field information from the file name of the object forwarding attribute file;
and determining an object processing function corresponding to the target network layer object represented by the object field information.
In one embodiment, the back-end forwarding object information includes a network address of a back-end network layer object; generating new domain name index information based on the object indication information of the rear-end network layer object, returning to the passing object index function, and inquiring an object forwarding attribute file matched with the domain name index information from a routing result file set to continue iteration until a network layer identification stop condition is met, wherein the step of stopping iteration comprises the following steps:
generating new domain name index information based on the network address of the backend network layer object;
under the condition that an object forwarding attribute file matched with domain name index information generated based on the network address does not exist in a routing result file set, inquiring a routing object file matched with the domain name index information generated based on the network address from a routing object file set through an object index function;
acquiring domain name information of a rear-end forwarding object from the routing object file based on the network address of the rear-end forwarding object;
and generating new domain name index information based on the domain name information of the rear-end network layer object, returning to the passing object index function, and inquiring an object forwarding attribute file matched with the domain name index information from a routing result file set to continue iteration until a network layer identification stop condition is met and iteration is stopped.
In one embodiment, the method further comprises a step of acquiring a set of routing result files; the step of obtaining the routing result file set comprises:
acquiring original attribute information of a network layer object from a cloud platform configured with the network layer object;
storing the original attribute information to an object result file set;
constructing a forwarding attribute set of the network layer object based on original attribute information in the object result file set, and naming the object forwarding attribute file according to a preset file name format to obtain an object forwarding attribute file comprising the forwarding attribute set; the forwarding attribute set is used for indicating a mode of forwarding information of the network layer object to the backend network layer object;
and storing the object forwarding attribute file to a routing result file set.
In a second aspect, the present application further provides a network layer identification apparatus. The device comprises:
the object index module is used for identifying the information of the domain name to be inquired in the input information so as to generate domain name index information; inquiring an object forwarding attribute file matched with the domain name index information from a routing result file set through an object index function;
the object processing module is used for calling an object processing function matched with the object forwarding attribute file and determining a forwarding attribute set of a target network layer object corresponding to the object forwarding attribute file from the object forwarding attribute file; acquiring object indication information of a back-end network layer object corresponding to the target network layer object from the object forwarding attribute file through the object processing function;
the object index module is further configured to generate new domain name index information based on the object indication information of the backend network layer object, return to the passing object index function, and query an object forwarding attribute file matched with the domain name index information from a routing result file set to continue iteration until a network layer identification stop condition is met, and stop iteration;
the object processing module is further configured to obtain network layer forwarding path information corresponding to the domain name to be queried based on the forwarding attribute set of the target network layer object determined by each iteration.
In one embodiment, the object indexing module is further configured to input information to an entry function, and identify the input information through the entry function; under the condition that the information of the domain name to be inquired is identified, domain name index information is generated based on the information of the domain name to be inquired; under the condition that the network address to be inquired is identified, original attribute information of a network layer object matched with the network address to be inquired is searched from the object result file set; the original attribute information is the attribute information of the network layer object acquired from the cloud platform; the cloud platform is used for configuring the network layer object.
In one embodiment, the object index module is further configured to use the domain name index information as an input of a domain name processing function, and adjust the domain name index information based on a domain name type in the domain name index information identified by the domain name processing function; and inquiring the object forwarding attribute file matched with the adjusted domain name index information from the routing result file set through an object index function.
In one embodiment, the object indexing module is further configured to use the domain name index information as an input of an object indexing function, and determine an object forwarding property file matched with the domain name index information from a routing result file set by matching the domain name index information with file row information in the object forwarding property file.
In one embodiment, the object indexing module is further configured to determine object field information from a file name of the object forwarding attribute file; and determining an object processing function corresponding to the target network layer object represented by the object field information.
In one embodiment, the back-end forwarding object information includes a network address of a back-end network layer object; the object indexing module is further used for generating new domain name indexing information based on the network address of the back-end network layer object; under the condition that an object forwarding attribute file matched with domain name index information generated based on the network address does not exist in a routing result file set, inquiring a routing object file matched with the domain name index information generated based on the network address from a routing object file set through an object index function; acquiring domain name information of a rear-end forwarding object from the routing object file based on the network address of the rear-end forwarding object; and generating new domain name index information based on the domain name information of the rear-end network layer object, returning to the passing object index function, and inquiring an object forwarding attribute file matched with the domain name index information from a routing result file set to continue iteration until a network layer identification stop condition is met and iteration is stopped.
In one embodiment, the object indexing module is further configured to obtain original attribute information of the network layer object from a cloud platform configured with the network layer object; storing the original attribute information to an object result file set; constructing a forwarding attribute set of the network layer object based on original attribute information in the object result file set, and naming the object forwarding attribute file according to a preset file name format to obtain an object forwarding attribute file comprising the forwarding attribute set; the forwarding attribute set is used for indicating a mode of forwarding information of the network layer object to the backend network layer object; and storing the object forwarding attribute file to a routing result file set.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the method embodiments when executing the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the embodiments of the method described herein.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprises a computer program which, when being executed by a processor, carries out the steps of the embodiments of the method described herein.
The network layer identification method, the network layer identification device, the computer equipment, the storage medium and the computer program product identify the information of the domain name to be inquired in the input information to generate domain name index information; inquiring an object forwarding attribute file matched with the domain name index information from the routing result file set through an object index function; calling an object processing function matched with the object forwarding attribute file, and determining a forwarding attribute set of a target network layer object corresponding to the object forwarding attribute file from the object forwarding attribute file; acquiring object indication information of a back-end network layer object corresponding to a target network layer object from an object forwarding attribute file through an object processing function; generating new domain name index information based on the object indication information of the rear-end network layer object, returning to pass through an object index function, and inquiring an object forwarding attribute file matched with the domain name index information from a routing result file set to continue iteration until a network layer identification stop condition is met and the iteration is stopped; and obtaining network layer forwarding path information corresponding to the domain name to be queried based on the forwarding attribute set of the target network layer object determined by each iteration. Based on the domain name index information, finding out a corresponding object forwarding attribute file, determining a forwarding attribute set of a target network layer object and object indication information of a rear network layer object from the object forwarding attribute file through an object processing function, and determining the forwarding attribute set of the rear network layer object through the domain name index information generated based on the object indication information, so that the forwarding attribute set determined by each iteration is obtained, the network layer forwarding path is quickly identified, and convenience is improved.
Drawings
FIG. 1 is a diagram of an exemplary network layer identification method;
FIG. 2 is a flow diagram illustrating a network layer identification method in accordance with an embodiment;
FIG. 3 is a block diagram of a network layer identification device in one embodiment;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment;
fig. 5 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The network layer identification method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104, or may be located on the cloud or other network server. The terminal 102 may send the acquired input information to the server 104. The server 104 may identify information of a domain name to be queried in the input information to generate domain name index information; the server 104 may query an object forwarding attribute file matched with the domain name index information from the routing result file set through an object index function; the server 104 may call an object processing function matched with the object forwarding property file, and determine a forwarding property set of the target network layer object corresponding to the object forwarding property file from the object forwarding property file; the server 104 may obtain the object indication information of the backend network layer object corresponding to the target network layer object from the object forwarding attribute file through the object processing function; the server 104 may generate new domain name index information based on the object indication information of the backend network layer object, and return to the object index function, and query the object forwarding attribute file matched with the domain name index information from the routing result file set to continue iteration until the network layer identification stop condition is satisfied and the iteration is stopped; the server 104 may obtain the network layer forwarding path information corresponding to the domain name to be queried based on the forwarding attribute set of the target network layer object determined by each iteration. The server 104 may send the network layer forwarding path information to the terminal 102. The terminal 102 may expose network layer forwarding path information.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
In one embodiment, as shown in fig. 2, a network layer identification method is provided, which is described by taking the method as an example applied to the server in fig. 1, and it is understood that the method may also be applied to a terminal, and may also be applied to a system including a terminal and a server, and is implemented through interaction between the terminal and the server. In this embodiment, the method includes the steps of:
step 202, identifying information of a domain name to be queried in input information to generate domain name index information; and inquiring an object forwarding attribute file matched with the domain name index information from the routing result file set through an object index function.
The domain name to be queried is the domain name of the forwarding path of the network layer to be queried, which is input by a user. The domain name index information is used for indexing the network layer objects related to the network layer forwarding path. It is understood that the network layer is to implement transparent data transmission between two end systems, so that data at the source end can transparently pass through a plurality of transit nodes in the communication sub-network to the destination end in an optimal path, and the network layer object corresponds to the transit node. The routing result file set comprises an object forwarding attribute file corresponding to each network layer object.
Specifically, the user may input information of the domain name to be queried through the terminal, and the terminal may transmit the input information input by the user to the server. The server can identify the information of the domain name to be queried in the input information to generate domain name index information. The server may use the domain name index information as an input of an object index function, and compare file line information in the object forwarding attribute file in the routing result file set with the domain name index information through the object index function to obtain an object forwarding attribute file matched with the domain name index information. It is understood that the domain name index information includes information consistent with the file row information in the matching object forwarding attribute file.
In one embodiment, the route result file set (routeResult) includes an offline file set (offlineObject) and an online file set (onlineObject). The offline file set comprises object forwarding attribute files corresponding to the available network layer objects. The online file set comprises an object forwarding attribute file corresponding to the unavailable network layer object. The server can inquire the object forwarding attribute file matched with the domain name index information from the online file set through an object index function.
In one embodiment, in a case that the object forwarding property file matching with the domain name index information is not included in the online file set, the server may query the object forwarding property file matching with the domain name index information from the routing result file set through an object index function.
In an embodiment, in a case that the online file set does not include the object forwarding attribute file matched with the domain name index information and the routing result file set includes the object forwarding attribute file matched with the domain name index information, the server may determine a file name of the object forwarding attribute file and file line information consistent with the domain name index information, and obtain the query failure prompt information by concatenating field information in the file name and the file line information. The server can send the prompt information of the query failure to the terminal.
In one embodiment, the field information in the file name includes at least one of account field Information (ID), region field information (region), object field information (object), or interface field information (interface). The account field information is used for indicating a cloud platform account to which the network layer object corresponding to the object attribute file belongs. The region field information is used to indicate a region to which the network layer object corresponding to the object attribute file belongs, for example, a region in Guangzhou. The object field information is used for representing the network layer object corresponding to the object attribute file. The interface field information is used for identifying the interface corresponding to the network layer object corresponding to the object attribute file. The server can decompose the file name according to a preset file name format to obtain field information in the file name. For example, the preset filename format indicates the ordering of the various field information and filename connectors between the various field information. It will be appreciated that the file name includes a plurality of field information, each of which may be linked by the same type of connector. The server may identify a filename connector in the filename and resolve the field information from the filename according to the ordering of the various field information. The file name connector may be "-".
In one embodiment, in the case that the object forwarding attribute file matching with the domain name index information is not included in the routing result file set, the server may send a prompt message that the result is not queried to the terminal.
In one embodiment, the domain name index information includes object indication information of the network layer object. The server may construct domain name index information based on the object indication information according to a preset index format. It is to be understood that the object indication information may include at least one of information of a domain name of the network layer object and information of an interface, etc.
In one embodiment, the preset index format may indicate an ordering of the plurality of object indication information in the domain name index information and an index connector between the plurality of object indication information. The server can identify the index connector in the domain name index information through an object index function, and decompose the various object indication information of the network layer object from the domain name index information according to the sequence of the various object indication information. The server can compare the object indication information with the same type with the file line information in the object forwarding attribute file to obtain the object forwarding attribute file matched with the domain name index information. Wherein the index connector may be ":".
In one embodiment, the server may resolve the information of the domain name and the information of the interface from the domain name index information according to a preset index format through an object index function. For example, the server may split the domain name index information into domain name field (host field) information to be indexed and port field (port field) information to be indexed by using an object index function. The server can search the object forwarding attribute file set comprising the domain name field information to be indexed and the interface field information to be indexed from the online file set or the routing result file set. It is understood that if the field of the interface to be indexed is empty or the information of the field of the interface to be indexed is 0, the server may only search for the object forwarding property file including the information of the field of the domain name to be indexed.
In one embodiment, the server may use the domain name index information and the information of the domain name to be queried as inputs of an object index function, and check the compliance of the domain name index information and the domain name information to be queried through the object index function. After the compliance check passes, the server may query the object forwarding property file that matches the domain name index information.
Step 204, calling an object processing function matched with the object forwarding attribute file, and determining a forwarding attribute set of a target network layer object corresponding to the object forwarding attribute file from the object forwarding attribute file; and acquiring the object indication information of the back-end network layer object corresponding to the target network layer object from the object forwarding attribute file through the object processing function.
The object indication information is used for indicating the network layer object. It will be appreciated that the object indication information does not directly characterize the network layer object, but indirectly indicates the network layer object. For example, the name of a network layer object may directly characterize the network layer object, whereas the domain name of a network layer object may only indicate the network layer object. The set of forwarding attributes includes forwarding attribute information for the network layer object, the forwarding attribute information being attribute information for the network layer object associated with the network layer forwarding path. The back-end network layer object corresponds to the next forwarding node in the network layer forwarding path as compared to the target network layer object.
Specifically, in the case that the online file set includes an object forwarding attribute file matching the domain name index information, the server may determine object field information in the file name according to a preset file name format, and determine an object handling function matching the object forwarding attribute file based on the object field information in the file name. The server can determine a forwarding attribute set of the target network layer object corresponding to the object forwarding attribute file from the object forwarding attribute file through the object processing function, and acquire object indication information of the backend network layer object corresponding to the target network layer object from the object forwarding attribute file through the object processing function.
In one embodiment, the server may obtain the object indication information of the backend network layer object from the forwarding attribute set through an object handling function. It will be appreciated that the server may construct the set of forwarding attributes in accordance with a preset forwarding attribute format. The server may resolve the object indication information of the backend network layer object from the forwarding attribute set according to a preset forwarding attribute format.
In one embodiment, the server may take domain name index information, a file name of the object forwarding attribute file, and information of the domain name to be queried input by the user as input of the object processing function. The server can determine field information in the file name according to a preset file name format through an object processing function, and resolve domain name field information to be indexed and interface field information to be indexed from the domain name index information according to a preset index format. The server can check the information of the domain name to be queried, the field information in the file name, the field information of the domain name to be indexed and the compliance of the field information of the interface to be indexed through an object processing function, and respectively determine the file line information matched with the field information of the domain name to be indexed, the field information of the interface to be indexed and the information of the domain name to be queried from the object forwarding attribute file corresponding to the file name after the compliance check is passed.
Step 206, generating new domain name index information based on the object indication information of the back-end network layer object, returning to pass through an object index function, and querying an object forwarding attribute file matched with the domain name index information from the routing result file set to continue iteration until a network layer identification stop condition is met and the iteration is stopped; and obtaining network layer forwarding path information corresponding to the domain name to be queried based on the forwarding attribute set of the target network layer object determined by each iteration.
Specifically, the server may determine the forwarding attribute set of the target network layer object from the object forwarding attribute file through an object processing function under the condition that the file line information respectively matched with the domain name index information and the information of the domain name to be queried exists in the object forwarding attribute file. The server can determine the network address or the domain name information in the object indication information of the rear-end network layer object, generate new domain name index information based on the network address or the domain name information in the object indication information, return to pass through an object index function, and inquire an object forwarding attribute file matched with the domain name index information from the routing result file set to continue iteration until a network layer identification stop condition is met and the iteration is stopped. The server may obtain a set of forwarding attributes for the target network layer object determined for each iteration. It can be understood that the forwarding attribute set determined in each iteration is network layer forwarding path information, and they collectively indicate a network layer forwarding path corresponding to the domain name to be queried.
In an embodiment, in the case that there is no file line information respectively matching with the domain name index information and the information of the domain name to be queried in the object forwarding attribute file, the server may stop the iteration and send the prompt information including the object forwarding attribute to the terminal.
In the network layer identification method, the information of the domain name to be inquired in the input information is identified to generate domain name index information; inquiring an object forwarding attribute file matched with the domain name index information from the routing result file set through an object index function; calling an object processing function matched with the object forwarding attribute file, and determining a forwarding attribute set of a target network layer object corresponding to the object forwarding attribute file from the object forwarding attribute file; acquiring object indication information of a back-end network layer object corresponding to a target network layer object from an object forwarding attribute file through an object processing function; generating new domain name index information based on the object indication information of the rear-end network layer object, returning to pass through an object index function, and inquiring an object forwarding attribute file matched with the domain name index information from a routing result file set to continue iteration until a network layer identification stop condition is met and the iteration is stopped; and obtaining network layer forwarding path information corresponding to the domain name to be queried based on the forwarding attribute set of the target network layer object determined by each iteration. Based on the domain name index information, finding out a corresponding object forwarding attribute file, determining a forwarding attribute set of a target network layer object and object indication information of a rear network layer object from the object forwarding attribute file through an object processing function, and determining the forwarding attribute set of the rear network layer object through the domain name index information generated based on the object indication information, so that the forwarding attribute set determined by each iteration is obtained, the network layer forwarding path is quickly identified, and convenience is improved.
In one embodiment, identifying information of a domain name to be queried in the input information to generate domain name index information comprises: inputting input information into an entry function, and identifying the input information through the entry function; under the condition that the information of the domain name to be inquired is identified, domain name index information is generated based on the information of the domain name to be inquired; the method further comprises the following steps: under the condition that the network address to be inquired is identified, original attribute information of a network layer object matched with the network address to be inquired is searched from the object result file set; the original attribute information is the attribute information of the network layer object acquired from the cloud platform; the cloud platform is used for configuring the network layer object.
The object result file set (objectResult) includes original attribute information of each network layer object.
Specifically, the server may input the input information to the portal function, and the input information is identified by the portal function. The server can search the original attribute information of the network layer object matched with the network address to be inquired from the object result file set through the entry function under the condition that the network address to be inquired is identified, and send the original attribute information of the network layer object to the terminal. The original attribute information may include at least one of a network layer object corresponding to the network address, a cloud platform account to which the network layer object belongs, or an area to which the network layer object belongs. In the case of identifying the information of the domain name to be queried, the server may generate domain name index information based on the information of the domain name to be queried according to a preset index format.
In one embodiment, the server may check the compliance of the incoming information through a portal function and probe the connectivity of the public network. It will be appreciated that the server may stop the iteration in the event that the compliance check does not pass or the public network does not communicate.
In one embodiment, the server may initialize the interface information, and construct the initialized interface information and the information of the domain name to be queried into the domain name index information according to the sorting and index connectors of the interface information and the domain name information indicated by the preset index format. It is understood that the predetermined index format may be domain name information, i.e., interface information. The information of the domain name to be queried substantially belongs to the object indication information of the network layer object, and the server may initialize the interface information to 0.
In one embodiment, in the case that the input information includes domain name information of a network layer object, the server may query original attribute information of the network layer object corresponding to the domain name information.
In the embodiment, under the condition that the information of the domain name to be queried is identified, domain name index information is generated based on the information of the domain name to be queried; under the condition that the network address to be inquired is identified, the original attribute information of the network layer object matched with the network address to be inquired is searched from the object result file set, and it can be understood that the method provided by the application not only can quickly search the network address, the domain name and other keywords of the network layer object, but also can quickly inquire the network layer forwarding path corresponding to the domain name to be inquired.
In one embodiment, querying, by the object index function, an object forwarding attribute file matching with domain name index information from the routing result file set includes: taking the domain name index information as the input of a domain name processing function, and adjusting the domain name index information based on the domain name type in the domain name index information identified by the domain name processing function; and inquiring the object forwarding attribute file matched with the adjusted domain name index information from the routing result file set through an object index function.
The domain name type includes two information types, namely an Address record (Address record, a record) and an alias record (CNAME record) of the domain name. It is understood that the a record is an IP resolution, directly pointing a domain name or a host name to a certain network Address (Internet Protocol Address). The CNAME record, like the A record, is a pointer to www.xx.com the alias name www.yy.com, and then www.xx.com points to the corresponding network address via the A record.
Specifically, the server may use the domain name index information as an input of a domain name processing function, and identify the domain name index information through the domain name processing function. In the case that it is recognized that the domain name index information includes domain name alias information, the server may directly use the domain name index information and information of the domain name to be queried as input of the object index function. When the domain name index information is identified to include the domain name address record information, the server may determine a network address or domain name alias information corresponding to the domain name address record information, and replace the domain name address record information in the domain name index information with the determined network address or domain name alias information according to a preset index format to obtain the adjusted domain name index information. The server may use the information of the domain name to be queried and the adjusted domain name index information as the input of the object index function. The server can inquire the object forwarding attribute file matched with the domain name index information from the routing result file set through an object index function.
In one embodiment, the server may resolve, by using a domain name processing function, domain name field information to be indexed and interface field information to be indexed from the domain name index information according to a preset index format, and perform compliance on the domain name field information to be indexed, the interface field information to be indexed, and the information of the domain name to be queried.
In one embodiment, the server may perform Domain Name record query by analyzing (DNS) Domain Name field information to be indexed through a Domain Name System, and the server does not need to adjust the Domain Name index information when querying that the Domain Name field information to be indexed is the Domain Name information.
In one embodiment, in the case that the domain name field information to be indexed is not the alias information of the domain name, the domain name system is used for analyzing the domain name field information to be indexed so as to perform domain name address record inquiry. When the domain name field information to be indexed is queried as domain name address record information, the server may adjust the domain name field information to be indexed in the domain name index information, that is, adjust the domain name address record information to a network address or domain name alias information, to obtain the adjusted domain name index information. It can be understood that, in the case that the domain name field information to be indexed is not the domain name address record information, the server may stop the iteration and return the prompt information of the domain name address record and the domain name alias record to the terminal.
In one embodiment, the server may take the domain name index information and the information of the domain name to be queried as the input of the domain name processing function. It can be understood that the information of the domain name to be queried is transmitted along with the query of the whole network layer forwarding path. That is, the domain name information included in the domain name index information is the domain name information to be indexed and the interface information, and may change constantly according to the object indication information of the back-end network layer object, and the domain name information to be queried may be transferred as the input parameter of the function all the time.
In an embodiment, in a case that the object indication information of the backend network layer object includes information of a domain name and information of an interface of the backend network layer object, the server may construct new domain name index information from the information of the domain name and the information of the interface of the backend network layer object according to a preset index format, and use the new domain name index information as an input of a domain name processing function, and adjust the domain name index information based on a domain name type in the domain name index information identified by the domain name processing function, to obtain the adjusted domain name index information. It can be understood that the adjusted domain name index information at this time is new domain name index information.
In this embodiment, the domain name index information can be adjusted based on the domain name type in the domain name index information identified by the domain name processing function; and inquiring an object forwarding attribute file matched with the adjusted domain name index information from the routing result file set through an object index function, and adjusting the domain name index information to avoid the waste of computing resources caused by the incapability of searching the domain name index information.
In one embodiment, querying, by the object index function, an object forwarding attribute file matching with domain name index information from the routing result file set includes: and determining the object forwarding attribute file matched with the domain name index information from the routing result file set by matching the domain name index information with the file line information in the object forwarding attribute file.
Specifically, the server may use the domain name index information as an input of an object index function, resolve domain name field information to be indexed and interface field information to be indexed from the domain name index information according to a preset index format through the object index function, and determine file row information respectively consistent with the domain name field information to be indexed and the interface field information to be indexed from the object forwarding attribute file. And determining the object forwarding attribute file matched with the domain name index information from the routing result file set by matching the domain name index information with the file line information in the object forwarding attribute file.
In one embodiment, the object forwarding property file is set according to a preset forwarding file format. The preset forwarding file format may indicate information corresponding to each line in the object attribute file. It can be understood that the server may determine, according to a preset forwarding file format, information recorded in each line of the object forwarding file, for example, in an object forwarding attribute file matched with the domain name index information, a first field is consistent with domain name field information to be indexed, a second field is consistent with interface field information to be indexed, and a sixth field is consistent with information of a domain name to be queried.
In one embodiment, in the case that the field information of the interface to be indexed is 0, the server may not perform matching between the file line information and the field information of the interface to be indexed.
In one embodiment, the server may obtain the file row information in the object forwarding attribute file to obtain the forwarding attribute set of the target network layer object. It is understood that the server may directly return the forwarding attribute set of the target network layer object to the terminal after obtaining the forwarding attribute set of the target network layer object. And when the forwarding attribute set is returned, the server can also return the cloud platform account and the area to which the target network layer object belongs to the terminal.
In the embodiment, the domain name index information is matched with the file row information in the object forwarding attribute file, the object forwarding attribute file matched with the domain name index information is determined from the routing result file set, and then the query of the network layer forwarding path can be realized based on the object forwarding attribute file, so that the convenience is improved.
In one embodiment, after querying the object forwarding attribute file matching with the domain name index information from the routing result file set through the object index function, the method further includes: determining object field information from the file name of the object forwarding attribute file; and determining an object processing function corresponding to the target network layer object represented by the object field information.
Specifically, the server may determine the object field information from the file name of the object forwarding attribute file according to a preset file name format, and determine an object processing function corresponding to the target network layer object represented by the object field information. It will be appreciated that the object handling functions correspond to network layer objects one to one, with each network layer object corresponding to an object handling function.
In one embodiment, the Network layer objects include Content Delivery Network layer objects (CDN), Firewall Network layer objects (WAF), interface Gateway Network layer objects (API Gateway), Load balancing Network layer objects (CLB), Address Translation Network layer objects (NAT), and forwarding destination Network layer objects (CVM), Cloud Virtual Machine objects (COS). It will be appreciated that the intermediate forwarded network layer object corresponds to an intermediate node of the network layer forwarding path and the forwarding destination network layer object corresponds to a final node of the network layer forwarding path.
In an embodiment, when the forwarding destination network layer object is used as a backend network layer object, the object processing function corresponding to the target network layer object may directly query the object forwarding attribute file of the forwarding destination network layer object from the routing result file set.
In one embodiment, the target network layer object characterized by the object field information may be a load balancing network layer object, and the corresponding object handling function is a load balancing object handling function (cdnDeal). The server can determine the 'domain name' field information in the forwarding attribute set of the load balancing network layer object through the load balancing object processing function. In the case that the "domain name" field information indicates the hypertext transfer protocol or the hypertext transfer security protocol, the server may determine, from the object attribute file, file line information that matches the information of the domain name to be queried through a load balancing object processing function. Under the condition that the file row information matched with the information of the domain name to be inquired does not exist in the object attribute file, the server can return prompt information of the load balancing network layer object forwarding attribute set to the terminal, and the server considers that the file row information is matched and continues to execute. The server can determine the network address and the interface information of the back-end network layer object through the load balancing object processing function, and under the condition that the survival state of the interface of the back-end network layer object is abnormal, the server considers that the interface is normal and continues to execute. The backend network layer object may be a cloud service network layer object, and the server may search an object forwarding attribute file of the cloud service network layer object from the routing result file set according to a network address of the backend network layer object, and determine a file name of the searched object forwarding attribute file. The server can send the forwarding attribute set in the object forwarding attribute file of the cloud service network layer object to the terminal, and stop iteration. It is to be appreciated that the cloud services network layer object corresponds to an end point of a network layer forwarding path.
Under the condition that the 'domain name' field information indicates a transmission control protocol or a transmission control security protocol or a user datagram protocol, the server can determine the interface survival state of the back-end network layer object, and under the abnormal condition, the server sends prompt information of a forwarding attribute set of the load balancing network layer object to the terminal, and considers that the interface survival state is normal to continue execution. The server can search the object forwarding attribute file of the cloud service network layer object from the online file set according to the network address of the back-end network layer object. The server may determine a filename of an object forwarding property file of the cloud service network layer object. The server can send the forwarding attribute set in the object forwarding attribute file of the cloud service network layer object to the terminal, and stop iteration.
In one embodiment, the target network layer object characterized by the object field information may be an address translation network layer object. The backend network layer object may be a cloud services network layer object. The server may determine "domain name" field information in the set of forwarding attributes of the address translation network layer object via an object handling function. In the case that the "domain name" field information indicates the transmission control protocol, the server may determine the interface survival status of the backend network layer object, and in the case of an exception, send a prompt message of the forwarding attribute set of the address translation network layer object to the terminal, and consider the interface survival status as normal to continue execution. The server can search the object forwarding attribute file of the cloud service network layer object from the online file set according to the network address of the back-end network layer object. The server may determine a filename of an object forwarding property file of the cloud service network layer object. The server can send the forwarding attribute set in the object forwarding attribute file of the cloud service network layer object to the terminal, and stop iteration.
In one embodiment, the target network layer object may be a forwarding destination network layer object. It can be understood that, at this time, the forwarding of other network layer objects is not performed, and the network layer objects are directly forwarded to the forwarding destination network layer object. For this case, the server may call an object handling function corresponding to the target network layer object, and search the object forwarding attribute file matched with the domain name index information from the online file set.
In an embodiment, the server may query the object forwarding property file from the online file set, and query the object forwarding property file from the routing result file set when the corresponding object forwarding property file is not queried in the online file set.
In the embodiment, the object field information is determined from the file name of the object forwarding attribute file; and determining an object processing function corresponding to the target network layer object represented by the object field information, and subsequently obtaining object indication information of the rear-end network layer object through the object processing function to continue iteration, so that the network layer forwarding path is queried for the network layer object configured on the basis of the cloud platform, and convenience is improved.
In one embodiment, the backend forwarding object information includes a network address of the backend network layer object; generating new domain name index information based on the object indication information of the rear-end network layer object, returning to pass through an object index function, and inquiring an object forwarding attribute file matched with the domain name index information from a routing result file set to continue iteration until a network layer identification stop condition is met, wherein the step of stopping iteration comprises the following steps: generating new domain name index information based on the network address of the back-end network layer object; under the condition that an object forwarding attribute file matched with domain name index information generated based on a network address does not exist in a routing result file set, inquiring a routing object file matched with the domain name index information generated based on the network address from a routing object file set through an object index function; acquiring domain name information of a rear-end forwarding object from a routing object file based on a network address of the rear-end forwarding object; and generating new domain name index information based on the domain name information of the rear-end network layer object, returning to pass through an object index function, and inquiring an object forwarding attribute file matched with the domain name index information from the routing result file set to continue iteration until a network layer identification stop condition is met and the iteration is stopped.
Specifically, the server may determine the network address and the interface information of the backend network layer object from the forwarding attribute set of the target network layer object, and construct the network address and the interface information of the backend network layer object into new domain name index information according to a preset index format. Under the condition that an object forwarding attribute file matched with domain name index information generated based on a network address does not exist in the routing result file set, the server can compare the network address in the domain name index information with domain name alias information recorded in the routing object file through an object index function so as to inquire the routing object file matched with the domain name index information generated based on the network address from the routing object file set. It is understood that the routing object file has recorded therein the routing information of the network layer object. And if the network address pointed by the domain name alias information is consistent with the network address in the domain name index information, the routing object file is matched with the domain name index information. The server may obtain domain name alias information for the back-end forwarding object from the route object file. The server can generate new domain name index information based on the domain name alias information of the rear-end network layer object, and returns to the object index function, and the object forwarding attribute file matched with the domain name index information is inquired from the routing result file set to continue iteration until the network layer identification stop condition is met, and the iteration is stopped. It can be understood that the network address of the backend network layer object corresponds to not the root domain name but a domain name alias, so that the corresponding domain name index information needs to be adjusted, so that the object index function can retrieve the object attribute file from the routing result file set.
In one embodiment, forwarding address domain name field information corresponding to the backend network layer object is included in the set of forwarding attributes. The forwarding address domain name field information may be a network address or domain name information of the backend network layer object. And when the forwarding address domain name field information is the domain name information of the rear-end network layer object, returning to the step of taking the domain name index information as the input of the domain name processing function, and adjusting the domain name index information on the basis of the domain name type in the domain name index information identified by the domain name processing function to continue iteration.
In one embodiment, the server may compare the network address in the domain name index information with domain name alias information recorded in the remaining routing object files except for the routing object file corresponding to the target network layer object through an object index function to query the routing object file matching the domain name index information generated based on the network address from the set of routing object files. After inquiring the route object file, the server can return prompt information for filling the network address or domain name information of the back-end network layer object to the terminal.
In this embodiment, in the case that an object forwarding attribute file matching domain name index information generated based on a network address does not exist in a routing result file set, a routing object file matching the domain name index information generated based on the network address is queried from a routing object file set through an object index function; acquiring domain name information of a back-end forwarding object from a routing object file based on the network address of the back-end forwarding object; and generating new domain name index information based on the domain name information of the rear-end network layer object, thereby avoiding the suspension of the query of a network layer forwarding path under the condition that the network address points to the alias of the domain name and improving the adaptability.
In one embodiment, the method further comprises a step of obtaining a set of routing result files; the step of obtaining the routing result file set comprises the following steps: acquiring original attribute information of a network layer object from a cloud platform configured with the network layer object; storing the original attribute information to an object result file set; constructing a forwarding attribute set of the network layer object based on original attribute information in the object result file set, and naming the object forwarding attribute file according to a preset file name format to obtain an object forwarding attribute file comprising the forwarding attribute set; the forwarding attribute set is used for indicating a mode of forwarding information of the network layer object to the backend network layer object; and storing the object forwarding attribute file to a routing result file set.
Specifically, the server may obtain original attribute information of the network layer object from a cloud platform configured with the network layer object, and store the original attribute information to the object result file set. The server may determine object forwarding attributes associated with the network layer forwarding path from the raw attribute information in the set of object result files. The server may construct a forwarding attribute set of the network layer object with respect to each network layer object with respect to a corresponding object forwarding attribute according to a preset forwarding attribute format, and name the object forwarding attribute file according to a preset file name format to obtain an object forwarding attribute file including the forwarding attribute set. The server may save the object forwarding property file to the set of routing results files.
In one embodiment, a server may obtain a profile of a network layer object. The server can acquire attribute information of the network layer object corresponding to the cloud platform account number and matched with the field in the configuration file from the cloud platform to obtain original attribute information of the network layer object. The configuration file comprises an interface access key field, a belonging area field and a network layer object interface field of a network layer object of the cloud platform. Wherein the network layer object interface field may include at least one of an area-dependent interface field, an area-independent interface field, a limited interface field, and an unlimited interface field.
In one embodiment, the server may acquire original attribute information of the network layer object through the object acquisition unit. The server can obtain the original attribute information of the network layer object step by step. It is to be appreciated that the server can obtain the original attribute information of the area-independent network layer object. The area-independent network layer object is a primary network layer object. For network layer objects related to an area, the server may first obtain a plurality of network layer objects in accordance with the area field, and then perform next-level obtaining on the obtained plurality of network layer objects according to a next field.
In one embodiment, the field information in the file name includes account field Information (ID), region field information (region), object field information (object), and interface field information (interface). The preset file name format may be ID-region-object-interface.
In one embodiment, the preset forwarding attribute format corresponding to the target network layer object may be [ domain name information or network address of the target network layer object, interface information of the target network layer object, domain name information or network address of the backend network layer object, interface information of the backend network layer object, status of the target network layer object, resolved domain name, forwarding path, type related parameter ]. The domain name information or the network address of the backend network layer object corresponds to the forwarding address domain name field of the backend network layer object.
In one embodiment, the server may construct a forwarding attribute set of the network layer object from the corresponding object forwarding attributes for each network layer object according to a preset forwarding attribute format through an object character processing function. Each network layer object corresponds to an object character processing function.
In one embodiment, the interface gateway network layer object corresponds to a gateway character processing function. The preset forwarding attribute format corresponding to the interface gateway network layer object may be [ domain name alias information of the interface gateway network layer object, interface information of the interface gateway network layer object, domain name information or network address of the back-end network layer object, interface information of the back-end network layer object, published environment, domain name, forwarding path, and forwarding back-end product type ]. The server can determine a forwarding attribute set with a field of the published environment not being empty through a gateway character processing function, and after naming according to a preset file name format, the obtained object forwarding attribute file is stored in an online file set. The server can determine that the field of the 'published environment' is empty or a forwarding attribute set comprising the empty field through a gateway character processing function, and after naming according to a preset file name format, the obtained object forwarding attribute file is stored in an offline file set.
In one embodiment, in the case that the target network layer object is a content distribution network layer object, a firewall network layer object, or an address translation network layer object, the preset forwarding attribute format corresponding to the target network layer object may be [ domain name alias information of the target network layer object, interface information of the target network layer object, domain name information or a network address of the backend network layer object, interface information of the backend network layer object, a status of the target network layer object, a domain name, a forwarding path, a backend forwarding communication protocol ]. The back-end forwarding communication protocol may include at least one of http (hypertext transfer protocol), https (hypertext transfer security protocol), or follow (decentralized social protocol). The server can determine that the field of 'state of the target network layer object' is an online forwarding attribute set from the routing result file set through an object character processing function corresponding to the target network layer object, and after naming according to a preset file name format, the obtained object forwarding attribute file is stored in the online file set. The server may determine, from the routing result file set, that the "state of the target network layer object" field is an offline or forwarding attribute set including an empty field, and after naming according to a preset file name format, store the obtained object forwarding attribute file in the offline file set.
In one embodiment, the load balancing network layer object corresponds to a load balancing character processing function. The preset forwarding attribute format corresponding to the load balancing network layer object may be [ a network address of the load balancing network layer object, interface information of the load balancing network layer object, domain name information or a network address of the backend network layer object, interface information of the backend network layer object, forwarding weight, domain name, forwarding path, backend forwarding communication protocol ]. The back-end forwarding protocol comprises http and https which need 'domain name' field information and 'forwarding path' field information, and tcp (transmission control protocol), tcp _ ssl (transmission control security protocol) and udp (user datagram protocol) which do not need the 'domain name' field information and the 'forwarding path' field information. The server can determine the state of the load balancing network layer object as an online forwarding attribute set from the routing result file set through a load balancing character processing function, and after naming according to a preset file name format, the obtained object forwarding attribute file is stored in the online file set. The server can determine the state of the load balancing network layer object as an offline forwarding attribute set or a forwarding attribute set comprising an empty field from the routing result file set, and after naming according to a preset file name format, store the obtained object forwarding attribute file into the offline file set.
In one embodiment, the object store network layer object corresponds to an object store character handling function. The preset forwarding attribute format corresponding to the object storage network layer object can be [ default object storage source station ]
Figure 443539DEST_PATH_IMAGE002
Static domain name source station]. The format of the default object store Source site may be [ ] "
Figure 78788DEST_PATH_IMAGE004
Figure 858526DEST_PATH_IMAGE006
Storage bucket
Figure 722576DEST_PATH_IMAGE008
Object storage.
Figure 5790DEST_PATH_IMAGE004
Figure 828253DEST_PATH_IMAGE006
Region(s)
Figure 564128DEST_PATH_IMAGE008
Cloud platform Domain name "]I.e., [ ] "
Figure 498715DEST_PATH_IMAGE004
Figure 167594DEST_PATH_IMAGE006
bucket
Figure 629799DEST_PATH_IMAGE008
.cos.
Figure 852970DEST_PATH_IMAGE004
Figure 58823DEST_PATH_IMAGE006
region
Figure 582209DEST_PATH_IMAGE008
.XXX.com”]. The format of the static domain name source station may be [ ] "
Figure 730162DEST_PATH_IMAGE004
Figure 971788DEST_PATH_IMAGE006
Storage bucket
Figure 715753DEST_PATH_IMAGE008
Object store-web site.
Figure 828065DEST_PATH_IMAGE004
Figure 163231DEST_PATH_IMAGE009
Region(s)
Figure 360995DEST_PATH_IMAGE008
Cloud platform Domain name "]I.e., [ ] "
Figure 157918DEST_PATH_IMAGE004
Figure 655896DEST_PATH_IMAGE006
bucket
Figure 896384DEST_PATH_IMAGE008
.cos-website.
Figure 315864DEST_PATH_IMAGE004
Figure 198370DEST_PATH_IMAGE010
region
Figure 19695DEST_PATH_IMAGE008
.XXX.com”]. The server can store the obtained object forwarding attribute file into the online file set through the object storage character processing function after naming according to the preset file name format.
In one embodiment, a cloud serviceThe network layer object corresponds to a cloud service character processing function. The preset forwarding attribute format corresponding to the cloud server network layer object can be an internal network address and an external network address
Figure 680352DEST_PATH_IMAGE002
Network address, instance name, data disk list, instance status of public network]. The server can determine that the instance state is RUNNING from the routing result file set through a cloud service character processing function, namely, the object forwarding attribute file of the RUNNING is named according to a preset file name format, and the obtained object forwarding attribute file is stored in the online file set. The server may determine, through the cloud service character processing function, that "instance state" field information is non-operational, that is, an object forwarding attribute file not equal to "RUNNING" from the routing result file set, and after naming the object forwarding attribute file according to a preset file name format, store the obtained object forwarding attribute file to the offline file set.
In the embodiment, the original attribute information of the network layer object is acquired from a cloud platform configured with the network layer object; storing the original attribute information to an object result file set; constructing a forwarding attribute set of the network layer object based on original attribute information in the object result file set, and naming the object forwarding attribute file according to a preset file name format to obtain an object forwarding attribute file comprising the forwarding attribute set; the forwarding attribute set is used for indicating a mode of forwarding information of the network layer object to the backend network layer object; the object forwarding attribute file is stored to the routing result file set, the problem that the query of a network layer forwarding path based on cloud platform configuration cannot be realized in the traditional technology can be solved, and convenience is improved.
It should be understood that, although the steps in the flowcharts related to the embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the application also provides a network layer identification device for realizing the network layer identification method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the method, so the specific limitations in one or more embodiments of the network layer identification device provided below may refer to the limitations on the network layer identification method in the foregoing, and details are not described here.
In one embodiment, as shown in fig. 3, there is provided a network layer identification apparatus 300, including: an object indexing module 302 and an object handling module 304, wherein:
the object index module 302 is configured to identify information of a domain name to be queried in input information to generate domain name index information; and inquiring an object forwarding attribute file matched with the domain name index information from the routing result file set through an object index function.
The object processing module 304 is configured to invoke an object processing function matched with the object forwarding attribute file, and determine a forwarding attribute set of the target network layer object corresponding to the object forwarding attribute file from the object forwarding attribute file; and acquiring the object indication information of the back-end network layer object corresponding to the target network layer object from the object forwarding attribute file through the object processing function.
The object index module 302 is further configured to generate new domain name index information based on the object indication information of the backend network layer object, return to the object index function, and query an object forwarding attribute file matched with the domain name index information from the routing result file set to continue iteration until a network layer identification stop condition is met, and stop iteration.
The object processing module 304 is further configured to obtain network layer forwarding path information corresponding to the domain name to be queried based on the forwarding attribute set of the target network layer object determined by each iteration.
In one embodiment, the object indexing module 302 is further configured to input the input information to an entry function, and identify the input information through the entry function; under the condition that the information of the domain name to be inquired is identified, domain name index information is generated based on the information of the domain name to be inquired; under the condition that the network address to be inquired is identified, original attribute information of a network layer object matched with the network address to be inquired is searched from the object result file set; the original attribute information is the attribute information of the network layer object acquired from the cloud platform; the cloud platform is used for configuring the network layer object.
In an embodiment, the object index module 302 is further configured to use the domain name index information as an input of a domain name processing function, and adjust the domain name index information based on a domain name type in the domain name index information identified by the domain name processing function; and inquiring the object forwarding attribute file matched with the adjusted domain name index information from the routing result file set through an object index function.
In an embodiment, the object indexing module 302 is further configured to use the domain name index information as an input of an object indexing function, and determine an object forwarding attribute file matching the domain name index information from the routing result file set by matching the domain name index information with file row information in the object forwarding attribute file.
In an embodiment, the object indexing module 302 is further configured to determine object field information from a file name of the object forwarding property file; and determining an object processing function corresponding to the target network layer object represented by the object field information.
In one embodiment, the backend forwarding object information includes a network address of the backend network layer object; the object indexing module 302 is further configured to generate new domain name indexing information based on the network address of the backend network layer object; under the condition that an object forwarding attribute file matched with the domain name index information generated based on the network address does not exist in the routing result file set, inquiring a routing object file matched with the domain name index information generated based on the network address from the routing object file set through an object index function; acquiring domain name information of a rear-end forwarding object from a routing object file based on a network address of the rear-end forwarding object; and generating new domain name index information based on the domain name information of the rear-end network layer object, returning to pass through an object index function, and inquiring an object forwarding attribute file matched with the domain name index information from the routing result file set to continue iteration until a network layer identification stop condition is met and the iteration is stopped.
In one embodiment, the object indexing module 302 is further configured to obtain original attribute information of the network layer object from a cloud platform configuring the network layer object; storing the original attribute information to an object result file set; constructing a forwarding attribute set of the network layer object based on original attribute information in the object result file set, and naming the object forwarding attribute file according to a preset file name format to obtain an object forwarding attribute file comprising the forwarding attribute set; the forwarding attribute set is used for indicating a mode of forwarding information of the network layer object to the backend network layer object; and storing the object forwarding attribute file to a routing result file set.
The modules in the network layer identification device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, an Input/Output interface (I/O for short), and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is for storing an object forwarding property file. The input/output interface of the computer device is used for exchanging information between the processor and an external device. The communication interface of the computer device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a network layer identification method.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer apparatus includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input device. The processor, the memory and the input/output interface are connected by a system bus, and the communication interface, the display unit and the input device are connected by the input/output interface to the system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The input/output interface of the computer device is used for exchanging information between the processor and an external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a network layer identification method. The display unit of the computer equipment is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device, the display screen can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configurations shown in fig. 4 and 5 are merely block diagrams of some configurations relevant to the present disclosure, and do not constitute a limitation on the computing devices to which the present disclosure may be applied, and that a particular computing device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the above-described method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the relevant laws and regulations and standards of the relevant country and region.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include a Read-Only Memory (ROM), a magnetic tape, a floppy disk, a flash Memory, an optical Memory, a high-density embedded nonvolatile Memory, a resistive Random Access Memory (ReRAM), a Magnetic Random Access Memory (MRAM), a Ferroelectric Random Access Memory (FRAM), a Phase Change Memory (PCM), a graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A network layer identification method, the method comprising:
identifying information of a domain name to be inquired in input information to generate domain name index information;
inquiring an object forwarding attribute file matched with the domain name index information from a routing result file set through an object index function;
calling an object processing function matched with the object forwarding attribute file, and determining a forwarding attribute set of a target network layer object corresponding to the object forwarding attribute file from the object forwarding attribute file;
acquiring object indication information of a back-end network layer object corresponding to the target network layer object from the object forwarding attribute file through the object processing function;
generating new domain name index information based on the object indication information of the rear-end network layer object, returning to the passing object index function, and inquiring an object forwarding attribute file matched with the domain name index information from a routing result file set to continue iteration until a network layer identification stop condition is met and iteration is stopped;
and obtaining network layer forwarding path information corresponding to the domain name to be queried based on the forwarding attribute set of the target network layer object determined by each iteration.
2. The method according to claim 1, wherein the identifying information of the domain name to be queried in the input information to generate domain name index information comprises:
inputting input information into an entry function, and identifying the input information through the entry function;
under the condition that the information of the domain name to be inquired is identified, domain name index information is generated based on the information of the domain name to be inquired;
the method further comprises the following steps:
under the condition that the network address to be inquired is identified, original attribute information of a network layer object matched with the network address to be inquired is searched from the object result file set; the original attribute information is the attribute information of the network layer object acquired from the cloud platform; the cloud platform is used for configuring the network layer object.
3. The method according to claim 1, wherein said querying, by an object index function, an object forwarding attribute file matching the domain name index information from a set of routing result files comprises:
taking the domain name index information as the input of a domain name processing function, and adjusting the domain name index information based on the domain name type in the domain name index information identified by the domain name processing function;
and inquiring the object forwarding attribute file matched with the adjusted domain name index information from the routing result file set through an object index function.
4. The method according to claim 1, wherein the querying, by an object index function, an object forwarding attribute file matching the domain name index information from a set of routing result files comprises:
and taking the domain name index information as the input of an object index function, and determining an object forwarding attribute file matched with the domain name index information from a routing result file set by matching the domain name index information with file line information in the object forwarding attribute file.
5. The method according to claim 1, further comprising, after querying an object forwarding attribute file matching the domain name index information from a set of routing result files through an object index function, the following steps:
determining object field information from the file name of the object forwarding attribute file;
and determining an object processing function corresponding to the target network layer object represented by the object field information.
6. The method of claim 1, wherein the back-end forwarding object information includes a network address of a back-end network layer object; generating new domain name index information based on the object indication information of the rear-end network layer object, returning to the passing object index function, and inquiring an object forwarding attribute file matched with the domain name index information from a routing result file set to continue iteration until a network layer identification stop condition is met, wherein the step of stopping iteration comprises the following steps:
generating new domain name index information based on the network address of the backend network layer object;
under the condition that an object forwarding attribute file matched with domain name index information generated based on the network address does not exist in a routing result file set, inquiring a routing object file matched with the domain name index information generated based on the network address from a routing object file set through an object index function;
acquiring domain name information of a rear-end forwarding object from the routing object file based on the network address of the rear-end forwarding object;
and generating new domain name index information based on the domain name information of the rear-end network layer object, returning to the passing object index function, and inquiring an object forwarding attribute file matched with the domain name index information from a routing result file set to continue iteration until a network layer identification stop condition is met and iteration is stopped.
7. The method according to any one of claims 1 to 6, characterized in that the method further comprises a step of obtaining a set of routing result files; the step of obtaining the routing result file set comprises the following steps:
acquiring original attribute information of a network layer object from a cloud platform configured with the network layer object;
storing the original attribute information to an object result file set;
constructing a forwarding attribute set of the network layer object based on original attribute information in the object result file set, and naming the object forwarding attribute file according to a preset file name format to obtain an object forwarding attribute file comprising the forwarding attribute set; the forwarding attribute set is used for indicating a mode of forwarding information of the network layer object to the backend network layer object;
and storing the object forwarding attribute file to a routing result file set.
8. An apparatus for network layer identification, the apparatus comprising:
the object index module is used for identifying the information of the domain name to be inquired in the input information so as to generate domain name index information; inquiring an object forwarding attribute file matched with the domain name index information from a routing result file set through an object index function;
the object processing module is used for calling an object processing function matched with the object forwarding attribute file and determining a forwarding attribute set of a target network layer object corresponding to the object forwarding attribute file from the object forwarding attribute file; acquiring object indication information of a back-end network layer object corresponding to the target network layer object from the object forwarding attribute file through the object processing function;
the object index module is further configured to generate new domain name index information based on the object indication information of the backend network layer object, return to the passing object index function, and query an object forwarding attribute file matched with the domain name index information from a routing result file set to continue iteration until a network layer identification stop condition is met, and stop iteration;
the object processing module is further configured to obtain network layer forwarding path information corresponding to the domain name to be queried based on the forwarding attribute set of the target network layer object determined by each iteration.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202210942661.0A 2022-08-08 2022-08-08 Network layer identification method and device, computer equipment and storage medium Active CN115022242B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210942661.0A CN115022242B (en) 2022-08-08 2022-08-08 Network layer identification method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210942661.0A CN115022242B (en) 2022-08-08 2022-08-08 Network layer identification method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115022242A true CN115022242A (en) 2022-09-06
CN115022242B CN115022242B (en) 2022-11-18

Family

ID=83065925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210942661.0A Active CN115022242B (en) 2022-08-08 2022-08-08 Network layer identification method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115022242B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479496A (en) * 2002-08-27 2004-03-03 华为技术有限公司 Method of searching next route skip in three-layer network
CN102025793A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method and system and DNS in IP network
CN113014687A (en) * 2021-02-20 2021-06-22 上海牙木通讯技术有限公司 DNS iterative query method, DNS server, system and computer readable storage medium
CN113726907A (en) * 2021-09-15 2021-11-30 腾讯科技(深圳)有限公司 Routing processing method, network element equipment, device and readable storage medium
US20210392165A1 (en) * 2020-06-16 2021-12-16 Cisco Technology, Inc. Application protectability schemes for enterprise applications
CN114189494A (en) * 2021-12-16 2022-03-15 牙木科技股份有限公司 Domain name resolution method, DNS server and readable storage medium
CN114500369A (en) * 2019-01-07 2022-05-13 华为技术有限公司 Method, equipment and system for controlling routing iteration
WO2022100060A1 (en) * 2020-11-12 2022-05-19 中国科学院声学研究所 Message routing and forwarding method changing destination address using associated channel

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479496A (en) * 2002-08-27 2004-03-03 华为技术有限公司 Method of searching next route skip in three-layer network
CN102025793A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method and system and DNS in IP network
CN114500369A (en) * 2019-01-07 2022-05-13 华为技术有限公司 Method, equipment and system for controlling routing iteration
US20210392165A1 (en) * 2020-06-16 2021-12-16 Cisco Technology, Inc. Application protectability schemes for enterprise applications
WO2022100060A1 (en) * 2020-11-12 2022-05-19 中国科学院声学研究所 Message routing and forwarding method changing destination address using associated channel
CN113014687A (en) * 2021-02-20 2021-06-22 上海牙木通讯技术有限公司 DNS iterative query method, DNS server, system and computer readable storage medium
CN113726907A (en) * 2021-09-15 2021-11-30 腾讯科技(深圳)有限公司 Routing processing method, network element equipment, device and readable storage medium
CN114189494A (en) * 2021-12-16 2022-03-15 牙木科技股份有限公司 Domain name resolution method, DNS server and readable storage medium

Also Published As

Publication number Publication date
CN115022242B (en) 2022-11-18

Similar Documents

Publication Publication Date Title
US20210314354A1 (en) Techniques for determining threat intelligence for network infrastructure analysis
CN107798038B (en) Data response method and data response equipment
US8713182B2 (en) Selection of a suitable node to host a virtual machine in an environment containing a large number of nodes
CN109891424A (en) The link between identifier is established in the case where non-disclosure identification information specific
US9495420B2 (en) Distributed feature collection and correlation engine
US20200372007A1 (en) Trace and span sampling and analysis for instrumented software
US20120290555A1 (en) Method, System and Apparatus of Hybrid Federated Search
US20180260469A1 (en) Fast indexing and searching of encoded documents
US20140372472A1 (en) Data augmentation
CN112445700B (en) Test method and device
CA2802458C (en) Synchronizing endpoint data stores having disparate schemas
CN108683668A (en) Resource checksum method, apparatus, storage medium and equipment in content distributing network
US10496645B1 (en) System and method for analysis of a database proxy
US20170154073A1 (en) System and method for retrieving data
US20210042311A1 (en) Dynamic prioritization of attributes to determine search space size of each term, then index on those sizes as attributes
CN113489788B (en) Data route control and data analysis processing method and device, equipment and medium
WO2023236756A1 (en) Multi-tenant data database allocation method, and program product and electronic device
US10171606B2 (en) System and method for providing data as a service (DaaS) in real-time
CN113507475A (en) Cross-domain access method and device
JP2017503371A (en) Method and apparatus for sharing environmental context
CN115022242B (en) Network layer identification method and device, computer equipment and storage medium
CN113010904A (en) Data processing method and device and electronic equipment
WO2023108832A1 (en) Network space map generation method and apparatus, and device and storage medium
CN113704120A (en) Data transmission method, device, equipment and storage medium
JP2020514877A (en) System and method for providing cross-network event attribution

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