ACS server connection method, device, system and equipment based on PON, and medium

By detecting the ACS server address format type and dynamically switching the IPv4/IPv6 connection process, the poor adaptability and high testing cost of traditional ACS server connection solutions are resolved, achieving seamless operation of CPE devices in IPv4/IPv6 environments and reducing costs.

CN120786205APending Publication Date: 2025-10-14SHENZHEN SKYWORTH DIGITAL TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510925002.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-04
Publication Date
2025-10-14

AI Technical Summary

Technical Problem

Traditional ACS server connection solutions lack adaptability, requiring static configuration of CPE devices in both IPv4 and IPv6 environments, increasing testing costs and customized development requirements.

Method used

The present invention provides a PON-based ACS server connection method. By detecting the format type of the ACS server address, the IPv4/IPv6 connection process is dynamically switched to achieve adaptive connection and support seamless operation during the coexistence of IPv4/IPv6 dual tracks.

Benefits of technology

It reduces the need for hotfixes triggered by ACS server parameter changes, supports seamless operation of CPE devices during the coexistence of IPv4/IPv6 dual-tracks, avoids connection islands, and reduces testing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120786205A_ABST
    Figure CN120786205A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of PON, and discloses a PON-based ACS server connection method, device, system and equipment, and a storage medium, so as to support single-side hot switching of an ACS server while realizing adaptive access of CPE equipment to the ACS server. The method comprises the steps of detecting an address format type of an ACS server address of a slave device management interface; based on the address format type of the ACS server address, entering different connection processing flows: when the address format type is an IPv4 address format, entering a first ACS server connection sub-flow corresponding to the IPv4 address format; when the address format type is an IPv6 address format, entering a second ACS server connection sub-process corresponding to the IPv6 address format; and when the address format type is a domain name address format, entering a third ACS server connection sub-process corresponding to the domain name address format.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of PON technology, and in particular to a PON-based ACS server connection method, device, system, equipment, and medium. Background Art

[0002] As internet technologies evolve, IPv6, as the core protocol for the next-generation internet, is at a critical stage of continuous evolution and ecosystem development. While it will eventually replace the widely deployed IPv4 protocol, this replacement process will require a long, gradual, dual-track coexistence phase, constrained by technical compatibility, infrastructure upgrade costs, and varying global deployment paces.

[0003] The connection between Customer Premises Equipment (CPE) and the Auto Configuration Server (ACS) also faces the issue of a gradual transition from IPv4 to IPv6. For example, some regions require CPE devices to upgrade to IPv6 to connect to ACS servers, while others require them to continue using IPv4.

[0004] Traditional connection solutions require separate IPv4 and IPv6 connection features when developing CPE device software to meet these different requirements. This results in a fixed protocol stack type (IPv4 or IPv6) when the CPE device connects to the ACS server. This static configuration lacks adaptability and requires customized development of the CPE device due to differences in ACS server environments (such as varying IPv6 migration schedules), increasing testing costs. Summary of the Invention

[0005] The embodiments of the present application provide a PON-based ACS server connection method, apparatus, system, device, and medium to solve the technical problems of poor adaptability and high testing cost in traditional ACS server connection solutions.

[0006] In a first aspect, a PON-based ACS server connection method is provided for a CPE device, the method comprising: Detect the address format type of the ACS server address on the management interface of the slave device; Based on the address format type of the ACS server address, different connection processing processes are entered: When the address format type is an IPv4 address format, entering a first ACS server connection sub-process corresponding to the IPv4 address format; When the address format type is an IPv6 address format, entering a second ACS server connection sub-process corresponding to the IPv6 address format; When the address format type is a domain name address format, the process proceeds to a third ACS server connection sub-process corresponding to the domain name address format.

[0007] Furthermore, the first ACS server connection sub-process includes: Check whether the device management interface successfully obtains the first IPv4 address; If the first IPv4 address is successfully obtained, use the first IPv4 address to directly initiate a first IPv4 connection request to the IPv4 address of the ACS server to establish an IPv4 connection from the CPE device to the ACS server; Upload IPv4 connection parameters based on the IPv4 connection between the CPE device and the ACS server, where the IPv4 connection parameters include the first IPv4 address.

[0008] Furthermore, after checking whether the device management interface successfully obtains the first IPv4 address, the method further includes: If the first IPv4 address is not successfully obtained, the first ACS server connection sub-process is exited, and the first ACS server connection sub-process is re-entered after waiting for a first preset time.

[0009] Furthermore, the second ACS server connection sub-process includes: Check whether the device management interface successfully obtains the first IPv6 address; If the first IPv6 address is successfully obtained, use the first IPv6 address to directly initiate a first IPv6 connection request to the IPv6 address of the ACS server to establish an IPv6 connection from the CPE device to the ACS server; Upload IPv6 connection parameters based on the IPv6 connection between the CPE device and the ACS server, where the IPv6 connection parameters include the first IPv6 address.

[0010] Furthermore, after checking whether the device management interface has successfully acquired the first IPv6 address, the method further includes: If the first IPv6 address is not successfully obtained, the second ACS server connection sub-process is exited, and the second ACS server connection sub-process is re-entered after waiting for a second preset time period.

[0011] Furthermore, the third ACS server connection sub-process includes: Check whether the device management interface successfully obtains the second IPv6 address; If the second IPv6 address is successfully obtained, use the second IPv6 address to initiate an IPv6 address record query request to the DNS server of the device management interface; If the IPv6 resolved address of the ACS server fed back by the DNS server in response to the IPv6 address record query request is successfully obtained, initiating a second IPv6 connection request to the IPv6 resolved address using the second IPv6 address to establish an IPv6 connection between the CPE device and the ACS server, and uploading IPv6 connection parameters based on the IPv6 connection between the CPE device and the ACS server, the IPv6 connection parameters including the second IPv6 address; If the IPv6 address record query request fails, the DNS server's response to the IPv6 address record query request is invalid, or the IPv6 connection or the second IPv6 address is not successfully obtained, then checking whether the device management interface successfully obtains the second IPv4 address; If the second IPv4 address is successfully obtained, use the second IPv4 address to initiate an IPv4 address record query request to the DNS server of the device management interface; If the IPv4 resolved address of the ACS server fed back by the DNS server in response to the IPv4 address record query request is successfully obtained, initiating a second IPv4 connection request to the IPv4 resolved address using the second IPv4 address to establish an IPv4 connection between the CPE device and the ACS server, and uploading IPv4 connection parameters based on the IPv4 connection between the CPE device and the ACS server, where the IPv4 connection parameters include the second IPv4 address; If the IPv4 address record query request fails, the DNS server's response to the IPv4 address record query request is invalid, or the IPv4 connection or the second IPv4 address is not successfully obtained, then exit the third ACS server connection sub-process and re-enter the third ACS server connection sub-process after waiting for a third preset time period.

[0012] In a second aspect, a PON-based ACS server connection device is provided for a CPE device, the device comprising: A detection module, used for detecting an address format type of an ACS server address from a device management interface; A processing module is used to enter different connection processing processes based on the address format type of the ACS server address: When the address format type is an IPv4 address format, entering a first ACS server connection sub-process corresponding to the IPv4 address format; When the address format type is an IPv6 address format, entering a second ACS server connection sub-process corresponding to the IPv6 address format; When the address format type is a domain name address format, the process proceeds to a third ACS server connection sub-process corresponding to the domain name address format.

[0013] According to a third aspect, a PON-based communication system is provided, comprising a CPE device and an ACS server, wherein the CPE device establishes a connection with the ACS server based on the ACS server connection method according to any one of claims 1 to 6.

[0014] In a fourth aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the PON-based ACS server connection method as described in any one of the preceding items is implemented.

[0015] In a fifth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the PON-based ACS server connection method as described in any one of the above items is implemented.

[0016] The embodiment of the application provides a PON-based ACS server connection method, device, system, equipment and medium, to solve the technical problems of poor self-adaptability and high test cost of the traditional ACS server connection scheme, a CPE device detects an address format type of an ACS server address from a device management interface; based on the address format type of the ACS server address, different connection processing procedures are entered: when the address format type is an IPv4 address format, a first ACS server connection sub-process corresponding to the IPv4 address format is entered; when the address format type is an IPv6 address format, a second ACS server connection sub-process corresponding to the IPv6 address format is entered; when the address format type is a domain name address format, a third ACS server connection sub-process corresponding to the domain name address format is entered. It can be seen that, in the technical scheme provided in the application, based on the detection premise of the address format type, different connection sub-processes of the ACS server can be adaptively switched, adaptive connection requirements are realized, when the ACS server is switched from IPv4 to IPv6 (or vice versa), the CPE device does not need to be restarted to achieve the purpose of hot switching, the hot repair demand triggered by the parameter change of the ACS server is reduced, the seamless operation of the CPE device in the IPv4 / IPv6 dual-track coexistence period is supported, and the 'connection island' caused by protocol fragmentation is avoided; and the customized adaptation test for different operator ACS servers can be eliminated, and the test cost is reduced. BRIEF DESCRIPTION OF DRAWINGS

[0017] In order to more clearly illustrate the technical scheme of the embodiments of the application, the drawings needed to be used in the description of the embodiments of the application will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor.

[0018] Figure 1 is a flowchart of a PON-based ACS server connection method in an embodiment of the application; Figure 2 is a flowchart of a first ACS server connection sub-process in a PON-based ACS server connection method in an embodiment of the application; Figure 3 is a flowchart of a second ACS server connection sub-process in a PON-based ACS server connection method in an embodiment of the application; Figure 4 is a flowchart of a third ACS server connection sub-process in a PON-based ACS server connection method in an embodiment of the application; Figure 5is a structural schematic diagram of an ACS server connection device based on a PON in an embodiment of the present application. Figure 6 is a structural schematic diagram of a computer device in an embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to make the technical problems, technical solutions and beneficial effects solved by the present application clearer, the present application will be further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0020] In the embodiments of the present application, a PON ACS server connection method, device, system, equipment and medium are mainly provided. When a CPE device connects an ACS server, the scheme can adaptively perform IPv4 / IPv6 connection according to multiple factors such as parameter configuration of the ACS server address, actual network environment, migration setting of the ACS server, and the like. The scheme can adaptively switch to different connection sub-processes of the ACS server, realize adaptive connection demand, and achieve hot switching without restarting the CPE device when the ACS server is switched from IPv4 to IPv6 (or vice versa), thereby reducing the hot repair demand triggered by parameter change of the ACS server, supporting seamless operation of the CPE device in the IPv4 / IPv6 dual-track coexistence period, avoiding "connection island" caused by protocol fragmentation, eliminating customized adaptation test for different operator ACS servers, and reducing test cost.

[0021] Next, each scheme provided by the embodiments of the present application will be described in detail through embodiments.

[0022] As Figure 1 described, in an embodiment, a PON-based ACS server connection method is provided for a CPE device, and the method includes the following steps: S101, detecting an address format type of an ACS server address from a device management interface; S102, based on the address format type of the ACS server address, entering different connection processing flows: when the address format type is an IPv4 address format, entering a first ACS server connection sub-process corresponding to the IPv4 address format; when the address format type is an IPv6 address format, entering a second ACS server connection sub-process corresponding to the IPv6 address format; and when the address format type is a domain name address format, entering a third ACS server connection sub-process corresponding to the domain name address format.

[0023] It should be noted that the ACS server connection method in the embodiments of this application can be implemented based on different network frameworks and is not specifically limited. For example, in one exemplary network scenario, a CPE device accesses a carrier's ACS server via a passive optical network (PON). Specifically, the CPE device can access the carrier's PON network via a PON interface (such as GPON / EPON) to establish a communication link with the ACS server. In addition to PON networks, other networks can also be used, and this embodiment of the application is not specifically limited.

[0024] This embodiment aims to achieve adaptive selection of the connection protocol (IPv4 / IPv6). To achieve this goal, multiple logical sub-processes are designed in the actual operation process. For the sake of distinction, these sub-processes are respectively referred to as the first ACS server connection sub-process, the second ACS server connection sub-process, and the third ACS server connection sub-process. Throughout this process, the CPE device continuously checks the device management interface (e.g., the TR-069 WAN). It should be understood that the TR-069 management interface is a network management interface based on the TR-069 protocol, used for remote management and signaling interaction between the CPE device and the ACS server. In this solution, it primarily performs functions such as IP address acquisition, ACS address reception, and connection signaling transmission, and is the core channel for achieving adaptive dual-stack connectivity for the CPE in this solution. In other solutions, this device management interface can also be a network management interface based on other protocols, which is not limited to this embodiment of the present application.

[0025] The CPE device continuously checks whether the ACS server address (ACS URL) is obtained through the device management interface. After successfully obtaining the ACS server address, the process starts to branch according to the address format type of the ACS server address: when the address format type is an IPv4 address format, the process enters a first ACS server connection sub-process corresponding to the IPv4 address format; when the address format type is an IPv6 address format, the process enters a second ACS server connection sub-process corresponding to the IPv6 address format; when the address format type is a domain name address format, the process enters a third ACS server connection sub-process corresponding to the domain name address format.

[0026] It can be seen that in this embodiment, a PON-based ACS server connection method is provided, a CPE device detects an address format type of an ACS server address from a device management interface; based on the address format type of the ACS server address, different connection processing procedures are entered: when the address format type is an IPv4 address format, a first ACS server connection sub-process corresponding to the IPv4 address format is entered; when the address format type is an IPv6 address format, a second ACS server connection sub-process corresponding to the IPv6 address format is entered; when the address format type is a domain name address format, a third ACS server connection sub-process corresponding to the domain name address format is entered. It can be seen that in the technical solution provided in this application, based on the detection premise of the address format type, different connection sub-processes of the ACS server can be adaptively switched to, adaptive connection requirements are realized, when the ACS server is switched from IPv4 to IPv6 (or vice versa), the CPE device does not need to be restarted to achieve the purpose of hot switching, reduces the hot repair demand triggered by the parameter change of the ACS server, supports the seamless operation of the CPE device in the IPv4 / IPv6 dual-track coexistence period, avoids the "connection island" caused by the protocol split; and the customized adaptation test for different operator ACS servers can be eliminated, and the test cost is reduced.

[0027] Next, based on the above embodiment, the application embodiment further provides specific processing modes of each ACS server connection sub-process, which will be described below, please refer to Figure 2 for understanding.

[0028] In an embodiment, as Figure 2 shown, the first ACS server connection sub-process includes: A1, checking whether the device management interface successfully acquires a first IPv4 address; A2, if the first IPv4 address is successfully acquired, a first IPv4 connection request is initiated to the IPv4 address of the ACS server directly using the first IPv4 address to establish an IPv4 connection from the CPE device to the ACS server; wherein the first IPv4 connection request contains the first IPv4 address.

[0029] A3, based on the IPv4 connection from the CPE device to the ACS server, uploading IPv4 connection parameters, the IPv4 connection parameters containing the first IPv4 address; A4, if the first IPv4 address is not successfully acquired, the first ACS server connection sub-process is exited, and after waiting for a first preset time length, the first ACS server connection sub-process is re-entered.

[0030] In this embodiment, the CPE device detects the address format type of the ACS server address from the device management interface; when the address format type is an IPv4 address format, it enters the first ACS server connection sub-process corresponding to the IPv4 address format.

[0031] For example, the ACS server address is in the IPv4 address format (e.g., http: / / 12.10.201.** / acs, where the asterisk * / is a reference character. This address is for illustrative purposes only and will vary depending on the actual application scenario). Check whether the device management interface has successfully obtained the first IPv4 address (e.g., address A). If address A is not obtained, the process returns and waits for the next timeout to retry. The timeout period is a first preset period, which can be determined based on experience or design requirements and is not specifically limited. If address A is successfully obtained, address A is used to directly initiate a first IPv4 connection request to the IPv4 address of the ACS server (e.g., 12.10.201.**) to establish an IPv4 connection from the CPE device to the ACS server. Among the parameters reported when the connection is established, the Connection Request URL field contains address A for the ACS server to subsequently initiate a back connection to the CPE.

[0032] This embodiment provides a specific process for handling a first ACS server connection sub-process. When the address format is an IPv4 address, it proactively and adaptively selects an appropriate IPv4 protocol stack to establish a reliable IPv4 connection between the CPE device and the ACS server. Timeout retry processing is also designed to ensure the reliability and stability of connection establishment. It should also be noted that in other embodiments, the first ACS server connection sub-process may also have other processing methods, including those that depend on the parameter type uploaded in the request and that the sub-process may be directly exited without a timeout retry. These are not specific limitations.

[0033] In one embodiment, if Figure 3 As shown, the second ACS server connection sub-process includes: B1. Check whether the device management interface successfully obtains the first IPv6 address; B2. If the first IPv6 address is successfully obtained, use the first IPv6 address to directly initiate a first IPv6 connection request to the IPv6 address of the ACS server to establish an IPv6 connection from the CPE device to the ACS server; wherein the first IPv6 connection request includes the first IPv6 address.

[0034] B3. Uploading IPv6 connection parameters based on the IPv6 connection from the CPE device to the ACS server, where the IPv6 connection parameters include the first IPv6 address; B4. If the first IPv6 address is not successfully obtained, exit the second ACS server connection sub-process, and re-enter the second ACS server connection sub-process after waiting for a second preset time.

[0035] In this embodiment, the CPE device detects the address format type of the ACS server address from the device management interface; when the address format type is an IPv6 address format, it enters a second ACS server connection sub-process corresponding to the IPv6 address format.

[0036] For example, the ACS server address is in the IPv6 address format (e.g., http: / / [2066::12**] / acs, where asterisks * / are descriptive characters. This address is for illustrative purposes only and will vary depending on the actual application scenario). The device management interface is checked to see whether it has successfully acquired a first IPv6 address (e.g., address B). If address B is not acquired, the process returns and waits for the next timeout to retry. The timeout duration is a second preset duration, which can be determined based on experience or design requirements and is not specifically limited. If address B is successfully acquired, a first IPv6 connection request is initiated directly to the IPv6 address of the ACS server (e.g., 2066::12*) using address B to establish an IPv6 connection from the CPE device to the ACS server. The Connection Request URL field in the parameters reported when the connection is established contains address B, which the ACS server subsequently uses to initiate a return connection to the CPE device.

[0037] This embodiment provides a specific process for handling a second ACS server connection sub-process. When the address format is an IPv6 address, it proactively and adaptively selects an appropriate IPv6 protocol stack to establish a reliable IPv6 connection between the CPE device and the ACS server. Timeout retry processing is also designed for this sub-process to ensure the reliability and stability of connection establishment. It should also be noted that in other embodiments, this second ACS server connection sub-process may also have other processing methods, including those that depend on the parameter type uploaded in the request and those that do not require a timeout retry and directly exit the sub-process. These are not specific limitations.

[0038] As can be seen here, in this embodiment, through the coordinated operation of the first and second ACS server connection sub-processes, regardless of whether the ACS URL is in IPv4 or IPv6 address format, this solution can adaptively select the appropriate IP protocol stack (IPv4 or IPv6) to establish a reliable CPE-to-ACS connection.

[0039] In an embodiment, as shown in Figure 4 the third ACS server connection sub-process includes: C1, checking whether the device management interface successfully acquires a second IPv6 address; C2, if the second IPv6 address is successfully acquired, initiating an IPv6 address record query request to a DNS server of the device management interface using the second IPv6 address; C3, if the IPv6 resolving address of the ACS server fed back by the DNS server in response to the IPv6 address record query request is successfully obtained, initiating a second IPv6 connection request to the IPv6 resolving address using the second IPv6 address, so as to establish an IPv6 connection of the CPE device to the ACS server; C4, uploading IPv6 connection parameters based on the IPv6 connection of the CPE device to the ACS server, the IPv6 connection parameters containing the second IPv6 address C5, if the IPv6 address record query request fails, the response of the DNS server to the IPv6 address record query request is invalid, the IPv6 connection or the second IPv6 address is not successfully acquired, checking whether the device management interface successfully acquires a second IPv4 address; C6, if the second IPv4 address is successfully acquired, initiating an IPv4 address record query request to a DNS server of the device management interface using the second IPv4 address; C7, if the IPv4 resolving address of the ACS server fed back by the DNS server in response to the IPv4 address record query request is successfully obtained, initiating a second IPv4 connection request to the IPv4 resolving address using the second IPv4 address, so as to establish an IPv4 connection of the CPE device to the ACS server; C8, uploading IPv4 connection parameters based on the IPv4 connection of the CPE device to the ACS server, the IPv4 connection parameters containing the second IPv4 address; C9, if the IPv4 address record query request fails, the response of the DNS server to the IPv4 address record query request is invalid, the IPv4 connection or the second IPv4 address is not successfully acquired, exiting the third ACS server connection sub-process, and re-entering the third ACS server connection sub-process after waiting for a third preset time length.

[0040] In this embodiment, the CPE device detects the address format type of the ACS server address from the device management interface; when the address format type is a domain name address format, it enters a third ACS server connection sub-process corresponding to the domain name address format.

[0041] For example, if the ACS server address is in IPv6 format (e.g., http: / / www.acs.com / acs, which is only an example and varies depending on the actual application scenario), this embodiment will first attempt an IPv6 connection. If the IPv6 connection fails, the IPv4 connection will be attempted. If the IPv4 connection also fails, the process will return and wait for the next timeout to retry. Specifically, Step 1, attempt IPv6 connection: check whether the device management interface successfully obtains the second IPv6 address (for example, recorded as address B); if address B is successfully obtained, use address B to initiate an IPv6 address record query request (AAAA record query) to the DNS server of the device management interface, for requesting to resolve the domain name www.acs.com; if the IPv6 resolution address of the ACS server fed back by the DNS server in response to the IPv6 address record query request (for example, recorded as address C) is successfully obtained, use address B to initiate a second IPv6 connection request to address C to establish an IPv6 connection from the CPE device to the ACS server, and the second IPv6 connection request includes address B; if the IPv6 address record query request fails, the DNS server's response to the IPv6 address record query request is invalid, or the IPv6 connection or address B is not successfully obtained, proceed to the following step 2.

[0042] Step 2, attempting an IPv4 connection: checking whether the device management interface successfully obtains a second IPv4 address (for example, address A); if address A is successfully obtained, using address A to initiate an IPv4 address record query request (for example, an A record query) to the DNS server of the device management interface, for resolving the domain name www.acs.com; if the IPv4 resolution address of the ACS server (for example, address D) fed back by the DNS server in response to the IPv4 address record query request is successfully obtained, using address A to initiate a second IPv4 connection request to address D, so as to establish an IPv4 connection between the CPE device and the ACS server, wherein the second IPv4 connection request includes address A; If both step 1 and step 2 are unsuccessful, the third ACS server connection sub-process is exited and re-entered after waiting for a third preset time. The timeout period is the third preset time, which can be determined based on experience or design requirements and is not specifically limited.

[0043] As can be seen, this embodiment provides a specific process handling method for the third ACS server connection sub-process. When the address format type is a domain name address format, it can proactively and adaptively attempt an IPv6 connection first. If the IPv6 connection fails, the IPv4 connection is then attempted. If the IPv4 connection also fails, the process returns and waits for the next timeout retry, thus ensuring the reliability and stability of the connection establishment. It should also be noted that in other embodiments, the third ACS server connection sub-process can also have other handling methods, including the parameter type uploaded in the request, and the possibility of directly exiting the sub-process without designating a timeout retry, etc., which are not specifically limited.

[0044] As can be seen here, in this embodiment, through the coordinated operation of the first, second, and third ACS server connection sub-processes, regardless of whether the ACS URL is in the form of an IP address (IPv4 or IPv6) or a domain address, this solution can adaptively select the appropriate IP protocol stack (IPv4 or IPv6) to establish a reliable CPE-to-ACS connection.

[0045] It can be seen that in the embodiment of the present application, on the basis of achieving the same protocol adaptation effect, unilateral hot switching support of the ACS server can also be realized: when the ACS server actively switches the IPv4 / IPv6 connection protocol, the CPE can respond and re-establish the connection in real time without restarting or modifying additional configurations; and full-scenario adaptive coverage is achieved, combined with dynamic protocol selection and non-stop hot switching capabilities, significantly improving deployment flexibility and operation and maintenance efficiency in cross-operator environments.

[0046] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0047] In one embodiment, a PON-based communication system is further provided, comprising a CPE device and an ACS server, wherein the CPE device establishes a connection with the ACS server based on any of the aforementioned ACS server connection methods.

[0048] For example, in one embodiment, a PON-based communication system, wherein: The CPE device detects the address format type of the ACS server address from the device management interface; The CPE device enters different connection processing flows based on the address format type of the ACS server address: when the address format type is an IPv4 address format, a first ACS server connection sub-flow corresponding to the IPv4 address format is entered; when the address format type is an IPv6 address format, a second ACS server connection sub-flow corresponding to the IPv6 address format is entered; and when the address format type is a domain name address format, a third ACS server connection sub-flow corresponding to the domain name address format is entered.

[0049] For other embodiment details of the communication system, reference can be made to the content of the ACS server connection method described in any of the foregoing embodiments, which will not be described one by one here.

[0050] It can be seen that in this embodiment, a PON-based communication system is provided, which can adaptively switch to different ACS server connection sub-flows based on the detection premise of the address format type, to achieve adaptive connection requirements. When the ACS server is switched from IPv4 to IPv6 (or vice versa), the CPE device can achieve hot switching without restarting, reducing the hot repair demand triggered by the change of ACS server parameters, supporting seamless operation of the CPE device in the IPv4 / IPv6 dual-track coexistence period, avoiding the "connection island" caused by protocol fragmentation; and the customized adaptation test for different operator ACS servers can be eliminated, reducing the test cost.

[0051] In an embodiment, a PON-based ACS server connection device for a CPE device is provided, which corresponds to the ACS server connection method in the above embodiments one by one. As shown in Figure 5 The ACS server connection device 50 includes a detection module 501 and a processing module 502. The functions of each functional module are described in detail as follows: The detection module 501 is configured to detect the address format type of the ACS server address from the device management interface; The processing module 502 is configured to enter different connection processing flows based on the address format type of the ACS server address: When the address format type is an IPv4 address format, a first ACS server connection sub-flow corresponding to the IPv4 address format is entered; When the address format type is an IPv6 address format, a second ACS server connection sub-flow corresponding to the IPv6 address format is entered; When the address format type is a domain name address format, a third ACS server connection sub-flow corresponding to the domain name address format is entered.

[0052] Further, the first ACS server connection sub-flow includes: checking whether the first IPv4 address is successfully acquired by the device management interface; if the first IPv4 address is successfully acquired, initiating a first IPv4 connection request to an IPv4 address of the ACS server directly using the first IPv4 address to establish an IPv4 connection between the CPE device and the ACS server; uploading IPv4 connection parameters based on the IPv4 connection between the CPE device and the ACS server, the IPv4 connection parameters including the first IPv4 address.

[0053] Further, after the checking whether the first IPv4 address is successfully acquired by the device management interface, the method further comprises: if the first IPv4 address is not successfully acquired, exiting the first ACS server connection sub-process, and re-entering the first ACS server connection sub-process after waiting for a first preset time length.

[0054] Further, the second ACS server connection sub-process comprises: checking whether the first IPv6 address is successfully acquired by the device management interface; if the first IPv6 address is successfully acquired, initiating a first IPv6 connection request to an IPv6 address of the ACS server directly using the first IPv6 address to establish an IPv6 connection between the CPE device and the ACS server; uploading IPv6 connection parameters based on the IPv6 connection between the CPE device and the ACS server, the IPv6 connection parameters including the first IPv6 address.

[0055] Further, after the checking whether the first IPv6 address is successfully acquired by the device management interface, the method further comprises: if the first IPv6 address is not successfully acquired, exiting the second ACS server connection sub-process, and re-entering the second ACS server connection sub-process after waiting for a second preset time length.

[0056] Further, the third ACS server connection sub-process comprises: checking whether the second IPv6 address is successfully acquired by the device management interface; if the second IPv6 address is successfully acquired, initiating an IPv6 address record query request to a DNS server of the device management interface using the second IPv6 address; If the IPv6 resolved address of the ACS server fed back by the DNS server in response to the IPv6 address record query request is successfully obtained, initiating a second IPv6 connection request to the IPv6 resolved address using the second IPv6 address to establish an IPv6 connection between the CPE device and the ACS server, and uploading IPv6 connection parameters based on the IPv6 connection between the CPE device and the ACS server, the IPv6 connection parameters including the second IPv6 address; If the IPv6 address record query request fails, the DNS server's response to the IPv6 address record query request is invalid, or the IPv6 connection or the second IPv6 address is not successfully obtained, then checking whether the device management interface successfully obtains the second IPv4 address; If the second IPv4 address is successfully obtained, use the second IPv4 address to initiate an IPv4 address record query request to the DNS server of the device management interface; If the IPv4 resolved address of the ACS server fed back by the DNS server in response to the IPv4 address record query request is successfully obtained, initiating a second IPv4 connection request to the IPv4 resolved address using the second IPv4 address to establish an IPv4 connection between the CPE device and the ACS server, and uploading IPv4 connection parameters based on the IPv4 connection between the CPE device and the ACS server, where the IPv4 connection parameters include the second IPv4 address; If the IPv4 address record query request fails, the DNS server's response to the IPv4 address record query request is invalid, or the IPv4 connection or the second IPv4 address is not successfully obtained, then exit the third ACS server connection sub-process and re-enter the third ACS server connection sub-process after waiting for a third preset time period.

[0057] As can be seen, this embodiment provides a PON-based ACS server connection device that can adaptively switch to different connection sub-processes of the ACS server based on the detection of address format type, thereby meeting adaptive connection requirements. When the ACS server switches from IPv4 to IPv6 (or vice versa) connection, hot switching can be achieved without restarting the CPE device, reducing the need for hot repairs triggered by ACS server parameter changes, supporting seamless operation of CPE devices during the coexistence of IPv4 / IPv6 dual-tracks, and avoiding "connection islands" caused by protocol fragmentation. It can also eliminate customized adaptation testing for ACS servers of different operators, reducing testing costs.

[0058] The specific definitions of the PON-based ACS server connection device can be found in the definitions of the PON-based ACS server connection method described above and will not be further elaborated here. Each module in the PON-based ACS server connection device can be implemented in whole or in part via software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in hardware form, or stored in a computer device memory in software form, so that the processor can call and execute the corresponding operations of each module.

[0059] In one embodiment, if Figure 6 As shown, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a PON-based ACS server connection method in the above embodiment is implemented, for example Figure 1 steps shown, or Figure 2 Alternatively, when the processor executes the computer program, the functions of the modules / units in the embodiment of the PON-based ACS server connection device are realized, such as Figure 5 The functions of the modules shown are not described here in detail to avoid repetition.

[0060] In one embodiment, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the computer program implements a PON-based ACS server connection method in the above embodiment, for example Figure 1 steps shown, or Figure 2 Alternatively, when the processor executes the computer program, the functions of the modules / units in the embodiment of the PON-based ACS server connection device are realized, such as Figure 3 The functions of the modules shown are not described here in detail to avoid repetition.

[0061] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A PON-based ACS server connection method, characterized in that: For a CPE device, the method includes: Detect the address format type of the ACS server address on the management interface of the slave device; Based on the address format type of the ACS server address, different connection processing processes are entered: When the address format type is an IPv4 address format, entering a first ACS server connection sub-process corresponding to the IPv4 address format; When the address format type is an IPv6 address format, entering a second ACS server connection sub-process corresponding to the IPv6 address format; When the address format type is a domain name address format, the process proceeds to a third ACS server connection sub-process corresponding to the domain name address format.

2. The PON-based ACS server connection method according to claim 1, characterized in that: The first ACS server connection sub-process includes: Check whether the device management interface successfully obtains the first IPv4 address; If the first IPv4 address is successfully obtained, use the first IPv4 address to directly initiate a first IPv4 connection request to the IPv4 address of the ACS server to establish an IPv4 connection from the CPE device to the ACS server; Upload IPv4 connection parameters based on the IPv4 connection between the CPE device and the ACS server, where the IPv4 connection parameters include the first IPv4 address.

3. The PON-based ACS server connection method according to claim 3, characterized in that: After checking whether the device management interface successfully obtains the first IPv4 address, the method further includes: If the first IPv4 address is not successfully obtained, the first ACS server connection sub-process is exited, and the first ACS server connection sub-process is re-entered after waiting for a first preset time.

4. The PON-based ACS server connection method according to claim 1, wherein: The second ACS server connection sub-process includes: Check whether the device management interface successfully obtains the first IPv6 address; If the first IPv6 address is successfully obtained, use the first IPv6 address to directly initiate a first IPv6 connection request to the IPv6 address of the ACS server to establish an IPv6 connection from the CPE device to the ACS server; Upload IPv6 connection parameters based on the IPv6 connection between the CPE device and the ACS server, where the IPv6 connection parameters include the first IPv6 address.

5. The PON-based ACS server connection method according to claim 4, characterized in that: After checking whether the device management interface successfully obtains the first IPv6 address, the method further includes: If the first IPv6 address is not successfully obtained, the second ACS server connection sub-process is exited, and the second ACS server connection sub-process is re-entered after waiting for a second preset time period.

6. The PON-based ACS server connection method according to any one of claims 1 to 5, characterized in that: The third ACS server connection sub-process includes: Check whether the device management interface successfully obtains the second IPv6 address; If the second IPv6 address is successfully obtained, use the second IPv6 address to initiate an IPv6 address record query request to the DNS server of the device management interface; If the IPv6 resolved address of the ACS server fed back by the DNS server in response to the IPv6 address record query request is successfully obtained, initiating a second IPv6 connection request to the IPv6 resolved address using the second IPv6 address to establish an IPv6 connection between the CPE device and the ACS server, and uploading IPv6 connection parameters based on the IPv6 connection between the CPE device and the ACS server, the IPv6 connection parameters including the second IPv6 address; If the IPv6 address record query request fails, the DNS server's response to the IPv6 address record query request is invalid, or the IPv6 connection or the second IPv6 address is not successfully obtained, then checking whether the device management interface successfully obtains the second IPv4 address; If the second IPv4 address is successfully obtained, use the second IPv4 address to initiate an IPv4 address record query request to the DNS server of the device management interface; If the IPv4 resolved address of the ACS server fed back by the DNS server in response to the IPv4 address record query request is successfully obtained, initiating a second IPv4 connection request to the IPv4 resolved address using the second IPv4 address to establish an IPv4 connection between the CPE device and the ACS server, and uploading IPv4 connection parameters based on the IPv4 connection between the CPE device and the ACS server, where the IPv4 connection parameters include the second IPv4 address; If the IPv4 address record query request fails, the DNS server's response to the IPv4 address record query request is invalid, or the IPv4 connection or the second IPv4 address is not successfully obtained, then exit the third ACS server connection sub-process and re-enter the third ACS server connection sub-process after waiting for a third preset time period.

7. A PON-based ACS server connection device, characterized in that: For CPE equipment, the device includes: A detection module, used for detecting an address format type of an ACS server address from a device management interface; A processing module is used to enter different connection processing processes based on the address format type of the ACS server address: When the address format type is an IPv4 address format, entering a first ACS server connection sub-process corresponding to the IPv4 address format; When the address format type is an IPv6 address format, entering a second ACS server connection sub-process corresponding to the IPv6 address format; When the address format type is a domain name address format, the process proceeds to a third ACS server connection sub-process corresponding to the domain name address format.

8. A PON-based communication system, characterized in that: The communication system includes a CPE device and an ACS server, wherein the CPE device establishes a connection with the ACS server based on the ACS server connection method according to any one of claims 1 to 6.

9. A computer 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 computer program, the PON-based ACS server connection method according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the PON-based ACS server connection method according to any one of claims 1 to 6 is implemented.