CN114301837A - Routing data processing method and device - Google Patents

Routing data processing method and device Download PDF

Info

Publication number
CN114301837A
CN114301837A CN202111545160.0A CN202111545160A CN114301837A CN 114301837 A CN114301837 A CN 114301837A CN 202111545160 A CN202111545160 A CN 202111545160A CN 114301837 A CN114301837 A CN 114301837A
Authority
CN
China
Prior art keywords
routing
address
domain name
route
network
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.)
Pending
Application number
CN202111545160.0A
Other languages
Chinese (zh)
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.)
Hillstone Networks Co Ltd
Original Assignee
Hillstone Networks 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 Hillstone Networks Co Ltd filed Critical Hillstone Networks Co Ltd
Priority to CN202111545160.0A priority Critical patent/CN114301837A/en
Publication of CN114301837A publication Critical patent/CN114301837A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a routing data processing method and a routing data processing device. Wherein, the method comprises the following steps: determining an address route of a routing network according to the corresponding relation between the domain name and the address of a target server accessed by a client; distributing the address route to all routing devices in the routing network by using a dynamic routing protocol; and receiving an access request of the client through the target routing equipment, and sending the access request to the target server according to the address route, wherein the routing equipment is any routing equipment in the routing network. The invention solves the technical problems of complex flow and low efficiency in the related technology that the routing data is processed by using the routing redistribution technology through the middle three-layer network equipment.

Description

Routing data processing method and device
Technical Field
The invention belongs to the field of data processing, and particularly relates to a routing data processing method and device.
Background
The routes are divided into manually configured static routes and dynamic routes generated by a routing algorithm. The dynamic routing can be dynamically generated through the exchange of routing information only by carrying out protocol initial configuration, and can be changed by self-adapting to the topology. Common dynamic Routing protocols include Open Shortest Path First (OSPF), Border Gateway Protocol (BGP), Intermediate-to-Intermediate (ISIS) system, Routing Information Protocol (RIP), and the like.
In order to realize the cooperative work of multiple routing protocols, the three-layer network device may use a route redistribution (route redistribution) technology to advertise the learned route of one routing protocol through another routing protocol, so that all network devices in the network topology can be connected.
When a user accesses a certain website through a Domain Name at a client, the client needs to first obtain an IP (Internet Protocol Address) corresponding to the Domain Name by using a DNS (Domain Name System) technology, and then use the IP to construct a data packet to access a target website. When a data packet passes through a three-layer network device, the forwarding of the data packet can be realized only if the three-layer network device has a route related to the IP.
Static routes to the IP can be configured on the three-layer network equipment, and the IP data packet forwarding is realized. However, some domain names may correspond to a plurality of IP addresses, and these IP addresses are not fixed and are updated at regular intervals. The way to configure static routes is less efficient.
After configuring a domain name routing rule in the prior art, the domain name is periodically subjected to DNS analysis, and an actual route is generated according to the analyzed IP.
The main drawbacks of the prior art are: (1) the domain name is regularly subjected to DNS analysis and routing update, and the problems caused by the DNS analysis are as follows: during periodic DNS resolution, the IP corresponding to the domain name has changed, but the route is not updated. The traffic loss can be caused in the time interval, and the service is influenced; (2) the configured domain name routing rule can only take effect in the current network equipment and can not be linked with other network equipment. When the network topology is large, the workload of management configuration is large and errors are easy to occur.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for processing routing data, which are used for at least solving the technical problems of complex flow and low efficiency in the related technology that routing data are processed by using a routing redistribution technology through intermediate three-layer network equipment.
According to an aspect of an embodiment of the present invention, there is provided a method for processing routing data, in which an address route of a routing network is determined according to a correspondence between a domain name and an address of a target server accessed by a client; distributing the address route to all routing devices in the routing network using a dynamic routing protocol; and receiving an access request of the client through a target routing device, and sending the access request to the target server according to the address route, wherein the target routing device is any routing device in a routing network.
Optionally, before distributing the address route to all routing devices in the routing network by using a dynamic routing protocol, the method further includes: configuring a domain name route of the domain name, wherein the domain name route comprises the domain name and a target address to which a target server accessing the domain name needs to jump; and distributing the domain name route to all routing devices in the routing network through the dynamic routing protocol.
Optionally, before determining an address route of the routing network according to a correspondence between a domain name and an address of a target server accessed by the client, the method further includes: initiating a domain name resolution request to a resolution server through the client, wherein the domain name resolution request is used for requesting the resolution server to perform resolution on a domain name of a target server corresponding to the resolution server to obtain a corresponding address; acquiring a response message of the resolution server to the domain name resolution request; and determining the corresponding relation between the domain name and the address according to the response message, wherein the response message comprises the domain name and the corresponding address.
Optionally, determining the address route of the routing network according to the correspondence between the domain name and the address of the target server accessed by the client includes: and determining the address route of the routing network according to the domain name route and the address corresponding to the domain name.
Optionally, after distributing the address route to all routing devices in the routing network by using a dynamic routing protocol, the method further includes: monitoring a response message of the analysis server; acquiring a new response message under the condition that the analysis server sends the new response message is monitored; determining a new corresponding relation according to the new response message; and distributing the new corresponding relation to all routing devices in the routing network through a dynamic routing protocol.
Optionally, distributing the new correspondence to all routing devices in the routing network through a dynamic routing protocol includes: determining the difference between the new corresponding relation and the corresponding relation, wherein the difference comprises a new address and a deleted address corresponding to the domain name; and distributing the difference to all routing devices in the routing network through a dynamic routing protocol, wherein the routing devices generate the new corresponding relation according to the difference and the stored corresponding relation under the condition of receiving the difference.
Optionally, receiving, by a target routing device, an access request of the client, and sending the access request to the target server according to the address route includes: forwarding the access request to a gateway device of the routing network via address routing in the target routing device, wherein all routing networks further include the gateway device; forwarding, by the gateway device, the access request to the target address, where the target address is used to send the access request to the target server.
According to another aspect of the embodiments of the present invention, there is also provided a routing data processing apparatus, including: the determining module is used for determining the address route of the routing network according to the corresponding relation between the domain name and the address of the target server accessed by the client; the distribution module distributes the address route to all routing devices in the routing network by using a dynamic routing protocol; and the sending module is used for receiving an access request of the client through target routing equipment and sending the access request to the target server according to the address route, wherein the routing equipment is any routing equipment in a routing network.
According to another aspect of the embodiments of the present invention, there is also provided a processor, where the processor is configured to execute a program, where the program executes the method for processing routing data described in any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided a computer storage medium, where the computer storage medium includes a stored program, and when the program runs, the apparatus where the computer storage medium is located is controlled to execute any one of the above-mentioned routing data processing methods.
In the embodiment of the invention, the address route of the routing network is determined according to the corresponding relation between the domain name and the address of the target server accessed by the client; distributing the address route to all routing devices in the routing network by using a dynamic routing protocol; the method comprises the steps that an access request of a client is received through a target routing device, the access request is sent to a target server according to address routing, the target routing device is any routing device in a routing network, and the purpose that all routing devices in the network update address routing corresponding to domain names in time is achieved through a mode that the address routing is dynamically sent to all routing devices in the routing network, so that the technical effect of improving the data processing efficiency of three-layer network devices is achieved, and the technical problems that in the related art, routing data are processed through an intermediate three-layer network device by using a routing redistribution technology, the process is complex, and the efficiency is low are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method of routing data processing according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the overall framework of the system according to an embodiment of the invention;
fig. 3 is a schematic diagram of an exemplary three-layer network device architecture according to an application scenario of an embodiment of the present invention;
fig. 4 is a schematic diagram of a routing data processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present invention, there is provided a method embodiment of a method of routing data processing, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
Fig. 1 is a flowchart of a method for processing routing data according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step S102, determining the address route of the routing network according to the corresponding relation between the domain name and the address of the target server accessed by the client;
step S104, distributing the address route to all routing devices in the routing network by using a dynamic routing protocol;
and step S106, receiving an access request of the client through the target routing equipment, and sending the access request to the target server according to the address route, wherein the routing equipment is any routing equipment in the routing network.
Through the steps, the address route of the routing network is determined according to the corresponding relation between the domain name and the address of the target server accessed by the client; distributing the address route to all routing devices in the routing network by using a dynamic routing protocol; the access request of the client is received through the target routing equipment, the access request is sent to the target server according to the address route, wherein the routing equipment is any routing equipment in the routing network, and the purpose of timely updating the address route corresponding to the domain name by all the routing equipment in the network is achieved by dynamically sending the address route to all the routing equipment in the routing network, so that the technical effect of improving the data processing efficiency of three-layer network equipment is achieved, and the technical problems that in the related technology, routing data are processed by using a route re-distribution technology through middle three-layer network equipment, the process is complex, and the efficiency is low are solved.
The executing agent of the above steps may be a control device or a processing device, and the executing agent may control a routing network to which the client is connected. One or more addresses corresponding to the domain name may be provided, and the domain name and the corresponding address may not be fixed. The corresponding relation between the domain name and the address can be obtained by sending a domain name resolution request to a resolution server by a client, sending a response message by the resolution server, determining an address route according to the corresponding relation between the domain name and the address, and accessing a target server by the client according to the address route. The address route can be distributed to all the routing devices in the routing network, in order to facilitate communication among the routing devices, all the routing devices in the routing network can be configured with the same dynamic routing protocol, and because the adjacent routing devices (namely, the adjacent routing devices) can directly communicate, the address route can be sent to the adjacent routing devices by the routing devices, and then the address route of the domain name is distributed to all the routing devices in the network in a mode of being sent to the adjacent routing devices of the adjacent routing devices by the adjacent routing devices. Compared with the prior art that the policy routing is set on each routing device, the address routing can be automatically, quickly and efficiently distributed to all the routing devices through the dynamic routing protocol in a mode of dynamically acquiring the address routing through the policy routing, the problems of complex flow and low efficiency caused by the fact that the routing is set on the routing devices one by one are solved, and the problem that the policy routing mode is difficult to realize under the condition that more routing devices exist in a routing network, namely the routing network has larger topology is solved.
For the corresponding relation between the domain name and the address in the response message sent by the resolution server, because the address corresponding to the domain name is not fixed, the corresponding relation can also be distributed to all routing devices in the network by using a dynamic routing protocol, the corresponding relation between the domain name and the address in the response message can also be updated by monitoring, if a new response message of the domain name is monitored, the corresponding relation between the domain name and the address in the response message can be updated to the network routing device by using the dynamic routing protocol, and therefore the address routing in the network routing device is updated. The method solves the problems that in the prior art, the corresponding relation between the domain name and the address is regularly updated, when the network topology structure is large, the routing is not updated timely in the scene that the domain name and the corresponding address change frequently, and the management and maintenance of routing equipment are complicated.
In addition, compared with the prior art that the domain name is regularly subjected to DNS analysis, and an actual route is generated according to the analyzed IP, the problem of time vacuum can be solved, wherein the time vacuum can be caused by periodical DNS analysis, the address corresponding to the domain name possibly changes during the DNS analysis, but a new address route cannot be updated to the routing equipment, so that the time difference generated when the address route is not updated timely is caused.
The dynamic Routing Protocol may be OSPF (Open Shortest Path First), BGP (Border Gateway Protocol), ISIS (ISIS-Intermediate to Intermediate system), and RIP (Routing Information Protocol), where when an address route is distributed to all Routing devices in a Routing network by using the dynamic Routing Protocol, it is First ensured that all the Routing devices have the same dynamic Routing Protocol, and the address route can be distributed to all the Routing devices by using the dynamic Routing Protocol.
The target routing device may be any routing device in a routing network, the target routing device is connected to a client, receives an access request from the client through the target routing device, sends the access request to the target server according to the address route, and when the client sends a data request to the server, the data request may first access the target routing device, enter the routing network through the target routing device, jump to a gateway device of the routing network through a plurality of routing devices in the routing network, and send the data request to the server according to the address route through the gateway device. The method achieves the purpose that all the routing devices in the network update the address routes corresponding to the domain names in time by dynamically sending the address routes to all the routing devices in the routing network, achieves the technical effect of improving the data processing efficiency of the three-layer network devices, and further solves the technical problems of complex flow and low efficiency in the prior art that the routing data is processed by using a route redistribution technology through the middle three-layer network devices.
Optionally, before distributing the address route to all routing devices in the routing network by using a dynamic routing protocol, the method further includes: configuring domain name routing of a domain name, wherein the domain name routing comprises the domain name and a target address to which a target server accessing the domain name needs to jump; the domain name route is distributed to all routing devices in the routing network via a dynamic routing protocol.
Before address routing is distributed to all routing devices in a routing network by using a dynamic routing protocol, domain name routing of a domain name can be configured, and next hop address information of the domain name routing and the domain name routing can be configured, so that when a device or a user terminal carries out a domain name access request, the access request of the client terminal can be sent to a target server through one hop or multiple hops by using a next hop address gateway of the domain name routing. In order to facilitate information transfer in the routing device or route hopping between routing devices on the network, the same dynamic routing protocol may be configured in the routing devices.
The domain name route can also be distributed to adjacent neighbor routing devices in the routing network through a dynamic routing protocol configured in the routing device, and the domain name route can be distributed to all the routing devices in the routing network by the neighbor routing devices in a mode of being redistributed to the neighbor routing devices of the neighbor routing devices.
Specifically, in the routing module, a domain name based routing rule (abbreviated as domain name routing) is configured, where a domain name and a next hop ip address need to be specified. The routing module informs the data processing module of the domain name information. Based on the routing redistribution technology, in the dynamic routing module, a dynamic routing protocol is configured to redistribute the domain name routing. The dynamic routing module informs the re-distribution domain name routing information to the routing module.
The domain name routing is sent to all the routing devices in the routing network by using a dynamic routing protocol, so that the purpose of synchronizing the domain name routing of the domain name to all the network devices in the network topology is achieved, and the technical effect of improving the communication speed of the domain name routing of the network devices is achieved.
Optionally, before determining the address route of the routing network according to the correspondence between the domain name and the address of the target server accessed by the client, the method further includes: initiating a domain name resolution request to a resolution server through a client, wherein the domain name resolution request is used for requesting the resolution server to perform resolution on a domain name of a target server to obtain a corresponding address; acquiring a response message of an analysis server to a domain name analysis request; and determining the corresponding relation between the domain name and the address according to the response message, wherein the response message comprises the domain name and the corresponding address.
The resolution server can respond to a domain name resolution request sent by the client, resolve the domain name sent by the client into an address corresponding to the domain name, when the client accesses the address according to the domain name, the domain name resolution is required to be carried out on the domain name to obtain a corresponding network address, a domain name resolution request can be initiated to the resolution server through the client, the domain name resolution request of the client jumps to the gateway device of the routing network through the target routing device in the routing network by single or multiple jumps, the gateway device can enter the public network through the next hop address of the gateway, and sends the domain name resolution request to the resolution server through single or multiple network address jumps on the public network, the resolution server can resolve the domain name of the target server in the domain name resolution request to obtain the corresponding network address, and a response message with a corresponding relationship between the domain name and the address of the domain name resolution can be sent out.
Optionally, determining an address route of the routing network according to a correspondence between a domain name and an address of the client accessing the target server includes: and determining the address route of the routing network according to the domain name route and the address corresponding to the domain name.
And determining an address route of the routing network according to the corresponding relation between the domain name and the address of the target server accessed by the client, wherein the address route utilizes network equipment which can be used for the client to access or transmit data to the target server.
Optionally, after distributing the address route to all the routing devices in the routing network by using a dynamic routing protocol, the method further includes: monitoring a response message of the analysis server; acquiring a new response message under the condition that the analysis server sends the new response message is monitored; determining a new corresponding relation according to the new response message; and distributing the new corresponding relation to all routing devices in the routing network through a dynamic routing protocol.
The monitoring device can determine a new corresponding relation according to a new influence message, namely the corresponding relation between the domain name of the target server and the address corresponding to the domain name, and can distribute the new corresponding relation to the routing device in the routing network through a dynamic routing protocol under the condition that the monitoring device monitors that the analysis server sends a new response message if the client initiates a new domain name analysis request. And after receiving the new corresponding relation, the routing equipment in the routing network updates the stored address route according to the new corresponding relation.
For example, after a client initiates a DNS request for domain name resolution, based on a DNS snooping (also referred to as the above monitoring device) technique, the data processing module may monitor a DNS response packet returned by the DNS server, and obtain a corresponding relationship between a domain name and an IP. And if the domain name is configured to be the domain name route, notifying the routing module of the IP corresponding to the domain name. After receiving the IP information corresponding to the domain name, the routing module generates an actual IP route corresponding to the domain name route using the IP information and notifies the dynamic routing module of the actual IP route. The dynamic routing module advertises these IP routes to the dynamic routing protocol's neighbors, which can generate routes to the domain IP throughout the network topology.
The corresponding relation of the response message of the resolution server is distributed to all the routing devices in the network, so that the purpose of distributing the corresponding relation of the domain name to the routing devices in the whole network topology is achieved, and the technical effect of improving the connectivity of all the network devices in the three-layer network device to the domain name address is achieved.
Optionally, distributing the new correspondence to all routing devices in the routing network via a dynamic routing protocol includes: determining the new corresponding relation and the difference between the corresponding relations, wherein the difference comprises a new address and a deleted address corresponding to the domain name; and distributing the difference to all routing devices in the routing network through a dynamic routing protocol, wherein the routing devices generate a new corresponding relation according to the difference and the stored corresponding relation under the condition of receiving the difference.
In the process of distributing the new corresponding relation to all the routing devices in the routing network through the dynamic routing protocol, the difference between the correspondence of the domain name and the address for domain name resolution and the original correspondence may also be compared, the difference can be that the new corresponding relation in the new response message is added to the original corresponding relation, or the original corresponding relation does not exist on the new corresponding relation, or the new corresponding relation is the same as the original corresponding relation, if the new corresponding relation in the new response message is added to the original corresponding relation, a new address route can be generated, if the original corresponding relation does not exist in the corresponding relation of the new response message, the address route of the corresponding relation which is not stored in the new corresponding relation of the original corresponding relation can be deleted, if the new corresponding relation is the same as the original corresponding relation, no processing can be carried out, and therefore the purpose of updating the address route in the network equipment is achieved.
Specifically, after the client initiates a new DNS request for domain name resolution, the data processing module continues to monitor a DNS response packet returned by the DNS server, and obtains a corresponding relationship between the domain name and the IP. If the domain name is configured as domain name routing and the IP information corresponding to the domain name is changed, the data processing module notifies the routing module of the IP information after updating the domain name. Because the IP address corresponding to the domain name is not unique, the IP information may include a plurality of IP addresses, and after receiving the new IP information corresponding to the domain name, the routing module compares the original IP information corresponding to the domain name, and processes the IP information according to three conditions: (1) for the IP addresses in the new IP information but not in the original IP information, generating IP routes corresponding to the IP addresses; (2) for the IP addresses in the original IP information but not in the new IP information, deleting the IP routes corresponding to the IP addresses; (3) and for the IP addresses in the new IP information and the original IP information, no processing is carried out, and the IP routes corresponding to the IP addresses are reserved.
The corresponding relation of the domain name is updated to the routing equipment in the network in time through the corresponding relation of the new response message of the monitoring and analyzing server, the updating efficiency of the corresponding relation of the domain name and the address of the routing equipment is improved, and the technical effect of improving the processing speed of network service data is achieved.
Optionally, receiving, by the target routing device, an access request of the client, and sending the access request to the target server according to the address route includes: forwarding the access request to a gateway device of a routing network by address routing in a target routing device, wherein the routing network further comprises the gateway device; and forwarding the access request to a target address through the gateway equipment, wherein the target address is used for sending the access request to a target server.
The target routing device may be any routing device connected to the client, and is configured to complete a routing address hopping function of a request or a response received from the current network client, where the target routing device receives a data access request from the client, may send the access request to the gateway device via the routing device in the routing network according to an address route in the target routing device, and may send the access request from the client to a target address through the gateway device, where the target address may be a next hop address where the routing network sends the access request to the Internet in the public network, and then sends the access request to the target server through one or more hops on the public network.
It should be noted that the present application also provides an alternative implementation, and the details of the implementation are described below.
The present embodiment provides a domain name route generation method based on DNS Snooping, and aims to provide a domain name route generation method based on DNS Snooping, which is convenient for management and maintenance, and is used for solving the problem that the management and maintenance of a middle three-layer network device route are complicated in a scenario where a network topology is large and an IP (Internet Protocol Address) corresponding to a domain name frequently changes.
The present embodiment relates to a routing module, a dynamic routing module, and a data processing module, and fig. 2 is a schematic diagram of a system overall framework according to the embodiment of the present invention, and as shown in fig. 2, a specific processing procedure of the present embodiment is as follows:
(1) in the routing module, a domain name based routing rule (abbreviated as domain name routing) is configured, wherein a domain name and a next hop ip address need to be specified.
(2) The routing module informs the data processing module of the domain name information.
(3) Based on the routing redistribution technology, in the dynamic routing module, a dynamic routing protocol is configured to redistribute the domain name routing.
(4) The dynamic routing module informs the re-distribution domain name routing information to the routing module.
(5) After a client initiates a Domain Name System (DNS) request for Domain Name resolution, based on a DNS snooping technique, a data processing module may monitor a DNS response packet returned by a DNS server, and obtain a correspondence between a Domain Name and an IP. And if the domain name is configured to be the domain name route, notifying the routing module of the IP corresponding to the domain name.
(6) After receiving the IP information corresponding to the domain name, the routing module generates an actual IP route corresponding to the domain name route using the IP information and notifies the dynamic routing module of the actual IP route.
(7) The dynamic routing module advertises these IP routes to the dynamic routing protocol's neighbors, which can generate routes to the domain IP throughout the network topology.
(8) After the client initiates a new DNS request domain name resolution, the data processing module continues to monitor a DNS response message returned by the DNS server to acquire the corresponding relation between the domain name and the IP. If the domain name is configured as a domain name route and the IP information corresponding to the domain name is changed, the data processing module notifies the route module of the IP information after updating the domain name, and the IP information may include a plurality of IP addresses due to the fact that the IP address corresponding to the domain name is not unique.
(9) After receiving the new IP information corresponding to the domain name, the routing module compares the original IP information corresponding to the domain name, and processes the new IP information according to three conditions:
a) for the IP addresses in the new IP information but not in the original IP information, generating IP routes corresponding to the IP addresses;
b) for the IP addresses in the original IP information but not in the new IP information, deleting the IP routes corresponding to the IP addresses;
c) for the IP addresses in the new IP information and the original IP information, no processing is carried out, and IP routes corresponding to the IP addresses are reserved;
(10) the routing module will inform the information of the added IP route and the deleted IP route to the dynamic routing module
(11) The dynamic routing module will announce the changed IP routing information to the neighbors of the dynamic routing protocol, and the devices in the whole network topology will update the IP routing corresponding to the domain name.
(12) And when the data processing module monitors a DNS response message returned by the DNS, the operations from (8) to (11) are continuously repeated.
The embodiment applies the following scenarios:
fig. 3 is a schematic diagram of an architecture of a three-layer network device according to an exemplary application scenario, where, as shown in fig. 3, the three-layer network device A, B, C, D, E both enable an OSPF (i.e., OSPF) protocol, and two adjacent devices are OSPF neighbors, for example, the three-layer network devices a, B, A, and C are OSPF neighbors.
Configuring three-layer network equipment A: domain route www.abcd.com 10.1.1.8; (i.e., the above-described domain name routing) while the configuration redistributes the domain name routing into ospf protocol neighbors.
When the client 1 wants to access www.abcd.com, a DNS request message is first sent to the DNS server (i.e. the above-mentioned resolution server), and the DNS server returns a DNS response message to the client 1, where the DNS response message includes IP information (IP 1: 61.135.169.121, IP2:61.135.169.125) corresponding to www.abcd.com.
When the DNS response packet passes through the three-layer network device a, the three-layer network device a generates routes of ip1 and ip2 (ip1 corresponds to route1, ip2 corresponds to route2), and simultaneously notifies the two pieces of route information to other ospf neighbors B and C, the B and C notify the route information to D and E, and the three-layer network device A, B, C, D, E generates routes of ip1 and ip 2.
When the destination IP of the data packet sent by the client 1 is IP1 or IP2, the three-layer network device D will forward it to C, C will further forward the data packet to a, and the device a will send the data packet to the public network through the next hop 10.1.1.8, and finally send the data packet to the HTTP server of www.abcd.com through the Internet (network).
According to the method and the device, under the scene that the network topology is large and the domain name corresponds to the IP frequent change, the management and configuration work of the route can be effectively reduced, so that the stability and the usability of the network are improved.
The key of the embodiment is to provide a method for generating a domain name route based on a DNS snooping technology and a method for dynamically learning the domain name route based on a dynamic route redistribution technology.
Fig. 4 is a schematic diagram of a routing data processing apparatus according to an embodiment of the present invention, and as shown in fig. 4, according to another aspect of the embodiment of the present invention, there is also provided a routing data processing apparatus including: a determination module 42, a distribution module 44, and a sending module 46, which are described in detail below.
A determining module 42, for determining the address route of the routing network according to the corresponding relationship between the domain name and the address of the target server accessed by the client; a distribution module 44, connected to the determination module 42, for distributing the address route to all the routing devices in the routing network by using a dynamic routing protocol; and a sending module 46, connected to the distributing module 44, for receiving an access request from the client through a target routing device, and sending the access request to the target server according to an address route, where the routing device is any routing device in a routing network.
By the device, the address route of the routing network is determined according to the corresponding relation between the domain name and the address of the target server accessed by the client; distributing the address route to all routing devices in the routing network by using a dynamic routing protocol; the access request of the client is received through the target routing equipment, the access request is sent to the target server according to the address route, wherein the routing equipment is any routing equipment in the routing network, and the purpose of timely updating the address route corresponding to the domain name by all the routing equipment in the network is achieved by dynamically sending the address route to all the routing equipment in the routing network, so that the technical effect of improving the data processing efficiency of three-layer network equipment is achieved, and the technical problems that in the related technology, routing data are processed by using a route re-distribution technology through middle three-layer network equipment, the process is complex, and the efficiency is low are solved.
According to another aspect of the embodiments of the present invention, there is also provided a processor, where the processor is configured to execute a program, where the program executes the method for processing routing data described in any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided a computer storage medium, where the computer storage medium includes a stored program, and when the program runs, the apparatus where the computer storage medium is located is controlled to execute any one of the above-mentioned routing data processing methods.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for processing routing data, comprising:
determining an address route of a routing network according to the corresponding relation between the domain name and the address of a target server accessed by a client;
distributing the address route to all routing devices in the routing network using a dynamic routing protocol;
and receiving an access request of the client through a target routing device, and sending the access request to the target server according to the address route, wherein the target routing device is any routing device in a routing network.
2. The method of claim 1, wherein prior to distributing the address route to all routing devices in the routing network using a dynamic routing protocol, the method further comprises:
configuring a domain name route of the domain name, wherein the domain name route comprises the domain name and a target address to which a target server accessing the domain name needs to jump;
and distributing the domain name route to all routing devices in the routing network through the dynamic routing protocol.
3. The method of claim 2, wherein before determining the address route of the routing network according to the correspondence between the domain name and the address of the target server accessed by the client, the method further comprises:
initiating a domain name resolution request to a resolution server through the client, wherein the domain name resolution request is used for requesting the resolution server to perform resolution on a domain name of a target server corresponding to the resolution server to obtain a corresponding address;
acquiring a response message of the resolution server to the domain name resolution request;
and determining the corresponding relation between the domain name and the address according to the response message, wherein the response message comprises the domain name and the corresponding address.
4. The method of claim 3, wherein determining the address route of the routing network according to the correspondence between the domain name and the address of the target server accessed by the client comprises:
and determining the address route of the routing network according to the domain name route and the address corresponding to the domain name.
5. The method of claim 3, wherein after distributing the address route to all routing devices in the routing network using a dynamic routing protocol, further comprising:
monitoring a response message of the analysis server;
acquiring a new response message under the condition that the analysis server sends the new response message is monitored;
determining a new corresponding relation according to the new response message;
and distributing the new corresponding relation to all routing devices in the routing network through a dynamic routing protocol.
6. The method of claim 5, wherein distributing the new correspondence to all routing devices in the routing network via a dynamic routing protocol comprises:
determining the difference between the new corresponding relation and the corresponding relation, wherein the difference comprises a new address and a deleted address corresponding to the domain name;
and distributing the difference to all routing devices in the routing network through a dynamic routing protocol, wherein the routing devices generate the new corresponding relation according to the difference and the stored corresponding relation under the condition of receiving the difference.
7. The method of any one of claims 2 to 6, wherein receiving, by a target routing device, an access request of the client, sending the access request to the target server according to the address route comprises:
forwarding the access request to a gateway device of the routing network via address routing in the target routing device, wherein all routing networks further include the gateway device;
forwarding, by the gateway device, the access request to the target address, where the target address is used to send the access request to the target server.
8. A routing data processing apparatus, comprising:
the determining module is used for determining the address route of the routing network according to the corresponding relation between the domain name and the address of the target server accessed by the client;
the distribution module distributes the address route to all routing devices in the routing network by using a dynamic routing protocol;
and the sending module is used for receiving an access request of the client through target routing equipment and sending the access request to the target server according to the address route, wherein the routing equipment is any routing equipment in a routing network.
9. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the routing data processing method according to any one of claims 1 to 7 when running.
10. A computer storage medium for storing a program, wherein the program is executed to control an apparatus in which the computer storage medium is located to execute the routing data processing method according to any one of claims 1 to 7.
CN202111545160.0A 2021-12-16 2021-12-16 Routing data processing method and device Pending CN114301837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111545160.0A CN114301837A (en) 2021-12-16 2021-12-16 Routing data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111545160.0A CN114301837A (en) 2021-12-16 2021-12-16 Routing data processing method and device

Publications (1)

Publication Number Publication Date
CN114301837A true CN114301837A (en) 2022-04-08

Family

ID=80967808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111545160.0A Pending CN114301837A (en) 2021-12-16 2021-12-16 Routing data processing method and device

Country Status (1)

Country Link
CN (1) CN114301837A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789993A (en) * 2016-12-09 2017-05-31 锐捷网络股份有限公司 TCP agent method and device
CN108270882A (en) * 2018-01-24 2018-07-10 腾讯科技(深圳)有限公司 The analysis method and device of domain name, storage medium, electronic device
WO2018233140A1 (en) * 2017-06-24 2018-12-27 平安科技(深圳)有限公司 Domain name resolution apparatus and method and computer readable storage medium
CN109729190A (en) * 2019-03-15 2019-05-07 深圳前海微众银行股份有限公司 Network Access Method, system, equipment and computer readable storage medium
CN109769043A (en) * 2019-03-14 2019-05-17 中国工商银行股份有限公司 Domain name analytic method, apparatus and system
WO2021004144A1 (en) * 2019-07-11 2021-01-14 广东美的制冷设备有限公司 Domain name resolution method, domain name resolution device, household appliance, and storage medium
WO2021219104A1 (en) * 2020-04-30 2021-11-04 华为技术有限公司 Hybrid cloud system, gatekeeper, network access method and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789993A (en) * 2016-12-09 2017-05-31 锐捷网络股份有限公司 TCP agent method and device
WO2018233140A1 (en) * 2017-06-24 2018-12-27 平安科技(深圳)有限公司 Domain name resolution apparatus and method and computer readable storage medium
CN108270882A (en) * 2018-01-24 2018-07-10 腾讯科技(深圳)有限公司 The analysis method and device of domain name, storage medium, electronic device
CN109769043A (en) * 2019-03-14 2019-05-17 中国工商银行股份有限公司 Domain name analytic method, apparatus and system
CN109729190A (en) * 2019-03-15 2019-05-07 深圳前海微众银行股份有限公司 Network Access Method, system, equipment and computer readable storage medium
WO2021004144A1 (en) * 2019-07-11 2021-01-14 广东美的制冷设备有限公司 Domain name resolution method, domain name resolution device, household appliance, and storage medium
WO2021219104A1 (en) * 2020-04-30 2021-11-04 华为技术有限公司 Hybrid cloud system, gatekeeper, network access method and storage medium

Similar Documents

Publication Publication Date Title
US11870644B2 (en) Exchange of routing information to support virtual computer networks hosted on telecommunications infrastructure network
Mathy et al. LISP-DHT: Towards a DHT to map identifiers onto locators
EP2984798B1 (en) Identification of paths taken through a network of interconnected devices
US20180041396A1 (en) System and method for topology discovery in data center networks
EP2984799B1 (en) Identification of paths in a network of mixed routing/switching devices
EP3270553B1 (en) Ospf point-to-multipoint over broadcast or nbma mode
CN106131031B (en) Method and device for cleaning and processing DDoS (distributed denial of service) flow
EP2984800B1 (en) Identifying an egress port of a device
EP3117571B1 (en) Executing loops
US6944674B2 (en) Management of protocol information in PNNI hierarchical networks
KR20140043778A (en) Method and node for supporting routing via inter as path
EP2984797B1 (en) Querying a traffic forwarding table
US8667174B2 (en) Method and system for survival of data plane through a total control plane failure
CN111182022A (en) Data transmission method and device, storage medium and electronic device
EP3188408B1 (en) Method and apparatus for determining network topology, and centralized network state information storage device
CN107872383B (en) Parameter notification method, parameter acquisition method and parameter acquisition device
Alotaibi et al. Multidomain SDN‐Based Gateways and Border Gateway Protocol
CN116560853A (en) Method and system for advertising calculation force information based on BGP flow rule
CN114301837A (en) Routing data processing method and device
CN115941580A (en) Scalable SD-WAN topology and routing automation
Nogueira et al. A distributed approach for virtual network discovery
JP2008054129A (en) Functionally distributed communication apparatus, and route control method
Zhang et al. Cloud aided internet mobility
CN104065578A (en) IP router processing method and device based on ASON optical network
US11546257B1 (en) Scalable SD-WAN topology and route automation

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