A method and system for automatic switching of multiple uplink interface links

By comparing, analyzing, and weighting the data traffic of the optical link unit through the PON port monitoring terminal, the problem of untimely detection of link anomalies between OLT and ONU devices is solved, enabling rapid switching of optical links and improving the stability of network communication.

CN115767323BActive Publication Date: 2025-12-19NINGBO YONGYAO ELECTRIC POWER INVESTMENT GRP CO
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211281029.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-19
Publication Date
2025-12-19
Estimated Expiration
2042-10-19

AI Technical Summary

Technical Problem

In existing PON technology, link anomaly detection between OLT and ONU devices is not timely, leading to unstable network communication, and communication is lost when both the primary and backup links fail.

Method used

The PON port monitoring terminal compares and analyzes the data traffic received by the optical link unit, generates a priority switching table for alternative optical link units, quickly switches to the backup link, and performs weighted scoring based on bit error rate, distortion rate and latency data to optimize the link switching strategy.

Benefits of technology

It enables timely detection and rapid switching of optical link anomalies, improving the stability and reliability of data traffic transmission and adapting to the differentiated needs of different data traffic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115767323B_ABST
    Figure CN115767323B_ABST
Patent Text Reader

Abstract

The application discloses a kind of multi-uplink interface link automatic switching method and system, comprising the following steps: S1, construct network link structure: including: server is connected with the uplink port of first optical link terminal and second optical link terminal by optical link terminal switching device and communication;The downlink port of first optical link terminal and second optical link terminal is connected with a plurality of optical link units communication;S2, first optical link terminal or second optical link terminal receives the data flow of server end, according to the set flow value to data flow is segmented and is sent to optical link unit after inserting communication code;S3, PON mouth monitoring terminal is compared and analyzed by to each optical link unit received data flow, according to the analysis result obtains the priority switching table L of alternative optical link unit, according to the priority switching table L of alternative optical link unit executes link switching operation.The scheme can greatly improve the stability and reliability of data flow transmission.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of communication technology, in particular to a multi-uplink interface link automatic switching method and system. BACKGROUND

[0002] In the industrial application of passive optical network (PON) technology, various sensors, industrial control devices and the like communicate with a server through an optical link unit (ONU). In order to ensure the reliability of data transmission, the optical link terminal (OLT) and the optical link unit (ONU) are usually required to have a switching protection function, also known as master-backup protection switching. When a certain port of a device is abnormal due to hardware failure or the like, the communication will be switched to the backup link. The OLT device and the ONU device judge whether to switch to the backup link by detecting the working state and error code rate of the current port. In the existing protection mode, when a certain level of network device above the OLT fails, the link state between the OLT device and the ONU device is normal, and at this time the OLT and the ONU will not switch to the backup link. On the other hand, when the master and backup links of the OLT device and the ONU device both fail, communication with the server will be completely lost. Therefore, how to quickly determine whether the link between the OLT device and the ONU device is abnormal, and how to determine the optimal switching link according to the state of the ONU device, are technical problems that need to be solved to ensure the stability of network communication. SUMMARY

[0003] The purpose of the present application is to solve the problem that the traditional link switching technology cannot quickly determine whether the link between the optical link terminal and the optical link unit is abnormal, and how to determine the optimal switching link according to the operating state of the optical link unit, which hinders the stability of network communication. A multi-uplink interface link automatic switching method and system is designed. The PON port monitoring terminal can timely determine whether the link between the optical link terminal and the optical link unit is abnormal by comparing and analyzing the data flow received by each optical link unit. If it is abnormal, it can quickly switch to the backup optical link terminal to ensure network stability. Further, the link switching priority is selected according to the analysis result, and the link switching operation is performed according to the priority switching table L of the backup optical link unit, greatly improving the stability and reliability of data flow transmission.

[0004] In the first aspect, a technical scheme provided by an embodiment of the present application is a multi-uplink interface link automatic switching method, including the following steps:

[0005] S1, constructing a network link structure, including: the server is in communication connection with the uplink port of the first optical link terminal and the second optical link terminal through the optical link terminal switching device; the downlink port of the first optical link terminal and the second optical link terminal is in communication connection with a plurality of optical link units;

[0006] S2, the first optical link terminal or the second optical link terminal receives data flow of the server end, segments the data flow according to a set flow value, inserts a communication code, and sends to the optical link unit;

[0007] S3, the PON port monitoring terminal compares and analyzes the data flow received by each optical link unit, obtains a priority switching table L of the alternative optical link unit according to the analysis result, and performs link switching operation according to the priority switching table L of the alternative optical link unit.

[0008] In the scheme, the PON port monitoring terminal compares and analyzes the data flow received by each optical link unit, can timely find whether the link between the optical link terminal and the optical link unit is abnormal, if abnormal, can quickly switch to the standby optical link terminal to guarantee the network stability, further, according to the analysis result, selects the link switching priority, and performs the link switching operation according to the priority switching table L of the alternative optical link unit, greatly improves the stability and reliability of the data flow transmission.

[0009] As preferred, the S2 comprises the following steps:

[0010] S21, the first flow monitoring unit detects the data flow of the server end received by the first optical link terminal or the second optical link terminal, generates a heartbeat trigger signal according to the flow value, determines the start end and the end end of each data flow, and the start end and the end end of the adjacent two data flows are left with a flow interval;

[0011] S22, the heartbeat generator receives the heartbeat trigger signal to generate the corresponding communication code;

[0012] S23, the code inserter unit inserts the communication code into the flow interval, and sends to the optical link unit at the downstream port along with the data flow.

[0013] As preferred, the S3 comprises the following steps:

[0014] S31, the second flow monitoring unit obtains each data flow received by each optical link unit in real time;

[0015] S32, the communication code extraction unit obtains the corresponding communication code of each data flow, and the data splicing unit splices each data flow to eliminate the corresponding flow interval;

[0016] S33, each data flow and the corresponding communication code are sent to the comparison unit for comparison to determine the integrity of the data flow and the integrity of the communication code received by each optical link unit;

[0017] S34, the timing unit obtains the time delay data T of each data flow received by the i-th optical link unit i-1 ;

[0018] S35, the operation unit calculates the corresponding distortion rate η according to the integrity of the data flow and the integrity of the communication code received by the i th optical link unit i-1 and the bit error rate η i-2 , and calculates the score g of the i th optical link unit according to the delay data i , and obtains the priority switching table L of the candidate optical link unit according to the score result;

[0019] S36, the link switching unit performs link switching operation on the corresponding optical link unit according to the priority switching table L.

[0020] As preferred, the score g of the i th optical link unit i The calculation formula is:

[0021] g i = λ1η i-1 + λ2η i-2 + λ3T i-1

[0022] Wherein, 1 = λ1+ λ2+ λ3; λ1 is the weight factor of the distortion rate corresponding to the i th optical link unit, λ2 is the weight factor of the bit error rate corresponding to the i th optical link unit, and λ3 is the weight factor of the delay data corresponding to the i th optical link unit; wherein, the values of λ1, λ2 and λ3 are artificially set according to the differentiated requirements of different data flows for transmission characteristics (including distortion rate, delay and bit error rate).

[0023] As preferred, the calculation of distortion rate includes:

[0024] The operation unit obtains M pieces of data flow and extracts the flow value and communication code of each piece of data flow respectively;

[0025] According to the joint comparison table, the distortion rate of the corresponding optical link unit is obtained; the joint comparison table contains the mapping relationship between the flow value and the communication code;

[0026] The flow value of each piece of data flow is obtained respectively, the corresponding true communication code in the joint comparison table is obtained according to the flow value, and the true communication code is compared with the extracted communication code to obtain the flow value truth table H1 of each piece of data flow. If the comparison is true, it is recorded as "1"; if the comparison is false, it is recorded as "0";

[0027] According to the proportion of the number "0" in the flow value truth table H1, the corresponding distortion rate is obtained.

[0028] As preferred, the calculation of bit error rate includes:

[0029] The operation unit obtains M pieces of data flow and extracts the flow value and communication code of each piece of data flow respectively;

[0030] According to the joint comparison table to view the corresponding optical link unit error rate; the joint comparison table contains the mapping relationship between traffic value and communication code;

[0031] Respectively obtain the communication code of each piece of data traffic, obtain the corresponding real traffic value in the joint comparison table according to the communication code, and compare the real traffic value with the obtained traffic value to obtain the communication code truth table H2 of each piece of data traffic; if the comparison is true, it is recorded as '1'; if the comparison is false, it is recorded as '0';

[0032] According to the proportion of the number '0' in the communication code truth table H2, the corresponding error rate is obtained.

[0033] Secondly, the application also provides a multi-uplink interface link automatic switching system, comprising: a first optical link terminal and a second optical link terminal which are mutually primary and backup, an optical link terminal switching device, a plurality of optical link units in communication connection with the downlink ports of the first optical link terminal and the second optical link terminal, a heartbeat generator and a PON port monitoring terminal;

[0034] The uplink ports of the first optical link terminal and the second optical link terminal are in communication connection with a server;

[0035] The optical link terminal switching device determines the primary and backup switching strategy according to the communication state of the server and the optical link terminal;

[0036] The plurality of optical link units are used to receive network data information of the first optical link terminal or the second optical link terminal;

[0037] The heartbeat generator generates corresponding communication codes according to the traffic values received by the first optical link terminal or the second optical link terminal;

[0038] The PON port monitoring terminal determines the optimal optical link unit by verifying the communication codes and the traffic received by each optical link unit, and performs switching of the optical link unit.

[0039] Preferably, the first optical link terminal and the second optical link terminal which are mutually primary and backup have the same structure and function;

[0040] The first optical link terminal is provided with a first traffic monitoring unit, a first communication code transceiver unit and a code generator unit;

[0041] The first traffic monitoring unit is used to detect the data traffic of the server received by the first optical link terminal and generate a heartbeat trigger signal, determine the start and end of each piece of data traffic, and leave a traffic interval between the start and end of adjacent two pieces of data traffic, and the heartbeat generator receives the heartbeat trigger signal to generate corresponding communication codes;

[0042] The first communication code transceiver unit is used for acquiring the communication code sent by the heartbeat generator.

[0043] The code inserter unit inserts the communication code into the traffic interval and sends the data traffic to the optical link units at the downstream port.

[0044] Preferably, the PON port monitoring terminal comprises a second traffic monitoring unit, a communication code extraction unit, a data splicing unit, a calculation unit, an identification unit, a link switching unit and a timing unit.

[0045] The second traffic monitoring unit is used for monitoring the data traffic sent by the downstream port.

[0046] The communication code extraction unit is used for extracting the communication code in the traffic interval of the received data traffic.

[0047] The data splicing unit is used for splicing each piece of data traffic to eliminate the corresponding traffic interval.

[0048] The comparison unit is used for determining the integrity of the data traffic and the integrity of the communication code received by each optical link unit.

[0049] The timing unit is used for obtaining the time delay data of each piece of data traffic received by each optical link unit.

[0050] The calculation unit calculates the distortion rate and the bit error rate according to the integrity of the data traffic and the integrity of the communication code received by each optical link unit, and performs weighted calculation according to the time delay data to obtain the score of each optical link unit, and obtains the priority switching table L of the alternative optical link unit according to the score result.

[0051] The link switching unit performs the link switching operation of the corresponding optical link unit according to the priority switching table L.

[0052] The present application has the following advantages: the multi-uplink interface link automatic switching method and system can analyze the data traffic received by each optical link unit, can timely find out whether the link between the optical link terminal and the optical link unit is abnormal, and can quickly switch to the standby optical link terminal to guarantee the network stability if the link is abnormal; the link switching unit selects the link switching priority (excluding itself) according to the analysis result, and performs the link switching operation according to the priority switching table L of the alternative optical link unit, greatly improving the stability and reliability of the data traffic transmission.

[0053] Finally, each optical link unit is scored through three-dimensional data (including bit error rate, distortion rate and extended data), and corresponding weight values can be manually set according to different requirements of different data flows on transmission characteristics, so that the applicability of the scheme is higher.

[0054] The above summary of the application is only a summary of the technical solutions of the application. In order to enable the technical means of the application to be more clearly understood and implemented according to the contents of the specification, and in order to enable the above and other purposes, characteristics and advantages of the application to be more apparent and easy to understand, the specific embodiments of the application are described below. BRIEF DESCRIPTION OF DRAWINGS

[0055] Other features, objects, and advantages of the application will become more apparent from a reading of the following detailed description together with reference to the drawings. The drawings are for purposes of illustration only and the application is not limited thereto. Like reference numerals in different drawings denote the same element.

[0056] Figure 1 A flow chart of a multi-uplink interface link automatic switching method of the application. DETAILED DESCRIPTION

[0057] In order to make the purposes, technical solutions and advantages of the application more clear and apparent, the application is further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only the best mode of the application, which are used to explain the application and do not limit the protection scope of the application. All other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the application.

[0058] Before discussing the example embodiments in more detail, it should be mentioned that some example embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the operations (or steps) as sequential processes, many of the operations (or steps) can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The processes can be terminated when their operations are completed, but can also have additional steps not included in the drawings; the processes can correspond to methods, functions, procedures, subroutines, etc.

[0059] Embodiment: As shown in the figure, a technical solution provided in an embodiment of the application is a multi-uplink interface link automatic switching method, including the following steps: Figure 1

[0060] ​S1, constructing a network link structure, comprising: a server being in communication connection with an uplink port of a first optical link terminal and a second optical link terminal through an optical link terminal switching device; and downlink ports of the first optical link terminal and the second optical link terminal being in communication connection with a plurality of optical link units.

[0061] S2, the first optical link terminal or the second optical link terminal receiving data traffic from a server end, segmenting the data traffic according to a set traffic value, inserting a communication code, and sending to the optical link units.

[0062] Specifically, S2 includes the following steps:

[0063] S21, a first traffic monitoring unit detecting data traffic from the server end received by the first optical link terminal or the second optical link terminal, generating a heartbeat trigger signal according to a traffic value; determining a start end and a termination end of each segment of data traffic, and leaving a traffic interval at the start end and the termination end of adjacent two segments of data traffic;

[0064] S22, a heartbeat generator receiving the heartbeat trigger signal to generate a corresponding communication code;

[0065] S23, a code inserter unit inserting the communication code into the traffic interval and sending to the plurality of optical link units at the downlink port along with the data traffic.

[0066] S3, a PON port monitoring terminal comparing and analyzing data traffic received by each optical link unit, obtaining a priority switching table L of candidate optical link units according to an analysis result, and performing a link switching operation according to the priority switching table L of the candidate optical link units.

[0067] Specifically, S3 includes the following steps:

[0068] S31, a second traffic monitoring unit obtaining each segment of data traffic received by each optical link unit in real time;

[0069] S32, a communication code extraction unit obtaining a communication code corresponding to each segment of data traffic, and a data splicing unit splicing each segment of data traffic to eliminate the corresponding traffic interval;

[0070] S33, each segment of data traffic and the corresponding communication code being sent to a comparison unit for comparison to determine the integrity of the data traffic and the integrity of the communication code received by each optical link unit;

[0071] S34, a timing unit obtaining a time delay data T i-1 ;

[0072] S35, an operation unit calculating a corresponding distortion rate η i-1and the bit error rate η i-2 and the delay data to obtain the score g of the ith optical link unit i According to the score result, obtain the priority switching table L of the candidate optical link unit.

[0073] S36, the link switching unit performs link switching operation on the corresponding optical link unit according to the priority switching table L.

[0074] Specifically, the score g of the ith optical link unit i The calculation formula is:

[0075] g i = λ1η i-1 + λ2η i-2 + λ3T i-1

[0076] Wherein, 1 = λ1+ λ2+ λ3; λ1 is the weight factor of the distortion rate corresponding to the ith optical link unit, λ2 is the weight factor of the bit error rate corresponding to the ith optical link unit, λ3 is the weight factor of the delay data corresponding to the ith optical link unit; wherein, the values of λ1, λ2 and λ3 are artificially set according to the differentiated requirements of different data flows on transmission characteristics (including distortion rate, bit error rate and delay). For example, when the demand for transmission characteristics is biased from large to small, the distortion rate > delay > bit error rate, then λ1 = 0.5, λ2 = 0.3 and λ3 = 0.2 can be set.

[0077] Specifically, a distortion rate calculation method is provided, comprising:

[0078] The operation unit obtains M pieces of data flow and extracts the flow value and communication code of each piece of data flow respectively;

[0079] According to the joint comparison table, the distortion rate of the corresponding optical link unit is obtained; the joint comparison table contains the mapping relationship between the flow value and the communication code;

[0080] The flow value of each piece of data flow is obtained respectively, the corresponding real communication code in the joint comparison table is obtained according to the flow value, and the real communication code is compared with the extracted communication code to obtain the flow value truth table H1 of each piece of data flow. If the comparison is true, it is recorded as "1"; if the comparison is false, it is recorded as "0";

[0081] According to the proportion of the number "0" in the flow value truth table H1, the corresponding distortion rate is obtained.

[0082] Specifically, a bit error rate calculation method is provided, comprising:

[0083] The operation unit obtains M pieces of data flow and extracts the flow value and communication code of each piece of data flow respectively;

[0084] According to the joint comparison table, the bit error rate of the corresponding optical link unit is viewed; the joint comparison table contains the mapping relationship between the traffic value and the communication code;

[0085] The communication code of each piece of data traffic is obtained respectively, the corresponding real traffic value in the joint comparison table is obtained according to the communication code, and the communication code truth table H2 of each piece of data traffic is obtained by comparing the real traffic value with the obtained traffic value; if the comparison is true, it is recorded as '1'; if the comparison is false, it is recorded as '0';

[0086] According to the proportion of the number '0' in the communication code truth table H2, the corresponding bit error rate is obtained.

[0087] The beneficial effects that can be possessed in the embodiment are as follows: the multi-uplink interface link automatic switching method and system can timely find out whether the link between the optical link terminal and the optical link unit is abnormal by comparing and analyzing the data traffic received by each optical link unit through the PON port monitoring terminal, and if the link is abnormal, the optical link terminal can be quickly switched to the standby optical link terminal to ensure the stability of the network; secondly, the link switching unit selects the link switching priority (excluding itself) according to the analysis result, and performs the link switching operation according to the priority switching table L of the selected optical link unit, which greatly improves the stability and reliability of the data traffic transmission; finally, each optical link unit is scored through three-dimensional data (including the bit error rate, the distortion rate and the extended data), and the corresponding weight value can be manually set according to the different differentiated needs of different data traffic for the transmission characteristics, so that the applicability of the scheme is higher.

[0088] The embodiment of the application also provides a multi-uplink interface link automatic switching system, which is composed of a first optical link terminal and a second optical link terminal that are mutually primary and standby, an optical link terminal switching device, a plurality of optical link units in communication connection with the downlink ports of the first optical link terminal and the second optical link terminal, a heartbeat generator and a PON port monitoring terminal.

[0089] The uplink ports of the first optical link terminal and the second optical link terminal are in communication connection with a server; the optical link terminal switching device determines the primary and standby switching strategy according to the communication state of the server and the optical link terminal; the plurality of optical link units are used for receiving network data information of the first optical link terminal or the second optical link terminal; the heartbeat generator generates corresponding communication codes according to the traffic values received by the first optical link terminal or the second optical link terminal; the PON port monitoring terminal determines the optimal optical link unit by verifying the communication codes and the traffic received by each optical link unit, and performs the switching of the optical link unit.

[0090] The first optical link terminal and the second optical link terminal are the same in structure and function, and the second optical link terminal is used as a backup optical link terminal when the first optical link terminal cannot receive data traffic sent by the server.

[0091] The first optical link terminal is provided with a first traffic monitoring unit, a first communication code transceiver unit and a code inserter unit. The first traffic monitoring unit is used to detect data traffic from the server received by the first optical link terminal and generate a heartbeat trigger signal, determine the start and end of each piece of data traffic, and leave a traffic interval at the start and end of adjacent two pieces of data traffic. The heartbeat generator receives the heartbeat trigger signal to generate a corresponding communication code. The first communication code transceiver unit is used to obtain the communication code sent by the heartbeat generator. The code inserter unit inserts the communication code into the traffic interval and sends it to the optical link unit at the downlink port along with the data traffic.

[0092] The PON port monitoring terminal includes a second traffic monitoring unit, a communication code extraction unit, a data splicing unit, a calculation unit, an identification unit, a link switching unit and a timing unit. The second traffic monitoring unit is used to monitor the data traffic issued by the downlink port. The communication code extraction unit is used to extract the communication code in the traffic interval of the received data traffic. The data splicing unit is used to splice each piece of data traffic to eliminate the corresponding traffic interval. The comparison unit is used to determine the integrity of the data traffic and the integrity of the communication code received by each optical link unit. The timing unit is used to obtain the time delay data by obtaining the time when each optical link unit receives each piece of data traffic. The calculation unit calculates the distortion rate and the bit error rate according to the integrity of the data traffic and the integrity of the communication code received by each optical link unit, and calculates the score of each optical link unit according to the time delay data, and obtains the priority switching table L of the backup optical link unit according to the score result. The link switching unit performs link switching operation on the corresponding optical link unit according to the priority switching table L.

[0093] The above specific embodiments are the preferred embodiments of the multi-uplink interface link automatic switching method and system of the present application, and are not intended to limit the specific implementation range of the present application. The scope of the present application includes but is not limited to the specific embodiments, and any equivalent changes made in accordance with the shape and structure of the present application are within the scope of protection of the present application.

Claims

1. A method for automatic switching of multiple uplink interface links, characterized in that: Includes the following steps: S1. Constructing the network link structure: including: the server communicating with the uplink ports of the first optical link terminal and the second optical link terminal through an optical link terminal switching device; the downlink ports of the first optical link terminal and the second optical link terminal communicating with several optical link units; S2. The first optical link terminal or the second optical link terminal receives the data traffic from the server, segments the data traffic according to the set traffic value, inserts communication codes, and then sends it to the optical link unit. The S3 and PON port monitoring terminals compare and analyze the data traffic received by each optical link unit, and obtain a priority switching table for candidate optical link units based on the analysis results. According to the priority switching table of the alternative optical link units Perform a link switching operation; S3 includes the following steps: S31, The second traffic monitoring unit acquires the data traffic received by each optical link unit in real time; S32. After the communication code extraction unit obtains the communication code corresponding to each segment of data traffic, the data splicing unit splices each segment of data traffic to eliminate the corresponding traffic interval. S33. Send each data traffic segment and its corresponding communication code to the comparison unit for comparison, and determine the integrity of the data traffic and the integrity of the communication code received by each optical link unit. S34, Timing unit obtains the first... Each optical link unit receives latency data at the moment it receives each segment of data traffic. ; S35, the arithmetic unit according to the first The distortion rate is calculated based on the integrity of the received data traffic and the integrity of the communication code in each optical link unit. and bit error rate And the first value is obtained by weighted calculation based on the latency data. Scoring of each optical link unit Based on the scoring results, obtain the priority switching table for the candidate optical link units. ; S36, The link switching unit switches according to the priority switching table. Perform the link switching operation for the corresponding optical link unit.

2. The method for automatic switching of multiple uplink interface links according to claim 1, characterized in that: S2 includes the following steps: S21. The first traffic monitoring unit detects the data traffic received by the server from the first optical link terminal or the second optical link terminal, and generates a heartbeat trigger signal based on the traffic value. Determine the start and end points of each data traffic segment, and leave a traffic interval between the start and end points of adjacent data traffic segments; S22. The heartbeat generator receives the heartbeat trigger signal and generates the corresponding communication code. S23. The code generator unit inserts the communication code into the traffic interval and sends it along with the data traffic to several optical link units at the downlink port.

3. The method for automatic switching of multiple uplink interface links according to claim 1, characterized in that: No. Scoring of each optical link unit The calculation formula is: ; in, ; For the first The weighting factor for the distortion rate corresponding to each optical link unit. For the first Weighting factors for the bit error rate corresponding to each optical link unit For the first Weighting factors for the latency data corresponding to each optical link unit.

4. The method for automatic switching of multiple uplink interface links according to claim 1, characterized in that: The calculation of distortion rate includes: The processing unit acquires M segments of data traffic and extracts the traffic value and communication code for each segment. The distortion rate of the corresponding optical link unit is checked according to the joint comparison table; the joint comparison table contains the mapping relationship between traffic values ​​and communication codes; Obtain the traffic value of each data traffic segment, retrieve the corresponding real communication code in the joint comparison table based on the traffic value, and compare the real communication code with the extracted communication code to obtain the traffic value truth table H1 for each data traffic segment. If the comparison is true, record it as "1"; if the comparison is false, record it as "0". The distortion rate is obtained by determining the proportion of the number "0" in the flow value truth table H1.

5. The method for automatic switching of multiple uplink interface links according to claim 1, characterized in that: The calculation of bit error rate includes: The processing unit acquires M segments of data traffic and extracts the traffic value and communication code for each segment. The bit error rate of the corresponding optical link unit is checked according to the joint comparison table; the joint comparison table contains the mapping relationship between traffic values ​​and communication codes; Obtain the communication code for each data traffic segment, retrieve the corresponding real traffic value from the joint comparison table based on the communication code, and compare the real traffic value with the obtained traffic value to obtain the communication code truth table H2 for each data traffic segment; if the comparison is true, record it as "1"; if the comparison is false, record it as "0". The corresponding bit error rate is obtained by calculating the proportion of the digit "0" in the truth table H2 of the communication code.

6. A multi-uplink automatic handover system, applicable to the multi-uplink automatic handover method as described in any one of claims 1-5, characterized in that: It includes: a first optical link terminal and a second optical link terminal that serve as each other as primary and backup, an optical link terminal switching device, several optical link units that are communicatively connected to the downlink ports of the first optical link terminal and the second optical link terminal, a heartbeat generator, and a PON port monitoring terminal. The uplink ports of the first optical link terminal and the second optical link terminal are connected to the server for communication. The optical link terminal switching device determines the primary / backup switching strategy based on the communication status between the server and the optical link terminal. Several of the optical link units are used to receive network data information from the first optical link terminal or the second optical link terminal; The heartbeat generator generates a corresponding communication code based on the traffic value received by the first optical link terminal or the second optical link terminal. The PON port monitoring terminal determines the optimal optical link unit by verifying the communication code and traffic received by each optical link unit, and then performs the switching of the optical link unit. The PON port monitoring terminal includes a second traffic monitoring unit, a communication code extraction unit, a data splicing unit, a calculation unit, an identification unit, a link switching unit, and a timing unit; The second traffic monitoring unit is used to monitor the data traffic sent from the downlink port; The communication code extraction unit is used to extract the communication code of the traffic interval of the received data traffic; The data splicing unit is used to splice each segment of data traffic to eliminate the corresponding traffic intervals; The comparison unit is used to determine the integrity of the data traffic and the integrity of the communication code received by each optical link unit; The timing unit is used to obtain the latency data by acquiring the moment when each optical link unit receives each segment of data traffic. The processing unit calculates the corresponding distortion rate and bit error rate based on the integrity of the received data traffic and communication code of each optical link unit, and performs weighted calculations based on the delay data to obtain a score for each optical link unit. Based on the score results, a priority switching table for candidate optical link units is obtained. ; The link switching unit uses a priority switching table. Perform the link switching operation for the corresponding optical link unit.

7. The multi-uplink interface link automatic switching system according to claim 6, characterized in that: The first and second optical link terminals, which serve as both primary and backup, have the same structure and function. The first optical link terminal is equipped with a first traffic monitoring unit, a first communication code transceiver unit, and a code generator unit; The first traffic monitoring unit is used to detect the data traffic received by the server from the first optical link terminal and generate a heartbeat trigger signal, determine the start and end of each data traffic segment, and leave a traffic interval between the start and end of two adjacent data traffic segments. The heartbeat generator receives the heartbeat trigger signal and generates a corresponding communication code. The first communication code transceiver unit is used to acquire the communication code sent by the heartbeat generator; The coding unit inserts the communication code into the traffic interval and sends it along with the data traffic to several optical link units at the downlink port.

Citation Information

Patent Citations

  • Wireless service establishment device and method in WLAN network

    CN104661323A

  • Method, device and system for link switching

    CN105103475A