Service code stream processing device and method
By setting up a business code flow processing device on the side of the wave split equipment, processing according to the status information of the business code flow, the problem of CDR locking of the customer business equipment caused by the failure of the business equipment of the wave division equipment, and realizing the reduction of business interruption and improving transmission stability Sexual effect.
Patent Information
- Application Number
- CN201911419972.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-31
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2039-12-31
AI Technical Summary
In optical transmission scenarios, when the wave division device service fails, the customer service device may receive a service code stream of long connection 0 or long connection 1, causing the clock data recovery module (CDR) to lose lock, which in turn causes the wave division device and customer service to be both. The service interruption time between devices is increased.
Provide a business code flow processing device and method. By entering the business code flow and processing according to its status information, the secondary business code flow is generated to output. The device includes the business code flow input unit, the processing unit, and the output unit. The processing unit is processed to the business code flow according to the alarm logic, including the disturbance code, coding, or replacement processing to avoid the situation of long -lasting 0 or long company.
Effectively avoid CDR locks of customer business equipment, reduce the business interruption time between wave equipment and customer business equipment, and improve the stability of business transmission.
Smart Images

Figure CN113132048B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a device and method for processing a service code stream. Background Art
[0002] In the optical transmission scenario, when the wavelength division equipment and customer service equipment (such as routing equipment, etc.) are connected to each other for service transmission, when the wavelength division equipment service fails, a long continuous 0 or a long continuous 1 will appear in the binary service code stream sent by the wavelength division equipment transmitter to the customer service equipment. After the customer service equipment receives the above-mentioned service code stream with a long continuous 0 or a long continuous 1, it is very likely to cause the clock data recovery module (CDR) to lose lock.
[0003] When the CDR of the above-mentioned customer service equipment is unlocked, it takes a long time for the CDR to recover from being unlocked, and the customer service equipment cannot receive the service code stream when the CDR is locked. Therefore, even if the wavelength division device service can be restored in a very short time after failure, the CDR lock of the above-mentioned customer service equipment will cause the wavelength division device and the customer service equipment to be unable to directly restore service transmission; for example, when the wavelength division device and the routing device are connected, the wavelength division device undergoes protection switching, which will cause the optical channel data unit (ODUk) service on the transmitting side of the wavelength division device to be interrupted for 50ms. During the above-mentioned service interruption, a long continuous 0 or a long continuous 1 appears in the binary service code stream sent to the customer device, which causes the routing device to lose CDR lock, which further causes the routing device service to be interrupted for 500ms; thus, the time from the service interruption to the recovery between the wavelength division device and the routing device is greatly prolonged due to the CDR lock.
[0004] In order to avoid the occurrence of the above-mentioned CDR unlocking phenomenon of the customer service equipment, the related technologies often scramble or encode the service code stream in the transmission line to avoid the situation where long consecutive 0s or long consecutive 1s appear in the service code stream. At present, the processing of the service code stream in the related technologies is mostly based on the alarm mechanism, that is, the mechanism of detecting and alarming the wavelength division equipment to insert the maintenance signal when the wavelength division equipment service fails; however, the above mechanism still cannot completely avoid the CDR unlocking of the customer service equipment, which leads to a long-term service interruption between the wavelength division equipment and the customer service equipment.
[0005] With respect to the problem in the above-mentioned related technologies that the service between the wavelength division device and the customer service equipment is interrupted due to the CDR loss of lock of the customer service equipment, no effective solution has been proposed in the related technologies. Summary of the invention
[0006] The embodiment of the present invention provides a service code stream processing device and method to at least solve the problem in the related art that the service failure of the interconnected wavelength division equipment causes the CDR of the customer service equipment to lose lock, thereby prolonging the service interruption time between the wavelength division equipment and the customer service equipment.
[0007] According to an embodiment of the present invention, there is provided a service code stream processing device, comprising:
[0008] A first service code stream input unit, configured to input a first service code stream;
[0009] A first service code stream processing unit, configured to process the first service code stream according to the first state information of the first service code stream to obtain a second service code stream;
[0010] The first service code stream output unit is configured to output the second service code stream.
[0011] According to another embodiment of the present invention, a service code stream processing method is also provided, including:
[0012] Obtain the first service code stream;
[0013] The first service code stream is processed according to the first state information of the first service code stream to obtain a second service code stream, and the second service code stream is output.
[0014] According to another embodiment of the present invention, there is also provided a service code stream processing device, including:
[0015] A first acquisition module, used to acquire a first service code stream;
[0016] The first output module is used to process the first service code stream according to the first state information of the first service code stream to obtain a second service code stream, and output the second service code stream.
[0017] According to an embodiment of the present invention, there is provided a service code stream processing device, comprising:
[0018] A second service code stream input unit, configured to input a fourth service code stream;
[0019] a second service code stream processing unit, configured to extract a fifth service code stream from the fourth service code stream, and process the fifth service code stream according to the second state information of the fifth service code stream;
[0020] The second service code stream output unit is configured to output the processed fifth service code stream.
[0021] According to another embodiment of the present invention, a service code stream processing method is also provided, including:
[0022] Acquire a fourth service code stream, and extract a fifth service code stream from the fourth service code stream;
[0023] The fifth service code stream is processed according to the second status information of the fifth service code stream, and the processed fifth service code stream is output.
[0024] According to another embodiment of the present invention, there is also provided a service code stream processing device, including:
[0025] A second acquisition module is used to acquire a fourth service code stream and extract a fifth service code stream from the fourth service code stream;
[0026] The second output module is used to process the fifth service code stream according to the second state information of the fifth service code stream, and output the processed fifth service code stream.
[0027] According to another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0028] According to another embodiment of the present invention, there is further provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0029] According to the present invention, since the first service code stream can be input through the first service code stream input unit, and the first service code stream is processed by the service code stream processing unit according to the first state information of the first service code stream to obtain the second service code stream, and then the second service code stream is output by the second service code stream output unit, the present invention can solve the problem in the related art that the CDR of the customer service equipment is unlocked due to the failure of the interconnected wavelength division equipment service, thereby causing the service interruption time between the wavelength division equipment and the customer service equipment to be prolonged, so as to achieve the effect of effectively improving the stability of the service transmission between the wavelength division equipment and the customer service equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0031] Figure 1 is a functional schematic diagram of a service code stream processing device provided according to an embodiment of the present invention (I);
[0032] Figure 2is a structural schematic diagram of a service code stream processing device provided according to a specific embodiment of the present invention (I);
[0033] Figure 3 is a structural schematic diagram of a service code stream processing device provided according to a specific embodiment of the present invention (II);
[0034] Figure 4 is a flow chart (I) of a method for processing a service code stream according to an embodiment of the present invention;
[0035] Figure 5 is a structural block diagram of a service code stream processing device provided according to an embodiment of the present invention (I);
[0036] Figure 6 is a functional schematic diagram of a service code stream processing unit provided according to an embodiment of the present invention (II);
[0037] Figure 7 is a structural schematic diagram of a service code stream processing device provided according to a specific embodiment of the present invention (III);
[0038] Figure 8 is a flow chart (II) of a method for processing a service code stream according to an embodiment of the present invention;
[0039] Fig. 9 2 is a structural block diagram of a service code stream processing device provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0041] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0042] To further illustrate the application scenarios of the service code stream processing device and method in the related technology, the service transmission between the wavelength division device and the customer service device and the detection alarm mechanism are further elaborated below.
[0043] Take the docking scenario of wavelength division equipment and routing equipment as an example. When the wavelength division equipment and routing equipment are docked, the ODUk service on the sending side of the wavelength division equipment fails, and then an ODUk frame loss (Loss Of Frame, LOF) alarm signal is generated. The corresponding ODUk service demapping unit inserts a local error (Local Fault, LF) maintenance signal to the customer service equipment according to the above LOF alarm signal. However, there are two stages in the ODUk service failure process, namely, frame misalignment (Out Of Frame, OOF) and LOF stages. In the OOF stage, the actual service has failed, but because ODUk has not confirmed the LOF alarm signal, the ODUk service demapping unit will not insert LF to the customer service equipment; in this case, the service code stream output by the ODUk demapping module may also have a long continuous 0 or a long continuous 1.
[0044] Example 1
[0045] This embodiment provides a service code stream processing device, Figure 1 1 is a functional schematic diagram of a service code stream processing device according to an embodiment of the present invention (I), such as Figure 1 As shown, the service code stream processing device in this embodiment includes:
[0046] A first service code stream input unit 102, configured to input a first service code stream;
[0047] The first service code stream processing unit 104 is configured to process the first service code stream according to the first state information of the first service code stream to obtain a second service code stream;
[0048] The first service code stream output unit 106 is configured to output a second service code stream.
[0049] It should be further explained that the first service code stream processing device in this embodiment is used to be set on the sending side of the wavelength division device, that is, it is set on the original service processing path; the first service code stream input unit and the first service code stream output unit in this embodiment can be physical devices or virtual devices, that is, the first service code stream input unit and the second service code stream output unit can also be composed of two different service transmission positions in the original service processing path on the sending side of the wavelength division device, and the present invention does not limit this. In an optional embodiment, the above-mentioned first service code stream can be a service layer service code stream of a customer service code stream sent by the wavelength division device, such as ODUk, that is, the first service code stream input unit is configured to input the first service code stream sent by the wavelength division device; the above-mentioned second service code stream can be a customer service code stream that the wavelength division device needs to send to the customer service device, that is, the first service code stream output unit is configured to output the second service code stream to the customer service device.
[0050] It should be further explained that the first service code stream in this embodiment is a service layer service code stream of a client service code stream, such as an ODUk service code stream. In the above embodiment, the first status information of the first service code stream is used to indicate the status of the first service code stream, and the first status information can be a status information sent by a relevant detection unit in the wavelength division device, such as an ODUk service alarm detection function unit in the transmitting side of the wavelength division device to the service code stream processing unit to indicate the status of the first service code stream.
[0051] Through the service code stream processing device in this embodiment, since the first service code stream can be input through the first service code stream input unit, and the first service code stream is processed by the service code stream processing unit according to the first state information of the first service code stream to obtain the second service code stream, and then the second service code stream is output by the second service code stream output unit. Therefore, the service code stream processing device in this embodiment can solve the problem in the related art that the CDR of the customer service equipment is unlocked due to the failure of the interconnected wavelength division equipment service, thereby causing the service interruption time between the wavelength division equipment and the customer service equipment to be prolonged, so as to achieve the effect of effectively improving the stability of the service transmission between the wavelength division equipment and the customer service equipment.
[0052] In an optional embodiment, the first service code stream processing unit 104 is further configured as follows:
[0053] Determine an alarm logic according to the first status information, and process the first service code stream according to the alarm logic to obtain a second service code stream;
[0054] The alarm logic includes one of the following: first alarm logic, second alarm logic, and third alarm logic;
[0055] The first alarm logic is used to indicate that the first service code stream is in an abnormal state and no maintenance signal is inserted in the first service code stream; the second alarm logic is used to indicate that the first service code stream is in an abnormal state and a maintenance signal has been inserted in the first service code stream; the third alarm logic is used to indicate that the first service code stream is in a normal state.
[0056] In an optional embodiment, the first status information may include at least one of the following: a frame out-of-frame OOF alarm signal, a frame loss LOF alarm signal;
[0057] The first alarm logic includes: the OOF alarm signal is valid, and the LOF alarm signal is invalid; the second alarm logic includes: the OOF alarm signal is valid, and the LOF alarm signal is valid; the third alarm logic includes: the OOF alarm signal is invalid, and the LOF alarm signal is invalid.
[0058] It should be further explained that the above OOF alarm signal is specifically an ODUk OOF alarm signal, and similarly, the above LOF alarm signal is specifically an ODUk LOF alarm signal.
[0059] In an optional embodiment, the first service code stream processing unit 104 is further configured as follows:
[0060] When the alarm logic is the first alarm logic, extracting a third service code stream from the first service code stream, and modifying the third service code stream to obtain a second service code stream;
[0061] Output the second service code stream.
[0062] It should be further explained that, when the alarm logic is the first alarm logic, the third service code stream extracted from the first service code stream needs to be modified. Here, the third service code stream is a service code stream extracted from the first service code stream of the service layer to be sent to the customer service device, for example, a service code stream obtained by demapping the service code stream of ODUk. In the above optional embodiment, the third service code stream is modified so that the long continuous 0 or long continuous 1 in the third service code stream can be modified, so that the second service code stream can be obtained for output.
[0063] In an optional embodiment, the first service code stream processing unit is further configured as follows:
[0064] Use a scrambling code polynomial to perform scrambling processing on the third service code stream; or,
[0065] Use the maintenance signal to perform alternative processing on the third service code stream; or,
[0066] The third service code stream is encoded to modify at least part of the bits in the third data stream.
[0067] It should be further explained that the above-mentioned processing of the third service code stream can be performed by scrambling the third service code stream using a scrambling code polynomial to obtain a second service code stream; or the third service code stream can be replaced by a maintenance signal, that is, the third service code stream is completely replaced by a maintenance signal to obtain a second service code stream; or the third service code stream is encoded to modify some bits in the third service code stream, such as bits corresponding to a long continuous 0 or a long continuous 1. The modification processing of the above-mentioned third service code stream is further explained below by means of an optional embodiment:
[0068] In an optional embodiment, the maintenance signal includes one of the following:
[0069] Pseudo Random Binary Sequence (PRBS) code stream, 0, 1 alternating code stream, error block code stream, LF code stream.
[0070] In an optional embodiment, the first service code stream processing unit is further configured as follows:
[0071] The third service code stream is encoded according to the PRBS code stream or the 0, 1 alternating code stream.
[0072] In an optional embodiment, the first service code stream processing unit is further configured as follows:
[0073] When the alarm logic is the second alarm logic, the maintenance signal, such as LF, is used as the second service code stream;
[0074] Output the second service code stream.
[0075] In an optional embodiment, the first service code stream processing unit is further configured as follows:
[0076] When the alarm logic is the third alarm logic, extracting the third service code stream from the first service code stream, and determining the third service code stream as the second service code stream;
[0077] Output the second service code stream.
[0078] It should be further explained that, when the alarm logic is the third alarm logic, that is, the logical state combination of the first state information indicates that the first service code stream is in a normal state, the first service code stream can be directly extracted and processed to obtain the third service code stream, and the third service code stream can be output as the second service code stream.
[0079] The service code stream processing device in this embodiment is further described below by means of a plurality of specific embodiments. Specific embodiment 1
[0081] In this specific embodiment, the service code stream processing device is arranged on the wavelength division device side, specifically arranged on the customer service processing path subsequent to the ODUk demapping function module on the transmitting side of the wavelength division device, and is a newly added device on the original service path. Figure 2 1 is a schematic diagram of the structure of a service code stream processing device according to a specific embodiment of the present invention (I), as shown in FIG. Figure 2 As shown, the service code stream processing device in this specific embodiment includes: a service code stream input port 1001, a service code stream output port 1002, a control port 1003, a PRBS generation unit 1004 and a switch unit 1005.
[0082] The binary service code stream output by ODUk demapping is input from the service code stream input unit 1001 of the above-mentioned device and output from the service code stream output unit 1002. The control signal input by the control port 1003 comes from the service alarm module of ODUk, which may specifically include OOF alarm signal and LOF alarm signal.
[0083] The input state of the control port 1003 determines whether the above-mentioned device performs transparent transmission or scrambling processing on the input binary business code stream. The state instruction input to the control port 1003 can be specifically a logical AND processing of the LOF alarm signal after the LOF alarm signal is negated. Specifically, if the control port 1003 receives the OOF alarm signal but does not receive the LOF alarm signal, the input of the control port 1003 is a logic "1". At this time, the switch of the switch unit 1005 is closed, and the PRBS code generated by the PRBS generation unit 1004 is used to scramble the binary business code stream input by the business code stream input unit 1001, and the scrambled business code stream is output from the business code stream output unit 1002.
[0084] Correspondingly, if the control port 1003 has not received the OOF alarm signal, or has received the OOF alarm signal and the LOF alarm signal, the input of the control port 1003 is logic "0". At this time, the switch of the switch unit 1005 is disconnected, and the binary business code stream input by the business code stream input unit 1001 is directly transmitted to the business code stream output unit 1002 for output. Specific embodiment 2
[0086] In this specific embodiment, the service code stream processing device is arranged on the wavelength division device side, specifically arranged on the customer service processing path subsequent to the ODUk demapping function module on the transmitting side of the wavelength division device, and is a newly added device on the original service path. Figure 3 2 is a schematic diagram of the structure of a service code stream processing device according to a specific embodiment of the present invention (II), such as Figure 3 As shown, the service code stream processing device in this specific embodiment includes: a service code stream input port 1001, a service code stream output port 1002, a control port 1003, a switch unit 1005 and a 01 alternating encoding unit 1008.
[0087] The binary service code stream output by ODUk demapping is input from the service code stream input unit 1001 of the above-mentioned device and output from the service code stream output unit 1002. The control signal input by the control port 1003 comes from any service alarm or logical combination of alarms in the wavelength division device that will cause the service code stream to have a long connection of 0 or a long connection of 1 and will not insert a maintenance signal, for example, an OOF alarm signal. The input state of the control port 1003 determines whether the above-mentioned device transparently transmits the input binary service code stream or uses the 01 alternating code stream generated by the 01 alternating encoding unit 1008 to replace the input binary service code stream for output. Specifically, when the control port 1003 receives a valid service alarm, the control switch unit 1005 uses the 01 alternating code stream generated by the 01 alternating coding unit 1008 to replace the input binary service code stream for output; when the control port 1003 does not receive a service alarm, or the received service alarm is invalid, the control switch unit 1005 makes the binary service code stream input by the service code stream input unit 1001 directly transmitted to the service code stream output unit 1002 for output.
[0088] In addition, the 01 alternating encoding unit 1008 in this specific embodiment may also be replaced by a PRBS generating unit.
[0089] Example 2
[0090] This embodiment provides a method for processing a service code stream. Figure 4 Flowchart (I) of a method for processing a service code stream according to an embodiment of the present invention, such as Figure 4 As shown, the service code stream processing method in this embodiment includes:
[0091] S202, obtaining a first service code stream;
[0092] S204: Process the first service code stream according to the first state information of the first service code stream to obtain a second service code stream, and output the second service code stream.
[0093] It should be further explained that the remaining optional embodiments and implementations of the service code stream processing method recorded in this embodiment correspond to the service code stream processing device in the above-mentioned embodiment 1, so they are not described in detail here.
[0094] In an optional embodiment, the processing of the first service code stream according to the first state information of the first service code stream to obtain the second service code stream includes:
[0095] Determine an alarm logic according to the first status information, and process the first service code stream according to the alarm logic to obtain a second service code stream;
[0096] The alarm logic includes one of the following: first alarm logic, second alarm logic, and third alarm logic;
[0097] The first alarm logic is used to indicate that the first service code stream is in an abnormal state and no maintenance signal is inserted in the first service code stream; the second alarm logic is used to indicate that the first service code stream is in an abnormal state and a maintenance signal has been inserted in the first service code stream; the third alarm logic is used to indicate that the first service code stream is in a normal state.
[0098] In an optional embodiment, the processing of the first service code stream according to the alarm logic to obtain the second service code stream includes:
[0099] When the alarm logic is the first alarm logic, extracting a third service code stream from the first service code stream, and modifying the third service code stream to obtain a second service code stream;
[0100] Output the second service code stream.
[0101] In an optional embodiment, the above-mentioned modifying the third service code stream to obtain the second service code stream includes:
[0102] Use a scrambling code polynomial to perform scrambling processing on the third service code stream; or,
[0103] Use the maintenance signal to perform alternative processing on the third service code stream; or,
[0104] The third service code stream is encoded to modify at least part of the bits in the third data stream.
[0105] In an optional embodiment, the maintenance signal includes one of the following:
[0106] PRBS code stream, 0, 1 alternating code stream, error block code stream, LF code stream.
[0107] In an optional embodiment, the encoding process of the third service code stream includes:
[0108] The third service code stream is encoded according to the PRBS code stream or the 0, 1 alternating code stream.
[0109] In an optional embodiment, the processing of the first service code stream according to the alarm logic to obtain the second service code stream includes:
[0110] When the alarm logic is the second alarm logic, the maintenance signal, such as LF, is used as the second service code stream;
[0111] Output the second service code stream.
[0112] In an optional embodiment, the processing of the first service code stream according to the alarm logic to obtain the second service code stream includes:
[0113] When the alarm logic is the third alarm logic, extracting the third service code stream from the first service code stream, and determining the third service code stream as the second service code stream;
[0114] Output the second service code stream.
[0115] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0116] Example 3
[0117] This embodiment provides a service code stream processing device, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable. Figure 5 1 is a structural block diagram of a service code stream processing device according to an embodiment of the present invention (I), such as Figure 5 As shown, the service code stream processing device in this embodiment includes:
[0118] A first acquisition module 302, used to acquire a first service code stream;
[0119] The first output module 304 is configured to process the first service code stream according to the first state information of the first service code stream to obtain a second service code stream, and output the second service code stream.
[0120] It should be further explained that the remaining optional embodiments and implementations of the service code stream processing device recorded in this embodiment correspond to the service code stream processing device in the above-mentioned embodiment 1, and therefore will not be described in detail here.
[0121] In an optional embodiment, the processing of the first service code stream according to the first state information of the first service code stream to obtain the second service code stream includes:
[0122] Determine an alarm logic according to the first status information, and process the first service code stream according to the alarm logic to obtain a second service code stream;
[0123] The alarm logic includes one of the following: first alarm logic, second alarm logic, and third alarm logic;
[0124] The first alarm logic is used to indicate that the first service code stream is in an abnormal state and no maintenance signal is inserted in the first service code stream; the second alarm logic is used to indicate that the first service code stream is in an abnormal state and a maintenance signal has been inserted in the first service code stream; the third alarm logic is used to indicate that the first service code stream is in a normal state.
[0125] In an optional embodiment, the processing of the first service code stream according to the alarm logic to obtain the second service code stream includes:
[0126] When the alarm logic is the first alarm logic, extracting a third service code stream from the first service code stream, and modifying the third service code stream to obtain a second service code stream;
[0127] Output the second service code stream.
[0128] In an optional embodiment, the above-mentioned modifying the third service code stream to obtain the second service code stream includes:
[0129] Use a scrambling code polynomial to perform scrambling processing on the third service code stream; or,
[0130] Use the maintenance signal to perform alternative processing on the third service code stream; or,
[0131] The third service code stream is encoded to modify at least part of the bits in the third data stream.
[0132] In an optional embodiment, the maintenance signal includes one of the following:
[0133] PRBS code stream, 0, 1 alternating code stream, error block code stream, LF code stream.
[0134] In an optional embodiment, the encoding process of the third service code stream includes:
[0135] The third service code stream is encoded according to the PRBS code stream or the 0, 1 alternating code stream.
[0136] In an optional embodiment, the processing of the first service code stream according to the alarm logic to obtain the second service code stream includes:
[0137] When the alarm logic is the second alarm logic, the customer service maintenance signal, such as LF, is used as the second service code stream;
[0138] Output the second service code stream.
[0139] In an optional embodiment, the processing of the first service code stream according to the alarm logic to obtain the second service code stream includes:
[0140] When the alarm logic is the third alarm logic, extracting the third service code stream from the first service code stream, and determining the third service code stream as the second service code stream;
[0141] Output the second service code stream.
[0142] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0143] Example 4
[0144] This embodiment provides a service code stream processing device, Figure 6 2 is a functional schematic diagram of a service code stream processing device according to an embodiment of the present invention (II), such as Figure 6 As shown, the service code stream processing device in this embodiment includes: The service code stream processing device in this embodiment includes:
[0145] The second service code stream input unit 402 is configured to input a fourth service code stream;
[0146] The second service code stream processing unit 404 is configured to extract a fifth service code stream from the fourth service code stream, and process the fifth service code stream according to the second state information of the fifth service code stream;
[0147] The second service code stream output unit 406 is configured to output the processed fifth service code stream.
[0148] It should be further explained that the second service code stream processing device in this embodiment is used to be set on the sending side of the wavelength division device, that is, it is set on the original service processing path; the second service code stream input unit and the second service code stream output unit in this embodiment can be a physical device or a virtual device, that is, the second service code stream input unit and the second service code stream output unit can also be composed of two different service transmission positions in the original service processing path on the sending side of the wavelength division device, and the present invention does not limit this. In an optional embodiment, the fourth service code stream can be a service layer service code stream of a customer service code stream sent by the wavelength division device, that is, the second service code stream input unit is configured to input the fourth service code stream sent by the wavelength division device; the fifth service code stream can be a customer service code stream that the wavelength division device needs to send to the customer service device, that is, the second service code stream output unit is configured to output the fifth service code stream to the customer service device.
[0149] It should be further explained that the fourth service code stream in this embodiment is used to indicate the service layer of the fifth service code stream, such as the ODUk service code stream; the fifth service code stream in this embodiment is used to indicate the client service code stream extracted from the service layer service code stream, such as the client service code stream obtained by ODUk demapping. Different from the state of the first service code stream indicated by the first state information in Embodiment 1, in the above embodiment, the second state information of the fifth service code stream is used to indicate the state of the fifth service code stream.
[0150] Through the service code stream processing device in this embodiment, since the fourth service code stream can be input through the second service code stream input unit, the fifth service code stream is extracted from the fourth service code stream through the second service code stream processing unit, and the fifth service code stream is processed according to the second state information of the fifth service code stream, and then the second service code stream output unit outputs the processed fifth service code stream. Therefore, the service code stream processing device in this embodiment can solve the problem in the related art that the CDR of the customer service equipment is unlocked due to the failure of the interconnected wavelength division equipment service, thereby causing the service interruption time between the wavelength division equipment and the customer service equipment to be prolonged, so as to achieve the effect of effectively improving the stability of the service transmission between the wavelength division equipment and the customer service equipment.
[0151] Specifically, the service code stream processing device in the above embodiment detects and processes the customer service code stream accordingly, thereby solving the problem of service interruption between devices caused by the failure of wavelength division equipment service resulting in the loss of CDR of customer service equipment, and the failure of customer service equipment service to be restored immediately after the wavelength division equipment service is restored.
[0152] In an optional embodiment, the second status information includes at least one of the following:
[0153] 0 bit length, 1 bit length, 66b sync header lock status.
[0154] In an optional embodiment, the second service code stream processing unit 404 is further configured as follows:
[0155] Determine the alarm logic according to the second status information, and process the fifth service code stream according to the alarm logic
[0156] Wherein, the alarm logic includes at least: a fourth alarm logic and a fifth alarm logic;
[0157] The fourth alarm logic is used to indicate that the length of consecutive 0 bits and / or consecutive 1 bits in the fifth service code stream is greater than or equal to a preset length threshold, or that the 66b synchronization header is lost; the fifth alarm logic is used to indicate that the fifth service code stream is in a normal state.
[0158] It should be further explained that, in the above optional embodiment, the second state information is used to indicate the state of the fifth business code stream. The judgment of the second state information can directly detect the fifth business code stream, such as detecting the length of consecutive 0 bits, the length of consecutive 1 bits, and the 66b synchronization header lock state in the fifth business code stream. The alarm logic in the above optional embodiment is specifically used to indicate the specific logical state of the above second state information, or the combination of logical states of different second state information. For example, if a certain state information has two different logical states of valid and invalid, the alarm logic can be used to specifically indicate that the state information is valid or invalid. Through the above alarm logic, it is possible to detect whether the fifth business code stream has an abnormal state, and detect the corresponding processing performed on the fifth business code stream according to the preset process, such as through the alarm logic, when the fifth business code stream is in an abnormal state, whether to insert a maintenance signal into the fifth business code stream, that is, whether to insert a maintenance signal into the fifth business code stream.
[0159] In the above alarm logic, when the alarm logic is the fourth alarm logic, that is, the logical state combination of the second state information indicates that the fifth service code stream is in an abnormal state, specifically, the length of consecutive 0 bits and / or the length of consecutive 1 bits in the fifth service code stream is greater than or equal to the preset length threshold, or the 66b synchronization header is unlocked. In the above situation, the fifth service code stream needs to be modified. In the above alarm logic, when the fifth alarm logic is the fifth alarm logic, that is, the logical state combination of the second state information indicates that the fifth service code stream is in a normal state. Therefore, there is no need to process the fifth service code stream.
[0160] In an optional embodiment, the second service code stream processing unit 404 is further configured as follows:
[0161] When the alarm logic is the fourth alarm logic, the fifth service code stream is modified.
[0162] It should be further explained that, in the above optional embodiment, the fifth service code stream is modified so that the long consecutive 0s or long consecutive 1s in the fifth service code stream can be modified and then output.
[0163] In an optional embodiment, the second service code stream processing unit 404 is further configured as follows:
[0164] Perform scrambling processing on the fifth service code stream using a scrambling code polynomial; or,
[0165] Use the maintenance signal to perform alternative processing on the fifth service code stream; or,
[0166] The fifth service code stream is encoded to modify at least part of the bits in the fifth data stream.
[0167] It should be further explained that the above-mentioned processing of the fifth service code stream can be performed by using a scrambling code polynomial to scramble the third service code stream; or using a maintenance signal to replace the fifth service code stream, that is, completely replacing the fifth service code stream with a maintenance signal; or encoding the fifth service code stream to modify some bits in the fifth service code stream, such as bits corresponding to a long continuous 0 or a long continuous 1. The modification processing of the above-mentioned fifth service code stream is further explained below by means of an optional embodiment:
[0168] In an optional embodiment, the maintenance signal includes one of the following:
[0169] PRBS code stream, 0, 1 alternating code stream, error block code stream, LF code stream.
[0170] In an optional embodiment, the encoding process of the fifth service code stream includes:
[0171] The fifth service code stream is encoded according to the PRBS code stream or the 0, 1 alternating code stream.
[0172] In an optional embodiment, the second service code stream processing unit 404 is further configured as follows:
[0173] When the alarm logic is the fifth alarm logic, the fifth service code stream is output.
[0174] It should be further explained that, when the above alarm logic is the fourth alarm logic, that is, the logical state combination of the second state information indicates that the fifth service code stream is in a normal state; in the above situation, the fifth service code stream can be directly transparently transmitted.
[0175] The service code stream processing device in this embodiment is further described below by way of specific embodiments. Specific embodiment 3
[0177] In this specific embodiment, the service code stream processing device is arranged on the wavelength division device side, specifically arranged on the customer service processing path subsequent to the ODUk demapping function module on the transmitting side of the wavelength division device, and is a newly added device on the original service path. Figure 7 3 is a schematic diagram of the structure of a service code stream processing device according to a specific embodiment of the present invention, such as Figure 7 As shown, the service code stream processing device in this specific embodiment includes: a service code stream input port 1001, a service code stream output port 1002, a control port 1003, a service code stream processing unit 1006 and a long connection 0 or long connection 1 alarm detection unit 1007.
[0178] The binary service code stream output by ODUk demapping is input from the service code stream input unit 1001 of the above-mentioned device, passes through the service code stream processing unit 1006, and is output from the service code stream output unit 1002. The control signal input by the control port 1003 comes from the output of the service code stream long connection 0 or long connection 1 alarm detection unit 1007.
[0179] The alarm output state of the long connection 0 or long connection 1 alarm detection unit 1007 determines the processing of the input binary service code stream by the service code stream processing unit 1006. Specifically, when the long connection 0 or long connection 1 alarm detection unit 1007 detects that there is a long connection 0 or a long connection 1 in the binary customer service code stream, the long connection 0 or long connection 1 alarm detection unit 1007 outputs a logic "1". At this time, the binary service code stream is processed by the service code stream processing unit 1006, such as scrambling / coding replacement / modifying some bits in the binary customer service code stream, and the processed service code stream is output from the service code stream output unit 1002, thereby avoiding the situation where there is still a long connection 0 / long connection 1 in the output service code stream.
[0180] Correspondingly, when the long connection 0 or long connection 1 alarm detection unit 1007 does not detect the existence of long connection 0 or long connection 1 in the binary customer service code stream, the long connection 0 or long connection 1 alarm detection unit 1007 outputs a logic "0". At this time, the input binary service code stream is transparently transmitted, that is, directly transparently transmitted to the service code stream output unit 1002 for output.
[0181] Example 5
[0182] This embodiment provides a method for processing a service code stream. Figure 8 Flowchart (II) of the service code stream processing method provided according to an embodiment of the present invention, such as Figure 8 As shown, the service code stream processing method in this embodiment includes:
[0183] S502, obtaining a fourth service code stream, and extracting a fifth service code stream from the fourth service code stream;
[0184] S504: Process the fifth service code stream according to the second status information of the fifth service code stream, and output the processed fifth service code stream.
[0185] It should be further explained that the remaining optional embodiments and technical effects of the service code stream processing method in this embodiment correspond to the service code stream processing device recorded in Example 4, so they are not repeated here.
[0186] In an optional embodiment, the second status information includes at least one of the following:
[0187] 0 bit length, 1 bit length, 66b sync header lock status.
[0188] In an optional embodiment, the processing of the fifth service code stream according to the second status information of the fifth service code stream includes:
[0189] determining an alarm logic according to the second status information, and processing the fifth service code stream according to the alarm logic;
[0190] Wherein, the alarm logic includes at least: a fourth alarm logic and a fifth alarm logic;
[0191] The fourth alarm logic is used to indicate that the length of consecutive 0 bits and / or consecutive 1 bits in the fifth service code stream is greater than or equal to a preset length threshold, or that the 66b synchronization header is lost; the fifth alarm logic is used to indicate that the fifth service code stream is in a normal state.
[0192] In an optional embodiment, the processing of the fifth service code stream according to the alarm logic includes:
[0193] When the alarm logic is the fourth alarm logic, the fifth service code stream is modified.
[0194] In an optional embodiment, the modification process of the fifth service code stream includes:
[0195] Perform scrambling processing on the fifth service code stream using a scrambling code polynomial; or,
[0196] Use the maintenance signal to perform alternative processing on the fifth service code stream; or,
[0197] The fifth service code stream is encoded to modify at least part of the bits in the fifth data stream.
[0198] In an optional embodiment, the maintenance signal includes one of the following:
[0199] PRBS code stream, 0, 1 alternating code stream, error block code stream, LF code stream.
[0200] In an optional embodiment, the encoding process of the fifth service code stream includes:
[0201] The fifth service code stream is encoded according to the PRBS code stream or the 0, 1 alternating code stream.
[0202] In an optional embodiment, the processing of the fifth service code stream according to the alarm logic includes:
[0203] When the alarm logic is the fifth alarm logic, the fifth service code stream is output.
[0204] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0205] Example 6
[0206] This embodiment provides a service code stream processing device, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable. Fig. 9 2 is a structural block diagram of a service code stream processing device according to an embodiment of the present invention (II), such as Fig. 9 As shown, the service code stream processing device in this embodiment includes:
[0207] The second acquisition module 602 is used to acquire the fourth service code stream and extract the fifth service code stream from the fourth service code stream;
[0208] The second output module 604 is used to process the fifth service code stream according to the second state information of the fifth service code stream, and output the processed fifth service code stream.
[0209] It should be further explained that the remaining optional embodiments and technical effects of the service code stream processing device in this embodiment correspond to the service code stream processing device recorded in Embodiment 4, so they are not described in detail here.
[0210] In an optional embodiment, the second status information includes at least one of the following:
[0211] 0 bit length, 1 bit length, 66b sync header lock status.
[0212] In an optional embodiment, the processing of the fifth service code stream according to the second status information of the fifth service code stream includes:
[0213] determining an alarm logic according to the second status information, and processing the fifth service code stream according to the alarm logic;
[0214] Wherein, the alarm logic includes at least: a fourth alarm logic and a fifth alarm logic;
[0215] The fourth alarm logic is used to indicate that the length of consecutive 0 bits and / or consecutive 1 bits in the fifth service code stream is greater than or equal to a preset length threshold, or that the 66b synchronization header is lost; the fifth alarm logic is used to indicate that the fifth service code stream is in a normal state.
[0216] In an optional embodiment, the processing of the fifth service code stream according to the alarm logic includes:
[0217] When the alarm logic is the fourth alarm logic, the fifth service code stream is modified.
[0218] In an optional embodiment, the modification process of the fifth service code stream includes:
[0219] Perform scrambling processing on the fifth service code stream using a scrambling code polynomial; or,
[0220] Use the maintenance signal to perform alternative processing on the fifth service code stream; or,
[0221] The fifth service code stream is encoded to modify at least part of the bits in the fifth data stream.
[0222] In an optional embodiment, the maintenance signal includes one of the following:
[0223] PRBS code stream, 0, 1 alternating code stream, error block code stream, LF code stream.
[0224] In an optional embodiment, the encoding process of the fifth service code stream includes:
[0225] The fifth service code stream is encoded according to the PRBS code stream or the 0, 1 alternating code stream.
[0226] In an optional embodiment, the processing of the fifth service code stream according to the alarm logic includes:
[0227] When the alarm logic is the fifth alarm logic, the fifth service code stream is output.
[0228] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0229] Example 7
[0230] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0231] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for executing the method steps recorded in the above embodiment:
[0232] Optionally, in this embodiment, the above-mentioned computer-readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0233] Example 8
[0234] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0235] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0236] Optionally, in this embodiment, the processor may be configured to execute the method steps described in the above embodiment through a computer program.
[0237] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0238] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0239] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A service code stream processing device, characterized in that: include: A first service code stream input unit is configured to input a first service code stream; wherein the first service code stream is a service layer service code stream of a client service code stream sent by a wavelength division device; A first service code stream processing unit is configured to process the first service code stream according to the first state information of the first service code stream to obtain a second service code stream; wherein the second service code stream is a customer service code stream that the wavelength division device needs to send to the customer service device; A first service code stream output unit, configured to output the second service code stream; Wherein, the first service code stream processing unit is further configured as: determining an alarm logic according to the first state information, and processing the first service code stream according to the alarm logic to obtain the second service code stream; Wherein, the alarm logic includes one of the following: first alarm logic, second alarm logic, third alarm logic; The first alarm logic is used to indicate that the first service code stream is in an abnormal state and a maintenance signal has not been inserted into the first service code stream; the second alarm logic is used to indicate that the first service code stream is in an abnormal state and the maintenance signal has been inserted into the first service code stream; the third alarm logic is used to indicate that the first service code stream is in a normal state.
2. The device according to claim 1, characterized in that The first service code stream processing unit is further configured as: When the alarm logic is the first alarm logic, extracting a third service code stream from the first service code stream, and modifying the third service code stream to obtain the second service code stream; Output the second service code stream.
3. The device according to claim 1, characterized in that The first service code stream processing unit is further configured as: In a case where the alarm logic is the second alarm logic, determining the second service code stream according to the maintenance signal inserted into the first service code stream; Output the second service code stream.
4. The device according to claim 1, characterized in that The first service code stream processing unit is further configured as: When the alarm logic is the third alarm logic, extracting a third service code stream from the first service code stream, and determining the third service code stream as the second service code stream; Output the second service code stream.
5. A method for processing a service code stream, characterized in that: include: Obtain a first service code stream; wherein the first service code stream is a service layer service code stream of a client service code stream sent by a wavelength division device; Processing the first service code stream according to the first state information of the first service code stream to obtain a second service code stream, and outputting the second service code stream, wherein the second service code stream is a customer service code stream that the wavelength division device needs to send to the customer service device; The processing of the first service code stream according to the first state information of the first service code stream to obtain the second service code stream includes: determining an alarm logic according to the first state information, and processing the first service code stream according to the alarm logic to obtain the second service code stream; Wherein, the alarm logic includes one of the following: first alarm logic, second alarm logic, third alarm logic; The first alarm logic is used to indicate that the first service code stream is in an abnormal state and a maintenance signal has not been inserted into the first service code stream; the second alarm logic is used to indicate that the first service code stream is in an abnormal state and the maintenance signal has been inserted into the first service code stream; the third alarm logic is used to indicate that the first service code stream is in a normal state.
6. The method according to claim 5, characterized in that The processing of the first service code stream according to the alarm logic to obtain the second service code stream includes: When the alarm logic is the first alarm logic, extracting a third service code stream from the first service code stream, and modifying the third service code stream to obtain the second service code stream; Output the second service code stream.
7. The method according to claim 5, characterized in that The processing of the first service code stream according to the alarm logic to obtain the second service code stream includes: In a case where the alarm logic is the second alarm logic, determining the second service code stream according to the maintenance signal inserted into the first service code stream; Output the second service code stream.
8. The method according to claim 5, characterized in that The processing of the first service code stream according to the alarm logic to obtain the second service code stream includes: When the alarm logic is the third alarm logic, extracting a third service code stream from the first service code stream, and determining the third service code stream as the second service code stream; Output the second service code stream.
9. A service code stream processing device, characterized in that: include: The second service code stream input unit is configured to input a fourth service code stream; wherein the fourth service code stream is a service layer service code stream of a client service code stream sent by a wavelength division device; The second service code stream processing unit is configured to extract a fifth service code stream from the fourth service code stream, and process the fifth service code stream according to the second state information of the fifth service code stream; wherein the fifth service code stream is a customer service code stream that the wavelength division device needs to send to the customer service device; A second service code stream output unit, configured to output the processed fifth service code stream; Wherein, the second service code stream processing unit is further configured as: determining an alarm logic according to the second status information, and processing the fifth service code stream according to the alarm logic Wherein, the alarm logic includes at least: a fourth alarm logic and a fifth alarm logic; The fourth alarm logic is used to indicate that the length of consecutive 0 bits and / or consecutive 1 bits in the fifth service code stream is greater than or equal to a preset length threshold, or that the 66b synchronization head is lost; the fifth alarm logic is used to indicate that the fifth service code stream is in a normal state.
10. The device according to claim 9, characterized in that The second status information includes at least one of the following: 0 bit length, 1 bit length, 66b sync header lock status.
11. The device according to claim 9, characterized in that The second service code stream processing unit is further configured as: When the alarm logic is the fourth alarm logic, the fifth service code stream is modified.
12. A method for processing a service code stream, characterized in that: include: Obtain a fourth service code stream, and extract a fifth service code stream from the fourth service code stream; wherein the fourth service code stream is a service layer service code stream of a customer service code stream sent by a wavelength division device; and the fifth service code stream is a customer service code stream that the wavelength division device needs to send to a customer service device; Processing the fifth service code stream according to the second status information of the fifth service code stream, and outputting the processed fifth service code stream; The processing of the fifth service code stream according to the second status information of the fifth service code stream includes: determining an alarm logic according to the second status information, and processing the fifth service code stream according to the alarm logic; Wherein, the alarm logic includes at least: a fourth alarm logic and a fifth alarm logic; The fourth alarm logic is used to indicate that the length of consecutive 0 bits and / or consecutive 1 bits in the fifth service code stream is greater than or equal to a preset length threshold, or that the 66b synchronization head is lost; the fifth alarm logic is used to indicate that the fifth service code stream is in a normal state.
13. The method according to claim 12, characterized in that The second status information includes at least one of the following: 0 bit length, 1 bit length, 66b sync header lock status.
14. The method according to claim 12, characterized in that The processing of the fifth service code stream according to the alarm logic includes: When the alarm logic is the fourth alarm logic, the fifth service code stream is modified.
Citation Information
Patent Citations
Pseudo-noise insertion on unacceptable input data sequence in optical networks
US20110286742A1