CN108184173B - Method and device for automatically starting forward error correction code function and optical line terminal - Google Patents

Method and device for automatically starting forward error correction code function and optical line terminal Download PDF

Info

Publication number
CN108184173B
CN108184173B CN201711296966.4A CN201711296966A CN108184173B CN 108184173 B CN108184173 B CN 108184173B CN 201711296966 A CN201711296966 A CN 201711296966A CN 108184173 B CN108184173 B CN 108184173B
Authority
CN
China
Prior art keywords
test message
line
optical network
threshold
standard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711296966.4A
Other languages
Chinese (zh)
Other versions
CN108184173A (en
Inventor
雷正平
雷杰
王斯星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Fh Net Optoelectronics Co ltd
Original Assignee
Shenzhen Fh Net Optoelectronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Fh Net Optoelectronics Co ltd filed Critical Shenzhen Fh Net Optoelectronics Co ltd
Priority to CN201711296966.4A priority Critical patent/CN108184173B/en
Publication of CN108184173A publication Critical patent/CN108184173A/en
Application granted granted Critical
Publication of CN108184173B publication Critical patent/CN108184173B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0083Testing; Monitoring

Abstract

The embodiment of the invention relates to the field of fiber-to-the-home communication, and discloses a method and a device for automatically starting a forward error correction code function and an optical line terminal, wherein the method for automatically starting the forward error correction code comprises the following steps: determining the sending rate of the test message according to the line bandwidth; sending a test message to an optical network terminal according to the sending rate, and informing the optical network terminal to send the test message back; judging the line quality according to the test message returned by the optical network terminal; and determining whether to start a forward error correction code function according to the line quality. Through the mode, the embodiment of the invention can improve the judgment capability of the line quality, reduce the maintenance cost of the line and realize the balance of the line quality and the line bandwidth.

Description

Method and device for automatically starting forward error correction code function and optical line terminal
Technical Field
The invention relates to the field of fiber-to-the-home communication, in particular to a method and a device for automatically starting a forward error correction code function and an optical line terminal.
Background
With The continuous development of Fiber To The Home (FTTH), a large number of passive optical network systems are applied, providing greater bandwidth services for users. However, due to different networks and different environments, the quality of the lines is poor, and the Error rate is high, and Forward Error Correction (FEC) technology is widely applied to solve the problem of Error codes. FEC is a data encoding technique, in which a data transmitting end adds a certain redundant error correction code to a data packet to be transmitted, and a receiving end performs error detection according to the error correction code. In the FEC method, the receiving end can not only find the error, but also determine the position of the binary symbol where the error occurs, so as to correct the error. However, the FEC is turned on, which consumes a large amount of line bandwidth, and when the line quality is good, the line bandwidth cannot be fully utilized.
In the prior art, FEC is generally configured uniformly, either FEC is uniformly turned on or FEC is uniformly turned off, which results in that differentiated configuration cannot be performed, and thus line quality and line bandwidth cannot be balanced.
In the process of implementing the embodiment of the invention, the inventor finds that the related technology has at least the following problems: the judgment capability of the line quality is poor, the maintenance cost of the line is high, and the line quality and the line bandwidth cannot be balanced.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for automatically starting a forward error correction code function and an optical line terminal, which solve the problems that the judgment capability of the line quality is poor, the maintenance cost of the line is high, and the line quality and the line bandwidth cannot be balanced.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for automatically turning on a forward error correction code function, including:
determining the sending rate of the test message according to the line bandwidth;
sending a test message to an optical network terminal according to the sending rate, and informing the optical network terminal to send the test message back;
judging the line quality according to the test message returned by the optical network terminal;
and determining whether to start a forward error correction code function according to the line quality.
In some embodiments, the notifying the optical network terminal to send the test packet back includes:
and adding a judgment identifier into the test message so that the optical network terminal determines whether to send the test message back or not.
In some embodiments, the determining the line quality according to the test packet returned by the onu includes:
presetting an error code standard, and determining whether the line quality reaches the standard or not according to the error code standard;
the preset error code standard comprises: presetting a first threshold value, calculating the error rate of the test message,
if the error rate of the test message exceeds the first threshold, judging that the line quality does not reach the standard;
and if the error rate of the test message does not exceed the first threshold value, judging that the line quality reaches the standard.
In some embodiments, the determining whether to turn on the forward error correction code function according to the line quality includes:
if the line quality does not reach the standard, starting a forward error correction code function;
and if the line quality reaches the standard, not starting the forward error correction code function.
In some embodiments, the above method further comprises:
presetting a confidence level standard, and determining test time according to the confidence level standard;
the confidence criteria include: and presetting a confidence threshold, wherein the confidence of the test message with the error rate smaller than the first threshold is not smaller than the confidence threshold.
In some embodiments, the above method further comprises:
and judging whether the optical network terminal is on-line or not.
In a second aspect, an embodiment of the present invention provides an apparatus for automatically turning on a forward error correction code function, where the apparatus includes:
the rate unit is used for determining the sending rate of the test message according to the line bandwidth;
the sending unit is used for sending a test message to the optical network terminal according to the sending rate and informing the optical network terminal to send the test message back;
a line quality judging unit, configured to judge line quality according to the test packet returned by the optical network terminal;
and the starting unit is used for determining whether to start the forward error correction code function according to the line quality.
In some embodiments, the sending unit is specifically configured to:
and adding a judgment identifier into the test message so that the optical network terminal determines whether to send the test message back or not.
In some embodiments, the line quality determining unit is specifically configured to:
presetting an error code standard, and determining whether the line quality reaches the standard or not according to the error code standard;
the preset error code standard comprises: presetting a first threshold value, calculating the error rate of the test message,
if the error rate of the test message exceeds the first threshold, judging that the line quality does not reach the standard;
and if the error rate of the test message does not exceed the first threshold value, judging that the line quality reaches the standard.
In some embodiments, the opening unit is specifically configured to:
if the line quality does not reach the standard, starting a forward error correction code function;
and if the line quality reaches the standard, not starting the forward error correction code function.
In some embodiments, the above apparatus further comprises:
a time unit, the time unit specifically configured to: presetting a confidence level standard, and determining test time according to the confidence level standard;
the confidence criteria include: and presetting a confidence threshold, wherein the confidence of the test message with the error rate smaller than the first threshold is not smaller than the confidence threshold.
In some embodiments, the above apparatus further comprises:
and the judging unit is used for judging whether the optical network terminal is on-line or not.
In a third aspect, an embodiment of the present invention further provides an optical line terminal, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method described above.
The embodiment of the invention has the beneficial effects that: different from the prior art, the embodiment of the invention discloses a method and a device for automatically starting a forward error correction code function and an optical line terminal, wherein the method for automatically starting the forward error correction code function comprises the following steps: determining the sending rate of the test message according to the line bandwidth; sending a test message to an optical network terminal according to the sending rate, and informing the optical network terminal to send the test message back; judging the line quality according to the test message returned by the optical network terminal; and determining whether to start a forward error correction code function according to the line quality. Through the mode, the embodiment of the invention can improve the judgment capability of the line quality, reduce the maintenance cost of the line and realize the balance of the line quality and the line bandwidth.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic flowchart of a method for automatically turning on a forward error correction code function according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario for automatically turning on a forward error correction code function according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an apparatus for automatically turning on a forward error correction code according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an optical line terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
An Ethernet Passive Optical Network (EPON) is an Ethernet-based Passive Optical Network, and an EPON system adopts a bandwidth-shared point-to-multipoint topology structure, each Optical line terminal is connected to multiple Optical Network terminals through an Optical distribution Network, and the EPON system adopts IP-based packet switching and utilizes the Passive Optical Network technology and the Ethernet technology, so that the system is affected by factors such as line Optical power budget, Optical devices, receiver sensitivity and the like during transmission, resulting in frequent errors of messages, and different sent messages and received messages, which is called error codes; in order to solve the problem, the passive optical network introduces a Forward Error Correction (FEC) function, also called Forward Error Correction (FEC), which is a method for increasing the reliability of data communication. In a one-way communication channel, once an error is found, its receiver will not be entitled to a transmission again. FEC is a method of transmitting redundant information using data, and when an error occurs in transmission, it allows a receiver to reconstruct the data; FEC forward error correction is a very important anti-interference algorithm. The FEC reduces the error rate of the digital signal and improves the reliability of signal transmission.
The common FEC adopts classical hard decision codewords, the most typical codeword is RS (255, 239) coding, redundant codes are inserted at the end of the frame, the coding redundancy is 7%, the current GEPON system adopts 8B10B line coding rate, and after RS (255.239) coding is introduced, the coding efficiency of the system is reduced to 80% × 239/255 ═ 75%, and some control fields are also introduced; for the current 1.25Gbit/s rate, the line provides only about 7.5 of bandwidth with FEC turned on.
Example 1
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for automatically turning on a forward error correction code according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step S10: determining the sending rate of the test message according to the line bandwidth;
specifically, the line bandwidth refers to a bandwidth allocated by the optical line terminal to the optical network terminal, wherein the line bandwidth can be dynamically allocated to better achieve effective utilization of line resources. The sending rate of the test packet may be determined according to the bandwidth dynamically allocated to the optical network terminal by the optical line terminal. It will be appreciated that the rate of transmission of the test messages should not exceed the line bandwidth. For example: the sending rate of the test message can be set to 90% of the line bandwidth, and the test message is sent at the sending rate of 90% of the line bandwidth.
Step S20: sending a test message to an optical network terminal according to the sending rate, and informing the optical network terminal to send the test message back;
specifically, the optical line terminal sends the test packet to the optical network terminals, where one optical line terminal is connected to multiple optical network terminals, and the optical network terminals can broadcast the test packet, so that the multiple optical network terminals receive the same test packet, which is beneficial to more efficiently judging the quality of the line. Sending a test message to a plurality of optical network terminals, where the test message may be a message of different bytes, for example: may be a 64 byte message, a 512 byte message, a 1518 byte message, and Jumbo frame, and so on. The optical line terminal sends the test packet to the optical network terminal, and at the same time, notifies the optical network terminal to send the test packet back to the optical line terminal as it is, specifically, a binary bit is added to a packet tail of the test packet as a determination bit, where the binary bit is used to notify the optical network terminal to send the test packet back to the optical line terminal, for example: the number of the binary digit may be set to 1, after the optical network terminal receives the test message, it is first determined whether there is one more binary digit in the length of the message, if there is one more binary digit, it is identified whether the binary digit is 1, if the number of the binary digit is 1, the test message is sent back intact, or the determination digit of the test message may be removed, and only the content of the original test message is sent.
Or, the optical line terminal may send a notification message to the optical network terminal before sending the test message, and notify the optical network terminal that the test message to be received needs to be sent back. The notification message may include the byte size of the test message to be sent and a notification indicating whether the test message needs to be sent back, when the optical network terminal receives the notification message, the content of the notification message is identified, and if the notification message includes the byte size information of the test message and also includes the information for sending the test message back, the optical network terminal sends the test message back to the optical line terminal after receiving the corresponding test message.
Or, the optical line terminal may add a signature field to the test packet, so that the optical network terminal performs validity check on the test packet, and when the optical network terminal determines that the test packet has a preset signature field, it determines that the packet needs to be sent back, and at this time, the optical network terminal automatically sends the test packet back.
After the optical network terminal receives the test message, firstly, it identifies whether the message is a test message, and determines whether the test message needs to be sent back, specifically, if the optical line terminal sends a notification message in advance, the notification needs to send the test message back in the original path, the optical network terminal sends the test message back, or if the optical network terminal identifies that the test message contains a judgment bit, if the number of the judgment bit is 1, the test message is also sent back, at this time, in order to facilitate the judgment of the test message by the optical line terminal, the optical network terminal may remove the judgment bit after receiving the test message containing the judgment bit, only retain the original test message, and facilitate the judgment of the message error code condition by the subsequent optical line terminal.
Step S30: judging the line quality according to the test message returned by the optical network terminal;
after the optical network terminal returns the test message to the optical line terminal, because of the uneven line quality, the error code situation is inevitably generated in the transmission process, and at the moment, the optical line terminal calculates the error code rate according to the returned test message and by combining the original test message, so as to judge the line quality.
Specifically, a first threshold may be set, where the first threshold is used to determine the line quality, and if the bit error rate of the test packet exceeds the first threshold, the line quality does not reach the standard; if the error rate of the test message does not exceed the first threshold, the line quality reaches the standard, for example; the first threshold may be set to 1 × 10-12If the error rate of the test message exceeds 1 × 10-12If the bit error rate of the test message exceeds the first threshold, judging that the line quality does not reach the standard, and if the bit error rate of the test message does not exceed 1 multiplied by 10-12And judging that the line quality reaches the standard. The first threshold may be set to 1 × 10-13If the error rate of the test message exceeds 1 × 10-13If the bit error rate of the test message exceeds the first threshold, judging that the line quality does not reach the standard, and if the bit error rate of the test message does not exceed 1 multiplied by 10-13And judging that the line quality reaches the standard. The first threshold may be specifically set according to specific situations, and may be set to be 1 × 10-14,1×10-15And so on.
Specifically, a first threshold and a second threshold may be respectively set, and if the error rate of the test packet does not exceed the first threshold, it is determined that the line quality reaches the standard, if the error rate of the test packet exceeds the first threshold but does not exceed the second threshold, it is determined that the line quality is general, and if the error rate of the test packet exceeds the second threshold, it is determined that the line quality does not reach the standard. For example, the first threshold value may be set to 1 × 10-13The second threshold is 1 × 10-12If the error rate of the test message is not more than 1 × 10-13Judging that the line quality reaches the standard, and if the error rate of the test message is 1 multiplied by 10-13-1×10-12If the error rate of the test message exceeds 1 multiplied by 10, the circuit quality is judged to be general-12And judging that the line quality does not reach the standard. The first threshold and the second threshold may be specifically set according to specific situations. For example: when the light line isAfter a loop of the terminal and the optical network terminal is formed, the optical line terminal sends 1500 bytes of test messages, sends data at the rate of 1G and sends messages for 10 minutes, and an error rate a is calculated; if a/2 (because of loopback, it is a turn back on the bidirectional line, therefore, it is divided by 2) gets the error rate larger than 1 × 10-12If the line quality is less than the standard, or no error code exists, the line quality is judged to be up to the standard.
Or, the judgment of the line quality can be judged by the error code ratio. And judging the line quality through a test message returned by the optical network terminal. Specifically, the error ratio is determined according to the total number of the test messages to be sent and the number of the test messages which cannot be identified. And determining the error code condition according to the percentage of the number of the unidentified test messages to the total number of the sent test messages, namely according to the error code proportion. For example: the total number of the test messages sent by the optical line terminal is 100, all the test messages are returned normally, that is, the total number of the returned test messages is 100, if 20 returned test messages cannot be identified, the error ratio is 20%, and at this time, whether the line quality reaches the standard is judged according to a customizable threshold.
Step S40: and determining whether to start a forward error correction code function according to the line quality.
Specifically, the line quality may be classified into a standard condition and a non-standard condition, when the optical line terminal determines that the line quality meets the standard according to the error rate of the returned test packet, the forward error correction code function is not turned on to protect the bandwidth, and when the optical line terminal determines that the line quality does not meet the standard according to the error rate of the returned test packet, the forward error correction code function is automatically turned on to ensure the bandwidth quality. The line quality can also be divided into three conditions of standard reaching, general reaching and non-standard reaching, when the optical line terminal judges that the line quality reaches the standard according to the error rate of the returned test message, the forward error correction code function is not started, when the optical line terminal judges that the line quality is general according to the error rate of the returned test message, the forward error correction code function is not started, and when the optical line terminal judges that the line quality does not reach the standard according to the error rate of the returned test message, the forward error correction code function is started at the moment.
In the embodiment of the invention, a method and a device for automatically starting a forward error correction code function are disclosed, wherein the method for automatically starting the forward error correction code function comprises the following steps: determining the sending rate of the test message according to the line bandwidth; sending a test message to an optical network terminal according to the sending rate, and informing the optical network terminal to send the test message back; judging the line quality according to the test message returned by the optical network terminal; and determining whether to start a forward error correction code function according to the line quality. Through the mode, the embodiment of the invention can improve the judgment capability of the line quality, reduce the maintenance cost of the line and realize the balance of the line quality and the line bandwidth.
Example 2
Referring to fig. 2, fig. 2 is a schematic view of an application scenario for automatically turning on a forward error correction code function according to an embodiment of the present invention, and as shown in fig. 2, an optical line terminal sends a test packet to an optical network terminal, and the optical network terminal sends the test packet back.
The method for automatically starting the forward error correction code function comprises the following steps: determining the sending rate of the test message according to the line bandwidth; sending a test message to an optical network terminal according to the sending rate, and informing the optical network terminal to send the test message back; judging the line quality according to the test message returned by the optical network terminal; and determining whether to start a forward error correction code function according to the line quality.
Specifically, after the optical network terminal receives the test packet, the optical network terminal may directly determine an error code condition of the test packet, calculate an error rate, and send the error rate to the optical line terminal.
Specifically, by setting a third threshold, if the optical network terminal detects that the bit error rate of the packet exceeds the third threshold, directly sending notification information to an optical line terminal, where the notification information includes information for starting a forward error correction code function, and is used to notify the optical line terminal to start the forward error correction code function, and no test packet needs to be sent, so as to reduce detection of the bit error rate of the test packet by the optical line terminal; if the optical network terminal detects that the error rate of the message does not exceed the third threshold value, sending the test message to an optical line terminal, and detecting the error rate of the returned test message by the optical line terminal, if the error rate detected by the optical line terminal exceeds a first threshold value, starting a forward error correction code function, and if the error rate detected by the optical line terminal does not exceed the first threshold value, not starting the forward error correction code function.
It is understood that an error may occur during the process of returning the test message to the olt, and therefore the size range of the first threshold should not be smaller than the size range of the third threshold. For example, the third threshold value may be set to 5 × 10-13Setting the first threshold to 1 × 10-12If the error rate of the message detected by the optical network terminal exceeds 5 multiplied by 10-13If the error rate of the test message is higher than the error rate of the test message, the optical line terminal directly sends notification information to the optical line terminal, wherein the notification information comprises information for starting a forward error correction code function, and notifies the optical line terminal to directly start the forward error correction code function without sending the test message, so that the detection of the error rate of the test message by the optical line terminal is reduced; if the error rate of the message detected by the optical network terminal does not exceed 5 multiplied by 10-13Sending the test message to the optical line terminal, detecting the error rate of the returned test message by the optical line terminal, and if the error rate of the returned test message detected by the optical line terminal exceeds 1 multiplied by 10-12If the error rate of the test message detected by the optical line terminal to return does not exceed 1 multiplied by 10, the function of forward error correction code is started-12The forward error correction code function is not turned on.
The line quality can be judged according to the error rate, the line quality can be divided into two conditions of standard reaching and non-standard reaching, the line quality can also be divided into three conditions of standard reaching, general and non-standard reaching, and specifically, the judgment of the line quality can be realized by only setting a first threshold or simultaneously setting the first threshold and a second threshold. For example, only a first threshold is set, if the bit error rate exceeds the first threshold, the line quality is judged not to reach the standard, and if the bit error rate does not exceed the first threshold, the line quality is judged to reach the standard; or simultaneously setting a first threshold and a second threshold, wherein the second threshold is larger than the first threshold, if the bit error rate does not exceed the first threshold, the line quality is judged to reach the standard, if the bit error rate exceeds the first threshold but does not exceed the second threshold, the line quality is judged to be general, and if the bit error rate exceeds the second threshold, the line quality is judged not to reach the standard.
Wherein the method further comprises: presetting a test standard, wherein the test standard comprises: a bit error rate criterion and a confidence criterion, wherein the bit error rate criterion comprises: presetting a first threshold, wherein the error rate is less than the first threshold, and the confidence level criterion comprises: and presetting a confidence threshold, wherein the confidence of the error rate smaller than the first threshold is not smaller than the confidence threshold.
Determining the test time according to the preset test standard, specifically, aiming at an EPON/GPON system of 1G/1.25G, the error code standard needs to reach 1 multiplied by 10-12The bit error rate, if for 10G or more, needs to be 1 × 10-15Error rate. According to the relation between the error rate and the confidence coefficient, for the PCIE3.0 system, if the error rate is less than 1 multiplied by 10-12And the confidence is 99%, the test time is determined to be 10 minutes.
And determining whether to start the forward error correction code function or not by judging the line quality. For example, when the line quality does not meet the standard, the forward error correction code function is automatically turned on, and when the line quality meets the standard, the forward error correction code function is not turned on; or when the line quality does not reach the standard, automatically starting the forward error correction code function, when the line quality is general, not starting the forward error correction code function, and when the line quality reaches the standard, not starting the forward error correction code function.
Since the data transmission process often involves the transmission of different data, the transmission speed is different due to the different byte sizes of the different data. Therefore, in order to ensure a balance between the line quality and the line bandwidth, the test packets include packets of different bytes, which may be 64-byte packets, 512-byte packets, 1518-byte packets, Jumbo frames, and so on. By detecting the error rate of the messages with different bytes, the line quality can be better judged.
The sending rate of the test packet may be dynamically set according to different bandwidths allocated to dynamic bandwidths, where the bandwidths allocated to dynamic bandwidths refer to bandwidths allocated to the optical network terminal by the optical line terminal. Specifically, it can be interpreted that the transmission frequency of the test packet may be dynamically set, where the transmission frequency of the test packet refers to the number of packets transmitted in unit time, specifically, the number of packets transmitted per second, and the transmission frequency of the test packet may be determined according to a line bandwidth, where the line bandwidth refers to the number of binary bits that can be transmitted in unit time, specifically, the number of binary bits that can be transmitted per second, and the allocation of the bandwidth generally includes dynamic bandwidth allocation, and the dynamic bandwidth allocation may improve the uplink bandwidth utilization rate of the passive optical network port; more users can be added, the port utilization rate of the optical line terminal is improved, and meanwhile, the users can enjoy the service with higher bandwidth.
It can be understood that the sending rate of the test packet does not exceed the bandwidth size of the dynamic bandwidth allocation, for example, the sending rate may be set to 90% of the bandwidth allocated by the dynamic bandwidth, and under this bandwidth, the test packet is sent and the bit error rate is tested, so as to determine the line quality; the sending rate can also be set to be 100% of the bandwidth allocated by the dynamic bandwidth, and under the bandwidth, the test message is sent and the error rate is tested, so that the line quality is judged, and whether the forward error correction code function is started or not is determined according to the line quality.
The method further comprises the following steps: and judging whether the optical network terminal is on-line or not.
Specifically, the optical line terminal is provided with a timer, and may preset a first threshold time and a second threshold time, and execute a remote login program, where the remote login program detects the optical network terminal every a first threshold time, and determines whether the optical network terminal is on-line, and if the optical network terminal is not detected within the second threshold time, it is determined that the optical network terminal is not on-line, and at this time, a test packet is not sent to the optical network terminal. And sending a test message to the optical network terminal until the optical network terminal is detected to be on line, and testing the line quality.
Alternatively, a short message may be sent to the optical network terminal, where the short message only includes a command for notifying the optical network terminal to send the short message back. And setting a third threshold time, and if the optical line terminal does not receive the short message within the third threshold time, determining that the optical network terminal is not on line.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an apparatus for automatically turning on a forward error correction code function according to an embodiment of the present invention, and as shown in fig. 3, the apparatus 100 for automatically turning on a forward error correction code function includes:
a rate unit 10, configured to determine a sending rate of the test packet according to the line bandwidth;
a sending unit 20, configured to send a test packet to an optical network terminal according to the sending rate, and notify the optical network terminal to send the test packet back;
a line quality judging unit 30, configured to judge line quality according to the test packet returned by the optical network terminal;
a starting unit 40, configured to determine whether to start a forward error correction code function according to the line quality;
the time unit 50 is used for presetting confidence level standards and determining test time according to the confidence level standards; the confidence criteria include: and presetting a confidence threshold, wherein the confidence of the test message with the error rate smaller than the first threshold is not smaller than the confidence threshold.
The judging unit 60 is configured to judge whether the optical network terminal is online.
In this embodiment of the present invention, the sending unit 20 is specifically configured to:
the optical line terminal sends a test message to the optical network terminal, where the test message includes messages of different bytes, for example: may be a 64 byte message, a 512 byte message, a 1518 byte message, and Jumbo frame, and so on. The optical line terminal sends the test packet to the optical network terminal, and at the same time, notifies the optical network terminal to send the test packet back to the optical line terminal as it is, specifically, a binary bit is added to a packet tail of the test packet as a determination bit, where the binary bit is used to notify the optical network terminal to send the test packet back to the optical line terminal, for example: the number of the binary digit may be set to 1, after the optical network terminal receives the test message, it is first determined whether there is one more binary digit in the length of the message, if there is one more binary digit, it is identified whether the binary digit is 1, if the number of the binary digit is 1, the test message is sent back intact, or the determination digit of the test message may be removed, and only the content of the original test message is sent.
Or, the optical line terminal may send a notification message to the optical network terminal before sending the test message, and notify the optical network terminal that the test message to be received needs to be sent back. The notification message may include the byte size of the test message to be sent and a notification indicating whether the test message needs to be sent back, when the optical network terminal receives the notification message, the content of the notification message is identified, and if the notification message includes the byte size information of the test message and also includes the information for sending the test message back, the optical network terminal sends the test message back to the optical line terminal after receiving the corresponding test message.
After receiving the test message, the onu first identifies whether the test message needs to be sent back, specifically, if the olt sends a notification message in advance, and the notification message needs to be sent back in the original path, the onu sends the test message back, or if the onu identifies that the test message contains a decision bit, the onu sends the test message back, and at this time, in order to facilitate the olt to determine the test message, the onu can remove the decision bit after receiving the test message containing the decision bit, and only retain the original test message, thereby facilitating the determination of the error code condition of the subsequent olt message.
In this embodiment of the present invention, the line quality determining unit 30 is specifically configured to:
after the optical network terminal returns the test message to the optical line terminal, the optical line terminal judges the line quality according to the returned test message because the line quality is different and error code is inevitably generated in the transmission process. Specifically, a first threshold may be set, where the first threshold is used to determine the line quality, and if the bit error rate of the test packet exceeds the first threshold, the line quality does not reach the standard; if the error rate of the test message does not exceed the first threshold, the line quality reaches the standard, for example; the first threshold may be set to 1 × 10-12If the error rate of the test message exceeds 1 × 10-12If the bit error rate of the test message exceeds the first threshold, judging that the line quality does not reach the standard, and if the bit error rate of the test message does not exceed 1 multiplied by 10-12And judging that the line quality reaches the standard. The first threshold may be set to 1 × 10-13If the error rate of the test message exceeds 1 × 10-13If the bit error rate of the test message exceeds the first threshold, judging that the line quality does not reach the standard, and if the bit error rate of the test message does not exceed 1 multiplied by 10-13And judging that the line quality reaches the standard. The first threshold may be specifically set according to specific situations, and may be set to be 1 × 10-14,1×10-15And so on.
Specifically, a first threshold and a second threshold may be set, respectively, and if the error rate of the test packet does not exceed the first threshold, it is determined that the line quality reaches the standard, if the error rate of the test packet exceeds the first threshold but does not exceed the second threshold, it is determined that the line quality is general, and if the error rate of the test packet exceeds the second thresholdAnd judging that the line quality does not reach the standard by the second threshold value. For example, the first threshold value may be set to 1 × 10-13The second threshold is 1 × 10-12If the error rate of the test message is not more than 1 × 10-13Judging that the line quality reaches the standard, and if the error rate of the test message is 1 multiplied by 10-13-1×10-12If the error rate of the test message exceeds 1 multiplied by 10, the circuit quality is judged to be general-12And judging that the line quality does not reach the standard. The first threshold and the second threshold may be specifically set according to specific situations.
In the embodiment of the present invention, the opening unit 40 is specifically configured to:
specifically, the line quality may be classified into a standard condition and a non-standard condition, when the optical line terminal determines that the line quality meets the standard according to the error rate of the returned test packet, the forward error correction code function is not turned on to protect the bandwidth, and when the optical line terminal determines that the line quality does not meet the standard according to the error rate of the returned test packet, the forward error correction code function is automatically turned on to ensure the bandwidth quality. The line quality can also be divided into three conditions of standard reaching, general reaching and non-standard reaching, when the optical line terminal judges that the line quality reaches the standard according to the error rate of the returned test message, the forward error correction code function is not started, when the optical line terminal judges that the line quality is general according to the error rate of the returned test message, the forward error correction code function is not started, and when the optical line terminal judges that the line quality does not reach the standard according to the error rate of the returned test message, the forward error correction code function is started at the moment.
In the embodiment of the present invention, the time unit 50 is specifically configured to: presetting a confidence level standard, and determining test time according to the confidence level standard; wherein the confidence criteria include: and presetting a confidence threshold, wherein the confidence of the test message with the error rate smaller than the first threshold is not smaller than the confidence threshold.
In an embodiment of the present invention, the determining unit 60 is specifically configured to: and judging whether the optical network terminal is on-line or not.
Specifically, a first threshold time and a second threshold time may be preset, and a remote login procedure is executed, where the remote login procedure detects an optical network terminal every other first threshold time, and determines whether the optical network terminal is on-line, and if the optical network terminal is not detected within the second threshold time, it is determined that the optical network terminal is not on-line, and at this time, a test packet is not sent to the optical network terminal. And sending a test message to the optical network terminal until the optical network terminal is detected to be on line, and testing the line quality.
Alternatively, a short message may be sent to the optical network terminal, where the short message only includes a command for notifying the optical network terminal to send the short message back. And setting a third threshold time, and if the optical line terminal does not receive the short message within the third threshold time, determining that the optical network terminal is not on line.
Since the apparatus embodiment and the method embodiment are based on the same concept, the contents of the apparatus embodiment may refer to the method embodiment on the premise that the contents do not conflict with each other, and are not described herein again.
In the embodiment of the invention, a method and a device for automatically starting a forward error correction code function are disclosed, wherein the method for automatically starting the forward error correction code function comprises the following steps: determining the sending rate of the test message according to the line bandwidth; sending a test message to an optical network terminal according to the sending rate, and informing the optical network terminal to send the test message back; judging the line quality according to the test message returned by the optical network terminal; and determining whether to start a forward error correction code function according to the line quality. Through the mode, the embodiment of the invention can improve the judgment capability of the line quality, reduce the maintenance cost of the line and realize the balance of the line quality and the line bandwidth.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an optical line terminal according to an embodiment of the present invention. The optical line terminal may be an electronic device capable of automatically turning on a forward error correction code function, such as a smart phone, a Personal Digital Assistant (PDA), a tablet computer, and a smart watch.
As shown in fig. 4, the electronic device 400 includes one or more processors 41 and a memory 42. In fig. 4, one processor 41 is taken as an example.
The processor 41 and the memory 42 may be connected by a bus or other means, such as the bus connection in fig. 4.
The memory 42, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the units (e.g., the units shown in fig. 3) corresponding to a method for automatically turning on a forward error correction code according to an embodiment of the present invention. The processor 41 executes various functional applications and data processing of the method for automatically turning on the forward error correction code function by running the nonvolatile software program, instructions and modules stored in the memory 42, that is, the functions of the respective modules and units of the method embodiment for automatically turning on the forward error correction code function and the device embodiment described above are realized.
The memory 42 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 42 may optionally include memory located remotely from processor 41, which may be connected to processor 41 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The modules are stored in the memory 42 and, when executed by the one or more processors 41, perform the method of automatically turning on a forward error correction code function in any of the method embodiments described above, e.g., performing the various steps shown in fig. 1 described above; the functions of the individual modules or units described in fig. 3 may also be implemented.
The optical line terminal 400 according to the embodiment of the present invention exists in various forms, and performs the above-described steps shown in fig. 1; when the functions of the units described in fig. 3 can also be implemented, the optical line terminal 400 includes, but is not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such electronic devices include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such electronic devices include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play video content, and generally also have mobile internet access features. This type of device comprises: video players, handheld game consoles, and intelligent toys and portable car navigation devices.
(4) And other electronic equipment with a video playing function and an internet surfing function.
Embodiments of the present invention also provide a non-volatile computer storage medium, where the computer storage medium stores computer-executable instructions, which are executed by one or more processors, such as one processor 41 in fig. 4, and enable the one or more processors to perform the method for automatically turning on a forward error correction code function in any of the above method embodiments, for example, perform the above-described steps shown in fig. 1; the functions of the various units described in figure 3 may also be implemented.
The above-described embodiments of the apparatus or device are merely illustrative, wherein the unit modules described as separate parts may or may not be physically separate, and the parts displayed as module units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network module units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the technical solutions mentioned above may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the method according to each embodiment or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. A method for automatically turning on a forward error correction code function, the method comprising:
determining the sending rate of a test message according to the line bandwidth, wherein the test message comprises messages with different bytes, and the sending rate of the test message is dynamically set according to different bandwidths distributed by dynamic bandwidth;
sending a test message to an optical network terminal according to the sending rate, and informing the optical network terminal to send the test message back;
judging the line quality according to the test message returned by the optical network terminal;
determining whether to start a forward error correction code function according to the line quality;
the judging the line quality according to the test message returned by the optical network terminal comprises:
presetting an error code standard, and determining whether the line quality reaches the standard or not according to the error code standard;
the preset error code standard comprises: presetting a first threshold value, calculating the error rate of the test message,
if the error rate of the test message exceeds the first threshold, judging that the line quality does not reach the standard;
if the error rate of the test message does not exceed the first threshold value, judging that the line quality reaches the standard;
the method further comprises the following steps: after the optical network terminal receives the test message, the optical network terminal directly judges the error code condition of the test message, calculates the error code rate, sends the error code rate to an optical line terminal, sets a third threshold value, and directly sends notification information to the optical line terminal if the optical network terminal detects that the error code rate of the message exceeds the third threshold value, wherein the notification information comprises information for starting a forward error correction code function and is used for notifying the optical line terminal to start the forward error correction code function without sending the test message, so that the detection of the error code rate of the test message by the optical line terminal is reduced; and if the optical network terminal detects that the error rate of the message does not exceed the third threshold, sending the test message to an optical line terminal, and detecting the error rate of the returned test message by the optical line terminal, wherein the size range of the first threshold is not less than the size range of the third threshold.
2. The method according to claim 1, wherein the notifying the onu of sending the test packet back comprises:
and adding a judgment identifier into the test message so that the optical network terminal determines whether to send the test message back or not according to the judgment identifier.
3. The method of claim 1, wherein the determining whether to turn on a forward error correction code function according to the line quality comprises:
if the line quality does not reach the standard, starting a forward error correction code function;
and if the line quality reaches the standard, not starting the forward error correction code function.
4. The method of claim 1, further comprising:
presetting a confidence level standard, and determining test time according to the confidence level standard;
the pre-set confidence criteria include: and presetting a confidence threshold, wherein the confidence of the test message with the error rate smaller than the first threshold is not smaller than the confidence threshold.
5. The method according to any one of claims 1-4, further comprising:
and judging whether the optical network terminal is on-line or not.
6. An apparatus for automatically turning on a forward error correction code function, the apparatus comprising:
the rate unit is used for determining the sending rate of the test message according to the line bandwidth, wherein the test message comprises messages with different bytes, and the sending rate of the test message is dynamically set according to different bandwidths distributed by the dynamic bandwidth;
the sending unit is used for sending a test message to the optical network terminal according to the sending rate and informing the optical network terminal to send the test message back;
a line quality judging unit, configured to judge line quality according to the test packet returned by the optical network terminal;
the starting unit is used for determining whether to start a forward error correction code function according to the line quality;
the line quality judgment unit is specifically configured to:
presetting an error code standard, and determining whether the line quality reaches the standard or not according to the error code standard;
the preset error code standard comprises: presetting a first threshold value, calculating the error rate of the test message,
if the error rate of the test message exceeds the first threshold, judging that the line quality does not reach the standard;
if the error rate of the test message does not exceed the first threshold value, judging that the line quality reaches the standard;
the device further comprises:
an optical network terminal judging unit, configured to, after the optical network terminal receives a test packet, directly judge an error code condition of the test packet by the optical network terminal, calculate an error rate, and send the error rate to an optical line terminal, set a third threshold, and if the optical network terminal detects that the error rate of the packet exceeds the third threshold, directly send notification information to the optical line terminal, where the notification information includes information for starting a forward error correction code function, and is used to notify the optical line terminal to start the forward error correction code function, without sending the test packet, so as to reduce detection of the error rate of the test packet by the optical line terminal; and if the optical network terminal detects that the error rate of the message does not exceed the third threshold, sending the test message to an optical line terminal, and detecting the error rate of the returned test message by the optical line terminal, wherein the size range of the first threshold is not less than the size range of the third threshold.
7. The apparatus according to claim 6, wherein the sending unit is specifically configured to:
and adding a judgment identifier into the test message so that the optical network terminal determines whether to send the test message back or not.
8. The device according to claim 6, characterized in that the activation unit is particularly configured to:
if the line quality does not reach the standard, starting a forward error correction code function;
and if the line quality reaches the standard, not starting the forward error correction code function.
9. The apparatus of claim 6, further comprising:
a time unit, the time unit specifically configured to: presetting a confidence level standard, and determining test time according to the confidence level standard;
the confidence criteria include: and presetting a confidence threshold, wherein the confidence of the test message with the error rate smaller than the first threshold is not smaller than the confidence threshold.
10. The apparatus according to any one of claims 6-9, further comprising:
and the judging unit is used for judging whether the optical network terminal is on-line or not.
11. An optical line terminal, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
CN201711296966.4A 2017-12-08 2017-12-08 Method and device for automatically starting forward error correction code function and optical line terminal Active CN108184173B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711296966.4A CN108184173B (en) 2017-12-08 2017-12-08 Method and device for automatically starting forward error correction code function and optical line terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711296966.4A CN108184173B (en) 2017-12-08 2017-12-08 Method and device for automatically starting forward error correction code function and optical line terminal

Publications (2)

Publication Number Publication Date
CN108184173A CN108184173A (en) 2018-06-19
CN108184173B true CN108184173B (en) 2021-06-11

Family

ID=62545741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711296966.4A Active CN108184173B (en) 2017-12-08 2017-12-08 Method and device for automatically starting forward error correction code function and optical line terminal

Country Status (1)

Country Link
CN (1) CN108184173B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023092408A1 (en) * 2021-11-25 2023-06-01 华为技术有限公司 Communication method, apparatus and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101325793A (en) * 2007-06-13 2008-12-17 中兴通讯股份有限公司 Method for detecting limitation link in wireless communication system
CN101989888A (en) * 2009-08-05 2011-03-23 中兴通讯股份有限公司 Indicating method and system for opening/closing forward error correction coding (FEC) function
CN102158308A (en) * 2011-02-12 2011-08-17 中兴通讯股份有限公司 Method and system for configuring uplink forward error correction flow
CN102695102A (en) * 2011-03-21 2012-09-26 中兴通讯股份有限公司 Method, system, and apparatus for transmitting downstream data
CN105847089A (en) * 2016-05-23 2016-08-10 江苏有线技术研究院有限公司 Broadcasting-TV-IPQAM-based adaptive intelligent network accelerating system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101325793A (en) * 2007-06-13 2008-12-17 中兴通讯股份有限公司 Method for detecting limitation link in wireless communication system
CN101989888A (en) * 2009-08-05 2011-03-23 中兴通讯股份有限公司 Indicating method and system for opening/closing forward error correction coding (FEC) function
CN102158308A (en) * 2011-02-12 2011-08-17 中兴通讯股份有限公司 Method and system for configuring uplink forward error correction flow
CN102695102A (en) * 2011-03-21 2012-09-26 中兴通讯股份有限公司 Method, system, and apparatus for transmitting downstream data
CN105847089A (en) * 2016-05-23 2016-08-10 江苏有线技术研究院有限公司 Broadcasting-TV-IPQAM-based adaptive intelligent network accelerating system and method

Also Published As

Publication number Publication date
CN108184173A (en) 2018-06-19

Similar Documents

Publication Publication Date Title
US10171894B2 (en) Method for adjusting reception parameter of optical line terminal and optical line terminal
CA2657178A1 (en) Transmitting additional forward error correction (fec) upon request
US9722717B2 (en) Technologies for ethernet link robustness for deep sleep low power applications
US10833802B2 (en) Communication method for ethernet passive optical network and apparatus
EP3541037A1 (en) Registration method for virtual optical network unit, system and storage medium
CN109379246B (en) Memory detection method and device
CN108184173B (en) Method and device for automatically starting forward error correction code function and optical line terminal
CN114448569A (en) Data transmission method, device and computer storage medium
CN111601178B (en) Video data processing method and device and electronic equipment
US20130058210A1 (en) Method and system for interrupt throttling and prevention of frequent toggling of protection groups in a communication network
CN108513701B (en) Data transmission method, device, machine readable storage medium and system
CN110248211B (en) Live broadcast room message current limiting method and device, electronic equipment and storage medium
CN114337724A (en) Wireless communication method, device and equipment based on dual-channel technology
JP2009260882A (en) Decoding device and in-house equipment in optical communication system
US11916669B2 (en) Coding control method and apparatus in a passive optical network, communication device and storage medium
CN102025437A (en) Method, system and device for protection switching
CN101299764B (en) Method for backupping broadband access server for PPPOE access service
CN102239652A (en) Data transmission method,optical line terminal and system
CN102695102A (en) Method, system, and apparatus for transmitting downstream data
WO2013097421A1 (en) Method and device for sending counter check message
CN109660319B (en) Network data transmission method and device and electronic equipment
CN112911630A (en) Session processing method, device, system, terminal and readable storage medium
US9602429B2 (en) Traffic adjustment method and apparatus
CN115037601B (en) Network recovery method, system, medium and electronic device for vehicle-mounted network interface device
CN111181684A (en) Decoding method and decoding device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant