A routing strategy configuration method, device, equipment and storage medium

By parsing the DNS response and issuing an end-to-end routing policy by the controller, the existing technology problems of large CPE resource occupation and difficulty in policy adjustment are solved, and resource saving and policy adjustment are facilitated.

CN114640628BActive Publication Date: 2025-01-21CHINA MOBILE COMM LTD RES INST +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011487250.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-16
Publication Date
2025-01-21
Estimated Expiration
2040-12-16

AI Technical Summary

Technical Problem

When the prior art terminal accesses cloud-side applications, it is necessary to configure a full amount of routing policies for each CPE, resulting in large resource usage and difficult policy adjustment.

Method used

The controller receives the terminal's DNS request, parses the destination address in the DNS response, determines the end-to-end routing policy, and delivers it to the corresponding CPE to avoid configuring a full policy to each CPE.

Benefits of technology

It achieves centralized control of routing policies, reduces CPE resource occupation, and simplifies the adjustment and update process of routing policies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114640628B_ABST
    Figure CN114640628B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, apparatus, device and storage medium for configuring a routing strategy. The method comprises: a controller receives a domain name system (DNS) request from a terminal through a first customer premise equipment (CPE), and sends the DNS request to a DNS server; the controller receives a DNS response from the DNS server, determines a first routing strategy according to a destination address in the DNS response, and sends the DNS response and the first routing strategy to the first CPE.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technology, and in particular to a routing strategy configuration method, device, equipment and storage medium. Background Art

[0002] When a terminal accesses a cloud-side application, it is often necessary to provide different levels of service for the application. Different levels of service can correspond to different network paths between the terminal and the cloud-side application. The way to associate paths in a software-defined wide area network (SD-WAN) is usually to configure the forwarding policies corresponding to different applications in the customer premise equipment (CPE), and associate the forwarding policies through the domain name system (DNS) domain name. When the CPE receives a DNS response, it resolves the DNS domain name to the corresponding IP address and determines the corresponding forwarding policy based on the IP address.

[0003] This method requires configuring the DNS domain name and the corresponding forwarding policy on each CPE through the controller. The configuration workload is huge, so all CPEs are configured with full policy configuration by default. Full policy configuration requires a lot of resources. In addition, after each policy adjustment, the policy configuration of all CPEs needs to be updated. Policy adjustment is difficult and the policy configuration needs to be updated synchronously to all CPEs. Summary of the invention

[0004] In order to solve the existing technical problems, the embodiments of the present invention provide a routing policy configuration method, device, equipment and storage medium.

[0005] To achieve the above object, the technical solution of the embodiment of the present invention is implemented as follows:

[0006] In a first aspect, an embodiment of the present invention provides a routing policy configuration method, the method comprising:

[0007] The controller receives a DNS request from the terminal through the first CPE, and sends the DNS request to the DNS server;

[0008] The controller receives a DNS response from the DNS server, determines a first routing policy according to a destination address in the DNS response, and sends the DNS response and the first routing policy to the first CPE.

[0009] In the above scheme, sending the DNS response and the first routing policy to the first CPE includes: the controller sending a DNS response message to the first CPE, the DNS response message including the DNS response and the first routing policy; the extension field in the DNS response message carries the first routing policy.

[0010] In the above scheme, the first routing strategy represents the forwarding path from the terminal to the application; the method also includes: the controller determines the second routing strategy based on the first routing strategy, and sends the second routing strategy to the second CPE, the second routing strategy represents the forwarding path from the application to the terminal; the second CPE is a CPE located on the application side in the transmission path between the terminal and the application.

[0011] In a second aspect, an embodiment of the present invention further provides a routing policy configuration method, the method comprising:

[0012] The first CPE receives a DNS request sent by the terminal, and sends the DNS request to the controller;

[0013] The first CPE receives the first routing policy sent by the controller and a DNS response corresponding to the DNS request.

[0014] In the above solution, the first CPE receives the first routing policy sent by the controller and the DNS response corresponding to the DNS request, including:

[0015] The first CPE receives a DNS response message sent by the controller, wherein the DNS response message includes the DNS response and the first routing policy; an extension field in the DNS response message carries the first routing policy.

[0016] In the above scheme, the method also includes: the first CPE strips the extension field in the DNS response message, obtains the DNS response, and sends the DNS response to the terminal.

[0017] In a third aspect, an embodiment of the present invention further provides a routing strategy configuration device, the device comprising: a first communication unit and a first processing unit; wherein,

[0018] The first communication unit is used to receive a DNS request from a terminal through a first CPE, and send the DNS request to a DNS server; and is also used to receive a DNS response from the DNS server;

[0019] The first processing unit is used to determine a first routing strategy according to the destination address in the DNS response;

[0020] The first communication unit is further used to send the DNS response and the first routing policy to the first CPE.

[0021] In the above scheme, the first communication unit is used to send a DNS response message to the first CPE, and the DNS response message includes the DNS response and the first routing policy; the extension field in the DNS response message carries the first routing policy.

[0022] In the above solution, the first routing strategy represents a forwarding path from the terminal to the application;

[0023] The first processing unit is further configured to determine a second routing strategy according to the first routing strategy; the second routing strategy represents a forwarding path from the application to the terminal;

[0024] The first communication unit is further used to send the second routing strategy to a second CPE, where the second CPE is a CPE located on the application side in the transmission path between the terminal and the application.

[0025] In a fourth aspect, an embodiment of the present invention further provides a routing policy configuration device, the device comprising: a first receiving unit and a first sending unit; wherein,

[0026] The first receiving unit is used to receive a DNS request sent by a terminal;

[0027] The first sending unit is used to send the DNS request to the controller;

[0028] The first receiving unit is further used to receive the first routing policy sent by the controller and a DNS response corresponding to the DNS request.

[0029] In the above scheme, the first receiving unit is used to receive a DNS response message sent by the controller, and the DNS response message includes the DNS response and the first routing policy; the extended field in the DNS response message carries the first routing policy.

[0030] In the above solution, the device further includes a second processing unit, configured for the first CPE to strip the extension field in the DNS response message to obtain the DNS response;

[0031] The first sending unit is further configured to send the DNS response to the terminal.

[0032] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect of the embodiment of the present invention; or, when executed by a processor, implements the steps of the method described in the second aspect of the embodiment of the present invention.

[0033] In a sixth aspect, an embodiment of the present invention further provides a communication device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method described in the first aspect of the embodiment of the present invention are implemented; or, when the processor executes the program, the steps of the method described in the second aspect of the embodiment of the present invention are implemented.

[0034] The routing policy configuration method, apparatus, device and storage medium provided by the embodiments of the present invention are as follows: after the first CPE receives the DNS request of the terminal, the DNS request is sent to the controller, and the controller sends the DNS request to the DNS server and obtains a DNS response; the controller parses the DNS response message to obtain the destination address, determines the end-to-end first routing policy according to the destination address, and then sends the first routing policy to the first CPE. In this way, the selection and control of the routing policy is realized by the controller, and there is no need to configure the routing policy for each CPE, thereby avoiding the problem of configuring a full amount of routing policies for all CPEs, resulting in a large amount of resources being occupied in the CPE. In addition, when adjusting the routing policy, only the routing policy in the controller needs to be adjusted, which facilitates the update of the routing policy. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of routing policy configuration and DNS message interaction in related technologies;

[0036] Figure 2 The following is a flow chart of the routing policy configuration method according to an embodiment of the present invention. Figure 1 ;

[0037] Figure 3 An interactive schematic diagram of a routing policy configuration method according to an embodiment of the present invention;

[0038] Figure 4 A schematic diagram of DNS message interaction in the routing policy configuration method according to an embodiment of the present invention;

[0039] Figure 5 A schematic diagram of an extended field of a DNS response message in a method for configuring a routing policy according to an embodiment of the present invention;

[0040] Figure 6 The following is a flow chart of the routing policy configuration method according to an embodiment of the present invention. Figure 2 ;

[0041] Figure 7a and Figure 7b They are schematic diagrams of application scenarios of embodiments of the present invention;

[0042] Figure 8 The structure diagram of the routing policy configuration device according to the embodiment of the present invention is as follows: Figure 1 ;

[0043] Fig. 9 The structure diagram of the routing policy configuration device according to the embodiment of the present invention is as follows: Figure 2 ;

[0044] Fig.10 The figure is a schematic diagram of the hardware structure of the communication device according to the embodiment of the present invention. DETAILED DESCRIPTION

[0045] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0046] Figure 1 It is a schematic diagram of routing policy configuration and DNS message interaction in related technologies; Figure 1 As shown, when a terminal or client accesses an application, such as a website or Software-as-a-Service (SaaS), the terminal first initiates a DNS request to CPE1. CPE1, as a DNS proxy, sends the DNS request to the DNS server (i.e., step ① shown in the figure); the DNS server returns a DNS response to CPE1 (i.e., step ② shown in the figure). CPE1 is pre-configured with routing policies for various applications. After receiving the DNS response, it records the DNS domain name and IP address, determines the corresponding routing policy based on the DNS domain name and / or IP address, and subsequently forwards the message according to the routing policy. As shown in the figure, there are two paths, one is the Multi-Protocol Label Switching (MPLS) path, and the other is the Internet path.

[0047] It should be noted that the routing policy obtained by CPE1 is only the first-hop routing information. Exemplarily, each path includes multiple nodes, for example, path 1 may include three nodes, and path 2 includes two nodes. The three nodes included in path 1 and the two nodes included in path 2 may be completely different nodes, or may include partially identical nodes. Therefore, the routing policy obtained by CPE1 is only the routing information from CPE1 to the first node in the path, and does not include the complete routing information from CPE1 to the peer CPE2. Therefore, this method also lacks end-to-end path control.

[0048] The routing policy configuration method provided in the present application parses the DNS response message through the controller to obtain the destination address, determines the end-to-end routing policy based on the destination address, and then sends the routing policy to the first CPE. In this way, the selection and control of the routing policy is realized through the controller.

[0049] An embodiment of the present invention provides a routing policy configuration method, which is applied to a controller. Figure 2 FIG. 1 is a flow chart of a method for configuring a routing policy according to an embodiment of the present invention; Figure 2 As shown, the method includes:

[0050] Step 101: The controller receives a DNS request from a terminal through a first CPE, and sends the DNS request to a DNS server;

[0051] Step 102: The controller receives a DNS response from the DNS server, determines a first routing policy according to a destination address in the DNS response, and sends the DNS response and the first routing policy to the first CPE.

[0052] In this embodiment, when the terminal accesses an application or web page, it first initiates a DNS request to the first CPE. After receiving the DNS request, the first CPE sends the DNS request to the controller, which sends the DNS request to the DNS server, and the controller receives the DNS response returned by the DNS server.

[0053] Figure 3 FIG. 1 is an interactive diagram of a method for configuring a routing policy according to an embodiment of the present invention; Figure 3 As shown, when a terminal or client accesses an application, such as a website or SaaS service, the terminal first initiates a DNS request to CPE1. CPE1, as a DNS proxy, sends the DNS request to the SD-WAN controller, and the SD-WAN controller sends the DNS request to the DNS server (as shown in step ① in the figure); the DNS server feeds back a DNS response, which is sent by the SD-WAN controller to CPE1 (as shown in step ② in the figure).

[0054] Compared with the related technical solutions, the embodiment of the present application expands the functions of the controller, receives the DNS request sent by the first CPE through the controller, obtains the DNS response returned by the DNS server, and determines the routing strategy according to the destination address in the DNS response.

[0055] In this embodiment, the routing strategy determined by the controller is an end-to-end routing strategy. Figure 1 In the example shown, the end-to-end routing policy is the routing policy from CPE1 to CPE2. Exemplarily, if the end-to-end transmission path includes multiple nodes, the routing policy may include the destination address of each node, so that the message can be forwarded from the first CPE according to each destination address recorded in the above routing policy, so as to reach the CPE at the opposite end (the second CPE).

[0056] In this embodiment, the controller may be a controller in a related technical solution for configuring a routing policy for each CPE, or may be a controller in a DNS system architecture. In an SD-WAN scenario, the controller may be an SD-WAN controller as shown in the figure.

[0057] In this embodiment, the controller determines a first routing strategy according to the destination address carried in the DNS response, wherein the first routing strategy represents a forwarding path from the terminal to the application, that is, a forward end-to-end forwarding path. Exemplarily, the first routing strategy includes: Figure 3 The forwarding path from CPE1 to CPE2 is shown in FIG.

[0058] In one example, the destination address may include a DNS domain name and / or an IP address, and the controller may determine the service type or application type based on the DNS domain name and / or IP address, and determine the first routing strategy based on the service type or application type. The above-mentioned service type or application type may specifically be a web page type, a game type, a video type, and the like. In another example, the controller may also determine the first routing strategy based on the user type, or the user type and the service type (application type). The user type may be, for example, a paid user and a free user, and the like, or the user type may be represented, for example, by a user level. Exemplarily, if the user type is a paid user, the controller may determine, based on the paid user type, that the forwarding path represented by the first routing strategy is as follows. Figure 3 If the user type is a free user, the controller can determine that the forwarding path represented by the first routing strategy is a common conventional Internet path according to the free user type. Of course, the way in which the controller determines the first routing strategy in the embodiment of the present application is not limited to the above.

[0059] In some optional embodiments of the present invention, sending the DNS response and the first routing policy to the first CPE includes: the controller sending a DNS response message to the first CPE, the DNS response message including the DNS response and the first routing policy; the extension field in the DNS response message carries the first routing policy.

[0060] In this embodiment, the controller encapsulates the first routing policy in the DNS response message in an explicit manner. Specifically, the first routing policy is encapsulated in the EDNS0 option of the DNS response message. EDNS0 is an extension mechanism of DNS. In other words, refer to Figure 4As shown, after SD-WAN obtains the DNS response message returned by the DNS server, it encapsulates the first routing policy in the EDNS0 option of the DNS response message, and then sends the DNS response message to the CPE, which is equivalent to sending the DNS response returned by the DNS server and the first routing policy encapsulated in the EDNS0 option to CPE1.

[0061] Specifically, the EDNS0 option is located in the Additional Data area of ​​the DNS response message. The extension of the DNS response message is located in the OPT option pseudo-RR (pseudo resource record), which defines a new TLV (T for Type, indicating the message type, L for Length, indicating the message length, and V for Valve, indicating the content of the message) type. Figure 5 FIG. 4 is a schematic diagram of an extended field of a DNS response message in a method for configuring a routing policy according to an embodiment of the present invention; Figure 5 As shown, the EDNS0 option of the DNS response message includes a name (NAME) field, a type (TYPE) field, a class (CLASS) field, a TTL field, an RDLEN (RDATA length) field, an option code (Option Code) field, an option length (Option Length) field, and an option data (Option Data) field. Among them, the option code (Option Code) field defines the routing type or the segment routing (SR, Segment Routing) type, and the option data (Option Data) field carries the above-mentioned first routing strategy.

[0062] Exemplarily, the first routing strategy includes the address of each forwarding node, and the option data (OptionData) field includes a forwarding address list, for example, including the IPv6 address of each forwarding node.

[0063] In some optional embodiments of the present invention, the method also includes: the controller determines a second routing strategy based on the first routing strategy, and sends the second routing strategy to a second CPE, wherein the second routing strategy represents a forwarding path from the application to the terminal; the second CPE is a CPE located on the application side in the transmission path between the terminal and the application.

[0064] In this embodiment, the controller can obtain the second routing strategy by reverse sorting according to the first routing strategy, and the second routing strategy represents the forwarding path applied to the terminal, that is, the reverse end-to-end forwarding path. Figure 3 As shown in the example, the second routing strategy includes a forwarding path from CPE2 to CPE1; further, the controller sends the second routing strategy to the second CPE at the opposite end, for example Figure 3In the example shown, the controller sends the second routing policy to CPE2, so that when CPE2 is about to send data or messages to be applied to the terminal, it can forward the data or messages according to the second routing policy.

[0065] Exemplarily, the controller associates the second routing policy with the address of the first CPE and sends the association to the second CPE.

[0066] By adopting the technical solution of the embodiment of the present invention, the DNS response message is parsed by the controller to obtain the destination address, the end-to-end routing strategy is determined according to the destination address, and then the routing strategy is sent to the first CPE. In this way, the selection and control of the routing strategy is realized by the controller, and there is no need to configure the routing strategy for each CPE, so as to avoid the problem of occupying a large amount of resources in the CPE due to configuring the full amount of routing strategy for all CPEs, and when the routing strategy is adjusted, only the routing strategy in the controller needs to be adjusted, which facilitates the update of the routing strategy. In addition, the embodiment of the present invention determines the end-to-end routing strategy through the controller, including the forward end-to-end routing strategy and the reverse end-to-end routing strategy, so as to realize the determination and control of the end-to-end forwarding path.

[0067] Based on the foregoing embodiments, an embodiment of the present invention further provides a routing policy configuration method, which is applied to a first CPE. Figure 6 The following is a flow chart of the routing policy configuration method according to an embodiment of the present invention. Figure 2 ;like Figure 6 As shown, the method includes:

[0068] Step 201: The first CPE receives a DNS request sent by a terminal, and sends the DNS request to a controller;

[0069] Step 202: The first CPE receives the first routing policy sent by the controller and a DNS response corresponding to the DNS request.

[0070] In some optional embodiments, the first CPE receives the first routing policy sent by the controller and the DNS response corresponding to the DNS request, including: the first CPE receives a DNS response message sent by the controller, the DNS response message including the DNS response and the first routing policy; and an extended field in the DNS response message carries the first routing policy.

[0071] In this embodiment, the controller encapsulates the first routing policy in the DNS response message in an explicit manner. Specifically, the first routing policy is encapsulated in the EDNS0 option of the DNS response message. EDNS0 is an extension mechanism of DNS. In other words, refer to Figure 4As shown, after SD-WAN obtains the DNS response message returned by the DNS server, it encapsulates the first routing policy in the EDNS0 option of the DNS response message, and then sends the DNS response message to the CPE, which is equivalent to sending the DNS response returned by the DNS server and the first routing policy encapsulated in the EDNS0 option to CPE1. The EDNS0 option can be specifically referred to in the aforementioned embodiment and Figure 5 The detailed records shown will not be repeated here.

[0072] In some optional embodiments, the method further includes: the first CPE stripping the extension field in the DNS response message, obtaining the DNS response, and sending the DNS response to the terminal.

[0073] In this embodiment, the first CPE strips the extension field in the DNS response message, that is, strips the EDNS0 option in the DNS response message, obtains a DNS response, and then sends the DNS response to the terminal. The first CPE can forward traffic corresponding to the terminal according to the first routing policy.

[0074] Figure 7a and Figure 7b They are schematic diagrams of application scenarios of embodiments of the present invention; Figure 7a As shown, the technical solution of the embodiment of the present application realizes network path collaboration based on application units (application granularity). The controller can determine the routing strategy according to the service type or application type and send it to the CPE to realize the collaboration between application and network.

[0075] like Figure 7b As shown, the technical solution of the embodiment of the present application realizes a service chain based on applications (application granularity). On the one hand, the controller can determine the forwarding path according to the service type or application type, and on the other hand, the value-added service (VAS) is added to the SRv6 network path and sent to the CPE to realize the service chain function.

[0076] The embodiment of the present invention further provides a routing policy configuration device, which is applied in a controller. Figure 8 FIG. 1 is a schematic diagram of the structure of the routing policy configuration device according to an embodiment of the present invention; Figure 8 As shown, the device comprises: a first communication unit 31 and a first processing unit 32; wherein,

[0077] The first communication unit 31 is used to receive a DNS request from a terminal through the first CPE and send the DNS request to a DNS server; and is also used to receive a DNS response from the DNS server;

[0078] The first processing unit 32 is used to determine a first routing strategy according to the destination address in the DNS response;

[0079] The first communication unit 31 is further used to send the DNS response and the first routing policy to the first CPE.

[0080] In some optional embodiments of the present invention, the first communication unit 31 is used to send a DNS response message to the first CPE, wherein the DNS response message includes the DNS response and the first routing policy; and the extension field in the DNS response message carries the first routing policy.

[0081] In some optional embodiments of the present invention, the first routing strategy represents a forwarding path from the terminal to the application;

[0082] The first processing unit 32 is further configured to determine a second routing strategy according to the first routing strategy; the second routing strategy represents a forwarding path from the application to the terminal;

[0083] The first communication unit 31 is further used to send the second routing strategy to a second CPE, where the second CPE is a CPE located on the application side in the transmission path between the terminal and the application.

[0084] In an embodiment of the present invention, the first processing unit 32 in the routing strategy configuration device can be implemented by a central processing unit (CPU), a digital signal processor (DSP), a microcontroller unit (MCU) or a programmable gate array (FPGA) in the device in actual applications; the first communication unit 31 of the routing strategy configuration device can be implemented by a communication module (including: a basic communication kit, an operating system, a communication module, a standardized interface and protocol, etc.) and a transceiver antenna in actual applications.

[0085] The embodiment of the present invention further provides a routing policy configuration device, which is applied in CPE. Fig. 9 FIG. 1 is a schematic diagram of the structure of the routing policy configuration device according to an embodiment of the present invention; Fig. 9 As shown, the device includes: a first receiving unit 41 and a first sending unit 42; wherein,

[0086] The first receiving unit 41 is used to receive a DNS request sent by a terminal;

[0087] The first sending unit 42 is used to send the DNS request to the controller;

[0088] The first receiving unit 41 is further configured to receive the first routing policy sent by the controller and a DNS response corresponding to the DNS request.

[0089] In some optional embodiments of the present invention, the first receiving unit 41 is used to receive a DNS response message sent by the controller, wherein the DNS response message includes the DNS response and the first routing policy; the extended field in the DNS response message carries the first routing policy.

[0090] In some optional embodiments of the present invention, the apparatus further includes a second processing unit 43, configured for the first CPE to strip the extension field in the DNS response message to obtain the DNS response;

[0091] The first sending unit 42 is further configured to send the DNS response to the terminal.

[0092] In an embodiment of the present invention, the second processing unit 42 in the routing policy configuration device can be implemented by the CPU, DSP, MCU or FPGA in the device in actual applications; the first receiving unit 41 and the first sending unit 42 of the routing policy configuration device can be implemented by a communication module (including: basic communication kit, operating system, communication module, standardized interface and protocol, etc.) and a transceiver antenna in actual applications.

[0093] It should be noted that: the routing policy configuration device provided in the above embodiment only uses the division of the above program modules as an example when performing routing policy configuration. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the routing policy configuration device provided in the above embodiment and the routing policy configuration method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0094] An embodiment of the present invention further provides a communication device, which is specifically the controller or CPE (first CPE) in the aforementioned embodiment. Fig.10 FIG. 1 is a schematic diagram of the hardware structure of a communication device according to an embodiment of the present invention. Fig.10As shown, the controller includes a memory 52, a processor 51, and a computer program stored in the memory 52 and executable on the processor 51. When the processor 51 executes the program, the steps of the routing policy configuration method applied to the controller as described above in the embodiment of the present invention are implemented; or, when the processor 51 executes the program, the steps of the routing policy configuration method applied to the CPE (first CPE) as described above in the embodiment of the present invention are implemented.

[0095] Optionally, the controller further includes a network interface 53. The various components in the controller are coupled together via a bus system 54. It is understood that the bus system 54 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 54 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.10 Various buses are labeled as bus system 54 .

[0096] It can be understood that the memory 52 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 52 described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

[0097] The method disclosed in the above embodiment of the present invention can be applied to the processor 51, or implemented by the processor 51. The processor 51 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 51 or the instruction in the form of software. The above processor 51 can be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 51 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be combined to execute. The software module can be located in a storage medium, which is located in the memory 52. ​​The processor 51 reads the information in the memory 52 and completes the steps of the above method in combination with its hardware.

[0098] In an exemplary embodiment, the communication device may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), FPGA, general purpose processor, controller, MCU, microprocessor, or other electronic components to execute the aforementioned method.

[0099] In an exemplary embodiment, the present invention also provides a computer-readable storage medium, such as a memory 52 including a computer program, which can be executed by a processor 51 of a communication device to complete the steps of the aforementioned method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM; or it can be various devices including one or any combination of the above memories.

[0100] An embodiment of the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the routing policy configuration method applied to the controller as described above in the embodiment of the present invention; or, when executed by a processor, implements the steps of the routing policy configuration method applied to the CPE (first CPE) as described above in the embodiment of the present invention.

[0101] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0102] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0103] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0104] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0105] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0106] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0107] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium, which, when executed, executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, disks or optical disks.

[0108] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0109] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A routing policy configuration method, characterized in that: The method comprises: The controller receives a domain name system DNS request from the terminal through a first customer premise equipment CPE, and sends the DNS request to a DNS server; The controller receives a DNS response from the DNS server, determines a first routing strategy according to a destination address in the DNS response, and sends the DNS response and the first routing strategy to the first CPE; the first routing strategy indicates a forwarding path from the terminal to the application; The controller determines a second routing strategy based on the first routing strategy, and sends the second routing strategy to a second CPE, where the second routing strategy represents a forwarding path from the application to the terminal; the second CPE is a CPE located on the application side in the transmission path between the terminal and the application.

2. The method according to claim 1, characterized in that The sending the DNS response and the first routing policy to the first CPE includes: The controller sends a DNS response message to the first CPE, where the DNS response message includes the DNS response and the first routing policy; an extension field in the DNS response message carries the first routing policy.

3. A routing policy configuration device, characterized in that: The device comprises: a first communication unit and a first processing unit; wherein, The first communication unit is used to receive a domain name system DNS request from a terminal through a first customer premise equipment CPE, and send the DNS request to a DNS server; and is also used to receive a DNS response from the DNS server; The first processing unit is used to determine a first routing strategy according to the destination address in the DNS response; the first routing strategy represents a forwarding path from the terminal to the application; The first communication unit is further configured to send the DNS response and the first routing policy to the first CPE; The first processing unit is further configured to determine a second routing strategy according to the first routing strategy; the second routing strategy represents a forwarding path from the application to the terminal; The first communication unit is further used to send the second routing strategy to a second CPE, where the second CPE is a CPE located on the application side in the transmission path between the terminal and the application.

4. The device according to claim 3, characterized in that The first communication unit is used to send a DNS response message to the first CPE, wherein the DNS response message includes the DNS response and the first routing policy; the extension field in the DNS response message carries the first routing policy.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.

6. A communication device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • Communication method, device and system and computer readable storage medium

    CN111130822A