PON network OUN gateway uplink mode selection method, apparatus and device, and medium
By using real-time monitoring and deep learning model evaluation, the optimal uplink mode for PON and Dongle links is dynamically selected, solving the problem of unstable network transmission in existing technologies, achieving efficient routing quality and network resource utilization, and improving user experience.
Patent Information
- Application Number
- CN202511584848.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-31
- Publication Date
- 2026-02-10
AI Technical Summary
In existing technologies, the uplink mode switching of the OUN gateway in a PON network is mainly based on fixed priority and passive triggering mechanisms, which are difficult to adapt to complex network environments, resulting in unstable network transmission and failure to meet the requirements for high-quality data transmission.
By monitoring the connectivity and network quality data of PON and Dongle links in real time, a deep learning model is used to assess link quality and dynamically select the optimal uplink for routing and forwarding, thus realizing link selection triggered by proactive quality assessment.
It improves routing quality, enhances network resource utilization, ensures a continuous, stable, and high-quality network experience for users in complex network environments, and avoids resource waste by leaving high-quality links idle while other links are fully loaded.
Smart Images

Figure CN121509150A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method, apparatus, device, and medium for selecting uplink mode of a PON network OUN gateway. Background Technology
[0002] With the widespread adoption of broadband networks, Optical Network Unit (ONU) gateways have become core devices for internet access in homes and small and medium-sized enterprises, and the stability of their network access directly affects the user's internet experience. Currently, ONU gateways generally use Passive Optical Network (PON) as the primary uplink mode to achieve high-speed data transmission. To enhance network reliability, some ONU devices have added a USB (Universal Serial Bus) interface, supporting the connection of 4G / 5G USB Dongles as backup uplink links, thus constructing a dual uplink network architecture with PON as the primary and USB Dongle as the backup.
[0003] In existing technologies, the link switching of the aforementioned dual uplink architecture is mainly based on a fixed priority + passive triggering mechanism. Specifically, the priority of the PON route is fixed at higher than that of the Dongle route. Under normal operating conditions, all data flows from devices on the Local Area Network (LAN) side are forwarded through the PON route. Only when the PON link experiences a physical interruption (e.g., fiber breakage) or a link layer protocol disconnection will the routing module detect that the PON route is unavailable, thereby triggering the switching mechanism to forward the data flow to the lower-priority Dongle route. After the PON link is restored, the system automatically switches back to the primary route. However, this technical solution still has certain limitations. Its switching mode is passive, the switching condition is singular, and the route priority is statically set. In complex network environments, it is difficult to guarantee stable, high-quality data transmission and cannot adapt to complex and ever-changing network environments with increasingly demanding service quality requirements.
[0004] Therefore, how to dynamically select the gateway uplink mode to improve routing quality and enhance the user's network experience has become an urgent problem to be solved. Summary of the Invention
[0005] This invention provides a method, apparatus, device, and medium for selecting uplink mode of a PON network OUN gateway, in order to solve the problem of how to dynamically switch the uplink mode of the gateway to improve routing quality and enhance the user's network experience.
[0006] A method for selecting uplink mode of a PON network OUN gateway, wherein the gateway includes a first uplink based on PON mode and a second uplink based on Dongle mode, the selection method comprising: The network data of the first uplink, the second uplink, and the gateway terminal are monitored in real time, and the link connectivity data and network quality data of the first uplink and the second uplink are obtained respectively, as well as the network behavior data of the terminal. The link connectivity data, network quality data, and network behavior data are input into a model that has been trained for link quality assessment. The model that has been trained for network quality assessment outputs the link quality scores for the first uplink and the second uplink, respectively. Based on the link quality score, the optimal uplink is determined from the first uplink and the second uplink, and routing is performed based on the optimal uplink.
[0007] A PON network OUN gateway uplink mode selection device, the gateway including a first uplink based on PON mode and a second uplink based on Dongle mode, the selection device comprising: The data acquisition module is used to monitor the network data of the first uplink, the second uplink and the gateway terminal in real time, and to acquire the link connectivity data and network quality data of the first uplink and the second uplink, as well as the network behavior data of the terminal. The scoring prediction module is used to input the link connectivity data, the network quality data, and the network behavior data into a model that has been trained for link quality assessment, and output the link quality scores of the first uplink and the second uplink respectively through the model that has been trained for network quality assessment. The mode selection module is used to determine the optimal uplink from the first uplink and the second uplink based on the link quality score, and to perform routing and forwarding based on the optimal uplink.
[0008] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described PON network OUN gateway uplink mode selection method.
[0009] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described PON network OUN gateway uplink mode selection method.
[0010] The aforementioned PON network OUN gateway uplink mode selection method, apparatus, computer equipment, and storage medium include a gateway comprising a first uplink based on PON mode and a second uplink based on Dongle mode. By monitoring the network data of the first uplink, the second uplink, and the terminal side in real time, the acquired link connectivity data and network quality data of the first and second uplinks, as well as the network behavior data of the terminal side, are input into a pre-trained model that has undergone link quality assessment. The model outputs link quality scores for the first and second uplinks respectively. Based on the link quality scores, the optimal uplink is determined from the first and second uplinks, and routing and forwarding are performed based on the optimal uplink.
[0011] Specifically, by using a model that has been trained for link quality assessment, the network quality of each link is quantified based on real-time monitoring of the link connectivity and network quality data of the first and second uplink links, as well as network behavior data on the terminal side. Based on this, the optimal uplink link is dynamically selected for routing and forwarding. This upgrades the link selection mode from passive disconnection triggering to active quality assessment triggering, ensuring that the data flow is always forwarded through the link with the best experience, improving routing quality, enhancing network resource utilization, and avoiding the waste of resources such as high-quality links being idle while other links are fully loaded. This provides a guarantee for users to obtain a continuous, stable, and high-quality network experience in complex network environments. Attached Figure Description
[0012] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a schematic diagram of an application environment for the PON network OUN gateway uplink mode selection method in one embodiment of the present invention; Figure 2 This is a flowchart of a PON network OUN gateway uplink mode selection method in one embodiment of the present invention; Figure 3 This is another flowchart of the uplink mode selection method for the OUN gateway in a PON network according to one embodiment of the present invention; Figure 4 This is another flowchart of the uplink mode selection method for the OUN gateway in a PON network according to one embodiment of the present invention; Figure 5 This is a schematic diagram of an uplink mode selection device for a PON network OUN gateway in one embodiment of the present invention; Figure 6 This is a schematic diagram of a computer device according to an embodiment of the present invention. Detailed Implementation
[0014] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0015] The PON network OUN gateway uplink mode selection method provided in this embodiment of the invention can be applied to, for example... Figure 1 The application environment shown. Specifically, this PON network OUN gateway uplink mode selection method is applied in a gateway uplink mode switching system, which includes, as shown in the example... Figure 1 The diagram illustrates a client and server that communicate over a network to address the challenge of dynamically selecting the gateway's uplink mode to improve routing quality and enhance the user's network experience. The client, also known as the user terminal, is the program that provides local services to the client, corresponding to the server. The client can be installed on, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server can be implemented using a standalone server or a server cluster consisting of multiple servers.
[0016] In one embodiment, such as Figure 2 As shown, a method for selecting the uplink mode of a PON network OUN gateway is provided, which is then applied to... Figure 1 Taking the server in the example, the following steps are included: Step S201: Monitor the network data of the first uplink, the second uplink, and the gateway terminal in real time, and obtain the link connectivity data and network quality data of the first uplink and the second uplink, as well as the network behavior data of the terminal.
[0017] In this embodiment, the gateway includes a first uplink based on PON mode and a second uplink based on Dongle mode. The gateway can refer to an ONU gateway. PON mode refers to a communication method that accesses the Internet via a passive optical network. Dongle mode refers to a communication method that accesses the Internet via a 4G / 5G cellular network connected through a USB interface. The first uplink can refer to an optical fiber transmission channel established based on PON mode, and the second uplink can refer to a wireless cellular network transmission channel established based on Dongle mode. The gateway terminal side can refer to the device side connected to the user's internal local area network (LAN). Link connectivity data can refer to parameter data characterizing the link connectivity status, including link optical power, signal strength, dialing status, and heartbeat status. Network quality data can refer to parameter data characterizing link network performance, including link real-time bandwidth, latency, packet loss rate, and domain name resolution success rate. Network behavior data can refer to data on the network usage habits and traffic characteristics of terminal devices within the LAN, including data packet sending / receiving volume, connection duration, and service type of LAN terminal devices.
[0018] Step S202: Input the link connectivity data, network quality data, and network behavior data into the model that has been trained for link quality assessment, and output the link quality scores of the first uplink and the second uplink respectively through the model that has been trained for network quality assessment.
[0019] In this embodiment, the model that has been trained for link quality assessment can refer to a deep learning model that has been trained for link quality assessment prediction. This model, after training, can predict link quality based on path connectivity data, network quality data, and network behavior data. The link quality score can refer to the score representing link quality obtained by the model that has been trained for link quality assessment based on link connectivity data, network quality data, and network behavior data.
[0020] Specifically, link connectivity data, network quality data, and network behavior data can be input into a model that has already been trained for link quality assessment. Based on the link connectivity data and network quality data, the initial scores of the first uplink and the second uplink can be determined by the pre-trained model. Based on the network behavior data, the initial scores of the first uplink and the second uplink can be adjusted to obtain the link quality scores of the first uplink and the second uplink, respectively.
[0021] The initial score can refer to the score representing link quality predicted by the model that has been trained for link quality assessment, based on link connectivity data and network quality data.
[0022] For example, after determining the initial scores of the first uplink and the second uplink based on the link connectivity data and network quality data using a model that has already been trained for link quality assessment, the future network load trend can be predicted based on the network behavior data of the terminal device (such as connection duration and data packet transmission and reception). If it is predicted that the terminal will start high-load activities, the initial score of the first uplink will be increased accordingly, and the initial score of the second uplink will be decreased, so as to reserve sufficient network resources for subsequent business activities.
[0023] Step S203: Based on the link quality score, determine the optimal uplink from the first uplink and the second uplink, and perform routing forwarding based on the optimal uplink.
[0024] In this embodiment, the optimal uplink can refer to the link used for routing and forwarding determined from the first uplink and the second uplink based on the link quality score.
[0025] Optionally, before routing based on the optimal uplink, the routing table and NAT mapping table corresponding to the gateway can be obtained, and updated based on the optimal uplink.
[0026] In this context, a routing table can refer to a table structure used to record the destination network and next-hop address to indicate the direction of data packets, while a NAT mapping table can refer to a table structure used to record the mapping relationship between private addresses on the internal network and public addresses on the external network. That is, before routing based on the optimal uplink, the routing table is updated (e.g., by adjusting priorities using the ip route command) to ensure that new data flows are forwarded through the optimal uplink. Simultaneously, the NAT mapping table is checked. If a link change causes a change in the public IP address (e.g., if the currently used link is the first uplink based on PON mode, and the optimal link is the second uplink based on Dongle mode, the public IP address will switch from the PON address to the Dongle address), the mapping relationship between the private and public IP addresses of the LAN-side terminal devices in the NAT mapping table is updated to avoid connection interruptions.
[0027] In this embodiment, the network quality of each link is quantified by a model that has been trained for link quality assessment. Based on the real-time monitoring of the link connectivity and network quality data of the first and second uplink links, as well as the network behavior data of the terminal side, the optimal uplink link is dynamically selected for routing and forwarding. This realizes an upgrade of the link selection mode from passive disconnection triggering to active quality assessment triggering, ensuring that the data flow is always forwarded through the link with the best experience, improving routing quality, increasing network resource utilization, and avoiding the waste of resources such as high-quality links being idle while other links are fully loaded. This provides a guarantee for users to obtain a continuous, stable, and high-quality network experience in complex network environments.
[0028] In one embodiment, such as Figure 3 As shown, a method for selecting the uplink mode of a PON network OUN gateway is provided. In step S203 above, the optimal uplink is determined from the first uplink and the second uplink based on the link quality score, including the following steps: Step S301: Determine the score difference between the first uplink and the second uplink based on the link quality score.
[0029] Step S302: If the score difference exceeds the preset threshold and the link quality score of the first uplink exceeds the link quality score of the second uplink, then the first uplink is determined to be the optimal uplink.
[0030] Step S303: If the score difference exceeds the preset threshold and the link quality score of the second uplink exceeds the link quality score of the first uplink, then the second uplink is determined to be the optimal uplink.
[0031] In this embodiment, the preset threshold can refer to the value that the score difference needs to reach when the current uplink used by the gateway is changed.
[0032] Specifically, based on the link quality score, the score difference between the first uplink and the second uplink is determined. If the score difference exceeds a preset threshold and the link quality score of the first uplink exceeds the link quality score of the second uplink, then the first uplink is determined to be the optimal uplink. If the score difference exceeds a preset threshold and the link quality score of the second uplink exceeds the link quality score of the first uplink, then the second uplink is determined to be the optimal uplink. If the score difference does not exceed the preset threshold, then the current uplink used by the gateway is determined from the first uplink and the second uplink, and the current uplink is determined to be the optimal uplink. Here, the current uplink may refer to the link used by the gateway before the optimal uplink is determined.
[0033] For example, the link quality score of the first uplink is denoted as S-PON, and the link quality score of the second uplink is denoted as S-Dongle, with a preset threshold of 10. If S-PON - S-Dongle > 10, the first uplink is determined to be the optimal uplink, and the routing priorities of the first and second uplinks are updated with the instruction "PON routing priority 10, Dongle routing 20, the smaller the priority value, the higher the routing priority". If S-Dongle - S-PON > 10, the second uplink is determined to be the optimal uplink, and the routing priorities of the first and second uplinks are updated with the instruction "PON routing priority 20, Dongle routing 10, the smaller the priority value, the higher the routing priority". If the difference between S-PON and S-Dongle is ≤ 10, the current uplink used by the gateway is kept as the optimal uplink (to avoid frequent link switching).
[0034] In this embodiment, by introducing a preset threshold as the criterion for link switching, the frequent switching problem caused by the fluctuation of the link quality scores of the two uplinks around the critical value is effectively avoided. It can switch the service to the better path in a timely manner when the quality of one link is significantly better than the other, ensuring the smoothness and stability of the network. It can also maintain the existing link when the quality of the two links is similar, thereby greatly reducing unnecessary routing oscillations and improving the working efficiency of the gateway device and the user experience of the entire network system.
[0035] In one embodiment, such as Figure 4 As shown, a method for selecting the uplink mode of a PON network OUN gateway is provided. This method further includes the following steps: Step S401: Monitor the connection status of the first uplink and the second uplink in real time, and obtain the connection status of the first uplink and the second uplink respectively.
[0036] Step S402: If the connection status of the first uplink is normal and the connection status of the second uplink is broken, then route forwarding is performed based on the first uplink.
[0037] Step S403: If the connection status of the first uplink is disconnected and the connection status of the second uplink is normal, then route forwarding is performed according to the second uplink.
[0038] In this embodiment, the connection status can be divided into normal and open circuit.
[0039] Specifically, if the connection status of the first uplink is normal and the connection status of the second uplink is broken, then the first uplink can be determined as the only available link. Routing is performed based on the first uplink, and the routing priorities of the first and second uplinks are updated. The instruction is "Set PON route priority to 10 (highest), Dongle route to invalid". If the connection status of the first uplink is broken and the connection status of the second uplink is normal, then the second uplink can be determined as the only available link. Routing is performed based on the second uplink, and the routing priorities of the first and second uplinks are updated. The instruction is "Set Dongle route priority to 10 (highest), Dongle route to invalid".
[0040] In this embodiment, by monitoring the connection status of the two uplinks in real time and immediately performing a forced switch when a complete disconnection of a link is detected, an efficient link failure emergency response mechanism is established. This ensures that when a serious failure (such as physical interruption) occurs on the primary link, the gateway can seamlessly and instantly switch all network traffic to the only available backup link. This greatly enhances the network's redundancy and service continuity, effectively avoids network service interruptions caused by single points of failure, and provides users with a more reliable network connection guarantee.
[0041] It should be understood that the sequence number of each step in the above embodiments does not imply 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 the present invention.
[0042] In one embodiment, a PON network OUN gateway uplink mode selection device is provided, which corresponds one-to-one with the PON network OUN gateway uplink mode selection method in the above embodiments. For example... Figure 5 As shown, the uplink mode selection device for the PON network OUN gateway includes a data acquisition module 51, a scoring prediction module 52, and a mode selection module 53. Detailed descriptions of each functional module are as follows: The data acquisition module 51 is used to monitor the network data of the first uplink, the second uplink and the gateway terminal in real time, and to acquire the link connectivity data and network quality data of the first uplink and the second uplink, and to acquire the network behavior data of the terminal. The scoring prediction module 52 is used to input the link connectivity data, the network quality data and the network behavior data into the model that has been trained for link quality assessment, and output the link quality scores of the first uplink and the second uplink respectively through the model that has been trained for network quality assessment. The mode selection module 53 is used to determine the optimal uplink from the first uplink and the second uplink based on the link quality score, and to perform routing and forwarding based on the optimal uplink.
[0043] Optionally, the above-mentioned rating prediction module 52 includes: The initial prediction unit is used to input the link connectivity data, the network quality data, and the network behavior data into the model that has been trained for link quality assessment, and to determine the initial scores of the first uplink and the second uplink based on the link connectivity data and the network quality data through the model that has been trained for link quality assessment. The scoring adjustment unit is used to adjust the initial scores of the first uplink and the second uplink based on the network behavior data, so as to obtain the link quality scores of the first uplink and the second uplink respectively.
[0044] Optionally, the above-mentioned mode selection module 53 includes: The difference determination unit is used to determine the score difference between the first uplink and the second uplink based on the link quality score; The first judgment unit is used to determine the first uplink as the optimal uplink if the score difference exceeds a preset threshold and the link quality score of the first uplink exceeds the link quality score of the second uplink. The second judgment unit is used to determine the second uplink as the optimal uplink if the score difference exceeds the preset threshold and the link quality score of the second uplink exceeds the link quality score of the first uplink.
[0045] Optionally, the above-mentioned mode selection module 53 further includes: The third judgment unit is used to determine the current uplink used by the gateway from the first uplink and the second uplink if the score difference does not exceed the preset threshold. A link preservation unit is used to select the current uplink as the optimal uplink.
[0046] Optionally, the PON network OUN gateway uplink mode selection device further includes: The status monitoring module is used to monitor the connection status of the first uplink and the second uplink in real time, and to obtain the connection status of the first uplink and the second uplink respectively. The fourth judgment module is used to perform routing forwarding based on the first uplink if the connection status of the first uplink is normal and the connection status of the second uplink is disconnected. The fifth judgment module is used to perform routing forwarding based on the second uplink if the connection status of the first uplink is disconnected and the connection status of the second uplink is normal.
[0047] Optionally, the PON network OUN gateway uplink mode selection device further includes: The table acquisition module is used to acquire the routing table and NAT mapping table corresponding to the gateway; The table update module is used to update the routing table and the NAT mapping table according to the optimal uplink.
[0048] Specific limitations regarding the PON network OUN gateway uplink mode selection device can be found in the above description of the PON network OUN gateway uplink mode selection method, and will not be repeated here. Each module in the aforementioned PON network OUN gateway uplink mode selection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0049] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 6 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores link connectivity data, network quality data, and network behavior data. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a PON network OUN gateway uplink mode selection method.
[0050] In one embodiment, 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, it implements the PON network OUN gateway uplink mode selection method described in the above embodiment, for example... Figure 2 As shown in S201-S203, or Figures 3 to 4 As shown, to avoid repetition, it will not be described again here. Alternatively, when the processor executes the computer program, it implements the functions of each module / unit in this embodiment of the PON network OUN gateway uplink mode selection device, for example, Figure 5The functions of the data acquisition module 51, the scoring prediction module 52, and the mode selection module 53 shown are not described again here to avoid repetition.
[0051] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When executed by a processor, the computer program implements the uplink mode selection method for the PON network OUN gateway described in the above embodiment, for example... Figure 2 As shown in S201-S203, or Figures 3 to 4 As shown, to avoid repetition, it will not be described again here. Alternatively, when the processor executes the computer program, it implements the functions of each module / unit in this embodiment of the PON network OUN gateway uplink mode selection device, for example, Figure 5 The functions of the data acquisition module 51, the scoring prediction module 52, and the mode selection module 53 shown are not described again here to avoid repetition.
[0052] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0053] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0054] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A method for selecting uplink mode of a PON network OUN gateway, characterized in that, The gateway includes a first uplink based on PON mode and a second uplink based on Dongle mode, and the selection method includes: The network data of the first uplink, the second uplink, and the gateway terminal are monitored in real time, and the link connectivity data and network quality data of the first uplink and the second uplink are obtained respectively, as well as the network behavior data of the terminal. The link connectivity data, network quality data, and network behavior data are input into a model that has been trained for link quality assessment. The model that has been trained for network quality assessment outputs the link quality scores for the first uplink and the second uplink, respectively. Based on the link quality score, the optimal uplink is determined from the first uplink and the second uplink, and routing is performed based on the optimal uplink.
2. The PON network OUN gateway uplink mode selection method according to claim 1, characterized in that, The step of inputting the link connectivity data, the network quality data, and the network behavior data into a model that has already been trained for link quality assessment, and then outputting link quality scores for the first uplink and the second uplink through the model, respectively, includes: The link connectivity data, network quality data, and network behavior data are input into a model that has been trained for link quality assessment. The model, based on the link connectivity data and network quality data, determines the initial scores of the first uplink and the second uplink, respectively. Based on the network behavior data, the initial scores of the first uplink and the second uplink are adjusted to obtain the link quality scores of the first uplink and the second uplink, respectively.
3. The PON network OUN gateway uplink mode selection method according to claim 1, characterized in that, The step of determining the optimal uplink from the first uplink and the second uplink based on the link quality score includes: Based on the link quality score, determine the score difference between the first uplink and the second uplink; If the score difference exceeds a preset threshold, and the link quality score of the first uplink exceeds the link quality score of the second uplink, then the first uplink is determined to be the optimal uplink. If the score difference exceeds the preset threshold, and the link quality score of the second uplink exceeds the link quality score of the first uplink, then the second uplink is determined to be the optimal uplink.
4. The PON network OUN gateway uplink mode selection method according to claim 3, characterized in that, After determining the score difference between the first uplink and the second uplink based on the link quality score, the method further includes: If the score difference does not exceed the preset threshold, then the current uplink used by the gateway is determined from the first uplink and the second uplink; The current uplink is taken as the optimal uplink.
5. The PON network OUN gateway uplink mode selection method according to claim 1, characterized in that, The PON network OUN gateway uplink mode selection method also includes: The connection status of the first uplink and the second uplink is monitored in real time, and the connection status of the first uplink and the second uplink is obtained respectively. If the connection status of the first uplink is normal and the connection status of the second uplink is broken, then routing forwarding is performed according to the first uplink. If the connection status of the first uplink is disconnected and the connection status of the second uplink is normal, then routing and forwarding are performed based on the second uplink.
6. The PON network OUN gateway uplink mode selection method according to claim 1, characterized in that, Before performing routing forwarding based on the optimal uplink, the method further includes: Obtain the routing table and NAT mapping table corresponding to the gateway; The routing table and the NAT mapping table are updated based on the optimal uplink.
7. A PON network OUN gateway uplink mode selection device, characterized in that, The gateway includes a first uplink based on PON mode and a second uplink based on Dongle mode, and the selection device includes: The data acquisition module is used to monitor the network data of the first uplink, the second uplink and the gateway terminal in real time, and to acquire the link connectivity data and network quality data of the first uplink and the second uplink, as well as the network behavior data of the terminal. The scoring prediction module is used to input the link connectivity data, the network quality data, and the network behavior data into a model that has been trained for link quality assessment, and output the link quality scores of the first uplink and the second uplink respectively through the model that has been trained for network quality assessment. The mode selection module is used to determine the optimal uplink from the first uplink and the second uplink based on the link quality score, and to perform routing and forwarding based on the optimal uplink.
8. The PON network OUN gateway uplink mode selection device according to claim 7, characterized in that, The rating prediction module includes: The initial prediction unit is used to input the link connectivity data, the network quality data, and the network behavior data into the model that has been trained for link quality assessment, and to determine the initial scores of the first uplink and the second uplink based on the link connectivity data and the network quality data through the model that has been trained for link quality assessment. The scoring adjustment unit is used to adjust the initial scores of the first uplink and the second uplink based on the network behavior data, so as to obtain the link quality scores of the first uplink and the second uplink respectively.
9. A computer device, characterized in that, The computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the PON network OUN gateway uplink mode selection method as described in any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the PON network OUN gateway uplink mode selection method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Dynamic route adjusting method and system under NAT environment
CN102025594A
Wireless sensor network link quality evaluation method based on LightGBM
CN116017531A
Method, device and system for implementing data traffic migration between PON (Passive Optical Network) and 5G (5th Generation) network
CN116095870A
Communication link switching method of heterogeneous network
CN119155760A
Method and system for transmitting disaster recovery backup capability of emergency recovery unit
CN120342939A