WO2016191921A1 - Common public radio interface (cpri) data transmission method, related device and system - Google Patents

Common public radio interface (cpri) data transmission method, related device and system Download PDF

Info

Publication number
WO2016191921A1
WO2016191921A1 PCT/CN2015/080250 CN2015080250W WO2016191921A1 WO 2016191921 A1 WO2016191921 A1 WO 2016191921A1 CN 2015080250 W CN2015080250 W CN 2015080250W WO 2016191921 A1 WO2016191921 A1 WO 2016191921A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
cpri
ethernet
clock
transmitted
Prior art date
Application number
PCT/CN2015/080250
Other languages
French (fr)
Chinese (zh)
Inventor
成卫东
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2015/080250 priority Critical patent/WO2016191921A1/en
Priority to CN201580079139.2A priority patent/CN107534688A/en
Publication of WO2016191921A1 publication Critical patent/WO2016191921A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/323Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the physical layer [OSI layer 1]

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to a general public radio interface CPRI data transmission method, related device and system.
  • CPRI Common Public Radio Interface
  • REC Radio Equipment Controller
  • RE Radio Equipment
  • the basic structure of an Ethernet frame is a frame header (7 0x55+1 0XD5) + data + frame gap (Inter Package Gap, referred to as "IPG"), that is, the frame header and IPG of the CPRI data need to be encapsulated.
  • the IPG is at least 96 bit time Bit Time, that is, 12 bytes. That is to say, when converting a CPRI frame containing CPRI data into an Ethernet frame, a total of 20 bytes of the header and the IPG are indispensable.
  • the maximum Ethernet frame that can be supported by the Gigabit Ethernet (GE) physical layer chip is 10 kb.
  • the CPRI frame when the CPRI frame is adjusted to an Ethernet frame, the frame header and the IPG are encapsulated so that the converted Ethernet frame is larger than 10 kb.
  • the IQ data bandwidth is squeezed, so that part of the IQ bandwidth cannot be used to transmit IQ data, that is, the IQ bandwidth needs to be sacrificed.
  • the implementation of GE-based CPRI data transmission makes the transmission efficiency of CPRI data low.
  • the embodiment of the invention provides a CPRI data transmission method, a related device and a system, which can improve the transmission efficiency of the CPRI data.
  • an embodiment of the present invention provides a sending device, including:
  • a deleting module configured to delete a preset number of control words in a CPRI frame of a public wireless interface that needs to be transmitted;
  • a format conversion module configured to add a frame header and a frame gap IPG to the CPRI frame after the deletion of the control word by the deleting module, to obtain an Ethernet frame that can be transmitted in the physical layer of the Ethernet;
  • a sending module configured to send the Ethernet frame to the receiving device by using the Ethernet physical layer.
  • the deleting module includes:
  • An acquiring unit configured to acquire a current line rate corresponding to a CPRI frame that needs to be transmitted
  • a number determining unit configured to determine, according to the current line rate acquired by the acquiring unit, the number of control words that need to be deleted in the CPRI frame that needs to be transmitted, where the number of control words that need to be deleted
  • the total length is not less than the sum of the total length of the frame header and the IPG;
  • a data deleting unit configured to delete the number of control words determined by the number determining unit in the CPRI frame that needs to be transmitted.
  • the deleted control word is a custom in the CPRI frame that needs to be transmitted Control word or reserved control word.
  • the embodiment of the present invention further provides a sending device, including:
  • a format conversion module configured to add a frame header and an IPG to the CPRI frame to be transmitted, to obtain an Ethernet frame that can be transmitted on the physical layer of the Ethernet, where the clock corresponding to the CPRI frame is the first clock;
  • a sending module configured to send the Ethernet frame to the receiving device by using the Ethernet physical layer at a second clock, where the second clock is greater than the first clock.
  • the sending device is further include:
  • a calculation module configured to calculate, according to a frame length of the CPRI frame, the first clock, and the second clock, a frame length of the Ethernet frame;
  • the calculating module is further configured to calculate a first difference between a frame length of the Ethernet frame and a frame length of the CPRI frame, and calculate the first difference and the total of the frame header and the IPG. a second difference in the sum of the lengths;
  • a packet determining module configured to determine, according to the second difference value calculated by the calculating module, a packet of an Ethernet frame when performing data transmission;
  • the sending module is specifically configured to:
  • the Ethernet frame is transmitted to the receiving device at the second clock and through the Ethernet physical layer.
  • the first clock is 122.88 MHz
  • the second clock is 125 MHz.
  • the embodiment of the present invention further provides a receiving device, including:
  • a receiving module configured to receive, by using an Ethernet physical layer, an Ethernet frame sent by the sending device, where the Ethernet frame is a preset number of control words in the CPRI frame that the transmitting device deletes and needs to be transmitted, and is deleted after the control word is deleted.
  • the CPRI frame adds a frame header and an IPG to obtain a frame that can be transmitted on the Ethernet physical layer;
  • a recovery module configured to remove the frame header of the Ethernet frame and the IPG, to obtain a CPRI frame to be restored
  • the recovery module is further configured to recover the preset number of control words deleted from the to-be-recovered CPRI frame, and restore the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
  • the preset number is determined according to a corresponding current line rate of a CPRI frame that needs to be transmitted, and the preset number of the deleted ones
  • the total length of the control word is not less than the sum of the total length of the frame header and the IPG.
  • the deleted control word is the self in the CPRI frame that needs to be transmitted. Define control words or reserved control words.
  • the embodiment of the present invention further provides a receiving device, including:
  • a receiving module configured to receive, by the second clock, an Ethernet frame sent by the sending device by using an Ethernet physical layer, where the Ethernet frame is obtained by adding, by the sending device, a frame header and an IPG to a CPRI frame that needs to be transmitted.
  • a frame that can be transmitted on the Ethernet physical layer, the clock corresponding to the CPRI frame is a first clock, and the second clock is greater than the first clock;
  • a recovery module configured to remove the frame header of the Ethernet frame and the IPG, to obtain the CPRI frame.
  • the first clock is 122.88 MHz
  • the second clock is 125 MHz.
  • the embodiment of the present invention further provides a CPRI data transmission method, including:
  • the sending device deletes a preset number of control words in the CPRI frame of the public radio interface to be transmitted;
  • the sending device adds a frame header and a frame gap IPG to the CPRI frame after deleting the control word, and obtains an Ethernet frame that can be transmitted on the Ethernet physical layer;
  • the transmitting device sends the Ethernet frame to the receiving device by using the Ethernet physical layer.
  • the sending device deletes a preset number of control words in a CPRI frame that needs to be transmitted, including:
  • the sending device acquires a current line rate corresponding to the CPRI frame that needs to be transmitted;
  • the transmitting device deletes the number of control words in the CPRI frame that needs to be transmitted.
  • the deleted control word is a custom in the CPRI frame that needs to be transmitted Control word or reserved control word.
  • the embodiment of the present invention further provides a CPRI data transmission method, including:
  • the sending device adds a frame header and an IPG to the CPRI frame that needs to be transmitted, so that it can be in the physical layer of the Ethernet.
  • the transmitted Ethernet frame where the clock corresponding to the CPRI frame is the first clock;
  • the sending device sends the Ethernet frame to the receiving device by using the Ethernet physical layer at a second clock, where the second clock is greater than the first clock.
  • the method further includes:
  • the sending device calculates a first difference between a frame length of the Ethernet frame and a frame length of the CPRI frame, and calculates a sum of the first difference value and a total length of the frame header and the IPG. Second difference
  • the sending device determines, according to the second difference, a packet of an Ethernet frame when performing data transmission
  • the transmitting device transmits the Ethernet frame to the receiving device at the second clock and through the Ethernet physical layer based on the packet.
  • the first clock is 122.88 MHz
  • the second clock is 125 MHz.
  • the embodiment of the present invention further provides a CPRI data transmission method, including:
  • the receiving device receives, by the Ethernet physical layer, an Ethernet frame sent by the sending device, where the Ethernet frame is a preset number of control words in the CPRI frame that the transmitting device deletes and needs to be transmitted, and is added to the CPRI frame after deleting the control word.
  • Frame header and IPG obtained frames that can be transmitted on the Ethernet physical layer;
  • the receiving device recovers the preset number of control words deleted from the to-be-recovered CPRI frame, and restores the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
  • the preset number is determined according to a corresponding current line rate of a CPRI frame that needs to be transmitted, and the preset number of the deleted ones
  • the total length of the control word is not less than the sum of the total length of the frame header and the IPG.
  • the deleted control word is a custom in the CPRI frame that needs to be transmitted Control word or reserved control word.
  • the embodiment of the present invention further provides a CPRI data transmission method, including:
  • the receiving device receives the Ethernet frame sent by the sending device at the second clock and through the Ethernet physical layer, where the Ethernet frame is that the sending device adds a frame header and an IPG to the CPRI frame that needs to be transmitted, and the obtained device can be in the ether.
  • a frame transmitted by the physical layer of the network the clock corresponding to the CPRI frame is a first clock, and the second clock is greater than the first clock;
  • the receiving device removes the frame header of the Ethernet frame and the IPG to obtain the CPRI frame.
  • the first clock is 122.88 MHz
  • the second clock is 125 MHz.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a program, and the program includes some or all of the steps of the CPRI data transmission method of the fifth aspect.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a program, and the program includes some or all of the steps of the CPRI data transmission method of the sixth aspect.
  • an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a program, and the program includes some or all of the steps of the CPRI data transmission method of the seventh aspect.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a program, and the program includes some or all of the steps of the CPRI data transmission method of the eighth aspect.
  • the embodiment of the present invention further provides a sending device, including: a transmitter, a receiver, a memory, and a processor.
  • processor performs the following steps:
  • the processor performs a preset number of control words in a CPRI frame that needs to be transmitted by performing the deleting, and performing the following steps:
  • the deleted control word is in the CPRI frame that needs to be transmitted. Custom control word or reserved control word.
  • the embodiment of the present invention further provides a sending device, including: a transmitter, a receiver, a memory, and a processor.
  • processor performs the following steps:
  • the processor is further configured to perform the following steps:
  • the processor is configured to send the Ethernet frame to the receiving device by using the Ethernet physical layer, and perform the following steps:
  • the Ethernet frame is transmitted to the receiving device at the second clock and through the Ethernet physical layer.
  • the first clock is 122.88 MHz
  • the second clock is 125MHz.
  • the embodiment of the present invention further provides a receiving device, including: a transmitter, a receiver, a memory, and a processor.
  • processor performs the following steps:
  • an Ethernet frame sent by the sending device by using an Ethernet physical layer where the Ethernet frame is a preset number of control words in the CPRI frame that the transmitting device deletes and needs to be transmitted, and the control word is deleted.
  • the subsequent CPRI frame adds a frame header and an IPG to obtain a frame that can be transmitted on the Ethernet physical layer;
  • the preset number is determined according to a corresponding current line rate of a CPRI frame that needs to be transmitted, and the preset is deleted.
  • the total length of the number of control words is not less than the sum of the total length of the frame header and the IPG.
  • the deleted control word is in the CPRI frame that needs to be transmitted. Custom control word or reserved control word.
  • an embodiment of the present invention provides a receiving device, including: a transmitter, a receiver, a memory, and a processor.
  • processor performs the following steps:
  • an Ethernet frame sent by the sending device by using the Ethernet physical layer at the second clock where the Ethernet frame is that the sending device adds a frame header and an IPG to the CPRI frame that needs to be transmitted, a frame that can be transmitted on the Ethernet physical layer, the clock corresponding to the CPRI frame is a first clock, and the second clock is greater than the first clock;
  • the frame header of the Ethernet frame and the IPG are removed to obtain the CPRI frame.
  • the first clock is 122.88 MHz
  • the second clock is 125 MHz.
  • the embodiment of the present invention further provides a CPRI data transmission system, including: a sending device and a receiving device, where
  • the sending device is configured to delete a preset number of control words in a CPRI frame of a public radio interface that needs to be transmitted; add a frame header and a frame gap IPG to the CPRI frame after deleting the control word, and obtain an ether that can be transmitted in the physical layer of the Ethernet. a network frame; sending, by the Ethernet physical layer, the Ethernet frame to the receiving device;
  • the receiving device is configured to receive, by the Ethernet physical layer, an Ethernet frame sent by the sending device, remove the frame header of the Ethernet frame, and the IPG, to obtain a CPRI frame to be restored; And deleting the preset number of control words in the CPRI frame to be restored, and restoring the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
  • the embodiment of the present invention provides a CPRI data transmission system, including: a sending device and a receiving device, where
  • the sending device is configured to add a frame header and an IPG to the CPRI frame that needs to be transmitted, and obtain an Ethernet frame that can be transmitted on the physical layer of the Ethernet, where the clock corresponding to the CPRI frame is the first clock;
  • the Ethernet physical layer sends the Ethernet frame to the receiving device, where the second clock is greater than the first clock;
  • the receiving device is configured to receive, by the second clock, an Ethernet frame sent by the sending device by using the Ethernet physical layer; removing the frame header of the Ethernet frame and the IPG, and obtaining the Said CPRI frame.
  • the CPRI clock makes the CPRI data transmission based on the Ethernet physical layer no longer occupy the IQ data space, thereby improving the CPRI data transmission efficiency and enhancing the system performance.
  • FIG. 1 is a schematic diagram of a system for applying an application scenario according to an embodiment of the present disclosure
  • FIG. 1b is a schematic diagram of a system for applying an application scenario according to an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of another system of application scenarios provided by an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of a system of another application scenario provided by an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a sending device according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an Ethernet frame according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a superframe according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a receiving device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of implementing CPRI data transmission by deleting a control word according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of another sending device according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another receiving device according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of implementing CPRI data transmission by transforming an Ethernet physical layer clock according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of an Ethernet frame grouping according to an embodiment of the present invention.
  • FIG. 11 is a schematic flowchart of a CPRI data transmission method according to an embodiment of the present invention.
  • FIG. 12 is a schematic flowchart diagram of another CPRI data transmission method according to an embodiment of the present invention.
  • FIG. 13 is a schematic flowchart of still another CPRI data transmission method according to an embodiment of the present invention.
  • FIG. 14 is a schematic flowchart of still another CPRI data transmission method according to an embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram of still another sending device according to an embodiment of the present disclosure.
  • FIG. 16 is a schematic structural diagram of still another transmitting device according to an embodiment of the present disclosure.
  • FIG. 17 is a schematic structural diagram of still another receiving device according to an embodiment of the present disclosure.
  • FIG. 18 is a schematic structural diagram of still another receiving device according to an embodiment of the present disclosure.
  • FIG. 19 is a schematic structural diagram of a CPRI data transmission system according to an embodiment of the present invention.
  • FIG. 20 is a schematic structural diagram of another CPRI data transmission system according to an embodiment of the present invention.
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • UMTS Universal Mobile Telecommunication System
  • WLAN Wireless Local Area Networks
  • the application scenario may be an indoor distribution system or an outdoor distribution system, which is not limited in the embodiment of the present invention.
  • the CPRI specification can be used for data transmission between a base station baseband unit and a radio remote unit (Radio Remote Unit (RRU)), and between the RRU and the RRU.
  • RRU Radio Remote Unit
  • the CPRI specification can also be used for data transmission between a base station baseband unit and an extension unit, and between an extension unit and an RRU.
  • the method in the embodiment of the present invention may be specifically applied to data transmission of a CPRI interface related to the following system architecture: RF remote system, analog feed digital signal distribution system, base station digital baseband feed signal distribution system, etc.
  • the embodiment of the present invention can be applied to data transmission between a base station baseband unit and an RRU, or a CPRI interface used between an RRU and an RRU.
  • FIG. 1c it is a schematic diagram of another application scenario provided by the embodiment of the present invention, which is specifically a schematic diagram of an analog feed digital signal distribution system.
  • the analog feed digital signal distribution system in order to realize the remote and expand the coverage of the base station and reduce the uplink noise superposition, the analog feed digital signal distribution system adopts the distribution of the fiber + five-wire, fiber + fiber repeater. the way.
  • the embodiment of the present invention is also applicable to data of a CPRI interface between an access unit and an extension unit, between an extension unit and an extension unit, between an extension unit and an RRU, or between an RRU and an RRU. transmission.
  • FIG. 1d it is a system schematic diagram of another application scenario provided by the embodiment of the present invention, which is specifically a schematic diagram of a base station digital baseband feed signal distribution system.
  • the difference between the base station digital baseband feed signal distribution system and the above analog feed digital signal distribution system is mainly to convert the access unit into a baseband unit, and the baseband unit directly feeds the baseband signal into the extension unit.
  • the base station digital baseband feed signal distribution system mainly used between the baseband unit and the extension unit, between the extension unit and the extension unit, between the extension unit and the RRU, between the RRU and the RRU Data transmission using the CPRI interface.
  • the sending device in the embodiment of the present invention may include a deleting module 11, a format converting module 12, and a sending module 13. among them,
  • the deleting module 11 is configured to delete a preset number of control words in a CPRI frame of a public radio interface that needs to be transmitted.
  • the sending device may specifically be a baseband processing unit, an analog feed digital signal distribution system, or an extension unit in a baseband digital baseband feed signal distribution system, including the above-mentioned radio remote unit. It can be used as a device at the transmitting end when performing CPRI data transmission.
  • the CPRI frame to be transmitted is a superframe in the CPRI protocol, and the superframe can be used as a basic frame for Ethernet data transmission.
  • the word length T corresponds to the current line rate.
  • the CPRI basic frame structure corresponding to the 1228.8 Mbit/s line rate in the CPRI protocol is 16 (bit width) * 16 (time slot).
  • the basic structure of an Ethernet physical layer that is, the most basic structure of the Ethernet frame is the frame header (7 0x55+1 0XD5, ie 8 bytes) + data + frame gap IPG, where IPG is at least 96 Bit Time, ie 12 bytes. That is to say, when performing frame format conversion and converting a CPRI frame, that is, a super frame, into an Ethernet frame suitable for Ethernet physical layer transmission, encapsulating the frame header and the frame gap IPG is essential, which may result in The Ethernet frame obtained after the frame format conversion of the CPRI frame to be transmitted exceeds the maximum basic frame length supported by the Ethernet physical layer chip.
  • FIG. 3 is a schematic structural diagram of an Ethernet frame according to an embodiment of the present invention.
  • the maximum basic frame supported by the GE physical layer chip is 10 kb
  • the online rate is 1.2288 Gbps
  • the length of one CPRI superframe (including 256 CPRI basic frames, that is, the chip shown in FIG. 3) is 8192 bytes, which is just less than 10kb, is more than 10kb after being converted to an Ethernet frame, that is, after adding a frame header (8 bytes) and IPG (12 bytes). This will result in crowding out IQ bandwidth.
  • the preset number of control words can be deleted by the deleting module 11, and the position of the deleted control word is used for transmitting IQ data to compensate the bandwidth corresponding to the frame header and the IPG, thereby eliminating the sacrifice IQ bandwidth to implement GE-based CPRI data transmission.
  • the preset number that is, the number of deleted control words, may be a fixed number of pre-configured numbers, such as 20, or a number that needs to be deleted according to the current line rate of the CPRI frame.
  • the format conversion module 12 is configured to add a frame header and a frame gap IPG to the CPRI frame after the deletion of the control word by the deleting module 11, to obtain an Ethernet frame that can be transmitted on the Ethernet physical layer.
  • the sending module 13 is configured to send the ethernet to the receiving device by using the Ethernet physical layer Net frame.
  • the format conversion module 12 may add a frame header to the CPRI frame after deleting the control word.
  • IPG to meet the basic frame structure of the Ethernet physical layer, to obtain Ethernet frames that can be transmitted on the Ethernet network line.
  • the sending module 13 sends the Ethernet frame to the receiving device through the Ethernet network cable, so that when receiving the Ethernet frame, the receiving device removes the frame header and the IPG of the package to obtain CPRI data, and is based on the structure of the CPRI superframe.
  • the deleted control word is restored, and the CPRI frame before the deletion of the control word is restored, that is, the standard CPRI frame structure is restored.
  • the deleting module 11 may include (not shown):
  • the obtaining unit 111 is configured to obtain a current line rate corresponding to the CPRI frame that needs to be transmitted;
  • the number determining unit 112 is configured to determine, according to the current line rate acquired by the acquiring unit 111, the number of control words that need to be deleted in the CPRI frame that needs to be transmitted, where the number of the control words that need to be deleted is determined.
  • the total length of the control word is not less than the sum of the total length of the frame header and the IPG;
  • the data deleting unit 113 is configured to delete the number of control words determined by the number determining unit 112 in the CPRI frame that needs to be transmitted.
  • the CPRI frame that is, the superframe in the CPRI protocol, includes 256 basic frames, and 256 control words are nested step by step (each basic frame includes one control word).
  • FIG. 4 it is a schematic structural diagram of a superframe according to an embodiment of the present invention.
  • the 256 control words that are nested step by step can be programmed into 64 subchannels for every 4 groups.
  • control words in different morphological areas defines different uses, such as synchronous timing, slow control and management, factory customization, etc., and some reserved control words.
  • the deleted control word may be a custom control word or a reserved control word in the CPRI frame to be transmitted.
  • the basic structure of the basic frame of a physical layer is frame header + data + IPG.
  • the frame header and the IPG are indispensable.
  • the transmitting end that is, the transmitting device can obtain the unit before converting the CPRI frame, that is, the superframe of the CPRI data format into an Ethernet frame.
  • the current line rate corresponding to the current superframe is obtained by the CPRI frame that needs to be transmitted, and the number determining unit 112 determines the number of control words, such as a custom control word or a reserved control word, that need to be deleted according to the current line rate.
  • the total length of the corresponding control word is not less than the sum of the total length of the frame header and the IPG (ie, 20 bytes), so that the data deleting unit 113 can delete the number of control words determined by the number determining unit 112, that is, delete 20 bytes or 20 bytes.
  • the above control word uses the position of the delete control word for transmitting IQ data, so that the occupied IQ bandwidth caused by converting the CPRI frame into an Ethernet frame is avoided.
  • the receiving device in the embodiment of the present invention may include a receiving module 21 and a recovery module 22. among them,
  • the receiving module 21 is configured to receive, by using an Ethernet physical layer, an Ethernet frame sent by the sending device, where the Ethernet frame is a preset number of control words in the CPRI frame that the sending device needs to transmit, and is deleted.
  • the CPRI frame after the word adds the frame header and IPG, and the obtained frame can be transmitted on the Ethernet physical layer.
  • the receiving device that is implemented by the present invention may specifically be the RRU including the above-mentioned radio remote unit, analog feed digital signal distribution system or base station digital baseband feed signal distribution system, etc. during CPRI data transmission. Can be used as a device at the receiving end.
  • the data transmission of the Ethernet is based on basic frame data transmission, and the CPRI frame to be transmitted is a superframe in the CPRI protocol, and the superframe can be used as a basic frame of the Ethernet GE.
  • the recovery module 22 is configured to remove the frame header of the Ethernet frame and the IPG, to obtain a CPRI frame to be restored;
  • the recovery module 22 is further configured to recover the preset number of control words deleted from the to-be-recovered CPRI frame, and restore the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
  • the preset number is determined according to a corresponding current line rate of the CPRI frame that needs to be transmitted, and the total length of the deleted preset number of control words is not less than the frame header and the IPG. The sum of the total lengths.
  • the deleted control word is a custom in the CPRI frame that needs to be transmitted. Control word or reserved control word.
  • the recovery module 22 can remove the frame header and the IPG of the Ethernet frame, and extract the CPRI frame. Data, and recovering the deleted control word based on the structure of the CPRI superframe, recovering the standard CPRI superframe structure before deleting the control word.
  • FIG. 6 it is a schematic structural diagram of implementing CPRI data transmission by deleting a control word according to an embodiment of the present invention.
  • the FIG. 6 includes a frame of a CPRI superframe (8192 Byte) of the CPRI data format of a transmitting device, that is, a transmitting end.
  • the sending device that is, the sending end, can control, by using the deleting module 11, to delete the control words in the 10 basic frames including the custom control word (more than 10 custom control words can be deleted), the deleted 10 control words CM is the CM in the gray part of the figure (only the CM of 2 is shown in Figure 6), a total of 20 bytes, to make up for the occupation of Ethernet frame header + frame gap of 20 bytes, to achieve bandwidth compensation.
  • the transmitting end converts the CPRI frame after the deletion control word by the format conversion module 12, increases the frame header and the IPG, and obtains the basic frame, that is, the Ethernet frame, transmitted by the Ethernet physical layer chip format, and sends the Ethernet frame through the sending module 13.
  • the network frame is sent to the receiving device.
  • the recovery module 22 can remove the frame header and the IPG, extract the CPRI frame data, and recover the deleted control word, thereby restoring to the standard CPRI superframe structure.
  • the line rate of 1.2288 Gbps is taken as an example.
  • A is the number of antennas and C is the number of carriers.
  • the bandwidth can be compensated by the deletion control word to increase the maximum A*C number supported in the uplink and / or downlink direction.
  • the network deployment cost can be effectively reduced.
  • the part of the control word is deleted in the CPRI frame, so that the IQ data space is no longer occupied when the GE-based CPRI data transmission is implemented, so that the single network cable can be improved.
  • the data transmission efficiency enhances the application scenario of a single network cable in the carrier system, and saves port occupation and network cable usage, reduces network deployment cost and construction difficulty, and enhances system performance.
  • FIG. 7 is a schematic structural diagram of another sending device according to an embodiment of the present invention.
  • the sending device in the embodiment of the present invention includes a format converting module 31 and a sending module 32. among them,
  • the format conversion module 31 is configured to add a frame header and an IPG to the CPRI frame that needs to be transmitted, and obtain an Ethernet frame that can be transmitted on the physical layer of the Ethernet, where the clock corresponding to the CPRI frame is the first clock;
  • the sending module 32 is configured to send the Ethernet frame to the receiving device by using the Ethernet physical layer at a second clock, where the second clock is greater than the first clock.
  • Ethernet-based CPRI data transmission can also be implemented by changing the working clock of the Ethernet physical layer chip.
  • the working clock corresponding to the CPRI frame is a first clock, that is, the sending device transmits a CPRI frame on the first clock
  • the working clock corresponding to the Ethernet frame is a second clock, that is, the sending device can pass
  • the sending module 32 sends an Ethernet frame on the second clock, and transmits an Ethernet frame through the second clock, where the second clock is greater than the first clock.
  • the sending device may further include:
  • the calculating module 33 is configured to calculate, according to the frame length of the CPRI frame, the first clock, and the second clock, a frame length of the Ethernet frame.
  • the calculating module 33 is further configured to calculate a first difference between a frame length of the Ethernet frame and a frame length of the CPRI frame, and calculate the first difference value with the frame header and the IPG a second difference in the sum of the total lengths;
  • a packet determining module 34 configured to determine, according to the second difference value calculated by the calculating module 33, a packet of an Ethernet frame when performing data transmission;
  • the sending module 32 can be specifically configured to:
  • the Ethernet frame is transmitted to the receiving device at the second clock and through the Ethernet physical layer.
  • the first clock may be specifically 122.88 MHz
  • the second clock may be specifically 125 MHz.
  • the clock domain conversion that is, the control of the Ethernet operating clock (second clock) is greater than the CPRI clock (first clock), enabling more data to be transmitted at the same time, thereby implementing Ethernet-based CPRI data transmission, instead of crowding out the IQ data space, improves CPRI data transmission efficiency.
  • Ethernet frames can also be grouped according to the vacant bytes to transmit Ethernet frames based on the packets.
  • the frame length of the current CPRI frame, the first clock, and the frame length of the Ethernet frame corresponding to the second clock are calculated by the calculation module 33, and the frame length of the Ethernet frame and the frame length of the CPRI frame are further calculated.
  • the transmitting module 32 is capable of transmitting Ethernet frames based on the packet.
  • FIG. 8 is a schematic structural diagram of another receiving device according to an embodiment of the present invention.
  • the receiving device in the embodiment of the present invention may include a receiving module 41 and a recovery module 42. among them,
  • the receiving module 41 is configured to receive, by the second clock, an Ethernet frame sent by the sending device by using an Ethernet physical layer, where the Ethernet frame is the sending device adds a frame header and an IPG to the CPRI frame that needs to be transmitted. Obtaining a frame that can be transmitted on the physical layer of the Ethernet, the clock corresponding to the CPRI frame is a first clock, and the second clock is greater than the first clock;
  • the recovery module 42 is configured to remove the frame header of the Ethernet frame and the IPG to obtain the CPRI frame.
  • the Ethernet-based CPRI data transmission can also be implemented by changing the working clock of the Ethernet physical layer chip.
  • the working clock corresponding to the CPRI frame is the first clock, that is, the sending device can transmit the CPRI frame on the first clock
  • the working clock corresponding to the Ethernet frame is the second clock, that is, the sending device can be in the
  • the second clock transmits an Ethernet frame, and the second clock is greater than the first clock.
  • the receiving device receives the Ethernet frame sent by the sending device at the second clock through the receiving module 41.
  • the first clock may be specifically 122.88 MHz
  • the second clock may be specifically 125 MHz.
  • the recovery module 22 can remove the frame header and the IPG of the Ethernet frame and the vacant byte. , extract the CPRI data and restore it to the standard CPRI before the transform clock domain Superframe structure.
  • FIG. 9 is a schematic structural diagram of implementing CPRI data transmission by transforming an Ethernet physical layer clock according to an embodiment of the present invention
  • FIG. 9 includes a CPRI data of a CPRI data format in a transmitting device, that is, a transmitting end.
  • a frame structure diagram of a frame (8192 Byte) a frame structure diagram of an Ethernet frame (8333.333 Byte) transmitted by an Ethernet physical layer chip format obtained by converting the frame format of the CPRI superframe, wherein a CPRI frame corresponding to the transmitting device
  • the first clock that is, the CPRI data clock
  • the second clock corresponding to the Ethernet physical layer that is, the Ethernet physical layer clock
  • the transmitting end when the transmitting device, that is, the transmitting end performs format conversion on the superframe (8192 Byte) of the CPRI data format by the format conversion module 12, it can add a frame header, an IPG, and a spare byte (121.333 Byte) to the CPRI superframe.
  • the basic frame transmitted by the Ethernet physical layer chip format is converted into an Ethernet frame (8333.333 Byte), thereby realizing transmission of CPRI data through the Ethernet frame.
  • the sending device may further determine the Ethernet according to the vacant number of bytes, that is, according to the difference between the length of the Ethernet frame and the CPRI superframe and the length of the frame header and the IPG. Grouping of frames.
  • FIG. 10 it is a schematic diagram of an Ethernet frame grouping structure provided by an embodiment of the present invention. Specifically, according to the spare byte number is 121.333 Byte, the transmitting device can treat each of the three Ethernet basic frames as a group, as shown in FIG.
  • the first Ethernet frame has a spare space of 122 bytes, and the latter two Ethernets
  • the frame has a spare space of 121 Bytes, that is, one of the three Ethernet frames of the packet has a length of 8334 Bytes, and the remaining two lengths are 8333 Bytes
  • PHY represents the frame header + IPG in FIG. 9
  • the CPRI data is the picture in FIG. 9 Control word CM+IQ data
  • the transmitting module 32 can transmit an Ethernet frame including CPRI data to the receiving device based on the packet. After the receiving device receives the Ethernet frame sent by the sending device through the receiving module 41, the receiving module 42 removes the frame header, the IPG and the vacant byte of the Ethernet frame, extracts the CPRI data, and restores the CPRI data. Complex to the standard CPRI superframe structure before the clock domain is transformed.
  • the working clock of the Ethernet is controlled to be larger than the CPRI clock by the clock domain conversion, so that more data can be transmitted on the Ethernet network line in the same time, for example, the working frequency of the Ethernet physical layer is 125 MHz.
  • the CPRI working clock takes 122.88MHz.
  • 141.333 bytes of data can be transmitted, except for the frame header and the IPG, which has a total of 20 bytes and 121.333 bytes remaining, thereby realizing the transformation of the Ethernet physical layer chip.
  • the working clock compensates the bandwidth of the CPRI frame, and no longer squeezes the IQ data space, and does not need to sacrifice the IQ bandwidth to implement the GE-based CPRI data transmission, thereby solving the problem of low efficiency of CPRI data transmission.
  • FIG. 11 is a schematic flowchart of a CPRI data transmission method according to an embodiment of the present invention.
  • the method in the embodiment of the present invention may be specifically applied to a sending device. Specifically, the method may include the following steps:
  • the sending device deletes a preset number of control words in the CPRI frame of the public radio interface that needs to be transmitted.
  • the method implemented by the present invention may be specifically applied to a sending device, where the sending device may specifically include a baseband processing unit, an analog feed digital signal distribution system, or a base station digital baseband in the radio remote unit.
  • An extension unit or the like fed into the signal distribution system can serve as a device of the transmitting end when performing CPRI data transmission.
  • the CPRI frame to be transmitted is a superframe in the CPRI protocol, and the superframe can be used as a basic frame for Ethernet data transmission.
  • the sending device adds a frame header and a frame gap IPG to the CPRI frame after deleting the control word, to obtain an Ethernet frame that can be transmitted on the Ethernet physical layer.
  • the basic structure of an Ethernet physical layer that is, the most basic structure of the Ethernet frame is a frame header (8 bytes) + data + IPG (12 bytes). ). That is to say, when converting a CPRI frame, that is, a superframe, into an Ethernet frame suitable for Ethernet physical layer transmission, encapsulating the frame header and the IPG is indispensable, which may result in the CPRI frame to be transmitted.
  • the Ethernet frame obtained after the frame format conversion exceeds the maximum basic frame supported by the Ethernet physical layer chip. length.
  • the length of a CPRI superframe is 8192 bytes, which is just less than 10 kb, and is converted into an Ethernet frame, that is, plus After the frame header and IPG, it exceeds 10kb, which will result in the crowding of IQ bandwidth. Therefore, before the frame format conversion, a preset number of control words can be deleted, and the position of the deleted control word is used to transmit IQ data to compensate for the bandwidth occupied by the frame header and the IPG, thereby eliminating the need to sacrifice IQ bandwidth.
  • the preset number that is, the number of deleted control words, may be a fixed number of pre-configured numbers, such as 20, or a number that needs to be deleted according to the current line rate of the CPRI frame.
  • the sending device sends the Ethernet frame to the receiving device by using the Ethernet physical layer.
  • the preset number may be a number of control words that need to be deleted according to a current line rate of the CPRI frame.
  • the sending device deletes a preset number of control words in the CPRI frame to be transmitted, which may be specifically: the sending device acquires a current line rate corresponding to the CPRI frame to be transmitted; and the sending device is configured according to the current line rate. Determining, in the CPRI frame that needs to be transmitted, the number of control words to be deleted, wherein the total length of the number of control words that need to be deleted is not less than a sum of the total length of the frame header and the IPG; The transmitting device deletes the number of control words in the CPRI frame that needs to be transmitted.
  • the CPRI frame that is, the superframe in the CPRI protocol, includes control words that define different uses, such as synchronous timing, slow control and management, factory customization, and the like, and some reserved control words. Further optionally, the deleted control word is a custom control word or a reserved control word in the CPRI frame that needs to be transmitted.
  • the frame header and the IPG may be added to the CPRI frame after the control word is deleted, and the frame is added. Format conversion to meet the basic frame structure of the Ethernet physical layer to obtain Ethernet frames that can be transmitted over the Ethernet network.
  • the sending device may send the Ethernet frame to the receiving device by using an Ethernet network cable, so that when receiving the Ethernet frame, the receiving device removes the frame header and the IPG of the package, and restores the deleted control word. , get the CPRI data before deleting the control word, ie recovery It is a standard CPRI frame structure. Therefore, the situation that the IQ bandwidth is occupied after converting the CPRI frame into the Ethernet frame is avoided, and the CPRI data transmission efficiency is improved.
  • FIG. 12 is a schematic flowchart of another CPRI data transmission method according to an embodiment of the present invention.
  • the method in the embodiment of the present invention may be specifically applied to a receiving device. Specifically, the method may include the following. step:
  • the receiving device receives, by using an Ethernet physical layer, an Ethernet frame sent by the sending device, where the Ethernet frame is a preset number of control words in the CPRI frame that the transmitting device deletes and needs to be transmitted, and is a CPRI after deleting the control word. Frames are added to the frame header and IPG to obtain frames that can be transmitted at the Ethernet physical layer.
  • the method implemented by the present invention may be specifically applied to a receiving device, and the receiving device may specifically include the foregoing radio remote unit, analog feed digital signal distribution system, or base station digital baseband feed signal distribution system.
  • the RRU or the like in the middle can serve as a device at the receiving end when performing CPRI data transmission.
  • S202 The receiving device removes the frame header of the Ethernet frame and the IPG, to obtain a CPRI frame to be restored.
  • S203 The receiving device recovers the preset number of control words deleted from the to-be-recovered CPRI frame, and restores the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
  • the preset number is determined according to a corresponding current line rate of the CPRI frame that needs to be transmitted, and the total length of the deleted preset number of control words is not less than the frame header and the IPG. The sum of the total lengths.
  • the deleted control word is a custom control word or a reserved control word in the CPRI frame that needs to be transmitted.
  • the receiving device can remove the frame header and the IPG of the Ethernet frame, extract the CPRI frame data, and perform CPRI based on the CPRI.
  • the structure of the superframe restores the deleted control word and restores the standard CPRI superframe structure before the deletion of the control word.
  • the length of the CPRI superframe of the CPRI data format is 8192 Bytes.
  • the control word is deleted, a total of 20 bytes, which avoids the problem of crowding out the IQ data space and causing the CPRI data transmission efficiency to decrease.
  • the transmitting device that is, the transmitting end, can control to delete the control words in the 10 basic frames including the custom control word (or delete more than 10 custom control words), for a total of 20 bytes, to compensate for the Ethernet frame header.
  • +IPG takes up a total of 20 bytes to achieve bandwidth compensation.
  • the sending device performs format conversion on the CPRI frame after deleting the control word, adds the frame header and the IPG, and obtains the basic frame, that is, the Ethernet frame, transmitted by the Ethernet physical layer chip format, and sends the Ethernet frame to the receiving device.
  • the receiving end of the peer receiving device can remove the frame header and the IPG, extract the CPRI frame data, and recover the deleted control word, thereby restoring to the standard CPRI superframe structure.
  • the line rate of 1.2288 Gbps is taken as an example.
  • A is the number of antennas and C is the number of carriers.
  • the maximum A*C number supported by the uplink and/or downlink directions can be increased by the bandwidth compensation method by deleting the control word.
  • the network deployment cost can be effectively reduced.
  • the part of the control word is deleted in the CPRI frame, so that the IQ data space is no longer occupied when the GE-based CPRI data transmission is implemented, so that the single network cable can be improved.
  • the data transmission efficiency enhances the application scenario of a single network cable in the carrier system, and saves port occupation and network cable usage, reduces network deployment cost and construction difficulty, and enhances system performance.
  • FIG. 13 is a schematic flowchart of still another CPRI data transmission method according to an embodiment of the present invention.
  • the method in the embodiment of the present invention may be specifically applied to a sending device. Specifically, the method may include The following steps:
  • the sending device adds a frame header and an IPG to the CPRI frame to be transmitted, and obtains an Ethernet frame that can be transmitted on the physical layer of the Ethernet.
  • the clock corresponding to the CPRI frame is the first clock.
  • the sending device sends the Ethernet frame to the receiving device by using the Ethernet physical layer at a second clock, where the second clock is greater than the first clock.
  • Ethernet-based CPRI data transmission can also be implemented by changing the working clock of the Ethernet physical layer chip.
  • the working clock corresponding to the CPRI frame is the first clock, that is, the sending device transmits the CPRI frame on the first clock
  • the working clock corresponding to the Ethernet frame is the second clock, that is, the sending device can be in the The second clock transmits an Ethernet frame
  • the second clock transmits an Ethernet frame
  • the second clock is greater than the first clock.
  • the clock domain conversion that is, the control of the Ethernet operating clock (second clock) is greater than the CPRI clock (first clock), enabling more data to be transmitted at the same time, thereby implementing Ethernet-based CPRI data transmission, instead of crowding out the IQ data space, improves CPRI data transmission efficiency.
  • the sending device may further perform an Ethernet frame and a CPRI frame according to the clock domain transformation. A vacant byte between them determines the grouping of Ethernet frames for data transmission.
  • the sending device may calculate a frame length of the Ethernet frame according to a frame length of the CPRI frame, the first clock, and the second clock, and calculate a frame length and a length of the Ethernet frame. Determining a first difference of a frame length of the CPRI frame, and calculating a second difference between the first difference and a total length of the frame header and the IPG; determining, according to the second difference, Grouping of Ethernet frames during data transmission.
  • the first clock may be specifically 122.88 MHz
  • the second clock may be specifically 125 MHz.
  • the difference between the length of the converted Ethernet frame and the length of the CPRI frame is often greater than 20 bytes, that is, after the frame is deducted
  • the first clock is 122.88MHz and the second clock is 125MHz
  • the difference between the length of the Ethernet frame and the length of the CPRI frame is deducted by 20 bytes.
  • the remaining 121.333Byte Therefore, considering the actual implementation, the Ethernet frame can also be grouped according to the vacant byte, and the transmitting device can transmit the Ethernet frame based on the packet.
  • FIG. 14 is a schematic flowchart of another CPRI data transmission method according to an embodiment of the present invention.
  • the method in the embodiment of the present invention may be specifically applied to a receiving device. Specifically, the method is The following steps can be included:
  • the receiving device receives, at the second clock, an Ethernet frame sent by the sending device by using an Ethernet physical layer, where the Ethernet frame is that the sending device adds a frame header and an IPG to the CPRI frame that needs to be transmitted.
  • the clock corresponding to the CPRI frame is the first clock, and the second clock is greater than the first clock.
  • S402 The receiving device removes the frame header of the Ethernet frame and the IPG to obtain the CPRI frame.
  • the Ethernet-based CPRI data transmission can also be implemented by changing the working clock of the Ethernet physical layer chip.
  • the working clock corresponding to the CPRI frame is a first clock, that is, the sending
  • the device may transmit the CPRI frame on the first clock
  • the working clock corresponding to the Ethernet frame is the second clock, that is, the sending device may send an Ethernet frame on the second clock, where the second clock is greater than the first clock.
  • the receiving device can receive the Ethernet frame sent by the sending device at the second clock.
  • the first clock may be specifically 122.88 MHz
  • the second clock may be specifically 125 MHz.
  • the receiving device after receiving the Ethernet frame sent by the sending device through the Ethernet network cable, that is, the Ethernet physical layer, the receiving device can remove the frame header and the IPG of the Ethernet frame, and remove the vacant byte, thereby extracting The CPRI data is output, and the structure of the CPRI data is restored to the standard CPRI superframe structure before the transform clock domain, that is, the CPRI frame of the first clock is obtained.
  • the first clock corresponding to the CPRI frame in the transmitting device that is, the CPRI data clock is 122.88 MHz
  • the second clock corresponding to the Ethernet physical layer that is, the Ethernet physical layer clock
  • the length of a CPRI superframe is 8192 Bytes
  • the Ethernet frame corresponds to the CPRI superframe by 8333.333-8192.
  • the transmitting device that is, the transmitting end, adds a frame header, an IPG, and a spare byte (121.333 Byte) to the CPRI superframe to format the superframe (8192 Byte) of the CPRI data format to satisfy the Ethernet physics.
  • the basic frame structure of the layer is converted into an Ethernet frame (8333.333 Byte), which is a basic frame transmitted by the Ethernet physical layer chip format, thereby realizing transmission of CPRI data through the Ethernet frame.
  • the sending device may further determine the Ethernet according to the vacant number of bytes, that is, according to the difference between the length of the Ethernet frame and the CPRI superframe and the length of the frame header and the IPG. Grouping of frames. Specifically, according to the vacant number of bytes is 121.333 Byte, the transmitting device can treat each of the three Ethernet basic frames as a group, as shown in FIG. 10, the first Ethernet frame is spared 122 bytes, and the last two Ethernet frames are The spare space is 121 bytes, that is, among the three Ethernet frames of the packet, one length is 8334 bytes, and the other two lengths are 8333 bytes. The transmitting device can transmit an Ethernet frame including CPRI data to the receiving device based on the packet.
  • the receiving device that is, the receiving end receives the sending device and sends the sending After the Ethernet frame, the frame header and IPG of the Ethernet frame can be removed, and the spare byte is removed, and the CPRI data is extracted, and the structure of the CPRI data is restored to the standard CPRI superframe structure before the transformed clock domain.
  • the working clock of the Ethernet is controlled to be larger than the CPRI clock by the clock domain conversion, so that more data can be transmitted on the Ethernet network line in the same time, for example, the working frequency of the Ethernet physical layer is 125 MHz.
  • the CPRI working clock takes 122.88MHz.
  • 141.333 bytes of data can be transmitted, except for the frame header and the IPG, which has a total of 20 bytes and 121.333 bytes remaining, thereby realizing the transformation of the Ethernet physical layer chip.
  • the working clock compensates the bandwidth of the CPRI frame, and no longer squeezes the IQ data space. It does not need to sacrifice the IQ bandwidth to implement GE-based CPRI data transmission, which improves the CPRI data transmission efficiency.
  • the sending device includes: a receiver 300, a transmitter 400, a memory 200, and a processor 100.
  • the memory 200 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. A corresponding application or the like is stored in the memory 200 as a computer storage medium.
  • the receiver 300, the transmitter 400, the memory 200, and the processor 100 may be connected to each other through a bus, or may be connected by other means. In the present embodiment, a bus connection will be described.
  • the processor 100 performs the following steps:
  • the CPRI frame that needs to be transmitted is a superframe in the CPRI protocol.
  • the preset number that is, the number of deleted control words, may be a fixed number configured in advance, may also be a number determined according to a current line rate of the CPRI frame, and the like.
  • the processor 100 presets a number of CPRI frames that need to be transmitted in the deletion. Control words, perform the following steps:
  • the CPRI frame that is, the superframe in the CPRI protocol, includes control words that define different uses, such as synchronous timing, slow control and management, factory customization, and the like, and some reserved control words.
  • the deleted control word is a custom control word or a reserved control word in the CPRI frame that needs to be transmitted.
  • FIG. 16 is a schematic structural diagram of still another sending device according to an embodiment of the present invention.
  • the sending device includes: a receiver 700, a transmitter 800, a memory 600, and a processor 500.
  • the memory 600 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. A corresponding application or the like is stored in the memory 600 as a computer storage medium.
  • the receiver 700, the transmitter 800, the memory 600, and the processor 500 may be connected to each other through a bus, or may be connected by other means. In the present embodiment, a bus connection will be described.
  • the processor 500 performs the following steps:
  • the Ethernet frame is transmitted to the receiving device at the second clock and through the Ethernet physical layer, wherein the second clock is greater than the first clock.
  • Ethernet-based CPRI data transmission can also be implemented by changing the working clock of the Ethernet physical layer chip.
  • the working clock corresponding to the CPRI frame is the first clock, that is, the sending device transmits the CPRI frame on the first clock
  • the working clock corresponding to the Ethernet frame is the second clock, that is, the sending device can be in the The second clock transmits an Ethernet frame
  • the second clock transmits an Ethernet frame
  • the second clock is greater than the first clock.
  • processor 500 is further configured to perform the following steps:
  • the processor 500 performs the following steps in the second clock and sending the Ethernet frame to the receiving device through the Ethernet physical layer:
  • the Ethernet frame is transmitted to the receiving device at the second clock and through the Ethernet physical layer.
  • the first clock is 122.88 MHz
  • the second clock is 125 MHz.
  • the clock domain conversion that is, the control of the Ethernet operating clock (second clock) is greater than the CPRI clock (first clock), enabling more data to be transmitted at the same time, thereby implementing Ethernet-based CPRI data transmission, instead of crowding out the IQ data space, improves CPRI data transmission efficiency.
  • the receiving device includes: a receiver 1100, a transmitter 1200, a memory 1000, and a processor 900, where the memory 1000 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. A corresponding application or the like is stored in the memory 1000 as a computer storage medium.
  • the receiver 1100, the transmitter 1200, the memory 1000, and the processor 900 may be connected to each other through a bus, or may be connected by other means. In the present embodiment, a bus connection will be described.
  • the processor 900 performs the following steps:
  • an Ethernet frame sent by the sending device by using an Ethernet physical layer where the Ethernet frame is a preset number of control words in the CPRI frame that the transmitting device deletes and needs to be transmitted, and is deleted control
  • the CPRI frame after the word is added with a frame header and an IPG, and the obtained frame can be transmitted on the Ethernet physical layer;
  • the preset number is determined according to a corresponding current line rate of the CPRI frame that needs to be transmitted, and the total length of the deleted preset number of control words is not less than the frame header and the IPG. The sum of the total lengths.
  • the CPRI frame that is, the superframe in the CPRI protocol, includes control words that define different uses, such as synchronous timing, slow control and management, factory customization, and the like, and some reserved control words.
  • the deleted control word is a custom control word or a reserved control word in the CPRI frame that needs to be transmitted.
  • FIG. 18 is a schematic structural diagram of still another receiving device according to an embodiment of the present invention.
  • the receiving device includes: a receiver 1500, a transmitter 1600, a memory 1400, and a processor 1300.
  • the memory 1400 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. A corresponding application or the like is stored in the memory 1400 as a computer storage medium.
  • the data connection between the receiver 1500, the transmitter 1600, the memory 1400, and the processor 1300 may be performed through a bus, or may be connected by other means. In the present embodiment, a bus connection will be described.
  • the processor 1300 performs the following steps:
  • an Ethernet frame sent by the sending device at a second clock and through an Ethernet physical layer where the Ethernet frame is that the sending device adds a frame header and an IPG to a CPRI frame that needs to be transmitted, Obtaining a frame that can be transmitted on the Ethernet physical layer, the clock corresponding to the CPRI frame is a first clock, and the second clock is greater than the first clock;
  • the frame header of the Ethernet frame and the IPG are removed to obtain the CPRI frame.
  • the Ethernet-based CPRI data transmission can also be implemented by changing the working clock of the Ethernet physical layer chip.
  • the working clock corresponding to the CPRI frame is the first clock, that is, the sending device can transmit the CPRI frame on the first clock
  • the working clock corresponding to the Ethernet frame is the second clock, that is, the sending device can be in the
  • the second clock transmits an Ethernet frame
  • the second clock is greater than the first clock.
  • the receiving device may receive the Ethernet frame sent by the sending device at the second clock, and after receiving the Ethernet frame, remove the frame header and the IPG of the Ethernet frame, extract the CPRI data, and restore the transform to a transform. Standard CPRI superframe structure before the clock domain.
  • the first clock may be specifically 122.88 MHz
  • the second clock may be specifically 125 MHz.
  • the CPRI clock makes the CPRI data transmission based on the Ethernet physical layer no longer occupy the IQ data space, thereby improving the CPRI data transmission efficiency and enhancing the system performance.
  • FIG. 19 is a schematic structural diagram of a CPRI data transmission system according to an embodiment of the present invention.
  • the system in the embodiment of the present invention includes: a sending device 1 and a receiving device 2, where
  • the sending device 1 is configured to delete a preset number of control words in a CPRI frame of a public radio interface that needs to be transmitted, and add a frame header and a frame gap IPG to the CPRI frame after deleting the control word, so as to be transmitted in the physical layer of the Ethernet.
  • An Ethernet frame; the Ethernet frame is sent to the receiving device 2 by the Ethernet physical layer;
  • the receiving device 2 is configured to receive, by using the Ethernet physical layer, an Ethernet frame sent by the sending device 1; removing the frame header of the Ethernet frame and the IPG, to obtain a CPRI frame to be restored; And deleting the preset number of control words in the to-be-recovered CPRI frame, and restoring the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
  • the CPRI frame that needs to be transmitted is a superframe in the CPRI protocol, and the superframe can be used as a basic frame for Ethernet data transmission.
  • the preset number is determined according to a corresponding current line rate of the CPRI frame that needs to be transmitted, and the total length of the deleted preset number of control words is not less than the frame header and the IPG. The sum of the total lengths.
  • the deleted control word is a custom control word or a reserved control word in the CPRI frame that needs to be transmitted.
  • the part of the control word is deleted in the CPRI frame, so that the IQ data space is no longer occupied when the GE-based CPRI data transmission is implemented, so that the single network cable can be improved.
  • the data transmission efficiency enhances the application scenario of a single network cable in the carrier system, and saves port occupation and network cable usage, reduces network deployment cost and construction difficulty, and enhances system performance.
  • FIG. 20 is a schematic structural diagram of another CPRI data transmission system according to an embodiment of the present invention.
  • the system in the embodiment of the present invention includes: a sending device 1 and a receiving device 2, where
  • the sending device 1 is configured to add a frame header and an IPG to the CPRI frame that needs to be transmitted, and obtain an Ethernet frame that can be transmitted on the physical layer of the Ethernet, where the clock corresponding to the CPRI frame is the first clock; Transmitting, by the Ethernet physical layer, the Ethernet frame to the receiving device 2, where the second clock is greater than the first clock;
  • the receiving device 2 is configured to receive, by the second clock, the Ethernet frame sent by the sending device 1 by using the Ethernet physical layer; removing the frame header and the IPG of the Ethernet frame, The CPRI frame is obtained.
  • the sending device may further calculate a frame length of the Ethernet frame according to a frame length of the CPRI frame, the first clock, and the second clock, and calculate a frame length of the Ethernet frame.
  • the transmitting device can transmit the Ethernet frame to the receiving device at the second clock and over the Ethernet physical layer based on the packet.
  • the first clock may be specifically 122.88 MHz
  • the second clock may be specifically 125 MHz.
  • the working clock of the Ethernet is controlled to be larger than the CPRI clock by clock domain conversion, so that more data can be transmitted on the Ethernet network line in the same time, for example, an Ethernet object.
  • the working clock of the layer is 125MHz
  • the working clock of CPRI is 122.88MHz.
  • For a superframe (Ethernet basic frame) 141.333 bytes of data can be transmitted, except for the frame header and IPG, which has a total of 20 bytes and 121.333Byte remaining. Transforming the working clock of the Ethernet physical layer chip to compensate the bandwidth of the CPRI frame, and no longer crowding the IQ data space, without sacrificing the IQ bandwidth to implement GE-based CPRI data transmission, and improving the CPRI data transmission efficiency.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), and a random A variety of media that can store program code, such as a random access memory (RAM), a disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a common public radio interface (CPRI) data transmission method, a sending device, a receiving device and a system. The sending device comprises: a deletion module for deleting a pre-set number of control words in a common public radio interface (CPRI) frame that needs to be transmitted; a format conversion module for adding a frame head and an interpacket gap (IPG) to the CPRI frame after the deletion module deletes the control words, so as to obtain an Ethernet frame that can be transmitted on an Ethernet physical layer; and a sending module for sending the Ethernet frame to the receiving device via the Ethernet physical layer. By means of the embodiments of the present invention, the transmission efficiency of CPRI data can be improved.

Description

一种通用公共无线接口CPRI数据传输方法、相关设备及系统General public wireless interface CPRI data transmission method, related device and system 技术领域Technical field
本发明实施例涉及通信技术领域,尤其涉及一种通用公共无线接口CPRI数据传输方法、相关设备及系统。The embodiments of the present invention relate to the field of communications technologies, and in particular, to a general public radio interface CPRI data transmission method, related device and system.
背景技术Background technique
通用公共无线接口(Common Public Radio Interface,简称“CPRI”)规范是由行业合作的多家公司所制定的关于无线电基站内部关键接口的规范,其定义了物理层和数据链路层协议,用于控制和管理无线基站内部无线设备控制器(Radio Equipment Controller,简称“REC”)和无线设备(Radio Equipment,简称“RE”)之间,或者两个RE之间的数据传输。The Common Public Radio Interface ("CPRI") specification is a specification for key interfaces within a radio base station developed by a number of companies in the industry. It defines the physical layer and data link layer protocols for Controlling and managing data transmission between a radio equipment controller (Radio Equipment Controller, "REC") and a radio equipment (Radio Equipment, "RE") or between two REs.
目前,为了降低基站部署成本和施工难度,提出了将包含CPRI数据的CPRI帧调整为以太网帧,从而可以通过以太物理层芯片在网线上传输CPRI数据。该CPRI帧即为超帧,其包含的CPRI数据通常由256个基本帧组成,每个基本帧包含16个时隙,即W=0…15;其中,W=0为包括控制字的控制时隙,W=1…15为正交调制(IQ)数据时隙,供基站安排需要传输的IQ数据。在实际应用中,以太网帧的基本结构为帧头(7个0X55+1个0XD5)+数据+帧间隙(Inter Package Gap,简称“IPG”),即需要对CPRI数据封装帧头和IPG,其中,IPG至少为96个比特时间Bit Time,即12个字节。也就是说,在将包含CPRI数据的CPRI帧转换为以太网帧时,帧头和IPG总共20个字节是必不可少的。然而,千兆以太网(Gigabit Ethernet,简称“GE”)物理层芯片所能支持的最大以太网帧为10kb,很多时候,比如在线速率为1.2288Gbps,将CPRI帧调整为以太网帧时,由于帧头和IPG的封装,使得转换后的以太网帧大于10kb,为了实现基于GE的CPRI数据传输,则会挤占IQ数据带宽,使得部分IQ带宽不能用于传输IQ数据,即需要牺牲IQ带宽来实现基于GE的CPRI数据传输,使得CPRI数据的传输效率较低。 At present, in order to reduce the deployment cost and construction difficulty of the base station, it is proposed to adjust the CPRI frame including the CPRI data to an Ethernet frame, so that the CPRI data can be transmitted on the network line through the Ethernet physical layer chip. The CPRI frame is a superframe, and the CPRI data contained therein usually consists of 256 basic frames, each basic frame contains 16 time slots, that is, W=0...15; wherein, W=0 is the control time including the control word. The gap, W=1...15, is a quadrature modulation (IQ) data slot for the base station to arrange the IQ data to be transmitted. In practical applications, the basic structure of an Ethernet frame is a frame header (7 0x55+1 0XD5) + data + frame gap (Inter Package Gap, referred to as "IPG"), that is, the frame header and IPG of the CPRI data need to be encapsulated. The IPG is at least 96 bit time Bit Time, that is, 12 bytes. That is to say, when converting a CPRI frame containing CPRI data into an Ethernet frame, a total of 20 bytes of the header and the IPG are indispensable. However, the maximum Ethernet frame that can be supported by the Gigabit Ethernet (GE) physical layer chip is 10 kb. In many cases, such as the online rate of 1.2288 Gbps, when the CPRI frame is adjusted to an Ethernet frame, The frame header and the IPG are encapsulated so that the converted Ethernet frame is larger than 10 kb. In order to implement GE-based CPRI data transmission, the IQ data bandwidth is squeezed, so that part of the IQ bandwidth cannot be used to transmit IQ data, that is, the IQ bandwidth needs to be sacrificed. The implementation of GE-based CPRI data transmission makes the transmission efficiency of CPRI data low.
发明内容Summary of the invention
本发明实施例提供一种CPRI数据传输方法、相关设备及系统,能够提升CPRI数据的传输效率。The embodiment of the invention provides a CPRI data transmission method, a related device and a system, which can improve the transmission efficiency of the CPRI data.
第一方面,本发明实施例提供了一种发送设备,包括:In a first aspect, an embodiment of the present invention provides a sending device, including:
删除模块,用于删除需要传输的公共无线接口CPRI帧中预设数目个控制字;a deleting module, configured to delete a preset number of control words in a CPRI frame of a public wireless interface that needs to be transmitted;
格式转换模块,用于为所述删除模块删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧;a format conversion module, configured to add a frame header and a frame gap IPG to the CPRI frame after the deletion of the control word by the deleting module, to obtain an Ethernet frame that can be transmitted in the physical layer of the Ethernet;
发送模块,用于通过所述以太网物理层向接收设备发送所述以太网帧。And a sending module, configured to send the Ethernet frame to the receiving device by using the Ethernet physical layer.
结合第一方面,在第一方面的第一种可能的实现方式中,所述删除模块包括:In conjunction with the first aspect, in a first possible implementation manner of the first aspect, the deleting module includes:
获取单元,用于获取需要传输的CPRI帧对应的当前线速率;An acquiring unit, configured to acquire a current line rate corresponding to a CPRI frame that needs to be transmitted;
数目确定单元,用于根据所述获取单元获取的所述当前线速率,确定出所述需要传输的CPRI帧中需要删除的控制字的数目,其中,所述需要删除的所述数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和;a number determining unit, configured to determine, according to the current line rate acquired by the acquiring unit, the number of control words that need to be deleted in the CPRI frame that needs to be transmitted, where the number of control words that need to be deleted The total length is not less than the sum of the total length of the frame header and the IPG;
数据删除单元,用于删除所述需要传输的CPRI帧中所述数目确定单元确定出的所述数目个控制字。And a data deleting unit, configured to delete the number of control words determined by the number determining unit in the CPRI frame that needs to be transmitted.
结合第一方面,或者第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。With reference to the first aspect, or the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, the deleted control word is a custom in the CPRI frame that needs to be transmitted Control word or reserved control word.
第二方面,本发明实施例还提供了一种发送设备,包括:In a second aspect, the embodiment of the present invention further provides a sending device, including:
格式转换模块,用于为需要传输的CPRI帧增加帧头和IPG,得到能在以太网物理层传输的以太网帧,所述CPRI帧对应的时钟为第一时钟;a format conversion module, configured to add a frame header and an IPG to the CPRI frame to be transmitted, to obtain an Ethernet frame that can be transmitted on the physical layer of the Ethernet, where the clock corresponding to the CPRI frame is the first clock;
发送模块,用于在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,其中,所述第二时钟大于所述第一时钟。And a sending module, configured to send the Ethernet frame to the receiving device by using the Ethernet physical layer at a second clock, where the second clock is greater than the first clock.
结合第二方面,在第二方面的第一种可能的实现方式中,所述发送设备还 包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the sending device is further include:
计算模块,用于根据所述CPRI帧的帧长度、所述第一时钟以及所述第二时钟,计算得到所述以太网帧的帧长度;a calculation module, configured to calculate, according to a frame length of the CPRI frame, the first clock, and the second clock, a frame length of the Ethernet frame;
所述计算模块,还用于计算所述以太网帧的帧长度与所述CPRI帧的帧长度的第一差值,并计算所述第一差值与所述帧头和所述IPG的总长度之和的第二差值;The calculating module is further configured to calculate a first difference between a frame length of the Ethernet frame and a frame length of the CPRI frame, and calculate the first difference and the total of the frame header and the IPG. a second difference in the sum of the lengths;
分组确定模块,用于根据所述计算模块计算得到的所述第二差值,确定进行数据传输时以太网帧的分组;a packet determining module, configured to determine, according to the second difference value calculated by the calculating module, a packet of an Ethernet frame when performing data transmission;
所述发送模块具体用于:The sending module is specifically configured to:
基于所述分组,在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧。Based on the packet, the Ethernet frame is transmitted to the receiving device at the second clock and through the Ethernet physical layer.
结合第二方面,或者第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述第一时钟为122.88MHz,所述第二时钟为125MHz。With reference to the second aspect, or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the first clock is 122.88 MHz, and the second clock is 125 MHz.
第三方面,本发明实施例还提供了一种接收设备,包括:In a third aspect, the embodiment of the present invention further provides a receiving device, including:
接收模块,用于通过以太网物理层接收发送设备发送的以太网帧,所述以太网帧是所述发送设备删除需要传输的CPRI帧中预设数目个控制字,并为删除控制字后的CPRI帧增加帧头和IPG,得到的能在以太网物理层传输的帧;a receiving module, configured to receive, by using an Ethernet physical layer, an Ethernet frame sent by the sending device, where the Ethernet frame is a preset number of control words in the CPRI frame that the transmitting device deletes and needs to be transmitted, and is deleted after the control word is deleted. The CPRI frame adds a frame header and an IPG to obtain a frame that can be transmitted on the Ethernet physical layer;
恢复模块,用于去掉所述以太网帧的所述帧头和所述IPG,得到待恢复CPRI帧;a recovery module, configured to remove the frame header of the Ethernet frame and the IPG, to obtain a CPRI frame to be restored;
所述恢复模块,还用于从所述待恢复CPRI帧中恢复删除的所述预设数目个控制字,将所述待恢复CPRI帧恢复为删除控制字前的CPRI帧。The recovery module is further configured to recover the preset number of control words deleted from the to-be-recovered CPRI frame, and restore the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
结合第三方面,在第三方面的第一种可能的实现方式中,所述预设数目是根据需要传输的CPRI帧的对应的当前线速率确定出的,且删除的所述预设数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和。With reference to the third aspect, in a first possible implementation manner of the third aspect, the preset number is determined according to a corresponding current line rate of a CPRI frame that needs to be transmitted, and the preset number of the deleted ones The total length of the control word is not less than the sum of the total length of the frame header and the IPG.
结合第三方面,或者第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,删除的所述控制字为所述需要传输的CPRI帧中的自 定义控制字或预留的控制字。With reference to the third aspect, or the first possible implementation manner of the third aspect, in the second possible implementation manner of the third aspect, the deleted control word is the self in the CPRI frame that needs to be transmitted. Define control words or reserved control words.
第四方面,本发明实施例还提供了一种接收设备,包括:In a fourth aspect, the embodiment of the present invention further provides a receiving device, including:
接收模块,用于在第二时钟并通过以太网物理层接收发送设备发送的以太网帧,其中,所述以太网帧是所述发送设备为需要传输的CPRI帧增加帧头和IPG,得到的能在以太网物理层传输的帧,所述CPRI帧对应的时钟为第一时钟,且所述第二时钟大于所述第一时钟;a receiving module, configured to receive, by the second clock, an Ethernet frame sent by the sending device by using an Ethernet physical layer, where the Ethernet frame is obtained by adding, by the sending device, a frame header and an IPG to a CPRI frame that needs to be transmitted. a frame that can be transmitted on the Ethernet physical layer, the clock corresponding to the CPRI frame is a first clock, and the second clock is greater than the first clock;
恢复模块,用于去掉所述以太网帧的所述帧头和所述IPG,得到所述CPRI帧。And a recovery module, configured to remove the frame header of the Ethernet frame and the IPG, to obtain the CPRI frame.
结合第四方面,在第四方面的第一种可能的实现方式中,所述第一时钟为122.88MHz,所述第二时钟为125MHz。In conjunction with the fourth aspect, in a first possible implementation manner of the fourth aspect, the first clock is 122.88 MHz, and the second clock is 125 MHz.
第五方面,本发明实施例还提供了一种CPRI数据传输方法,包括:In a fifth aspect, the embodiment of the present invention further provides a CPRI data transmission method, including:
发送设备删除需要传输的公共无线接口CPRI帧中预设数目个控制字;The sending device deletes a preset number of control words in the CPRI frame of the public radio interface to be transmitted;
所述发送设备为删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧;The sending device adds a frame header and a frame gap IPG to the CPRI frame after deleting the control word, and obtains an Ethernet frame that can be transmitted on the Ethernet physical layer;
所述发送设备通过所述以太网物理层向接收设备发送所述以太网帧。The transmitting device sends the Ethernet frame to the receiving device by using the Ethernet physical layer.
结合第五方面,在第五方面的第一种可能的实现方式中,所述发送设备删除需要传输的CPRI帧中预设数目个控制字,包括:With reference to the fifth aspect, in a first possible implementation manner of the fifth aspect, the sending device deletes a preset number of control words in a CPRI frame that needs to be transmitted, including:
发送设备获取需要传输的CPRI帧对应的当前线速率;The sending device acquires a current line rate corresponding to the CPRI frame that needs to be transmitted;
所述发送设备根据所述当前线速率,确定出所述需要传输的CPRI帧中需要删除的控制字的数目,其中,所述需要删除的所述数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和;Determining, by the sending device, the number of control words to be deleted in the CPRI frame that needs to be transmitted, according to the current line rate, where the total length of the number of control words that need to be deleted is not less than the frame The sum of the total length of the header and the IPG;
所述发送设备删除所述需要传输的CPRI帧中所述数目个控制字。The transmitting device deletes the number of control words in the CPRI frame that needs to be transmitted.
结合第五方面,或者第五方面的第一种可能的实现方式,在第五方面的第二种可能的实现方式中,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。With reference to the fifth aspect, or the first possible implementation manner of the fifth aspect, in a second possible implementation manner of the fifth aspect, the deleted control word is a custom in the CPRI frame that needs to be transmitted Control word or reserved control word.
第六方面,本发明实施例还提供了一种CPRI数据传输方法,包括:In a sixth aspect, the embodiment of the present invention further provides a CPRI data transmission method, including:
发送设备为需要传输的CPRI帧增加帧头和IPG,得到能在以太网物理层 传输的以太网帧,所述CPRI帧对应的时钟为第一时钟;The sending device adds a frame header and an IPG to the CPRI frame that needs to be transmitted, so that it can be in the physical layer of the Ethernet. The transmitted Ethernet frame, where the clock corresponding to the CPRI frame is the first clock;
所述发送设备在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,其中,所述第二时钟大于所述第一时钟。The sending device sends the Ethernet frame to the receiving device by using the Ethernet physical layer at a second clock, where the second clock is greater than the first clock.
结合第六方面,在第六方面的第一种可能的实现方式中,所述方法还包括:With reference to the sixth aspect, in a first possible implementation manner of the sixth aspect, the method further includes:
所述发送设备根据所述CPRI帧的帧长度、所述第一时钟以及所述第二时钟,计算得到所述以太网帧的帧长度;Transmitting, by the sending device, a frame length of the Ethernet frame according to a frame length of the CPRI frame, the first clock, and the second clock;
所述发送设备计算所述以太网帧的帧长度与所述CPRI帧的帧长度的第一差值,并计算所述第一差值与所述帧头和所述IPG的总长度之和的第二差值;The sending device calculates a first difference between a frame length of the Ethernet frame and a frame length of the CPRI frame, and calculates a sum of the first difference value and a total length of the frame header and the IPG. Second difference
所述发送设备根据所述第二差值,确定进行数据传输时以太网帧的分组;The sending device determines, according to the second difference, a packet of an Ethernet frame when performing data transmission;
所述发送设备在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,包括:Sending, by the sending device, the Ethernet frame to the receiving device by using the Ethernet physical layer on the second clock, including:
所述发送设备基于所述分组,在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧。The transmitting device transmits the Ethernet frame to the receiving device at the second clock and through the Ethernet physical layer based on the packet.
结合第六方面,或者第六方面的第一种可能的实现方式,在第六方面的第二种可能的实现方式中,所述第一时钟为122.88MHz,所述第二时钟为125MHz。With reference to the sixth aspect, or the first possible implementation manner of the sixth aspect, in a second possible implementation manner of the sixth aspect, the first clock is 122.88 MHz, and the second clock is 125 MHz.
第七方面,本发明实施例还提供了一种CPRI数据传输方法,包括:In a seventh aspect, the embodiment of the present invention further provides a CPRI data transmission method, including:
接收设备通过以太网物理层接收发送设备发送的以太网帧,所述以太网帧是所述发送设备删除需要传输的CPRI帧中预设数目个控制字,并为删除控制字后的CPRI帧增加帧头和IPG,得到的能在以太网物理层传输的帧;The receiving device receives, by the Ethernet physical layer, an Ethernet frame sent by the sending device, where the Ethernet frame is a preset number of control words in the CPRI frame that the transmitting device deletes and needs to be transmitted, and is added to the CPRI frame after deleting the control word. Frame header and IPG, obtained frames that can be transmitted on the Ethernet physical layer;
所述接收设备去掉所述以太网帧的所述帧头和所述IPG,得到待恢复CPRI帧;Receiving, by the receiving device, the frame header of the Ethernet frame and the IPG, to obtain a CPRI frame to be restored;
所述接收设备从所述待恢复CPRI帧中恢复删除的所述预设数目个控制字,将所述待恢复CPRI帧恢复为删除控制字前的CPRI帧。And the receiving device recovers the preset number of control words deleted from the to-be-recovered CPRI frame, and restores the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
结合第七方面,在第七方面的第一种可能的实现方式中,所述预设数目是根据需要传输的CPRI帧的对应的当前线速率确定出的,且删除的所述预设数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和。 With reference to the seventh aspect, in a first possible implementation manner of the seventh aspect, the preset number is determined according to a corresponding current line rate of a CPRI frame that needs to be transmitted, and the preset number of the deleted ones The total length of the control word is not less than the sum of the total length of the frame header and the IPG.
结合第七方面,或者第七方面的第一种可能的实现方式,在第七方面的第二种可能的实现方式中,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。With reference to the seventh aspect, or the first possible implementation manner of the seventh aspect, in the second possible implementation manner of the seventh aspect, the deleted control word is a custom in the CPRI frame that needs to be transmitted Control word or reserved control word.
第八方面,本发明实施例还提供了一种CPRI数据传输方法,包括:In an eighth aspect, the embodiment of the present invention further provides a CPRI data transmission method, including:
接收设备在第二时钟并通过以太网物理层接收发送设备发送的以太网帧,其中,所述以太网帧是所述发送设备为需要传输的CPRI帧增加帧头和IPG,得到的能在以太网物理层传输的帧,所述CPRI帧对应的时钟为第一时钟,且所述第二时钟大于所述第一时钟;The receiving device receives the Ethernet frame sent by the sending device at the second clock and through the Ethernet physical layer, where the Ethernet frame is that the sending device adds a frame header and an IPG to the CPRI frame that needs to be transmitted, and the obtained device can be in the ether. a frame transmitted by the physical layer of the network, the clock corresponding to the CPRI frame is a first clock, and the second clock is greater than the first clock;
所述接收设备去掉所述以太网帧的所述帧头和所述IPG,得到所述CPRI帧。The receiving device removes the frame header of the Ethernet frame and the IPG to obtain the CPRI frame.
结合第八方面,在第八方面的第一种可能的实现方式中,所述第一时钟为122.88MHz,所述第二时钟为125MHz。In conjunction with the eighth aspect, in a first possible implementation manner of the eighth aspect, the first clock is 122.88 MHz, and the second clock is 125 MHz.
第九方面,本发明实施例还提供了一种计算机存储介质,所述计算机存储介质存储有程序,所述程序执行时包括上述第五方面的CPRI数据传输方法的部分或全部的步骤。According to a ninth aspect, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a program, and the program includes some or all of the steps of the CPRI data transmission method of the fifth aspect.
第十方面,本发明实施例还提供了一种计算机存储介质,所述计算机存储介质存储有程序,所述程序执行时包括上述第六方面的CPRI数据传输方法的部分或全部的步骤。According to a tenth aspect, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a program, and the program includes some or all of the steps of the CPRI data transmission method of the sixth aspect.
第十一方面,本发明实施例还提供了一种计算机存储介质,所述计算机存储介质存储有程序,所述程序执行时包括上述第七方面的CPRI数据传输方法的部分或全部的步骤。In an eleventh aspect, an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a program, and the program includes some or all of the steps of the CPRI data transmission method of the seventh aspect.
第十二方面,本发明实施例还提供了一种计算机存储介质,所述计算机存储介质存储有程序,所述程序执行时包括上述第八方面的CPRI数据传输方法的部分或全部的步骤。According to a twelfth aspect, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a program, and the program includes some or all of the steps of the CPRI data transmission method of the eighth aspect.
第十三方面,本发明实施例还提供了一种发送设备,包括:发射器、接收器、存储器和处理器,In a thirteenth aspect, the embodiment of the present invention further provides a sending device, including: a transmitter, a receiver, a memory, and a processor.
其中,所述处理器执行以下步骤: Wherein the processor performs the following steps:
删除需要传输的公共无线接口CPRI帧中预设数目个控制字;Deleting a preset number of control words in the CPRI frame of the public radio interface to be transmitted;
为删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧;Adding a frame header and a frame gap IPG to the CPRI frame after deleting the control word, and obtaining an Ethernet frame that can be transmitted on the Ethernet physical layer;
基于所述发射器,并通过所述以太网物理层向接收设备发送所述以太网帧。Based on the transmitter, and transmitting the Ethernet frame to a receiving device through the Ethernet physical layer.
结合第十三方面,在第十三方面的第一种可能的实现方式中,所述处理器在执行所述删除需要传输的CPRI帧中预设数目个控制字,具体执行以下步骤:In conjunction with the thirteenth aspect, in a first possible implementation manner of the thirteenth aspect, the processor performs a preset number of control words in a CPRI frame that needs to be transmitted by performing the deleting, and performing the following steps:
获取需要传输的CPRI帧对应的当前线速率;Obtain the current line rate corresponding to the CPRI frame to be transmitted;
根据所述当前线速率,确定出所述需要传输的CPRI帧中需要删除的控制字的数目,其中,所述需要删除的所述数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和;Determining, according to the current line rate, the number of control words that need to be deleted in the CPRI frame that needs to be transmitted, where the total length of the number of control words that need to be deleted is not less than the frame header and the The sum of the total lengths of the IPGs;
删除所述需要传输的CPRI帧中所述数目个控制字。Deleting the number of control words in the CPRI frame that needs to be transmitted.
结合第十三方面,或者第十三方面的第一种可能的实现方式,在第十三方面的第二种可能的实现方式中,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。With reference to the thirteenth aspect, or the first possible implementation manner of the thirteenth aspect, in the second possible implementation manner of the thirteenth aspect, the deleted control word is in the CPRI frame that needs to be transmitted. Custom control word or reserved control word.
第十四方面,本发明实施例还提供了一种发送设备,包括:发射器、接收器、存储器和处理器,In a fourteenth aspect, the embodiment of the present invention further provides a sending device, including: a transmitter, a receiver, a memory, and a processor.
其中,所述处理器执行以下步骤:Wherein the processor performs the following steps:
为需要传输的CPRI帧增加帧头和IPG,得到能在以太网物理层传输的以太网帧,所述CPRI帧对应的时钟为第一时钟;Adding a frame header and an IPG to the CPRI frame to be transmitted, and obtaining an Ethernet frame that can be transmitted on the physical layer of the Ethernet, where the clock corresponding to the CPRI frame is the first clock;
基于所述发射器,在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,其中,所述第二时钟大于所述第一时钟。And transmitting, according to the transmitter, the Ethernet frame to the receiving device at the second clock and through the Ethernet physical layer, wherein the second clock is greater than the first clock.
结合第十四方面,在第十四方面的第一种可能的实现方式中,所述处理器还用于执行以下步骤:In conjunction with the fourteenth aspect, in a first possible implementation of the fourteenth aspect, the processor is further configured to perform the following steps:
根据所述CPRI帧的帧长度、所述第一时钟以及所述第二时钟,计算得到所述以太网帧的帧长度;Calculating a frame length of the Ethernet frame according to a frame length of the CPRI frame, the first clock, and the second clock;
计算所述以太网帧的帧长度与所述CPRI帧的帧长度的第一差值,并计算 所述第一差值与所述帧头和所述IPG的总长度之和的第二差值;Calculating a first difference between a frame length of the Ethernet frame and a frame length of the CPRI frame, and calculating a second difference between the first difference and a sum of the frame header and the total length of the IPG;
根据所述第二差值,确定进行数据传输时以太网帧的分组;Determining, according to the second difference, a packet of an Ethernet frame when performing data transmission;
所述处理器在执行所述在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,具体执行以下步骤:The processor is configured to send the Ethernet frame to the receiving device by using the Ethernet physical layer, and perform the following steps:
基于所述分组,在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧。Based on the packet, the Ethernet frame is transmitted to the receiving device at the second clock and through the Ethernet physical layer.
结合第十四方面,或者第十四方面的第一种可能的实现方式,在第十四方面的第二种可能的实现方式中,所述第一时钟为122.88MHz,所述第二时钟为125MHz。In conjunction with the fourteenth aspect, or the first possible implementation of the fourteenth aspect, in a second possible implementation of the fourteenth aspect, the first clock is 122.88 MHz, and the second clock is 125MHz.
第十五方面,本发明实施例还提供了一种接收设备,包括:发射器、接收器、存储器和处理器,In a fifteenth aspect, the embodiment of the present invention further provides a receiving device, including: a transmitter, a receiver, a memory, and a processor.
其中,所述处理器执行以下步骤:Wherein the processor performs the following steps:
基于所述接收器,并通过以太网物理层接收发送设备发送的以太网帧,所述以太网帧是所述发送设备删除需要传输的CPRI帧中预设数目个控制字,并为删除控制字后的CPRI帧增加帧头和IPG,得到的能在以太网物理层传输的帧;Receiving, according to the receiver, an Ethernet frame sent by the sending device by using an Ethernet physical layer, where the Ethernet frame is a preset number of control words in the CPRI frame that the transmitting device deletes and needs to be transmitted, and the control word is deleted. The subsequent CPRI frame adds a frame header and an IPG to obtain a frame that can be transmitted on the Ethernet physical layer;
去掉所述以太网帧的所述帧头和所述IPG,得到待恢复CPRI帧;Removing the frame header of the Ethernet frame and the IPG, to obtain a CPRI frame to be restored;
从所述待恢复CPRI帧中恢复删除的所述预设数目个控制字,将所述待恢复CPRI帧恢复为删除控制字前的CPRI帧。And recovering the preset number of control words from the to-be-recovered CPRI frame, and restoring the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
结合第十五方面,在第十五方面的第一种可能的实现方式中,所述预设数目是根据需要传输的CPRI帧的对应的当前线速率确定出的,且删除的所述预设数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和。With reference to the fifteenth aspect, in a first possible implementation manner of the fifteenth aspect, the preset number is determined according to a corresponding current line rate of a CPRI frame that needs to be transmitted, and the preset is deleted. The total length of the number of control words is not less than the sum of the total length of the frame header and the IPG.
结合第十五方面,或者第十五方面的第一种可能的实现方式,在第十五方面的第二种可能的实现方式中,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。With reference to the fifteenth aspect, or the first possible implementation manner of the fifteenth aspect, in the second possible implementation manner of the fifteenth aspect, the deleted control word is in the CPRI frame that needs to be transmitted. Custom control word or reserved control word.
第十六方面,本发明实施例提供了一种接收设备,包括:发射器、接收器、存储器和处理器, In a sixteenth aspect, an embodiment of the present invention provides a receiving device, including: a transmitter, a receiver, a memory, and a processor.
其中,所述处理器执行以下步骤:Wherein the processor performs the following steps:
基于所述接收器,在第二时钟并通过以太网物理层接收发送设备发送的以太网帧,其中,所述以太网帧是所述发送设备为需要传输的CPRI帧增加帧头和IPG,得到的能在以太网物理层传输的帧,所述CPRI帧对应的时钟为第一时钟,且所述第二时钟大于所述第一时钟;Receiving, according to the receiver, an Ethernet frame sent by the sending device by using the Ethernet physical layer at the second clock, where the Ethernet frame is that the sending device adds a frame header and an IPG to the CPRI frame that needs to be transmitted, a frame that can be transmitted on the Ethernet physical layer, the clock corresponding to the CPRI frame is a first clock, and the second clock is greater than the first clock;
去掉所述以太网帧的所述帧头和所述IPG,得到所述CPRI帧。The frame header of the Ethernet frame and the IPG are removed to obtain the CPRI frame.
结合第十六方面,在第十六方面的第一种可能的实现方式中,所述第一时钟为122.88MHz,所述第二时钟为125MHz。In conjunction with the sixteenth aspect, in a first possible implementation of the sixteenth aspect, the first clock is 122.88 MHz, and the second clock is 125 MHz.
第十七方面,本发明实施例还提供了一种CPRI数据传输系统,包括:发送设备和接收设备,其中,In a seventeenth aspect, the embodiment of the present invention further provides a CPRI data transmission system, including: a sending device and a receiving device, where
所述发送设备,用于删除需要传输的公共无线接口CPRI帧中预设数目个控制字;为删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧;通过所述以太网物理层向所述接收设备发送所述以太网帧;The sending device is configured to delete a preset number of control words in a CPRI frame of a public radio interface that needs to be transmitted; add a frame header and a frame gap IPG to the CPRI frame after deleting the control word, and obtain an ether that can be transmitted in the physical layer of the Ethernet. a network frame; sending, by the Ethernet physical layer, the Ethernet frame to the receiving device;
所述接收设备,用于通过所述以太网物理层接收所述发送设备发送的以太网帧;去掉所述以太网帧的所述帧头和所述IPG,得到待恢复CPRI帧;从所述待恢复CPRI帧中恢复删除的所述预设数目个控制字,将所述待恢复CPRI帧恢复为删除控制字前的CPRI帧。The receiving device is configured to receive, by the Ethernet physical layer, an Ethernet frame sent by the sending device, remove the frame header of the Ethernet frame, and the IPG, to obtain a CPRI frame to be restored; And deleting the preset number of control words in the CPRI frame to be restored, and restoring the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
第十八方面,本发明实施例提供了一种CPRI数据传输系统,包括:发送设备和接收设备,其中,In an eighteenth aspect, the embodiment of the present invention provides a CPRI data transmission system, including: a sending device and a receiving device, where
所述发送设备,用于为需要传输的CPRI帧增加帧头和IPG,得到能在以太网物理层传输的以太网帧,所述CPRI帧对应的时钟为第一时钟;在第二时钟并通过所述以太网物理层向所述接收设备发送所述以太网帧,其中,所述第二时钟大于所述第一时钟;The sending device is configured to add a frame header and an IPG to the CPRI frame that needs to be transmitted, and obtain an Ethernet frame that can be transmitted on the physical layer of the Ethernet, where the clock corresponding to the CPRI frame is the first clock; The Ethernet physical layer sends the Ethernet frame to the receiving device, where the second clock is greater than the first clock;
所述接收设备,用于在所述第二时钟并通过所述以太网物理层接收所述发送设备发送的以太网帧;去掉所述以太网帧的所述帧头和所述IPG,得到所述CPRI帧。 The receiving device is configured to receive, by the second clock, an Ethernet frame sent by the sending device by using the Ethernet physical layer; removing the frame header of the Ethernet frame and the IPG, and obtaining the Said CPRI frame.
本发明实施例在通过以太网物理层芯片传输CPRI数据时,通过在CPRI帧中删除部分控制字,在删除的控制字的位置传输IQ数据,或者通过时钟域转换,控制以太网的工作时钟大于CPRI时钟,使得该基于以太网物理层的CPRI数据传输不再挤占IQ数据空间,从而提高了CPRI数据传输效率,增强了系统性能。In the embodiment of the present invention, when the CPRI data is transmitted through the Ethernet physical layer chip, the partial control word is deleted in the CPRI frame, the IQ data is transmitted at the position of the deleted control word, or the operating clock of the control Ethernet is greater than by the clock domain conversion. The CPRI clock makes the CPRI data transmission based on the Ethernet physical layer no longer occupy the IQ data space, thereby improving the CPRI data transmission efficiency and enhancing the system performance.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1a是本发明实施例提供的一种应用场景的系统示意图;FIG. 1 is a schematic diagram of a system for applying an application scenario according to an embodiment of the present disclosure;
图1b是本发明实施例提供的一种应用场景的系统示意图;1b is a schematic diagram of a system for applying an application scenario according to an embodiment of the present invention;
图1c是本发明实施例提供的又一种应用场景的系统示意图;FIG. 1 is a schematic diagram of another system of application scenarios provided by an embodiment of the present invention;
图1d是本发明实施例提供的再一种应用场景的系统示意图;FIG. 1 is a schematic diagram of a system of another application scenario provided by an embodiment of the present invention;
图2是本发明实施例提供的一种发送设备的结构示意图;2 is a schematic structural diagram of a sending device according to an embodiment of the present invention;
图3是本发明实施例提供的一种以太网帧的结构示意图;3 is a schematic structural diagram of an Ethernet frame according to an embodiment of the present invention;
图4是本发明实施例提供的一种超帧的结构示意图;4 is a schematic structural diagram of a superframe according to an embodiment of the present invention;
图5是本发明实施例提供的一种接收设备的结构示意图;FIG. 5 is a schematic structural diagram of a receiving device according to an embodiment of the present disclosure;
图6是本发明实施例提供的一种通过删除控制字实现CPRI数据传输的结构示意图;6 is a schematic structural diagram of implementing CPRI data transmission by deleting a control word according to an embodiment of the present invention;
图7是本发明实施例提供的另一种发送设备的结构示意图;FIG. 7 is a schematic structural diagram of another sending device according to an embodiment of the present disclosure;
图8是本发明实施例提供的另一种接收设备的结构示意图;FIG. 8 is a schematic structural diagram of another receiving device according to an embodiment of the present disclosure;
图9是本发明实施例提供的一种通过变换以太网物理层时钟实现CPRI数据传输的结构示意图;FIG. 9 is a schematic structural diagram of implementing CPRI data transmission by transforming an Ethernet physical layer clock according to an embodiment of the present invention;
图10是本发明实施例提供的一种以太网帧分组结构示意图;FIG. 10 is a schematic structural diagram of an Ethernet frame grouping according to an embodiment of the present invention;
图11是本发明实施例提供的一种CPRI数据传输方法的流程示意图; 11 is a schematic flowchart of a CPRI data transmission method according to an embodiment of the present invention;
图12是本发明实施例提供的另一种CPRI数据传输方法的流程示意图;FIG. 12 is a schematic flowchart diagram of another CPRI data transmission method according to an embodiment of the present invention;
图13是本发明实施例提供的又一种CPRI数据传输方法的流程示意图;FIG. 13 is a schematic flowchart of still another CPRI data transmission method according to an embodiment of the present invention; FIG.
图14是本发明实施例提供的再一种CPRI数据传输方法的流程示意图;FIG. 14 is a schematic flowchart of still another CPRI data transmission method according to an embodiment of the present invention; FIG.
图15是本发明实施例提供的又一种发送设备的结构示意图;FIG. 15 is a schematic structural diagram of still another sending device according to an embodiment of the present disclosure;
图16是本发明实施例提供的再一种发送设备的结构示意图;FIG. 16 is a schematic structural diagram of still another transmitting device according to an embodiment of the present disclosure;
图17是本发明实施例提供的又一种接收设备的结构示意图;FIG. 17 is a schematic structural diagram of still another receiving device according to an embodiment of the present disclosure;
图18是本发明实施例提供的再一种接收设备的结构示意图;FIG. 18 is a schematic structural diagram of still another receiving device according to an embodiment of the present disclosure;
图19是本发明实施例提供的一种CPRI数据传输系统的结构示意图;19 is a schematic structural diagram of a CPRI data transmission system according to an embodiment of the present invention;
图20是本发明实施例提供的另一种CPRI数据传输系统的结构示意图。FIG. 20 is a schematic structural diagram of another CPRI data transmission system according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
应当理解的是,本发明实施例的技术方案可应用于各种制式的无线通信系统,例如:码分多址(Code Division Multiple Access,简称“CDMA”)系统、宽带码分多址(Wideband Code Division Multiple Access,简称“WCDMA”)系统、长期演进(Long Term Evolution,简称“LTE”)系统、通用移动通信系统(Universal Mobile Telecommunication System,简称“UMTS”)或无线局域网(Wireless Local Area Networks,简称“WLAN”)通信系统等。其应用场景可以为室内分布系统或室外分布系统,本发明实施例不做限定。It should be understood that the technical solution of the embodiments of the present invention can be applied to various types of wireless communication systems, such as Code Division Multiple Access ("CDMA") system, Wideband Code Division Multiple Access (Wideband Code). Division Multiple Access (WCDMA) system, Long Term Evolution (LTE) system, Universal Mobile Telecommunication System (UMTS) or Wireless Local Area Networks (referred to as "Wireless Local Area Networks") "WLAN") communication system, etc. The application scenario may be an indoor distribution system or an outdoor distribution system, which is not limited in the embodiment of the present invention.
具体的,如图1a所示,从具体应用上来看,CPRI规范可用于基站基带单元和射频远端单元(Radio Remote Unit,简称“RRU”)之间,以及RRU与RRU之间的数据传输。或者,如图1b所示,该CPRI规范还可用于基站基带单元与扩展单元之间,以及扩展单元与RRU之间的数据传输。例如,本发明实施例的所述方法可具体应用于以下系统架构相关的CPRI接口的数据传输: 射频拉远系统、模拟馈入数字信号分布系统、基站数字基带馈入信号分布系统等等。Specifically, as shown in FIG. 1a, the CPRI specification can be used for data transmission between a base station baseband unit and a radio remote unit (Radio Remote Unit (RRU)), and between the RRU and the RRU. Alternatively, as shown in FIG. 1b, the CPRI specification can also be used for data transmission between a base station baseband unit and an extension unit, and between an extension unit and an RRU. For example, the method in the embodiment of the present invention may be specifically applied to data transmission of a CPRI interface related to the following system architecture: RF remote system, analog feed digital signal distribution system, base station digital baseband feed signal distribution system, etc.
其中,如图1a所示,在射频拉远系统中,本发明实施例可应用于基站基带单元与RRU之间,或者RRU与RRU之间采用的CPRI接口的数据传输。As shown in FIG. 1a, in the radio remote system, the embodiment of the present invention can be applied to data transmission between a base station baseband unit and an RRU, or a CPRI interface used between an RRU and an RRU.
其中,如图1c所示,是本发明实施例提供的又一种应用场景的系统示意图,具体为模拟馈入数字信号分布系统示意图。在模拟馈入数字信号分布系统中,为了实现拉远以及扩大基站的覆盖范围,减少上行噪声叠加,该模拟馈入数字信号分布系统采用了光纤+五类线、光纤+光纤直放站的分布方式。如图1c所示,本发明实施例还可应用于接入单元与扩展单元之间,扩展单元与扩展单元之间,扩展单元与RRU之间,或者RRU与RRU之间采用的CPRI接口的数据传输。As shown in FIG. 1c, it is a schematic diagram of another application scenario provided by the embodiment of the present invention, which is specifically a schematic diagram of an analog feed digital signal distribution system. In the analog feed digital signal distribution system, in order to realize the remote and expand the coverage of the base station and reduce the uplink noise superposition, the analog feed digital signal distribution system adopts the distribution of the fiber + five-wire, fiber + fiber repeater. the way. As shown in FIG. 1c, the embodiment of the present invention is also applicable to data of a CPRI interface between an access unit and an extension unit, between an extension unit and an extension unit, between an extension unit and an RRU, or between an RRU and an RRU. transmission.
其中,如图1d所示,是本发明实施例提供的再一种应用场景的系统示意图,具体为基站数字基带馈入信号分布系统示意图。该基站数字基带馈入信号分布系统与上述模拟馈入数字信号分布系统的差异主要是将接入单元变换成基带单元,由基带单元将基带信号直接馈入扩展单元。如图1d所示,在该基站数字基带馈入信号分布系统中,主要用于在基带单元与扩展单元之间,扩展单元与扩展单元之间,扩展单元与RRU之间,RRU与RRU之间采用的CPRI接口的数据传输。As shown in FIG. 1d, it is a system schematic diagram of another application scenario provided by the embodiment of the present invention, which is specifically a schematic diagram of a base station digital baseband feed signal distribution system. The difference between the base station digital baseband feed signal distribution system and the above analog feed digital signal distribution system is mainly to convert the access unit into a baseband unit, and the baseband unit directly feeds the baseband signal into the extension unit. As shown in FIG. 1d, in the base station digital baseband feed signal distribution system, mainly used between the baseband unit and the extension unit, between the extension unit and the extension unit, between the extension unit and the RRU, between the RRU and the RRU Data transmission using the CPRI interface.
请参见图2,是本发明实施例提供的一种发送设备的结构示意图,具体的,本发明实施例的所述发送设备可包括删除模块11、格式转换模块12以及发送模块13。其中,2 is a schematic structural diagram of a sending device according to an embodiment of the present invention. Specifically, the sending device in the embodiment of the present invention may include a deleting module 11, a format converting module 12, and a sending module 13. among them,
所述删除模块11,用于删除需要传输的公共无线接口CPRI帧中预设数目个控制字。The deleting module 11 is configured to delete a preset number of control words in a CPRI frame of a public radio interface that needs to be transmitted.
需要说明的是,本发明实施的所述发送设备可具体为包括上述的射频拉远单元中的基带处理单元、模拟馈入数字信号分布系统或基站数字基带馈入信号分布系统中的扩展单元等在进行CPRI数据传输时可作为发送端的设备。 It should be noted that the sending device that is implemented by the present invention may specifically be a baseband processing unit, an analog feed digital signal distribution system, or an extension unit in a baseband digital baseband feed signal distribution system, including the above-mentioned radio remote unit. It can be used as a device at the transmitting end when performing CPRI data transmission.
具体实施例中,该需要传输的CPRI帧即为CPRI协议中的超帧,即可将该超帧作为以太网数据传输的一个基本帧。其中,该一个超帧由256个CPRI基本帧组成,一个CPRI基本帧的帧长:1Tc=1/3.84MHz=260.416667ns。一个CPRI基本帧包含16个时隙:W=0…15,W=0为包括控制字的控制时隙,W=1…15为IQ数据时隙,供基站安排需要传输的IQ数据。字长T与当前线速率相对应。例如,CPRI协议中1228.8Mbit/s线速率对应的CPRI基本帧结构为16(位宽)*16(时隙)。In a specific embodiment, the CPRI frame to be transmitted is a superframe in the CPRI protocol, and the superframe can be used as a basic frame for Ethernet data transmission. The one superframe is composed of 256 CPRI basic frames, and the frame length of one CPRI basic frame is: 1Tc=1/3.84MHz=260.416667ns. A CPRI basic frame contains 16 time slots: W=0...15, W=0 is a control time slot including a control word, and W=1...15 is an IQ data time slot for the base station to arrange IQ data to be transmitted. The word length T corresponds to the current line rate. For example, the CPRI basic frame structure corresponding to the 1228.8 Mbit/s line rate in the CPRI protocol is 16 (bit width) * 16 (time slot).
由于该以太网的数据传输是基于基本帧的数据传输,一个以太网物理层的基本帧即以太网帧的最基本的结构是帧头(7个0X55+1个0XD5,即8个字节)+数据+帧间隙IPG,其中,IPG至少为96个Bit Time(比特时间),即12个字节。也就是说,在进行帧格式转换,将CPRI帧即超帧转换为适用于以太网物理层传输的帧即以太网帧时,封装帧头和帧间隙IPG是必不可少的,这就可能导致对需要传输的CPRI帧进行了帧格式转换后得到的以太网帧超过以太网物理层芯片支持的最大基本帧的长度。如图3所示,是本发明实施例提供的一种以太网帧的结构示意图。具体的,该GE物理层芯片支持的最大基本帧为10kb,在线速率为1.2288Gbps的情况下,一个CPRI超帧(包括256个CPRI基本帧,即如图3所示的码片)的长度是8192字节,正好小于10kb,而在转换为以太网帧,即加上帧头(8个字节)和IPG(12个字节)之后,则超过了10kb。此时则会导致挤占IQ带宽。因此,在进行帧格式转换之前,可通过删除模块11删除预设数目的控制字,在该删除的控制字的位置用于传输IQ数据,以补偿该帧头和IPG对应的带宽,从而无需牺牲IQ带宽来实现基于GE的CPRI数据传输。其中,该预设数目即删除的控制字的个数可以为预先配置的固定个数,比如20个;或者为根据该CPRI帧的当前线速率确定出的需要删除的数目。Since the Ethernet data transmission is based on basic frame data transmission, the basic structure of an Ethernet physical layer, that is, the most basic structure of the Ethernet frame is the frame header (7 0x55+1 0XD5, ie 8 bytes) + data + frame gap IPG, where IPG is at least 96 Bit Time, ie 12 bytes. That is to say, when performing frame format conversion and converting a CPRI frame, that is, a super frame, into an Ethernet frame suitable for Ethernet physical layer transmission, encapsulating the frame header and the frame gap IPG is essential, which may result in The Ethernet frame obtained after the frame format conversion of the CPRI frame to be transmitted exceeds the maximum basic frame length supported by the Ethernet physical layer chip. FIG. 3 is a schematic structural diagram of an Ethernet frame according to an embodiment of the present invention. Specifically, the maximum basic frame supported by the GE physical layer chip is 10 kb, and the online rate is 1.2288 Gbps, and the length of one CPRI superframe (including 256 CPRI basic frames, that is, the chip shown in FIG. 3) is 8192 bytes, which is just less than 10kb, is more than 10kb after being converted to an Ethernet frame, that is, after adding a frame header (8 bytes) and IPG (12 bytes). This will result in crowding out IQ bandwidth. Therefore, before the frame format conversion, the preset number of control words can be deleted by the deleting module 11, and the position of the deleted control word is used for transmitting IQ data to compensate the bandwidth corresponding to the frame header and the IPG, thereby eliminating the sacrifice IQ bandwidth to implement GE-based CPRI data transmission. The preset number, that is, the number of deleted control words, may be a fixed number of pre-configured numbers, such as 20, or a number that needs to be deleted according to the current line rate of the CPRI frame.
所述格式转换模块12,用于为所述删除模块11删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧。The format conversion module 12 is configured to add a frame header and a frame gap IPG to the CPRI frame after the deletion of the control word by the deleting module 11, to obtain an Ethernet frame that can be transmitted on the Ethernet physical layer.
所述发送模块13,用于通过所述以太网物理层向接收设备发送所述以太 网帧。The sending module 13 is configured to send the ethernet to the receiving device by using the Ethernet physical layer Net frame.
具体实施例中,在删除模块11删除预设数目个控制字,以实现对需要传输的CPRI帧即超帧的带宽补偿之后,格式转换模块12即可给删除控制字后的CPRI帧增加帧头和IPG,以满足以太网物理层的基本帧结构,得到能在以太网网线上传输的以太网帧。发送模块13通过以太网网线将该以太网帧发送给接收设备,以使接收设备在接收到该以太网帧时,去掉该封装的帧头和IPG,得到CPRI数据,并基于CPRI超帧的结构恢复该删除的控制字,恢复得到删除控制字之前的CPRI帧,即恢复为标准的CPRI帧结构。In a specific embodiment, after the deletion module 11 deletes a preset number of control words to implement bandwidth compensation for a CPRI frame that needs to be transmitted, that is, a superframe, the format conversion module 12 may add a frame header to the CPRI frame after deleting the control word. And IPG, to meet the basic frame structure of the Ethernet physical layer, to obtain Ethernet frames that can be transmitted on the Ethernet network line. The sending module 13 sends the Ethernet frame to the receiving device through the Ethernet network cable, so that when receiving the Ethernet frame, the receiving device removes the frame header and the IPG of the package to obtain CPRI data, and is based on the structure of the CPRI superframe. The deleted control word is restored, and the CPRI frame before the deletion of the control word is restored, that is, the standard CPRI frame structure is restored.
进一步的,在可选的实施例中,所述删除模块11可包括(图中未示出):Further, in an optional embodiment, the deleting module 11 may include (not shown):
获取单元111,获取需要传输的CPRI帧对应的当前线速率;The obtaining unit 111 is configured to obtain a current line rate corresponding to the CPRI frame that needs to be transmitted;
数目确定单元112,用于根据所述获取单元111获取的所述当前线速率,确定出所述需要传输的CPRI帧中需要删除的控制字的数目,其中,所述需要删除的所述数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和;The number determining unit 112 is configured to determine, according to the current line rate acquired by the acquiring unit 111, the number of control words that need to be deleted in the CPRI frame that needs to be transmitted, where the number of the control words that need to be deleted is determined. The total length of the control word is not less than the sum of the total length of the frame header and the IPG;
数据删除单元113,用于删除所述需要传输的CPRI帧中所述数目确定单元112确定出的所述数目个控制字。The data deleting unit 113 is configured to delete the number of control words determined by the number determining unit 112 in the CPRI frame that needs to be transmitted.
具体实施例中,该CPRI帧即CPRI协议中的超帧包括256个基本帧,并逐级嵌套了256个控制字(每一个基本帧包括一个控制字)。具体的,如图4所示,是本发明实施例提供的一种超帧的结构示意图,该逐级嵌套的256个控制字可以按每4个1组编为64个子信道。子信道序号Ns=0…63,每个子信道里的控制字序号Xs=0…3,则一个嵌套里的控制字序号X=Ns+64*Xs。其中,不同形态区域的控制字组合定义了不同用途,比如同步定时、慢速控制和管理、厂家自定义等等,还包括预留的一些控制字。可选的,该删除的控制字即可为该需要传输的CPRI帧中的自定义控制字或预留的控制字。In a specific embodiment, the CPRI frame, that is, the superframe in the CPRI protocol, includes 256 basic frames, and 256 control words are nested step by step (each basic frame includes one control word). Specifically, as shown in FIG. 4, it is a schematic structural diagram of a superframe according to an embodiment of the present invention. The 256 control words that are nested step by step can be programmed into 64 subchannels for every 4 groups. The subchannel number is Ns=0...63, and the control word number Xs=0...3 in each subchannel, then the control word number X=Ns+64*Xs in a nest. Among them, the combination of control words in different morphological areas defines different uses, such as synchronous timing, slow control and management, factory customization, etc., and some reserved control words. Optionally, the deleted control word may be a custom control word or a reserved control word in the CPRI frame to be transmitted.
具体的,由于以太网传输是基于基本帧的传输,一个物理层的基本帧最基本的结构是帧头+数据+IPG,在以太网的帧结构中,帧头和IPG是必不可少的,为了避免牺牲IQ带宽来实现基于GE的CPRI数据传输,发送端即发送设备在将CPRI帧即CPRI数据格式的超帧转换为以太网帧之前,即可通过获取单元 111获取需要传输的CPRI帧即当前超帧对应的当前线速率,数目确定单元112根据该当前线速率,确定出需要删除的控制字如自定义控制字或预留的控制字的数目,该数目对应的控制字的总长度不小于该帧头和IPG的总长度之和(即20Byte),从而数据删除单元113可删除该数目确定单元112确定出的该数目个控制字,即删除20Byte或20Byte以上的控制字,将该删除控制字的位置用于传输IQ数据,使得避免了将CPRI帧转换为以太网帧之后造成的占用IQ带宽的情况。Specifically, since the Ethernet transmission is based on basic frame transmission, the basic structure of the basic frame of a physical layer is frame header + data + IPG. In the frame structure of the Ethernet, the frame header and the IPG are indispensable. In order to avoid the sacrifice of IQ bandwidth to implement GE-based CPRI data transmission, the transmitting end, that is, the transmitting device can obtain the unit before converting the CPRI frame, that is, the superframe of the CPRI data format into an Ethernet frame. The current line rate corresponding to the current superframe is obtained by the CPRI frame that needs to be transmitted, and the number determining unit 112 determines the number of control words, such as a custom control word or a reserved control word, that need to be deleted according to the current line rate. The total length of the corresponding control word is not less than the sum of the total length of the frame header and the IPG (ie, 20 bytes), so that the data deleting unit 113 can delete the number of control words determined by the number determining unit 112, that is, delete 20 bytes or 20 bytes. The above control word uses the position of the delete control word for transmitting IQ data, so that the occupied IQ bandwidth caused by converting the CPRI frame into an Ethernet frame is avoided.
请一并参见图5,是本发明实施例提供的一种接收设备的结构示意图,具体的,本发明实施例的所述接收设备可包括接收模块21以及恢复模块22。其中,Referring to FIG. 5, it is a schematic structural diagram of a receiving device according to an embodiment of the present invention. Specifically, the receiving device in the embodiment of the present invention may include a receiving module 21 and a recovery module 22. among them,
所述接收模块21,用于通过以太网物理层接收发送设备发送的以太网帧,所述以太网帧是所述发送设备删除需要传输的CPRI帧中预设数目个控制字,并为删除控制字后的CPRI帧增加帧头和IPG,得到的能在以太网物理层传输的帧。The receiving module 21 is configured to receive, by using an Ethernet physical layer, an Ethernet frame sent by the sending device, where the Ethernet frame is a preset number of control words in the CPRI frame that the sending device needs to transmit, and is deleted. The CPRI frame after the word adds the frame header and IPG, and the obtained frame can be transmitted on the Ethernet physical layer.
需要说明是的,本发明实施的所述接收设备可具体为包括上述的射频拉远单元、模拟馈入数字信号分布系统或基站数字基带馈入信号分布系统中的RRU等在进行CPRI数据传输时可作为接收端的设备。It should be noted that, the receiving device that is implemented by the present invention may specifically be the RRU including the above-mentioned radio remote unit, analog feed digital signal distribution system or base station digital baseband feed signal distribution system, etc. during CPRI data transmission. Can be used as a device at the receiving end.
其中,该以太网的数据传输是基于基本帧的数据传输,该需要传输的CPRI帧即为CPRI协议中的超帧,该超帧即可作为以太网GE的一个基本帧。The data transmission of the Ethernet is based on basic frame data transmission, and the CPRI frame to be transmitted is a superframe in the CPRI protocol, and the superframe can be used as a basic frame of the Ethernet GE.
所述恢复模块22,用于去掉所述以太网帧的所述帧头和所述IPG,得到待恢复CPRI帧;The recovery module 22 is configured to remove the frame header of the Ethernet frame and the IPG, to obtain a CPRI frame to be restored;
所述恢复模块22,还用于从所述待恢复CPRI帧中恢复删除的所述预设数目个控制字,将所述待恢复CPRI帧恢复为删除控制字前的CPRI帧。The recovery module 22 is further configured to recover the preset number of control words deleted from the to-be-recovered CPRI frame, and restore the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
可选的,所述预设数目是根据需要传输的CPRI帧的对应的当前线速率确定出的,且删除的所述预设数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和。Optionally, the preset number is determined according to a corresponding current line rate of the CPRI frame that needs to be transmitted, and the total length of the deleted preset number of control words is not less than the frame header and the IPG. The sum of the total lengths.
进一步可选的,删除的所述控制字为所述需要传输的CPRI帧中的自定义 控制字或预留的控制字。Further optionally, the deleted control word is a custom in the CPRI frame that needs to be transmitted. Control word or reserved control word.
具体实施例中,在接收模块21接收到的发送设备通过以太网网线即以太网物理层发送的以太网帧之后,恢复模块22即可去掉该以太网帧的帧头和IPG,提取出CPRI帧数据,并基于CPRI超帧的结构恢复该删除的控制字,恢复得到删除控制字之前的标准CPRI超帧结构。In a specific embodiment, after the receiving device receives the Ethernet frame sent by the Ethernet network cable, that is, the Ethernet physical layer, the recovery module 22 can remove the frame header and the IPG of the Ethernet frame, and extract the CPRI frame. Data, and recovering the deleted control word based on the structure of the CPRI superframe, recovering the standard CPRI superframe structure before deleting the control word.
以线速率1228.8Mbps为例,该CPRI数据格式的CPRI超帧的长度为8192Byte,考虑帧头+帧间隙共20Byte,只需要将CPRI数据格式的10个基本帧的控制字删除,共20Byte,则避免了挤占IQ数据空间,造成CPRI数据传输效率降低的问题。如图6所示,是本发明实施例提供的一种通过删除控制字实现CPRI数据传输的结构示意图,该图6中包括发送设备即发送端的该CPRI数据格式的CPRI超帧(8192Byte)的帧结构图、删除控制字后转换得到的以太网物理层芯片格式传输的以太网帧(8192Byte)的帧结构图以及接收设备即接收端恢复控制字后的CPRI超帧(8192Byte)的帧结构图。具体的,发送设备即发送端可通过删除模块11控制删除包括自定义控制字的10个基本帧中的控制字(还可以删除10个以上的自定义控制字),该删除的10个控制字CM即为图中灰色部分的CM(图6中仅显示了其中的2的CM),一共20Byte,以弥补以太网帧头+帧间隙共20Byte的占用,实现带宽补偿。发送端通过格式转换模块12将该删除控制字后的CPRI帧进行格式转换,增加帧头和IPG后得到以太网物理层芯片格式传输的基本帧即以太网帧,并通过发送模块13将该以太网帧发送给接收设备。对端接收设备即接收端通过接收模块21接收到该以太网帧后,恢复模块22即可去掉帧头和IPG,提取出CPRI帧数据,并对删除的控制字进行恢复,从而恢复为标准的CPRI超帧结构。Taking the line rate of 1228.8 Mbps as an example, the length of the CPRI superframe of the CPRI data format is 8192 Bytes. Considering the frame header + frame gap totaling 20 bytes, only the control words of the 10 basic frames of the CPRI data format need to be deleted, for a total of 20 bytes. The problem of crowding out the IQ data space is avoided, resulting in a decrease in the efficiency of CPRI data transmission. As shown in FIG. 6 , it is a schematic structural diagram of implementing CPRI data transmission by deleting a control word according to an embodiment of the present invention. The FIG. 6 includes a frame of a CPRI superframe (8192 Byte) of the CPRI data format of a transmitting device, that is, a transmitting end. The frame structure of the Ethernet frame (8192 Byte) transmitted by the Ethernet physical layer chip format converted after the control word is deleted, and the frame structure of the CPRI superframe (8192 Byte) after the receiving device restores the control word. Specifically, the sending device, that is, the sending end, can control, by using the deleting module 11, to delete the control words in the 10 basic frames including the custom control word (more than 10 custom control words can be deleted), the deleted 10 control words CM is the CM in the gray part of the figure (only the CM of 2 is shown in Figure 6), a total of 20 bytes, to make up for the occupation of Ethernet frame header + frame gap of 20 bytes, to achieve bandwidth compensation. The transmitting end converts the CPRI frame after the deletion control word by the format conversion module 12, increases the frame header and the IPG, and obtains the basic frame, that is, the Ethernet frame, transmitted by the Ethernet physical layer chip format, and sends the Ethernet frame through the sending module 13. The network frame is sent to the receiving device. After the receiving device of the peer receiving device receives the Ethernet frame through the receiving module 21, the recovery module 22 can remove the frame header and the IPG, extract the CPRI frame data, and recover the deleted control word, thereby restoring to the standard CPRI superframe structure.
同样以线速率1.2288Gbps为例,对于线速率1.2288Gbps的CPRI超帧所占的带宽中,控制面占用带宽量(即控制字所占的带宽)为:2字节*8比特*256(码片chip)*150(超帧)*100(10ms)=61.44Mbps;以太网帧的帧头和IPG占用IQ带宽(每个超帧占用20字节),占用带宽量为:20字节*8比特*150(超帧)*100(10ms)=2.4Mbps;除去控制面和以太网帧的帧头与IPG带宽, 剩余的IQ带宽为1228.8M*(4/5)-61.44M-2.4M=919.2Mbps。因此,以上行为例,上行方向支持的最多天线载波映射A*C数为:919.2M/[2(双采样)*2(IQ)*10(数据位宽)*256(chip)*150(超帧)*100(10ms)]=5个(向下去整后的值)。其中,A为天线数,C为载波数。Similarly, the line rate of 1.2288 Gbps is taken as an example. For the bandwidth occupied by the CPRI superframe with a line rate of 1.2288 Gbps, the amount of bandwidth occupied by the control plane (that is, the bandwidth occupied by the control word) is: 2 bytes * 8 bits * 256 (code Chip)*150 (superframe)*100(10ms)=61.44Mbps; the frame header of the Ethernet frame and the IPG occupy the IQ bandwidth (20 bytes per superframe), and the occupied bandwidth is: 20 bytes*8 Bit *150 (superframe) *100 (10ms) = 2.4Mbps; remove the frame header and IPG bandwidth of the control plane and Ethernet frame, The remaining IQ bandwidth is 1228.8M*(4/5)-61.44M-2.4M=919.2Mbps. Therefore, in the above behavior example, the maximum antenna carrier mapping A*C number supported in the uplink direction is: 919.2M/[2 (double sampling)*2(IQ)*10 (data bit width)*256(chip)*150(super Frame) *100 (10ms)] = 5 (down to the entire value). Where A is the number of antennas and C is the number of carriers.
此时,对于移动通信载波制式,如果需要6个A*C数来表示一个载波时,或者需要单根网线承载更多载波数据速率时,则需要采用更高的数据压缩比,或者需要多根网线进行负荷分担。然而,若采用更高的数据压缩比,则会导致系统性能降低;而该通过多根网线进行负荷分担的方式则会占用更多的端口,增加了部署成本。At this time, for the mobile communication carrier system, if 6 A*C numbers are needed to represent one carrier, or when a single network cable needs to carry more carrier data rates, a higher data compression ratio is needed, or multiple roots are needed. The network cable performs load sharing. However, if a higher data compression ratio is adopted, the system performance will be degraded; and the load sharing method through multiple network cables will occupy more ports and increase the deployment cost.
而本发明实施例通过该删除控制字实现带宽补偿时,由于删除了20Byte控制字,IQ数据传输多了20Byte,也即IQ带宽多了:20字节*8比特*150(超帧)*100(10ms)=2.4Mbps。同样以上行为例,此时上行方向支持的最多A*C数为:(919.2M+2.4M)/[2(双采样)*2(IQ)*10(数据位宽)*256(chip)*150(超帧)*100(10ms)]=6个(向下去整后的值),即可通过该删除控制字实现带宽补偿的方式增加上行和/或下行方向支持的最大A*C数。对于移动通信载波制式,如果需要6个A*C数来表示一个载波时,或者需要单根网线承载更多载波数据速率时,可有效降低网络部署成本。In the embodiment of the present invention, when the bandwidth compensation is implemented by the deletion control word, since the 20 Byte control word is deleted, the IQ data transmission is 20 Bytes larger, that is, the IQ bandwidth is increased: 20 bytes * 8 bits * 150 (super frame) * 100 (10ms) = 2.4Mbps. For the same behavior example above, the maximum number of A*Cs supported in the uplink direction is: (919.2M+2.4M)/[2 (double sampling)*2(IQ)*10 (data bit width)*256(chip)* 150 (superframe) * 100 (10 ms)] = 6 (downwardly rounded value), the bandwidth can be compensated by the deletion control word to increase the maximum A*C number supported in the uplink and / or downlink direction. For the mobile communication carrier system, if 6 A*C numbers are needed to represent one carrier, or when a single network cable needs to carry more carrier data rates, the network deployment cost can be effectively reduced.
本发明实施例在通过以太网物理层芯片传输CPRI数据时,通过在CPRI帧中删除部分控制字,从而在实现基于GE的CPRI数据传输时不再挤占IQ数据空间,使得能够提高单根网线的数据传输效率,增强了单根网线在载波制式的应用场景,同时节省了端口占用以及网线使用,减少了网络部署成本和施工难度,增强了系统性能。When the CPRI data is transmitted through the physical layer chip of the Ethernet, the part of the control word is deleted in the CPRI frame, so that the IQ data space is no longer occupied when the GE-based CPRI data transmission is implemented, so that the single network cable can be improved. The data transmission efficiency enhances the application scenario of a single network cable in the carrier system, and saves port occupation and network cable usage, reduces network deployment cost and construction difficulty, and enhances system performance.
请参见图7,是本发明实施例的另一种发送设备的结构示意图,具体的,本发明实施例的所述发送设备包括格式转换模块31以及发送模块32。其中,FIG. 7 is a schematic structural diagram of another sending device according to an embodiment of the present invention. Specifically, the sending device in the embodiment of the present invention includes a format converting module 31 and a sending module 32. among them,
所述格式转换模块31,用于为需要传输的CPRI帧增加帧头和IPG,得到能在以太网物理层传输的以太网帧,所述CPRI帧对应的时钟为第一时钟; The format conversion module 31 is configured to add a frame header and an IPG to the CPRI frame that needs to be transmitted, and obtain an Ethernet frame that can be transmitted on the physical layer of the Ethernet, where the clock corresponding to the CPRI frame is the first clock;
所述发送模块32,用于在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,其中,所述第二时钟大于所述第一时钟。The sending module 32 is configured to send the Ethernet frame to the receiving device by using the Ethernet physical layer at a second clock, where the second clock is greater than the first clock.
具体实施例中,还可通过更改以太网物理层芯片的工作时钟来实现基于以太网的CPRI数据传输。具体的,所述CPRI帧对应的工作时钟为第一时钟,即该发送设备在该第一时钟传输CPRI帧,且所述以太网帧对应的工作时钟为第二时钟,即该发送设备可通过发送模块32在该第二时钟发送以太网帧,通过该第二时钟传输以太网帧,该第二时钟大于该第一时钟。In a specific embodiment, Ethernet-based CPRI data transmission can also be implemented by changing the working clock of the Ethernet physical layer chip. Specifically, the working clock corresponding to the CPRI frame is a first clock, that is, the sending device transmits a CPRI frame on the first clock, and the working clock corresponding to the Ethernet frame is a second clock, that is, the sending device can pass The sending module 32 sends an Ethernet frame on the second clock, and transmits an Ethernet frame through the second clock, where the second clock is greater than the first clock.
进一步的,在可选的实施例中,所述发送设备还可包括:Further, in an optional embodiment, the sending device may further include:
计算模块33,用于根据所述CPRI帧的帧长度、所述第一时钟以及所述第二时钟,计算得到所述以太网帧的帧长度;The calculating module 33 is configured to calculate, according to the frame length of the CPRI frame, the first clock, and the second clock, a frame length of the Ethernet frame.
所述计算模块33,还用于计算所述以太网帧的帧长度与所述CPRI帧的帧长度的第一差值,并计算所述第一差值与所述帧头和所述IPG的总长度之和的第二差值;The calculating module 33 is further configured to calculate a first difference between a frame length of the Ethernet frame and a frame length of the CPRI frame, and calculate the first difference value with the frame header and the IPG a second difference in the sum of the total lengths;
分组确定模块34,用于根据所述计算模块33计算得到的所述第二差值,确定进行数据传输时以太网帧的分组;a packet determining module 34, configured to determine, according to the second difference value calculated by the calculating module 33, a packet of an Ethernet frame when performing data transmission;
所述发送模块32可具体用于:The sending module 32 can be specifically configured to:
基于所述分组,在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧。Based on the packet, the Ethernet frame is transmitted to the receiving device at the second clock and through the Ethernet physical layer.
可选的,所述第一时钟可具体为122.88MHz,所述第二时钟可具体为125MHz。Optionally, the first clock may be specifically 122.88 MHz, and the second clock may be specifically 125 MHz.
具体实施例中,通过时钟域转换,也即控制以太网的工作时钟(第二时钟)大于CPRI时钟(第一时钟),使得能够在相同的时间传输更多的数据,从而实现基于以太网的CPRI数据传输,而不再挤占IQ数据空间,使得提升了CPRI数据传输效率。In a specific embodiment, the clock domain conversion, that is, the control of the Ethernet operating clock (second clock) is greater than the CPRI clock (first clock), enabling more data to be transmitted at the same time, thereby implementing Ethernet-based CPRI data transmission, instead of crowding out the IQ data space, improves CPRI data transmission efficiency.
进一步的,当该第一时钟小于第二时钟时,转换得到的以太网帧的长度与CPRI帧的长度之差(即第一差值)很多时候都大于20Byte,也就是说,在扣除了帧头和IPG的20Byte后还有空余字节(即第二差值),比如第一时钟为 122.88MHz,第二时钟为125MHz时,以太网帧的长度与CPRI帧的长度之差扣除20Byte后还剩余121.333Byte。因此,考虑到实际实施,还可根据该空余字节对以太网帧进行分组,以基于该分组传输以太网帧。具体的,可通过计算模块33当前CPRI帧的帧长度、该第一时钟以及第二时钟对应的以太网帧的帧长度,并进一步计算得到该以太网帧的帧长度与该CPRI帧的帧长度的第一差值,以及该第一差值与帧头和IPG的长度之和的第二差值,使得分组确定模块34能够根据该第二差值,确定进行数据传输时以太网帧的分组,从而发送模块32能够基于该分组传输以太网帧。Further, when the first clock is smaller than the second clock, the difference between the length of the converted Ethernet frame and the length of the CPRI frame (ie, the first difference) is often greater than 20 bytes, that is, after the frame is deducted There is a spare byte (that is, the second difference) after the header and IPG 20 bytes, for example, the first clock is 122.88MHz, when the second clock is 125MHz, the difference between the length of the Ethernet frame and the length of the CPRI frame is 12.333 bytes after deducting 20 bytes. Therefore, in consideration of actual implementation, Ethernet frames can also be grouped according to the vacant bytes to transmit Ethernet frames based on the packets. Specifically, the frame length of the current CPRI frame, the first clock, and the frame length of the Ethernet frame corresponding to the second clock are calculated by the calculation module 33, and the frame length of the Ethernet frame and the frame length of the CPRI frame are further calculated. a first difference, and a second difference between the first difference and a length of the frame header and the IPG, such that the packet determining module 34 is capable of determining, according to the second difference, a packet of the Ethernet frame when the data transmission is performed. Thus, the transmitting module 32 is capable of transmitting Ethernet frames based on the packet.
请一并参见图8,是本发明实施例提供的另一种接收设备的结构示意图,具体的,本发明实施例的所述接收设备可包括接收模块41以及恢复模块42。其中,FIG. 8 is a schematic structural diagram of another receiving device according to an embodiment of the present invention. Specifically, the receiving device in the embodiment of the present invention may include a receiving module 41 and a recovery module 42. among them,
所述接收模块41,用于在第二时钟并通过以太网物理层接收发送设备发送的以太网帧,其中,所述以太网帧是所述发送设备为需要传输的CPRI帧增加帧头和IPG,得到的能在以太网物理层传输的帧,所述CPRI帧对应的时钟为第一时钟,且所述第二时钟大于所述第一时钟;The receiving module 41 is configured to receive, by the second clock, an Ethernet frame sent by the sending device by using an Ethernet physical layer, where the Ethernet frame is the sending device adds a frame header and an IPG to the CPRI frame that needs to be transmitted. Obtaining a frame that can be transmitted on the physical layer of the Ethernet, the clock corresponding to the CPRI frame is a first clock, and the second clock is greater than the first clock;
所述恢复模块42,用于去掉所述以太网帧的所述帧头和所述IPG,得到所述CPRI帧。The recovery module 42 is configured to remove the frame header of the Ethernet frame and the IPG to obtain the CPRI frame.
具体的,还可通过更改以太网物理层芯片的工作时钟来实现基于以太网的CPRI数据传输。其中,所述CPRI帧对应的工作时钟为第一时钟,即该发送设备可在该第一时钟传输CPRI帧,且所述以太网帧对应的工作时钟为第二时钟,即该发送设备可在该第二时钟发送以太网帧,该第二时钟大于该第一时钟。接收设备通过接收模块41在该第二时钟接收该发送设备发送的以太网帧。Specifically, the Ethernet-based CPRI data transmission can also be implemented by changing the working clock of the Ethernet physical layer chip. The working clock corresponding to the CPRI frame is the first clock, that is, the sending device can transmit the CPRI frame on the first clock, and the working clock corresponding to the Ethernet frame is the second clock, that is, the sending device can be in the The second clock transmits an Ethernet frame, and the second clock is greater than the first clock. The receiving device receives the Ethernet frame sent by the sending device at the second clock through the receiving module 41.
可选的,所述第一时钟可具体为122.88MHz,所述第二时钟可具体为125MHz。Optionally, the first clock may be specifically 122.88 MHz, and the second clock may be specifically 125 MHz.
具体实施例中,在接收模块21接收到的发送设备通过以太网网线即以太网物理层发送的以太网帧之后,恢复模块22即可去掉该以太网帧的帧头和IPG以及该空余字节,提取出CPRI数据,将其恢复为变换时钟域之前的标准CPRI 超帧结构。In a specific embodiment, after the receiving device receives the Ethernet frame sent by the Ethernet network cable, that is, the Ethernet physical layer, the recovery module 22 can remove the frame header and the IPG of the Ethernet frame and the vacant byte. , extract the CPRI data and restore it to the standard CPRI before the transform clock domain Superframe structure.
具体的,如图9所示,是本发明实施例提供的一种通过变换以太网物理层时钟实现CPRI数据传输的结构示意图,该图9中包括发送设备即发送端中CPRI数据格式的CPRI超帧(8192Byte)的帧结构图、该CPRI超帧进行帧格式转换后得到的以太网物理层芯片格式传输的以太网帧(8333.333Byte)的帧结构图,其中,该发送设备中CPRI帧对应的第一时钟即CPRI数据时钟采用122.88MHz,以太网物理层对应的第二时钟即以太网物理层时钟采用125MHz。则以太网GE端口和CPRI端口的速率差(125-122.88)*8=16.96Mbps。一个CPRI超帧的长度为8192Byte,则对应的以太网物理层帧即以太网帧的长度为8192Byte*(125/122.88)=8333.333Byte,该以太网帧比该CPRI超帧对应多出8333.333-8192=141.333Byte(第一差值),扣除20Byte的帧头和IPG的长度后,还剩余121.333Byte空余字节(第二差值)。如图9所示,发送设备即发送端在通过格式转换模块12对CPRI数据格式的超帧(8192Byte)进行格式转换时,则可为CPRI超帧增加帧头、IPG以及空余字节(121.333Byte),以满足以太网物理层的基本帧结构,转换为以太网物理层芯片格式传输的基本帧即以太网帧(8333.333Byte),从而实现通过以太网帧传输CPRI数据。Specifically, as shown in FIG. 9 , which is a schematic structural diagram of implementing CPRI data transmission by transforming an Ethernet physical layer clock according to an embodiment of the present invention, where FIG. 9 includes a CPRI data of a CPRI data format in a transmitting device, that is, a transmitting end. a frame structure diagram of a frame (8192 Byte), a frame structure diagram of an Ethernet frame (8333.333 Byte) transmitted by an Ethernet physical layer chip format obtained by converting the frame format of the CPRI superframe, wherein a CPRI frame corresponding to the transmitting device The first clock, that is, the CPRI data clock, is 122.88 MHz, and the second clock corresponding to the Ethernet physical layer, that is, the Ethernet physical layer clock, is 125 MHz. The rate difference between the Ethernet GE port and the CPRI port is (125-122.88)*8=16.96Mbps. The length of a CPRI superframe is 8192 Bytes, and the length of the corresponding Ethernet physical layer frame, that is, the Ethernet frame is 8192 Byte*(125/122.88)=8333.333 Byte. The Ethernet frame corresponds to the CPRI superframe by 8333.333-8192. =141.333Byte (first difference), after deducting the 20Byte frame header and IPG length, there is still 121.333Byte free bytes (second difference). As shown in FIG. 9, when the transmitting device, that is, the transmitting end performs format conversion on the superframe (8192 Byte) of the CPRI data format by the format conversion module 12, it can add a frame header, an IPG, and a spare byte (121.333 Byte) to the CPRI superframe. In order to meet the basic frame structure of the Ethernet physical layer, the basic frame transmitted by the Ethernet physical layer chip format is converted into an Ethernet frame (8333.333 Byte), thereby realizing transmission of CPRI data through the Ethernet frame.
进一步的,考虑到实际实施,发送设备还可根据该空余的字节数,即根据该以太网帧与CPRI超帧的长度的差值以及帧头和IPG的长度来确定进行数据传输时以太网帧的分组。可选的,如图10所示,是本发明实施例提供的一种以太网帧分组结构示意图。具体的,根据该空余的字节数为121.333Byte,则发送设备可将每三个以太网基本帧作为一组,如图10所示,第一个以太网帧空余122Byte,后两个以太网帧空余121Byte,即该分组的三个以太网帧中,一个长度为8334Byte,其余两个长度为8333Byte(图10中,PHY表示图9中的帧头+IPG,CPRI数据即为图9中的控制字CM+IQ数据)。发送模块32即可基于该分组向接收设备发送包括CPRI数据的以太网帧。接收设备即接收端通过接收模块41接收到发送设备发送的以太网帧之后,即可通过恢复模块42去掉该以太网帧的帧头、IPG以及该空余字节,提取出CPRI数据,将其恢 复为变换时钟域之前的标准CPRI超帧结构。Further, in consideration of the actual implementation, the sending device may further determine the Ethernet according to the vacant number of bytes, that is, according to the difference between the length of the Ethernet frame and the CPRI superframe and the length of the frame header and the IPG. Grouping of frames. Optionally, as shown in FIG. 10, it is a schematic diagram of an Ethernet frame grouping structure provided by an embodiment of the present invention. Specifically, according to the spare byte number is 121.333 Byte, the transmitting device can treat each of the three Ethernet basic frames as a group, as shown in FIG. 10, the first Ethernet frame has a spare space of 122 bytes, and the latter two Ethernets The frame has a spare space of 121 Bytes, that is, one of the three Ethernet frames of the packet has a length of 8334 Bytes, and the remaining two lengths are 8333 Bytes (in FIG. 10, PHY represents the frame header + IPG in FIG. 9 , and the CPRI data is the picture in FIG. 9 Control word CM+IQ data). The transmitting module 32 can transmit an Ethernet frame including CPRI data to the receiving device based on the packet. After the receiving device receives the Ethernet frame sent by the sending device through the receiving module 41, the receiving module 42 removes the frame header, the IPG and the vacant byte of the Ethernet frame, extracts the CPRI data, and restores the CPRI data. Complex to the standard CPRI superframe structure before the clock domain is transformed.
在本发明实施例中,可通过时钟域转换,控制以太网的工作时钟大于CPRI时钟,使得相同时间内能够在以太网网线上传输更多的数据,例如,以太网物理层工作时钟取125MHz,CPRI工作时钟取122.88MHz,对于一个超帧(以太网基本帧),则可多传递141.333Byte的数据,除了帧头和IPG总共20Byte还剩余121.333Byte,从而实现了通过变换以太网物理层芯片的工作时钟对CPRI帧的带宽补偿,而不再挤占IQ数据空间,无需牺牲IQ带宽来实现基于GE的CPRI数据传输,解决了CPRI数据传输效率低的问题。In the embodiment of the present invention, the working clock of the Ethernet is controlled to be larger than the CPRI clock by the clock domain conversion, so that more data can be transmitted on the Ethernet network line in the same time, for example, the working frequency of the Ethernet physical layer is 125 MHz. The CPRI working clock takes 122.88MHz. For a superframe (Ethernet basic frame), 141.333 bytes of data can be transmitted, except for the frame header and the IPG, which has a total of 20 bytes and 121.333 bytes remaining, thereby realizing the transformation of the Ethernet physical layer chip. The working clock compensates the bandwidth of the CPRI frame, and no longer squeezes the IQ data space, and does not need to sacrifice the IQ bandwidth to implement the GE-based CPRI data transmission, thereby solving the problem of low efficiency of CPRI data transmission.
请参见图11,是本发明实施例提供的一种CPRI数据传输方法的流程示意图,本发明实施例的所述方法可具体应用于发送设备中,具体的,所述方法可包括以下步骤:FIG. 11 is a schematic flowchart of a CPRI data transmission method according to an embodiment of the present invention. The method in the embodiment of the present invention may be specifically applied to a sending device. Specifically, the method may include the following steps:
S101:发送设备删除需要传输的公共无线接口CPRI帧中预设数目个控制字。S101: The sending device deletes a preset number of control words in the CPRI frame of the public radio interface that needs to be transmitted.
需要说明的是,本发明实施的所述方法可具体应用于发送设备中,该发送设备可具体为包括上述的射频拉远单元中的基带处理单元、模拟馈入数字信号分布系统或基站数字基带馈入信号分布系统中的扩展单元等在进行CPRI数据传输时可作为发送端的设备。It should be noted that the method implemented by the present invention may be specifically applied to a sending device, where the sending device may specifically include a baseband processing unit, an analog feed digital signal distribution system, or a base station digital baseband in the radio remote unit. An extension unit or the like fed into the signal distribution system can serve as a device of the transmitting end when performing CPRI data transmission.
具体实施例中,该需要传输的CPRI帧即为CPRI协议中的超帧,即可将该超帧作为以太网数据传输的一个基本帧。In a specific embodiment, the CPRI frame to be transmitted is a superframe in the CPRI protocol, and the superframe can be used as a basic frame for Ethernet data transmission.
S102:所述发送设备为删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧。S102: The sending device adds a frame header and a frame gap IPG to the CPRI frame after deleting the control word, to obtain an Ethernet frame that can be transmitted on the Ethernet physical layer.
由于该以太网的数据传输是基于基本帧的数据传输,一个以太网物理层的基本帧即以太网帧的最基本的结构是帧头(8个字节)+数据+IPG(12个字节)。也就是说,在将CPRI帧即超帧转换为适用于以太网物理层传输的帧即以太网帧时,封装帧头和IPG是必不可少的,这就可能导致对需要传输的CPRI帧进行了帧格式转换后得到的以太网帧超过以太网物理层芯片支持的最大基本帧 的长度。例如,该GE物理层芯片支持的最大基本帧为10kb,在线速率为1.2288Gbps的情况下,一个CPRI超帧的长度是8192字节,正好小于10kb,而在转换为以太网帧,即加上帧头和IPG之后,则超过10kb,此时则会导致挤占IQ带宽。因此,在进行帧格式转换之前,可删除预设数目的控制字,在该删除的控制字的位置用于传输IQ数据,以补偿该帧头和IPG占用的带宽,从而无需牺牲IQ带宽来实现基于GE的CPRI数据传输。其中,该预设数目即删除的控制字的个数可以为预先配置的固定个数,比如20个;或者为根据该CPRI帧的当前线速率确定出的需要删除的数目。Since the data transmission of the Ethernet is based on basic frame data transmission, the basic structure of an Ethernet physical layer, that is, the most basic structure of the Ethernet frame is a frame header (8 bytes) + data + IPG (12 bytes). ). That is to say, when converting a CPRI frame, that is, a superframe, into an Ethernet frame suitable for Ethernet physical layer transmission, encapsulating the frame header and the IPG is indispensable, which may result in the CPRI frame to be transmitted. The Ethernet frame obtained after the frame format conversion exceeds the maximum basic frame supported by the Ethernet physical layer chip. length. For example, if the maximum physical frame supported by the GE physical layer chip is 10 kb and the online rate is 1.2288 Gbps, the length of a CPRI superframe is 8192 bytes, which is just less than 10 kb, and is converted into an Ethernet frame, that is, plus After the frame header and IPG, it exceeds 10kb, which will result in the crowding of IQ bandwidth. Therefore, before the frame format conversion, a preset number of control words can be deleted, and the position of the deleted control word is used to transmit IQ data to compensate for the bandwidth occupied by the frame header and the IPG, thereby eliminating the need to sacrifice IQ bandwidth. GE-based CPRI data transmission. The preset number, that is, the number of deleted control words, may be a fixed number of pre-configured numbers, such as 20, or a number that needs to be deleted according to the current line rate of the CPRI frame.
S103:所述发送设备通过所述以太网物理层向接收设备发送所述以太网帧。S103: The sending device sends the Ethernet frame to the receiving device by using the Ethernet physical layer.
在可选的实施例中,该预设数目可以为根据该CPRI帧的当前线速率确定出的需要删除的控制字的数目。具体的,所述发送设备删除需要传输的CPRI帧中预设数目个控制字,可以具体为:发送设备获取需要传输的CPRI帧对应的当前线速率;所述发送设备根据所述当前线速率,确定出所述需要传输的CPRI帧中需要删除的控制字的数目,其中,所述需要删除的所述数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和;所述发送设备删除所述需要传输的CPRI帧中所述数目个控制字。In an optional embodiment, the preset number may be a number of control words that need to be deleted according to a current line rate of the CPRI frame. Specifically, the sending device deletes a preset number of control words in the CPRI frame to be transmitted, which may be specifically: the sending device acquires a current line rate corresponding to the CPRI frame to be transmitted; and the sending device is configured according to the current line rate. Determining, in the CPRI frame that needs to be transmitted, the number of control words to be deleted, wherein the total length of the number of control words that need to be deleted is not less than a sum of the total length of the frame header and the IPG; The transmitting device deletes the number of control words in the CPRI frame that needs to be transmitted.
具体的,该CPRI帧即CPRI协议中的超帧包括定义了不同用途的控制字,比如同步定时、慢速控制和管理、厂家自定义等等,还包括预留的一些控制字。进一步可选的,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。Specifically, the CPRI frame, that is, the superframe in the CPRI protocol, includes control words that define different uses, such as synchronous timing, slow control and management, factory customization, and the like, and some reserved control words. Further optionally, the deleted control word is a custom control word or a reserved control word in the CPRI frame that needs to be transmitted.
具体实施例中,发送设备在删除预设数目个控制字,以实现对需要传输的CPRI帧即超帧的带宽补偿之后,即可给删除控制字后的CPRI帧增加帧头和IPG,进行帧格式转换,以满足以太网物理层的基本帧结构,得到能在以太网网线上传输的以太网帧。进一步的,该发送设备可通过以太网网线将该以太网帧发送给接收设备,以使接收设备在接收到该以太网帧时,去掉该封装的帧头和IPG,并恢复该删除的控制字,得到删除控制字之前的CPRI数据,即恢复 为标准的CPRI帧结构。从而避免了将CPRI帧转换为以太网帧之后造成的占用IQ带宽的情况,提升了CPRI数据传输效率。In a specific embodiment, after the sending device deletes a preset number of control words to implement bandwidth compensation for a CPRI frame that needs to be transmitted, that is, a superframe, the frame header and the IPG may be added to the CPRI frame after the control word is deleted, and the frame is added. Format conversion to meet the basic frame structure of the Ethernet physical layer to obtain Ethernet frames that can be transmitted over the Ethernet network. Further, the sending device may send the Ethernet frame to the receiving device by using an Ethernet network cable, so that when receiving the Ethernet frame, the receiving device removes the frame header and the IPG of the package, and restores the deleted control word. , get the CPRI data before deleting the control word, ie recovery It is a standard CPRI frame structure. Therefore, the situation that the IQ bandwidth is occupied after converting the CPRI frame into the Ethernet frame is avoided, and the CPRI data transmission efficiency is improved.
请一并参见图12,是本发明实施例提供的另一种CPRI数据传输方法的流程示意图,本发明实施例的所述方法可具体应用于接收设备中,具体的,所述方法可包括以下步骤:FIG. 12 is a schematic flowchart of another CPRI data transmission method according to an embodiment of the present invention. The method in the embodiment of the present invention may be specifically applied to a receiving device. Specifically, the method may include the following. step:
S201:接收设备通过以太网物理层接收发送设备发送的以太网帧,所述以太网帧是所述发送设备删除需要传输的CPRI帧中预设数目个控制字,并为删除控制字后的CPRI帧增加帧头和IPG,得到的能在以太网物理层传输的帧。S201: The receiving device receives, by using an Ethernet physical layer, an Ethernet frame sent by the sending device, where the Ethernet frame is a preset number of control words in the CPRI frame that the transmitting device deletes and needs to be transmitted, and is a CPRI after deleting the control word. Frames are added to the frame header and IPG to obtain frames that can be transmitted at the Ethernet physical layer.
需要说明是的,本发明实施的所述方法可具体应用于接收设备中,该接收设备可具体为包括上述的射频拉远单元、模拟馈入数字信号分布系统或基站数字基带馈入信号分布系统中的RRU等在进行CPRI数据传输时可作为接收端的设备。It should be noted that the method implemented by the present invention may be specifically applied to a receiving device, and the receiving device may specifically include the foregoing radio remote unit, analog feed digital signal distribution system, or base station digital baseband feed signal distribution system. The RRU or the like in the middle can serve as a device at the receiving end when performing CPRI data transmission.
S202:所述接收设备去掉所述以太网帧的所述帧头和所述IPG,得到待恢复CPRI帧。S202: The receiving device removes the frame header of the Ethernet frame and the IPG, to obtain a CPRI frame to be restored.
S203:所述接收设备从所述待恢复CPRI帧中恢复删除的所述预设数目个控制字,将所述待恢复CPRI帧恢复为删除控制字前的CPRI帧。S203: The receiving device recovers the preset number of control words deleted from the to-be-recovered CPRI frame, and restores the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
可选的,所述预设数目是根据需要传输的CPRI帧的对应的当前线速率确定出的,且删除的所述预设数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和。Optionally, the preset number is determined according to a corresponding current line rate of the CPRI frame that needs to be transmitted, and the total length of the deleted preset number of control words is not less than the frame header and the IPG. The sum of the total lengths.
进一步可选的,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。Further optionally, the deleted control word is a custom control word or a reserved control word in the CPRI frame that needs to be transmitted.
具体实施例中,接收设备在接收到发送设备通过以太网网线即以太网物理层发送的以太网帧之后,即可去掉该以太网帧的帧头和IPG,提取出CPRI帧数据,并基于CPRI超帧的结构恢复该删除的控制字,恢复得到删除控制字之前的标准CPRI超帧结构。In a specific embodiment, after receiving the Ethernet frame sent by the sending device through the Ethernet network cable, that is, the Ethernet physical layer, the receiving device can remove the frame header and the IPG of the Ethernet frame, extract the CPRI frame data, and perform CPRI based on the CPRI. The structure of the superframe restores the deleted control word and restores the standard CPRI superframe structure before the deletion of the control word.
以线速率1228.8Mbps为例,该CPRI数据格式的CPRI超帧的长度为8192Byte,考虑帧头+IPG共20Byte,只需要将CPRI数据格式的10个基本帧 的控制字删除,共20Byte,则避免了挤占IQ数据空间,造成CPRI数据传输效率降低的问题。如图6所示,发送设备即发送端可控制删除包括自定义控制字的10个基本帧中的控制字(或者删除10个以上的自定义控制字),一共20Byte,以弥补以太网帧头+IPG共20Byte的占用,实现带宽补偿。发送设备将该删除控制字后的CPRI帧进行格式转换,增加帧头和IPG后得到以太网物理层芯片格式传输的基本帧即以太网帧,并将该以太网帧发送给接收设备。对端接收设备即接收端在接收到该以太网帧后,即可去掉帧头和IPG,提取出CPRI帧数据,并对删除的控制字进行恢复,从而恢复为标准的CPRI超帧结构。Taking the line rate of 1228.8 Mbps as an example, the length of the CPRI superframe of the CPRI data format is 8192 Bytes. Considering the frame header + IPG total of 20 Bytes, only 10 basic frames of the CPRI data format are required. The control word is deleted, a total of 20 bytes, which avoids the problem of crowding out the IQ data space and causing the CPRI data transmission efficiency to decrease. As shown in FIG. 6, the transmitting device, that is, the transmitting end, can control to delete the control words in the 10 basic frames including the custom control word (or delete more than 10 custom control words), for a total of 20 bytes, to compensate for the Ethernet frame header. +IPG takes up a total of 20 bytes to achieve bandwidth compensation. The sending device performs format conversion on the CPRI frame after deleting the control word, adds the frame header and the IPG, and obtains the basic frame, that is, the Ethernet frame, transmitted by the Ethernet physical layer chip format, and sends the Ethernet frame to the receiving device. After receiving the Ethernet frame, the receiving end of the peer receiving device can remove the frame header and the IPG, extract the CPRI frame data, and recover the deleted control word, thereby restoring to the standard CPRI superframe structure.
同样以线速率1.2288Gbps为例,对于线速率1.2288Gbps的CPRI超帧所占的带宽中,控制面占用带宽量(即控制字所占的带宽)为:2字节*8比特*256(码片chip)*150(超帧)*100(10ms)=61.44Mbps;以太网帧的帧头和IPG占用IQ带宽(每个超帧占用20字节),占用带宽量为:20字节*8比特*150(超帧)*100(10ms)=2.4Mbps;除去控制面和以太网帧的帧头与IPG带宽,剩余的IQ带宽为1228.8M*(4/5)-61.44M-2.4M=919.2Mbps。因此,以上行为例,上行方向支持的最多天线载波映射A*C数为:919.2M/[2(双采样)*2(IQ)*10(数据位宽)*256(chip)*150(超帧)*100(10ms)]=5个(向下去整后的值)。其中,A为天线数,C为载波数。Similarly, the line rate of 1.2288 Gbps is taken as an example. For the bandwidth occupied by the CPRI superframe with a line rate of 1.2288 Gbps, the amount of bandwidth occupied by the control plane (that is, the bandwidth occupied by the control word) is: 2 bytes * 8 bits * 256 (code Chip)*150 (superframe)*100(10ms)=61.44Mbps; the frame header of the Ethernet frame and the IPG occupy the IQ bandwidth (20 bytes per superframe), and the occupied bandwidth is: 20 bytes*8 Bit *150 (superframe) *100 (10ms) = 2.4Mbps; remove the frame header and IPG bandwidth of the control plane and Ethernet frame, the remaining IQ bandwidth is 1228.8M*(4/5)-61.44M-2.4M= 919.2Mbps. Therefore, in the above behavior example, the maximum antenna carrier mapping A*C number supported in the uplink direction is: 919.2M/[2 (double sampling)*2(IQ)*10 (data bit width)*256(chip)*150(super Frame) *100 (10ms)] = 5 (down to the entire value). Where A is the number of antennas and C is the number of carriers.
此时,对于移动通信载波制式,如果需要6个A*C数来表示一个载波时,或者需要单根网线承载更多载波数据速率时,则需要采用更高的数据压缩比,或者需要多根网线进行负荷分担。然而,若采用更高的数据压缩比,则会导致系统性能降低;而该通过多根网线进行负荷分担的方式则会占用更多的端口,增加了部署成本。At this time, for the mobile communication carrier system, if 6 A*C numbers are needed to represent one carrier, or when a single network cable needs to carry more carrier data rates, a higher data compression ratio is needed, or multiple roots are needed. The network cable performs load sharing. However, if a higher data compression ratio is adopted, the system performance will be degraded; and the load sharing method through multiple network cables will occupy more ports and increase the deployment cost.
而本发明实施例通过该删除控制字实现带宽补偿时,由于删除了20Byte控制字,IQ数据传输多了20Byte,也即IQ带宽多了:20字节*8比特*150(超帧)*100(10ms)=2.4Mbps。同样以上行为例,此时上行方向支持的最多A*C数为:(919.2M+2.4M)/[2(双采样)*2(IQ)*10(数据位宽)*256(chip)*150 (超帧)*100(10ms)]=6个(向下去整后的值),即可通过该删除控制字实现带宽补偿的方式增加上行和/或下行方向支持的最大A*C数。对于移动通信载波制式,如果需要6个A*C数来表示一个载波时,或者需要单根网线承载更多载波数据速率时,可有效降低网络部署成本。In the embodiment of the present invention, when the bandwidth compensation is implemented by the deletion control word, since the 20 Byte control word is deleted, the IQ data transmission is 20 Bytes larger, that is, the IQ bandwidth is increased: 20 bytes * 8 bits * 150 (super frame) * 100 (10ms) = 2.4Mbps. For the same behavior example above, the maximum number of A*Cs supported in the uplink direction is: (919.2M+2.4M)/[2 (double sampling)*2(IQ)*10 (data bit width)*256(chip)* 150 (Superframe) *100 (10ms)]=6 (downwardly rounded value), the maximum A*C number supported by the uplink and/or downlink directions can be increased by the bandwidth compensation method by deleting the control word. For the mobile communication carrier system, if 6 A*C numbers are needed to represent one carrier, or when a single network cable needs to carry more carrier data rates, the network deployment cost can be effectively reduced.
本发明实施例在通过以太网物理层芯片传输CPRI数据时,通过在CPRI帧中删除部分控制字,从而在实现基于GE的CPRI数据传输时不再挤占IQ数据空间,使得能够提高单根网线的数据传输效率,增强了单根网线在载波制式的应用场景,同时节省了端口占用以及网线使用,减少了网络部署成本和施工难度,增强了系统性能。When the CPRI data is transmitted through the physical layer chip of the Ethernet, the part of the control word is deleted in the CPRI frame, so that the IQ data space is no longer occupied when the GE-based CPRI data transmission is implemented, so that the single network cable can be improved. The data transmission efficiency enhances the application scenario of a single network cable in the carrier system, and saves port occupation and network cable usage, reduces network deployment cost and construction difficulty, and enhances system performance.
进一步的,请参见图13,是本发明实施例提供的又一种CPRI数据传输方法的流程示意图,本发明实施例的所述方法可具体应用于发送设备中,具体的,所述方法可包括以下步骤:Further, please refer to FIG. 13 , which is a schematic flowchart of still another CPRI data transmission method according to an embodiment of the present invention. The method in the embodiment of the present invention may be specifically applied to a sending device. Specifically, the method may include The following steps:
S301:发送设备为需要传输的CPRI帧增加帧头和IPG,得到能在以太网物理层传输的以太网帧,所述CPRI帧对应的时钟为第一时钟。S301: The sending device adds a frame header and an IPG to the CPRI frame to be transmitted, and obtains an Ethernet frame that can be transmitted on the physical layer of the Ethernet. The clock corresponding to the CPRI frame is the first clock.
S302:所述发送设备在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,其中,所述第二时钟大于所述第一时钟。S302: The sending device sends the Ethernet frame to the receiving device by using the Ethernet physical layer at a second clock, where the second clock is greater than the first clock.
具体实施例中,还可通过更改以太网物理层芯片的工作时钟来实现基于以太网的CPRI数据传输。具体的,所述CPRI帧对应的工作时钟为第一时钟,即该发送设备在该第一时钟传输CPRI帧,且所述以太网帧对应的工作时钟为第二时钟,即该发送设备可在该第二时钟发送以太网帧,通过该第二时钟传输以太网帧,该第二时钟大于该第一时钟。In a specific embodiment, Ethernet-based CPRI data transmission can also be implemented by changing the working clock of the Ethernet physical layer chip. Specifically, the working clock corresponding to the CPRI frame is the first clock, that is, the sending device transmits the CPRI frame on the first clock, and the working clock corresponding to the Ethernet frame is the second clock, that is, the sending device can be in the The second clock transmits an Ethernet frame, and the second clock transmits an Ethernet frame, and the second clock is greater than the first clock.
具体实施例中,通过时钟域转换,也即控制以太网的工作时钟(第二时钟)大于CPRI时钟(第一时钟),使得能够在相同的时间传输更多的数据,从而实现基于以太网的CPRI数据传输,而不再挤占IQ数据空间,使得提升了CPRI数据传输效率。In a specific embodiment, the clock domain conversion, that is, the control of the Ethernet operating clock (second clock) is greater than the CPRI clock (first clock), enabling more data to be transmitted at the same time, thereby implementing Ethernet-based CPRI data transmission, instead of crowding out the IQ data space, improves CPRI data transmission efficiency.
进一步的,该发送设备还可根据进行时钟域变换之后以太网帧与CPRI帧 之间的空余字节,确定进行数据传输时以太网帧的分组。具体的,该发送设备可根据所述CPRI帧的帧长度、所述第一时钟以及所述第二时钟,计算得到所述以太网帧的帧长度;计算所述以太网帧的帧长度与所述CPRI帧的帧长度的第一差值,并计算所述第一差值与所述帧头和所述IPG的总长度之和的第二差值;根据所述第二差值,确定进行数据传输时以太网帧的分组。则该发送设备在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,可以具体为:所述发送设备基于所述分组,在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧。Further, the sending device may further perform an Ethernet frame and a CPRI frame according to the clock domain transformation. A vacant byte between them determines the grouping of Ethernet frames for data transmission. Specifically, the sending device may calculate a frame length of the Ethernet frame according to a frame length of the CPRI frame, the first clock, and the second clock, and calculate a frame length and a length of the Ethernet frame. Determining a first difference of a frame length of the CPRI frame, and calculating a second difference between the first difference and a total length of the frame header and the IPG; determining, according to the second difference, Grouping of Ethernet frames during data transmission. And sending, by the sending device, the Ethernet frame to the receiving device by using the Ethernet physical layer, where the sending device is based on the packet, at the second clock, and through the Ethernet physical The layer transmits the Ethernet frame to the receiving device.
可选的,所述第一时钟可以具体为122.88MHz,所述第二时钟可以具体为125MHz。Optionally, the first clock may be specifically 122.88 MHz, and the second clock may be specifically 125 MHz.
具体的,当该第一时钟小于第二时钟时,转换得到的以太网帧的长度与CPRI帧的长度之差(即第一差值)很多时候都大于20Byte,也就是说,在扣除了帧头和IPG的20Byte后还有空余字节(即第二差值),比如第一时钟为122.88MHz,第二时钟为125MHz时,以太网帧的长度与CPRI帧的长度之差扣除20Byte后还剩余121.333Byte。因此,考虑到实际实施,还可根据该空余字节对以太网帧进行分组,发送设备则可基于该分组传输以太网帧。Specifically, when the first clock is smaller than the second clock, the difference between the length of the converted Ethernet frame and the length of the CPRI frame (ie, the first difference) is often greater than 20 bytes, that is, after the frame is deducted There is a spare byte (ie, the second difference) after the header and IPG 20 bytes. For example, when the first clock is 122.88MHz and the second clock is 125MHz, the difference between the length of the Ethernet frame and the length of the CPRI frame is deducted by 20 bytes. The remaining 121.333Byte. Therefore, considering the actual implementation, the Ethernet frame can also be grouped according to the vacant byte, and the transmitting device can transmit the Ethernet frame based on the packet.
进一步的,请一并参见图14,是本发明实施例提供的再一种CPRI数据传输方法的流程示意图,本发明实施例的所述方法可具体应用于接收设备中,具体的,所述方法可包括以下步骤:Further, please refer to FIG. 14 , which is a schematic flowchart of another CPRI data transmission method according to an embodiment of the present invention. The method in the embodiment of the present invention may be specifically applied to a receiving device. Specifically, the method is The following steps can be included:
S401:接收设备在第二时钟并通过以太网物理层接收发送设备发送的以太网帧,其中,所述以太网帧是所述发送设备为需要传输的CPRI帧增加帧头和IPG,得到的能在以太网物理层传输的帧,所述CPRI帧对应的时钟为第一时钟,且所述第二时钟大于所述第一时钟。S401: The receiving device receives, at the second clock, an Ethernet frame sent by the sending device by using an Ethernet physical layer, where the Ethernet frame is that the sending device adds a frame header and an IPG to the CPRI frame that needs to be transmitted. In the frame transmitted by the Ethernet physical layer, the clock corresponding to the CPRI frame is the first clock, and the second clock is greater than the first clock.
S402:所述接收设备去掉所述以太网帧的所述帧头和所述IPG,得到所述CPRI帧。S402: The receiving device removes the frame header of the Ethernet frame and the IPG to obtain the CPRI frame.
具体的,还可通过更改以太网物理层芯片的工作时钟来实现基于以太网的CPRI数据传输。其中,所述CPRI帧对应的工作时钟为第一时钟,即该发送 设备可在该第一时钟传输CPRI帧,且所述以太网帧对应的工作时钟为第二时钟,即该发送设备可在该第二时钟发送以太网帧,该第二时钟大于该第一时钟。接收设备即可在该第二时钟接收该发送设备发送的以太网帧。Specifically, the Ethernet-based CPRI data transmission can also be implemented by changing the working clock of the Ethernet physical layer chip. The working clock corresponding to the CPRI frame is a first clock, that is, the sending The device may transmit the CPRI frame on the first clock, and the working clock corresponding to the Ethernet frame is the second clock, that is, the sending device may send an Ethernet frame on the second clock, where the second clock is greater than the first clock. . The receiving device can receive the Ethernet frame sent by the sending device at the second clock.
可选的,所述第一时钟可以具体为122.88MHz,所述第二时钟可以具体为125MHz。Optionally, the first clock may be specifically 122.88 MHz, and the second clock may be specifically 125 MHz.
具体实施例中,接收设备在接收到发送设备通过以太网网线即以太网物理层发送的以太网帧之后,即可去掉该以太网帧的帧头和IPG,并去掉该空余字节,从而提取出CPRI数据,将该CPRI数据的结构恢复为变换时钟域之前的标准CPRI超帧结构,即得到该第一时钟的CPRI帧。In a specific embodiment, after receiving the Ethernet frame sent by the sending device through the Ethernet network cable, that is, the Ethernet physical layer, the receiving device can remove the frame header and the IPG of the Ethernet frame, and remove the vacant byte, thereby extracting The CPRI data is output, and the structure of the CPRI data is restored to the standard CPRI superframe structure before the transform clock domain, that is, the CPRI frame of the first clock is obtained.
具体的,如图9所示,该发送设备中CPRI帧对应的第一时钟即CPRI数据时钟采用122.88MHz,以太网物理层对应的第二时钟即以太网物理层时钟采用125MHz。则以太网GE端口和CPRI端口的速率差(125-122.88)*8=16.96Mbps。一个CPRI超帧的长度为8192Byte,则对应的以太网物理层帧即以太网帧的长度为8192Byte*(125/122.88)=8333.333Byte,该以太网帧比该CPRI超帧对应多出8333.333-8192=141.333Byte(第一差值),扣除20Byte的帧头和IPG的长度后,还剩余121.333Byte空余字节(第二差值)。如图9所示,发送设备即发送端在对CPRI数据格式的超帧(8192Byte)进行格式转换时,为CPRI超帧增加帧头、IPG以及空余字节(121.333Byte),以满足以太网物理层的基本帧结构,转换为以太网物理层芯片格式传输的基本帧即以太网帧(8333.333Byte),从而实现通过以太网帧传输CPRI数据。Specifically, as shown in FIG. 9, the first clock corresponding to the CPRI frame in the transmitting device, that is, the CPRI data clock is 122.88 MHz, and the second clock corresponding to the Ethernet physical layer, that is, the Ethernet physical layer clock, is 125 MHz. The rate difference between the Ethernet GE port and the CPRI port is (125-122.88)*8=16.96Mbps. The length of a CPRI superframe is 8192 Bytes, and the length of the corresponding Ethernet physical layer frame, that is, the Ethernet frame is 8192 Byte*(125/122.88)=8333.333 Byte. The Ethernet frame corresponds to the CPRI superframe by 8333.333-8192. =141.333Byte (first difference), after deducting the 20Byte frame header and IPG length, there is still 121.333Byte free bytes (second difference). As shown in Figure 9, the transmitting device, that is, the transmitting end, adds a frame header, an IPG, and a spare byte (121.333 Byte) to the CPRI superframe to format the superframe (8192 Byte) of the CPRI data format to satisfy the Ethernet physics. The basic frame structure of the layer is converted into an Ethernet frame (8333.333 Byte), which is a basic frame transmitted by the Ethernet physical layer chip format, thereby realizing transmission of CPRI data through the Ethernet frame.
进一步的,考虑到实际实施,发送设备还可根据该空余的字节数,即根据该以太网帧与CPRI超帧的长度的差值以及帧头和IPG的长度来确定进行数据传输时以太网帧的分组。具体的,根据该空余的字节数为121.333Byte,发送设备可将每三个以太网基本帧作为一组,如图10所示,第一个以太网帧空余122Byte,后两个以太网帧空余121Byte,即该分组的三个以太网帧中,一个长度为8334Byte,其余两个长度为8333Byte。发送设备即可基于该分组向接收设备发送包括CPRI数据的以太网帧。接收设备即接收端接收到发送设备发送 的以太网帧之后,即可去掉该以太网帧的帧头和IPG,并去掉该空余字节,提取出CPRI数据,将该CPRI数据的结构恢复为变换时钟域之前的标准CPRI超帧结构。Further, in consideration of the actual implementation, the sending device may further determine the Ethernet according to the vacant number of bytes, that is, according to the difference between the length of the Ethernet frame and the CPRI superframe and the length of the frame header and the IPG. Grouping of frames. Specifically, according to the vacant number of bytes is 121.333 Byte, the transmitting device can treat each of the three Ethernet basic frames as a group, as shown in FIG. 10, the first Ethernet frame is spared 122 bytes, and the last two Ethernet frames are The spare space is 121 bytes, that is, among the three Ethernet frames of the packet, one length is 8334 bytes, and the other two lengths are 8333 bytes. The transmitting device can transmit an Ethernet frame including CPRI data to the receiving device based on the packet. The receiving device, that is, the receiving end receives the sending device and sends the sending After the Ethernet frame, the frame header and IPG of the Ethernet frame can be removed, and the spare byte is removed, and the CPRI data is extracted, and the structure of the CPRI data is restored to the standard CPRI superframe structure before the transformed clock domain.
在本发明实施例中,可通过时钟域转换,控制以太网的工作时钟大于CPRI时钟,使得相同时间内能够在以太网网线上传输更多的数据,例如,以太网物理层工作时钟取125MHz,CPRI工作时钟取122.88MHz,对于一个超帧(以太网基本帧),则可多传递141.333Byte的数据,除了帧头和IPG总共20Byte还剩余121.333Byte,从而实现了通过变换以太网物理层芯片的工作时钟对CPRI帧的带宽补偿,而不再挤占IQ数据空间,无需牺牲IQ带宽来实现基于GE的CPRI数据传输,提升了CPRI数据传输效率。In the embodiment of the present invention, the working clock of the Ethernet is controlled to be larger than the CPRI clock by the clock domain conversion, so that more data can be transmitted on the Ethernet network line in the same time, for example, the working frequency of the Ethernet physical layer is 125 MHz. The CPRI working clock takes 122.88MHz. For a superframe (Ethernet basic frame), 141.333 bytes of data can be transmitted, except for the frame header and the IPG, which has a total of 20 bytes and 121.333 bytes remaining, thereby realizing the transformation of the Ethernet physical layer chip. The working clock compensates the bandwidth of the CPRI frame, and no longer squeezes the IQ data space. It does not need to sacrifice the IQ bandwidth to implement GE-based CPRI data transmission, which improves the CPRI data transmission efficiency.
进一步的,请参见图15,是本发明实施例提供的又一种发送设备的结构示意图,本发明实施例的所述发送设备包括:接收器300、发射器400、存储器200和处理器100,所述存储器200可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。作为一种计算机存储介质的存储器200中存储相应的应用程序等。所述接收器300、发射器400、存储器200以及处理器100之间可以通过总线进行数据连接,也可以通过其他方式数据连接。本实施例中以总线连接进行说明。15 is a schematic structural diagram of another sending device according to an embodiment of the present invention. The sending device includes: a receiver 300, a transmitter 400, a memory 200, and a processor 100. The memory 200 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. A corresponding application or the like is stored in the memory 200 as a computer storage medium. The receiver 300, the transmitter 400, the memory 200, and the processor 100 may be connected to each other through a bus, or may be connected by other means. In the present embodiment, a bus connection will be described.
其中,所述处理器100执行如下步骤:The processor 100 performs the following steps:
删除需要传输的公共无线接口CPRI帧中预设数目个控制字;Deleting a preset number of control words in the CPRI frame of the public radio interface to be transmitted;
为删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧;Adding a frame header and a frame gap IPG to the CPRI frame after deleting the control word, and obtaining an Ethernet frame that can be transmitted on the Ethernet physical layer;
基于所述发射器400,并通过所述以太网物理层向接收设备发送所述以太网帧。Based on the transmitter 400, and transmitting the Ethernet frame to the receiving device through the Ethernet physical layer.
具体的,该需要传输的CPRI帧即为CPRI协议中的超帧。该预设数目即删除的控制字的个数可以为预先配置的固定个数,还可以为根据该CPRI帧的当前线速率确定出的数目,等等。Specifically, the CPRI frame that needs to be transmitted is a superframe in the CPRI protocol. The preset number, that is, the number of deleted control words, may be a fixed number configured in advance, may also be a number determined according to a current line rate of the CPRI frame, and the like.
可选的,所述处理器100在执行所述删除需要传输的CPRI帧中预设数目 个控制字,具体执行以下步骤:Optionally, the processor 100 presets a number of CPRI frames that need to be transmitted in the deletion. Control words, perform the following steps:
获取需要传输的CPRI帧对应的当前线速率;Obtain the current line rate corresponding to the CPRI frame to be transmitted;
根据所述当前线速率,确定出所述需要传输的CPRI帧中需要删除的控制字的数目,其中,所述需要删除的所述数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和;Determining, according to the current line rate, the number of control words that need to be deleted in the CPRI frame that needs to be transmitted, where the total length of the number of control words that need to be deleted is not less than the frame header and the The sum of the total lengths of the IPGs;
删除所述需要传输的CPRI帧中所述数目个控制字。Deleting the number of control words in the CPRI frame that needs to be transmitted.
具体的,该CPRI帧即CPRI协议中的超帧包括定义了不同用途的控制字,比如同步定时、慢速控制和管理、厂家自定义等等,还包括预留的一些控制字。可选的,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。Specifically, the CPRI frame, that is, the superframe in the CPRI protocol, includes control words that define different uses, such as synchronous timing, slow control and management, factory customization, and the like, and some reserved control words. Optionally, the deleted control word is a custom control word or a reserved control word in the CPRI frame that needs to be transmitted.
进一步的,请参见图16,是本发明实施例提供的再一种发送设备的结构示意图,本发明实施例的所述发送设备包括:接收器700、发射器800、存储器600和处理器500,所述存储器600可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。作为一种计算机存储介质的存储器600中存储相应的应用程序等。所述接收器700、发射器800、存储器600以及处理器500之间可以通过总线进行数据连接,也可以通过其他方式数据连接。本实施例中以总线连接进行说明。Further, please refer to FIG. 16 , which is a schematic structural diagram of still another sending device according to an embodiment of the present invention. The sending device includes: a receiver 700, a transmitter 800, a memory 600, and a processor 500. The memory 600 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. A corresponding application or the like is stored in the memory 600 as a computer storage medium. The receiver 700, the transmitter 800, the memory 600, and the processor 500 may be connected to each other through a bus, or may be connected by other means. In the present embodiment, a bus connection will be described.
其中,所述处理器500执行如下步骤:The processor 500 performs the following steps:
为需要传输的CPRI帧增加帧头和IPG,得到能在以太网物理层传输的以太网帧,所述CPRI帧对应的时钟为第一时钟;Adding a frame header and an IPG to the CPRI frame to be transmitted, and obtaining an Ethernet frame that can be transmitted on the physical layer of the Ethernet, where the clock corresponding to the CPRI frame is the first clock;
基于所述发射器800,在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,其中,所述第二时钟大于所述第一时钟。Based on the transmitter 800, the Ethernet frame is transmitted to the receiving device at the second clock and through the Ethernet physical layer, wherein the second clock is greater than the first clock.
具体实施例中,还可通过更改以太网物理层芯片的工作时钟来实现基于以太网的CPRI数据传输。具体的,所述CPRI帧对应的工作时钟为第一时钟,即该发送设备在该第一时钟传输CPRI帧,且所述以太网帧对应的工作时钟为第二时钟,即该发送设备可在该第二时钟发送以太网帧,通过该第二时钟传输以太网帧,该第二时钟大于该第一时钟。 In a specific embodiment, Ethernet-based CPRI data transmission can also be implemented by changing the working clock of the Ethernet physical layer chip. Specifically, the working clock corresponding to the CPRI frame is the first clock, that is, the sending device transmits the CPRI frame on the first clock, and the working clock corresponding to the Ethernet frame is the second clock, that is, the sending device can be in the The second clock transmits an Ethernet frame, and the second clock transmits an Ethernet frame, and the second clock is greater than the first clock.
可选的,所述处理器500还用于执行以下步骤:Optionally, the processor 500 is further configured to perform the following steps:
根据所述CPRI帧的帧长度、所述第一时钟以及所述第二时钟,计算得到所述以太网帧的帧长度;Calculating a frame length of the Ethernet frame according to a frame length of the CPRI frame, the first clock, and the second clock;
计算所述以太网帧的帧长度与所述CPRI帧的帧长度的第一差值,并计算所述第一差值与所述帧头和所述IPG的总长度之和的第二差值;Calculating a first difference between a frame length of the Ethernet frame and a frame length of the CPRI frame, and calculating a second difference between the first difference and a total length of the frame header and the IPG ;
根据所述第二差值,确定进行数据传输时以太网帧的分组;Determining, according to the second difference, a packet of an Ethernet frame when performing data transmission;
所述处理器500在执行所述在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,具体执行以下步骤:The processor 500 performs the following steps in the second clock and sending the Ethernet frame to the receiving device through the Ethernet physical layer:
基于所述分组,在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧。Based on the packet, the Ethernet frame is transmitted to the receiving device at the second clock and through the Ethernet physical layer.
可选的,所述第一时钟为122.88MHz,所述第二时钟为125MHz。Optionally, the first clock is 122.88 MHz, and the second clock is 125 MHz.
具体实施例中,通过时钟域转换,也即控制以太网的工作时钟(第二时钟)大于CPRI时钟(第一时钟),使得能够在相同的时间传输更多的数据,从而实现基于以太网的CPRI数据传输,而不再挤占IQ数据空间,使得提升了CPRI数据传输效率。In a specific embodiment, the clock domain conversion, that is, the control of the Ethernet operating clock (second clock) is greater than the CPRI clock (first clock), enabling more data to be transmitted at the same time, thereby implementing Ethernet-based CPRI data transmission, instead of crowding out the IQ data space, improves CPRI data transmission efficiency.
请参见图17,是本发明实施例提供的又一种接收设备的结构示意图,本发明实施例的所述接收设备包括:接收器1100、发射器1200、存储器1000和处理器900,所述存储器1000可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。作为一种计算机存储介质的存储器1000中存储相应的应用程序等。所述接收器1100、发射器1200、存储器1000以及处理器900之间可以通过总线进行数据连接,也可以通过其他方式数据连接。本实施例中以总线连接进行说明。Referring to FIG. 17, which is a schematic structural diagram of a receiving device according to an embodiment of the present invention, the receiving device includes: a receiver 1100, a transmitter 1200, a memory 1000, and a processor 900, where the memory 1000 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. A corresponding application or the like is stored in the memory 1000 as a computer storage medium. The receiver 1100, the transmitter 1200, the memory 1000, and the processor 900 may be connected to each other through a bus, or may be connected by other means. In the present embodiment, a bus connection will be described.
其中,所述处理器900执行如下步骤:The processor 900 performs the following steps:
基于所述接收器1100,并通过以太网物理层接收发送设备发送的以太网帧,所述以太网帧是所述发送设备删除需要传输的CPRI帧中预设数目个控制字,并为删除控制字后的CPRI帧增加帧头和IPG,得到的能在以太网物理层传输的帧; Receiving, according to the receiver 1100, an Ethernet frame sent by the sending device by using an Ethernet physical layer, where the Ethernet frame is a preset number of control words in the CPRI frame that the transmitting device deletes and needs to be transmitted, and is deleted control The CPRI frame after the word is added with a frame header and an IPG, and the obtained frame can be transmitted on the Ethernet physical layer;
去掉所述以太网帧的所述帧头和所述IPG,得到待恢复CPRI帧;Removing the frame header of the Ethernet frame and the IPG, to obtain a CPRI frame to be restored;
从所述待恢复CPRI帧中恢复删除的所述预设数目个控制字,将所述待恢复CPRI帧恢复为删除控制字前的CPRI帧。And recovering the preset number of control words from the to-be-recovered CPRI frame, and restoring the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
可选的,所述预设数目是根据需要传输的CPRI帧的对应的当前线速率确定出的,且删除的所述预设数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和。Optionally, the preset number is determined according to a corresponding current line rate of the CPRI frame that needs to be transmitted, and the total length of the deleted preset number of control words is not less than the frame header and the IPG. The sum of the total lengths.
具体的,该CPRI帧即CPRI协议中的超帧包括定义了不同用途的控制字,比如同步定时、慢速控制和管理、厂家自定义等等,还包括预留的一些控制字。可选的,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。Specifically, the CPRI frame, that is, the superframe in the CPRI protocol, includes control words that define different uses, such as synchronous timing, slow control and management, factory customization, and the like, and some reserved control words. Optionally, the deleted control word is a custom control word or a reserved control word in the CPRI frame that needs to be transmitted.
进一步的,请参见图18,是本发明实施例提供的再一种接收设备的结构示意图,本发明实施例的所述接收设备包括:接收器1500、发射器1600、存储器1400和处理器1300,所述存储器1400可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。作为一种计算机存储介质的存储器1400中存储相应的应用程序等。所述接收器1500、发射器1600、存储器1400以及处理器1300之间可以通过总线进行数据连接,也可以通过其他方式数据连接。本实施例中以总线连接进行说明。Further, please refer to FIG. 18, which is a schematic structural diagram of still another receiving device according to an embodiment of the present invention. The receiving device includes: a receiver 1500, a transmitter 1600, a memory 1400, and a processor 1300. The memory 1400 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. A corresponding application or the like is stored in the memory 1400 as a computer storage medium. The data connection between the receiver 1500, the transmitter 1600, the memory 1400, and the processor 1300 may be performed through a bus, or may be connected by other means. In the present embodiment, a bus connection will be described.
其中,所述处理器1300执行如下步骤:The processor 1300 performs the following steps:
基于所述接收器1500,在第二时钟并通过以太网物理层接收发送设备发送的以太网帧,其中,所述以太网帧是所述发送设备为需要传输的CPRI帧增加帧头和IPG,得到的能在以太网物理层传输的帧,所述CPRI帧对应的时钟为第一时钟,且所述第二时钟大于所述第一时钟;Receiving, according to the receiver 1500, an Ethernet frame sent by the sending device at a second clock and through an Ethernet physical layer, where the Ethernet frame is that the sending device adds a frame header and an IPG to a CPRI frame that needs to be transmitted, Obtaining a frame that can be transmitted on the Ethernet physical layer, the clock corresponding to the CPRI frame is a first clock, and the second clock is greater than the first clock;
去掉所述以太网帧的所述帧头和所述IPG,得到所述CPRI帧。The frame header of the Ethernet frame and the IPG are removed to obtain the CPRI frame.
具体的,还可通过更改以太网物理层芯片的工作时钟来实现基于以太网的CPRI数据传输。其中,所述CPRI帧对应的工作时钟为第一时钟,即该发送设备可在该第一时钟传输CPRI帧,且所述以太网帧对应的工作时钟为第二时钟,即该发送设备可在该第二时钟发送以太网帧,该第二时钟大于该第一时钟。 接收设备可在该第二时钟接收该发送设备发送的以太网帧,并可在接收到该以太网帧之后,去掉该以太网帧的帧头和IPG,提取出CPRI数据,将其恢复为变换时钟域之前的标准CPRI超帧结构。Specifically, the Ethernet-based CPRI data transmission can also be implemented by changing the working clock of the Ethernet physical layer chip. The working clock corresponding to the CPRI frame is the first clock, that is, the sending device can transmit the CPRI frame on the first clock, and the working clock corresponding to the Ethernet frame is the second clock, that is, the sending device can be in the The second clock transmits an Ethernet frame, and the second clock is greater than the first clock. The receiving device may receive the Ethernet frame sent by the sending device at the second clock, and after receiving the Ethernet frame, remove the frame header and the IPG of the Ethernet frame, extract the CPRI data, and restore the transform to a transform. Standard CPRI superframe structure before the clock domain.
可选的,所述第一时钟可以具体为122.88MHz,所述第二时钟可以具体为125MHz。Optionally, the first clock may be specifically 122.88 MHz, and the second clock may be specifically 125 MHz.
本发明实施例在通过以太网物理层芯片传输CPRI数据时,通过在CPRI帧中删除部分控制字,在删除的控制字的位置传输IQ数据,或者通过时钟域转换,控制以太网的工作时钟大于CPRI时钟,使得该基于以太网物理层的CPRI数据传输不再挤占IQ数据空间,从而提高了CPRI数据传输效率,增强了系统性能。In the embodiment of the present invention, when the CPRI data is transmitted through the Ethernet physical layer chip, the partial control word is deleted in the CPRI frame, the IQ data is transmitted at the position of the deleted control word, or the operating clock of the control Ethernet is greater than by the clock domain conversion. The CPRI clock makes the CPRI data transmission based on the Ethernet physical layer no longer occupy the IQ data space, thereby improving the CPRI data transmission efficiency and enhancing the system performance.
进一步的,请参见图19,是本发明实施例提供的一种CPRI数据传输系统的结构示意图,具体的,本发明实施例的所述系统包括:发送设备1和接收设备2,其中,Further, please refer to FIG. 19, which is a schematic structural diagram of a CPRI data transmission system according to an embodiment of the present invention. Specifically, the system in the embodiment of the present invention includes: a sending device 1 and a receiving device 2, where
所述发送设备1,用于删除需要传输的公共无线接口CPRI帧中预设数目个控制字;为删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧;通过所述以太网物理层向所述接收设备2发送所述以太网帧;The sending device 1 is configured to delete a preset number of control words in a CPRI frame of a public radio interface that needs to be transmitted, and add a frame header and a frame gap IPG to the CPRI frame after deleting the control word, so as to be transmitted in the physical layer of the Ethernet. An Ethernet frame; the Ethernet frame is sent to the receiving device 2 by the Ethernet physical layer;
所述接收设备2,用于通过所述以太网物理层接收所述发送设备1发送的以太网帧;去掉所述以太网帧的所述帧头和所述IPG,得到待恢复CPRI帧;从所述待恢复CPRI帧中恢复删除的所述预设数目个控制字,将所述待恢复CPRI帧恢复为删除控制字前的CPRI帧。The receiving device 2 is configured to receive, by using the Ethernet physical layer, an Ethernet frame sent by the sending device 1; removing the frame header of the Ethernet frame and the IPG, to obtain a CPRI frame to be restored; And deleting the preset number of control words in the to-be-recovered CPRI frame, and restoring the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
具体的,该需要传输的CPRI帧即为CPRI协议中的超帧,该超帧即可作为以太网数据传输的一个基本帧。Specifically, the CPRI frame that needs to be transmitted is a superframe in the CPRI protocol, and the superframe can be used as a basic frame for Ethernet data transmission.
可选的,所述预设数目是根据需要传输的CPRI帧的对应的当前线速率确定出的,且删除的所述预设数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和。 Optionally, the preset number is determined according to a corresponding current line rate of the CPRI frame that needs to be transmitted, and the total length of the deleted preset number of control words is not less than the frame header and the IPG. The sum of the total lengths.
进一步可选的,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。Further optionally, the deleted control word is a custom control word or a reserved control word in the CPRI frame that needs to be transmitted.
本发明实施例在通过以太网物理层芯片传输CPRI数据时,通过在CPRI帧中删除部分控制字,从而在实现基于GE的CPRI数据传输时不再挤占IQ数据空间,使得能够提高单根网线的数据传输效率,增强了单根网线在载波制式的应用场景,同时节省了端口占用以及网线使用,减少了网络部署成本和施工难度,增强了系统性能。When the CPRI data is transmitted through the physical layer chip of the Ethernet, the part of the control word is deleted in the CPRI frame, so that the IQ data space is no longer occupied when the GE-based CPRI data transmission is implemented, so that the single network cable can be improved. The data transmission efficiency enhances the application scenario of a single network cable in the carrier system, and saves port occupation and network cable usage, reduces network deployment cost and construction difficulty, and enhances system performance.
进一步的,请参见图20,是本发明实施例提供的另一种CPRI数据传输系统的结构示意图,具体的,本发明实施例的所述系统包括:发送设备1和接收设备2,其中,Further, please refer to FIG. 20, which is a schematic structural diagram of another CPRI data transmission system according to an embodiment of the present invention. Specifically, the system in the embodiment of the present invention includes: a sending device 1 and a receiving device 2, where
所述发送设备1,用于为需要传输的CPRI帧增加帧头和IPG,得到能在以太网物理层传输的以太网帧,所述CPRI帧对应的时钟为第一时钟;在第二时钟并通过所述以太网物理层向所述接收设备2发送所述以太网帧,其中,所述第二时钟大于所述第一时钟;The sending device 1 is configured to add a frame header and an IPG to the CPRI frame that needs to be transmitted, and obtain an Ethernet frame that can be transmitted on the physical layer of the Ethernet, where the clock corresponding to the CPRI frame is the first clock; Transmitting, by the Ethernet physical layer, the Ethernet frame to the receiving device 2, where the second clock is greater than the first clock;
所述接收设备2,用于在所述第二时钟并通过所述以太网物理层接收所述发送设备1发送的以太网帧;去掉所述以太网帧的所述帧头和所述IPG,得到所述CPRI帧。The receiving device 2 is configured to receive, by the second clock, the Ethernet frame sent by the sending device 1 by using the Ethernet physical layer; removing the frame header and the IPG of the Ethernet frame, The CPRI frame is obtained.
进一步的,所述发送设备还可根据所述CPRI帧的帧长度、所述第一时钟以及所述第二时钟,计算得到所述以太网帧的帧长度;计算所述以太网帧的帧长度与所述CPRI帧的帧长度的第一差值,并计算所述第一差值与所述帧头和所述IPG的总长度之和的第二差值;根据所述第二差值,确定进行数据传输时以太网帧的分组。从而发送设备可基于所述分组,在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧。Further, the sending device may further calculate a frame length of the Ethernet frame according to a frame length of the CPRI frame, the first clock, and the second clock, and calculate a frame length of the Ethernet frame. a first difference from a frame length of the CPRI frame, and calculating a second difference between the first difference and a total length of the frame header and the IPG; according to the second difference, Determine the grouping of Ethernet frames for data transmission. Thereby the transmitting device can transmit the Ethernet frame to the receiving device at the second clock and over the Ethernet physical layer based on the packet.
可选的,所述第一时钟可以具体为122.88MHz,所述第二时钟可以具体为125MHz。Optionally, the first clock may be specifically 122.88 MHz, and the second clock may be specifically 125 MHz.
在本发明实施例中,可通过时钟域转换,控制以太网的工作时钟大于CPRI时钟,使得相同时间内能够在以太网网线上传输更多的数据,例如,以太网物 理层工作时钟取125MHz,CPRI工作时钟取122.88MHz,对于一个超帧(以太网基本帧),则可多传递141.333Byte的数据,除了帧头和IPG总共20Byte还剩余121.333Byte,从而实现了通过变换以太网物理层芯片的工作时钟对CPRI帧的带宽补偿,而不再挤占IQ数据空间,无需牺牲IQ带宽来实现基于GE的CPRI数据传输,提升了CPRI数据传输效率。In the embodiment of the present invention, the working clock of the Ethernet is controlled to be larger than the CPRI clock by clock domain conversion, so that more data can be transmitted on the Ethernet network line in the same time, for example, an Ethernet object. The working clock of the layer is 125MHz, and the working clock of CPRI is 122.88MHz. For a superframe (Ethernet basic frame), 141.333 bytes of data can be transmitted, except for the frame header and IPG, which has a total of 20 bytes and 121.333Byte remaining. Transforming the working clock of the Ethernet physical layer chip to compensate the bandwidth of the CPRI frame, and no longer crowding the IQ data space, without sacrificing the IQ bandwidth to implement GE-based CPRI data transmission, and improving the CPRI data transmission efficiency.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机 存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps. The foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), and a random A variety of media that can store program code, such as a random access memory (RAM), a disk, or an optical disk.
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of each functional module described above is exemplified. In practical applications, the above function assignment can be completed by different functional modules as needed, that is, the device is installed. The internal structure is divided into different functional modules to perform all or part of the functions described above. For the specific working process of the device described above, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (39)

  1. 一种发送设备,其特征在于,包括:A transmitting device, comprising:
    删除模块,用于删除需要传输的公共无线接口CPRI帧中预设数目个控制字;a deleting module, configured to delete a preset number of control words in a CPRI frame of a public wireless interface that needs to be transmitted;
    格式转换模块,用于为所述删除模块删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧;a format conversion module, configured to add a frame header and a frame gap IPG to the CPRI frame after the deletion of the control word by the deleting module, to obtain an Ethernet frame that can be transmitted in the physical layer of the Ethernet;
    发送模块,用于通过所述以太网物理层向接收设备发送所述以太网帧。And a sending module, configured to send the Ethernet frame to the receiving device by using the Ethernet physical layer.
  2. 根据权利要求1所述的发送设备,其特征在于,所述删除模块包括:The transmitting device according to claim 1, wherein the deleting module comprises:
    获取单元,用于获取需要传输的CPRI帧对应的当前线速率;An acquiring unit, configured to acquire a current line rate corresponding to a CPRI frame that needs to be transmitted;
    数目确定单元,用于根据所述获取单元获取的所述当前线速率,确定出所述需要传输的CPRI帧中需要删除的控制字的数目,其中,所述需要删除的所述数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和;a number determining unit, configured to determine, according to the current line rate acquired by the acquiring unit, the number of control words that need to be deleted in the CPRI frame that needs to be transmitted, where the number of control words that need to be deleted The total length is not less than the sum of the total length of the frame header and the IPG;
    数据删除单元,用于删除所述需要传输的CPRI帧中所述数目确定单元确定出的所述数目个控制字。And a data deleting unit, configured to delete the number of control words determined by the number determining unit in the CPRI frame that needs to be transmitted.
  3. 根据权利要求1或2所述的发送设备,其特征在于,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。The transmitting device according to claim 1 or 2, wherein the deleted control word is a custom control word or a reserved control word in the CPRI frame to be transmitted.
  4. 一种发送设备,其特征在于,包括:A transmitting device, comprising:
    格式转换模块,用于为需要传输的通用公共无线接口CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧,所述CPRI帧对应的时钟为第一时钟;a format conversion module, configured to add a frame header and a frame gap IPG to a common public radio interface CPRI frame to be transmitted, to obtain an Ethernet frame that can be transmitted on an Ethernet physical layer, where the clock corresponding to the CPRI frame is a first clock;
    发送模块,用于在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,其中,所述第二时钟大于所述第一时钟。 And a sending module, configured to send the Ethernet frame to the receiving device by using the Ethernet physical layer at a second clock, where the second clock is greater than the first clock.
  5. 根据权利要求4所述的发送设备,其特征在于,所述发送设备还包括:The transmitting device according to claim 4, wherein the transmitting device further comprises:
    计算模块,用于根据所述CPRI帧的帧长度、所述第一时钟以及所述第二时钟,计算得到所述以太网帧的帧长度;a calculation module, configured to calculate, according to a frame length of the CPRI frame, the first clock, and the second clock, a frame length of the Ethernet frame;
    所述计算模块,还用于计算所述以太网帧的帧长度与所述CPRI帧的帧长度的第一差值,并计算所述第一差值与所述帧头和所述IPG的总长度之和的第二差值;The calculating module is further configured to calculate a first difference between a frame length of the Ethernet frame and a frame length of the CPRI frame, and calculate the first difference and the total of the frame header and the IPG. a second difference in the sum of the lengths;
    分组确定模块,用于根据所述计算模块计算得到的所述第二差值,确定进行数据传输时以太网帧的分组;a packet determining module, configured to determine, according to the second difference value calculated by the calculating module, a packet of an Ethernet frame when performing data transmission;
    所述发送模块具体用于:The sending module is specifically configured to:
    基于所述分组,在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧。Based on the packet, the Ethernet frame is transmitted to the receiving device at the second clock and through the Ethernet physical layer.
  6. 根据权利要求4或5所述的发送设备,其特征在于,所述第一时钟为122.88MHz,所述第二时钟为125MHz。The transmitting device according to claim 4 or 5, wherein the first clock is 122.88 MHz and the second clock is 125 MHz.
  7. 一种接收设备,其特征在于,包括:A receiving device, comprising:
    接收模块,用于通过以太网物理层接收发送设备发送的以太网帧,所述以太网帧是所述发送设备删除需要传输的通用公共无线接口CPRI帧中预设数目个控制字,并为删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到的能在以太网物理层传输的帧;a receiving module, configured to receive, by using an Ethernet physical layer, an Ethernet frame sent by the sending device, where the Ethernet frame is a preset number of control words in the CPRI frame of the universal public wireless interface that the transmitting device needs to be deleted, and is deleted The CPRI frame after the control word is increased by the frame header and the frame gap IPG, and the obtained frame can be transmitted on the Ethernet physical layer;
    恢复模块,用于去掉所述以太网帧的所述帧头和所述IPG,得到待恢复CPRI帧;a recovery module, configured to remove the frame header of the Ethernet frame and the IPG, to obtain a CPRI frame to be restored;
    所述恢复模块,还用于从所述待恢复CPRI帧中恢复删除的所述预设数目个控制字,将所述待恢复CPRI帧恢复为删除控制字前的CPRI帧。The recovery module is further configured to recover the preset number of control words deleted from the to-be-recovered CPRI frame, and restore the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
  8. 根据权利要求7所述的接收设备,其特征在于,所述预设数目是根据需要传输的CPRI帧的对应的当前线速率确定出的,且删除的所述预设数目个 控制字的总长度不小于所述帧头和所述IPG的总长度之和。The receiving device according to claim 7, wherein the preset number is determined according to a corresponding current line rate of a CPRI frame that needs to be transmitted, and the preset number of deletions is determined. The total length of the control word is not less than the sum of the total length of the frame header and the IPG.
  9. 根据权利要求7或8所述的接收设备,其特征在于,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。The receiving device according to claim 7 or 8, wherein the deleted control word is a custom control word or a reserved control word in the CPRI frame to be transmitted.
  10. 一种接收设备,其特征在于,包括:A receiving device, comprising:
    接收模块,用于在第二时钟并通过以太网物理层接收发送设备发送的以太网帧,其中,所述以太网帧是所述发送设备为需要传输的通用公共无线接口CPRI帧增加帧头和帧间隙IPG,得到的能在以太网物理层传输的帧,所述CPRI帧对应的时钟为第一时钟,且所述第二时钟大于所述第一时钟;a receiving module, configured to receive, by the second clock, an Ethernet frame sent by the sending device by using an Ethernet physical layer, where the Ethernet frame is that the sending device adds a frame header to a common public wireless interface CPRI frame that needs to be transmitted. a frame gap IPG, a frame that can be transmitted on the Ethernet physical layer, the clock corresponding to the CPRI frame is a first clock, and the second clock is greater than the first clock;
    恢复模块,用于去掉所述以太网帧的所述帧头和所述IPG,得到所述CPRI帧。And a recovery module, configured to remove the frame header of the Ethernet frame and the IPG, to obtain the CPRI frame.
  11. 根据权利要求10所述的接收设备,其特征在于,所述第一时钟为122.88MHz,所述第二时钟为125MHz。The receiving device according to claim 10, wherein the first clock is 122.88 MHz and the second clock is 125 MHz.
  12. 一种通用公共无线接口CPRI数据传输方法,其特征在于,包括:A general public radio interface CPRI data transmission method, comprising:
    发送设备删除需要传输的公共无线接口CPRI帧中预设数目个控制字;The sending device deletes a preset number of control words in the CPRI frame of the public radio interface to be transmitted;
    所述发送设备为删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧;The sending device adds a frame header and a frame gap IPG to the CPRI frame after deleting the control word, and obtains an Ethernet frame that can be transmitted on the Ethernet physical layer;
    所述发送设备通过所述以太网物理层向接收设备发送所述以太网帧。The transmitting device sends the Ethernet frame to the receiving device by using the Ethernet physical layer.
  13. 根据权利要求12所述的方法,其特征在于,所述发送设备删除需要传输的CPRI帧中预设数目个控制字,包括:The method according to claim 12, wherein the sending device deletes a preset number of control words in the CPRI frame to be transmitted, including:
    发送设备获取需要传输的CPRI帧对应的当前线速率;The sending device acquires a current line rate corresponding to the CPRI frame that needs to be transmitted;
    所述发送设备根据所述当前线速率,确定出所述需要传输的CPRI帧中需要删除的控制字的数目,其中,所述需要删除的所述数目个控制字的总长度不 小于所述帧头和所述IPG的总长度之和;The sending device determines, according to the current line rate, the number of control words that need to be deleted in the CPRI frame that needs to be transmitted, where the total length of the number of control words that need to be deleted is not Less than the sum of the total length of the frame header and the IPG;
    所述发送设备删除所述需要传输的CPRI帧中所述数目个控制字。The transmitting device deletes the number of control words in the CPRI frame that needs to be transmitted.
  14. 根据权利要求12或13所述的方法,其特征在于,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。The method according to claim 12 or 13, wherein the deleted control word is a custom control word or a reserved control word in the CPRI frame to be transmitted.
  15. 一种通用公共无线接口CPRI数据传输方法,其特征在于,包括:A general public radio interface CPRI data transmission method, comprising:
    发送设备为需要传输的CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧,所述CPRI帧对应的时钟为第一时钟;The sending device adds a frame header and a frame gap IPG to the CPRI frame to be transmitted, and obtains an Ethernet frame that can be transmitted on the physical layer of the Ethernet, where the clock corresponding to the CPRI frame is the first clock;
    所述发送设备在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,其中,所述第二时钟大于所述第一时钟。The sending device sends the Ethernet frame to the receiving device by using the Ethernet physical layer at a second clock, where the second clock is greater than the first clock.
  16. 根据权利要求15所述的方法,其特征在于,所述方法还包括:The method of claim 15 wherein the method further comprises:
    所述发送设备根据所述CPRI帧的帧长度、所述第一时钟以及所述第二时钟,计算得到所述以太网帧的帧长度;Transmitting, by the sending device, a frame length of the Ethernet frame according to a frame length of the CPRI frame, the first clock, and the second clock;
    所述发送设备计算所述以太网帧的帧长度与所述CPRI帧的帧长度的第一差值,并计算所述第一差值与所述帧头和所述IPG的总长度之和的第二差值;The sending device calculates a first difference between a frame length of the Ethernet frame and a frame length of the CPRI frame, and calculates a sum of the first difference value and a total length of the frame header and the IPG. Second difference
    所述发送设备根据所述第二差值,确定进行数据传输时以太网帧的分组;The sending device determines, according to the second difference, a packet of an Ethernet frame when performing data transmission;
    所述发送设备在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,包括:Sending, by the sending device, the Ethernet frame to the receiving device by using the Ethernet physical layer on the second clock, including:
    所述发送设备基于所述分组,在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧。The transmitting device transmits the Ethernet frame to the receiving device at the second clock and through the Ethernet physical layer based on the packet.
  17. 根据权利要求15或16所述的方法,其特征在于,所述第一时钟为122.88MHz,所述第二时钟为125MHz。The method according to claim 15 or 16, wherein the first clock is 122.88 MHz and the second clock is 125 MHz.
  18. 一种通用公共无线接口CPRI数据传输方法,其特征在于,包括: A general public radio interface CPRI data transmission method, comprising:
    接收设备通过以太网物理层接收发送设备发送的以太网帧,所述以太网帧是所述发送设备删除需要传输的CPRI帧中预设数目个控制字,并为删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到的能在以太网物理层传输的帧;The receiving device receives, by the Ethernet physical layer, an Ethernet frame sent by the sending device, where the Ethernet frame is a preset number of control words in the CPRI frame that the transmitting device deletes and needs to be transmitted, and is added to the CPRI frame after deleting the control word. Frame header and frame gap IPG, obtained frames that can be transmitted on the Ethernet physical layer;
    所述接收设备去掉所述以太网帧的所述帧头和所述IPG,得到待恢复CPRI帧;Receiving, by the receiving device, the frame header of the Ethernet frame and the IPG, to obtain a CPRI frame to be restored;
    所述接收设备从所述待恢复CPRI帧中恢复删除的所述预设数目个控制字,将所述待恢复CPRI帧恢复为删除控制字前的CPRI帧。And the receiving device recovers the preset number of control words deleted from the to-be-recovered CPRI frame, and restores the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
  19. 根据权利要求18所述的方法,其特征在于,所述预设数目是根据需要传输的CPRI帧的对应的当前线速率确定出的,且删除的所述预设数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和。The method according to claim 18, wherein the preset number is determined according to a corresponding current line rate of a CPRI frame that needs to be transmitted, and the total length of the deleted preset number of control words is not It is smaller than the sum of the total length of the frame header and the IPG.
  20. 根据权利要求18或19所述的方法,其特征在于,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。The method according to claim 18 or 19, wherein the deleted control word is a custom control word or a reserved control word in the CPRI frame to be transmitted.
  21. 一种通用公共无线接口CPRI数据传输方法,其特征在于,包括:A general public radio interface CPRI data transmission method, comprising:
    接收设备在第二时钟并通过以太网物理层接收发送设备发送的以太网帧,其中,所述以太网帧是所述发送设备为需要传输的CPRI帧增加帧头和帧间隙IPG,得到的能在以太网物理层传输的帧,所述CPRI帧对应的时钟为第一时钟,且所述第二时钟大于所述第一时钟;The receiving device receives the Ethernet frame sent by the sending device at the second clock and through the Ethernet physical layer, where the Ethernet frame is the sending device adds a frame header and a frame gap IPG to the CPRI frame to be transmitted, and the obtained device can obtain the energy of the frame and the frame gap IPG. a clock transmitted by the physical layer of the Ethernet, the clock corresponding to the CPRI frame is a first clock, and the second clock is greater than the first clock;
    所述接收设备去掉所述以太网帧的所述帧头和所述IPG,得到所述CPRI帧。The receiving device removes the frame header of the Ethernet frame and the IPG to obtain the CPRI frame.
  22. 根据权利要求21所述的方法,其特征在于,所述第一时钟为122.88MHz,所述第二时钟为125MHz。The method of claim 21 wherein said first clock is 122.88 MHz and said second clock is 125 MHz.
  23. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序, 所述程序执行时包括如权利要求12-14任一项所述的方法步骤。A computer storage medium, characterized in that the computer storage medium stores a program, The program execution comprises the method steps of any of claims 12-14.
  24. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序,所述程序执行时包括如权利要求15-17任一项所述的方法步骤。A computer storage medium, characterized in that the computer storage medium stores a program, the program being executed comprising the method steps of any one of claims 15-17.
  25. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序,所述程序执行时包括如权利要求18-20任一项所述的方法步骤。A computer storage medium, characterized in that the computer storage medium stores a program, the program being executed comprising the method steps of any one of claims 18-20.
  26. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序,所述程序执行时包括如权利要求21-22任一项所述的方法步骤。A computer storage medium, characterized in that said computer storage medium stores a program, said program being executed comprising the method steps of any one of claims 21-22.
  27. 一种发送设备,其特征在于,包括:发射器、接收器、存储器和处理器,A transmitting device, comprising: a transmitter, a receiver, a memory, and a processor,
    其中,所述处理器执行以下步骤:Wherein the processor performs the following steps:
    删除需要传输的公共无线接口CPRI帧中预设数目个控制字;Deleting a preset number of control words in the CPRI frame of the public radio interface to be transmitted;
    为删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧;Adding a frame header and a frame gap IPG to the CPRI frame after deleting the control word, and obtaining an Ethernet frame that can be transmitted on the Ethernet physical layer;
    基于所述发射器,并通过所述以太网物理层向接收设备发送所述以太网帧。Based on the transmitter, and transmitting the Ethernet frame to a receiving device through the Ethernet physical layer.
  28. 根据权利要求27所述的发送设备,其特征在于,所述处理器在执行所述删除需要传输的CPRI帧中预设数目个控制字,具体执行以下步骤:The transmitting device according to claim 27, wherein the processor presets a number of control words in a CPRI frame that needs to be transmitted by performing the deletion, and specifically performs the following steps:
    获取需要传输的CPRI帧对应的当前线速率;Obtain the current line rate corresponding to the CPRI frame to be transmitted;
    根据所述当前线速率,确定出所述需要传输的CPRI帧中需要删除的控制字的数目,其中,所述需要删除的所述数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和;Determining, according to the current line rate, the number of control words that need to be deleted in the CPRI frame that needs to be transmitted, where the total length of the number of control words that need to be deleted is not less than the frame header and the The sum of the total lengths of the IPGs;
    删除所述需要传输的CPRI帧中所述数目个控制字。 Deleting the number of control words in the CPRI frame that needs to be transmitted.
  29. 根据权利要求27或28所述的发送设备,其特征在于,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。The transmitting device according to claim 27 or 28, wherein the deleted control word is a custom control word or a reserved control word in the CPRI frame to be transmitted.
  30. 一种发送设备,其特征在于,包括:发射器、接收器、存储器和处理器,A transmitting device, comprising: a transmitter, a receiver, a memory, and a processor,
    其中,所述处理器执行以下步骤:Wherein the processor performs the following steps:
    为需要传输的通用公共无线接口CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧,所述CPRI帧对应的时钟为第一时钟;Adding a frame header and a frame gap IPG to the common public radio interface CPRI frame to be transmitted, and obtaining an Ethernet frame that can be transmitted on the physical layer of the Ethernet, where the clock corresponding to the CPRI frame is the first clock;
    基于所述发射器,在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,其中,所述第二时钟大于所述第一时钟。And transmitting, according to the transmitter, the Ethernet frame to the receiving device at the second clock and through the Ethernet physical layer, wherein the second clock is greater than the first clock.
  31. 根据权利要求30所述的发送设备,其特征在于,所述处理器还用于执行以下步骤:The transmitting device according to claim 30, wherein the processor is further configured to perform the following steps:
    根据所述CPRI帧的帧长度、所述第一时钟以及所述第二时钟,计算得到所述以太网帧的帧长度;Calculating a frame length of the Ethernet frame according to a frame length of the CPRI frame, the first clock, and the second clock;
    计算所述以太网帧的帧长度与所述CPRI帧的帧长度的第一差值,并计算所述第一差值与所述帧头和所述IPG的总长度之和的第二差值;Calculating a first difference between a frame length of the Ethernet frame and a frame length of the CPRI frame, and calculating a second difference between the first difference and a total length of the frame header and the IPG ;
    根据所述第二差值,确定进行数据传输时以太网帧的分组;Determining, according to the second difference, a packet of an Ethernet frame when performing data transmission;
    所述处理器在执行所述在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧,具体执行以下步骤:The processor is configured to send the Ethernet frame to the receiving device by using the Ethernet physical layer, and perform the following steps:
    基于所述分组,在第二时钟并通过所述以太网物理层向接收设备发送所述以太网帧。Based on the packet, the Ethernet frame is transmitted to the receiving device at the second clock and through the Ethernet physical layer.
  32. 根据权利要求30或31所述的发送设备,其特征在于,所述第一时钟为122.88MHz,所述第二时钟为125MHz。 The transmitting device according to claim 30 or 31, wherein the first clock is 122.88 MHz and the second clock is 125 MHz.
  33. 一种接收设备,其特征在于,包括:发射器、接收器、存储器和处理器,A receiving device, comprising: a transmitter, a receiver, a memory, and a processor,
    其中,所述处理器执行以下步骤:Wherein the processor performs the following steps:
    基于所述接收器,并通过以太网物理层接收发送设备发送的以太网帧,所述以太网帧是所述发送设备删除需要传输的通用公共无线接口CPRI帧中预设数目个控制字,并为删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到的能在以太网物理层传输的帧;Receiving, according to the receiver, an Ethernet frame sent by the sending device by using an Ethernet physical layer, where the Ethernet frame is a preset number of control words in the CPRI frame of the universal public radio interface that the transmitting device needs to transmit, and Adding a frame header and a frame gap IPG to the CPRI frame after deleting the control word, and obtaining a frame that can be transmitted on the Ethernet physical layer;
    去掉所述以太网帧的所述帧头和所述IPG,得到待恢复CPRI帧;Removing the frame header of the Ethernet frame and the IPG, to obtain a CPRI frame to be restored;
    从所述待恢复CPRI帧中恢复删除的所述预设数目个控制字,将所述待恢复CPRI帧恢复为删除控制字前的CPRI帧。And recovering the preset number of control words from the to-be-recovered CPRI frame, and restoring the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
  34. 根据权利要求33所述的接收设备,其特征在于,所述预设数目是根据需要传输的CPRI帧的对应的当前线速率确定出的,且删除的所述预设数目个控制字的总长度不小于所述帧头和所述IPG的总长度之和。The receiving device according to claim 33, wherein the preset number is determined according to a corresponding current line rate of a CPRI frame that needs to be transmitted, and the total length of the preset number of control words deleted is Not less than the sum of the total length of the frame header and the IPG.
  35. 根据权利要求33或34所述的接收设备,其特征在于,删除的所述控制字为所述需要传输的CPRI帧中的自定义控制字或预留的控制字。The receiving device according to claim 33 or 34, wherein the deleted control word is a custom control word or a reserved control word in the CPRI frame to be transmitted.
  36. 一种接收设备,其特征在于,包括:发射器、接收器、存储器和处理器,A receiving device, comprising: a transmitter, a receiver, a memory, and a processor,
    其中,所述处理器执行以下步骤:Wherein the processor performs the following steps:
    基于所述接收器,在第二时钟并通过以太网物理层接收发送设备发送的以太网帧,其中,所述以太网帧是所述发送设备为需要传输的通用公共无线接口CPRI帧增加帧头和帧间隙IPG,得到的能在以太网物理层传输的帧,所述CPRI帧对应的时钟为第一时钟,且所述第二时钟大于所述第一时钟;Receiving, according to the receiver, an Ethernet frame sent by the sending device at a second clock and through an Ethernet physical layer, wherein the Ethernet frame is a sending frame header of the common public wireless interface CPRI frame that needs to be transmitted by the sending device a frame gap IPG, the frame that can be transmitted on the Ethernet physical layer, the clock corresponding to the CPRI frame is a first clock, and the second clock is greater than the first clock;
    去掉所述以太网帧的所述帧头和所述IPG,得到所述CPRI帧。 The frame header of the Ethernet frame and the IPG are removed to obtain the CPRI frame.
  37. 根据权利要求36所述的接收设备,其特征在于,所述第一时钟为122.88MHz,所述第二时钟为125MHz。The receiving device according to claim 36, wherein said first clock is 122.88 MHz and said second clock is 125 MHz.
  38. 一种通用公共无线接口CPRI数据传输系统,其特征在于,包括:发送设备和接收设备,其中,A general public radio interface CPRI data transmission system, comprising: a transmitting device and a receiving device, wherein
    所述发送设备,用于删除需要传输的公共无线接口CPRI帧中预设数目个控制字;为删除控制字后的CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧;通过所述以太网物理层向所述接收设备发送所述以太网帧;The sending device is configured to delete a preset number of control words in a CPRI frame of a public radio interface that needs to be transmitted; add a frame header and a frame gap IPG to the CPRI frame after deleting the control word, and obtain an ether that can be transmitted in the physical layer of the Ethernet. a network frame; sending, by the Ethernet physical layer, the Ethernet frame to the receiving device;
    所述接收设备,用于通过所述以太网物理层接收所述发送设备发送的以太网帧;去掉所述以太网帧的所述帧头和所述IPG,得到待恢复CPRI帧;从所述待恢复CPRI帧中恢复删除的所述预设数目个控制字,将所述待恢复CPRI帧恢复为删除控制字前的CPRI帧。The receiving device is configured to receive, by the Ethernet physical layer, an Ethernet frame sent by the sending device, remove the frame header of the Ethernet frame, and the IPG, to obtain a CPRI frame to be restored; And deleting the preset number of control words in the CPRI frame to be restored, and restoring the to-be-recovered CPRI frame to a CPRI frame before deleting the control word.
  39. 一种通用公共无线接口CPRI数据传输系统,其特征在于,包括:发送设备和接收设备,其中,A general public radio interface CPRI data transmission system, comprising: a transmitting device and a receiving device, wherein
    所述发送设备,用于为需要传输的CPRI帧增加帧头和帧间隙IPG,得到能在以太网物理层传输的以太网帧,所述CPRI帧对应的时钟为第一时钟;在第二时钟并通过所述以太网物理层向所述接收设备发送所述以太网帧,其中,所述第二时钟大于所述第一时钟;The sending device is configured to add a frame header and a frame gap IPG to the CPRI frame that needs to be transmitted, to obtain an Ethernet frame that can be transmitted on the Ethernet physical layer, where the clock corresponding to the CPRI frame is the first clock; And sending, by the Ethernet physical layer, the Ethernet frame to the receiving device, where the second clock is greater than the first clock;
    所述接收设备,用于在所述第二时钟并通过所述以太网物理层接收所述发送设备发送的以太网帧;去掉所述以太网帧的所述帧头和所述IPG,得到所述CPRI帧。 The receiving device is configured to receive, by the second clock, an Ethernet frame sent by the sending device by using the Ethernet physical layer; removing the frame header of the Ethernet frame and the IPG, and obtaining the Said CPRI frame.
PCT/CN2015/080250 2015-05-29 2015-05-29 Common public radio interface (cpri) data transmission method, related device and system WO2016191921A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2015/080250 WO2016191921A1 (en) 2015-05-29 2015-05-29 Common public radio interface (cpri) data transmission method, related device and system
CN201580079139.2A CN107534688A (en) 2015-05-29 2015-05-29 A kind of common public radio interface CPRI data transmission method, relevant device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/080250 WO2016191921A1 (en) 2015-05-29 2015-05-29 Common public radio interface (cpri) data transmission method, related device and system

Publications (1)

Publication Number Publication Date
WO2016191921A1 true WO2016191921A1 (en) 2016-12-08

Family

ID=57439847

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/080250 WO2016191921A1 (en) 2015-05-29 2015-05-29 Common public radio interface (cpri) data transmission method, related device and system

Country Status (2)

Country Link
CN (1) CN107534688A (en)
WO (1) WO2016191921A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113098667A (en) * 2021-03-30 2021-07-09 联芸科技(杭州)有限公司 Data transmission method, system, computer device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005450A (en) * 2006-12-15 2007-07-25 上海华为技术有限公司 General public radio interface data transmission method and its device and system
WO2007134950A1 (en) * 2006-05-24 2007-11-29 Nokia Siemens Networks Gmbh & Co. Kg Method and arrangement for transmitting data signals
CN102497233A (en) * 2011-12-23 2012-06-13 武汉虹信通信技术有限责任公司 Method for transmitting Ethernet signal by utilizing digital optical fiber repeater
CN103875206A (en) * 2013-12-31 2014-06-18 华为技术有限公司 Data transmission method, and data forwarding equipment and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8842649B2 (en) * 2009-06-19 2014-09-23 China Academy Of Telecommunications Technology Remote radio data transmission over Ethernet
CN102802170B (en) * 2011-05-26 2017-03-15 中兴通讯股份有限公司 Obtain method, device and the base station of ethernet data frame

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007134950A1 (en) * 2006-05-24 2007-11-29 Nokia Siemens Networks Gmbh & Co. Kg Method and arrangement for transmitting data signals
CN101005450A (en) * 2006-12-15 2007-07-25 上海华为技术有限公司 General public radio interface data transmission method and its device and system
CN102497233A (en) * 2011-12-23 2012-06-13 武汉虹信通信技术有限责任公司 Method for transmitting Ethernet signal by utilizing digital optical fiber repeater
CN103875206A (en) * 2013-12-31 2014-06-18 华为技术有限公司 Data transmission method, and data forwarding equipment and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113098667A (en) * 2021-03-30 2021-07-09 联芸科技(杭州)有限公司 Data transmission method, system, computer device and medium
CN113098667B (en) * 2021-03-30 2023-06-23 联芸科技(杭州)股份有限公司 Data transmission method, system, computer device and medium

Also Published As

Publication number Publication date
CN107534688A (en) 2018-01-02

Similar Documents

Publication Publication Date Title
CN110049512B (en) Forward-transmission network data processing device and method
CN101931454B (en) Ethernet-based radio remote data transmission
US11736978B2 (en) Method and apparatus for receiving CPRI data stream, method and apparatus for receiving ethernet frame, and system
CN100525543C (en) Base station system for mobile communication
US20160316463A1 (en) Data Transmission Method, Data Transfer Device, and System
WO2008071131A1 (en) A common public radio interface data transmission method and the device and system thereof
WO2019019906A1 (en) Communication method and device, and storage medium
US10348408B2 (en) Method and apparatus for transmitting frame data between near-end device and remote device
US20180124640A1 (en) Digital fronthaul data transmission method, device, and system
CN102547716A (en) Wireless communication system and method for flat network architecture and extend unit
CN111212446B (en) Data processing method, data processing device, computer equipment and storage medium
CN114257972B (en) Embedded 5G communication system and method for power terminal
WO2017067379A1 (en) Downlink data transmission method, equipment, and system
CN111372287B (en) Signal processing method, access network equipment and multi-system access network equipment
CN102215199A (en) In-phase/quadrature (IQ) data transmission method and device
CN111835748A (en) Data conversion method and device between CPRI interface and eCPRI interface
WO2010099719A1 (en) Relay-based signal transmission method and device
EP3301964B1 (en) Wireless network function configuration method and wireless network node
WO2016191921A1 (en) Common public radio interface (cpri) data transmission method, related device and system
CN102388594A (en) Method, device and system for data transmission
CN102469077A (en) Protocol conversion method of data, gateway and system
JP2010166509A (en) Frame converting method and entrance radio equipment
CN114466463A (en) Method and related device for transmitting common public radio interface CPRI data
CN113644962A (en) Low-speed non-real-time satellite internet of things terminal data returning method and system
KR102110142B1 (en) Distributed unit device, data stream delivery method, data stream conversion device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15893584

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15893584

Country of ref document: EP

Kind code of ref document: A1