[go: up one dir, main page]

CN102185677A - Method for generating pattern matching authentication code, and method, equipment and system for automatically configuring pattern matching authentication code - Google Patents

Method for generating pattern matching authentication code, and method, equipment and system for automatically configuring pattern matching authentication code Download PDF

Info

Publication number
CN102185677A
CN102185677A CN2011101049632A CN201110104963A CN102185677A CN 102185677 A CN102185677 A CN 102185677A CN 2011101049632 A CN2011101049632 A CN 2011101049632A CN 201110104963 A CN201110104963 A CN 201110104963A CN 102185677 A CN102185677 A CN 102185677A
Authority
CN
China
Prior art keywords
mode
matching
authentication code
fec
receiving
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.)
Pending
Application number
CN2011101049632A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2011101049632A priority Critical patent/CN102185677A/en
Publication of CN102185677A publication Critical patent/CN102185677A/en
Priority to PCT/CN2011/080415 priority patent/WO2012145994A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

The invention provides a method for generating a pattern matching authentication code, receiving transmission equipment, sending transmission equipment, and a method and a system for automatically configuring a forward error correction (FEC) pattern, which are applied to an optical transport network (OTN). The method for generating the pattern matching authentication code comprises the following steps of: acquiring an FEC pattern supported by the transmission equipment according to configuration information of ports of the transmission equipment; determining a sequence number corresponding to the FEC pattern according to an FEC pattern corresponding table, wherein each FEC pattern in the FEC pattern corresponding table corresponds to one sequence number; and arranging the sequence numbers so as to generate the pattern matching authentication code. By adoption of the invention, the FEC pattern between the automatic configuration transmission equipment can be realized, and error due to manual operation can be avoided.

Description

Generation method, automatic configuration method, equipment and system of pattern matching authentication code
Technical Field
The present invention relates to the field of optical network communications, and in particular, to a method and a system for generating a mode matching authentication code, for receiving and transmitting a transmission device, for sending a transmission device, and for automatically configuring an FEC mode, for an OTN transport network.
Background
An OTN (Optical Transport Network) is a Transport Network based on a wavelength division multiplexing technology and organized in an Optical layer, and is a new generation digital Transport Network.
First, second generation transport networks were originally designed specifically to support voice services, and although they could also be used to transport data and image services, the transport efficiency was not high. In contrast, the third generation OTN transport network technology supports voice, data, and image services from a design point of view, and can support functions such as Bandwidth On Demand (BOD), scalable quality of service (QOS), and Optical Virtual Private Network (OVPN) when cooperating with other protocols. The OTN transport network can realize the transmission, multiplexing, routing selection and monitoring of service signals in an optical domain.
The OTN transport network is not an ideal digital channel, and the signal always generates distortion and non-isochronous time delay in the transmission process of various media, which means that bit errors occur for the digital signal. In order to solve the problem of Error code generated in signal transmission, a Forward Error Correction (FEC) technology has been developed.
FEC (Forward Error Correction) is a data encoding and decoding technology, where Forward Error Correction refers to a process of processing a signal in advance according to a certain format before the signal is transmitted, and a receiving end decodes the signal according to a specified algorithm to find and correct an Error code, and no longer needs to notify a transmitting end to retransmit the signal, thereby increasing the transmission rate. FEC codec can be implemented in hardware or software.
However, at present, all transport devices applied to the OTN transport network do not support the FEC (Forward Error Correction), and even if the transport devices support the FEC, the FEC modes supported by the transport devices may be different according to different manufacturers. Currently, the FEC mode between transmission devices is usually configured by a manager by manually issuing commands. Thus, it is inevitable that data transmission is affected by an error in FEC pattern matching between transmission apparatuses due to human negligence. Especially, when more equipment nodes are in mixed connection, the FEC mode matching work is complicated, the workload of management personnel is increased, and the error probability is increased.
Disclosure of Invention
The invention provides a method for generating a mode matching authentication code, receiving and transmitting equipment, and a method and a system for automatically configuring an FEC mode.
A method for generating a pattern matching authentication code comprises the following steps:
acquiring an FEC mode supported by transmission equipment according to configuration information of a port of the transmission equipment;
determining a sequence number corresponding to the FEC mode according to an FEC mode corresponding table, wherein each FEC mode in the FEC mode corresponding table corresponds to one sequence number;
and arranging the serial numbers to generate a pattern matching authentication code.
A method for FEC mode auto-configuration according to the pattern matching authentication code of claim 1, comprising:
the receiving transmission equipment extracts a mode matching authentication code from the data which is transmitted by the sending transmission equipment and coded by the FEC-free mode;
the receiving and transmitting equipment matches the serial number in the extracted pattern matching authentication code with the serial number in the pattern matching authentication code stored in the receiving and transmitting equipment;
if the consistent serial numbers are matched, the receiving transmission equipment determines that the FEC mode corresponding to one consistent serial number is the matching mode, and informs the sending transmission equipment of the matching mode;
if the matching sequence number is not consistent with the sequence number, the receiving transmission equipment determines that the non-FEC mode is the matching mode, and informs the sending transmission equipment that the matching mode is the non-FEC mode;
the transmitting device determines a matching pattern based on the received notification.
A receiving transmission device comprising:
a storage unit for storing the pattern matching authentication code;
an extraction unit configured to extract a pattern matching authentication code from data accepted by the first communication unit;
the matching unit is used for matching the serial number in the pattern matching authentication code extracted by the extraction unit with the serial number in the pattern matching authentication code stored in the storage unit;
a first pattern determining unit for determining a matching pattern according to a matching result;
and the first communication unit is used for receiving the data which is transmitted by the sending transmission equipment and contains the FEC-free codes and matched with the authentication codes, and informing the sending transmission equipment of the matched mode determined by the first mode determination unit.
A transmitting transmission device comprising:
a second communication unit for transmitting data encoded in a non-FEC mode including a mode matching authentication code to the receiving transmission apparatus and receiving a notification sent by the first communication unit of the receiving transmission apparatus;
and a second mode determination unit for determining a matching mode according to the notification received by the second communication unit.
A system for FEC mode auto-configuration comprising, a transmitting transport device and a receiving transport device, the receiving transport device comprising:
a storage unit for storing the pattern matching authentication code;
the extraction unit is used for extracting the pattern matching authentication code from the data without the FEC code transmitted by the sending transmission equipment;
the matching unit is used for matching the serial number in the pattern matching authentication code extracted by the extraction unit with the serial number in the pattern matching authentication code stored in the storage unit;
a first pattern determining unit for determining a matching pattern according to a matching result;
the first communication unit is used for receiving the data which is transmitted by the sending transmission equipment and contains the FEC-free codes and matched with the authentication codes, and informing the sending transmission equipment of the matched mode determined by the first mode determination unit;
the transmission apparatus includes:
a second communication unit for transmitting data encoded in a non-FEC mode including a mode matching authentication code to the receiving transmission apparatus and receiving a notification sent by the first communication unit of the receiving transmission apparatus;
and a second mode determination unit for determining a matching mode according to the notification received by the second communication unit.
Therefore, the FEC mode between the transmission devices can be automatically configured by adopting the invention, and the error caused by manual operation is avoided.
Drawings
FIG. 1 is a schematic diagram of a system for FEC mode auto-configuration according to the present invention;
FIG. 2 is a flow chart of a method for generating a pattern matching authentication code according to the present invention;
FIG. 3 is a schematic diagram of the structure of the pattern matching authentication code of the present invention;
fig. 4 is a flowchart of a method for FEC mode auto-configuration according to the present invention.
Detailed Description
Fig. 1 is a schematic structural diagram of a system for FEC mode automatic configuration according to the present invention, where as shown in the figure, the system for FEC mode automatic configuration includes a sending transmission device and a receiving transmission device, and an FEC mode needs to be configured between the sending transmission device and the receiving transmission device.
The receiving transmission apparatus includes: the device comprises a storage unit, an extraction unit, a matching unit, a first mode determination unit and a first communication unit. Wherein,
the storage unit is used for storing the pattern matching authentication code.
The extraction unit is configured to extract a pattern matching authentication code from data accepted by a first communication unit described below.
The matching unit is used for matching the serial number in the pattern matching authentication code extracted by the extraction unit with the serial number in the pattern matching authentication code stored in the storage unit.
The first mode determining unit is used for determining a matching mode according to a matching result.
The first communication unit is used for receiving the data which is transmitted by the sending transmission equipment and contains the FEC-free codes and matched with the authentication codes, and informing the sending transmission equipment of the matched mode determined by the first mode determination unit.
Specifically, the first mode determining unit is specifically configured to determine, when the matching unit matches a consistent sequence number, that an FEC mode corresponding to the consistent sequence number is set as a matching mode; and if the matching unit does not match the consistent sequence number, determining that the non-FEC mode is the matching mode.
Preferably, the receiving and transmitting device further includes: and a quantity check bit judgment unit.
The number check bit judging unit is used for judging whether the number check bit in the pattern matching authentication code is 0 or not, and informing the matching unit that the number check bit in the pattern matching authentication code is not 0 if the number check bit is not 0; otherwise, the mode determination unit is informed that the number check bit in the mode matching authentication code is 0.
Correspondingly, the first mode determining unit is further configured to determine that the FEC-free mode is the matching mode when receiving a notification that the number check bit in the mode matching authentication code is 0.
The matching unit is specifically configured to perform matching when receiving a notification that a number check bit in the pattern matching authentication code is not 0.
Preferably, the receiving and transmitting device further includes: and a flag check bit judgment unit.
The mark check bit judging unit is used for judging whether the pattern matching authentication code comprises a mark check bit or not, and if the pattern matching authentication code comprises the mark check bit, informing the matching unit that the pattern matching authentication code comprises the mark check bit; otherwise, the first mode determining unit is informed that the mode matching authentication code does not include the flag check bit.
Correspondingly, the first mode determining unit is further configured to determine that the FEC-free mode is the matching mode when receiving a notification that the pattern matching authentication code does not include the flag check bit.
The matching unit is specifically configured to perform matching when receiving a notification that the pattern matching authentication code includes a flag check bit.
Preferably, the receiving and transmitting device further includes: an error detection check value calculation unit and an error detection check bit judgment unit.
And the error detection check value calculating unit is used for carrying out error detection check according to the serial number, the quantity check bits and the mark check bits in the mode matching authentication code to obtain an error detection check value.
The error detection check bit judging unit is used for judging whether the error detection check value calculated by the error detection check value calculating unit is the same as the error detection check bit in the mode matching authentication code or not, and informing the matching unit that the error detection check value is the same as the error detection check bit in the mode matching authentication code if the error detection check value is the same as the error detection check bit in the mode matching authentication code; otherwise, informing the first mode determining unit that the error detection check value is the same as the error detection check bit in the mode matching authentication code;
correspondingly, the first mode determining unit is further configured to determine that the FEC-free mode is the matching mode when the received error detection check value is different from the error detection check bit in the mode matching authentication code;
the matching unit is specifically configured to perform matching when the received error detection check value is the same as the error detection check bit in the pattern matching authentication code.
A transmitting transmission device comprising: a second communication unit and a second mode determination unit. Wherein,
the second communication unit is configured to send non-FEC encoded data including the pattern matching authentication code to the receiving transmission device, and to receive a notification sent by the first communication unit of the receiving transmission device.
The second mode determination unit is used for determining the matching mode according to the notification received by the second communication unit.
Fig. 2 is a flowchart of a method for generating a pattern matching authentication code according to the present invention, and the method for generating a pattern matching authentication code according to the present invention is described below with reference to the accompanying drawings, and includes the following steps:
step 201, acquiring an FEC mode supported by a transmission device according to configuration information of a port of the transmission device;
step 202, determining a sequence number corresponding to the FEC mode according to an FEC mode correspondence table, where each FEC mode in the FEC mode correspondence table corresponds to one sequence number.
Step 203, arranging the serial numbers to generate pattern matching authentication codes.
Specifically, the arranging the sequence numbers is to sort the sequence numbers in descending order according to the numerical values of the sequence numbers, and the numerical values of the sequence numbers are determined according to the strength of the error correction capability of the FEC modes corresponding to the sequence numbers. That is, the higher the error correction capability of the FEC mode, the larger the value of the corresponding sequence number.
Preferably, step 204 is further included, a number check bit is set in the pattern matching authentication code, and the number check bit is formed by the number of FEC modes supported by the transmission device.
Preferably, step 205 is further included, a flag check bit is further set in the pattern matching authentication code, and the flag check bit is formed by a flag bit for marking transmitted data.
Preferably, step 206 is further included, an error detection check bit is further set in the pattern matching authentication code, and the error detection check bit is formed by an error detection check value obtained by error detection check.
Fig. 3 is a schematic structural diagram of the pattern matching authentication code of the present invention, and as shown in the figure, the pattern matching authentication code sequentially includes a flag check bit, a number check bit, a serial number corresponding to each FEC mode, and an error detection check bit. The flag check bit, the number check bit and the error detection check bit respectively occupy two bytes, and each serial number occupies one byte. The generated pattern matching authentication code is placed at the beginning of the FEC code in the OTN frame encoded in FEC-free mode (row 1, column 3825).
A method for FEC mode automatic configuration by mode matching authentication codes comprises the following steps:
the receiving transmission equipment extracts a mode matching authentication code from the data which is transmitted by the sending transmission equipment and coded by the FEC-free mode;
the receiving and transmitting equipment matches the serial number in the extracted pattern matching authentication code with the serial number in the pattern matching authentication code stored in the receiving and transmitting equipment;
if the consistent serial numbers are matched, the receiving transmission equipment determines that the FEC mode corresponding to one consistent serial number is the matching mode, and informs the sending transmission equipment of the matching mode;
if the matching sequence number is not consistent with the sequence number, the receiving transmission equipment determines that the non-FEC mode is the matching mode, and informs the sending transmission equipment that the matching mode is the non-FEC mode;
the transmitting device determines a matching pattern based on the received notification.
Preferably, the matching is performed, specifically, the matching is performed sequentially according to the sequence order of the serial numbers, once matching with a consistent serial number, the receiving transmission device determines that the FEC mode corresponding to the consistent serial number is a matching mode, and notifies the sending transmission device of the matching mode.
Preferably, the receiving and transmitting device determines that an FEC mode corresponding to one consistent sequence number is a matching mode, and specifically, the receiving and transmitting device determines that an FEC mode corresponding to a sequence number with a largest value in the matched sequence numbers is a matching mode.
Preferably, before the matching, the method further includes:
and the receiving and transmitting equipment judges whether the number check bit in the pattern matching authentication code is 0, if the number check bit is 0, the receiving and transmitting equipment determines that the non-FEC mode is the matching mode and informs the transmitting and transmitting equipment that the matching mode is the non-FEC mode, and if the number check bit is not 0, the next step is carried out.
Preferably, before the determining whether the number check bit in the pattern matching authentication code is 0, the method further includes:
and the receiving and transmitting equipment judges whether the pattern matching authentication code comprises a mark check bit, if not, the receiving and transmitting equipment determines that the non-FEC mode is the matching mode and informs the sending and transmitting equipment that the matching mode is the non-FEC mode, and if the pattern matching authentication code comprises the mark check bit, the next step is carried out.
Preferably, before the matching and after the determining whether the number check bit in the pattern matching authentication code is 0, the method further includes:
and the receiving and transmitting equipment performs error detection and verification according to the serial number, the quantity check bits and the mark check bits in the mode matching authentication code to obtain an error detection and verification value, judges whether the error detection and verification value is the same as the error detection and verification bits in the mode matching authentication code, determines that the non-FEC mode is a matching mode if the error detection and verification value is not the same as the error detection and verification bits in the mode matching authentication code, informs the sending and transmitting equipment that the matching mode is the non-FEC mode, and performs the next step if the error detection and verification.
Fig. 4 is a flowchart of FEC mode automatic configuration according to the present invention, and the following describes the flow of FEC mode automatic configuration with reference to the accompanying drawings:
step 401, the sending transmission device sends out OTN frame data carrying the mode matching authentication code.
In step 402, the receiving transmission device extracts a pattern matching authentication code from the FEC-free encoded data transmitted by the sending transmission device.
In step 403, the receiving and transmitting device determines whether the pattern matching authentication code includes a flag check bit. If the flag check bit is not included, go to step 409; if the flag check bit is included, the next step is performed.
In step 404, the receiving and transmitting device determines whether the number check bit in the pattern matching authentication code is 0. If the number check bit is 0, go to step 409; if the number check bit is not 0, the next step is performed.
Step 405, the receiving and transmitting device performs error detection and verification according to the serial number, the number verification bits and the flag verification bits in the mode matching authentication code to obtain an error detection and verification value.
Step 406, determining whether the error detection check value is the same as the error detection check bit in the pattern matching authentication code. If the error detection check value is not the same as the error detection check bit in the pattern matching authentication code, entering step 409; if so, the next step is performed.
Step 407, the receiving and transmitting device matches the serial number in the extracted pattern matching authentication code with the serial number in the pattern matching authentication code stored in the receiving and transmitting device in sequence.
In step 408, if the matching sequence number is matched, the receiving and transmitting device determines that the FEC mode corresponding to the matching sequence number is set as the matching mode, and then proceeds to step 410. If the matched serial numbers are not consistent, the next step is carried out;
in step 409, the receiving transmitting device determines that the non-FEC mode is a matching mode.
Step 410, notifying the sending and transmitting device to receive the matching mode determined by the transmitting device;
in step 411, the sending transmitting device determines a matching pattern based on the received notification.
After the FEC mode configured between the sending transmission device and the receiving transmission device is finished, the encoding unit of the sending transmission device encodes the data according to the FEC mode determined by the second mode determining unit, and the decoding unit of the receiving transmission device decodes the data according to the FEC mode determined by the first mode determining unit.
An embodiment of the present invention is described in detail below. First, a method of generating a pattern matching authentication code will be described.
Both the receiving transmission device a and the sending transmission device B connected through the port configure the OTN service.
Step 501, a receiving transmission device a and a sending transmission device B obtain, according to configuration information of their respective ports, FEC modes supported by the transmission devices. It is known that the OTN traffic of the receiving and transmitting device a supports the AFEC mode, the UFEC mode, and the FEC-free mode. The OTN service of the sending transmission device B supports the UFEC mode and the FEC-free mode.
Step 502, determining a sequence number corresponding to the FEC mode according to an FEC mode correspondence table. Each FEC mode in the FEC mode correspondence table corresponds to a sequence number, and the value of the sequence number is determined according to the strength of the error correction capability of the FEC mode corresponding to the sequence number, that is, the stronger the error correction capability of the FEC mode is, the larger the value of the sequence number corresponding to the FEC mode is.
It is assumed that, in the FEC mode correspondence table, the sequence number corresponding to the non-FEC mode is 00, the sequence number corresponding to the UFEC mode is 01, the sequence number of the AFEC mode is 05, and each sequence number occupies one byte. Then, the sequence numbers corresponding to the FEC mode of the receiving transmission device a are 00, 01, and 05, and the sequence numbers corresponding to the FEC mode of the transmitting transmission device B are 00 and 01.
Step 503, arranging the serial numbers to generate a pattern matching authentication code. And sequencing the sequence numbers in a descending order according to the numerical values of the sequence numbers. Then, the pattern matching authentication code of the receiving transmission apparatus a is 050100, and the pattern matching authentication code of the transmitting transmission apparatus B is 0100.
Step 504, a flag check bit is further set in the pattern matching authentication code, and if the set flag bit is 5a and each flag check bit occupies 2 bytes, the pattern matching authentication code of the receiving transmission device a is 5a 5a 050100, and the pattern matching authentication code of the sending transmission device B is 5a 5a 0100.
Step 505, a number of check bits are further set in the pattern matching authentication code, the number of FEC modes supported by the receiving transmission device a is 03, the number of FEC modes supported by the sending transmission device B is 02, and each number of check bits occupies 2 bytes, so that the pattern matching authentication code of the receiving transmission device a is 5a 5a 0003050100, and the pattern matching authentication code of the sending transmission device a is 5a 5a 00020100.
Step 506, an error detection check bit is further set in the pattern matching authentication code, and the error detection check bit is composed of an error detection check value obtained by performing parity check on all bytes of the serial number, the number check bit and the flag check bit, that is, performing xor calculation on the bytes. Assuming that an error detection check value obtained by performing error detection check on the serial number 050100, the quantity check bit 0003, and the flag check bit 5a 5a in the pattern matching authentication code of the transmission apparatus a is c1, an error detection check value obtained by performing error detection check on the serial number 050100, the quantity check bit 0003, and the flag check bit 5a 5a in the pattern matching authentication code of the technical transmission apparatus B is c1, and the error detection check value occupies two bytes, the pattern matching authentication code of the transmission apparatus a is 5a 5a 0003050100 c 100, and the pattern matching authentication code of the transmission apparatus B is 5a 5a 00030100 c 100.
The generated pattern matching authentication code is placed at the beginning of the FEC code in the OTN frame encoded in FEC-free mode (row 1, column 3825).
Next, a method of FEC mode auto-configuration is described.
Step 601, the transmitting transmission device B transmits OTN frame data encoded in the FEC-free mode, which includes the mode matching authentication code 5a 5a 00020100 c 100 of the transmitting transmission device B.
In step 602, the receiving transmission device a extracts the pattern matching authentication code 5a 5a 00020100 c 100 from the data encoded in the FEC-free mode transmitted by the sending transmission device B.
Step 603, the receiving and transmitting device a determines that the pattern matching authentication code includes the flag check bit 5 a.
In step 604, the receiving and transmitting device determines that the number check bit in the pattern matching authentication code is not 0.
Step 605, the receiving transmission device performs error detection on the sequence number 0100, the number check bit 0002, and the flag check bit 5a 5a in the pattern matching authentication code of the sending transmission device B to obtain an error detection check value c 1.
Step 606, judging that the error detection check value c1 is the same as the error detection check bit c1 in the pattern matching authentication code.
In step 607, the receiving and transmitting device a sequentially matches the serial number 0100 in the extracted pattern matching authentication code with the serial number 050100 in the pattern matching authentication code stored in the receiving and transmitting device a.
In step 608, the receiving and transmitting device a determines that the UFEC pattern corresponding to the serial number 01 is a matching pattern.
Step 609, notify the sending and transmitting device B that the matching mode is the UFEC mode.
In step 610, the sending and transmitting device B determines the UFEC mode as the matching mode according to the received notification.
Another embodiment of the present invention will be described in detail below. First, a method for generating a pattern matching authentication code is introduced
Step 701, a receiving transmission device a and a sending transmission device B obtain, according to configuration information of respective ports, FEC modes supported by the transmission devices, respectively. It is known that the OTN traffic of the receiving transmission device a supports the AFEC mode and the FEC-free mode. The OTN service of the sending transmission device B supports the UFEC mode and the FEC-free mode.
Step 702, determining a sequence number corresponding to the FEC mode according to an FEC mode correspondence table.
It is assumed that, in the FEC mode correspondence table, the sequence number corresponding to the non-FEC mode is 00, the sequence number corresponding to the UFEC mode is 01, the sequence number of the AFEC mode is 05, and each sequence number occupies one byte. Then, the receiving transmission device a has sequence numbers 00 and 05, and the sending transmission device B has sequence numbers 00 and 01.
Step 703, arranging the serial numbers to generate pattern matching authentication codes. And sequencing the sequence numbers in a descending order according to the numerical values of the sequence numbers. Then, the pattern matching authentication code of the receiving transmission apparatus a is 0500, and the pattern matching authentication code of the transmitting transmission apparatus B is 0100.
Step 704, a flag check bit is further set in the pattern matching authentication code, and if the set flag bit is 5a and each flag check bit occupies 2 bytes, the pattern matching authentication code of the receiving transmission device a is 5a 5a 0500, and the pattern matching authentication code of the sending transmission device B is 5a 5a 0100.
Step 705, further setting a number of check bits in the pattern matching authentication code, where the number of FEC modes supported by the receiving transmission device a is 02, the number of FEC modes supported by the sending transmission device B is 02, and each number of check bits occupies 2 bytes, then the pattern matching authentication code of the receiving transmission device a is 5a 5a 00020500, and the pattern matching authentication code of the sending transmission device B is 5a 5a 00020100.
Step 706, an error detection check bit is further set in the pattern matching authentication code, where the error detection check bit is composed of an error detection check value obtained by performing error detection check on the serial number, the quantity check bit, and the flag check bit, and assuming that the error detection check value obtained by performing error detection check on the serial number 0500, the quantity check bit 0002, and the flag check bit 5a 5a in the pattern matching authentication code of the transmission apparatus a is c0, the error detection check value obtained by performing error detection check on the serial number 050100, the quantity check bit 0002, and the flag check bit 5a 5a in the pattern matching authentication code of the technical transmission apparatus B is c1, and the error detection check value occupies two bytes, then the pattern matching authentication code of the transmission apparatus a is 5a 5a 00020500 c 000, and the pattern matching authentication code of the transmission apparatus B is 5a 5a 00020100 c 100.
The generated pattern matching authentication code is placed at the beginning of the FEC code in the OTN frame encoded in FEC-free mode (row 1, column 3825).
Next, a method of FEC mode auto-configuration is described.
In step 801, the transmitting transmission device B transmits OTN frame data encoded in the FEC-free mode, which includes the mode matching authentication code 5a 5a 00020100 c 100 of the transmitting transmission device B.
In step 802, the receiving transmission device a extracts the pattern matching authentication code 5a 5a 00020100 c 100 from the data encoded in the FEC-free mode transmitted by the sending transmission device B.
In step 803, the receiving and transmitting device a determines that the pattern matching authentication code includes the flag check bit 5 a.
Step 804, the receiving and transmitting device determines that the number check bit in the pattern matching authentication code is not 0.
Step 805, the receiving transmission device performs error detection check on the sequence number 0100, the number check bit 0002 and the flag check bit 5a 5a in the pattern matching authentication code of the sending transmission device B, and the obtained error detection check value is c 0.
Step 806, determining that the error detection check value c0 is not the same as the error detection check bit c1 in the pattern matching authentication code.
In step 807, the receiving transmitting device a determines the sequence number FEC-free pattern as a matching pattern.
Step 808, informing the sending transmitting device B that the matching mode is the non-FEC mode.
In step 809, the transmitting device B determines that the non-FEC mode is the matching mode according to the received notification.
Compared with the prior technical scheme of manual matching of the FEC mode, the technical scheme of the invention not only can avoid errors caused by manual operation, but also can automatically match the FEC mode with the strongest error correction capability for transmission equipment.
The receiving and transmitting device further comprises an indicating unit, and when the first mode determining unit determines that the non-FEC mode is the matching mode, the first mode determining unit sends a notice that the non-FEC mode is the matching mode to the indicating unit, and the indicating unit sends an audio or video signal. The manager can know that the transmitting and receiving transmission equipment are matched with the FEC-free mode according to the video or audio signals. The management personnel can know the FEC mode configuration situation between the transmission devices conveniently.
In addition, other methods such as CRC check, arithmetic and checksum may be used as the check method.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (15)

1. A method for generating a pattern matching authentication code, comprising:
acquiring a Forward Error Correction (FEC) mode supported by transmission equipment according to configuration information of a port of the transmission equipment;
determining a sequence number corresponding to the FEC mode according to an FEC mode corresponding table, wherein each FEC mode in the FEC mode corresponding table corresponds to one sequence number;
and arranging the serial numbers to generate a pattern matching authentication code.
2. The generation method according to claim 1, wherein the sequence numbers are arranged, specifically, the sequence numbers are sorted in descending order according to the numerical size of the sequence numbers, and the numerical size of the sequence numbers is determined according to the strength of the error correction capability of the FEC mode corresponding to the sequence numbers.
3. The generation method of claim 1, wherein a number of check bits are set in the pattern matching authentication code, the number of check bits consisting of a number of FEC modes supported by the transmission device.
4. The generation method of claim 3, wherein a flag check bit is further set in the pattern matching authentication code, the flag check bit being constituted by a flag bit that marks transmitted data.
5. The generation method of claim 4, wherein an error detection check bit is further set in the pattern matching authentication code, and the error detection check bit is composed of an error detection check value obtained by an error detection check.
6. A method for FEC mode auto-configuration according to the mode matching authentication code of claim 1, comprising:
the receiving transmission equipment extracts a mode matching authentication code from the data which is transmitted by the sending transmission equipment and coded by the FEC-free mode;
the receiving and transmitting equipment matches the serial number in the extracted pattern matching authentication code with the serial number in the pattern matching authentication code stored in the receiving and transmitting equipment;
if the consistent serial numbers are matched, the receiving transmission equipment determines that the FEC mode corresponding to one consistent serial number is the matching mode, and informs the sending transmission equipment of the matching mode;
if the matching sequence number is not consistent with the sequence number, the receiving transmission equipment determines that the non-FEC mode is the matching mode, and informs the sending transmission equipment that the matching mode is the non-FEC mode;
the transmitting device determines a matching pattern based on the received notification.
7. The method according to claim 6, wherein the matching is performed, specifically, the matching is performed sequentially according to an arrangement order of sequence numbers, and once matching a consistent sequence number is performed, the receiving transmission device determines that the FEC mode corresponding to the consistent sequence number is a matching mode, and notifies the sending transmission device of the matching mode.
8. The method according to claim 6, wherein the receiving and transmitting device determines that the FEC mode corresponding to a consistent sequence number is the matching mode, and specifically, the receiving and transmitting device determines that the FEC mode corresponding to the sequence number with the largest value among the matched sequence numbers is the matching mode.
9. The method of claim 6, wherein prior to said matching, further comprising:
and the receiving and transmitting equipment judges whether the number check bit in the pattern matching authentication code is 0, if the number check bit is 0, the receiving and transmitting equipment determines that the non-FEC mode is the matching mode and informs the transmitting and transmitting equipment that the matching mode is the non-FEC mode, and if the number check bit is not 0, the next step is carried out.
10. The method of claim 9, wherein before determining whether the number check bit in the pattern matching authentication code is 0, further comprising:
and the receiving and transmitting equipment judges whether the pattern matching authentication code comprises a mark check bit, if not, the receiving and transmitting equipment determines that the non-FEC mode is the matching mode and informs the sending and transmitting equipment that the matching mode is the non-FEC mode, and if the pattern matching authentication code comprises the mark check bit, the next step is carried out.
11. The method of claim 10, wherein before said matching and after said determining whether the number of parity bits in the pattern matching authentication code is 0, further comprising:
and the receiving and transmitting equipment performs error detection and verification according to the serial number, the quantity check bits and the mark check bits in the mode matching authentication code to obtain an error detection and verification value, judges whether the error detection and verification value is the same as the error detection and verification bits in the mode matching authentication code, determines that the non-FEC mode is a matching mode if the error detection and verification value is not the same as the error detection and verification bits in the mode matching authentication code, informs the sending and transmitting equipment that the matching mode is the non-FEC mode, and performs the next step if the error detection and verification.
12. A receiving and transmitting device, comprising:
a storage unit for storing the pattern matching authentication code;
an extraction unit configured to extract a pattern matching authentication code from data accepted by the first communication unit;
the matching unit is used for matching the serial number in the pattern matching authentication code extracted by the extraction unit with the serial number in the pattern matching authentication code stored in the storage unit;
a first pattern determining unit for determining a matching pattern according to a matching result;
and the first communication unit is used for receiving the data which is transmitted by the sending transmission equipment and contains the FEC-free codes and matched with the authentication codes, and informing the sending transmission equipment of the matched mode determined by the first mode determination unit.
13. The apparatus according to claim 12, wherein the first pattern determining unit is specifically configured to determine, when the matching unit matches a matching sequence number, that an FEC pattern corresponding to a matching sequence number is set as the matching pattern; and if the matching unit does not match the consistent sequence number, determining that the non-FEC mode is the matching mode.
14. A transmit transmission device, comprising:
a second communication unit for transmitting data encoded in a non-FEC mode including a mode matching authentication code to the receiving transmission apparatus and receiving a notification sent by the first communication unit of the receiving transmission apparatus;
and a second mode determination unit for determining a matching mode according to the notification received by the second communication unit.
15. A system for FEC mode auto-configuration, comprising, a sending transmission device and a receiving transmission device, the receiving transmission device comprising:
a storage unit for storing the pattern matching authentication code;
the extraction unit is used for extracting the pattern matching authentication code from the data without the FEC code transmitted by the sending transmission equipment;
the matching unit is used for matching the serial number in the pattern matching authentication code extracted by the extraction unit with the serial number in the pattern matching authentication code stored in the storage unit;
a first pattern determining unit for determining a matching pattern according to a matching result;
the first communication unit is used for receiving the data which is transmitted by the sending transmission equipment and contains the FEC-free codes and matched with the authentication codes, and informing the sending transmission equipment of the matched mode determined by the first mode determination unit;
the transmission apparatus includes:
a second communication unit for transmitting data encoded in a non-FEC mode including a mode matching authentication code to the receiving transmission apparatus and receiving a notification sent by the first communication unit of the receiving transmission apparatus;
and a second mode determination unit for determining a matching mode according to the notification received by the second communication unit.
CN2011101049632A 2011-04-26 2011-04-26 Method for generating pattern matching authentication code, and method, equipment and system for automatically configuring pattern matching authentication code Pending CN102185677A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2011101049632A CN102185677A (en) 2011-04-26 2011-04-26 Method for generating pattern matching authentication code, and method, equipment and system for automatically configuring pattern matching authentication code
PCT/CN2011/080415 WO2012145994A1 (en) 2011-04-26 2011-09-30 Pattern matching authentication code generation method, and automatic configuration method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101049632A CN102185677A (en) 2011-04-26 2011-04-26 Method for generating pattern matching authentication code, and method, equipment and system for automatically configuring pattern matching authentication code

Publications (1)

Publication Number Publication Date
CN102185677A true CN102185677A (en) 2011-09-14

Family

ID=44571751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101049632A Pending CN102185677A (en) 2011-04-26 2011-04-26 Method for generating pattern matching authentication code, and method, equipment and system for automatically configuring pattern matching authentication code

Country Status (2)

Country Link
CN (1) CN102185677A (en)
WO (1) WO2012145994A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012145994A1 (en) * 2011-04-26 2012-11-01 中兴通讯股份有限公司 Pattern matching authentication code generation method, and automatic configuration method, device and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080065960A1 (en) * 2006-08-25 2008-03-13 Weiying Cheng Apparatus and Method for Communicating FEC Mode and Alarming Mismatch
CN101233715A (en) * 2006-06-26 2008-07-30 三菱电机株式会社 Communication apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185677A (en) * 2011-04-26 2011-09-14 中兴通讯股份有限公司 Method for generating pattern matching authentication code, and method, equipment and system for automatically configuring pattern matching authentication code

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101233715A (en) * 2006-06-26 2008-07-30 三菱电机株式会社 Communication apparatus
US20080065960A1 (en) * 2006-08-25 2008-03-13 Weiying Cheng Apparatus and Method for Communicating FEC Mode and Alarming Mismatch

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012145994A1 (en) * 2011-04-26 2012-11-01 中兴通讯股份有限公司 Pattern matching authentication code generation method, and automatic configuration method, device and system

Also Published As

Publication number Publication date
WO2012145994A1 (en) 2012-11-01

Similar Documents

Publication Publication Date Title
KR20220165727A (en) Fronthaul interface for advanced split-radio access network (RAN) systems
CN107888344B (en) Method, equipment and system for detecting error code
US20230118809A1 (en) Method and apparatus for sending and receiving multiframe, device, system, and storage medium
CN109327224B (en) Method, device and system for encoding and decoding
CN104301141B (en) A kind of method, apparatus and system for preserving configuration information
CA2547112A1 (en) Method and apparatus for providing an efficient control channel structure in a wireless communication system
CN104040976B (en) Method and device used for lost real-time media packet recovery
WO2014146280A1 (en) Data transmission method, base station, and user equipment
KR20120096154A (en) Method and apparatus for transmitting signaling information in digital broadcasting system
WO2016049964A1 (en) Communication method, device, and system for wavelength division multiplexing passive optical network
CN109167959B (en) Video acquisition equipment, system and video signal transmission method
CN106464518A (en) Message transmission method, device and system
CN108513701B (en) Data transmission method, device, machine readable storage medium and system
CN101675451A (en) Fault detection using embedded watermarks
CN109245863B (en) Apparatus and method for transmitting and receiving forward error correction packet
RU2010108349A (en) METHOD FOR DATA TRANSFER, METHOD FOR RECEIVING DATA, MOBILE TERMINAL AND RADIO COMMUNICATION SYSTEM
CN112994839A (en) Flexible Ethernet overhead multiframe receiving method, device, equipment and medium
CN106452812B (en) Auto-negotiation method and device for flexible Ethernet sub-link
CN102185677A (en) Method for generating pattern matching authentication code, and method, equipment and system for automatically configuring pattern matching authentication code
FI4145728T3 (en) Apparatus for transmitting and receiving broadcast service data in a broadcasting communication system
JP4276079B2 (en) Transport format combination indicator signaling
CN114070885A (en) A kind of multi-type information transmission method suitable for optical fiber network
US8681786B2 (en) Centralized recording and processing of received packet parameters
CN110324110B (en) Communication method, communication device and storage medium
CN114070404A (en) A working method of optical fiber network based on multi-type test equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110914