US20200186469A1 - Data packet routing method and data packet routing device - Google Patents

Data packet routing method and data packet routing device Download PDF

Info

Publication number
US20200186469A1
US20200186469A1 US16/631,467 US201816631467A US2020186469A1 US 20200186469 A1 US20200186469 A1 US 20200186469A1 US 201816631467 A US201816631467 A US 201816631467A US 2020186469 A1 US2020186469 A1 US 2020186469A1
Authority
US
United States
Prior art keywords
domain name
request message
routing information
information
routing
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
US16/631,467
Other versions
US11381503B2 (en
Inventor
Shixin TIAN
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Publication of US20200186469A1 publication Critical patent/US20200186469A1/en
Assigned to ZTE CORPORATION reassignment ZTE CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: TIAN, Shixin
Application granted granted Critical
Publication of US11381503B2 publication Critical patent/US11381503B2/en
Active legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/42Centralised routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/56Routing software
    • H04L45/566Routing instructions carried by the data packet, e.g. active networks
    • 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
    • H04L61/1511
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • 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/741Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6

Definitions

  • the present disclosure relates to IP data packets, and in particular, to a data packet routing method and a data packet routing device.
  • the networks which the user needs to access include a Public Data Net and a Private Data Net, wherein the Private Data Net has higher requirements on security and real-time performance of accessed data packets.
  • the data packets for the user to access a Private Data Net and the data packets for the user to access a Public Data Net cannot be effectively isolated, so that neither the security nor the real-time performance of data can be well guaranteed.
  • the present disclosure provides a data packet routing method, including: receiving and resolving an initial route resolution request message to obtain a requested domain name in the initial route resolution request message; determining whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name, wherein the preset domain name configuration information includes a correspondence between a domain name, a specified domain name resolution server and an address of the specified domain name resolution server; if there is a specified domain name resolution server corresponding to the requested domain name, modifying a default destination address of the initial route resolution request message to an address of the specified domain name resolution server, so as to obtain a routing information request message; searching for routing information corresponding to the routing information request message according to the routing information request message and preset routing information, wherein the preset routing information includes a correspondence between mark information and routing information; and sending a data packet to a destination address corresponding to the requested domain name according to the routing information.
  • the present disclosure further provides a data packet routing device, including: a route resolution request message acquiring module configured to receive and resolve an initial route resolution request message to obtain a requested domain name in the initial route resolution request message; a specified domain name resolution server acquiring module configured to determine whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name, wherein the preset domain name configuration information includes a correspondence between a domain name, a specified domain name resolution server and an address of the specified domain name resolution server; a routing information request message acquiring module configured to modify a default destination address of the initial route resolution request message to an address of the specified domain name resolution server if there is a specified domain name resolution server corresponding to the requested domain name, so as to obtain a routing information request message; a routing information acquiring module configured to search for routing information corresponding to the routing information request message according to the routing information request message and preset routing information, wherein the preset routing information includes a correspondence between mark information and routing information; and a sending module configured to send
  • the present disclosure further provides a computer-readable storage medium storing computer programs which, when executed by a processor, cause the processor to perform the data packet routing method of the present disclosure.
  • FIG. 1 is a flowchart illustrating a data packet routing method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart illustrating a data packet routing method according to another embodiment of the present disclosure
  • FIG. 3 is a flowchart illustrating a data packet routing method according to yet another embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a data packet routing device according to an embodiment of the present disclosure.
  • FIG. 1 is a flowchart illustrating a data packet routing method according to an embodiment of the present disclosure.
  • the data packet routing method shown in FIG. 1 includes the following steps S 100 -S 500 .
  • Step S 100 an initial route resolution request message is received and resolved to obtain a requested domain name in the initial route resolution request message.
  • the obtained requested domain name is a domain name of a website that a user needs to access.
  • the website includes a Public Data Net or a Private Data Net.
  • the Public Data Net is a network open to all internet users, and the users can access the internet through the Public Data Net, while the Private Data Net is a data networks dedicated to a certain vendor.
  • Step S 200 it is determined whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name.
  • the preset domain name configuration information may include a correspondence between a domain name, a specified domain name resolution server and an address of the specified domain name resolution server.
  • the preset domain name configuration information may include, for example, a dnsmasq.conf file. Domain names which need to be resolved by the specified domain name resolution server are preset in the dnsmasq.conf file. In practical applications, information in the dnsmasq.conf file may be preset as required by using a blacklist or a whitelist. In a case that a whitelist is used, if the requested domain name is included in the dnsmasq.conf file, the requested domain name needs to be resolved by the specified domain name resolution server.
  • car.csp_test.com is the domain name of the CSP server of the Private Data Net
  • 10.10.10.21 is an IP address of the DNS server in the Private Data Net.
  • Step S 300 if there is a specified domain name resolution server corresponding to the requested domain name, a default destination address of the initial route resolution request message is modified to an address of the specified domain name resolution server, so as to obtain a routing information request message.
  • the requested domain name needs to be resolved by the specified domain name resolution server, and so the default destination address is modified to the address of the specified domain name resolution server to obtain the routing information request message.
  • the initial route resolution request message is sent to the address of the specified domain name resolution server, so as to obtain the routing information request message from the specified domain name resolution server, wherein the routing information request message may include an IP address corresponding to the requested domain name.
  • the initial route resolution request message is sent to the default destination address, so as to obtain the routing information request message, wherein the routing information request message may include an IP address corresponding to the requested domain name.
  • Step S 400 routing information corresponding to the routing information request message is searched for according to the routing information request message and preset routing information.
  • the preset routing information includes a correspondence between mark information and routing information.
  • the preset routing information is searched for the routing information corresponding to the routing information request message.
  • Step S 500 a data packet is sent to a destination address corresponding to the requested domain name according to the routing information.
  • the data packet is sent according to the found routing information so as to send the data packet to the destination address corresponding to the requested domain name.
  • the destination address corresponding to the requested domain name may be an IP address of a server of a network corresponding to the requested domain name.
  • preset domain name configuration information is searched to determine whether there is a specified domain name resolution server corresponding to the requested domain name, and if so, a default destination address of the initial route resolution request message is modified to an address of the specified domain name resolution server to obtain a routing information request message, and then routing information corresponding to the routing information request message is searched for according to preset routing information and a data packet is sent according to the routing information.
  • the data packet sent to a specific domain name is resolved by a specified domain name resolution server and is sent according to the routing information obtained from the preset routing information, so that data packets of a user for accessing the Public Data Net are isolated from data packets of the user for accessing the Private Data Net, and security and real-time performance of data packet transmission are improved.
  • FIG. 2 is a flowchart illustrating a data packet routing method according to another embodiment of the present disclosure.
  • the data packet routing method as shown in FIG. 2 includes the following steps S 410 -S 420 .
  • Step S 410 according to preset filtering information and the routing information request message, it is determined whether an IP address corresponding to the requested domain name in the routing information request message is included in the preset filtering information.
  • the preset filtering information includes a correspondence between an IP address corresponding to a domain name in the preset domain name configuration information and mark information.
  • the preset filtering information may include, for example, an iptables table.
  • the iptables table is first processed, for example, as follows:
  • NAT Network Address Translation
  • Step S 420 if the determination result is yes, mark information is set in the routing information request message, and routing information corresponding to the routing information request message is searched for according to preset routing information and the mark information in the routing information request message; and if the determination result is no, the routing information corresponding to the routing information request message is searched for according to the preset routing information and the IP address corresponding to the requested domain name in the routing information request message.
  • the mark information includes tags commonly used in actual use, wherein the tag includes one or any combination of numbers and letters.
  • the mark information may be used for selecting the routing information.
  • the added mark information is, for example:
  • mark 3 is the mark information
  • the routing information is path information to a specific network terminal, and may include one or more routing tables.
  • the routing table may be associated with the mark information, so as to allow the routing information request message having the mark information to reach a destination address according to a specified path. For example, searching for the routing information corresponding to the routing information request message may be implemented through the following code: ip rule add fwmark 3 table 3, that is, the routing information corresponding to the routing information request message having tag 3 follows table 3.
  • a data packet is sent to a destination address corresponding to the requested domain name according to the found routing information, which may be implemented, for example, through the following code: ip route add table 3 via 10.22.22.2 dev rmnet_data1, that is, a data packet following table 3 is transmitted through rmnet_data 1.
  • preset domain name configuration information is searched to determine whether there is a specified domain name resolution server corresponding to the requested domain name, and if so, a default destination address of the initial route resolution request message is modified to an address of the specified domain name resolution server to obtain a routing information request message, then mark information is set in the routing information request message according to preset filtering information, and finally routing information corresponding to the routing information request message is searched for according to preset routing information and a data packet is sent according to the routing information.
  • the data packet sent to a specific domain name is resolved by a specified domain name resolution server, is determined whether to be marked or not according to the filtering information, and then is sent according to the routing information obtained from the preset routing information based on whether the data packet is marked or not, so that data packets of a user for accessing the Public Data Net are isolated from data packets of the user for accessing the Private Data Net, and security and real-time performance of data packet transmission are improved.
  • the requested domain name may include domain name subject information of the requested domain name, and therefore, the step of determining whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name may include: determining whether there is a specified domain name resolution server corresponding to the domain name subject information according to the preset domain name configuration information and the domain name subject information.
  • it may be supported to subsequently query domain name resolution server configuration according to the domain name subject information of the requested domain name, and it is possible to query according to the whole domain name subject information or part of the domain name subject information. For example, when a user accesses “www.sina.com.”, it is supported to query according to “sina” as well as any one of “si”, “sin”, and “ina”.
  • the domain name can be easily assigned to a specified domain name resolution server through simple settings in, for example, a dnsmasq.conf file, so as to achieve isolation of data packets when a user accesses a specific website.
  • the requested domain name includes domain name suffix information of the requested domain name
  • the step of determining whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name may include: determining whether there is a specified domain name resolution server corresponding to the domain name suffix information according to the preset domain name configuration information and the domain name suffix information.
  • it may be supported to subsequently query domain name resolution server configuration according to the domain name suffix information of the requested domain name. For example, when a user accesses “www.sina.com.”, it is supported to query according to “com”.
  • the domain name can be easily assigned to a specified domain name resolution server through simple settings in, for example, a dnsmasq.conf file, so as to achieve isolation of data packets when a user accesses a specific website.
  • the requested domain name may include a source address of the initial route resolution request message, and therefore, the step of determining whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name may include: determining whether there is a specified domain name resolution server corresponding to the source address of the initial route resolution request message according to the preset domain name configuration information and the source address of the initial route resolution request message.
  • it may be supported to subsequently query domain name resolution server configuration according to the source address of the initial route resolution request message of the requested domain name. For example, when a user accesses “www.sina.com.”, it is supported to query according to the source address of the initial route resolution request message, and the initial route resolution request messages from a particular source may be configured to be resolved by a specified domain name resolution server.
  • the domain name can be easily assigned to a specified domain name resolution server through simple settings in, for example, a dnsmasq.conf file, so as to achieve isolation of data packets when a user accesses a specific website.
  • FIG. 3 is a flowchart illustrating a data packet routing method according to yet another embodiment of the present disclosure.
  • the data packet routing method as shown in FIG. 3 includes the following steps S 10 -S 50 .
  • Step S 10 an initial route resolution request message is received and resolved to obtain a requested domain name and a specified domain name resolution server of the requested domain name in the initial route resolution request message.
  • the received initial route resolution request message may carry a specified domain name resolution server.
  • the specified domain name resolution server may be specified by a user or be specified automatically by an application program.
  • Step S 20 an address of the specified domain name resolution server is searched for according to preset domain name configuration information and the specified domain name resolution server, and a default destination address of the initial route resolution request message is modified to the address of the specified domain name resolution server, so as to obtain a routing information request message.
  • the preset domain name configuration information includes a correspondence between a domain name, a specified domain name resolution server and an address of the specified domain name resolution server.
  • the address of the specified domain name resolution server is directly queried in the domain name configuration information, and then the default destination address of the initial route resolution request message is modified to the address of the specified domain name resolution server to obtain the routing information request message.
  • Step S 20 The detailed implementations of modifying the default destination address of the initial route resolution request message to the address of the specified domain name resolution server to obtain the routing information request message in Step S 20 may refer to the Step S 300 in the above embodiments.
  • Step S 30 it is determined whether an IP address corresponding to the requested domain name in the routing information request message is included in the preset filtering information, and if a determination result is yes, mark information is set in the routing information request message, and if the determination result is no, routing information corresponding to the routing information request message is searched for according to the preset routing information and the IP address corresponding to the requested domain name in the routing information request message.
  • the preset filtering information includes a correspondence between an IP address corresponding to a domain name in the preset domain name configuration information and mark information.
  • Step S 40 the routing information corresponding to the routing information request message is searched for according to the preset routing information and the routing information request message.
  • the preset routing information includes a correspondence between the mark information and the routing information.
  • Steps S 30 -S 40 may refer to the Steps S 410 -S 420 in the above embodiments.
  • Step S 50 a data packet is sent to a destination address corresponding to the requested domain name according to the routing information.
  • Step S 50 may refer to the Step S 500 in the above embodiment.
  • the received domain name resolution request message carries a specified domain name resolution server
  • an address of the specified domain name resolution server is searched for in preset domain name configuration information
  • a default destination address of the initial route resolution request message is modified to the address of the specified domain name resolution server to obtain a routing information request message
  • mark information is set in the routing information request message according to preset filtering information
  • routing information corresponding to the routing information request message is searched for according to preset routing information and a data packet is sent according to the routing information.
  • FIG. 4 is a schematic structural diagram of a data packet routing device according to an embodiment of the present disclosure.
  • the data packet routing device shown in FIG. 4 includes a route resolution request message acquiring module 10 , a specified domain name resolution server acquiring module 20 , a routing information request message acquiring module 30 , a routing information acquiring module 40 , and a sending module 50 .
  • the route resolution request message acquiring module 10 may be configured to receive and resolve an initial route resolution request message to obtain a requested domain name in the initial route resolution request message, and may be further configured to obtain a specified domain name resolution server of the requested domain name.
  • the requested domain name may include domain name subject information or domain name suffix information of the requested domain name; and in some other embodiments, the requested domain name may include a source address of the initial route resolution request message.
  • the specified domain name resolution server acquiring module 20 may be configured to determine whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name.
  • the preset domain name configuration information includes a correspondence between a domain name, a specified domain name resolution server and an address of the specified domain name resolution server.
  • the specified domain name resolution server acquiring module 20 may be further configured to search for an address of the specified domain name resolution server according to the preset domain name configuration information and the specified domain name resolution server.
  • the specified domain name resolution server acquiring module 20 may be further configured to determine whether there is a specified domain name resolution server corresponding to the domain name subject information or the domain name suffix information according to the preset domain name configuration information and the domain name subject information or according to the preset domain name configuration information and the domain name suffix information, and determine whether there is a specified domain name resolution server corresponding to the source address of the initial route resolution request message according to the preset domain name configuration information and the source address of the initial route resolution request message.
  • the routing information request message acquiring module 30 may be configured to modify a default destination address of the initial route resolution request message to an address of the specified domain name resolution server if there is a specified domain name resolution server corresponding to the requested domain name, so as to obtain a routing information request message.
  • the routing information request message acquiring module 30 may be further configured to, after the routing information request message acquiring module 30 modifies the default destination address to the address of the specified domain name resolution server, send the initial route resolution request message to the address of the specified domain name resolution server, so as to obtain the routing information request message from the specified domain name resolution server.
  • the routing information request message acquiring module 30 may be further configured to, if there is no specified domain name resolution server corresponding to the requested domain name, send the initial route resolution request message to the default destination address, so as to obtain the routing information request message.
  • the routing information request message may include an IP address corresponding to the requested domain name.
  • the routing information acquiring module 40 may be configured to search for routing information corresponding to the routing information request message according to the routing information request message and preset routing information.
  • the preset routing information may include a correspondence between mark information and routing information.
  • the routing information acquiring module 40 may include a mark information acquisition unit and a routing information acquisition unit (not shown).
  • the mark information acquisition unit may be configured to determine whether the IP address corresponding to the requested domain name in the routing information request message is included in preset filtering information according to the preset filtering information and the routing information request message, and if a determination result is yes, set mark information in the routing information request message, and if the determination result is no, search for the routing information corresponding to the routing information request message according to the preset routing information and the IP address corresponding to the requested domain name in the routing information request message.
  • the preset filtering information may include a correspondence between an IP address corresponding to a domain name in the preset domain name configuration information and mark information.
  • the routing information acquisition unit may be configured to search for the routing information corresponding to the routing information request message according to the preset routing information and the mark information in the routing information request message.
  • the sending module 50 may be configured to send a data packet to a destination address corresponding to the requested domain name according to the routing information.
  • preset domain name configuration information is searched to determine whether there is a specified domain name resolution server corresponding to the requested domain name, and if so, a default destination address of the initial route resolution request message is modified to an address of the specified domain name resolution server to obtain a routing information request message, then mark information is set in the routing information request message according to preset filtering information, and finally routing information corresponding to the routing information request message is searched for according to preset routing information and a data packet is sent according to the routing information.
  • the data packet sent to a specific domain name is resolved by a specified domain name resolution server, is determined whether to be marked or not according to the filtering information, and then is sent according to the routing information obtained from the preset routing information based on whether the data packet is marked or not, so that data packets of a user for accessing the Public Data Net are isolated from data packets of the user for accessing the Private Data Net, and security and real-time performance of data packet transmission are improved.
  • the present disclosure further provides a computer-readable storage medium with computer programs stored thereon, when the computer programs are executed by a processor, the processor performs the data packet routing methods according to the above embodiments.

Abstract

The present disclosure provides a data packet routing method and a data packet routing device. The data packet routing method includes receiving and resolving an initial route resolution request message to obtain a requested domain name in the initial route resolution request message; determining whether there is a specified domain name resolution server corresponding to the requested domain name; if there is a specified domain name resolution server corresponding to the requested domain name, modifying a default destination address of the initial route resolution request message to an address of the specified domain name resolution server, so as to obtain a routing information request message; searching for routing information corresponding to the routing information request message; and sending a data packet to a destination address corresponding to the requested domain name.

Description

    TECHNICAL FIELD
  • The present disclosure relates to IP data packets, and in particular, to a data packet routing method and a data packet routing device.
  • BACKGROUND
  • In the processes that a user uses data services to perform various internet applications, the networks which the user needs to access include a Public Data Net and a Private Data Net, wherein the Private Data Net has higher requirements on security and real-time performance of accessed data packets. However, in conventional data packet routing policy, when a user inputs a domain name for access, all domain names are resolved by a default domain name resolution server, in such a case, the data packets for the user to access a Private Data Net and the data packets for the user to access a Public Data Net cannot be effectively isolated, so that neither the security nor the real-time performance of data can be well guaranteed.
  • SUMMARY
  • The present disclosure provides a data packet routing method, including: receiving and resolving an initial route resolution request message to obtain a requested domain name in the initial route resolution request message; determining whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name, wherein the preset domain name configuration information includes a correspondence between a domain name, a specified domain name resolution server and an address of the specified domain name resolution server; if there is a specified domain name resolution server corresponding to the requested domain name, modifying a default destination address of the initial route resolution request message to an address of the specified domain name resolution server, so as to obtain a routing information request message; searching for routing information corresponding to the routing information request message according to the routing information request message and preset routing information, wherein the preset routing information includes a correspondence between mark information and routing information; and sending a data packet to a destination address corresponding to the requested domain name according to the routing information.
  • The present disclosure further provides a data packet routing device, including: a route resolution request message acquiring module configured to receive and resolve an initial route resolution request message to obtain a requested domain name in the initial route resolution request message; a specified domain name resolution server acquiring module configured to determine whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name, wherein the preset domain name configuration information includes a correspondence between a domain name, a specified domain name resolution server and an address of the specified domain name resolution server; a routing information request message acquiring module configured to modify a default destination address of the initial route resolution request message to an address of the specified domain name resolution server if there is a specified domain name resolution server corresponding to the requested domain name, so as to obtain a routing information request message; a routing information acquiring module configured to search for routing information corresponding to the routing information request message according to the routing information request message and preset routing information, wherein the preset routing information includes a correspondence between mark information and routing information; and a sending module configured to send a data packet to a destination address corresponding to the requested domain name according to the routing information.
  • The present disclosure further provides a computer-readable storage medium storing computer programs which, when executed by a processor, cause the processor to perform the data packet routing method of the present disclosure.
  • The above description is only a summary of various aspects of the present disclosure. In order to facilitate clear understanding of the technical solutions of the present disclosure, and make the above and other objects, features, and advantages of the present disclosure more obvious and easy to be understood, specific implementations of the present disclosure will be described below in conjunction with the accompanying drawings.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description. The drawings are only for purposes of illustrating embodiments and are not intended to limit the present disclosure. In the drawings, the same reference symbols are used to indicate the same elements. In the drawings:
  • FIG. 1 is a flowchart illustrating a data packet routing method according to an embodiment of the present disclosure;
  • FIG. 2 is a flowchart illustrating a data packet routing method according to another embodiment of the present disclosure;
  • FIG. 3 is a flowchart illustrating a data packet routing method according to yet another embodiment of the present disclosure; and
  • FIG. 4 is a schematic structural diagram of a data packet routing device according to an embodiment of the present disclosure.
  • DETAILED DESCRIPTION
  • Exemplary embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. While various exemplary embodiments are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments shown herein. The following embodiments are provided for enabling thorough understanding of the present disclosure, and full conveying of the protection scope of the present disclosure to those skilled in the art.
  • FIG. 1 is a flowchart illustrating a data packet routing method according to an embodiment of the present disclosure. The data packet routing method shown in FIG. 1 includes the following steps S100-S500.
  • In Step S100, an initial route resolution request message is received and resolved to obtain a requested domain name in the initial route resolution request message.
  • In one embodiment, the obtained requested domain name is a domain name of a website that a user needs to access. The website includes a Public Data Net or a Private Data Net. The Public Data Net is a network open to all internet users, and the users can access the internet through the Public Data Net, while the Private Data Net is a data networks dedicated to a certain vendor.
  • In Step S200, it is determined whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name. The preset domain name configuration information may include a correspondence between a domain name, a specified domain name resolution server and an address of the specified domain name resolution server.
  • In one embodiment, the preset domain name configuration information may include, for example, a dnsmasq.conf file. Domain names which need to be resolved by the specified domain name resolution server are preset in the dnsmasq.conf file. In practical applications, information in the dnsmasq.conf file may be preset as required by using a blacklist or a whitelist. In a case that a whitelist is used, if the requested domain name is included in the dnsmasq.conf file, the requested domain name needs to be resolved by the specified domain name resolution server.
  • In an exemplary embodiment, taking a Domain Name System (DNS) server 10.10.10.21 and a Content Security Policy (CSP) server 10.22.22.31 (domain: car.csp_test.com) for a Private Data Net as an example, if the domain name of car.csp_test.com of the CSP server is to be assigned to the DNS server for domain name resolution, the following configuration line needs to be added to the dnsmasq.conf file:

  • server=/car.csp_test.com/10.10.10.21;
  • wherein car.csp_test.com is the domain name of the CSP server of the Private Data Net, and 10.10.10.21 is an IP address of the DNS server in the Private Data Net.
  • In Step S300, if there is a specified domain name resolution server corresponding to the requested domain name, a default destination address of the initial route resolution request message is modified to an address of the specified domain name resolution server, so as to obtain a routing information request message.
  • In one embodiment, if there is a specified domain name resolution server corresponding to the requested domain name in the dnsmasq.conf file, the requested domain name needs to be resolved by the specified domain name resolution server, and so the default destination address is modified to the address of the specified domain name resolution server to obtain the routing information request message.
  • In one embodiment, after the default destination address is modified to the address of the specified domain name resolution server, the initial route resolution request message is sent to the address of the specified domain name resolution server, so as to obtain the routing information request message from the specified domain name resolution server, wherein the routing information request message may include an IP address corresponding to the requested domain name.
  • In one embodiment, if there is no specified domain name resolution server corresponding to the requested domain name, the initial route resolution request message is sent to the default destination address, so as to obtain the routing information request message, wherein the routing information request message may include an IP address corresponding to the requested domain name.
  • In Step S400, routing information corresponding to the routing information request message is searched for according to the routing information request message and preset routing information. The preset routing information includes a correspondence between mark information and routing information.
  • In one embodiment, according to information (for example, an IP address corresponding to the requested domain name) included in the routing information request message, the preset routing information is searched for the routing information corresponding to the routing information request message.
  • In Step S500, a data packet is sent to a destination address corresponding to the requested domain name according to the routing information.
  • In one embodiment, the data packet is sent according to the found routing information so as to send the data packet to the destination address corresponding to the requested domain name. In one embodiment, the destination address corresponding to the requested domain name may be an IP address of a server of a network corresponding to the requested domain name.
  • In the above data packet routing method provided according to the embodiment of the present disclosure, after an initial route resolution request message received is resolved to obtain a requested domain name requested to be accessed by a user, preset domain name configuration information is searched to determine whether there is a specified domain name resolution server corresponding to the requested domain name, and if so, a default destination address of the initial route resolution request message is modified to an address of the specified domain name resolution server to obtain a routing information request message, and then routing information corresponding to the routing information request message is searched for according to preset routing information and a data packet is sent according to the routing information. It can be seen that, in the above data packet routing method, the data packet sent to a specific domain name is resolved by a specified domain name resolution server and is sent according to the routing information obtained from the preset routing information, so that data packets of a user for accessing the Public Data Net are isolated from data packets of the user for accessing the Private Data Net, and security and real-time performance of data packet transmission are improved.
  • FIG. 2 is a flowchart illustrating a data packet routing method according to another embodiment of the present disclosure. The data packet routing method as shown in FIG. 2 includes the following steps S410-S420.
  • In Step S410, according to preset filtering information and the routing information request message, it is determined whether an IP address corresponding to the requested domain name in the routing information request message is included in the preset filtering information. The preset filtering information includes a correspondence between an IP address corresponding to a domain name in the preset domain name configuration information and mark information.
  • In one embodiment, the preset filtering information may include, for example, an iptables table. In one embodiment, the iptables table is first processed, for example, as follows:

  • iptables-A POSTROUTING-t nat-o rmnet_data1-j MASQUERADE
  • The above processing is to perform Network Address Translation (NAT) on internal and external network addresses in the iptables table, wherein rmnet_data1 is a network interface of a Private Data Net.
  • Next, it may be determined whether it is necessary to set mark information in the routing information request message based on a determination result.
  • In Step S420, if the determination result is yes, mark information is set in the routing information request message, and routing information corresponding to the routing information request message is searched for according to preset routing information and the mark information in the routing information request message; and if the determination result is no, the routing information corresponding to the routing information request message is searched for according to the preset routing information and the IP address corresponding to the requested domain name in the routing information request message.
  • The mark information includes tags commonly used in actual use, wherein the tag includes one or any combination of numbers and letters. The mark information may be used for selecting the routing information. In one embodiment, it is possible to set mark information for all specified domain name resolution servers, and it is also possible to set mark information for some specified domain name resolution servers, so as to meet different usage requirements. The added mark information is, for example:

  • iptables-A POSTROUTING-t mangle-m iprange—dst-range10.10.10.20-10.22.22.31-j MARK—set-mark3
  • where mark 3 is the mark information.
  • The routing information is path information to a specific network terminal, and may include one or more routing tables. In the embodiment of the present disclosure, the routing table may be associated with the mark information, so as to allow the routing information request message having the mark information to reach a destination address according to a specified path. For example, searching for the routing information corresponding to the routing information request message may be implemented through the following code: ip rule add fwmark 3 table 3, that is, the routing information corresponding to the routing information request message having tag 3 follows table 3.
  • Then, a data packet is sent to a destination address corresponding to the requested domain name according to the found routing information, which may be implemented, for example, through the following code: ip route add table 3 via 10.22.22.2 dev rmnet_data1, that is, a data packet following table 3 is transmitted through rmnet_data 1.
  • In the above data packet routing method provided according to the embodiment of the present disclosure, after an initial route resolution request message received is resolved to obtain a requested domain name requested to be accessed by a user, preset domain name configuration information is searched to determine whether there is a specified domain name resolution server corresponding to the requested domain name, and if so, a default destination address of the initial route resolution request message is modified to an address of the specified domain name resolution server to obtain a routing information request message, then mark information is set in the routing information request message according to preset filtering information, and finally routing information corresponding to the routing information request message is searched for according to preset routing information and a data packet is sent according to the routing information. It can be seen that, in the above data packet routing method, the data packet sent to a specific domain name is resolved by a specified domain name resolution server, is determined whether to be marked or not according to the filtering information, and then is sent according to the routing information obtained from the preset routing information based on whether the data packet is marked or not, so that data packets of a user for accessing the Public Data Net are isolated from data packets of the user for accessing the Private Data Net, and security and real-time performance of data packet transmission are improved.
  • In each of the above embodiments, the requested domain name may include domain name subject information of the requested domain name, and therefore, the step of determining whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name may include: determining whether there is a specified domain name resolution server corresponding to the domain name subject information according to the preset domain name configuration information and the domain name subject information.
  • In one embodiment, it may be supported to subsequently query domain name resolution server configuration according to the domain name subject information of the requested domain name, and it is possible to query according to the whole domain name subject information or part of the domain name subject information. For example, when a user accesses “www.sina.com.”, it is supported to query according to “sina” as well as any one of “si”, “sin”, and “ina”.
  • In the above embodiment, with the support of query according to the domain name subject information, the domain name can be easily assigned to a specified domain name resolution server through simple settings in, for example, a dnsmasq.conf file, so as to achieve isolation of data packets when a user accesses a specific website.
  • In each of the above embodiments, the requested domain name includes domain name suffix information of the requested domain name, and therefore, the step of determining whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name may include: determining whether there is a specified domain name resolution server corresponding to the domain name suffix information according to the preset domain name configuration information and the domain name suffix information.
  • In one embodiment, it may be supported to subsequently query domain name resolution server configuration according to the domain name suffix information of the requested domain name. For example, when a user accesses “www.sina.com.”, it is supported to query according to “com”.
  • In the above embodiment, with the support of query according to the domain name suffix information, the domain name can be easily assigned to a specified domain name resolution server through simple settings in, for example, a dnsmasq.conf file, so as to achieve isolation of data packets when a user accesses a specific website.
  • In each of the above embodiments, the requested domain name may include a source address of the initial route resolution request message, and therefore, the step of determining whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name may include: determining whether there is a specified domain name resolution server corresponding to the source address of the initial route resolution request message according to the preset domain name configuration information and the source address of the initial route resolution request message.
  • In one embodiment, it may be supported to subsequently query domain name resolution server configuration according to the source address of the initial route resolution request message of the requested domain name. For example, when a user accesses “www.sina.com.”, it is supported to query according to the source address of the initial route resolution request message, and the initial route resolution request messages from a particular source may be configured to be resolved by a specified domain name resolution server.
  • In the above embodiment, with the support of query according to the source address of the initial route resolution request message, the domain name can be easily assigned to a specified domain name resolution server through simple settings in, for example, a dnsmasq.conf file, so as to achieve isolation of data packets when a user accesses a specific website.
  • FIG. 3 is a flowchart illustrating a data packet routing method according to yet another embodiment of the present disclosure. The data packet routing method as shown in FIG. 3 includes the following steps S10-S50.
  • In Step S10, an initial route resolution request message is received and resolved to obtain a requested domain name and a specified domain name resolution server of the requested domain name in the initial route resolution request message.
  • In one embodiment, the received initial route resolution request message may carry a specified domain name resolution server. In one embodiment, the specified domain name resolution server may be specified by a user or be specified automatically by an application program.
  • In Step S20, an address of the specified domain name resolution server is searched for according to preset domain name configuration information and the specified domain name resolution server, and a default destination address of the initial route resolution request message is modified to the address of the specified domain name resolution server, so as to obtain a routing information request message. The preset domain name configuration information includes a correspondence between a domain name, a specified domain name resolution server and an address of the specified domain name resolution server.
  • In one embodiment, if a specified domain name resolution server of the requested domain name is received in the initial route resolution request message, the address of the specified domain name resolution server is directly queried in the domain name configuration information, and then the default destination address of the initial route resolution request message is modified to the address of the specified domain name resolution server to obtain the routing information request message.
  • The detailed implementations of modifying the default destination address of the initial route resolution request message to the address of the specified domain name resolution server to obtain the routing information request message in Step S20 may refer to the Step S300 in the above embodiments.
  • In Step S30, according to preset filtering information and the routing information request message, it is determined whether an IP address corresponding to the requested domain name in the routing information request message is included in the preset filtering information, and if a determination result is yes, mark information is set in the routing information request message, and if the determination result is no, routing information corresponding to the routing information request message is searched for according to the preset routing information and the IP address corresponding to the requested domain name in the routing information request message. The preset filtering information includes a correspondence between an IP address corresponding to a domain name in the preset domain name configuration information and mark information.
  • In Step S40, the routing information corresponding to the routing information request message is searched for according to the preset routing information and the routing information request message. The preset routing information includes a correspondence between the mark information and the routing information.
  • The detailed implementations of the Steps S30-S40 may refer to the Steps S410-S420 in the above embodiments.
  • In Step S50, a data packet is sent to a destination address corresponding to the requested domain name according to the routing information.
  • The detailed implementation of the Step S50 may refer to the Step S500 in the above embodiment.
  • In the above data packet routing method provided according to the embodiment of the present disclosure, the received domain name resolution request message carries a specified domain name resolution server, an address of the specified domain name resolution server is searched for in preset domain name configuration information, a default destination address of the initial route resolution request message is modified to the address of the specified domain name resolution server to obtain a routing information request message, then mark information is set in the routing information request message according to preset filtering information, and finally routing information corresponding to the routing information request message is searched for according to preset routing information and a data packet is sent according to the routing information. It can be seen that, in the above data packet routing method, it is supported to query about an address according to the specified domain name resolution server, so that the data packet sent to a specific domain name is resolved by the specified domain name resolution server, is determined whether to be marked or not according to the filtering information, and then is sent according to the routing information obtained from the preset routing information based on whether the data packet is marked or not. Therefore, data packets of a user for accessing the Public Data Net are isolated from data packets of the user for accessing the Private Data Net, and security and real-time performance of data packet transmission are improved.
  • FIG. 4 is a schematic structural diagram of a data packet routing device according to an embodiment of the present disclosure. The data packet routing device shown in FIG. 4 includes a route resolution request message acquiring module 10, a specified domain name resolution server acquiring module 20, a routing information request message acquiring module 30, a routing information acquiring module 40, and a sending module 50.
  • The route resolution request message acquiring module 10 may be configured to receive and resolve an initial route resolution request message to obtain a requested domain name in the initial route resolution request message, and may be further configured to obtain a specified domain name resolution server of the requested domain name. In some embodiments, the requested domain name may include domain name subject information or domain name suffix information of the requested domain name; and in some other embodiments, the requested domain name may include a source address of the initial route resolution request message.
  • The specified domain name resolution server acquiring module 20 may be configured to determine whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name. The preset domain name configuration information includes a correspondence between a domain name, a specified domain name resolution server and an address of the specified domain name resolution server. The specified domain name resolution server acquiring module 20 may be further configured to search for an address of the specified domain name resolution server according to the preset domain name configuration information and the specified domain name resolution server. The specified domain name resolution server acquiring module 20 may be further configured to determine whether there is a specified domain name resolution server corresponding to the domain name subject information or the domain name suffix information according to the preset domain name configuration information and the domain name subject information or according to the preset domain name configuration information and the domain name suffix information, and determine whether there is a specified domain name resolution server corresponding to the source address of the initial route resolution request message according to the preset domain name configuration information and the source address of the initial route resolution request message.
  • The routing information request message acquiring module 30 may be configured to modify a default destination address of the initial route resolution request message to an address of the specified domain name resolution server if there is a specified domain name resolution server corresponding to the requested domain name, so as to obtain a routing information request message. The routing information request message acquiring module 30 may be further configured to, after the routing information request message acquiring module 30 modifies the default destination address to the address of the specified domain name resolution server, send the initial route resolution request message to the address of the specified domain name resolution server, so as to obtain the routing information request message from the specified domain name resolution server. The routing information request message acquiring module 30 may be further configured to, if there is no specified domain name resolution server corresponding to the requested domain name, send the initial route resolution request message to the default destination address, so as to obtain the routing information request message. The routing information request message may include an IP address corresponding to the requested domain name.
  • The routing information acquiring module 40 may be configured to search for routing information corresponding to the routing information request message according to the routing information request message and preset routing information. The preset routing information may include a correspondence between mark information and routing information. The routing information acquiring module 40 may include a mark information acquisition unit and a routing information acquisition unit (not shown). The mark information acquisition unit may be configured to determine whether the IP address corresponding to the requested domain name in the routing information request message is included in preset filtering information according to the preset filtering information and the routing information request message, and if a determination result is yes, set mark information in the routing information request message, and if the determination result is no, search for the routing information corresponding to the routing information request message according to the preset routing information and the IP address corresponding to the requested domain name in the routing information request message. The preset filtering information may include a correspondence between an IP address corresponding to a domain name in the preset domain name configuration information and mark information. The routing information acquisition unit may be configured to search for the routing information corresponding to the routing information request message according to the preset routing information and the mark information in the routing information request message.
  • The sending module 50 may be configured to send a data packet to a destination address corresponding to the requested domain name according to the routing information.
  • In the above data packet routing device provided in the embodiments of the present disclosure, after an initial route resolution request message received is resolved to obtain a requested domain name requested to be accessed by a user, preset domain name configuration information is searched to determine whether there is a specified domain name resolution server corresponding to the requested domain name, and if so, a default destination address of the initial route resolution request message is modified to an address of the specified domain name resolution server to obtain a routing information request message, then mark information is set in the routing information request message according to preset filtering information, and finally routing information corresponding to the routing information request message is searched for according to preset routing information and a data packet is sent according to the routing information. It can be seen that, in the above data packet routing device, the data packet sent to a specific domain name is resolved by a specified domain name resolution server, is determined whether to be marked or not according to the filtering information, and then is sent according to the routing information obtained from the preset routing information based on whether the data packet is marked or not, so that data packets of a user for accessing the Public Data Net are isolated from data packets of the user for accessing the Private Data Net, and security and real-time performance of data packet transmission are improved.
  • The present disclosure further provides a computer-readable storage medium with computer programs stored thereon, when the computer programs are executed by a processor, the processor performs the data packet routing methods according to the above embodiments.
  • It should be understood by those skilled in the art that all or part of the steps in the methods according to the above embodiments may be implemented by instructing relevant hardware with programs, and the programs may be stored in a computer-readable storage medium which may include a ROM, a RAM, a magnetic disk, an optical disk, etc.
  • In summary, the above embodiments are only exemplary embodiments of the present disclosure, and are not intended to limit the protection scope of the present disclosure. Various modifications, equivalent substitutions and improvements may be made by those skilled in the art without departing from the spirit and principles of the present disclosure.

Claims (15)

1. A data packet routing method, comprising:
receiving and resolving an initial route resolution request message to obtain a requested domain name in the initial route resolution request message;
determining whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name, wherein the preset domain name configuration information comprises a correspondence between a domain name, a specified domain name resolution server and an address of the specified domain name resolution server;
if there is a specified domain name resolution server corresponding to the requested domain name, modifying a default destination address of the initial route resolution request message to an address of the specified domain name resolution server, so as to obtain a routing information request message;
searching for routing information corresponding to the routing information request message according to the routing information request message and preset routing information, wherein the preset routing information comprises a correspondence between mark information and routing information; and
sending a data packet to a destination address corresponding to the requested domain name according to the routing information.
2. The data packet routing method of claim 1, wherein the step of modifying a default destination address of the initial route resolution request message to an address of the specified domain name resolution server so as to obtain a routing information request message comprises:
after the default destination address is modified to the address of the specified domain name resolution server, sending the initial route resolution request message to the address of the specified domain name resolution server, so as to obtain the routing information request message from the specified domain name resolution server, wherein the routing information request message comprises an IP address corresponding to the requested domain name.
3. The data packet routing method of claim 2, wherein the step of searching for routing information corresponding to the routing information request message according to the routing information request message and preset routing information comprises:
according to preset filtering information and the routing information request message, determining whether the IP address corresponding to the requested domain name in the routing information request message is included in the preset filtering information, wherein the preset filtering information comprises a correspondence between an IP address corresponding to a domain name in the preset domain name configuration information and mark information;
if a determination result is yes, setting mark information in the routing information request message, and searching for the routing information corresponding to the routing information request message according to the preset routing information and the mark information in the routing information request message; and
if the determination result is no, searching for the routing information corresponding to the routing information request message according to the preset routing information and the IP address corresponding to the requested domain name in the routing information request message.
4. The data packet routing method of claim 1, wherein the requested domain name comprises domain name subject information of the requested domain name or domain name suffix information of the requested domain name, and
wherein the step of determining whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name comprises:
determining whether there is a specified domain name resolution server corresponding to the domain name subject information according to the preset domain name configuration information and the domain name subject information, or
determining whether there is a specified domain name resolution server corresponding to the domain name suffix information according to the preset domain name configuration information and the domain name suffix information.
5. The data packet routing method of claim 1, wherein the step of obtaining a requested domain name in the initial route resolution request message comprises:
obtaining a specified domain name resolution server corresponding to the requested domain name, and
wherein before the step of modifying a default destination address of the initial route resolution request message to an address of the specified domain name resolution server so as to obtain a routing information request message, the data packet routing method further comprises:
searching for an address of the specified domain name resolution server according to the preset domain name configuration information and the specified domain name resolution server.
6. The data packet routing method of claim 1, wherein the requested domain name comprises a source address of the initial route resolution request message, and
wherein the step of determining whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name comprises:
determining whether there is a specified domain name resolution server corresponding to the source address of the initial route resolution request message according to the preset domain name configuration information and the source address of the initial route resolution request message.
7. The data packet routing method of claim 1, wherein if there is no specified domain name resolution server corresponding to the requested domain name, the initial route resolution request message is sent to the default destination address, so as to obtain the routing information request message, wherein the routing information request message comprises an IP address corresponding to the requested domain name.
8. A data packet routing device, comprising:
a route resolution request message acquiring module configured to receive and resolve an initial route resolution request message to obtain a requested domain name in the initial route resolution request message;
a specified domain name resolution server acquiring module configured to determine whether there is a specified domain name resolution server corresponding to the requested domain name according to preset domain name configuration information and the requested domain name, wherein the preset domain name configuration information comprises a correspondence between a domain name, a specified domain name resolution server and an address of the specified domain name resolution server;
a routing information request message acquiring module configured to modify a default destination address of the initial route resolution request message to an address of the specified domain name resolution server if there is a specified domain name resolution server corresponding to the requested domain name, so as to obtain a routing information request message;
a routing information acquiring module configured to search for routing information corresponding to the routing information request message according to the routing information request message and preset routing information, wherein the preset routing information comprises a correspondence between mark information and routing information; and
a sending module configured to send a data packet to a destination address corresponding to the requested domain name according to the routing information.
9. The data packet routing device of claim 8, wherein the routing information request message acquiring module is further configured to:
after the routing information request message acquiring module modifies the default destination address to the address of the specified domain name resolution server, send the initial route resolution request message to the address of the specified domain name resolution server, so as to obtain the routing information request message from the specified domain name resolution server, wherein the routing information request message comprises an IP address corresponding to the requested domain name.
10. The data packet routing device of claim 9, wherein the routing information acquiring module comprises a mark information acquisition unit and a routing information acquisition unit, wherein
the mark information acquisition unit is configured to determine whether the IP address corresponding to the requested domain name in the routing information request message is included in preset filtering information according to the preset filtering information and the routing information request message, and set mark information in the routing information request message if a determination result is yes, wherein the preset filtering information comprises a correspondence between an IP address corresponding to a domain name in the preset domain name configuration information and mark information, and
the routing information acquisition unit is configured to, when the mark information is set in the routing information request message, search for the routing information corresponding to the routing information request message according to the preset routing information and the mark information in the routing information request message, when the mark information is not set in the routing information request message, search for the routing information corresponding to the routing information request message according to the preset routing information and the IP address corresponding to the requested domain name in the routing information request message.
11. The data packet routing device of claim 8, wherein the requested domain name comprises domain name subject information of the requested domain name or domain name suffix information of the requested domain name, and
wherein the specified domain name resolution server acquiring module is further configured to determine whether there is a specified domain name resolution server corresponding to the domain name subject information according to the preset domain name configuration information and the domain name subject information, or determine whether there is a specified domain name resolution server corresponding to the domain name suffix information according to the preset domain name configuration information and the domain name suffix information.
12. The data packet routing device of claim 8, wherein the route resolution request message acquiring module is further configured to,
obtain a specified domain name resolution server corresponding to the requested domain name, and
wherein the specified domain name resolution server acquiring module is further configured to
search for an address of the specified domain name resolution server according to the preset domain name configuration information and the specified domain name resolution server.
13. The data packet routing device of claim 8, wherein the requested domain name comprises a source address of the initial route resolution request message, and
wherein the specified domain name resolution server acquiring module is further configured to
determine whether there is a specified domain name resolution server corresponding to the source address of the initial route resolution request message according to the preset domain name configuration information and the source address of the initial route resolution request message.
14. The data packet routing device of claim 8, wherein the routing information request message acquiring module is further configured to:
if there is no specified domain name resolution server corresponding to the requested domain name, send the initial route resolution request message to the default destination address, so as to obtain the routing information request message, wherein the routing information request message comprises an IP address corresponding to the requested domain name.
15. A computer-readable storage medium storing computer programs which, when executed by a processor, cause the processor to perform the data packet routing method of claim 1.
US16/631,467 2017-07-20 2018-04-13 Data packet routing method and data packet routing device Active 2038-11-03 US11381503B2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201710595398.1A CN109286568A (en) 2017-07-20 2017-07-20 A kind of data packet routing method and data packet route device
CN201710595398.1 2017-07-20
PCT/CN2018/082956 WO2019015363A1 (en) 2017-07-20 2018-04-13 Data packet routing method and data packet routing device

Publications (2)

Publication Number Publication Date
US20200186469A1 true US20200186469A1 (en) 2020-06-11
US11381503B2 US11381503B2 (en) 2022-07-05

Family

ID=65014975

Family Applications (1)

Application Number Title Priority Date Filing Date
US16/631,467 Active 2038-11-03 US11381503B2 (en) 2017-07-20 2018-04-13 Data packet routing method and data packet routing device

Country Status (4)

Country Link
US (1) US11381503B2 (en)
EP (1) EP3657741A4 (en)
CN (1) CN109286568A (en)
WO (1) WO2019015363A1 (en)

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030154306A1 (en) 2002-02-11 2003-08-14 Perry Stephen Hastings System and method to proxy inbound connections to privately addressed hosts
GB2458279A (en) * 2008-03-11 2009-09-16 Nec Corp Network access control via mobile terminal gateway
US8910270B2 (en) 2009-01-20 2014-12-09 Microsoft Corporation Remote access to private network resources from outside the network
CN102970387A (en) * 2012-11-15 2013-03-13 上海牙木通讯技术有限公司 Domain name resolution method, device and system
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system
CN103634214B (en) 2013-11-25 2017-08-25 北京神州绿盟信息安全科技股份有限公司 A kind of routing iinformation generation method and device
CN104767690B (en) * 2014-01-08 2018-11-27 杭州迪普科技股份有限公司 A kind of flow scheduling device and method
CN105577843A (en) * 2014-11-07 2016-05-11 华耀(中国)科技有限公司 System and method for realizing link load balance based on multi-strategy DNS proxy
US10015094B1 (en) * 2015-06-19 2018-07-03 Amazon Technologies, Inc. Customer-specified routing policies
EP3275151B1 (en) * 2015-08-31 2020-04-29 Hewlett-Packard Enterprise Development LP Collecting domain name system traffic
CN105897947B (en) * 2016-04-08 2019-04-30 网宿科技股份有限公司 The Network Access Method and device of mobile terminal
US10033691B1 (en) * 2016-08-24 2018-07-24 Amazon Technologies, Inc. Adaptive resolution of domain name requests in virtual private cloud network environments
CN106549944A (en) 2016-10-17 2017-03-29 上海斐讯数据通信技术有限公司 A kind of domain filter method based on linux kernel Hash table

Also Published As

Publication number Publication date
US11381503B2 (en) 2022-07-05
EP3657741A1 (en) 2020-05-27
EP3657741A4 (en) 2021-03-10
CN109286568A (en) 2019-01-29
WO2019015363A1 (en) 2019-01-24

Similar Documents

Publication Publication Date Title
US9300623B1 (en) Domain name system cache integrity check
US9143389B2 (en) Methods, appratuses, and computer program products for determining a network interface to access a network resource
US8762573B2 (en) Reverse DNS lookup with modified reverse mappings
WO2018112944A1 (en) Domain name resolution method and apparatus
US9231903B2 (en) System and method for resolving a DNS request using metadata
EP2769307B1 (en) Answer augmentation system for authoritative dns servers
US11347797B2 (en) Asset search and discovery system using graph data structures
US20200169880A1 (en) Network service system and network service method
WO2015117337A1 (en) Method and apparatus for setting network rule entry
CN110049022B (en) Domain name access control method and device and computer readable storage medium
TWI652585B (en) Method and server for remotely querying information
US9973590B2 (en) User identity differentiated DNS resolution
WO2014047913A1 (en) Method, terminal and system for dual-stack terminal to access server
CN112291384B (en) Information processing method for domain name resolution and electronic equipment
US20170289101A1 (en) Nat aware dns
CN105429880B (en) The network equipment and its method for carrying out routing forwarding
US11381503B2 (en) Data packet routing method and data packet routing device
US8073957B2 (en) Communication control system
JP6523768B2 (en) Name resolution device, name resolution method and name resolution program
EP2647179B1 (en) Service access apparatus, method, computer program and computer program product for selective initiation of communication
CN114338597A (en) Network access method and device
CN111371915B (en) IP address list maintenance method and device and gateway equipment
WO2021108993A1 (en) Systems and methods for load control of domain name system server
KR101401004B1 (en) Security device including sniffing unit and operating method thereof
CN115665086A (en) Domain name resolution method and device based on network management equipment and electronic equipment

Legal Events

Date Code Title Description
FEPP Fee payment procedure

Free format text: ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: BIG.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: NOTICE OF ALLOWANCE MAILED -- APPLICATION RECEIVED IN OFFICE OF PUBLICATIONS

AS Assignment

Owner name: ZTE CORPORATION, CHINA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:TIAN, SHIXIN;REEL/FRAME:060074/0555

Effective date: 20220531

STPP Information on status: patent application and granting procedure in general

Free format text: PUBLICATIONS -- ISSUE FEE PAYMENT VERIFIED

STCF Information on status: patent grant

Free format text: PATENTED CASE