Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. 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.
Some of the words that appear in the text are explained below:
the term "and/or" in the embodiments of the present invention describes an association relationship of associated objects, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The application scenario described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention, and it can be known by a person skilled in the art that with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems. In the description of the present invention, the term "plurality" means two or more unless otherwise specified.
At present, the traditional optical fiber transmission of the repeater mainly adopts the rates of 3G and 6G, the corresponding coding and decoding modes are 8b10b, the efficiency of the coding mode is low, the bandwidth waste can be caused objectively, and the utilization of the bandwidth can be improved by changing the coding mode or changing the clock; however, if the encoding method is changed, although the bandwidth utilization rate is improved, the payload encoded and decoded by the encoding method is not matched with the line rate specified by the SERDES protocol of the serializer/deserializer, and if the clock is changed, the clock chip needs to provide multiple clocks, so that the whole design becomes more complex, and the system is easily unstable.
Therefore, the embodiment of the invention provides a method and a device for adapting the transmission rate of a repeater, which are used for solving the problem that the coded and decoded payload is not matched with the line rate specified by the SERDES protocol of a serializer/deserializer due to the change of the coding mode in the scene.
With respect to the above scenario, the following describes an embodiment of the present invention in further detail with reference to the drawings of the specification.
The first embodiment is as follows:
as shown in fig. 2, this embodiment provides a method for adapting a transmission rate of a repeater at a transmitting end, which specifically includes the following steps:
step 201, determining a coding mode according to a data transmission requirement, and determining a corresponding required transmission rate after coding transmission data by using the coding mode;
in this embodiment, at the transmitting end, a common Public Radio interface cpri (common Public Radio interface) configures, for a transmission rate after data framing is 184.32Mbps, a bit width is 32bit, and a selected coding mode is determined to be 64\66B coding according to a data transmission requirement;
in this embodiment, the rate of the transmission data coded by 64\66B is 92.16Mbps, the bit width is 66bit, and the required transmission rate after the transmission data is coded by this coding method is: (92.16X 66) the required transmission rate is 6082.56 Mbps.
Step 202, when determining that the required transmission rate is not matched with a protocol transmission rate specified by a preset communication standard, determining a transmission rate specified by the preset communication standard, wherein the matching degree of the required transmission rate and the required transmission rate meets a set requirement;
optionally, in implementation, according to the required transmission rate, a protocol transmission rate specified by a preset communication standard that is closest to and greater than the required transmission rate is determined, and the protocol transmission rate is a protocol transmission rate whose matching degree with the required transmission rate meets a set requirement.
In this embodiment, the preset communication standard is an SERDES protocol, and the protocol transmission rate closest to the required transmission rate of 6082.56Mbps among the specified protocol transmission rates is 6144 Mbps;
in an implementation, determining a transmission rate whose matching degree with the required transmission rate satisfies a preset communication standard of a set requirement further includes: and determining the standard bit width and the transmission clock with the matching degree with the required transmission rate meeting the set requirement.
In the embodiment, the standard bit width which meets the set requirement with the matching degree of the required transmission rate is determined; and determining a transmission clock with the matching degree with the required transmission rate meeting the set requirement according to the determined protocol transmission rate and the standard bit width.
In implementation, it may be, but is not limited to, determine, according to a data transmission requirement, a standard bit width whose matching degree with the required transmission rate meets a set requirement, for example, in this embodiment, a standard bit width 40bit specified by a SERDES protocol is determined to be the determined standard bit width meeting the set requirement;
in this embodiment, according to the determined protocol transmission rate 6144Mbps and the standard bit width 40bit, the corresponding transmission clock may be determined, that is, the transmission clock is (6144/40) Mhz, that is, 153.6 Mhz;
and 203, when the determined coding mode is used for coding the transmission data, inserting the data according to the determined transmission rate and a set mode and sending the data to a receiving end.
In implementation, in the coded transmission data, a preset number of fixed data are inserted into a preset number of transmission data at intervals;
the fixed data is data that does not affect actual transmission data, and is not specifically limited, and those skilled in the art can set the fixed data according to actual situations, in this embodiment, the fixed data may be, but is not limited to, 0x55AA 55;
the preset number of the intervals is not limited too much, and those skilled in the art can set the preset number according to actual data transmission requirements, in this embodiment, the preset number of the intervals may be 99;
dividing the protocol transmission rate by the product of the standard bit width and the transmission clock, multiplying the result by a preset conversion parameter and subtracting the result of the interval preset number to determine the preset number of the fixed data inserted in the coded transmission data;
in this embodiment, the predetermined conversion parameter is 100, and the predetermined number N may be determined according to the following formula 1:
in the formula 1, N is a preset number, 6144 is a numerical value of a protocol transmission rate specified by a determined SERDES protocol, 40 is a numerical value of a standard bit width specified by the SERDES protocol, 153.6 is a numerical value of a transmission clock corresponding to the determined protocol transmission rate and the standard bit width, and 99 is an interval preset number;
that is, in this embodiment, when data is transmitted, a 153.6Mhz transmission clock is used, and then after a 40-bit fixed number 0x55AA55 is inserted into every 99 pieces of encoded data, the transmission data into which the fixed data is inserted is sent to the sending end.
As an optional implementation manner, inserting data according to a set manner and sending the data to a receiving end further includes: and sending the preset number, the preset quantity and the fixed data as indication information to a receiving end so as to inform the receiving end of the position and the quantity of the fixed data inserted.
Based on the same inventive concept, as shown in fig. 3, this embodiment further provides a method for adapting the transmission rate of a repeater at a receiving end, which specifically includes the following steps:
step 301, receiving transmission data which is transmitted by a transmitting end and inserted with fixed data;
optionally, in implementation, on the receiving side, under a transmission clock of 153.6Mhz, after dropping the received 40-bit fixed data 0x55AA55 in each 100 pieces of received transmission data, the received transmission data is sent to a 64\66B decoding mode for decoding, that is, the data amount sent to 64\66B for decoding is 64\66B
Number ofThe data amount is 6082.56M.
Step 302, deleting the inserted fixed data from the transmission data;
in implementation, according to the preset number, the preset number and the fixed data in the indication information, the preset number of the fixed data is deleted every other transmission data with the preset number.
As an optional implementation, the method further includes: receiving indication information which is sent by a sending end and comprises a preset number, a preset number and fixed data;
in implementation, the indication information may be sent to a receiving end alone, or the indication information may be embedded in the transmission data and sent to the receiving end together with the transmission data, and those skilled in the art may set the indication information according to actual requirements.
The embodiment also provides a comparison between MAU and MEU and between MEU and MRU of the optical transmission base frame structure, as shown in fig. 4, the data frame structure of the transmission data is also suitable for the transmission rate of 6144Mbps, and the data frame structures of other transmission rates are processed in a similar processing manner;
the embodiment also provides an adaptive process schematic from the data frame of the transmission data to the protocol transmission rate specified by the SERDES protocol, as shown in fig. 5, wherein a 64\66B coding module completes the functions of increasing the head bit and scrambling data, the data bit width becomes 66 after passing through the module, and the standard bit width corresponding to the interface of the SERDES is generally 20 bits (the standard bit width corresponding to the 6144Mbps is 40 bits);
by the method provided by the implementation, under the condition that other relatively complex transmission clocks are not additionally added, the matching of the required transmission rate of data transmission and the protocol transmission rate specified by the preset communication standard is completed by a method of inserting a string of fixed data into the transmission data coded and decoded in the determined coding mode, the efficiency of data transmission is improved, and the bandwidth of data transmission is fully utilized, so that the system is more stable.
Example two:
as shown in fig. 6A, the present embodiment provides a transmitting end device for repeater transmission rate adaptation, which includes a processor 601 and a memory 602, where the processor is configured to:
determining a coding mode according to the data transmission requirement, and determining the corresponding required transmission rate after the transmission data is coded by using the coding mode;
when the required transmission rate is determined to be not matched with the protocol transmission rate specified by a preset communication standard, determining the transmission rate specified by the preset communication standard, wherein the matching degree of the required transmission rate and the required transmission rate meets the set requirement;
and when the determined coding mode is used for coding the transmission data, inserting the data according to the determined transmission rate and a set mode and sending the data to a receiving end.
The processor is further configured to determine a standard bit width and a transmission clock, where the matching degree with the required transmission rate satisfies a set requirement when determining that the matching degree with the required transmission rate satisfies a transmission rate specified by a preset communication standard of the set requirement.
Optionally, the processor is specifically configured to insert a preset number of fixed data into the encoded transmission data every interval of a preset number of transmission data.
The processor is specifically configured to determine, according to the required transmission rate, a protocol transmission rate specified by a preset communication standard that is closest to and greater than the required transmission rate, and is a protocol transmission rate whose matching degree with the required transmission rate satisfies a set requirement.
The processor is further configured to determine a result of dividing the protocol transmission rate by a product of the standard bit width and the transmission clock, multiplying the result by a preset conversion parameter, and subtracting a result of the preset number of intervals, as a preset number of fixed data inserted in the encoded transmission data.
The processor is further configured to send the preset number, and the fixed data to a receiving end as indication information.
As shown in fig. 6B, based on the same inventive concept, the present embodiment further provides a receiving end device for adapting a transmission rate of a repeater, which includes a processor 603 and a memory 604, where the processor is configured to:
receiving transmission data which is transmitted by a transmitting end and inserted with fixed data;
deleting the inserted fixed data from the transmission data.
The processor is further configured to receive indication information including a preset number, and fixed data sent by the sending end;
the processor is specifically configured to delete a preset number of fixed data every preset number of transmission data intervals according to the preset number, and the fixed data in the indication information.
Example three:
as shown in fig. 7A, this embodiment provides a transmitting end apparatus for adapting a transmission rate of a repeater, where the apparatus includes:
a required transmission rate determining unit 701, configured to determine an encoding mode according to a data transmission requirement, and determine a required transmission rate corresponding to the encoded transmission data by using the encoding mode;
a transmission parameter determining unit 702, configured to determine, when it is determined that the required transmission rate does not match a protocol transmission rate specified by a preset communication standard, a transmission rate specified by the preset communication standard, where a matching degree with the required transmission rate meets a set requirement;
a data transmission unit 703, configured to insert data according to a set manner and send the data to a receiving end according to the determined transmission rate when encoding the transmission data by using the determined encoding manner.
The transmission parameter determining unit is further configured to determine a standard bit width and a transmission clock, where the matching degree with the required transmission rate meets a set requirement when determining that the matching degree with the required transmission rate meets a transmission rate specified by a preset communication standard of the set requirement.
Optionally, the data transmission unit is configured to insert a preset number of fixed data into the coded transmission data at intervals of a preset number of transmission data.
The transmission parameter determining unit is configured to determine, according to the required transmission rate, a protocol transmission rate that is closest to and greater than the required transmission rate and is specified by a preset communication standard, and is a protocol transmission rate whose matching degree with the required transmission rate satisfies a set requirement.
The data transmission unit is further configured to determine a result of dividing the protocol transmission rate by a product of the standard bit width and the transmission clock, multiplying the result by a preset conversion parameter, and subtracting the result of subtracting the preset number of intervals as a preset number of fixed data inserted into the encoded transmission data.
The data transmission unit is further configured to send the preset number, and the fixed data to a receiving end as indication information. As shown in fig. 7B, based on the same inventive concept, this embodiment further provides a receiving end apparatus for adapting a transmission rate of a repeater, where the apparatus includes:
a data receiving unit 704, configured to receive transmission data sent by the sending end after the fixed data is inserted;
a data restoring unit 705, configured to delete the inserted fixed data from the transmission data.
The data receiving unit is further configured to receive indication information including a preset number, and fixed data, which is sent by the sending end;
and the data recovery unit is used for deleting the preset amount of fixed data at intervals of the preset amount of transmission data according to the preset amount, the preset amount and the fixed data in the indication information.
Example four:
the present embodiment provides a computer-readable non-volatile storage medium, which includes program code for causing a computing terminal to perform the steps of the method according to the first embodiment of the present invention when the program code runs on the computing terminal.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, 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, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the subject application may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
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.