CN112968754B - Method for realizing data reliability transmission based on N +1 path E1 channel, network equipment and computer readable storage medium - Google Patents

Method for realizing data reliability transmission based on N +1 path E1 channel, network equipment and computer readable storage medium Download PDF

Info

Publication number
CN112968754B
CN112968754B CN202110135172.XA CN202110135172A CN112968754B CN 112968754 B CN112968754 B CN 112968754B CN 202110135172 A CN202110135172 A CN 202110135172A CN 112968754 B CN112968754 B CN 112968754B
Authority
CN
China
Prior art keywords
data
channel
path
layer
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110135172.XA
Other languages
Chinese (zh)
Other versions
CN112968754A (en
Inventor
谢俊杰
曹珈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aerospace Guosheng Technology Co ltd
Original Assignee
Aerospace Guosheng Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aerospace Guosheng Technology Co ltd filed Critical Aerospace Guosheng Technology Co ltd
Priority to CN202110135172.XA priority Critical patent/CN112968754B/en
Publication of CN112968754A publication Critical patent/CN112968754A/en
Application granted granted Critical
Publication of CN112968754B publication Critical patent/CN112968754B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes

Abstract

The invention discloses a data sending method, a data receiving method and a data transmission method for realizing data reliability based on an N +1 path E1 channel, wherein a network architecture of the data sending method comprises a sending side user service layer, a sending side data adaptation layer and a sending side physical transmission layer, wherein the sending side user service layer is used for generating user data, the sending side data adaptation layer carries out necessary adaptation and processing on the user data, and the sending side physical transmission layer acquires data from the data adaptation layer and carries out data transmission through an (N +1) path E1 physical channel. When 1 channel of N E1 channels for transmitting user data has error code in the transmission process, the error code can be corrected at the receiving end to realize correct transmission of data; when 1 channel of N channels of E1 for transmitting user data is disconnected, the data on the E1 channel can still be recovered through the operation processing at the receiving end, and the correct transmission of the data is realized.

Description

Method for realizing data reliability transmission based on N +1 path E1 channel, network equipment and computer readable storage medium
Technical Field
The invention relates to the technical field of digital communication, in particular to a method and network equipment for realizing reliable data transmission based on an N +1 path E1 channel.
Background
In the field of data communication, it is very common to bundle multiple E1 physical channels into a single logical data channel for data transmission. In these applications, the user equipment performs splitting and encapsulation on data to be transmitted at the transmitting end, then transmits the data through a plurality of E1 channels, and recombines and restores the data received from the plurality of E1 channels to the original data at the receiving end. The application technology can utilize a plurality of low-bandwidth physical data transmission channels to form a single high-bandwidth data channel to realize high-bandwidth data transmission application, but in practical application, some problems needing improvement and solution exist.
The E1 channel is influenced by factors such as the wiring quality of a transmission line, the transmission distance, the equipment processing in the transmission process and the like, error codes inevitably occur in the transmission process, when N E1 channels are used in a binding mode, the total error code rate is enlarged to be N times of the error code rate of a single E1 channel, and the reliability of data transmission is reduced. Because the E1 channel itself has no data fault-tolerant mechanism, when the user has a high requirement on the reliability of data transmission, the user needs to protect and correct the data from the application layer of the user, for example, the data is checked at the transmitting end, the data is checked at the receiving end, and the transmitting end is notified to retransmit after the data is checked. However, for some applications, due to various limitations, it is difficult to implement error correction in an application layer, for example, for video conference applications, because of real-time requirements on transmitted video data and large data volume, an error retransmission mechanism cannot be adopted, and when an error occurs in a critical position of video data, an abnormality of a video image may be caused.
On the other hand, when multiple E1 channels are bundled into a single data channel for use, the reliability of the transmission channel will be greatly reduced, and when any 1E 1 line fails, the overall service will be interrupted. For line interruption fault, the solution in the prior art is to perform double backup on a transmission channel, that is, add a line backup processing device at a user side, and transmit E1 data accessed by a user simultaneously through 2E 1 lines, respectively, where 1 line is used as a working line and the other 1 line is used as a backup line, and when the working line fails, the line backup processing device switches the user data to the backup line for continuous transmission. Although the scheme can improve the reliability of data transmission, the scheme also brings large resource and cost increase, and the increased cost is huge particularly for multi-path E1 channel bundling application.
Disclosure of Invention
The invention aims to provide a method and network equipment for realizing data reliability transmission based on an N +1 path E1 channel, which can solve the problems of error codes and broken links in multi-path E1 channel bundling application on the premise of increasing lower resources and cost, and provide a technical scheme for realizing high reliability data transmission for the N path E1 channel bundling application based on an (N +1) path E1 channel.
In a first aspect, an embodiment of the present invention provides a data transmission method for realizing data reliability based on an N +1 channel E1, where a network architecture includes a sending-side user service layer, a sending-side data adaptation layer, and a sending-side physical transport layer, where the sending-side user service layer is used to generate user data, the sending-side data adaptation layer performs necessary adaptation and processing on the user data, and the sending-side physical transport layer obtains data from the data adaptation layer and performs data transmission through an (N +1) channel E1 physical channel; the sending method specifically comprises the following steps:
s20, a user service layer at a sending side uniformly splits user data into N parts, and each part corresponds to data to be sent of 1 path of E1 channel;
s21, the data adaptation layer at the sending side splits the data to be sent into basic data processing units by taking a certain number of bytes as a unit, and marks and aligns the basic data processing units;
the data adaptation layer at the transmitting side in each timing interval does the following operations:
s1, reading 1 part of data from the data to be sent of the 1 st path E1 channel, storing the data into the positions corresponding to the TS1-TS15 and TS17-TS31 of the 1 st path E1 channel in a sending buffer area of an E1 physical transmission layer in sequence, and simultaneously carrying out CRC check operation on the part of data;
s2, sending buffer 1 channel E1 (b/30) to E1 physical transmission layer P TS0 time slot or TS16 time slot of E1 frame, filling data synchronization positioning signal BSS, current user data position mark BCS and CRC check value in turn, wherein P is integer and can be divided by T; the BCS adopts a count value of a monotone increasing cycle counter, and the count value is written as the BCS after being checked;
s3, repeating the steps S1-S2 for 1 piece of data to be sent in the buffer area to be sent of the data to be sent and the check data corresponding to the E1 channels from the 2 nd to the Nth channels in sequence;
s4, reading 1 part of data from the data to be sent of the (N +1) th E1 channel, storing the data in the positions corresponding to the (N +1) th E1 channels TS1-TS15 and TS17-TS31 in the E1 physical transmission layer sending buffer area in sequence, and sequentially filling a data synchronization positioning signal BSS and a current user data position mark BCS into TS0 time slots or TS16 time slots of the (b/30) P E1 frames of the (N +1) th E1 channel of the physical transmission layer sending buffer area;
s5, repeating the steps for T/P times to complete the processing of T/P data of each channel;
s22, the data adaptation layer at the sending side performs exclusive OR operation on the basic data processing units with the same marks, marks the operation result and stores the operation result into a buffer area to be sent of the check data;
s23, the sending side data adaptation layer sends user data and check data to be sent to a sending buffer of a sending side transmission layer by adopting a timing processing mechanism, wherein the timing interval is 125us (b/30) T, T is more than or equal to 1 and is an integer, and b is the number of bytes of a basic data unit;
and S24, the physical transmission layer of the transmitting side processes the data in the transmission buffer and sequentially transmits the data corresponding to each E1 channel in the transmission buffer through an E1 interface.
Optionally, the data to be transmitted is transmitted from the 1 st channel to the nth channel through the E1 channel, and the check data is transmitted from the N +1 st channel through the E1 channel.
Optionally, the BCS uses a count value of a monotonically increasing cycle counter, and the count value is written as the BCS after being checked.
In a second aspect, an embodiment of the present invention provides a network device, including:
a memory to store instructions;
and the processor is used for calling the instruction in the memory so as to carry out the operation of the method.
In a third aspect, an embodiment of the present invention provides a data receiving method for implementing a data sending method based on an N + 1-channel E1 channel, where a network architecture includes a receiving-side user service layer, a receiving-side data adaptation layer, and a receiving-side physical transmission layer, where the receiving-side user service layer is used to generate service data that needs to be transmitted by a user, the receiving-side data adaptation layer performs necessary adaptation and processing on the service data, and the receiving-side physical transmission layer acquires data from the data adaptation layer and performs data transmission through an N + 1-channel E1 physical channel, and the data receiving method includes the following steps:
s30, the physical transmission layer at the receiving side receives data from each path of E1 channel, and stores each path of E1 data to a corresponding position in a receiving buffer according to an E1 frame structure;
s31, the data adaptation layer of the receiving side reads data from the buffer of the physical transmission layer of the receiving side by adopting a timing processing mechanism, and the timing interval is 125us (b/30) T, wherein T is more than or equal to 1 and is an integer, and b is the byte number of the basic data unit;
the receiving side data adaptation layer does the following operation in each timing interval:
s311, reading (b/30) T frame E1 data from the corresponding positions of E1 channels from the 1 st path to the N +1 th path of the receiving side physical transmission layer in sequence and buffering;
s312, searching a data synchronization positioning signal BSS in the time slot of each path of E1 channel data, and carrying out first alignment on each path of E1 data by taking the BSS as a reference;
s313, analyzing data unit position marks BCS in each path of E1 data on the premise of BSS alignment, and performing secondary alignment on each path of E1 data by taking BCS as a reference;
s314, if the alignment of the BSS and the BCS is not completed in the timing operation, repeating the alignment operation in the next timing operation until the BSS and the BCS are aligned between all E1 channels;
s315, on the premise that BSS and BCS are aligned, performing CRC check on the user data in the E1 channel of the 1 st path, and if the check is passed, directly writing the data into a data receiving buffer area of the E1 channel of the 1 st path of the application layer; if the CRC does not pass, reading user data which is at the same position and size as the current data from the 2 nd path E1 channel to the N +1 th path E1 channel, carrying out XOR operation on the data of each channel, and writing the operated data into a data receiving buffer corresponding to the 1 st path E1 channel of the application layer;
s316, sequentially carrying out the same operation on the user data in the E1 channels from the 2 nd path to the Nth path until the user data in all the E1 channels are processed;
repeating the process of the steps S315 to S316T/P times;
s32, the service layer of the receiving side merges and recovers the data from the data receiving buffer zone corresponding to each E1 channel, and performs corresponding service processing to the recovered original user data.
In a third aspect, an embodiment of the present invention provides a network device, where the network device includes:
a memory to store instructions;
and the processor is used for calling the instruction in the memory so as to carry out the operation of the data receiving method.
In a fourth aspect, an embodiment of the present invention provides a data transmission method for implementing data reliability based on an N + 1-path E1 channel, where a network architecture includes a sending-side user service layer, a sending-side data adaptation layer, a sending-side physical transmission layer, a receiving-side user service layer, a receiving-side data adaptation layer, and a receiving-side physical transmission layer, and the data transmission method includes:
s200, a user service layer at a sending side uniformly splits user data into N parts, wherein each part corresponds to 1 path of E1 channel data to be sent;
s210, the data adaptation layer at the sending side splits the data to be sent into basic data processing units by taking a certain number of bytes as a unit, and marks and aligns the basic data processing units;
s220, the data adaptation layer at the sending side performs exclusive OR operation on the basic data processing units with the same marks, marks the operation result and stores the operation result into a buffer area for the check data to be sent;
s230, the sending side data adaptation layer sends data to be sent to a sending buffer area of a sending side transmission layer by adopting a timing processing mechanism, wherein the timing interval is 125us (b/30) T, T is more than or equal to 1 and is an integer, and b is the number of bytes of a basic data unit;
and S240, the physical transmission layer of the transmitting side processes the data in the transmission buffer and sequentially transmits the data corresponding to each E1 channel in the transmission buffer through an E1 interface.
S250, the physical transmission layer of the receiving side receives data from each path of E1 channel, and stores each path of E1 data to a corresponding position in a receiving buffer according to an E1 frame structure;
s260, the receiving side data adaptation layer reads data from a buffer area of a receiving side physical transmission layer by adopting a timing processing mechanism, and the timing interval is 125us (b/30) T, wherein T is more than or equal to 1, T is an integer, and b is the number of bytes of a basic data unit;
s270, the receiving side user service layer combines and recovers the data from the data receiving buffer zone corresponding to each E1 channel, and performs corresponding service processing on the recovered original user data.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program being configured to: the data transmission method of steps S200-S270 is performed.
Advantageous effects
The invention provides a data receiving method, a data sending method, a data transmission method and network equipment for realizing data reliability based on an N +1 path E1 channel, and compared with the prior art, the invention has the following advantages:
1. when 1 channel of N channels E1 for transmitting user data has error code in transmission, the error code can be corrected at the receiving end to realize correct transmission of data.
2. When 1 channel of N channels of E1 for transmitting user data is disconnected, the data on the E1 channel can still be recovered through the operation processing at the receiving end, and the correct transmission of the data is realized.
3. When 2 or more channels of the N channels E1 transmitting the user data have errors during transmission, correct transmission of all data can still be achieved as long as the errors occurring on the channels are not in the CRC check data unit (number of bytes of the basic data unit × P) located at the same position in the technical scheme.
4. Compared with the existing channel dual-backup scheme, the technical scheme can obtain basically the same transmission reliability effect with greatly reduced cost, and has higher cost performance in practical application.
Drawings
Fig. 1 is a flowchart of a data transmission method for achieving data reliability based on N +1 paths of E1 channels according to an embodiment of the present invention;
fig. 2 is a block diagram of a network device that employs a data transmission method based on N + 1E 1 channels to achieve data reliability according to an embodiment of the present invention;
fig. 3 is a flowchart of a data receiving method for achieving data reliability based on N +1 paths of E1 channels according to an embodiment of the present invention;
fig. 4 is a block diagram of a network device that employs a data receiving method for achieving data reliability based on N +1 paths of E1 channels according to an embodiment of the present invention;
fig. 5 is a flowchart of a data transmission method for achieving data reliability based on N +1 paths of E1 channels according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a processing flow of a user service layer data at a sending side according to an embodiment of the present invention;
FIG. 7 is a block diagram of a system BCS counter according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a data transmission processing flow of a data adaptation layer at a transmitting side according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a process flow of sending data of a physical transport layer on a sending side according to an embodiment of the present invention;
fig. 10 is a schematic diagram illustrating a process flow of receiving data of a physical transport layer at a receiving side according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a data receiving process flow of a data adaptation layer at a receiving side according to an embodiment of the present invention;
fig. 12 is a state machine of the receiving side data adaptation layer one-way E1 channel data receiving processing flow according to the embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the related art, an E1 frame structure;
e1 has framing, i.e. multi-frame and non-framing, in the framed E1, it is divided into two formats of PCM30 and PCM31, the 0 th time slot of the PCM31 format is used for transmitting frame synchronization data, the other 31 time slots can be used for transmitting valid data, the 0 th time slot of the PCM30 format is used for transmitting frame synchronization data, the 16 th time slot is used for transmitting signaling, and the other 30 time slots can be used for transmitting valid data; in multiframe E1, dividing into non-signaling multiframe (PCM31C) and signaling multiframe (PCM30C), wherein the 0 th time slot of the non-signaling multiframe is used for transmitting sub-frame and multiframe synchronization data, and the other 31 time slots can be used for transmitting valid data; the signaling multiframe is except for the 0 th time slot, the 16 th time slot is used for transmitting signaling, and only 30 time slots from 1 st to 15 th and from 17 th to 31 th can be used for transmitting valid data; whereas in unframed E1, all 32 slots are available for transmitting valid data.
Brief description of frame structure of E1 channel
In the E1 channel, 8 bits constitute one Time Slot (TS), 32 time slots constitute one frame (F), which is divided into odd and even frames, and 16 frames constitute one Multiframe (MF). In a multiframe, TS0 is mainly used to transmit Frame Alignment Signal (FAS), CRC-4 (cyclic redundancy check) and opposite-end alarm indication, and the rest time slots transmit information such as voice or data, when the frame structure is signaling multiframe, TS16 is used to transmit Channel Associated Signaling (CAS), multiframe alignment signal and multiframe opposite-end alarm indication, and TS1 to TS15 and TS17 to TS31 transmit information such as voice or data in 30 time slots.
The invention will be further described with reference to the following description and specific examples, taken in conjunction with the accompanying drawings:
fig. 1 is a flowchart illustrating a data transmission method for achieving data reliability based on an N +1 path E1 channel according to an embodiment of the present invention; as shown in fig. 1, an embodiment of the present invention provides a data transmission method for realizing data reliability based on an N +1 path E1 channel, where a network architecture includes a sending-side user service layer, a sending-side data adaptation layer, and a sending-side physical transmission layer, where the sending-side user service layer is used to generate user data, the sending-side data adaptation layer performs necessary adaptation and processing on the user data, and the sending-side physical transmission layer obtains data from the data adaptation layer and performs data transmission through an (N +1) path E1 physical channel; the sending method specifically comprises the following steps:
s20, a user service layer at a sending side uniformly splits user data into N parts, and each part corresponds to data to be sent of 1 path of E1 channel;
s21, the data adaptation layer at the sending side splits the data to be sent into basic data processing units by taking a certain number of bytes as a unit, and marks and aligns the basic data processing units; wherein, the number of bytes should be an integral multiple of 30, for example 240 bytes;
specifically, for example: the 1 st primitive of the 1 st E1 channel data to be sent is labeled 1_1, the 2 nd primitive is labeled 1_2, and the Mth primitive is labeled 1_ M; the 1 st primitive for the nth channel E1 channel data to be sent is labeled N _1, the 2 nd primitive is labeled N _2, and the mth primitive is labeled N _ M.
S22, the data adaptation layer at the sending side performs XOR operation on the basic data processing units with the same marks, and stores the operation result into a buffer area to be sent of the check data after marking the operation result;
specifically, for example, the 1 st basic data processing unit in the buffer to which check data is to be sent is marked as C _1, then C _1 is 1_1XOR 2_1XOR.
S23, the sending side data adaptation layer sends user data and check data to be sent to a sending buffer of a sending side transmission layer by adopting a timing processing mechanism, wherein the timing interval is 125us (b/30) T, T is more than or equal to 1 and is an integer, and b is the number of bytes of a basic data unit;
and S24, the physical transmission layer of the transmitting side processes the data in the transmission buffer and sequentially transmits the data corresponding to each E1 channel in the transmission buffer through an E1 interface.
Specifically, the data adaptation layer at the transmitting side performs necessary adaptation and processing on the service data, including the following operations at the transmitting side within each timing interval:
s1, reading 1 part of data from the data to be sent of the 1 st path E1 channel, storing the data into the positions corresponding to the TS1-TS15 and TS17-TS31 of the 1 st path E1 channel in a sending buffer area of an E1 physical transmission layer in sequence, and simultaneously carrying out CRC check operation on the part of data; each E1 frame can be written with 30 bytes, so 1 copy of data will be filled into (b/30) P E1 frames; meanwhile, CRC operation is carried out on the data, and proper operation polynomial can be selected according to the CRC operation;
s2, sending buffer 1 channel E1 (b/30) to E1 physical transport layer P TS0 time slots (using Sa4-Sa8 bit) of E1 frames or TS16 time slots are filled with data synchronization positioning signal BSS, current user data position mark BCS and CRC check value in turn, where P is an integer and can be divided by T. Wherein, the BSS can be self-defined (for example, defining the BSS as 0xD 6); the BCS adopts a count value of a monotone increasing cycle counter, if the data reliability needs to be further enhanced, the value can be written as the BCS after being checked; the CRC value is the result of the CRC operation on the data in the previous step;
s3, repeating the steps S1-S2 for 1 piece of data to be sent in the buffer area to be sent of the data to be sent and the check data corresponding to the E1 channels from the 2 nd to the Nth channels in sequence;
s4, reading 1 part of data from the data to be sent of the (N +1) th E1 channel, storing the data in the positions corresponding to the (N +1) th E1 channels TS1-TS15 and TS17-TS31 in the E1 physical transmission layer sending buffer area in sequence, and sequentially filling a data synchronization positioning signal BSS and a current user data position mark BCS into TS0 time slots or TS16 time slots of the (b/30) P E1 frames of the (N +1) th E1 channel of the physical transmission layer sending buffer area;
and S5, repeating the steps for T/P times to finish the processing of T/P data of each channel.
The data adaptation layer of the sending side completes the processing preparation work of the data to be sent of all E1 channels in a timed interrupt, and the physical transmission layer of the sending side sends the processed data through each channel of E1 channels.
Specifically, the data to be transmitted is transmitted from the channel from the 1 st path to the N-th path E1, and the check data is transmitted from the N +1 st path E1.
Specifically, the BCS uses a count value of a monotonically increasing cycle counter, and the count value is written as the BCS after being subjected to a check operation.
As shown in fig. 2, an embodiment of the present invention provides a network device, including:
a memory to store instructions;
and the processor is used for calling the instruction in the memory so as to carry out the operation of the method.
As shown in fig. 2, the network device includes a Central Processing Unit (CPU)201 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)202 or a program loaded from a storage section 208 into a Random Access Memory (RAM) 203. In the RAM 203, various programs and data necessary for the operation of the system 200 are also stored. The CPU 201, ROM 202, and RAM 203 are connected to each other via a bus 204. An input/output (I/O) interface 205 is also connected to bus 204.
The following components are connected to the I/O interface 205: an input portion 206 including a keyboard, a mouse, and the like; an output section 207 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 208 including a hard disk and the like; and a communication section 209 including a network interface card such as a LAN card, a modem, or the like. The communication section 209 performs communication processing via a network such as the internet. A drive 210 is also connected to the I/O interface 205 as needed. A removable medium 211 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 210 as necessary, so that a computer program read out therefrom is mounted into the storage section 208 as necessary.
As shown in fig. 3, an embodiment of the present invention provides a data receiving method for implementing a data sending method based on an N +1 channel E1 channel, where a network architecture includes a receiving-side user service layer, a receiving-side data adaptation layer, and a receiving-side physical transmission layer, where the receiving-side user service layer is used to generate service data that needs to be transmitted by a user, the receiving-side data adaptation layer performs necessary adaptation and processing on the service data, and the receiving-side physical transmission layer acquires data from the data adaptation layer and performs data transmission through an N +1 channel E1 physical channel, and the data receiving method includes the following steps:
s30, the physical transmission layer at the receiving side receives data from each path of E1 channel, and stores each path of E1 data to a corresponding position in a receiving buffer according to an E1 frame structure;
s31, the data adaptation layer of the receiving side reads data from the buffer of the physical transmission layer of the receiving side by adopting a timing processing mechanism, and the timing interval is 125us (b/30) T, wherein T is more than or equal to 1 and is an integer, and b is the byte number of the basic data unit;
s32, the service layer of the receiving side merges and recovers the data from the data receiving buffer zone corresponding to each E1 channel, and performs corresponding service processing to the recovered original user data.
Specifically, the receiving-side data adaptation layer performs the following operations in each timing interval:
s311, reading (b/30) T frame E1 data from the corresponding positions of E1 channels from the 1 st path to the N +1 th path of the receiving side physical transmission layer in sequence and buffering;
s312, searching a data synchronization positioning signal BSS in the time slot of each path of E1 channel data, and carrying out first alignment on each path of E1 data by taking the BSS as a reference;
s313, analyzing data unit position marks BCS in each path of E1 data on the premise of BSS alignment, and performing secondary alignment on each path of E1 data by taking BCS as a reference;
s314, if the alignment of the BSS and the BCS is not completed in the timing operation, repeating the alignment operation in the next timing operation until the BSS and the BCS are aligned between all E1 channels;
s315, on the premise that BSS and BCS are aligned, performing CRC check on the user data in the 1 st path E1 channel, and if the check is passed, directly writing the data into a data receiving buffer corresponding to the 1 st path E1 channel of the application layer; if the CRC does not pass, reading user data which is at the same position and size as the current data from the 2 nd path E1 channel to the N +1 th path E1 channel, carrying out XOR operation on the data of each channel, and writing the operated data into a data receiving buffer corresponding to the 1 st path E1 channel of the application layer;
s316, sequentially carrying out the same operation on the user data in the E1 channels from the 2 nd path to the Nth path until the user data in all the E1 channels are processed;
the process of steps S315-S316 is repeated T/P times.
As shown in fig. 4, an embodiment of the present invention provides a network device, a memory for storing instructions;
a processor for calling instructions in the memory to perform the operations of the methods of steps S30-S32.
Specifically, a Central Processing Unit (CPU)401 is included, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the system 400 are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output section 407 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 408 including a hard disk and the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. A driver 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 410 as necessary, so that a computer program read out therefrom is mounted into the storage section 408 as necessary.
As shown in fig. 5, an embodiment of the present invention provides a data transmission method for implementing data reliability based on an N + 1-path E1 channel, where a network architecture includes a sending-side user service layer, a sending-side data adaptation layer, a sending-side physical transmission layer, a receiving-side user service layer, a receiving-side data adaptation layer, and a receiving-side physical transmission layer, and the data transmission method includes:
s200, a user service layer at a sending side uniformly splits user data into N parts, wherein each part corresponds to 1 path of E1 channel data to be sent;
s210, the data adaptation layer at the sending side splits the data to be sent into basic data processing units by taking a certain number of bytes as a unit, and marks and aligns the basic data processing units;
s220, the data adaptation layer at the sending side performs XOR operation on the basic data processing units with the same marks, marks the operation result and stores the operation result into a buffer area for the check data to be sent;
s230, the sending side data adaptation layer sends data to be sent to a sending buffer area of a sending side transmission layer by adopting a timing processing mechanism, wherein the timing interval is 125us (b/30) T, T is more than or equal to 1 and is an integer, and b is the number of bytes of a basic data unit;
and S240, the physical transmission layer of the transmitting side processes the data in the transmission buffer and sequentially transmits the data corresponding to each E1 channel in the transmission buffer through an E1 interface.
S250, the physical transmission layer of the receiving side receives data from each path of E1 channel, and stores each path of E1 data to a corresponding position in a receiving buffer according to an E1 frame structure;
s260, the receiving side data adaptation layer reads data from a buffer area of a receiving side physical transmission layer by adopting a timing processing mechanism, and the timing interval is 125us (b/30) T, wherein T is more than or equal to 1, T is an integer, and b is the number of bytes of a basic data unit;
s270, the receiving side user service layer combines and recovers the data from the data receiving buffer zone corresponding to each E1 channel, and performs corresponding service processing on the recovered original user data.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is configured to: the data transmission method of steps S200-S270 is performed.
The advantageous effects of the invention are illustrated below in a preferred embodiment:
the present embodiment will implement the method and functions proposed by the present invention based on the PCM31C multiframe structure of E1.
The E1 PCM31C multiframe includes 2 sub-multiframes, each sub-multiframe includes 8E 1 basic frames, where TS0 is used to carry information related to the structure of the E1 frame, and TS1-TS31 are used to carry user data. In this embodiment, TS1-TS15 and TS17-TS31 in an E1 multiframe are used to transmit user service data, and TS16 is used to transmit key information defined in the technical solution of the present invention, such as BCS, BSS, CRC, and the like. The padding positions of the BCS/BSS/CRC information in the E1 multiframe TS16 are as follows:
Figure GDA0003263505050000141
1. the transmission and processing of a user basic data processing unit are carried out by taking an E1 sub-multiframe as a unit, namely, the user basic data processing unit is defined as 240 bytes, and the transmission is carried out on TS1-TS15 and TS17-TS31 of an E1 sub-multiframe;
2. BSS is defined as 8-bit data, the value is fixed as 0xD6, and the 1 st frame of the sub-multiframe is used for transmission;
3. BCS is defined as 14-bit data, and the 2 nd frame and the 3 rd frame of the sub-multiframe are used for transmission;
4. performing CRC-5 check on 240 bytes of user data carried in one sub-multiframe, wherein a CRC check generating polynomial is as follows: and G (X) ═ X □ + X +1, and the verification result is transmitted by using the 6 th frame of the sub-multiframe.
The concrete implementation is as follows:
defining:
the user equipment uses E1 channel number N +1(N >1), respectively identified as CH _1 to CH _ N and CH _ C, and the user service available data transmission bandwidth N × 1920 kps.
1. Data buffer definition:
(1) buffer _ user _ tx _ [0. (N-1) ]: the user service data sending buffer area is used for storing data to be sent of a user service layer, N user service data sending buffer areas are used, the N user service data sending buffer areas correspond to CH _1 to CH _ N of an E1 channel respectively, the size of each buffer area is 48000 bytes (100ms data x 2), a reading pointer points to the initial position of the buffer area during initialization, and a writing pointer points to the middle position of the buffer area;
(2) buffer _ check _ tx: the check data sending buffer area is used for storing check data generated after the data in each service sending buffer area are checked and corresponds to an E1 channel CH _ C; the size of the buffer area is 48000 bytes, a read pointer points to the initial position of the buffer area during initialization, and a write pointer points to the middle position of the buffer area;
(3) buffer _ TS16_ tx _ [0.. N ]: the TS16 data sending buffer area is used for storing data to be sent of E1 channels TS16, the number of the data sending buffer area is N +1, the data sending buffer area corresponds to CH _1 to CH _ N and CH _ C of the E1 channels respectively, the size of each buffer area is 320 bytes (20ms TS16 data x 2), the size of each buffer area is 0x0 during initialization, a read pointer points to the initial position of the buffer area, and a write pointer points to the middle position of the buffer area;
(4) buffer _ xor _ tx: the XOR operation buffer area is used for temporarily storing the XOR operation result between each path of user buffer area data, the size of the buffer area is 240 bytes, and the XOR operation buffer area is 0x0 when the XOR operation buffer area is initialized;
(5) buffer _ user _ rx _ [0. (N-1) ]: the user service data receiving buffer area is used for storing data to be processed by a user service layer, the number of the user service data receiving buffer area is N, the N user service data receiving buffer areas correspond to CH _1 to CH _ N of an E1 channel respectively, the size of each buffer area is 48000 bytes, a reading pointer points to the initial position of the buffer area during initialization, and a writing pointer points to the middle position of the buffer area;
(6) buffer _ E1_ rx _ [0.. N ]: an E1 channel data receiving buffer area for storing data received from each E1 transmission line, wherein the number of the E1 transmission lines is N +1, and the E1 channel data receiving buffer area corresponds to CH _1 to CH _ N and CH _ C of an E1 channel respectively; the Buffer size is set according to the maximum delay between channels in the E1 transport network, for example, assuming that the maximum delay between E1 channels in the transport network is 0.5s, the Buffer size is (500/0.125) × 32 is 128 kbytes. At initialization, the read pointer points to the buffer start position, and the write pointer points to the buffer start position +5120 (20ms E1 data);
2. register definition:
(1) reg _ BCS: BCS register for storing user data position mark value, which is 1 14-bit circular increment counter with initial value of 0x 0;
(2) reg _ BCS _ lock: the BCS latch register is used for locking the current value of the BCS in the data processing process of 1 interrupt cycle;
(3) reg _ tx _ temp: a sending data temporary register for temporarily storing 1 byte of user data to be sent;
(4) reg _ CRC _ tx: a transmission data CRC check operation register for performing CRC check operation on transmission data and storing a check result, which is 1 16-bit register and has an initial value of 0x 0;
(5) flag _ BSS: e1 receives the BSS synchronization status flag, when N or N +1 channels in all E1 channels have achieved BSS synchronization, the position is 1, otherwise, 0 is set, the initial value is 0x 0;
(6) flag _ BCS: e1 receives data BCS synchronization status flag, when all BSS synchronization E1 channels realize BCS synchronization, the position is 1, otherwise, 0 is set, and the initial value is 0x 0;
(7) flag _ State: receiving a current state indication mark of the processing flow, wherein 0 represents that the receiving processing flow is currently in a BSS/BCS synchronous processing state, 1 represents that the receiving processing flow is currently in a user data processing state, and the initial value is 0x 0;
(8) reg _ Flag _ temp: BSS/BCS synchronous mark temporary register, which is used to store the intermediate result of the judging process of the synchronous mark, is 1 16-bit register with the initial value of 0x 0;
(9) reg _ BCS _ Ref: the BCS synchronous reference register is used for storing a BCS synchronous reference and is 1 16-bit register, and the initial value is 0 xFFFF;
(10) reg _ BSS _ Sync: e1 receives data BSS synchronization indication register, bit0-bitN correspond to BSS synchronization status of data received from E1 channels CH _1 to CH _ N and CH _ C, respectively: 1 represents BSS synchronization, 0 represents BSS non-synchronization, and is 1 16-bit register with an initial value of 0x 0;
(11) reg _ BCS _ Sync: e1 receives data BCS synchronization indication register, bit0-bitN correspond to BCS synchronization status of data received from E1 channels CH _1 to CH _ N and CH _ C, respectively: 1 represents BCS synchronization, 0 represents BCS non-synchronization, and is 1 16-bit register with an initial value of 0x 0;
(12) reg _ BSS _ Err _ cnt [0.. N ]: e1 channel BSS synchronous dislocation counter, total N +1, correspond to CH _1 to CH _ N and CH _ C of E1 channel respectively, it is 1 16 bit register, the initial value is 0x 0;
(13) pt _ E1_ rx _ [0.. N ]: the E1 channel receives buffer read pointers, which are N +1 in number, corresponding to CH _1 through CH _ N and CH _ C of the E1 channel, respectively.
Detailed description:
the system adopts a timing interrupt processing mechanism, all processing modules are called and processed by timing interrupt, and the timing interrupt intervals of all the modules are different. The processing flow of each module is described as follows:
user service layer data processing
The sending side user service layer adopts 100ms timed interrupt to process the user data, and the interrupt processing flow at each time is shown in fig. 6:
601: the system generates 100ms timed interrupt and triggers an interrupt processing flow;
602: a user service layer at a sending side sequentially writes data to be sent into Buffer _ user _ tx _ [0. (N-1) ], wherein each Buffer is written into 24000 bytes, and 24000 × N bytes are total;
603: the receiving side user service layer reads data from Buffer _ user _ rx _ [0. (N-1) ] in turn, and reads 24000 bytes from each Buffer, wherein the total number of 24000 bytes is N bytes, and the data are original user data sent from the sending side user service layer and can be sent to a corresponding user service processing module for service processing;
604: and when the processing is finished, exiting the interrupt processing flow and waiting for the next interrupt.
System BCS counter
The system sets a BCS counter for marking each basic data processing unit, the counter is 1 14-bit cyclic counter, and 1 is added every 20ms, and the specific implementation is as shown in fig. 7.
Data adaptation layer data transmission processing
The sending side data adaptation layer adopts 20ms timer interrupt for sending data, and the flow of each interrupt processing is shown in fig. 8:
801: the system generates 20ms timing interrupt and triggers an interrupt processing flow;
802: locking a BCS value during the interrupt processing, and initializing an internal cycle counter of the interrupt processing;
803: reading 1 byte from the 1 st user data sending buffer area and storing the byte into a temporary register;
804: carrying out XOR operation on the byte and the 1 st byte in the XOR operation buffer area and then writing back the byte to the XOR operation buffer area;
805: putting the byte into a CRC check register to perform CRC operation;
806: repeating the processing process 303-305 to complete the XOR operation and CRC check operation on the 1 st basic data processing unit data in the 1 st user data sending buffer;
807: respectively writing BSS, a current BCS value and a CRC check value after CRC check on a current user data processing unit in positions corresponding to 1 st, 2 nd, 3 th and 6 th frames of a 1 st E1 subframe TS16 in a TS16 data sending buffer of a 1 st path E1 channel;
through the above operations, the preparation work of sending all data of TS1-TS16 in the 1 st subframe to be sent of the 1 st channel E1 channel is completed (wherein, the data of TS0 is filled by the physical transport layer during transmission);
808: repeating 306-307 processing procedures to complete the preparation for sending all data of TS1-TS16 in the 1 st subframe to be sent of all N E1 channels;
809-810: completing the preparation work of sending all data of TS1-TS16 in the 1 st to-be-sent subframe of the (N +1) th E1 channel (data check channel), and performing zero clearing treatment on the XOR operation buffer area;
811: repeating the 808-810 processing procedure to complete the data preparation work of 20 subframes to be sent for all (N +1) E1 channels;
812: and when the processing is finished, exiting the interrupt processing flow and waiting for the next interrupt.
Transmitting side physical transport layer data transmission processing
The sending side physical transport layer adopts 125us timer interrupt to send data, and the flow of interrupt processing each time is shown in fig. 9:
901: the system generates 125us timing interrupt and triggers an interrupt processing flow;
902: reading 1 frame E1 data from a TS16 data transmission buffer and a user service data transmission buffer corresponding to each path of user data E1 channel (1-N paths of E1 channels) and writing the data into an E1 framer;
903: reading 1 frame E1 data from a TS16 data transmission buffer and a check data transmission buffer corresponding to a check data E1 channel (an N +1 th E1 channel) and writing the data into an E1 framer;
904: the E1 framer fills E1 multiframe corresponding information in each path of E1 channel TS0, and data in a TS1-TS31 register form 1 frame E1 data which is sent from each E1 physical channel;
905: and when the processing is finished, exiting the interrupt processing flow and waiting for the next interrupt.
Receiving side physical transmission layer data receiving process
The physical transport layer on the receiving side adopts 125us timer interrupt to receive data, and the flow of interrupt processing each time is shown in fig. 10:
1001: the system generates 125us timing interrupt and triggers an interrupt processing flow;
1002: the E1 deframer reads 1 frame data (32 bytes) from each path of E1 channel, and writes the data into an E1 channel data receiving buffer corresponding to each channel in sequence of TS0-TS 31;
1003: and when the processing is finished, exiting the interrupt processing flow and waiting for the next interrupt.
Data adaptation layer data receiving processing at receiving side
The receiving-side data adaptation layer adopts 20ms timer interrupt for data transmission processing, and the flow of each interrupt processing is shown in fig. 11:
1101: the system generates a 20ms timed interrupt, triggering an interrupt processing flow.
1102: the interrupt handling internal loop counter is initialized.
1103: acquiring the BSS and BCS synchronization states of all current E1 channels of the system: when N or N +1 channels in the N +1 channels complete BSS synchronization, the system is considered to have achieved BSS synchronization, a BCS synchronization process can be entered, and Flag _ BSS is set to be 1; when the N or the N +1 channels in the N +1 channels complete BCS synchronization, the system is considered to realize BCS synchronization, a user data receiving processing flow can be entered, and Flag _ BCS is set to 1.
1104: and starting a data processing flow of the 1 st E1 channel, and performing BSS/BCS synchronization processing (Flag _ State is 0) or processing data of one frame E1 sub-multiframe (Flag _ State is 1).
1105: the 1103-.
1106: and processing a BCS synchronous reference register Reg _ BCS _ Ref, and if the system is currently in a user data processing flow, adding 1 to the Reg _ BCS _ Ref to keep consistent with a BCS value corresponding to the next group of to-be-processed E1 sub-multiframes.
1107: the process is repeated 1105 and 1106 to complete the reception process for all the E1 channels 20ms data.
1108: judging the current state of the receiving processing flow: if the current state is in the user data processing state and the BSS is out of step, representing that the system needs to carry out BSS and BCS synchronization again, the step is switched to 1109 to carry out reset and initialization processing on the receiving module, and the step is switched to 1110 if the current state is not in the user data processing state and the BSS is out of step.
1109: and resetting the initialization receiving processing module, resetting all receiving buffer areas and registers in the receiving module, restoring to an initial state, and exiting the interrupt processing flow.
1110: and when the processing is finished, exiting the interrupt processing flow and waiting for the next interrupt.
Fig. 12 shows a state machine of the 1104 data adaptation layer to the one-way E1 channel data receiving process flow in the above flow:
1201-Idel: the Idel state is an entrance of the processing flow, the state is entered when the processing flow is called each time, then the state is migrated to the next state according to each state flag value, and any other state returns to the Idel state after the processing is finished.
1202-channel BSS synchronization: judging the value of k of the large loop counter of the interrupt processing of the current 20ms, if k is greater than 0, writing 240 bytes of 0x0 into the user service data receiving Buffer _ user _ rx _ [ i ] (if the current channel is the data check channel CH _ C, the operation is not performed), ending the processing, and turning to 1201 from the next state. And if k is 0, performing BSS synchronization on the data of the current channel, and searching a BSS mark by adopting a sliding window at the position of TS16 data in a Buffer _ E1_ rx [ i ] corresponding to the current channel, wherein the sliding window is 1E 1 frame interval (32 bytes) and searches 160 times at most (160 frames of E1 data received by 20ms on an E1 channel). When 3 BSSs with 256 bytes are searched continuously, the BSSs are considered to be synchronized, the search is stopped, bit i in Reg _ BSS _ Sync is set to 1, and the address information of the 1 st BSS mark byte in the buffer area is written into a read pointer Pt _ E1_ rx _ R _ [ i ] of an E1 buffer area corresponding to the channel; if the current channel BSS synchronization can not be achieved after 160 times of searching, the searching is stopped. After the search is completed, if the current E1 channel is not the data check channel CH _ C, writing 240 bytes of 0x0 into the user service data receiving Buffer _ user _ rx _ [ i ], and reading a pointer Pt _ E1_ rx _ R _ [ i ] + 256; otherwise, the read pointer Pt _ E1_ rx _ R _ [ i ] +256 is directly pointed to the position of the next E1 sub-multiframe. The process ends, and the next state transitions to 1201.
1203-synchronization status monitoring: and performing BSS synchronization detection on the E1 subframe at the position pointed by the current channel data receiving buffer read pointer Pt _ E1_ rx _ R _ [ i ], if the detection is passed, clearing Reg _ BSS _ Err _ cnt [ i ], otherwise, resetting Reg _ BSS _ Err _ cnt [ i ] + 1. If Reg _ BSS _ Err _ cnt [ i ] is larger than 3, representing that the E1 channel BSS is out of synchronization, at this time, bit i in Reg _ BSS _ Sync and Reg _ BCS _ Sync is set to 0. After BSS synchronous detection is finished, if the current E1 channel is not the data check channel CH _ C, then writing 240 bytes of 0x0 into the user service data receiving Buffer _ user _ rx _ [ i ], and reading a pointer Pt _ E1_ rx _ R _ [ i ] + 256; otherwise, the read pointer Pt _ E1_ rx _ R _ [ i ] +256 is directly pointed to the position of the next E1 sub-multiframe. After this processing is finished, the next state is transferred to 701.
1204-channel BCS synchronization: reading the value of a BCS synchronous reference register Reg _ BCS _ Ref, if Reg _ BCS _ Ref is equal to 0xFFFF, respectively extracting BCS values from the positions pointed by channel data receiving buffer reading pointers Pt _ E1_ rx _ R _ [ i ] of each channel of E1, comparing the BCS values, taking the maximum value to write into Reg _ BCS _ Ref, and finishing the initialization of the BCS synchronous reference; if Reg _ BCS _ Ref < >0xFFFF, reading BCS value from the position corresponding to the current channel buffer Pt _ E1_ rx _ R _ [ i ] and comparing the value with the value of Reg _ BCS _ Ref, if not equal, increasing the pointer Pt _ E1_ rx _ R _ [ i ] by 256 for continuous comparison, until the two are equal, setting bit i in Reg _ BCS _ Sync to 1, completing BCS synchronization of the current channel, and if the read pointer compared to the data receiving buffer has traced the write pointer and still fails BCS synchronization, indicating that the data in the buffer has read empty, and stopping BCS synchronization search. After the search is completed, if the current E1 channel is not the data check channel CH _ C, 240 bytes of 0x0 are written to the user traffic data reception Buffer _ user _ rx _ [ i ]. After this processing is finished, the next state is transferred to 701.
1205-user data check: flag _ State is set to 1. And performing BSS synchronization detection on the E1 subframe at the position pointed by the current channel data receiving buffer read pointer Pt _ E1_ rx _ R _ [ i ], if the detection is passed, clearing Reg _ BSS _ Err _ cnt [ i ], otherwise, resetting Reg _ BSS _ Err _ cnt [ i ] + 1. If Reg _ BSS _ Err _ cnt [ i ] is larger than 3, representing that the E1 channel BSS is out of synchronization, at this time, bit i in Reg _ BSS _ Sync and Reg _ BCS _ Sync is set to 0. After BSS synchronous detection is finished, TS1-TS15 and TS17-TS31 data of an E1 sub-multiframe are read from the position pointed by a current channel data receiving buffer reading pointer Pt _ E1_ rx _ R _ [ i ] for CRC check: if the CRC check fails, go to 1206; if the CRC check passes, proceed to 1207.
1206-user data recovery: the 240 bytes of user data in one E1 subframe are read from the positions pointed by the E1 channel data receiving buffer read pointers except the channel of the N + 1E 1 channel, XOR operation is carried out on the read data, the operated data is written into the position pointed by the current channel data receiving buffer read pointer Pt _ E1_ rx _ R _ [ i ], and the process is switched to 1207.
1207-user data movement: if the current E1 channel is not the data check channel CH _ C, then the 240 bytes of user data contained in the E1 sub-multiframe are read from the current channel data receiving Buffer Pt _ E1_ rx _ R _ [ i ], and the read pointer Pt _ E1_ rx _ R _ [ i ] +256 points to the position of the next E1 sub-multiframe; otherwise, the read pointer Pt _ E1_ rx _ R _ [ i ] +256 is directly pointed to the position of the next E1 sub-multiframe. The process ends, and the next state transitions to 1201.
Compared with the prior art, the embodiment provides a data transmission method and network equipment for realizing data reliability based on an N +1 path of E1 channel, and the method and the network equipment have the following advantages:
1. when 1 channel of N channels E1 for transmitting user data has error code in transmission, the error code can be corrected at the receiving end to realize correct transmission of data.
2. When 1 channel of N channels of E1 for transmitting user data is disconnected, the data on the E1 channel can still be recovered through the operation processing at the receiving end, and the correct transmission of the data is realized.
3. When 2 or more channels of the N channels E1 transmitting the user data have errors during transmission, correct transmission of all data can still be achieved as long as the errors occurring on the channels are not in the CRC check data unit (number of bytes of the basic data unit × P) located at the same position in the technical scheme.
4. Compared with the existing channel dual-backup scheme, the technical scheme can obtain basically the same transmission reliability effect with greatly reduced cost, and has higher cost performance in practical application.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A data transmission method based on N + 1E 1 channel for realizing data reliability is characterized in that a network architecture comprises a sending side user service layer, a sending side data adaptation layer and a sending side physical transmission layer, wherein the sending side user service layer is used for generating user data, the sending side data adaptation layer carries out necessary adaptation and processing on the user data, and the sending side physical transmission layer acquires data from the data adaptation layer and carries out data transmission through an (N +1) E1 physical channel;
the sending method specifically comprises the following steps:
s20, a user service layer at a sending side uniformly splits user data into N parts, and each part corresponds to data to be sent of 1 path of E1 channel;
s21, the data adaptation layer at the sending side splits the data to be sent into basic data processing units by taking a certain number of bytes as a unit, and marks and aligns the basic data processing units;
the transmitting side data adaptation layer performs operations from S1 to S5 for each timing interval:
s1, reading 1 part of data from the data to be sent of the 1 st path E1 channel, storing the data into the positions corresponding to the TS1-TS15 and TS17-TS31 of the 1 st path E1 channel in a sending buffer area of an E1 physical transmission layer in sequence, and simultaneously carrying out CRC check operation on the part of data;
s2, sending buffer 1 channel E1 (b/30) to E1 physical transmission layer P TS0 time slot or TS16 time slot of E1 frame, filling data synchronization positioning signal BSS, current user data position mark BCS and CRC check value in turn, wherein P is integer and can be divided by T; the BCS adopts a count value of a monotone increasing cycle counter, and the count value is written as the BCS after being checked;
s3, repeating the steps S1-S2 for 1 piece of data to be sent in the buffer area to be sent of the data to be sent and the check data corresponding to the E1 channels from the 2 nd to the Nth channels in sequence;
s4, reading 1 part of data from the data to be sent of the (N +1) th E1 channel, storing the data in the positions corresponding to the (N +1) th E1 channels TS1-TS15 and TS17-TS31 in the E1 physical transmission layer sending buffer area in sequence, and sequentially filling a data synchronization positioning signal BSS and a current user data position mark BCS into TS0 time slots or TS16 time slots of the (b/30) P E1 frames of the (N +1) th E1 channel of the physical transmission layer sending buffer area;
s5, repeating the steps for T/P times to complete the processing of T/P data of each channel;
s22, the data adaptation layer at the sending side performs exclusive OR operation on the basic data processing units with the same marks, marks the operation result and stores the operation result into a buffer area to be sent of the check data;
s23, the sending side data adaptation layer sends user data and check data to be sent to a sending buffer of a sending side transmission layer by adopting a timing processing mechanism, wherein the timing interval is 125us (b/30) T, T is more than or equal to 1 and is an integer, and b is the number of bytes of a basic data unit;
and S24, the physical transmission layer of the transmitting side processes the data in the transmission buffer and sequentially transmits the data corresponding to each E1 channel in the transmission buffer through an E1 interface.
2. The transmission method according to claim 1, wherein the data to be transmitted is transmitted from the channel from the 1 st channel to the Nth channel E1, and the check data is transmitted from the channel from the N +1 st channel E1.
3. A network device, comprising:
a memory to store instructions;
a processor for invoking instructions in the memory for performing operations of the method of any of claims 1-2.
4. A data receiving method for implementing a data transmission method based on N +1 path E1 channel for data reliability as claimed in any of claims 1-2, wherein the network architecture includes a receiving side user service layer, a receiving side data adaptation layer and a receiving side physical transmission layer, and the data receiving method includes the following steps:
s30, the physical transmission layer at the receiving side receives data from each path of E1 channel, and stores each path of E1 data to a corresponding position in a receiving buffer according to an E1 frame structure;
s31, the data adaptation layer of the receiving side reads data from the buffer of the physical transmission layer of the receiving side by adopting a timing processing mechanism, and the timing interval is 125us (b/30) T, wherein T is more than or equal to 1 and is an integer, and b is the byte number of the basic data unit;
the receiving side data adaptation layer performs operations S311 to S316 in each timing interval:
s311, reading (b/30) T frame E1 data from the corresponding positions of E1 channels from the 1 st path to the N +1 th path of the receiving side physical transmission layer in sequence and buffering;
s312, searching a data synchronization positioning signal BSS in the time slot of each path of E1 channel data, and carrying out first alignment on each path of E1 data by taking the BSS as a reference;
s313, analyzing data unit position marks BCS in each path of E1 data on the premise of BSS alignment, and performing secondary alignment on each path of E1 data by taking BCS as a reference;
s314, if the alignment of the BSS and the BCS is not completed in the timing operation, repeating the alignment operation in the next timing operation until the BSS and the BCS are aligned between all E1 channels;
s315, on the premise that BSS and BCS are aligned, performing CRC check on the user data in the E1 channel of the 1 st path, and if the check is passed, directly writing the data into a data receiving buffer area of the E1 channel of the 1 st path of the application layer; if the CRC does not pass, reading user data which is at the same position and size as the current data from the 2 nd path E1 channel to the N +1 th path E1 channel, carrying out XOR operation on the data of each channel, and writing the operated data into a data receiving buffer corresponding to the 1 st path E1 channel of the application layer;
s316, sequentially carrying out the same operation on the user data in the E1 channels from the 2 nd path to the Nth path until the user data in all the E1 channels are processed; repeating the process of the steps S315 to S316T/P times;
s32, the service layer of the receiving side merges and recovers the data from the data receiving buffer zone corresponding to each E1 channel, and performs corresponding service processing to the recovered original user data.
5. A network device, comprising:
a memory to store instructions;
a processor for invoking instructions in the memory for performing the operations of the method of any of claims 4.
6. A data transmission method based on N +1 path E1 channel to realize data reliability is characterized in that a network architecture comprises a sending side user service layer, a sending side data adaptation layer, a sending side physical transmission layer, a receiving side user service layer, a receiving side data adaptation layer and a receiving side physical transmission layer, and the data transmission method comprises the following steps:
the network architecture comprises a sending side user service layer, a sending side data adaptation layer and a sending side physical transmission layer, wherein the sending side user service layer is used for generating user data, the sending side data adaptation layer carries out necessary adaptation and processing on the user data, and the sending side physical transmission layer acquires data from the data adaptation layer and carries out data transmission through an (N +1) path E1 physical channel;
the sending method specifically comprises the following steps:
s60, a user service layer at a sending side uniformly splits user data into N parts, and each part corresponds to data to be sent of 1 path of E1 channel;
s61, the data adaptation layer at the sending side splits the data to be sent into basic data processing units by taking a certain number of bytes as a unit, and marks and aligns the basic data processing units;
the sending side data adaptation layer performs operations from S611 to S615 in each timing interval:
s611, reading 1 part of data from the data to be sent of the 1 st path E1 channel, sequentially storing the data into the positions, corresponding to the TS1-TS15 and TS17-TS31, of the 1 st path E1 channel in the E1 physical transmission layer sending buffer area, and simultaneously carrying out CRC check operation on the part of data;
s612, sending a TS0 time slot or a TS16 time slot of a 1 st E1 channel (b/30) P E1 frames of a buffer to an E1 physical transport layer, and sequentially filling a data synchronization positioning signal BSS, a current user data position mark BCS and a CRC check value, wherein P is an integer and can be divided by T; the BCS adopts a count value of a monotone increasing cycle counter, and the count value is written as the BCS after being checked;
s613, repeating the steps S611-S612 for the data to be sent corresponding to the channels E1 from the 2 nd to the Nth paths and 1 part of data to be sent in the buffer area for sending the check data in sequence;
s614, reading 1 part of data from the N +1 channel E1 to-be-sent data, sequentially storing the data into positions corresponding to the N +1 channel E1, TS1-TS15 and TS17-TS31 in a sending buffer of an E1 physical transmission layer, and sequentially filling a data synchronization positioning signal BSS and a current user data position mark BCS into TS0 time slots or TS16 time slots of the N +1 channel E1 (b/30) P E1 frames of the sending buffer of the physical transmission layer;
s615, repeating the steps for T/P times to complete the processing of T/P data of each channel;
s62, the data adaptation layer at the sending side performs exclusive OR operation on the basic data processing units with the same marks, marks the operation result and stores the operation result into a buffer area to be sent of the check data;
s63, the sending side data adaptation layer sends user data and check data to be sent to a sending buffer of a sending side transmission layer by adopting a timing processing mechanism, wherein the timing interval is 125us (b/30) T, T is more than or equal to 1 and is an integer, and b is the number of bytes of a basic data unit;
and S64, the physical transmission layer of the transmitting side processes the data in the transmission buffer and sequentially transmits the data corresponding to each E1 channel in the transmission buffer through an E1 interface.
The network architecture comprises a receiving side user service layer, a receiving side data adaptation layer and a receiving side physical transmission layer, wherein the data receiving method comprises the following steps:
s70, the physical transmission layer at the receiving side receives data from each path of E1 channel, and stores each path of E1 data to a corresponding position in a receiving buffer according to an E1 frame structure;
s71, the data adaptation layer of the receiving side reads data from the buffer of the physical transmission layer of the receiving side by adopting a timing processing mechanism, and the timing interval is 125us (b/30) T, wherein T is more than or equal to 1 and is an integer, and b is the byte number of the basic data unit;
the receiving side data adaptation layer performs operations S711 to S716 every time the timing interval:
s711, reading (b/30) × T frame E1 data from the corresponding positions of the E1 channels from the 1 st path to the N +1 path of the receiving buffer in sequence from the physical transmission layer at the receiving side and caching the data;
s712, searching a data synchronization positioning signal BSS in the time slot of each path of E1 channel data, and aligning each path of E1 data for the first time by taking the BSS as a reference;
s713, analyzing data unit position marks BCS in each path of E1 data on the premise of BSS alignment, and performing second alignment on each path of E1 data by taking BCS as a reference;
s714, if the alignment of the BSS and the BCS is not completed in the timing operation, the alignment operation is repeated in the next timing operation until the BSS and the BCS are aligned between all E1 channels;
s715, on the premise that the BSS and the BCS are aligned, performing CRC (cyclic redundancy check) on the user data in the 1 st path E1 channel, and if the user data passes the CRC, directly writing the data into a data receiving buffer area of the 1 st path E1 channel of an application layer; if the CRC does not pass, reading user data which is at the same position and size as the current data from the 2 nd path E1 channel to the N +1 th path E1 channel, carrying out XOR operation on the data of each channel, and writing the operated data into a data receiving buffer corresponding to the 1 st path E1 channel of the application layer;
s716, sequentially carrying out the same operation on the user data in the E1 channels from the 2 nd path to the Nth path until the user data in all the E1 channels are processed; repeating the process of the steps S715-S716T/P times;
s72, the service layer of the receiving side merges and recovers the data from the data receiving buffer zone corresponding to each E1 channel, and performs corresponding service processing to the recovered original user data.
7. A computer-readable storage medium having stored thereon a computer program for: the data transmission method of claim 6 is performed.
CN202110135172.XA 2021-02-01 2021-02-01 Method for realizing data reliability transmission based on N +1 path E1 channel, network equipment and computer readable storage medium Active CN112968754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110135172.XA CN112968754B (en) 2021-02-01 2021-02-01 Method for realizing data reliability transmission based on N +1 path E1 channel, network equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110135172.XA CN112968754B (en) 2021-02-01 2021-02-01 Method for realizing data reliability transmission based on N +1 path E1 channel, network equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112968754A CN112968754A (en) 2021-06-15
CN112968754B true CN112968754B (en) 2022-03-15

Family

ID=76272765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110135172.XA Active CN112968754B (en) 2021-02-01 2021-02-01 Method for realizing data reliability transmission based on N +1 path E1 channel, network equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112968754B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100417071C (en) * 2003-05-30 2008-09-03 西安通视数据有限责任公司 Forward error correcting method in one-way broadcast file transmission
CN101193060B (en) * 2006-12-01 2010-09-01 武汉烽火网络有限责任公司 Method for reliable E1 transmission based on forward error correction mechanism in packet network
CN101488876B (en) * 2008-01-14 2011-04-20 中兴通讯股份有限公司 Switch network protection method based on data recovery
JP5408981B2 (en) * 2008-12-09 2014-02-05 キヤノン株式会社 COMMUNICATION DEVICE, COMMUNICATION METHOD, PROGRAM
CN103650432A (en) * 2011-07-08 2014-03-19 三星电子株式会社 Method for generating forward error correction packet in multimedia system and method and apparatus for transmitting and receiving forward error correction packet
CN102664765B (en) * 2012-04-01 2014-11-26 Ut斯达康通讯有限公司 Pseudo-random sequence self transceiving test system in PTN simulation service and method thereof
EP3119031A1 (en) * 2015-07-16 2017-01-18 ABB Schweiz AG Encryption scheme using multiple parties

Also Published As

Publication number Publication date
CN112968754A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
US5128945A (en) Packet framing using cyclic redundancy checking
US20180123714A1 (en) Method, Device, and System for Sending and Receiving Code Block Data Stream
US8625627B2 (en) Apparatus and method for controlling data transmission
US6681364B1 (en) Cyclic redundancy check for partitioned frames
US20100050058A1 (en) Method and device for transmitting and receiving data packets
US7362779B1 (en) Transmission of data frames as a plurality of subframes over a plurality of channels
WO2019084732A1 (en) Clock synchronization method and apparatus
JPH05110544A (en) Method and apparatus for switching signal path and system provided with plurality of signal switching apparatuses
WO2020038424A1 (en) Data packet transmission method and apparatus, storage medium, and electronic apparatus
JP2666679B2 (en) Slot reception synchronization circuit
CN112968754B (en) Method for realizing data reliability transmission based on N +1 path E1 channel, network equipment and computer readable storage medium
WO2021121352A1 (en) Data transmission method and apparatus
WO2020253403A1 (en) Overhead monitoring method and apparatus, and computer readable storage medium
US7292608B1 (en) Method and apparatus for transferring synchronous optical network/synchronous digital hierarchy(SONET/SDH) frames on parallel transmission links
US8972828B1 (en) High speed interconnect protocol and method
US5359609A (en) Quality check equipments for digital transmission links
JP2766228B2 (en) Stuff synchronization frame control method
US20020176449A1 (en) HDLC (high-level data link control) frames
JP2769012B2 (en) Cell missing error delivery detection and correction method
CA2081505C (en) Packet framer
JP3616695B2 (en) Interface system between units of transmission equipment
CN112822787B (en) Method and device for generating and analyzing aggregated MPDU (MPDU), and storage medium
AU726131B2 (en) Method in connection with serial data transfer to recognize a fixed pattern
WO2024001230A1 (en) Bearing method, communication equipment and storage medium
WO2021147042A1 (en) Time synchronization method and device

Legal Events

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