A business network channel configuration method, device, equipment and readable storage medium

By detecting and switching broadband access servers, IPTV terminals can automatically select other available channels when the BRAS network channel is disconnected, solving the problem of low connectivity of IPTV terminal services and improving service stability and connectivity.

CN118827362BActive Publication Date: 2025-09-23FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410927029.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2025-09-23
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

IPTV terminals cannot automatically select network channels provided by different BRASs, resulting in low service connectivity. If the network channel provided by the current BRAS is disconnected, the terminal cannot interact with the platform.

Method used

By detecting whether the network channel between the target address and the local IP address is disconnected, if it is disconnected and the network configuration file is not empty, the other broadband access servers contained in the network information configuration file are used as the current broadband access server, and the cycle continues until the network channel is connected, so that the terminal can automatically select the network channel provided by different broadband access servers according to the current business scenario.

Benefits of technology

It improves the connectivity of the service and ensures that even if the network channel provided by the current broadband access server is disconnected, the terminal can select other broadband access servers to interact with the platform, solving the problem of low service connectivity caused by the inability of IPTV terminals to automatically select network channels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118827362B_ABST
    Figure CN118827362B_ABST
Patent Text Reader

Abstract

The present invention discloses a service network channel configuration method, apparatus, device, and readable storage medium. The method comprises: determining a target address based on a current broadband access server, and using the IP address replied by the current broadband access server as the local IP address; detecting whether the network channel between the target address and the local IP address is disconnected; if disconnected, and the network configuration file is not empty, using any other broadband access server included in the network information configuration file as the current broadband access server; and returning to the step of determining the target address based on the current broadband access server until a network channel between the target address and the local IP address is connected. The present invention solves the technical problem in the related art that, because the IPTV terminal cannot automatically select the network channel provided by different broadband access servers, if the network channel provided by the current broadband access server is disconnected, the terminal cannot interact with the platform, resulting in low service connectivity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network configuration technology, and in particular to a service network channel configuration method, device, equipment and readable storage medium. Background Art

[0002] Currently, in order to provide users with a richer service experience, IPTV terminals, which are the most commonly used terminals among home users, need to support more applications and the network channels required by the applications.

[0003] However, the Android operating system used by IPTV terminals does not naturally have the ability to automatically select the network channels provided by different BRAS (Broadband Remote Access Servers, BRAS for short) according to different application requirements. The terminal can only interact with the platform through the network channel provided by the same BRAS at the same time. If the network channel provided by the BRAS is disconnected, the terminal cannot interact with the platform and the service cannot remain connected. Summary of the Invention

[0004] The present invention provides a service network channel configuration method, device, equipment and readable storage medium, which can solve the technical problem in the prior art that IPTV terminals cannot automatically select network channels provided by different BRASs, resulting in low service connectivity.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention provides a service network channel configuration method, the method comprising:

[0007] Determine the target address based on the current broadband access server, and use the IP address replied by the current broadband access server as the local IP address;

[0008] Check whether the network channel between the target address and the local IP address is disconnected;

[0009] If the network channel between the target address and the local IP address is disconnected, and the network configuration file is not empty, any other broadband access server included in the network information configuration file will be used as the current broadband access server;

[0010] Return to the step of determining the target address according to the current broadband access server and using the IP address replied by the current broadband access server as the local IP address until a network channel between the target address and the local IP address is connected.

[0011] Optionally, the step of determining the target address according to the current broadband access server includes:

[0012] When the address of the service server corresponding to the application is a domain name, the domain name is resolved through the DNS server information replied by the current broadband access server to obtain M IP addresses;

[0013] Based on a preset priority rule, the M IP addresses are sequentially used as target addresses.

[0014] Optionally, after the network channel between the target address and the local IP address is disconnected, the method further includes:

[0015] Deleting the identifier of the current broadband access server from the network information configuration file;

[0016] Check whether the network information configuration file is empty;

[0017] If the detection result shows that the network information configuration file is not empty, the step of using any other broadband access server included in the network information configuration file as the current broadband access server is executed.

[0018] Optionally, after the network channel between the target address and the local IP address is disconnected, the method further includes:

[0019] Marking the identifier of the current broadband access server as unavailable;

[0020] Checking whether the network information configuration file contains a broadband access server marked as available;

[0021] If it exists, it is determined that the network information configuration file is not empty, and the process returns to the step of using any other broadband access server included in the network information configuration file as the current broadband access server.

[0022] Optionally, after taking any other broadband access server included in the network information configuration file as the current broadband access server, the method further includes:

[0023] Return to the step of determining the target address according to the current broadband access server and using the IP address replied by the current broadband access server as the local IP address until the network information configuration file is empty.

[0024] Optionally, before the step of determining the target address according to the current broadband access server and using the IP address replied by the current broadband access server as the local IP address, the method further includes:

[0025] Real-time acquisition of IPv4 and IPv6 information returned by the broadband access server after receiving a network request;

[0026] Determining, based on the analysis result of the IPv4 information, the IP address, DNS server information, and identifier of the broadband access server corresponding to the IPv4 information;

[0027] Based on the IPv6 information, determining an IP address, DNS server information, and an identifier of a broadband access server corresponding to the IPv6 information;

[0028] Detecting whether the identifier of the broadband access server corresponding to the IPv4 information and / or the identifier of the broadband access server corresponding to the IPv6 information exists in the network configuration file;

[0029] If not, the IP address, DNS server information and identification of the broadband access server corresponding to the IPv4 information, and / or the IP address, DNS server information and identification of the broadband access server corresponding to the IPv6 information are stored in the network configuration file.

[0030] Optionally, the step of determining, based on the IPv6 information, an IP address, DNS information, and an identifier of a broadband access server corresponding to the IPv6 information includes:

[0031] Detecting whether the IPv6 information has a status;

[0032] If the IPv6 information is stateful, determining the IP address, DNS server information, and identifier of the broadband access server corresponding to the IPv6 information based on the parsing result of the IPv6 information;

[0033] If the IPv6 information is stateless, the IP address, DNS server information, and identifier of the broadband access server corresponding to the IPv6 information are determined based on the parsing result of the RA message.

[0034] In a second aspect, an embodiment of the present invention provides a service network channel configuration device, the device comprising:

[0035] An information determination module is configured to determine a target address according to a current broadband access server and use the IP address replied by the current broadband access server as the local IP address;

[0036] A detection module is configured to detect whether a network channel between a target address and the local IP address is disconnected;

[0037] The loop module is configured to use any other broadband access server contained in the network information configuration file as the current broadband access server if the network channel between the target address and the local IP address is disconnected and the network configuration file is not empty; return to execute the step of determining the target address based on the current broadband access server and using the IP address replied by the current broadband access server as the local IP address until the network channel between the target address and the local IP address is connected.

[0038] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: a memory and a processor; the processor is configured to read and execute a computer program stored in the memory to implement the aforementioned service network channel configuration method.

[0039] In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and when the computer executable instructions are executed, the aforementioned service network channel configuration method is implemented.

[0040] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include:

[0041] The method includes determining a target address according to a current broadband access server and using the IP address replied by the current broadband access server as the local IP address; detecting whether the network channel between the target address and the local IP address is disconnected; if the network channel between the target address and the local IP address is disconnected and the network configuration file is not empty, using any other broadband access server included in the network information configuration file as the current broadband access server; returning to the step of determining a target address according to the current broadband access server and using the IP address replied by the current broadband access server as the local IP address until a network channel between the target address and the local IP address is connected. With the present invention, the local terminal can automatically select network channels between the target address and provided by different broadband access servers according to the current business scenario. Even if the network channel provided by the current broadband access server is disconnected, the local terminal can still select network channels between the target address and provided by other broadband access servers to interact with the platform, thereby greatly improving business connectivity and solving the technical problem in the related art that the IPTV terminal cannot automatically select network channels provided by different broadband access servers. If the network channel provided by the current broadband access server is disconnected, the terminal cannot interact with the platform, resulting in low business connectivity. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0043] Figure 1 This is a flow chart of a first embodiment of a method for configuring a service network channel according to the present invention;

[0044] Figure 2 This is a flow chart of a second embodiment of a method for configuring a service network channel according to the present invention;

[0045] Figure 3 This is a flow chart of a third embodiment of a method for configuring a service network channel according to the present invention;

[0046] Figure 4 This is a flow chart of a fourth embodiment of a method for configuring a service network channel according to the present invention;

[0047] Figure 5 This is a functional module diagram of an embodiment of a service network channel configuration device of the present invention;

[0048] Figure 6 The figure is a schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0050] To make the objectives, technical solutions and advantages of the present invention more clear, embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0051] In a first aspect, an embodiment of the present invention provides a service network channel configuration method.

[0052] In one embodiment, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the service network channel configuration method of the present invention. Figure 1 As shown, the business network channel configuration method includes:

[0053] Step S10, determining the target address according to the current broadband access server, and using the IP address replied by the current broadband access server as the local IP address;

[0054] In this embodiment, after the business application starts running, the application initiates a request to obtain the address of the business server corresponding to the application through application layer protocols such as HTTP and RTSP. Detect whether the address of the business server corresponding to the application obtained is a domain name. Among them, the domain name (English: Domain Name), also known as the network domain, is the name of a computer or computer group on the Internet composed of a string of names separated by dots, which is used to locate the computer during data transmission. For example, a URL like "https: / / www.baidu.com" is a domain name, and a URL like "https: / / 192.168.1.1 / " is an IP address.

[0055] The IP address replied by the current broadband access server is used as the local IP address.

[0056] When the address of the service server corresponding to the application obtained by the local machine is a domain name, the domain name is resolved through the DNS server information replied by the current broadband access server to obtain M IP addresses, and the obtained M IP addresses are used as the target IP addresses.

[0057] When the address of the business server corresponding to the application obtained by the local machine is not a domain name, the address of the business server is used as the target IP address.

[0058] Optionally, in one embodiment, the step of determining the target address according to the current broadband access server includes:

[0059] When the address of the service server corresponding to the application is a domain name, the domain name is resolved through the DNS server information replied by the current broadband access server to obtain M IP addresses;

[0060] Based on a preset priority rule, the M IP addresses are used as target addresses in sequence.

[0061] In this embodiment, when the address of the business server corresponding to the application obtained by the local machine is a domain name, the address of the business server corresponding to the application for the domain name is sent to the DNS server corresponding to the DNS server information replied by the current broadband access server. The DNS server searches the M IP addresses corresponding to the domain name from the comparison table of domain names and IP addresses, and returns the N IP addresses corresponding to the domain name to the local machine.

[0062] If the preset priority rule is IPv4 priority, then among the M IP addresses, the IP addresses corresponding to IPv4 are prioritized as the target addresses in sequence, and then the IP addresses corresponding to IPv6 are prioritized as the target addresses in sequence.

[0063] If the preset priority rule is IPv6 priority, then among the M IP addresses, the IP addresses corresponding to IPv6 are prioritized as the target addresses in sequence, and then the IP addresses corresponding to IPv4 are prioritized as the target addresses in sequence.

[0064] Step S20, detecting whether the network channel between the target address and the local IP address is disconnected;

[0065] In this embodiment, the socket() function is used to detect the connectivity of the network channel between the target address and the local IP address. A socket is an abstract endpoint for bidirectional communication between application processes on different hosts in a network. It provides a mechanism for application layer processes to exchange data using network protocols.

[0066] It is easy to understand that the target address is obtained by resolving the domain name through the DNS server information replied by the current broadband access server. Therefore, the network channel between the target address and the local IP address is the network channel provided by the broadband access server.

[0067] Optionally, in one embodiment, after the network channel between the target address and the local IP address is disconnected, the method includes:

[0068] Deleting the identifier of the current broadband access server from the network information configuration file;

[0069] Check whether the network information configuration file is empty;

[0070] If the detection result shows that the network information configuration file is not empty, the step of using any other broadband access server included in the network information configuration file as the current broadband access server is executed.

[0071] In this embodiment, if the network channel between the target address obtained by resolving the domain name through the DNS server information replied by the current broadband access server and the local IP address is disconnected, it means that the network channel provided by the current broadband access server is unavailable. In this case, the current broadband access server is found through the DNS server information replied by the current broadband access server, and the current broadband access server is deleted from the network information configuration file to reduce the storage resources occupied by the network information configuration file.

[0072] Then, the network information configuration file is checked to see if it is empty, that is, whether there are other broadband access servers in the network information configuration file. If there are other broadband access servers, the step of using any other broadband access server included in the network information configuration file as the current broadband access server is executed. It will be readily understood that in this embodiment, the other broadband access server is the broadband access server included in the network configuration file after the current broadband access server is deleted from the network configuration file.

[0073] Optionally, in one embodiment, referring to Figure 2 , Figure 2 This is a flow chart of the second embodiment of the service network channel configuration method of the present invention. Figure 2 As shown, after the network channel between the target address and the local IP address is disconnected, the following steps are included:

[0074] Step S50: marking the identifier of the current broadband access server as unavailable;

[0075] Step S60, detecting whether the network information configuration file contains a broadband access server marked as available;

[0076] Step S70: If it exists, it is determined that the network information configuration file is not empty, and the process returns to the step of using any other broadband access server included in the network information configuration file as the current broadband access server.

[0077] In this embodiment, if the network channel between the target address and the local IP address is disconnected, the current broadband access server is found through the DNS server information replied by the current broadband access server, and the identifier of the current broadband access server is marked as unavailable. The DNS server information and IP address replied by the broadband access server corresponding to this identifier within the subsequent preset period will no longer be stored in the network information configuration file, so as to avoid repeated detection of the on-off status of the network channel provided by the broadband access server corresponding to this identifier.

[0078] Then, the network information configuration file is checked to see if there is a broadband access server marked as available;

[0079] If there is a broadband access server identified as available, it is determined that the network information configuration file is not empty, and then the step of using any other broadband access server included in the network information configuration file as the current broadband access server is performed. It is easy to understand that in this embodiment, the other broadband access server is the broadband access server identified as available.

[0080] Step S30: If the network channel between the target address and the local IP address is disconnected and the network configuration file is not empty, any other broadband access server included in the network information configuration file is used as the current broadband access server;

[0081] In this embodiment, if the socket() function detects that the network channel between the target address and the local IP address is disconnected, the network configuration file is checked to see if it is empty. If the network configuration file is not empty, any broadband access server is selected from other broadband access servers included in the network information configuration file as the current broadband access server.

[0082] Step S40, returning to the step of determining the target address according to the current broadband access server and using the IP address replied by the current broadband access server as the local IP address, until a network channel between the target address and the local IP address is connected.

[0083] In this embodiment, after any other broadband access server included in the network information configuration file is used as the current broadband access server, the process returns to the step of determining the target address based on the current broadband access server, using the IP address replied by the current broadband access server as the local IP address, and detecting whether the network channel between the target address and the local IP address is disconnected. This enables the terminal to select the network configuration (IP address and DNS server) corresponding to different broadband access servers according to application requirements, adaptively modify the terminal network configuration, and support different business functions.

[0084] If it is detected that there is a network channel connected between the target address and the local IP address, the loop ends, thereby ensuring that the currently selected network channel is in a connected state, capable of completing business functions and improving business connectivity.

[0085] If the detection result is still that the network channel between the target address and the local IP address is disconnected, continue to execute the loop step.

[0086] In this embodiment, a target address is determined based on the current broadband access server, and the IP address replied by the current broadband access server is used as the local IP address. Whether the network channel between the target address and the local IP address is disconnected is detected. If the network channel between the target address and the local IP address is disconnected and the network configuration file is not empty, any other broadband access server included in the network information configuration file is used as the current broadband access server. The process returns to the step of determining the target address based on the current broadband access server and using the IP address replied by the current broadband access server as the local IP address until a network channel between the target address and the local IP address is connected. With this embodiment, the local terminal can automatically select a network channel between the target address and the local terminal provided by a different broadband access server according to the current service scenario. Even if the network channel provided by the current broadband access server is disconnected, the local terminal can still select a network channel between the target address and the platform provided by another broadband access server. This greatly improves service connectivity and solves the problem in related arts that the IPTV terminal cannot automatically select a network channel provided by a different broadband access server. If the network channel provided by the current broadband access server is disconnected, the terminal cannot interact with the platform, resulting in low service connectivity.

[0087] Optionally, in one embodiment, after taking any other broadband access server included in the network information configuration file as the current broadband access server, the method further includes:

[0088] Return to the step of determining the target address according to the current broadband access server and using the IP address replied by the current broadband access server as the local IP address until the network information configuration file is empty.

[0089] In this embodiment, after selecting any other broadband access server included in the network information configuration file as the current broadband access server, the process returns to the step of determining the target address based on the current broadband access server, using the IP address replied by the current broadband access server as the local IP address, and detecting whether the network channel between the target address and the local IP address is disconnected. This allows the terminal to select the network configuration (IP address and DNS server) corresponding to different broadband access servers based on application requirements, adaptively modifying the terminal network configuration to support different service functions.

[0090] If the detection result shows that the network channel between the target address and the local IP address is disconnected, the network information configuration file is checked again to see if it is empty. If the network information configuration file is determined to be empty, the loop ends. If the network information configuration file is determined to be not empty, the loop steps continue.

[0091] Optionally, in one embodiment, referring to Figure 3 , Figure 3 This is a flow chart of the third embodiment of the service network channel configuration method of the present invention. Figure 3 As shown, when the address of the business server corresponding to the application is a domain name, before the step of determining M IP addresses obtained by resolving the domain name by the first target DNS server and using the IP address corresponding to the first target DNS server as the local IP address, the method includes:

[0092] Step S001: obtaining in real time the IPv4 information and IPv6 information replied by the broadband access server after receiving the network request;

[0093] Step S002: determining the IP address, DNS server information, and broadband access server identifier corresponding to the IPv4 information based on the analysis result of the IPv4 information;

[0094] Step S003: determining the IP address, DNS server information, and broadband access server identifier corresponding to the IPv6 information based on the IPv6 information;

[0095] Step S004: Detect whether the network configuration file contains an identifier of the broadband access server corresponding to the IPv4 information and / or an identifier of the broadband access server corresponding to the IPv6 information;

[0096] Step S005: If it does not exist, the IP address, DNS server information and broadband access server identifier corresponding to the IPv4 information, and / or the IP address, DNS server information and broadband access server identifier corresponding to the IPv6 information are stored in the network configuration file.

[0097] In this embodiment, the mechanism by which a terminal processes network information replied by a broadband access server is modified from a single-shot mechanism to a real-time, cyclical mechanism. The network information replied by the broadband access server is cyclically parsed and then stored in a network information configuration file. Specifically, the network information replied by the broadband access server after receiving a network request from the terminal is retrieved in real time. This network information includes both IPv4 and IPv6 information. When a terminal sends a network request, a DHCP request is a discovery message, while a PPPoE request is a PADT message. Broadband access servers (BRAS) include DHCPv4 and DHCPv6 servers.

[0098] Follow the RFC network protocol standard, parse the IPv4 information replied by the DHCPv4 server, obtain the IP address and DNS server information contained in the fields of the IPv4 information, and extract the identifier of the broadband access server, and you can get the terminal network configuration information (IP address, DNS server information) corresponding to the IPv4 information and the identifier of the broadband access server.

[0099] Detect whether the IPv6 information is stateful, parse the IPv6 information or RA message based on the detection result of whether the IPv6 information is stateful, and obtain the terminal network configuration information (IP address, DNS server information) corresponding to the IPv6 information and the identifier of the broadband access server.

[0100] Detecting whether the network configuration file contains a broadband access server corresponding to the IPv4 information, that is, an identifier of the DHCPv4 server and / or a broadband access server corresponding to the IPv6 information, that is, an identifier of the DHCPv6 server;

[0101] If it does not exist, the IP address, DNS server information and broadband access server identifier corresponding to the IPv4 information, and / or the IP address, DNS server information and broadband access server identifier corresponding to the IPv6 information are newly acquired, and the IP address, DNS server information and broadband access server identifier corresponding to the IPv4 information, and / or the IP address, DNS server information and broadband access server identifier corresponding to the IPv6 information are stored in the network configuration file so that the domain name can be subsequently resolved based on each DNS server in the network information configuration file, and at the same time, the technical problem in the related technology that the terminal only processes the information replied by the first BRAS and does not process the replies of other BRAS is solved.

[0102] Optionally, in one embodiment, referring to Figure 4 , Figure 4 FIG. 4 is a flow chart of the fourth embodiment of the service network channel configuration method of the present invention. Figure 4 As shown, step S003 includes:

[0103] Step S031, detecting whether the IPv6 information has a status;

[0104] Step S032: If the IPv6 information has a state, then based on the parsing result of the IPv6 information, determine the IP address, DNS server information, and broadband access server identifier corresponding to the IPv6 information;

[0105] Step S033: If the IPv6 information is stateless, the IP address, DNS server information, and identifier of the broadband access server corresponding to the IPv6 information are determined based on the parsing result of the RA message.

[0106] In this embodiment, there are two main modes of IPv6 address allocation: Stateless and Stateful. Stateful allocation obtains IPv6 addresses and other parameters through DHCPv6, while stateless allocation only generates IPv6 addresses through RA messages and obtains other parameters through DHCPv6.

[0107] According to the RFC network protocol standard, there is a designated field representing M and O. When parsing IPv6 information, if the designated field of the IPv6 information is M, it is determined that the IPv6 information is stateful; if the designated field of the IPv6 information is O, it is determined that the IPv6 information is stateless.

[0108] If the IPv6 information is stateful, the IPv6 information replied by the DHCPv6 server is parsed to obtain the IP address and DNS server information contained in the fields of the IPv6 information, and the identifier of the broadband access server is extracted to obtain the IP address, DNS server information and identifier of the broadband access server corresponding to the IPv6 information.

[0109] If the IPv6 information is stateless, parse the RA message, obtain the IP address and DNS server information contained in the fields of the RA message, and extract the identifier of the broadband access server that replied to the IPv6 information. The IP address, DNS server information and broadband access server identifier corresponding to the IPv6 information can be obtained.

[0110] In a second aspect, an embodiment of the present invention further provides a service network channel configuration device.

[0111] In one embodiment, referring to Figure 5 , Figure 5 This is a functional module diagram of an embodiment of a service network channel configuration device of the present invention. Figure 5 As shown, the service network channel configuration device includes:

[0112] The information determination module 10 is configured to determine the target address according to the current broadband access server and use the IP address replied by the current broadband access server as the local IP address;

[0113] The detection module 20 is configured to detect whether the network channel between the target address and the local IP address is disconnected;

[0114] The loop module 30 is configured to use any other broadband access server included in the network information configuration file as the current broadband access server if the network channel between the target address and the local IP address is disconnected and the network configuration file is not empty; return to the step of determining the target address based on the current broadband access server and using the IP address replied by the current broadband access server as the local IP address until the network channel between the target address and the local IP address is connected.

[0115] Optionally, in one embodiment, the information determination module 10 is configured to:

[0116] When the address of the service server corresponding to the application is a domain name, the domain name is resolved through the DNS server information replied by the current broadband access server to obtain M IP addresses;

[0117] Based on a preset priority rule, the M IP addresses are used as target addresses in sequence.

[0118] Optionally, in one embodiment, the detection module 20 is further configured to:

[0119] Deleting the identifier of the current broadband access server from the network information configuration file;

[0120] Check whether the network information configuration file is empty;

[0121] If the detection result shows that the network information configuration file is not empty, the step of using any other broadband access server included in the network information configuration file as the current broadband access server is executed.

[0122] Optionally, in one embodiment, the detection module 20 is further configured to:

[0123] Marking the identifier of the current broadband access server as unavailable;

[0124] Checking whether the network information configuration file contains a broadband access server marked as available;

[0125] If it exists, it is determined that the network information configuration file is not empty, and the process returns to the step of using any other broadband access server included in the network information configuration file as the current broadband access server.

[0126] Optionally, in one embodiment, the circulation module 30 is further configured to:

[0127] Return to the step of determining the target address according to the current broadband access server and using the IP address replied by the current broadband access server as the local IP address until the network information configuration file is empty.

[0128] Optionally, in one embodiment, the service network channel configuration further includes an information acquisition module configured to:

[0129] Real-time acquisition of IPv4 and IPv6 information returned by the broadband access server after receiving a network request;

[0130] Determining, based on the analysis result of the IPv4 information, the IP address, DNS server information, and identifier of the broadband access server corresponding to the IPv4 information;

[0131] Based on the IPv6 information, determining an IP address, DNS server information, and an identifier of a broadband access server corresponding to the IPv6 information;

[0132] Detecting whether the identifier of the broadband access server corresponding to the IPv4 information and / or the identifier of the broadband access server corresponding to the IPv6 information exists in the network configuration file;

[0133] If not, the IP address, DNS server information and identification of the broadband access server corresponding to the IPv4 information, and / or the IP address, DNS server information and identification of the broadband access server corresponding to the IPv6 information are stored in the network configuration file.

[0134] Optionally, in one embodiment, the information acquisition module is further configured to:

[0135] Detecting whether the IPv6 information has a status;

[0136] If the IPv6 information is stateful, determining the IP address, DNS server information, and identifier of the broadband access server corresponding to the IPv6 information based on the parsing result of the IPv6 information;

[0137] If the IPv6 information is stateless, the IP address, DNS server information, and identifier of the broadband access server corresponding to the IPv6 information are determined based on the parsing result of the RA message.

[0138] Among them, the functional implementation of each module in the above-mentioned service network channel configuration device corresponds to the various steps in the above-mentioned service network channel configuration method embodiment, and its functions and implementation processes are no longer repeated here.

[0139] In a third aspect, an embodiment of the present invention further provides an electronic device, the structure of which is as follows: Figure 6 As shown, it includes: a memory and a processor, and the processor is used to read and execute the computer program stored in the memory to implement the aforementioned service network channel configuration method.

[0140] In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and when the computer executable instructions are executed, the aforementioned service network channel configuration method is implemented.

[0141] In the fifth aspect, an embodiment of the present invention provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the various processes of the above-mentioned business network channel configuration method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0142] Finally, it should be noted that some of the processes described in the embodiments of the present invention include multiple operations or steps that appear in a specific order. However, it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present invention, or may be executed in parallel. The sequence numbers of the operations are only used to distinguish different operations and do not represent any order of execution. In addition, these processes may include more or fewer operations, and these operations or steps may be executed sequentially or in parallel, and these operations or steps may be combined.

[0143] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein with equivalents. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A service network channel configuration method, characterized in that: The method comprises: Determine the target address based on the current broadband access server, and use the IP address replied by the current broadband access server as the local IP address; Check whether the network channel between the target address and the local IP address is disconnected; If the network channel between the target address and the local IP address is disconnected, and the network configuration file is not empty, any other broadband access server included in the network information configuration file will be used as the current broadband access server; Returning to the step of determining the target address according to the current broadband access server and using the IP address replied by the current broadband access server as the local IP address, until a network channel between the target address and the local IP address is established; Before the step of determining the target address according to the current broadband access server and using the IP address replied by the current broadband access server as the local IP address, the method includes: Real-time acquisition of IPv4 and IPv6 information returned by the broadband access server after receiving a network request; Determining, based on the analysis result of the IPv4 information, the IP address, DNS server information, and identifier of the broadband access server corresponding to the IPv4 information; Based on the IPv6 information, determining an IP address, DNS server information, and an identifier of a broadband access server corresponding to the IPv6 information; Detecting whether the identifier of the broadband access server corresponding to the IPv4 information and / or the identifier of the broadband access server corresponding to the IPv6 information exists in the network configuration file; If not, the IP address, DNS server information and identification of the broadband access server corresponding to the IPv4 information, and / or the IP address, DNS server information and identification of the broadband access server corresponding to the IPv6 information are stored in the network configuration file.

2. The service network channel configuration method according to claim 1, characterized in that: The step of determining the target address according to the current broadband access server includes: When the address of the service server corresponding to the application is a domain name, the domain name is resolved through the DNS server information replied by the current broadband access server to obtain M IP addresses; Based on a preset priority rule, the M IP addresses are sequentially used as target addresses.

3. The service network channel configuration method according to claim 1, characterized in that: After the network channel between the target address and the local IP address is disconnected, the method includes: Deleting the identifier of the current broadband access server from the network information configuration file; Check whether the network information configuration file is empty; If the detection result shows that the network information configuration file is not empty, the step of using any other broadband access server included in the network information configuration file as the current broadband access server is executed.

4. The service network channel configuration method according to claim 1, characterized in that: After the network channel between the target address and the local IP address is disconnected, the method includes: Marking the identifier of the current broadband access server as unavailable; Checking whether the network information configuration file contains a broadband access server marked as available; If it exists, it is determined that the network information configuration file is not empty, and the process returns to the step of using any other broadband access server included in the network information configuration file as the current broadband access server.

5. The service network channel configuration method according to claim 1, characterized in that: After the step of using any other broadband access server included in the network information configuration file as the current broadband access server, the method further includes: Return to the step of determining the target address according to the current broadband access server and using the IP address replied by the current broadband access server as the local IP address until the network information configuration file is empty.

6. The service network channel configuration method according to claim 1, characterized in that: The step of determining, based on the IPv6 information, the IP address, DNS information, and an identifier of a broadband access server corresponding to the IPv6 information includes: Detecting whether the IPv6 information has a status; If the IPv6 information is stateful, determining the IP address, DNS server information, and identifier of the broadband access server corresponding to the IPv6 information based on the parsing result of the IPv6 information; If the IPv6 information is stateless, the IP address, DNS server information, and identifier of the broadband access server corresponding to the IPv6 information are determined based on the parsing result of the RA message.

7. A service network channel configuration device, characterized in that: The device comprises: An information determination module is configured to determine a target address according to a current broadband access server and use the IP address replied by the current broadband access server as the local IP address; A detection module is configured to detect whether a network channel between a target address and the local IP address is disconnected; The loop module is configured to, if the network channel between the target address and the local IP address is disconnected and the network configuration file is not empty, use any other broadband access server included in the network information configuration file as the current broadband access server; return to the step of determining the target address based on the current broadband access server and using the IP address replied by the current broadband access server as the local IP address, until the network channel between the target address and the local IP address is connected; The service network channel configuration further includes an information acquisition module configured to: Real-time acquisition of IPv4 and IPv6 information returned by the broadband access server after receiving a network request; Determining, based on the analysis result of the IPv4 information, the IP address, DNS server information, and identifier of the broadband access server corresponding to the IPv4 information; Based on the IPv6 information, determining an IP address, DNS server information, and an identifier of a broadband access server corresponding to the IPv6 information; Detecting whether the identifier of the broadband access server corresponding to the IPv4 information and / or the identifier of the broadband access server corresponding to the IPv6 information exists in the network configuration file; If not, the IP address, DNS server information and identification of the broadband access server corresponding to the IPv4 information, and / or the IP address, DNS server information and identification of the broadband access server corresponding to the IPv6 information are stored in the network configuration file.

8. An electronic device, characterized in that: include: memory and processor; The processor is configured to read and execute the computer program stored in the memory to implement the steps of the service network channel configuration method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed, the steps of the service network channel configuration method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Broadband service switching method and device, and computer readable storage medium

    CN117750448A