WO2014166102A1 - Data processing method, apparatus and system - Google Patents

Data processing method, apparatus and system Download PDF

Info

Publication number
WO2014166102A1
WO2014166102A1 PCT/CN2013/074129 CN2013074129W WO2014166102A1 WO 2014166102 A1 WO2014166102 A1 WO 2014166102A1 CN 2013074129 W CN2013074129 W CN 2013074129W WO 2014166102 A1 WO2014166102 A1 WO 2014166102A1
Authority
WO
WIPO (PCT)
Prior art keywords
physical layer
service identifier
data frame
layer channel
channel
Prior art date
Application number
PCT/CN2013/074129
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 CN201380000274.4A priority Critical patent/CN103502985B/en
Priority to PCT/CN2013/074129 priority patent/WO2014166102A1/en
Publication of WO2014166102A1 publication Critical patent/WO2014166102A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/613Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for the control of the source by the destination
    • 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/14Multichannel or multilink protocols
    • 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/324Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data processing method, apparatus, and system. Background technique
  • IP Internet Protocol
  • Ethernet As the Ethernet rate increases, it is difficult to achieve a communication bandwidth of over 100G through a single-channel communication rate.
  • Ethernet evolves toward high-order modulation, multi-channel, and Photonic Integrated Circuit (PIC). ⁇ Using high-order modulation, it can increase the communication speed of single channel as much as possible; in addition, multi-channel parallel transmission is adopted to improve the overall communication speed.
  • PIC Photonic Integrated Circuit
  • Adaptation Sublayer (RS) is adapted, and the Ethernet frame is processed. Converted to 100 Gigabit Media Independent Interface (CGMII) data; Physical Coding Sublayer (PCS) performs 64-bit encoding on the CGMII interface data on the transmitting side, and performs scrambling code processing after encoding to avoid continuous There are many 0s or a lot of 1s. After the scrambling code, the 64Bit code block is converted into 66Bit code block.
  • CGMII Media Independent Interface
  • PCS Physical Coding Sublayer
  • the alignment code block is inserted, and then converted into a 100G adapter unit interface by bit multiplexing (100 Gigabit Attachment Unit Interface, CAUI) data; Physical Medium Attachment ( ⁇ ) adapts CAUI interface data; Physical Medium Dependent (PMD) transmits adapted signals through the same physical layer channel .
  • CAUI 100 Gigabit Attachment Unit Interface
  • Physical Medium Attachment
  • PMD Physical Medium Dependent
  • the inventors of the present invention have found that the complexity of the method of processing a code stream in Ethernet in the prior art is high.
  • the embodiment of the invention provides a data processing method, which can reduce the complexity of data processing and improve data processing efficiency.
  • the embodiments of the present invention also provide corresponding devices and systems.
  • a first aspect of the present invention provides a data processing method, including:
  • the determining, according to a rate of a MAC data frame bit stream corresponding to the service identifier, determining a physical layer channel corresponding to a MAC data frame bit stream corresponding to the service identifier includes:
  • the physical layer channel corresponding to the service identifier is determined as The physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
  • the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier is determined according to a rate of a MAC data frame bit stream corresponding to the service identifier, Includes:
  • a physical layer channel where a total bearer of the at least one physical layer channel and a total carrying capacity of the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier are not smaller than a MAC data frame bit corresponding to the service identifier Rate of flow;
  • the selected at least one physical layer channel and the physical layer channel corresponding to the service identifier in the mapping table are determined as the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
  • the method also includes:
  • the selected channel number of the at least one physical layer channel is associated with the service identifier, and the associated channel number of the at least one physical layer channel and the service identifier are stored in the mapping table.
  • the rate of the MAC data frame bit stream corresponding to the service identifier is not greater than the MAC data frame bit corresponding to the service identifier.
  • the physical layer channel corresponding to the MAC data frame corresponding to the service identifier is determined by the physical layer channel corresponding to the MAC data frame corresponding to the service identifier, and includes:
  • At least one physical layer channel having a minimum difference between a total carrying capacity of the at least one physical layer channel and a rate of a MAC data frame bit stream corresponding to the service identifier is used as a physical medium corresponding to the MAC data frame bit stream corresponding to the service identifier Layer channel.
  • Detecting all the physical layer channels determining the fault physical layer channel in the all physical layer channels; associating the fault state information of the fault physical layer channel with the channel number of the fault physical layer channel, and associating the associated
  • the fault state information of the fault physical layer channel and the channel number of the fault physical layer channel are stored in the mapping table.
  • the method further includes: when at least one When the channel number of the faulty physical layer channel is associated with the service identifier, selecting at least one of the available physical layer channels that are not used is not less than at least one of the total bearer of the at least one fault physical layer channel. a physical layer channel, and associates the channel number of the selected at least one available physical layer channel with the service identifier, and associates the at least one available physical layer
  • the channel number of the channel and the service identifier are stored in the mapping table;
  • the selected at least one available physical layer channel is activated.
  • the MAC data frame bit stream corresponding to the service identifier is corresponding to Before the step of transmitting the corresponding MAC data frame bit stream, the method further includes:
  • a second aspect of the present invention provides a data processing method, including:
  • the channel number is a channel number of a physical layer channel that transmits the data code block
  • the aligning the data code blocks received from physical layer channels of different channel numbers according to the service identifier includes:
  • a third aspect of the present invention provides a data distribution apparatus, including:
  • a first receiving unit configured to receive a medium access control MAC data frame bit stream carrying a service identifier
  • a determining unit configured to determine, according to a rate of the MAC data frame bitstream corresponding to the service identifier received by the first receiving unit, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier;
  • a sending unit configured to send a corresponding MAC data frame bitstream to the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier determined by the determining unit.
  • the determining unit includes: a first searching subunit, configured to: from the pre-stored service identifier and a channel number of a physical layer channel, according to the service identifier Searching for a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier in the mapping table;
  • a first determining subunit configured to: when a rate of the MAC data frame bitstream corresponding to the service identifier is not greater than a total of physical layer channels corresponding to the MAC data frame bitstream corresponding to the service identifier found by the first searching subunit
  • the physical layer channel corresponding to the service identifier is determined as the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
  • the determining unit includes: a second searching subunit, configured to: from the pre-stored service identifier and a channel number of a physical layer channel, according to the service identifier Searching for a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier in the mapping table;
  • a first selection sub-unit configured to: when a rate of the MAC data frame bit stream corresponding to the service identifier is greater than a MAC data frame bit stream corresponding to the service identifier that is found by the second search subunit At least one physical layer channel is selected from the available physical layer channels that are not used, and the bearer amount of the at least one physical layer channel corresponds to the MAC data frame bit stream corresponding to the service identifier.
  • the sum of the total carrying capacity of the physical layer channel is not less than the rate of the MAC data frame bit stream corresponding to the service identifier;
  • a second determining subunit configured to determine, by the first selection subunit, the at least one physical layer channel and a physical layer channel corresponding to the service identifier in the mapping table as a MAC data frame corresponding to the service identifier The physical layer channel corresponding to the bit stream.
  • the first determining subunit is configured to: when the service identifier corresponds to at least two physical layer channels, and the at least two When the total carrying capacity of the at least one physical layer channel of the physical layer channel is greater than the rate of the MAC data frame bit stream corresponding to the service identifier, determining that the total bearer amount in the at least one physical layer channel corresponds to the service identifier
  • the at least one physical layer channel with the smallest difference in the rate of the MAC data frame bit stream is the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
  • the device further includes:
  • a detecting unit configured to detect all physical layer channels; a physical layer channel; a channel number of the fault physical layer channel is associated; and information and a channel number of the fault physical layer channel are stored in the mapping table.
  • the device further includes:
  • the device further includes: when the channel number of the at least one faulty physical layer channel is associated with the service identifier, select a total bearer from the unused physical layer channels that is not used to be not less than the at least one fault physical layer At least one available physical layer channel of the total channel capacity, and associates the selected channel number of the at least one available physical layer channel with the service identifier, and associates the at least one associated
  • the channel number of the available physical layer channel and the service identifier are stored in the mapping table; and the activation unit is configured to activate the at least one available physical layer channel selected by the selection unit.
  • a code block conversion unit configured to convert, into the data code block, the non-empty code blocks in the bit stream of the MAC data frame corresponding to the service identifier
  • a dividing unit configured to divide a data code block in a MAC data frame bit stream corresponding to the service identifier into at least two data code strings, where each of the at least two data code strings includes at least one data Code block
  • the sending unit is configured to sequentially send the data code sequence to a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, and sequentially send the data code block in each data code string And writing, to the at least one of the MAC data description start code block and the end code block corresponding to the service identifier, a service of writing the MAC data frame bitstream before or after sending each data code string Identifying and carrying a channel number of a physical layer channel of the data code block;
  • a deleting unit configured to delete the same number of idle code blocks in the bit stream of the MAC data frame each time at least one of the start code block and the end code block is sent.
  • a fourth aspect of the present invention provides a data convergence apparatus, including:
  • a second receiving unit configured to receive a data code block from multiple physical layer channels, and at least one of a start code block and an end code block associated with the data code block;
  • a reading unit configured to read a service identifier and a channel number from at least one of a start code block and the end code block received by the second receiving unit, where the service identifier is that the associated data code block belongs to a service identifier of a MAC data frame bitstream, where the channel number is a channel number of a physical layer channel that transmits the data code block;
  • An aligning unit configured to align the data code blocks received from physical layer channels of different channel numbers according to the service identifier read by the reading unit;
  • a fifth aspect of the present invention provides a data distribution apparatus, including: a first receiver, a first transmitter, a first memory, and a first processor, wherein the first memory stores the first processor to execute a data distribution process program of;
  • the first receiver is configured to receive a medium access control MAC data frame bit stream carrying a service identifier
  • the first processor is configured to determine, according to a rate of the MAC data frame bit stream corresponding to the service identifier, a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier;
  • the first transmitter is configured to send a corresponding MAC data frame bitstream to a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier.
  • a sixth aspect of the present invention provides a data processing system, including: a data distribution device and a data convergence device,
  • the data distribution device is the data distribution device described in the above technical solution
  • the data convergence device is the data convergence device described in the above technical solution.
  • the embodiment of the present invention uses the media access control MAC data frame bit stream carrying the service identifier; and determines the MAC data frame bit stream corresponding to the service identifier according to the rate of the MAC data frame bit stream corresponding to the service identifier.
  • the physical layer channel sends a corresponding MAC data frame bit stream to the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
  • FIG. 1 is a schematic diagram of a single channel transmitting data in the prior art according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an embodiment of a processing method in an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of another embodiment of a processing method in an embodiment of the present invention.
  • 4 is a schematic diagram of another embodiment of a processing method in an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another embodiment of a processing method in an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an embodiment of a data distribution apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention.
  • FIG. 15 is a schematic diagram of an embodiment of a data convergence device according to an embodiment of the present invention.
  • 16 is a schematic diagram of an embodiment of a data convergence device according to an embodiment of the present invention.
  • FIG. 17 is a schematic diagram of an embodiment of a data distribution apparatus according to an embodiment of the present invention.
  • FIG. 18 is a schematic diagram of an embodiment of a data convergence device according to an embodiment of the present invention.
  • FIG. 19 is a schematic diagram of an embodiment of a data processing system in an embodiment of the present invention.
  • the embodiment of the invention provides a data processing method, which can reduce the complexity of data processing and improve data processing efficiency.
  • the embodiments of the present invention also provide corresponding devices and systems. The following is a detailed description.
  • an embodiment of a data processing method in an embodiment of the present invention includes:
  • the data distribution apparatus receives the medium access control MAC data frame bit stream carrying the service identifier.
  • the service identifier may be a category (TAG) information in a MAC data frame, such as a Multi-Protocol Label Switching (MPLS), a Virtual Local Area Network Identity (VLAN ID), or the like.
  • TAG category
  • MPLS Multi-Protocol Label Switching
  • VLAN ID Virtual Local Area Network Identity
  • the data distribution device determines, according to a rate of the MAC data frame bitstream corresponding to the service identifier, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier.
  • the MAC data frame bit stream may be firstly divided according to the service identifier, and divided into MAC data frame bit streams corresponding to the service identifier.
  • the rate of each MAC data frame bit stream may be different.
  • some MAC data frame bit streams need to occupy a large bandwidth, it is required.
  • a physical layer channel of a larger bandwidth is used to carry, or a physical layer channel cannot carry a MAC data frame bit stream with a large rate, multiple physical layer channels are required to be carried.
  • the rate of the bit stream of the MAC data frame is 200 Mbit/s, it is determined that the total carrying capacity of the physical layer channel corresponding to the bit stream of the MAC data frame is 200 M. If a physical layer channel can carry 50 M, the MAC data can be determined.
  • the frame bit stream corresponds to 4 physical layer channels.
  • the data distribution apparatus sends a corresponding MAC data frame bitstream to a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier.
  • the corresponding MAC data frame bit stream or the MAC data frame bit stream is transmitted to the corresponding physical layer channel.
  • the embodiment of the present invention uses the media access control MAC data frame bit stream carrying the service identifier; and determines the MAC data frame bit stream corresponding to the service identifier according to the rate of the MAC data frame bit stream corresponding to the service identifier.
  • the physical layer channel sends a corresponding MAC data frame bit stream to the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
  • the data processing method provided by the embodiment of the present invention can transmit data of the same service identifier through multiple physical layer channels, thereby reducing the complexity of data processing and improving The efficiency of data processing.
  • the MAC data frame corresponding to the service identifier is The rate of the bit stream, the physical layer channel corresponding to the bit stream of the MAC data frame corresponding to the service identifier, may include:
  • the physical layer channel corresponding to the service identifier is determined as The physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
  • mapping table between the service identifier and the channel number of the physical layer channel can be understood by referring to Table 1:
  • the physical layer channel corresponding to the MAC data frame bit stream with the service identifier 1 in Table 1 is three, which are physical layer channels with channel numbers 1, 2, and 3.
  • the physical layer channel corresponding to the MAC data frame bit stream with the service identifier 1 is 1, 2, 3, and the MAC data frame bit stream corresponding to the service identifier 2 is corresponding.
  • the physical layer channel is 4, the physical layer channel corresponding to the MAC data frame bit stream with the service identifier 3 is 5, and the physical layer channel corresponding to the MAC data frame bit stream with the service identifier 4 is 6.
  • the channel number corresponding to the service identifier 1 is 1.
  • the physical layer channel of 2, 3 is determined as the physical layer channel of the MAC data frame bit stream with the service identifier 1. For example: When the rate of the MAC data frame bit stream with service ID is 1 is 130 Mbit/s, and the total 7-load capacity of the physical layer channel with channel number 1, 2, 3 is 150 M, the channel number can be determined as 1, 2, 3
  • the physical layer channel is a physical layer channel of a MAC data frame bit stream with a service identifier of 1.
  • the process of determining the physical layer channel for the MAC data frame bit stream with the service identifiers of 2, 3, and 4 is the same as the process for determining the physical layer channel for the MAC data frame bit stream with the service identifier of 1, and will not be described in detail herein.
  • the MAC data frame bit corresponding to the service identifier is used in the foregoing.
  • the rate of the flow, the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier may include:
  • a physical layer channel where a total bearer of the at least one physical layer channel and a total carrying capacity of the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier are not smaller than a MAC data frame bit corresponding to the service identifier Rate of flow;
  • the selected at least one physical layer channel and the physical layer channel corresponding to the service identifier in the mapping table are determined as the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
  • the rate of the bit stream of the MAC data frame with the service identifier 1 is 180 Mbit/s, and the total 7 load of the physical layer channel with the channel number of 1, 2, 3 is 150 M, it can be determined.
  • the physical layer channel with the channel number of 1, 2, and 3 is not enough to carry the MAC data frame bit stream with the service identifier of 1.
  • the at least one physical layer channel can be selected from the available physical layer channels that are not used, for example, the channel number is 7.
  • the physical layer channel is the available physical layer channel, and the physical layer channel with channel number 7 has a carrying capacity greater than 30M.
  • the physical layer channel of channel numbers 1, 2, 3, and 7 is the MAC data with the service identifier 1
  • the physical layer channel of the frame bitstream is 180 Mbit/s, and the total 7 load of the physical layer channel with the channel number of 1, 2, 3 is 150 M.
  • the third optional embodiment of the data processing method provided by the embodiment of the present invention further includes: the selected at least one physical entity, based on the second optional embodiment corresponding to FIG.
  • the channel number of the layer channel is associated with the service identifier, and the associated channel number of the at least one physical layer channel and the service identifier are stored in the mapping table.
  • mapping table after the association storage can be understood by referring to Table 2:
  • bit stream of the MAC data frame can be never carried.
  • the physical layer channel corresponding to the service identifier is used. Determining, as the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, the method may include:
  • At least one physical layer channel having a minimum difference between a total carrying capacity of the at least one physical layer channel and a rate of a MAC data frame bit stream corresponding to the service identifier is used as a physical medium corresponding to the MAC data frame bit stream corresponding to the service identifier Layer channel.
  • the service identifier 1 corresponds to three physics with channel numbers 1, 2, and 3.
  • Layer 7 channels the capacity of the three physical layer channels is 50M, 60M, and 70M respectively.
  • the rate of the MAC data frame bit stream corresponding to service identifier 1 is 100M
  • the physical layer channel with channel numbers 1 and 2 can be selected.
  • the layer channel transmits the MAC data frame bit stream corresponding to the service identifier 1, but the total carrying capacity of the physical layer channel with the channel numbers 1 and 2 is 110M, and the channel number is a combination of 1 and 2 compared with the other two combinations.
  • the total bearer of the physical channel has the smallest difference from the rate of the MAC data frame bitstream corresponding to the service identifier 1, only 10M, then the physical layer channel of the channel number 1 and 2 is selected as the MAC data frame bitstream corresponding to the service identifier 1. Physical layer channel.
  • the fifth optional embodiment of the data processing method provided by the embodiment of the present invention may further include:
  • the physical layer channel corresponding to the channel number 3 when the physical layer channel corresponding to the channel number 3 is not used, it may be directly marked in the physical layer channel state information in the mapping table. See Table 3 for details.
  • Table 3 Mapping table with channel status
  • the sixth optional embodiment of the data processing method provided by the embodiment of the present invention is provided on the basis of any of the foregoing optional embodiments in the foregoing first to fifth alternative embodiments.
  • the step of determining the physical layer channel corresponding to the bitstream of the MAC data frame corresponding to the service identifier according to the rate of the MAC data frame bitstream corresponding to the service identifier may further include: Detecting all the physical layer channels, determining the fault physical layer channel in the all physical layer channels; associating the fault state information of the fault physical layer channel with the channel number of the fault physical layer channel, and associating the associated
  • the fault state information of the fault physical layer channel and the channel number of the fault physical layer channel are stored in the mapping table.
  • the determined physical layer channel it is required to ensure that the determined physical layer channel can be used normally. Therefore, before determining the physical layer channel corresponding to each service data flow, it is necessary to first detect whether each physical layer channel has a fault, and if there is a fault. It cannot be used.
  • the fault information of the channel can be stored in the corresponding channel number of the physical layer channel in the mapping table to avoid being misused. If the physical layer channel with channel number 3 fails and the other physical layer channels are in normal use, the storage status information in the mapping table can be understood by referring to Table 4:
  • Table 4 Mapping table with channel status
  • the determining the physical layer channel in the seventh embodiment After the step of the fault physical layer channel, the method may further include:
  • selecting a total bearer from the unused physical layer channels that is not used is not less than a total carrying capacity of the at least one fault physical layer channel
  • At least one available physical layer channel and associates the channel number of the selected at least one available physical layer channel with the service identifier, and associates the at least one available physical layer
  • the channel number of the channel and the service identifier are stored in the mapping table;
  • the selected at least one available physical layer channel is activated.
  • the channel number of the physical layer channel corresponding to the channel number 3 is selected from the available physical layer channels that are not used.
  • the physical layer channel is added to the mapping table 4 corresponding to the service identifier 1 and the channel number 7.
  • the status information corresponding to the channel number 7 is changed to "new", and the physical layer channel corresponding to the channel number 7 is activated, and a new one is obtained.
  • the one-to-one replacement is used, for example, the physical layer channel corresponding to the channel number 3 is the same, and the physical layer channel data may not be considered.
  • the 7-load capacity of the physical layer channel corresponding to channel number 3 is 50M
  • the total load capacity of the physical layer channel corresponding to channel numbers 9 and 10 is 50. You can replace the channel with the physical layer channel corresponding to channel numbers 9 and 10. No. 3 corresponds to the physical layer channel.
  • the eighth optional embodiment of the data processing method provided by the embodiment of the present invention may further include:
  • the method may further include:
  • a non-idle code block in each MAC data frame bit stream can be converted into a data code block in a 64-bit code block, and the data code block can be divided into equally spaced data code strings, usually one data code string. 1024 data code blocks are included.
  • the data of the data code block in the data code string is not limited, and may be one or more.
  • a start code block is first sent to each physical layer channel, and then the data code block in one data code block is sent in a round robin, and the data code in a data code string is waited for.
  • an end code block can be sent to each physical layer channel, or only the start code block can be sent without sending the end code block, or only the end code block can be sent without sending the start code block, and the start code block can be sent or ended.
  • the code block is used, the same number of idle code blocks need to be deleted to ensure the length of the bit stream of the MAC data frame.
  • service identifier 1 corresponds to the physical layer channel with channel numbers 1, 2, and 3.
  • data code block 4 is sent to channel 1
  • the data code block is sequentially transmitted in a sequential manner until the data code block included in the data code string is completely transmitted, and then is respectively sent to channels 1, 2, and 3 Send an end code block and delete 3 free code blocks at the same time.
  • the ninth optional embodiment of the data processing method provided by the embodiment of the present invention may further include:
  • another embodiment of a data processing method provided by an embodiment of the present invention includes: 201.
  • the data aggregation device receives a data code block from the plurality of physical layer channels, and at least one of a start code block and an end code block associated with the data code block.
  • the data sinking device receives the data code block from the plurality of physical layer channels, starts the code block and the end code block, or receives the data code block and the start code block, or receives the data code block and the end code block.
  • the data code block between each start code block and the end code block belongs to the same MAC data frame bit stream, and is associated by the service identifier and the channel number.
  • the data convergence device reads a service identifier and a channel number from at least one of the start code block and the end code block, where the service identifier is a MAC data frame bit stream to which the associated data code block belongs. a service identifier, where the channel number is a channel number of a physical layer channel that transmits the data code block.
  • the data aggregation device aligns the data code blocks received from physical layer channels of different channel numbers according to the service identifier.
  • the channel number can be 1, 2, and 3 channels.
  • the data block received in the alignment is aligned, and the protocol of the data distribution device and the data aggregation device is preset. If the data distribution device transmits the data code block in a round robin manner, the data convergence end is aligned in the order of the round robin
  • the data code block, the alignment is: The data code blocks are arranged in order.
  • Data block 1 is received from channel 1
  • data block 2 is received from channel 2, slave channel
  • the data aggregation device recovers a MAC data frame bitstream corresponding to the service identifier.
  • the MAC data frame bit stream is restored, and each data code string is arranged in order.
  • a data code block is received from a plurality of physical layer channels, and at least one of a start code block and an end code block associated with the data code block; and the start code block and the end code block are The service identifier and the channel number are read in at least one of the service identifiers, and the service identifier is a service identifier of a MAC data frame bitstream to which the associated data code block belongs, and the channel number is a physical layer that transmits the data code block.
  • aligning the MAC data frame bit stream according to the channel number and the service identifier can reduce the complexity of data data processing and provide efficiency of data data processing.
  • the arranging the data code blocks received from the physical layer channels of different channel numbers according to the service identifier may include:
  • the restoring the MAC data frame bit stream corresponding to the service identifier may include: recovering a MAC data frame bit stream corresponding to the service identifier according to a receiving sequence of the data code string.
  • the process of alignment may be an alignment process of data code strings, and a data code string includes multiple data code blocks, for example: data block 1 is received from channel 1, and data is received from channel 2. Code block 2, receiving data code block 3 from channel 3, and receiving data code block 4 from channel 1, then connecting data code blocks 1, 2, 3, 4 in order, and so on, if data code The string has 1024 data code blocks, from data code block 1 to data code block 1024, that is, the data code blocks in the data code string are aligned.
  • the arranging the data code blocks received from the physical layer channels of different channel numbers according to the service identifier may include:
  • the service identifier and the channel number of the corresponding physical layer channel are read, the service identifier and the channel number of the corresponding physical layer channel are first written into the mapping table, and the mapping table is restored, and then the data code is aligned. Piece.
  • FIG. 4 is a data distribution apparatus, after inserting the converted data code block into the start code block and the end code block, respectively, transmitting through the physical layer channel 1 to the physical layer channel N, where N is greater than 1, and the data distribution device is transmitting data.
  • a start code block is first sent to the physical layer channel 1, and the service identifier 1 and the channel number 1 of the MAC data frame bit stream to which the data code block belongs are written in the start code block, in this manner, The start code block is transmitted to the next physical layer channel until a start code block is transmitted to the physical layer channel N, and the service identifier 1 and the channel number N of the MAC data frame bit stream to which the data code block belongs are written in the start code block.
  • the data code block is transmitted to the channels 1 to N.
  • an end code block is respectively generated to the physical layer channels 1 to N.
  • the information of the service identifier and the channel number may not be written in the start code block, and the information of the service identifier and the channel number may be written in the end code block. Or only one of the start code block or the end code block can be sent in each physical layer channel.
  • the data aggregation device identifies the start code block or the end code block according to a preset pair with the data distribution device.
  • the protocol of the first service reads the service identifier and the corresponding channel number written in at least one of the start code block and the end code block, and aligns the data code blocks of the same service identifier and different channel numbers according to the service identifier and the channel number.
  • the process of alignment may be an alignment process of data code strings, and a data code string includes multiple data code blocks, for example: data block 1 is received from channel 1, and data is received from channel 2.
  • Code block 2 receiving the data code block 3 from the channel N, and receiving the data code block 4 from the channel 1, then connecting the data code blocks 1, 2, 3, 4 in order, and so on, if the data code
  • the string has 1024 data code blocks, from data code block 1 to data code block 1024, that is, the data code blocks in the data code string are aligned.
  • a data distribution apparatus includes: a first receiving unit 301, configured to receive a medium access control MAC data frame bitstream carrying a service identifier;
  • a determining unit 302 configured to determine, according to a rate of the MAC data frame bitstream corresponding to the service identifier received by the first receiving unit 301, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier;
  • the sending unit 303 is configured to send a corresponding MAC data frame bit stream to the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier determined by the determining unit 302.
  • the first receiving unit 301 receives the medium access control MAC data frame bit stream carrying the service identifier; the determining unit 302 is configured according to the MAC data frame bit stream corresponding to the service identifier received by the first receiving unit 301. Rate, the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier is determined; the sending unit 303 sends the corresponding physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier determined by the determining unit 302 MAC data frame bit stream.
  • the data distribution apparatus provided by the embodiment of the invention can reduce the complexity of data processing and improve the efficiency of data processing.
  • the determining unit 302 includes:
  • a first locating subunit 3021 configured to search, according to the service identifier, a physical layer corresponding to a MAC data frame bitstream corresponding to the service identifier from a mapping table of the pre-stored service identifier and a channel number of a physical layer channel. aisle;
  • the first determining sub-unit 3022 is configured to: when the rate of the MAC data frame bit stream corresponding to the service identifier is not greater than the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier found by the first searching sub-unit 3021
  • the physical layer channel corresponding to the service identifier is determined as the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
  • the determining unit 302 includes:
  • the second search subunit 3023 is configured to search, according to the service identifier, a MAC data frame bit corresponding to the service identifier from a mapping table of the pre-stored service identifier and a channel number of a physical layer channel.
  • the first selection sub-unit 3024 is configured to: when the rate of the MAC data frame bit stream corresponding to the service identifier is greater than the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier found by the second search sub-unit 3023 At least one physical layer channel is selected from the available physical layer channels that are not used, and the total carrying capacity of the at least one physical layer channel is a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier. The sum of the total bearers is not less than the rate of the MAC data frame bitstream corresponding to the service identifier;
  • a second determining sub-unit 3025 configured to determine, by the first selection sub-unit 3024, the at least one physical layer channel and the physical layer channel corresponding to the service identifier in the mapping table as a MAC corresponding to the service identifier.
  • the physical layer channel corresponding to the data frame bit stream.
  • the determining unit further includes:
  • the association subunit 3026 is configured to associate a channel number of the at least one physical layer channel selected by the first selection subunit 3024 with the service identifier;
  • the storage subunit 3027 is configured to store the channel number of the at least one physical layer channel associated with the associated subunit 3026 and the service identifier into the mapping table.
  • the first determining sub-unit 3022 is configured to: when the service identifier corresponds to the at least two physical layer channels, and the total carrying capacity of the at least one physical layer channel of the at least two physical layer channels is greater than the service identifier As the rate of the MAC data frame bit stream, determining at least one physical layer channel having the smallest difference between the total bearer amount in the at least one physical layer channel and the MAC data frame bit stream corresponding to the service identifier as the service Identify the physical layer channel corresponding to the corresponding MAC data frame bit stream.
  • the determining unit 302 further includes:
  • a marking subunit 3028 configured to: at least one physical medium of the at least two physical layer channels that has a minimum difference between a selected total carrying capacity and a rate of a MAC data frame bitstream corresponding to the service identifier.
  • the apparatus 30 further includes:
  • a detecting unit 304 configured to detect all physical layer channels
  • the barrier status information and the channel number of the fault physical layer channel are stored in the mapping table.
  • the apparatus 30 further includes:
  • the selecting unit 307 is configured to: when the channel number of the at least one fault physical layer channel is associated with the service identifier, select a total bearer from the unused physical layer channels that is not used to be not less than the at least one fault physical At least one available physical layer channel of the total channel capacity of the layer channel, and associates the channel number of the selected at least one available physical layer channel with the service identifier, and associates the channel of the at least one available physical layer channel And the service identifier is stored in the mapping table;
  • the activation unit 308 is configured to activate the at least one available physical layer channel selected by the selection unit 307.
  • the apparatus 30 further includes:
  • the modifying unit 309 is configured to: when the detecting unit 304 detects that the fault physical layer channel is faulty, the fault state information is modified to the inactive state information.
  • the apparatus 30 further includes:
  • the code block conversion unit 310 is configured to convert all non-idle code blocks in the MAC data frame bit stream corresponding to the service identifier into data code blocks;
  • the dividing unit 311 is configured to divide the data code block in the MAC data frame bit stream corresponding to the service identifier into at least two data code strings, and each of the at least two data code strings includes at least one Data block
  • the sending unit 303 is configured to sequentially send the data code sequence to a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, and sequentially send the data code in each data code string Blocking, and transmitting at least one of a start code block and an end code block to a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier before or after sending each data code string, and Transmitting a service identifier of the MAC data frame bitstream and a channel number of a physical layer channel carrying the data code block on at least one of a start code block and the end code block.
  • the deleting unit 312 is configured to delete the same number of idle code blocks in the bit stream of the MAC data frame each time at least one of the start code block and the end code block is sent.
  • an embodiment of a data convergence apparatus includes: a second receiving unit 401, configured to receive a data code block from multiple physical layer channels, and start with the data code block. At least one of a code block and an end code block;
  • the reading unit 402 is configured to read a service identifier and a channel number from at least one of a start code block and the end code block received by the second receiving unit 401, where the service identifier is the associated data code a service identifier of a MAC data frame bitstream to which the block belongs, where the channel number is a channel number of a physical layer channel that transmits the data code block;
  • An aligning unit 403, configured to align the data code blocks received from physical layer channels of different channel numbers according to the service identifier read by the reading unit 402;
  • the recovery unit 404 is configured to restore the MAC data frame bit stream corresponding to the service identifier after the alignment unit 403 aligns the data code block.
  • the second receiving unit 401 receives the data code block from the plurality of physical layer channels, and at least one of the start code block and the end code block; and the reading unit 402 starts from the second receiving unit 401.
  • the service identifier and the channel number are read in at least one of the code block and the end code block, where the service identifier is a service identifier of a MAC data frame bit stream to which the associated data code block belongs, and the channel number is a transmission a channel number of a physical layer channel of the data code block;
  • the aligning unit 403 aligns the numbers received from physical layer channels of different channel numbers according to the service identifier read by the reading unit 402
  • the recovery unit 404 restores the MAC data frame bit stream corresponding to the service identifier after the alignment unit 403 aligns the data code block.
  • the data convergence device provided by the embodiment of the present invention can reduce the complexity of data processing and improve the efficiency of data processing.
  • the aligning unit 403 is configured to align, according to the service identifier and the channel number, a data code string of at least one data code block that includes a MAC data frame bit stream corresponding to the service identifier;
  • the restoring unit 404 is configured to recover a MAC data frame bit stream corresponding to the service identifier according to a receiving sequence of the data code string.
  • the alignment unit 403 includes:
  • a write subunit 4031 configured to write the service identifier and a channel number of the physical layer channel associated with the service identifier into a mapping table of a service identifier and a channel number of a physical layer channel;
  • the aligning sub-unit 4032 is configured to align the MAC data frame bits corresponding to the service identifier according to the mapping relationship between the service identifier written in the mapping table and the channel number of the physical layer channel in the mapping sub-unit 4031.
  • the stream of data blocks are configured to align the MAC data frame bits corresponding to the service identifier according to the mapping relationship between the service identifier written in the mapping table and the channel number of the physical layer channel in the mapping sub-unit 4031.
  • an embodiment of a data distribution apparatus includes: a first receiver 320, a first transmitter 330, a first memory 340, and a first processor 350.
  • the first receiver 320, the first transmitter 330, the first memory 340, and the first processor 350 are connected by a bus or other means; the first memory stores a program for the first processor to execute a data distribution process;
  • the first receiver 320 is configured to receive a medium access control MAC data frame bit stream carrying a service identifier.
  • the first processor 350 is configured to determine, according to a rate of the MAC data frame bitstream corresponding to the service identifier, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier;
  • the first transmitter 330 is configured to send a corresponding MAC data frame bitstream to a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier.
  • the first processor 350 is configured to: according to the service identifier, a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier in the mapping table of the service identifier and the channel number of the physical layer channel; and the rate of the MAC data frame bit stream corresponding to the service identifier
  • the physical layer corresponding to the MAC data frame bit stream corresponding to the service identifier is determined. Layer channel.
  • the first processor 350 is configured to search, according to the service identifier, a MAC corresponding to the service identifier from a mapping table between the pre-stored service identifier and a channel number of a physical layer channel.
  • the at least one physical layer channel is selected from the available physical layer channels, and the total bearer of the at least one physical layer channel and the total carrying capacity of the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier are not less than Determining, by the service identifier, a rate of the MAC data frame bit stream corresponding to the service identifier, and selecting the selected at least one physical layer channel and the physical layer channel corresponding to the service identifier in the mapping table as the MAC data frame bit corresponding to the service identifier The physical layer channel corresponding to the stream.
  • the first processor 350 is further configured to associate the channel number of the selected at least one physical layer channel with the service identifier, and associate the at least one physical layer.
  • the channel number of the channel and the service identifier are stored in the mapping table.
  • the first processor 350 is configured to: when the service identifier corresponds to at least two physical layer channels, and a total capacity of at least one physical layer channel of the at least two physical layer channels When the rate of the MAC data frame bit stream corresponding to the service identifier is greater than the at least one physical medium, the minimum difference between the total bearer and the MAC data frame bit stream corresponding to the service identifier is selected to be at least one physical
  • the layer channel is a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
  • the first processor 350 is further configured to: in the at least two physical layer channels, the rate of the MAC data frame bit stream corresponding to the selected total bearer and the service identifier. The usage status of the remaining physical layer channels outside the at least one physical layer channel with the smallest difference is marked as unused. In some embodiments of the present invention, the first processor 350 is further configured to detect all physical layer channels, determine a fault physical layer channel in the all physical layer channels, and set fault state information of the fault physical layer channel with The channel number of the fault physical layer channel is associated, and the associated fault state information of the fault physical layer channel and the channel number of the fault physical layer channel are stored in the mapping table.
  • the first processor 350 is further configured to: when the channel number of the at least one faulty physical layer channel is associated with the service identifier, select a total of the available physical layer channels that are not used. Carrying at least one available physical layer channel that is not less than the total bearer of the at least one physical layer of the faulty physical layer, and associating the channel number of the selected at least one available physical layer channel with the service identifier, and associating The channel number of the at least one available physical layer channel and the service identifier are stored in the mapping table; the selected at least one available physical layer channel is activated.
  • the first processor 350 is further configured to: when the fault state information corresponding to the channel number of the faulty object is detected, is modified to the inactive state information.
  • the first processor 350 is further configured to convert, into the data code block, the non-idle code blocks in the bitstream of the MAC data frame corresponding to the service identifier;
  • the data code block in the bit stream of the MAC data frame is divided into at least two data code strings, and each of the at least two data code strings includes at least one data code block;
  • the first transmitter 330 is configured to sequentially send each data code string to a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, and sequentially send the data code string in the data sequence. a data code block, and before or after transmitting each data code string, writing, to the MAC corresponding to the service identifier, the MAC data frame on at least one of the start code block and the end code block. The service identifier of the bitstream and the channel number of the physical layer channel carrying the data code block.
  • the first processor 350 is further configured to delete the same number of idle code blocks each time at least one of the start code block and the end code block is sent.
  • an embodiment of a data distribution apparatus includes: a second receiver 420, a second transmitter 430, a second memory 440, and a second processor 450, where the second storage And storing a program for the second processor to perform data aggregation;
  • the second receiver 420, the second transmitter 430, the second memory 440, and the second processor 450 are connected by a bus or other means;
  • the second receiver 420 is configured to receive a data code block from multiple physical layer channels, and at least one of a start code block and an end code block associated with the data code block;
  • the second processor 450 is configured to read a service identifier and a channel number from at least one of the start code block and the end code block, where the service identifier is a MAC to which the associated data code block belongs. a service identifier of a data frame bitstream, where the channel number is a channel number of a physical layer channel that transmits the data code block; and the data code block received from a physical layer channel of a different channel number is aligned according to the service identifier And recovering the MAC data frame bit stream corresponding to the service identifier.
  • the second processor 450 is configured to: according to the service identifier and the channel number, align a data code of at least one data code block that includes a MAC data frame bit stream corresponding to the service identifier.
  • the string according to the receiving sequence of the data code string, recovers the MAC data frame bit stream corresponding to the service identifier.
  • the second processor 450 is configured to write the service identifier and the channel number of the physical layer channel associated with the service identifier to the channel number of the service identifier and the physical layer channel.
  • the mapping table the data code block of the MAC data frame bit stream corresponding to the service identifier is aligned according to the mapping relationship between the service identifier and the channel number of the physical layer channel written in the mapping table.
  • an embodiment of a data processing system includes: a data distribution device 30 and a data convergence device 40.
  • a data distribution device 30 configured to receive a media access control MAC data frame bitstream carrying a service identifier, and determine a MAC data frame bitstream corresponding to the service identifier according to a rate of a MAC data frame bitstream corresponding to the service identifier Corresponding physical layer channel; sending a corresponding MAC data frame bit stream to the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
  • a data convergence device 40 configured to receive a data code block from a plurality of physical layer channels, and at least one of a start code block and an end code block associated with the data code block; from the start code block and the end code
  • the service identifier and the channel number are read in at least one of the blocks, where the service identifier is a service identifier of a MAC data frame bitstream to which the associated data code block belongs, and the channel number is a physics for transmitting the data code block.
  • Channel number of the layer channel aligning the data code blocks received from physical layer channels of different channel numbers according to the service identifier; recovering a MAC data frame bit stream corresponding to the service identifier.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: ROM, RAM, disk or CD, etc.

Abstract

Disclosed is a data processing method. The method comprises: receiving a media access control (MAC) data frame bit stream carrying a service identification; determining, according to a rate of the MAC data frame bit stream corresponding to the service identification, a physical layer path corresponding to the MAC data frame bit stream corresponding to the service identification; and sending a corresponding MAC data frame bit stream to the physical layer path corresponding to the MAC data frame bit stream corresponding to the service identification. Embodiments of the invention also provide a corresponding apparatus and system. The technical solutions of the present invention can reduce the complexity of data processing and improve the efficiency of data processing because data with a same service identification can be transmitted through multiple physical layer paths.

Description

一种数据处理的方法、 装置及系统 技术领域  Method, device and system for data processing
本发明涉及通信技术领域, 具体涉及一种数据处理的方法、 装置及系统。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a data processing method, apparatus, and system. Background technique
随着网络互连协议(Internet Protocol, IP )视频、 云计算等新兴业务的快 速涌现, 业务流量增长很快, 因此对高带宽的需求越来越迫切。  With the rapid emergence of emerging services such as Internet Protocol (IP) video and cloud computing, business traffic is growing rapidly, so the demand for high bandwidth is becoming more and more urgent.
随着以太速率的提升, ^[艮难通过单通道的通信速率来达到超 100G的通信 带宽。 为了做到超 100G以太速率, 以太网向着高阶调制、 多通道、 光子集成 光路( Photonic Integrated Circuit, PIC )方向演进。 釆用高阶调制方式, 可以 尽可能提高单通道的通信速率; 加之釆用多通道化并行传输,从而提高整体的 通信速率。  As the Ethernet rate increases, it is difficult to achieve a communication bandwidth of over 100G through a single-channel communication rate. In order to achieve the ultra-100G Ethernet rate, Ethernet evolves toward high-order modulation, multi-channel, and Photonic Integrated Circuit (PIC).高Using high-order modulation, it can increase the communication speed of single channel as much as possible; in addition, multi-channel parallel transmission is adopted to improve the overall communication speed.
参阅图 1 ,现有技术中 40G/100G以太网中对媒介接入控制( Media Access Contra, MAC )数据的处理过程为: 适配子层( Reconciliation Sublayer , RS ) 进行适配处理, 将以太帧转换为 100G媒介无关接口 ( 100 Gigabit Media Independent Interface , CGMII )数据;物理编码子层( Physical Coding Sublayer , PCS )在发送侧对 CGMII接口数据进行 64Bit编码 , 编码后进行加扰码处理 , 以避免连续出现很多个 0或者很多个 1 ,加扰码后再将 64Bit码块转换为 66Bit 码块转换过程中插入对齐码块, 再通过比特复用转换为 100G适配单元接口 ( 100 Gigabit Attachment Unit Interface , CAUI )数据; 物理媒介适配子层 ( Physical Medium Attachment , ΡΜΑ )将 CAUI接口数据进行适配; 物理媒 介相关子层 (Physical Medium Dependent , PMD)将适配后的信号通过相同一个 物理层通道传输。  Referring to FIG. 1 , the process of processing Media Access Contra (MAC) data in 40G/100G Ethernet in the prior art is: Adaptation Sublayer (RS) is adapted, and the Ethernet frame is processed. Converted to 100 Gigabit Media Independent Interface (CGMII) data; Physical Coding Sublayer (PCS) performs 64-bit encoding on the CGMII interface data on the transmitting side, and performs scrambling code processing after encoding to avoid continuous There are many 0s or a lot of 1s. After the scrambling code, the 64Bit code block is converted into 66Bit code block. During the conversion process, the alignment code block is inserted, and then converted into a 100G adapter unit interface by bit multiplexing (100 Gigabit Attachment Unit Interface, CAUI) data; Physical Medium Attachment (ΡΜΑ) adapts CAUI interface data; Physical Medium Dependent (PMD) transmits adapted signals through the same physical layer channel .
本发明的发明人发现,现有技术中的以太网中对码流的处理方法的复杂度 较高。  The inventors of the present invention have found that the complexity of the method of processing a code stream in Ethernet in the prior art is high.
发明内容 Summary of the invention
本发明实施例提供一种数据处理的方法, 可以降低数据处理的复杂度,提 高数据处理效率。 本发明实施例还提供了相应的装置及系统。 本发明第一方面提供一种数据处理的方法, 包括: The embodiment of the invention provides a data processing method, which can reduce the complexity of data processing and improve data processing efficiency. The embodiments of the present invention also provide corresponding devices and systems. A first aspect of the present invention provides a data processing method, including:
接收携带有业务标识的媒介接入控制 MAC数据帧比特流;  Receiving, by the medium access control MAC data frame bit stream carrying the service identifier;
根据所述业务标识对应的 MAC数据帧比特流的速率, 确定所述业务标识 对应的 MAC数据帧比特流对应的物理层通道;  Determining, according to a rate of the MAC data frame bit stream corresponding to the service identifier, a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier;
向所述业务标识对应的 MAC数据帧比特流对应的物理层通道, 发送对应 的 MAC数据帧比特流。  And transmitting, to the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, a corresponding MAC data frame bitstream.
结合第一方面,在第一种可能的实现方式中, 所述根据所述业务标识对应 的 MAC数据帧比特流的速率, 确定所述业务标识对应的 MAC数据帧比特流对 应的物理层通道, 包括:  With reference to the first aspect, in a first possible implementation manner, the determining, according to a rate of a MAC data frame bit stream corresponding to the service identifier, determining a physical layer channel corresponding to a MAC data frame bit stream corresponding to the service identifier, Includes:
根据所述业务标识,从预存储的所述业务标识与物理层通道的通道号的映 射表中查找所述业务标识对应的 MAC数据帧比特流对应的物理层通道;  And searching, according to the service identifier, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, from the mapping table of the pre-stored service identifier and the channel number of the physical layer channel;
当所述业务标识对应的 MAC数据帧比特流的速率不大于所述业务标识对 应的 MAC数据帧比特流对应的物理层通道的总承载量时, 将所述业务标识对 应的物理层通道确定为所述业务标识对应的 MAC数据帧比特流对应的物理层 通道。  When the rate of the MAC data frame bitstream corresponding to the service identifier is not greater than the total carrying capacity of the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, the physical layer channel corresponding to the service identifier is determined as The physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
结合第一方面,在第二种可能的实现方式中, 所述根据所述业务标识对应 的 MAC数据帧比特流的速率, 确定所述业务标识对应的 MAC数据帧比特流对 应的物理层通道, 包括:  With reference to the first aspect, in a second possible implementation manner, the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier is determined according to a rate of a MAC data frame bit stream corresponding to the service identifier, Includes:
根据所述业务标识,从预存储的所述业务标识与物理层通道的通道号的映 射表中查找所述业务标识对应的 MAC数据帧比特流对应的物理层通道;  And searching, according to the service identifier, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, from the mapping table of the pre-stored service identifier and the channel number of the physical layer channel;
当所述业务标识对应的 MAC数据帧比特流的速率大于所述业务标识对应 的 MAC数据帧比特流对应的物理层通道的总承载量时, 从未被使用的可用物 理层通道中选择至少一个物理层通道,所述至少一个物理层通道的总承载量与 所述业务标识对应的 MAC数据帧比特流对应的物理层通道的总承载量之和不 小于所述业务标识对应的 MAC数据帧比特流的速率;  And selecting at least one of the available physical layer channels that are not used when the rate of the MAC data frame bit stream corresponding to the service identifier is greater than the total carrying capacity of the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier. a physical layer channel, where a total bearer of the at least one physical layer channel and a total carrying capacity of the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier are not smaller than a MAC data frame bit corresponding to the service identifier Rate of flow;
将选择的所述至少一个物理层通道和所述映射表中所业务标识对应的物 理层通道确定为所述业务标识对应的 MAC数据帧比特流对应的物理层通道。  The selected at least one physical layer channel and the physical layer channel corresponding to the service identifier in the mapping table are determined as the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
结合第一方面第二种可能的实现方式,在第三种可能的实现方式中, 所述 方法还包括: With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, The method also includes:
将选择的所述至少一个物理层通道的通道号与所述业务标识进行关联,并 将关联后的所述至少一个物理层通道的通道号与所述业务标识存储到所述映 射表中。  The selected channel number of the at least one physical layer channel is associated with the service identifier, and the associated channel number of the at least one physical layer channel and the service identifier are stored in the mapping table.
结合第一方面第一种可能的实现方式,在第四种可能的实现方式中, 所述 当所述业务标识对应的 MAC数据帧比特流的速率不大于所述业务标识对应的 MAC数据帧比特流对应的物理层通道的总承载量时, 将所述业务标识对应的 物理层通道确定为所述业务标识对应的 MAC数据帧比特流对应的物理层通 道, 包括:  With reference to the first possible implementation manner of the first aspect, in a fourth possible implementation, the rate of the MAC data frame bit stream corresponding to the service identifier is not greater than the MAC data frame bit corresponding to the service identifier. The physical layer channel corresponding to the MAC data frame corresponding to the service identifier is determined by the physical layer channel corresponding to the MAC data frame corresponding to the service identifier, and includes:
当所述业务标识对应至少两个物理层通道,且所述至少两个物理层通道中 的至少一个物理层通道的总承载量大于所述业务标识对应的 MAC数据帧比特 流的速率时,选择所述至少一个物理层通道中总承载量与所述业务标识对应的 MAC数据帧比特流的速率的差值最小的至少一个物理层通道作为所述业务标 识对应的 MAC数据帧比特流对应的物理层通道。  When the service identifier corresponds to at least two physical layer channels, and the total bearer of the at least one physical layer channel of the at least two physical layer channels is greater than the rate of the MAC data frame bit stream corresponding to the service identifier, At least one physical layer channel having a minimum difference between a total carrying capacity of the at least one physical layer channel and a rate of a MAC data frame bit stream corresponding to the service identifier is used as a physical medium corresponding to the MAC data frame bit stream corresponding to the service identifier Layer channel.
结合第一方面第一种至第四种可能的实现方式中的任意一种,在第五种可 能的实现方式中, 所述根据所述业务标识对应的 MAC数据帧比特流的速率, 确定所述业务标识对应的 MAC数据帧比特流对应的物理层通道的步骤之前, 还包括:  With reference to any one of the first to fourth possible implementation manners of the foregoing aspect, in a fifth possible implementation, the determining, according to a rate of a MAC data frame bit stream corresponding to the service identifier, determining Before the step of describing the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, the method further includes:
检测所有物理层通道, 确定所述所有物理层通道中的故障物理层通道; 将所述故障物理层通道的故障状态信息与所述故障物理层通道的通道号 进行关联,并将关联后的所述故障物理层通道的故障状态信息与所述故障物理 层通道的通道号存储到所述映射表中。  Detecting all the physical layer channels, determining the fault physical layer channel in the all physical layer channels; associating the fault state information of the fault physical layer channel with the channel number of the fault physical layer channel, and associating the associated The fault state information of the fault physical layer channel and the channel number of the fault physical layer channel are stored in the mapping table.
结合第一方面第五种可能的实现方式,在第六种可能的实现方式中, 所述 确定所述所有物理层通道中的故障物理层通道的步骤后, 所述方法还包括: 当至少一个所述故障物理层通道的通道号与业务标识关联时,从未被使用 的所述可用物理层通道中选择总承载量不小于所述至少一个所述故障物理层 通道总承载量的至少一个可用物理层通道,并将选择的所述至少一个可用物理 层通道的通道号与所述业务标识关联,并将关联后的所述至少一个可用物理层 通道的通道号与所述业务标识存储到所述映射表中; With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation, after the step of determining a fault physical layer channel in the all physical layer channels, the method further includes: when at least one When the channel number of the faulty physical layer channel is associated with the service identifier, selecting at least one of the available physical layer channels that are not used is not less than at least one of the total bearer of the at least one fault physical layer channel. a physical layer channel, and associates the channel number of the selected at least one available physical layer channel with the service identifier, and associates the at least one available physical layer The channel number of the channel and the service identifier are stored in the mapping table;
激活选择的所述至少一个可用物理层通道。  The selected at least one available physical layer channel is activated.
结合第一方面、 第一方面第一种至第六种可能的实现方式中的任意一种, 在第七种可能的实现方式中, 所述向所述业务标识对应的 MAC数据帧比特流 对应的物理层通道, 发送对应的 MAC数据帧比特流的步骤之前, 所述方法还 包括:  With reference to the first aspect, any one of the first to sixth possible implementation manners of the first aspect, in a seventh possible implementation, the MAC data frame bit stream corresponding to the service identifier is corresponding to Before the step of transmitting the corresponding MAC data frame bit stream, the method further includes:
将所述业务标识对应的 MAC数据帧比特流中的非空闲码块都转换为数据 码块;  Converting, in the MAC data frame bit stream corresponding to the service identifier, a non-idle code block into a data code block;
将所述业务标识对应的 MAC数据帧比特流中的数据码块划分为至少两个 数据码串, 所述至少两个数据码串中的每个数据码串包含至少一个数据码块; 对应的 , 所述向所述业务标识对应的 MAC数据帧比特流对应的物理层通 道, 发送对应的 MAC数据帧比特流, 包括:  And dividing a data code block in the MAC data frame bit stream corresponding to the service identifier into at least two data code sequences, where each of the at least two data code strings includes at least one data code block; And sending, to the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, a corresponding MAC data frame bit stream, including:
向所述业务标识对应的 MAC数据帧比特流对应的物理层通道依次发送所 述每个数据码串, 并轮循发送所述每个数据码串中的数据码块,且在发送所述 每个数据码串前或后, 向所述业务标识对应的 MAC数据帧比特流对应的物理 层通道中发送开始码块和结束码块中的至少一个, 同时删除所述 MAC数据帧 比特流中相同数量的空闲码块,并在所述开始码块和所述结束码块中的至少一 个上写入所述 MAC数据帧比特流的业务标识和承载所述数据码块的物理层通 道的通道号。  And transmitting, to the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, each of the data code strings, and transmitting the data code blocks in each of the data code strings in a round robin manner, and transmitting the Before or after the data code string, transmitting at least one of a start code block and an end code block to a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, and deleting the same in the MAC data frame bit stream a number of idle code blocks, and writing a service identifier of the MAC data frame bitstream and a channel number of a physical layer channel carrying the data code block on at least one of the start code block and the end code block .
本发明第二方面提供一种数据处理的方法, 包括:  A second aspect of the present invention provides a data processing method, including:
从多个物理层通道接收数据码块,以及与所述数据码块关联的开始码块和 结束码块中的至少一个;  Receiving a data code block from a plurality of physical layer channels, and at least one of a start code block and an end code block associated with the data code block;
从所述开始码块和所述结束码块中的至少一个中读取业务标识和通道号 , 所述业务标识为所述关联的数据码块所属的 MAC数据帧比特流的业务标识, 所述通道号为传输所述数据码块的物理层通道的通道号;  And reading, by the at least one of the start code block and the end code block, a service identifier and a channel identifier, where the service identifier is a service identifier of a MAC data frame bitstream to which the associated data code block belongs, The channel number is a channel number of a physical layer channel that transmits the data code block;
根据所述业务标识,对齐从不同通道号的物理层通道中接收的所述数据码 块;  And aligning the data code blocks received from physical layer channels of different channel numbers according to the service identifier;
恢复所述业务标识对应的 MAC数据帧比特流。 结合第二方面, 在第一种可能的实现方式中, 所述根据所述业务标识, 对 齐从不同通道号的物理层通道中接收的所述数据码块, 包括: And recovering a MAC data frame bit stream corresponding to the service identifier. With reference to the second aspect, in a first possible implementation manner, the aligning the data code blocks received from physical layer channels of different channel numbers according to the service identifier includes:
将所述业务标识和与所述业务标识关联的所述物理层通道的通道号,写入 业务标识与物理层通道的通道号的映射表中;  Transmitting the service identifier and the channel number of the physical layer channel associated with the service identifier into a mapping table of a service identifier and a channel number of a physical layer channel;
按照所述映射表中写入的所述业务标识与所述物理层通道的通道号的映 射关系, 对齐所述业务标识对应的 MAC数据帧比特流的数据码块。  And aligning the data code blocks of the MAC data frame bit stream corresponding to the service identifier according to the mapping relationship between the service identifier and the channel number of the physical layer channel written in the mapping table.
本发明第三方面提供一种数据分发装置, 包括:  A third aspect of the present invention provides a data distribution apparatus, including:
第一接收单元, 用于接收携带有业务标识的媒介接入控制 MAC数据帧比 特流;  a first receiving unit, configured to receive a medium access control MAC data frame bit stream carrying a service identifier;
确定单元, 用于根据所述第一接收单元接收到的业务标识对应的 MAC数 据帧比特流的速率, 确定所述业务标识对应的 MAC数据帧比特流对应的物理 层通道;  a determining unit, configured to determine, according to a rate of the MAC data frame bitstream corresponding to the service identifier received by the first receiving unit, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier;
发送单元, 用于向所述确定单元确定的业务标识对应的 MAC数据帧比特 流对应的物理层通道, 发送对应的 MAC数据帧比特流。  And a sending unit, configured to send a corresponding MAC data frame bitstream to the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier determined by the determining unit.
结合第三方面, 在第一种可能的实现方式中, 所述确定单元包括: 第一查找子单元, 用于根据所述业务标识,从预存储的所述业务标识与物 理层通道的通道号的映射表中查找所述业务标识对应的 MAC数据帧比特流对 应的物理层通道;  With reference to the third aspect, in a first possible implementation manner, the determining unit includes: a first searching subunit, configured to: from the pre-stored service identifier and a channel number of a physical layer channel, according to the service identifier Searching for a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier in the mapping table;
第一确定子单元, 用于当所述业务标识对应的 MAC数据帧比特流的速率 不大于所述第一查找子单元查找到的业务标识对应的 MAC数据帧比特流对应 的物理层通道的总承载量时,将所述业务标识对应的物理层通道确定为所述业 务标识对应的 MAC数据帧比特流对应的物理层通道。  a first determining subunit, configured to: when a rate of the MAC data frame bitstream corresponding to the service identifier is not greater than a total of physical layer channels corresponding to the MAC data frame bitstream corresponding to the service identifier found by the first searching subunit The physical layer channel corresponding to the service identifier is determined as the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
结合第三方面, 在第二种可能的实现方式中, 所述确定单元包括: 第二查找子单元, 用于根据所述业务标识,从预存储的所述业务标识与物 理层通道的通道号的映射表中查找所述业务标识对应的 MAC数据帧比特流对 应的物理层通道;  With reference to the third aspect, in a second possible implementation, the determining unit includes: a second searching subunit, configured to: from the pre-stored service identifier and a channel number of a physical layer channel, according to the service identifier Searching for a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier in the mapping table;
第一选择子单元, 用于当所述业务标识对应的 MAC数据帧比特流的速率 大于所述第二查找子单元查找到的业务标识对应的 MAC数据帧比特流对应的 物理层通道的总承载量时,从未被使用的可用物理层通道中选择至少一个物理 层通道, 所述至少一个物理层通道的承载量与所述业务标识对应的 MAC数据 帧比特流对应的物理层通道的总承载量之和不小于所述业务标识对应的 MAC 数据帧比特流的速率; a first selection sub-unit, configured to: when a rate of the MAC data frame bit stream corresponding to the service identifier is greater than a MAC data frame bit stream corresponding to the service identifier that is found by the second search subunit At least one physical layer channel is selected from the available physical layer channels that are not used, and the bearer amount of the at least one physical layer channel corresponds to the MAC data frame bit stream corresponding to the service identifier. The sum of the total carrying capacity of the physical layer channel is not less than the rate of the MAC data frame bit stream corresponding to the service identifier;
第二确定子单元,用于将所述第一选择子单元选择的所述至少一个物理层 通道和所述映射表中所业务标识对应的物理层通道确定为所述业务标识对应 的 MAC数据帧比特流对应的物理层通道。  a second determining subunit, configured to determine, by the first selection subunit, the at least one physical layer channel and a physical layer channel corresponding to the service identifier in the mapping table as a MAC data frame corresponding to the service identifier The physical layer channel corresponding to the bit stream.
结合第三方面第一种可能的实现方式,在第三种可能的实现方式中, 所述 第一确定子单元, 用于当所述业务标识对应至少两个物理层通道, 且所述至少 两个物理层通道中的至少一个物理层通道的总承载量大于所述业务标识对应 的 MAC数据帧比特流的速率时, 确定所述至少一个物理层通道中总承载量与 所述业务标识对应的 MAC数据帧比特流的速率的差值最小的至少一个物理层 通道作为所述业务标识对应的 MAC数据帧比特流对应的物理层通道。  With reference to the first possible implementation manner of the third aspect, in a third possible implementation, the first determining subunit is configured to: when the service identifier corresponds to at least two physical layer channels, and the at least two When the total carrying capacity of the at least one physical layer channel of the physical layer channel is greater than the rate of the MAC data frame bit stream corresponding to the service identifier, determining that the total bearer amount in the at least one physical layer channel corresponds to the service identifier The at least one physical layer channel with the smallest difference in the rate of the MAC data frame bit stream is the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
结合第三方面、第三方面第一种至第三种可能实现方式中的任意一种,在 第四种可能的实现方式中, 所述装置还包括:  With reference to the third aspect, any one of the first to the third possible implementation manners of the third aspect, in a fourth possible implementation manner, the device further includes:
检测单元, 用于检测所有物理层通道; 理层通道; 所述故障物理层通道的通道号进行关联; 信息与所述故障物理层通道的通道号存储到所述映射表中。  a detecting unit, configured to detect all physical layer channels; a physical layer channel; a channel number of the fault physical layer channel is associated; and information and a channel number of the fault physical layer channel are stored in the mapping table.
结合第三方面第四种可能的实现方式,在第五种可能的实现方式中, 所述 装置还包括:  With reference to the fourth possible implementation of the third aspect, in a fifth possible implementation, the device further includes:
选择单元,用于当至少一个所述故障物理层通道的通道号与业务标识关联 时,从未被使用的所述可用物理层通道中选择总承载量不小于所述至少一个所 述故障物理层通道总承载量的至少一个可用物理层通道,并将选择的所述至少 一个可用物理层通道的通道号与所述业务标识关联,并将关联后的所述至少一 个可用物理层通道的通道号与所述业务标识存储到所述映射表中; 激活单元, 用于激活所述选择单元选择的所述至少一个可用物理层通道。 结合第三方面、第三方面第一种至第五种可能实现方式中的任意一种,在 第六种可能的实现方式中, 所述装置还包括: a selecting unit, configured to: when the channel number of the at least one faulty physical layer channel is associated with the service identifier, select a total bearer from the unused physical layer channels that is not used to be not less than the at least one fault physical layer At least one available physical layer channel of the total channel capacity, and associates the selected channel number of the at least one available physical layer channel with the service identifier, and associates the at least one associated The channel number of the available physical layer channel and the service identifier are stored in the mapping table; and the activation unit is configured to activate the at least one available physical layer channel selected by the selection unit. With reference to the third aspect, any one of the first to fifth possible implementation manners of the third aspect, in a sixth possible implementation, the device further includes:
码块转换单元, 用于将所述业务标识对应的 MAC数据帧比特流中的非空 闲码块都转换为数据码块;  a code block conversion unit, configured to convert, into the data code block, the non-empty code blocks in the bit stream of the MAC data frame corresponding to the service identifier;
划分单元, 用于将所述业务标识对应的 MAC数据帧比特流中的数据码块 划分为至少两个数据码串,所述至少两个数据码串中的每个数据码串包含至少 一个数据码块;  a dividing unit, configured to divide a data code block in a MAC data frame bit stream corresponding to the service identifier into at least two data code strings, where each of the at least two data code strings includes at least one data Code block
所述发送单元, 用于向所述业务标识对应的 MAC数据帧比特流对应的物 理层通道依次发送所述每个数据码串,并轮循发送所述每个数据码串中的数据 码块, 且在发送所述每个数据码串前或后, 向所述业务标识对应的 MAC数据 述开始码块和所述结束码块中的至少一个上写入所述 MAC数据帧比特流的业 务标识和承载所述数据码块的物理层通道的通道号;  The sending unit is configured to sequentially send the data code sequence to a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, and sequentially send the data code block in each data code string And writing, to the at least one of the MAC data description start code block and the end code block corresponding to the service identifier, a service of writing the MAC data frame bitstream before or after sending each data code string Identifying and carrying a channel number of a physical layer channel of the data code block;
删除单元, 用于当每次发送所述开始码块和所述结束码块中的至少一个 时, 删除所述 MAC数据帧比特流中相同数量的空闲码块。  And a deleting unit, configured to delete the same number of idle code blocks in the bit stream of the MAC data frame each time at least one of the start code block and the end code block is sent.
本发明第四方面提供一种数据汇聚装置, 包括:  A fourth aspect of the present invention provides a data convergence apparatus, including:
第二接收单元, 用于从多个物理层通道接收数据码块, 以及与所述数据码 块关联的开始码块和结束码块中的至少一个;  a second receiving unit, configured to receive a data code block from multiple physical layer channels, and at least one of a start code block and an end code block associated with the data code block;
读取单元,用于从所述第二接收单元接收的开始码块和所述结束码块中的 至少一个中读取业务标识和通道号,所述业务标识为所述关联的数据码块所属 的 MAC数据帧比特流的业务标识, 所述通道号为传输所述数据码块的物理层 通道的通道号;  a reading unit, configured to read a service identifier and a channel number from at least one of a start code block and the end code block received by the second receiving unit, where the service identifier is that the associated data code block belongs to a service identifier of a MAC data frame bitstream, where the channel number is a channel number of a physical layer channel that transmits the data code block;
对齐单元, 用于根据所述读取单元读取的业务标识,对齐从不同通道号的 物理层通道中接收的所述数据码块;  An aligning unit, configured to align the data code blocks received from physical layer channels of different channel numbers according to the service identifier read by the reading unit;
恢复单元, 用于在所述对齐单元对齐数据码块后, 恢复所述业务标识对应 的 MAC数据帧比特流。 本发明第五方面提供一种数据分发装置, 包括:第一接收器、第一发送器、 第一存储器和第一处理器,所述第一存储器存储有所述第一处理器执行数据分 发过程的程序; And a recovery unit, configured to restore a MAC data frame bitstream corresponding to the service identifier after the alignment unit aligns the data code block. A fifth aspect of the present invention provides a data distribution apparatus, including: a first receiver, a first transmitter, a first memory, and a first processor, wherein the first memory stores the first processor to execute a data distribution process program of;
其中, 所述第一接收器, 用于接收携带有业务标识的媒介接入控制 MAC 数据帧比特流;  The first receiver is configured to receive a medium access control MAC data frame bit stream carrying a service identifier;
所述第一处理器, 用于根据所述业务标识对应的 MAC数据帧比特流的速 率 , 确定所述业务标识对应的 MAC数据帧比特流对应的物理层通道;  The first processor is configured to determine, according to a rate of the MAC data frame bit stream corresponding to the service identifier, a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier;
所述第一发送器, 用于向所述业务标识对应的 MAC数据帧比特流对应的 物理层通道, 发送对应的 MAC数据帧比特流。  The first transmitter is configured to send a corresponding MAC data frame bitstream to a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier.
本发明第六方面提供一种数据处理系统, 包括: 数据分发装置和数据汇聚 装置,  A sixth aspect of the present invention provides a data processing system, including: a data distribution device and a data convergence device,
所述数据分发装置为上述技术方案所述的数据分发装置;  The data distribution device is the data distribution device described in the above technical solution;
所述数据汇聚装置为上述技术方案所述的数据汇聚装置。  The data convergence device is the data convergence device described in the above technical solution.
本发明实施例釆用接收携带有业务标识的媒介接入控制 MAC数据帧比特 流; 根据所述业务标识对应的 MAC数据帧比特流的速率, 确定所述业务标识 对应的 MAC数据帧比特流对应的物理层通道; 向所述业务标识对应的 MAC数 据帧比特流对应的物理层通道, 发送对应的 MAC数据帧比特流。 与现有技术 中通过一个物理通达传输数据的方法相比,本发明实施例提供的数据的处理方 法, 可以通过多个物理层通道传输同一业务标识的数据, 可以降低数据处理的 复杂度, 提高数据处理的效率。  The embodiment of the present invention uses the media access control MAC data frame bit stream carrying the service identifier; and determines the MAC data frame bit stream corresponding to the service identifier according to the rate of the MAC data frame bit stream corresponding to the service identifier. The physical layer channel sends a corresponding MAC data frame bit stream to the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier. Compared with the method for transmitting data through a physical access in the prior art, the data processing method provided by the embodiment of the present invention can transmit data of the same service identifier through multiple physical layer channels, thereby reducing the complexity of data processing and improving The efficiency of data processing.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所 需要使用的附图作简单地介绍,显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例, 对于本领域技术人员来讲, 在不付出创造性劳动的前提下, 还 可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings can also be obtained from those skilled in the art based on these drawings without paying any creative effort.
图 1是本发明实施例中现有技术中单通道发送数据的一示意图;  1 is a schematic diagram of a single channel transmitting data in the prior art according to an embodiment of the present invention;
图 2是本发明实施例中处理方法的一实施例示意图;  2 is a schematic diagram of an embodiment of a processing method in an embodiment of the present invention;
图 3是本发明实施例中处理方法的另一实施例示意图; 图 4是本发明实施例中处理方法的另一实施例示意图; 3 is a schematic diagram of another embodiment of a processing method in an embodiment of the present invention; 4 is a schematic diagram of another embodiment of a processing method in an embodiment of the present invention;
图 5是本发明实施例中处理方法的另一实施例示意图;  FIG. 5 is a schematic diagram of another embodiment of a processing method in an embodiment of the present invention; FIG.
图 6是本发明实施例中数据分发装置的一实施例示意图;  6 is a schematic diagram of an embodiment of a data distribution apparatus according to an embodiment of the present invention;
图 7是本发明实施例中数据分发装置的另一实施例示意图;  FIG. 7 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention; FIG.
图 8是本发明实施例中数据分发装置的另一实施例示意图;  FIG. 8 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention; FIG.
图 9是本发明实施例中数据分发装置的另一实施例示意图;  FIG. 9 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention; FIG.
图 10是本发明实施例中数据分发装置的另一实施例示意图;  FIG. 10 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention; FIG.
图 11是本发明实施例中数据分发装置的另一实施例示意图;  FIG. 11 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention; FIG.
图 12是本发明实施例中数据分发装置的另一实施例示意图;  FIG. 12 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention; FIG.
图 13是本发明实施例中数据分发装置的另一实施例示意图;  FIG. 13 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention; FIG.
图 14是本发明实施例中数据分发装置的另一实施例示意图;  FIG. 14 is a schematic diagram of another embodiment of a data distribution apparatus according to an embodiment of the present invention; FIG.
图 15是本发明实施例中数据汇聚装置的一实施例示意图;  FIG. 15 is a schematic diagram of an embodiment of a data convergence device according to an embodiment of the present invention; FIG.
图 16是本发明实施例中数据汇聚装置的一实施例示意图;  16 is a schematic diagram of an embodiment of a data convergence device according to an embodiment of the present invention;
图 17是本发明实施例中数据分发装置的一实施例示意图;  17 is a schematic diagram of an embodiment of a data distribution apparatus according to an embodiment of the present invention;
图 18是本发明实施例中数据汇聚装置的一实施例示意图;  FIG. 18 is a schematic diagram of an embodiment of a data convergence device according to an embodiment of the present invention; FIG.
图 19是本发明实施例中数据处理系统的一实施例示意图。  FIG. 19 is a schematic diagram of an embodiment of a data processing system in an embodiment of the present invention.
具体实施方式 detailed description
本发明实施例提供一种数据处理的方法, 可以降低数据处理的复杂度,提 高数据处理效率。本发明实施例还提供了相应的装置及系统。 以下分别进行详 细说明。  The embodiment of the invention provides a data processing method, which can reduce the complexity of data processing and improve data processing efficiency. The embodiments of the present invention also provide corresponding devices and systems. The following is a detailed description.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域技术人员在没有作出创造性劳 动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
参阅图 2, 本发明实施例中一种数据处理的方法的一实施例包括:  Referring to FIG. 2, an embodiment of a data processing method in an embodiment of the present invention includes:
101、数据分发装置接收携带有业务标识的媒介接入控制 MAC数据帧比特 流。  101. The data distribution apparatus receives the medium access control MAC data frame bit stream carrying the service identifier.
媒介接入控制(Media Access Contra, MAC )数据帧中可以携带一个或者 多个业务标识, 业务标识可以为 MAC数据帧中的分类 (TAG )信息, 如多协 议标签交换 ( Multi-Protocol Label Switching, MPLS )、 虚拟局域网标识 (Virtual Local Area Network identity , VLAN ID)等。 Media Access Contra (MAC) data frames can carry one or The service identifier may be a category (TAG) information in a MAC data frame, such as a Multi-Protocol Label Switching (MPLS), a Virtual Local Area Network Identity (VLAN ID), or the like.
102、 数据分发装置根据所述业务标识对应的 MAC数据帧比特流的速率, 确定所述业务标识对应的 MAC数据帧比特流对应的物理层通道。  102. The data distribution device determines, according to a rate of the MAC data frame bitstream corresponding to the service identifier, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier.
如果 MAC数据帧比特流中携带多个业务标识, 可以先按照业务标识将 MAC数据帧比特流进行分流, 分成业务标识对应的 MAC数据帧比特流。  If the MAC data frame bit stream carries multiple service identifiers, the MAC data frame bit stream may be firstly divided according to the service identifier, and divided into MAC data frame bit streams corresponding to the service identifier.
本发明实施例中,如果 MAC数据帧比特流中包含多个 MAC数据帧比特流, 每个 MAC数据帧比特流的速率可以不同, 当一些 MAC数据帧比特流需要占用 的带宽较大时, 需要较大带宽的物理层通道来承载, 或者一个物理层通道不能 承载速率较大的 MAC数据帧比特流时,需要多个物理层通道来承载。如果 MAC 数据帧比特流的速率为 200Mbit/s, 那么确定该 MAC数据帧比特流对应的物理 层通道的总承载量要达到 200M, 如果, 一个物理层通道可以承载 50M, 那么 可以确定该 MAC数据帧比特流对应 4个物理层通道。  In the embodiment of the present invention, if the MAC data frame bit stream includes multiple MAC data frame bit streams, the rate of each MAC data frame bit stream may be different. When some MAC data frame bit streams need to occupy a large bandwidth, it is required. When a physical layer channel of a larger bandwidth is used to carry, or a physical layer channel cannot carry a MAC data frame bit stream with a large rate, multiple physical layer channels are required to be carried. If the rate of the bit stream of the MAC data frame is 200 Mbit/s, it is determined that the total carrying capacity of the physical layer channel corresponding to the bit stream of the MAC data frame is 200 M. If a physical layer channel can carry 50 M, the MAC data can be determined. The frame bit stream corresponds to 4 physical layer channels.
103、数据分发装置向所述业务标识对应的 MAC数据帧比特流对应的物理 层通道, 发送对应的 MAC数据帧比特流。  103. The data distribution apparatus sends a corresponding MAC data frame bitstream to a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier.
MAC数据帧比特流的物理通道或者 MAC数据帧比特流的物理层通道确定 后, 向对应的物理层通道发送对应的 MAC数据帧比特流或者 MAC数据帧比特 流。  After the physical channel of the MAC data frame bit stream or the physical layer channel of the MAC data frame bit stream is determined, the corresponding MAC data frame bit stream or the MAC data frame bit stream is transmitted to the corresponding physical layer channel.
本发明实施例釆用接收携带有业务标识的媒介接入控制 MAC数据帧比特 流; 根据所述业务标识对应的 MAC数据帧比特流的速率, 确定所述业务标识 对应的 MAC数据帧比特流对应的物理层通道; 向所述业务标识对应的 MAC数 据帧比特流对应的物理层通道, 发送对应的 MAC数据帧比特流。 与现有技术 中通过虚通道对齐处理数据的方法相比, 本发明实施例提供的数据的处理方 法, 可以通过多个物理层通道传输同一业务标识的数据, 可以降低数据处理的 复杂度, 提高数据处理的效率。  The embodiment of the present invention uses the media access control MAC data frame bit stream carrying the service identifier; and determines the MAC data frame bit stream corresponding to the service identifier according to the rate of the MAC data frame bit stream corresponding to the service identifier. The physical layer channel sends a corresponding MAC data frame bit stream to the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier. Compared with the method for processing data by the virtual channel alignment in the prior art, the data processing method provided by the embodiment of the present invention can transmit data of the same service identifier through multiple physical layer channels, thereby reducing the complexity of data processing and improving The efficiency of data processing.
可选地, 在上述图 2对应的实施例的基石出上, 本发明实施例提供的数据处 理的方法的第一个可选实施例中, 所述根据所述业务标识对应的 MAC数据帧 比特流的速率 , 确定所述业务标识对应的 MAC数据帧比特流对应的物理层通 道, 可以包括: Optionally, in a preferred embodiment of the data processing method provided by the embodiment of the present invention, the MAC data frame corresponding to the service identifier is The rate of the bit stream, the physical layer channel corresponding to the bit stream of the MAC data frame corresponding to the service identifier, may include:
根据所述业务标识,从预存储的所述业务标识与物理层通道的通道号的映 射表中查找所述业务标识对应的 MAC数据帧比特流对应的物理层通道;  And searching, according to the service identifier, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, from the mapping table of the pre-stored service identifier and the channel number of the physical layer channel;
当所述业务标识对应的 MAC数据帧比特流的速率不大于所述业务标识对 应的 MAC数据帧比特流对应的物理层通道的总承载量时, 将所述业务标识对 应的物理层通道确定为所述业务标识对应的 MAC数据帧比特流对应的物理层 通道。  When the rate of the MAC data frame bitstream corresponding to the service identifier is not greater than the total carrying capacity of the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, the physical layer channel corresponding to the service identifier is determined as The physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
本发明实施例中, 业务标识与物理层通道的通道号的映射表可以参考表 1 进行理解:  In the embodiment of the present invention, the mapping table between the service identifier and the channel number of the physical layer channel can be understood by referring to Table 1:
业务标识与物理层通道的通道号的映射表  Mapping table between the service identifier and the channel number of the physical layer channel
Figure imgf000012_0001
Figure imgf000012_0001
表 1中业务标识为 1的 MAC数据帧比特流对应的物理层通道有三个, 分别 为通道号为 1、 2、 3的物理层通道。  The physical layer channel corresponding to the MAC data frame bit stream with the service identifier 1 in Table 1 is three, which are physical layer channels with channel numbers 1, 2, and 3.
这样, 当业务标识为 1时, 就可以从表 1中查找到业务标识为 1的 MAC数据 帧比特流对应的物理层通道为 1、 2、 3 , 业务标识为 2的 MAC数据帧比特流对 应的物理层通道为 4, 业务标识为 3的 MAC数据帧比特流对应的物理层通道为 5 , 业务标识为 4的 MAC数据帧比特流对应的物理层通道为 6。  In this way, when the service identifier is 1, the physical layer channel corresponding to the MAC data frame bit stream with the service identifier 1 is 1, 2, 3, and the MAC data frame bit stream corresponding to the service identifier 2 is corresponding. The physical layer channel is 4, the physical layer channel corresponding to the MAC data frame bit stream with the service identifier 3 is 5, and the physical layer channel corresponding to the MAC data frame bit stream with the service identifier 4 is 6.
当业务标识为 1的 MAC数据帧比特流的速率不大于所述业务标识为 1对应 的 MAC数据帧比特流对应的物理层通道的总承载量时, 将业务标识 1对应的通 道号为 1、 2、 3的物理层通道确定为业务标识为 1的 MAC数据帧比特流的物理 层通道。 例如: 当业务标识为 1的 MAC数据帧比特流的速率为 130Mbit/s, 通道号为 1、 2、 3的物理层通道的总 7 载量为 150M, 可以确定通道号为 1、 2、 3的物理 层通道为业务标识为 1的 MAC数据帧比特流的物理层通道。 When the rate of the MAC data frame bit stream with the service identifier 1 is not greater than the total carrying capacity of the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier 1, the channel number corresponding to the service identifier 1 is 1. The physical layer channel of 2, 3 is determined as the physical layer channel of the MAC data frame bit stream with the service identifier 1. For example: When the rate of the MAC data frame bit stream with service ID is 1 is 130 Mbit/s, and the total 7-load capacity of the physical layer channel with channel number 1, 2, 3 is 150 M, the channel number can be determined as 1, 2, 3 The physical layer channel is a physical layer channel of a MAC data frame bit stream with a service identifier of 1.
其他, 业务标识为 2、 3、 4的 MAC数据帧比特流确定物理层通道的过程为 业务标识为 1的 MAC数据帧比特流确定物理层通道的过程相同, 在此不再详细 赘述。  The process of determining the physical layer channel for the MAC data frame bit stream with the service identifiers of 2, 3, and 4 is the same as the process for determining the physical layer channel for the MAC data frame bit stream with the service identifier of 1, and will not be described in detail herein.
可选地, 在上述图 2对应的实施例的基石出上, 本发明实施例提供的数据处 理的方法的第二个可选实施例中, 所述根据所述业务标识对应的 MAC数据帧 比特流的速率 , 确定所述业务标识对应的 MAC数据帧比特流对应的物理层通 道, 可以包括:  Optionally, in the second optional embodiment of the data processing method provided by the embodiment of the present invention, the MAC data frame bit corresponding to the service identifier is used in the foregoing. The rate of the flow, the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, may include:
根据所述业务标识,从预存储的所述业务标识与物理层通道的通道号的映 射表中查找所述业务标识对应的 MAC数据帧比特流对应的物理层通道;  And searching, according to the service identifier, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, from the mapping table of the pre-stored service identifier and the channel number of the physical layer channel;
当所述业务标识对应的 MAC数据帧比特流的速率大于所述业务标识对应 的 MAC数据帧比特流对应的物理层通道的总承载量时, 从未被使用的可用物 理层通道中选择至少一个物理层通道,所述至少一个物理层通道的总承载量与 所述业务标识对应的 MAC数据帧比特流对应的物理层通道的总承载量之和不 小于所述业务标识对应的 MAC数据帧比特流的速率;  And selecting at least one of the available physical layer channels that are not used when the rate of the MAC data frame bit stream corresponding to the service identifier is greater than the total carrying capacity of the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier. a physical layer channel, where a total bearer of the at least one physical layer channel and a total carrying capacity of the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier are not smaller than a MAC data frame bit corresponding to the service identifier Rate of flow;
将选择的所述至少一个物理层通道和所述映射表中所业务标识对应的物 理层通道确定为所述业务标识对应的 MAC数据帧比特流对应的物理层通道。  The selected at least one physical layer channel and the physical layer channel corresponding to the service identifier in the mapping table are determined as the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
本发明实施例中, 参阅表 1 , 当业务标识为 1的 MAC数据帧比特流的速率 为 180Mbit/s, 通道号为 1、 2、 3的物理层通道的总 7 载量为 150M, 可以确定通 道号为 1、 2、 3的物理层通道不够承载业务标识为 1的 MAC数据帧比特流, 可 以从未被使用的可用物理层通道中选择至少一个物理层通道, 如: 通道号为 7 的物理层通道为可用物理层通道, 而且通道号为 7的物理层通道的承载量大于 30M,这样,就可以确定通道号 1、 2、 3、 7的物理层通道为业务标识为 1的 MAC 数据帧比特流的物理层通道。  In the embodiment of the present invention, referring to Table 1, when the rate of the bit stream of the MAC data frame with the service identifier 1 is 180 Mbit/s, and the total 7 load of the physical layer channel with the channel number of 1, 2, 3 is 150 M, it can be determined. The physical layer channel with the channel number of 1, 2, and 3 is not enough to carry the MAC data frame bit stream with the service identifier of 1. The at least one physical layer channel can be selected from the available physical layer channels that are not used, for example, the channel number is 7. The physical layer channel is the available physical layer channel, and the physical layer channel with channel number 7 has a carrying capacity greater than 30M. Thus, it can be determined that the physical layer channel of channel numbers 1, 2, 3, and 7 is the MAC data with the service identifier 1 The physical layer channel of the frame bitstream.
可选地, 在上述图 2对应的第二个可选实施例的基础上, 本发明实施例提 供的数据处理的方法的第三个可选实施例还包括:将选择的所述至少一个物理 层通道的通道号与所述业务标识进行关联,并将关联后的所述至少一个物理层 通道的通道号与所述业务标识存储到所述映射表中。 Optionally, the third optional embodiment of the data processing method provided by the embodiment of the present invention further includes: the selected at least one physical entity, based on the second optional embodiment corresponding to FIG. The channel number of the layer channel is associated with the service identifier, and the associated channel number of the at least one physical layer channel and the service identifier are stored in the mapping table.
本发明实施例中, 关联存储后的映射表可以参阅表 2进行理解:  In the embodiment of the present invention, the mapping table after the association storage can be understood by referring to Table 2:
表 2: 修改后的映射表  Table 2: Modified mapping table
Figure imgf000014_0001
Figure imgf000014_0001
从表 2中可以看出, 业务标识 1和通道号 7的关联关系。  As can be seen from Table 2, the relationship between service identifier 1 and channel number 7 is shown.
当然, 以上只是以通道号 7的物理层通道进行举例, 实际上, 可以从未使 的 MAC数据帧比特流的承载。  Of course, the above is only an example of the physical layer channel of channel number 7. In fact, the bit stream of the MAC data frame can be never carried.
可选地, 在上述图 2对应的第一个可选实施例的基础上, 本发明实施例提 供的数据处理的方法的第四个可选实施例中:  Optionally, in the fourth optional embodiment of the data processing method provided by the embodiment of the present invention, based on the foregoing first optional embodiment corresponding to FIG. 2:
所述当所述业务标识对应的 MAC数据帧比特流的速率不大于所述业务标 识对应的 MAC数据帧比特流对应的物理层通道的总承载量时, 将所述业务标 识对应的物理层通道确定为所述业务标识对应的 MAC数据帧比特流对应的物 理层通道, 可以包括:  And when the rate of the MAC data frame bit stream corresponding to the service identifier is not greater than the total carrying capacity of the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, the physical layer channel corresponding to the service identifier is used. Determining, as the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, the method may include:
当所述业务标识对应至少两个物理层通道,且所述至少两个物理层通道中 的至少一个物理层通道的总承载量大于所述业务标识对应的 MAC数据帧比特 流的速率时,选择所述至少一个物理层通道中总承载量与所述业务标识对应的 MAC数据帧比特流的速率的差值最小的至少一个物理层通道作为所述业务标 识对应的 MAC数据帧比特流对应的物理层通道。  When the service identifier corresponds to at least two physical layer channels, and the total bearer of the at least one physical layer channel of the at least two physical layer channels is greater than the rate of the MAC data frame bit stream corresponding to the service identifier, At least one physical layer channel having a minimum difference between a total carrying capacity of the at least one physical layer channel and a rate of a MAC data frame bit stream corresponding to the service identifier is used as a physical medium corresponding to the MAC data frame bit stream corresponding to the service identifier Layer channel.
本发明实施例中, 参阅表 1 , 业务标识 1对应通道号为 1、 2、 3的三个物理 层通道, 这三个物理层通道的 7 载量分别为 50M、 60M和 70M, 当业务标识 1 对应的 MAC数据帧比特流的速率为 100M时, 可以选择通道号为 1和 2的物理层 通道来传输业务标识 1对应的 MAC数据帧比特流, 也可以选择通道号为 2和 3的 物理层通道来传输业务标识 1对应的 MAC数据帧比特流, 也可以选择通道号为 1和 3的物理层通道来传输业务标识 1对应的 MAC数据帧比特流, 但是通道号为 1和 2的物理层通道的总承载量为 110M, 与其他两种组合相比, 通道号为 1和 2 的组合的物理通道的总承载量与业务标识 1对应的 MAC数据帧比特流的速率 的差值最小, 只有 10M, 那么就选择通道号 1和 2的物理层通道作为业务标识 1 对应的 MAC数据帧比特流的物理层通道。 In the embodiment of the present invention, referring to Table 1, the service identifier 1 corresponds to three physics with channel numbers 1, 2, and 3. Layer 7 channels, the capacity of the three physical layer channels is 50M, 60M, and 70M respectively. When the rate of the MAC data frame bit stream corresponding to service identifier 1 is 100M, the physical layer channel with channel numbers 1 and 2 can be selected. To transmit the MAC data frame bit stream corresponding to the service identifier 1, or to select the physical layer channel with the channel number 2 and 3 to transmit the MAC data frame bit stream corresponding to the service identifier 1, or select the physical medium with the channel number 1 and 3. The layer channel transmits the MAC data frame bit stream corresponding to the service identifier 1, but the total carrying capacity of the physical layer channel with the channel numbers 1 and 2 is 110M, and the channel number is a combination of 1 and 2 compared with the other two combinations. The total bearer of the physical channel has the smallest difference from the rate of the MAC data frame bitstream corresponding to the service identifier 1, only 10M, then the physical layer channel of the channel number 1 and 2 is selected as the MAC data frame bitstream corresponding to the service identifier 1. Physical layer channel.
可选地, 在上述图 2对应的第四个可选实施例的基础上, 本发明实施例提 供的数据处理的方法的第五个可选实施例还可以包括:  Optionally, on the basis of the fourth optional embodiment corresponding to FIG. 2, the fifth optional embodiment of the data processing method provided by the embodiment of the present invention may further include:
将所述至少两个物理层通道中除被选择的总承载量与所述业务标识对应 的 MAC数据帧比特流的速率的差值最小的至少一个物理层通道外的剩余物理 层通道的使用状态在所述映射表中标记为未使用。  And a usage state of the remaining physical layer channels except the minimum difference between the selected total bearer and the rate of the MAC data frame bitstream corresponding to the service identifier in the at least two physical layer channels Marked as unused in the mapping table.
本发明实施例中, 当通道号 3对应的物理层通道未使用时, 可以在映射表 中物理层通道状态信息中直接标记出来。 具体可以参阅表 3进行理解。  In the embodiment of the present invention, when the physical layer channel corresponding to the channel number 3 is not used, it may be directly marked in the physical layer channel state information in the mapping table. See Table 3 for details.
表 3: 包含通道状态的映射表  Table 3: Mapping table with channel status
Figure imgf000015_0001
Figure imgf000015_0001
可选地, 在上述图 2对应的第一个至第五个可选实施例中任一可选实施例 的基础上, 本发明实施例提供的数据处理的方法的第六个可选实施例中, 所述 根据所述业务标识对应的 MAC数据帧比特流的速率, 确定所述业务标识对应 的 MAC数据帧比特流对应的物理层通道的步骤之前, 还可以包括: 检测所有物理层通道, 确定所述所有物理层通道中的故障物理层通道; 将所述故障物理层通道的故障状态信息与所述故障物理层通道的通道号 进行关联,并将关联后的所述故障物理层通道的故障状态信息与所述故障物理 层通道的通道号存储到所述映射表中。 Optionally, the sixth optional embodiment of the data processing method provided by the embodiment of the present invention is provided on the basis of any of the foregoing optional embodiments in the foregoing first to fifth alternative embodiments. The step of determining the physical layer channel corresponding to the bitstream of the MAC data frame corresponding to the service identifier according to the rate of the MAC data frame bitstream corresponding to the service identifier may further include: Detecting all the physical layer channels, determining the fault physical layer channel in the all physical layer channels; associating the fault state information of the fault physical layer channel with the channel number of the fault physical layer channel, and associating the associated The fault state information of the fault physical layer channel and the channel number of the fault physical layer channel are stored in the mapping table.
本发明实施例中, 需要保证确定的物理层通道都能正常使用, 因此在确定 每个业务数据流对应的物理层通道的之前,需要先检测一下每个物理层通道是 否存在故障,如果存在故障则不能使用, 可以在映射表中存在故障的物理层通 道的通道号对应处存储该通道的故障信息, 以避免被误使用。 如果通道号为 3 的物理层通道出现故障, 其他物理层通道处于正常使用状态, 那么映射表中存 储状态信息可以参阅表 4进行理解:  In the embodiment of the present invention, it is required to ensure that the determined physical layer channel can be used normally. Therefore, before determining the physical layer channel corresponding to each service data flow, it is necessary to first detect whether each physical layer channel has a fault, and if there is a fault. It cannot be used. The fault information of the channel can be stored in the corresponding channel number of the physical layer channel in the mapping table to avoid being misused. If the physical layer channel with channel number 3 fails and the other physical layer channels are in normal use, the storage status information in the mapping table can be understood by referring to Table 4:
表 4: 包含通道状态的映射表  Table 4: Mapping table with channel status
Figure imgf000016_0001
Figure imgf000016_0001
从表 4中可以清楚的看出, 通道号为 3和 8的物理层通道故障, 不能使用。 可选地, 在上述图 2对应的第六个可选实施例的基础上, 本发明实施例提 供的数据处理的方法的第七个可选实施例中,所述确定所述所有物理层通道中 的故障物理层通道的步骤后, 所述方法还可以包括:  It can be clearly seen from Table 4 that the physical layer channel faults with channel numbers 3 and 8 cannot be used. Optionally, in the seventh optional embodiment of the data processing method provided by the embodiment of the present invention, the determining the physical layer channel in the seventh embodiment, After the step of the fault physical layer channel, the method may further include:
当至少一个所述故障物理层通道的通道号与业务标识关联时,从未被使用 的所述可用物理层通道中选择总承载量不小于所述至少一个所述故障物理层 通道总承载量的至少一个可用物理层通道,并将选择的所述至少一个可用物理 层通道的通道号与所述业务标识关联,并将关联后的所述至少一个可用物理层 通道的通道号与所述业务标识存储到所述映射表中; When the channel number of the at least one faulty physical layer channel is associated with the service identifier, selecting a total bearer from the unused physical layer channels that is not used is not less than a total carrying capacity of the at least one fault physical layer channel At least one available physical layer channel, and associates the channel number of the selected at least one available physical layer channel with the service identifier, and associates the at least one available physical layer The channel number of the channel and the service identifier are stored in the mapping table;
激活选择的所述至少一个可用物理层通道。  The selected at least one available physical layer channel is activated.
本发明实施例中, 在检测到通道号为 3的物理层通道存在故障后, 从未被 使用的可用物理层通道中选择一个承载量与通道号 3对应的物理层通道相同的 通道号为 7的物理层通道,将业务标识 1和通道号 7对应的加入到映射表 4中, 通 道号 7对应的状态信息改为 "新增", 并激活通道号 7对应的物理层通道, 得到 新的映射表 5:  In the embodiment of the present invention, after detecting that there is a fault in the physical layer channel with the channel number 3, the channel number of the physical layer channel corresponding to the channel number 3 is selected from the available physical layer channels that are not used. The physical layer channel is added to the mapping table 4 corresponding to the service identifier 1 and the channel number 7. The status information corresponding to the channel number 7 is changed to "new", and the physical layer channel corresponding to the channel number 7 is activated, and a new one is obtained. Mapping Table 5:
表 5: 调整后的映射表  Table 5: Adjusted mapping table
Figure imgf000017_0001
Figure imgf000017_0001
本实施例中, 做物理层通道替换时, 釆用的是一对一的替换, 如: 将通道 量与通道号 3对应的物理层通道相同即可, 不用可以考虑物理层通道数据。  In this embodiment, when the physical layer channel is replaced, the one-to-one replacement is used, for example, the physical layer channel corresponding to the channel number 3 is the same, and the physical layer channel data may not be considered.
例如: 通道号 3对应的物理层通道的 7?载量为 50M, 通道号 9和 10对应的物 理层通道的总承载量为 50, 就可以用通道号 9和 10对应的物理层通道替换通道 号 3对应的物理层通道。  For example, the 7-load capacity of the physical layer channel corresponding to channel number 3 is 50M, and the total load capacity of the physical layer channel corresponding to channel numbers 9 and 10 is 50. You can replace the channel with the physical layer channel corresponding to channel numbers 9 and 10. No. 3 corresponds to the physical layer channel.
可选地, 在上述 1对应的第六个可选实施例的基石出上, 本发明实施例提供 的数据处理的方法的第八个可选实施例还可以包括:  Optionally, the eighth optional embodiment of the data processing method provided by the embodiment of the present invention may further include:
当检测到所述故障物理层通道的故障消失后 ,将所述映射表中所述故障消 本发明实施例中, 当检测到之前存在故障的通道号为 3的物理层通道的故 障消失后, 将映射表中通道号 3对应的状态信息修改为 "待用", 参阅表 6进行 理解: When it is detected that the fault of the fault physical layer channel disappears, the fault in the mapping table is eliminated. In the embodiment of the present invention, when the physical layer channel with the channel number 3 having the fault before is detected, After the barrier disappears, modify the status information corresponding to channel number 3 in the mapping table to "standby", see Table 6 for understanding:
表 6: 调整后的映射表  Table 6: Adjusted Mapping Table
Figure imgf000018_0001
Figure imgf000018_0001
可选地, 在上述图 2对应的实施例及图 2对应的任一可选实施例的基石出上, 本发明实施例提供的数据处理的方法的第九个可选实施例中,所述向所述业务 标识对应的 MAC数据帧比特流对应的物理层通道 , 发送对应的 MAC数据帧比 特流的步骤之前, 所述方法还可以包括:  Optionally, in the ninth optional embodiment of the data processing method provided by the embodiment of the present invention, in the foregoing embodiment of FIG. 2 corresponding to the embodiment of FIG. Before the step of transmitting the corresponding MAC data frame bit stream to the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, the method may further include:
将所述业务标识对应的 MAC数据帧比特流中的非空闲码块都转换为数据 码块;  Converting, in the MAC data frame bit stream corresponding to the service identifier, a non-idle code block into a data code block;
将所述业务标识对应的 MAC数据帧比特流中的数据码块划分为至少两个 数据码串, 所述至少两个数据码串中的每个数据码串包含至少一个数据码块; 对应的 , 所述向所述业务标识对应的 MAC数据帧比特流对应的物理层通 道, 发送对应的 MAC数据帧比特流, 包括:  And dividing a data code block in the MAC data frame bit stream corresponding to the service identifier into at least two data code sequences, where each of the at least two data code strings includes at least one data code block; And sending, to the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, a corresponding MAC data frame bit stream, including:
向所述业务标识对应的 MAC数据帧比特流对应的物理层通道依次发送所 述每个数据码串, 并轮循发送所述每个数据码串中的数据码块,且在发送所述 每个数据码串前或后, 向所述业务标识对应的 MAC数据帧比特流对应的物理 层通道中发送开始码块和结束码块中的至少一个, 同时删除所述 MAC数据帧 比特流中相同数量的空闲码块 ,并在所述开始码块和所述结束码块中的至少一 个上写入所述 MAC数据帧比特流的业务标识和承载所述数据码块的物理层通 道的通道号。 And transmitting, to the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, each of the data code strings, and transmitting the data code blocks in each of the data code strings in a round robin manner, and transmitting the Before or after the data code string, transmitting at least one of a start code block and an end code block to a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, and deleting the same in the MAC data frame bit stream a number of idle code blocks, and at least one of the start code block and the end code block The service identifier of the MAC data frame bit stream and the channel number of the physical layer channel carrying the data code block.
本发明实施例中, 每个 MAC数据帧比特流中的非空闲码块都可以转换为 64bit码块中的数据码块,可以将数据码块分成等间隔的数据码串,通常一个数 据码串包含 1024个数据码块, 当然, 本发明实施例中对数据码串中数据码块的 数据不做限定, 可以为 1个或者艮多个。  In the embodiment of the present invention, a non-idle code block in each MAC data frame bit stream can be converted into a data code block in a 64-bit code block, and the data code block can be divided into equally spaced data code strings, usually one data code string. 1024 data code blocks are included. Of course, in the embodiment of the present invention, the data of the data code block in the data code string is not limited, and may be one or more.
当业务标识对应多个物理层通道时,要先向每个物理层通道中发送一个开 始码块, 然后再轮循发送一个数据码块中的数据码块,待一个数据码串中的数 据码块都发送完成, 可以向每个物理层通道中发送一个结束码块,也可以只发 送开始码块不发送结束码块, 或者只发送结束码块不发送开始码块,发送开始 码块或者结束码块时, 需要删除相同数量的空闲码块, 以保证 MAC数据帧比 特流的长度。  When the service identifier corresponds to multiple physical layer channels, a start code block is first sent to each physical layer channel, and then the data code block in one data code block is sent in a round robin, and the data code in a data code string is waited for. After the block is sent, an end code block can be sent to each physical layer channel, or only the start code block can be sent without sending the end code block, or only the end code block can be sent without sending the start code block, and the start code block can be sent or ended. When the code block is used, the same number of idle code blocks need to be deleted to ensure the length of the bit stream of the MAC data frame.
在开始码块或者结束码块中的至少一个上写入开始码块或者结束码块中 的至少一个所关联的数据码块所属的 MAC数据帧比特流的业务标识和承载数 据码块的通道号。  Transmitting, in at least one of the start code block or the end code block, a service identifier of a MAC data frame bitstream to which the data code block associated with at least one of the start code block or the end code block belongs and a channel number of the bearer data code block .
如: 业务标识 1对应通道号为 1、 2、 3的物理层通道, 可以向通道 1、 2、 3 中分别发送一个开始码块, 同时删除 3个空闲 (IDEL )码块, 在通道号 1的开 始码块中写入业务标识 1和通道号 1 , 在通道号 2的开始码块中写入业务标识 1 和通道号 2,在通道号 3的开始码块中写入业务标识 1和通道号 3 , 然后开始轮循 发送一个数据码串的数据码块,假设给数据码块做了编号, 那么可以按照数据 码块 1送入通道 1 , 数据码块 2送入通道 2, 数据码块 3送入通道 3 , 数据码块 4送 入通道 1 , 依次类推的轮循顺序发送数据码块, 直到该数据码串包含的数据码 块全部发送完毕, 然后向通道 1、 2、 3中分别发送一个结束码块, 同时删除 3 个空闲码块。  For example, service identifier 1 corresponds to the physical layer channel with channel numbers 1, 2, and 3. You can send a start code block to channels 1, 2, and 3, and delete 3 idle (IDEL) code blocks at channel number 1. Write service identifier 1 and channel number 1 in the start code block, write service identifier 1 and channel number 2 in the start code block of channel number 2, and write service identifier 1 and channel in the start code block of channel number 3. No. 3, and then start to transmit a data code block of a data code string. If the data code block is numbered, it can be sent to channel 1 according to data code block 1, and data block 2 is sent to channel 2, and the data code block is sent. 3 is sent to channel 3, data code block 4 is sent to channel 1, and the data code block is sequentially transmitted in a sequential manner until the data code block included in the data code string is completely transmitted, and then is respectively sent to channels 1, 2, and 3 Send an end code block and delete 3 free code blocks at the same time.
可选地, 在上述图 2对应的第九个可选实施例的基础上, 本发明实施例提 供的数据处理的方法的第十个可选实施例还可以包括:  Optionally, the ninth optional embodiment of the data processing method provided by the embodiment of the present invention may further include:
当数据码块全部发送完毕后, 发送剩余的空闲码块。  After all the data code blocks have been transmitted, the remaining free code blocks are transmitted.
参阅图 3 , 本发明实施例提供的一种数据处理的方法的另一实施例包括: 201、 数据汇聚装置从多个物理层通道接收数据码块, 以及与所述数据码 块关联的开始码块和结束码块中的至少一个。 Referring to FIG. 3, another embodiment of a data processing method provided by an embodiment of the present invention includes: 201. The data aggregation device receives a data code block from the plurality of physical layer channels, and at least one of a start code block and an end code block associated with the data code block.
数据汇聚装置从多个物理层通道接收数据码块, 开始码块和结束码块, 或 者接收数据码块和开始码块, 或者接收数据码块和结束码块。  The data sinking device receives the data code block from the plurality of physical layer channels, starts the code block and the end code block, or receives the data code block and the start code block, or receives the data code block and the end code block.
在数据分发装置端,开始码块和结束码块的至少一个中包含所述数据码块 所属的 MAC数据帧比特流的业务标识和接收所述数据码块的物理层通道的通 道号。  At the data distribution apparatus side, at least one of the start code block and the end code block includes a service identifier of a MAC data frame bit stream to which the data code block belongs and a channel number of a physical layer channel receiving the data code block.
每个开始码块和结束码块间的数据码块属于同一个 MAC数据帧比特流, 通过业务标识和通道号关联。  The data code block between each start code block and the end code block belongs to the same MAC data frame bit stream, and is associated by the service identifier and the channel number.
202、 数据汇聚装置从所述开始码块和所述结束码块中的至少一个中读取 业务标识和通道号, 所述业务标识为所述关联的数据码块所属的 MAC数据帧 比特流的业务标识, 所述通道号为传输所述数据码块的物理层通道的通道号。  202. The data convergence device reads a service identifier and a channel number from at least one of the start code block and the end code block, where the service identifier is a MAC data frame bit stream to which the associated data code block belongs. a service identifier, where the channel number is a channel number of a physical layer channel that transmits the data code block.
203、 数据汇聚装置根据所述业务标识, 对齐从不同通道号的物理层通道 中接收的所述数据码块。  203. The data aggregation device aligns the data code blocks received from physical layer channels of different channel numbers according to the service identifier.
假如从三个结束码块中读取了业务标识 1、通道号 1 ,业务标识 1、通道号 2, 业务标识 1、 通道号 3 , 那么就可以将通道号为 1、 2、 3三个通道中接收的数据 码块对齐,数据分发装置与数据汇聚装置的协议是预先设置好的, 如果数据分 发装置釆用轮循的方式发送数据码块,那么在数据汇聚端则按照轮循的顺序对 齐数据码块, 对齐即为: 将数据码块按照顺序排列。  If the service identifier 1, channel number 1, service number 1, channel number 2, service identifier 1, and channel number 3 are read from the three end code blocks, then the channel number can be 1, 2, and 3 channels. The data block received in the alignment is aligned, and the protocol of the data distribution device and the data aggregation device is preset. If the data distribution device transmits the data code block in a round robin manner, the data convergence end is aligned in the order of the round robin The data code block, the alignment is: The data code blocks are arranged in order.
例如: 从通道 1中接收了数据码块 1 , 从通道 2中接收了数据码块 2, 从通道 For example: Data block 1 is received from channel 1, and data block 2 is received from channel 2, slave channel
3中接收了数据码块 3 , 从通道 1中接收了数据码块 4, 那么就将数据码块 1、 2、 3、 4按顺序连接好, 依次类推, 如果有 1024个数据码块, 从数据码块 1到数据 码块 1024, 即实现了数据码块的对齐。 3 receives the data code block 3, receives the data code block 4 from the channel 1, then connects the data code blocks 1, 2, 3, 4 in order, and so on. If there are 1024 data code blocks, Data block 1 to data block 1024, that is, the alignment of the data block is achieved.
204、 数据汇聚装置恢复所述业务标识对应的 MAC数据帧比特流。  204. The data aggregation device recovers a MAC data frame bitstream corresponding to the service identifier.
本发明实施例中恢复 MAC数据帧比特流即将每个数据码串按照顺序排列 好。  In the embodiment of the present invention, the MAC data frame bit stream is restored, and each data code string is arranged in order.
当有多个 MAC数据帧比特流时, 还可以将多个 MAC数据帧比特流混合在 一起。 本发明实施例中,从多个物理层通道接收数据码块, 以及与所述数据码块 关联的开始码块和结束码块中的至少一个;从所述开始码块和所述结束码块中 的至少一个中读取业务标识和通道号,所述业务标识为所述关联的数据码块所 属的 MAC数据帧比特流的业务标识, 所述通道号为传输所述数据码块的物理 层通道的通道号; 根据所述业务标识,对齐从不同通道号的物理层通道中接收 的所述数据码块; 恢复所述业务标识对应的 MAC数据帧比特流。 与现有技术 相比, 本发明实施例中, 按照通道号和业务标识对齐 MAC数据帧比特流, 可 以降低数据数据处理的复杂度, 提供数据数据处理的效率。 When there are multiple MAC data frame bit streams, multiple MAC data frame bit streams can also be mixed together. In an embodiment of the present invention, a data code block is received from a plurality of physical layer channels, and at least one of a start code block and an end code block associated with the data code block; and the start code block and the end code block are The service identifier and the channel number are read in at least one of the service identifiers, and the service identifier is a service identifier of a MAC data frame bitstream to which the associated data code block belongs, and the channel number is a physical layer that transmits the data code block. Channel number of the channel; aligning the data code blocks received from physical layer channels of different channel numbers according to the service identifier; recovering a MAC data frame bit stream corresponding to the service identifier. Compared with the prior art, in the embodiment of the present invention, aligning the MAC data frame bit stream according to the channel number and the service identifier can reduce the complexity of data data processing and provide efficiency of data data processing.
可选地, 在上述图 3对应的实施例的基石出上, 本发明实施例提供的数据的 处理方法的一可选实施例中,  Optionally, in an optional embodiment of the data processing method provided by the embodiment of the present invention, in an optional embodiment of the foregoing embodiment,
所述根据所述业务标识 ,对齐从不同通道号的物理层通道中接收的所述数 据码块, 可以包括:  The arranging the data code blocks received from the physical layer channels of different channel numbers according to the service identifier may include:
根据所述业务标识和所述通道号, 对齐包含所述业务标识对应的 MAC数 据帧比特流的至少一个数据码块的数据码串;  And aligning, according to the service identifier and the channel number, a data code string of at least one data code block that includes a MAC data frame bit stream corresponding to the service identifier;
对应的, 所述恢复所述业务标识对应的 MAC数据帧比特流, 可以包括: 按照数据码串的接收顺序, 恢复所述业务标识对应的 MAC数据帧比特流。 本发明实施例中,对齐的过程可以为数据码串的对齐过程, 一个数据码串 中包含多个数据码块, 例如: 从通道 1中接收了数据码块 1 , 从通道 2中接收了 数据码块 2, 从通道 3中接收了数据码块 3 , 从通道 1中接收了数据码块 4, 那么 就将数据码块 1、 2、 3、 4按顺序连接好, 依次类推, 如果数据码串有 1024个数 据码块, 从数据码块 1到数据码块 1024, 即实现了对齐了数据码串中的数据码 块。  Correspondingly, the restoring the MAC data frame bit stream corresponding to the service identifier may include: recovering a MAC data frame bit stream corresponding to the service identifier according to a receiving sequence of the data code string. In the embodiment of the present invention, the process of alignment may be an alignment process of data code strings, and a data code string includes multiple data code blocks, for example: data block 1 is received from channel 1, and data is received from channel 2. Code block 2, receiving data code block 3 from channel 3, and receiving data code block 4 from channel 1, then connecting data code blocks 1, 2, 3, 4 in order, and so on, if data code The string has 1024 data code blocks, from data code block 1 to data code block 1024, that is, the data code blocks in the data code string are aligned.
可选地, 在上述图 3对应的实施例的基石出上, 本发明实施例提供的数据的 处理方法的第二个可选实施例中,  Optionally, in the second optional embodiment of the data processing method provided by the embodiment of the present invention,
所述根据所述业务标识,对齐从不同通道号的物理层通道中接收的所述数 据码块, 可以包括:  The arranging the data code blocks received from the physical layer channels of different channel numbers according to the service identifier may include:
将所述业务标识和与所述业务标识关联的所述物理层通道的通道号,写入 业务标识与物理层通道的通道号的映射表中; 按照所述映射表中写入的所述业务标识与所述物理层通道的通道号的映 射关系, 对齐所述业务标识对应的 MAC数据帧比特流的数据码块。 Transmitting the service identifier and the channel number of the physical layer channel associated with the service identifier into a mapping table of a service identifier and a channel number of a physical layer channel; And aligning the data code blocks of the MAC data frame bit stream corresponding to the service identifier according to the mapping relationship between the service identifier and the channel number of the physical layer channel that are written in the mapping table.
本发明实施例中, 可以在读取业务标识和对应的物理层通道的通道号后, 先将业务标识和对应的物理层通道的通道号写入映射表, 恢复映射表后,再对 齐数据码块。  In the embodiment of the present invention, after the service identifier and the channel number of the corresponding physical layer channel are read, the service identifier and the channel number of the corresponding physical layer channel are first written into the mapping table, and the mapping table is restored, and then the data code is aligned. Piece.
参阅图 4,图 4为数据分发装置将转换后的数据码块插入开始码块和结束码 块后, 分别通过物理层通道 1至物理层通道 N发送, N大于 1 , 数据分发装置在 发送数据码块的过程中先向物理层通道 1发送一个开始码块, 在该开始码块中 写入数据码块所属的 MAC数据帧比特流的业务标识 1和通道号 1 , 釆用这样的 方式, 向接下来的物理层通道发送开始码块, 直到向物理层通道 N发送开始码 块, 在该开始码块中写入数据码块所属的 MAC数据帧比特流的业务标识 1和通 道号 N。  Referring to FIG. 4, FIG. 4 is a data distribution apparatus, after inserting the converted data code block into the start code block and the end code block, respectively, transmitting through the physical layer channel 1 to the physical layer channel N, where N is greater than 1, and the data distribution device is transmitting data. In the process of the code block, a start code block is first sent to the physical layer channel 1, and the service identifier 1 and the channel number 1 of the MAC data frame bit stream to which the data code block belongs are written in the start code block, in this manner, The start code block is transmitted to the next physical layer channel until a start code block is transmitted to the physical layer channel N, and the service identifier 1 and the channel number N of the MAC data frame bit stream to which the data code block belongs are written in the start code block.
然后按照数据码块的顺序轮循向通道 1到 N中发送数据码块, 一个数据码 串的数据码块发送完毕后, 向物理层通道 1到 N分别发生一个结束码块。  Then, in the order of the data code block, the data code block is transmitted to the channels 1 to N. After the data code block of one data code string is transmitted, an end code block is respectively generated to the physical layer channels 1 to N.
本实施例中,还可以不在开始码块中写入业务标识和通道号的信息,在结 束码块中写入业务标识和通道号的信息即可。或者每个物理层通道中只发送开 始码块或者结束码块中的一个即可。  In this embodiment, the information of the service identifier and the channel number may not be written in the start code block, and the information of the service identifier and the channel number may be written in the end code block. Or only one of the start code block or the end code block can be sent in each physical layer channel.
参阅图 5, 数据汇聚装置从物理层通道 1至物理层通道 N接收到开始码块、 数据码块和结束码块后,识别开始码块或者结束码块,按照预先设置的与数据 分发装置对等的协议,读取开始码块和结束码块中至少一个中写入的业务标识 和对应的通道号,按照业务标识和通道号对齐同一业务标识、 不同通道号的数 据码块。  Referring to FIG. 5, after receiving the start code block, the data code block, and the end code block from the physical layer channel 1 to the physical layer channel N, the data aggregation device identifies the start code block or the end code block according to a preset pair with the data distribution device. The protocol of the first service reads the service identifier and the corresponding channel number written in at least one of the start code block and the end code block, and aligns the data code blocks of the same service identifier and different channel numbers according to the service identifier and the channel number.
本发明实施例中,对齐的过程可以为数据码串的对齐过程, 一个数据码串 中包含多个数据码块, 例如: 从通道 1中接收了数据码块 1 , 从通道 2中接收了 数据码块 2, 从通道 N中接收了数据码块 3 , 从通道 1中接收了数据码块 4, 那么 就将数据码块 1、 2、 3、 4按顺序连接好, 依次类推, 如果数据码串有 1024个数 据码块, 从数据码块 1到数据码块 1024, 即实现了对齐了数据码串中的数据码 块。 参阅图 6, 本发明实施例提供的一种数据分发装置的一实施例包括: 第一接收单元 301 , 用于接收携带有业务标识的媒介接入控制 MAC数据帧 比特流; In the embodiment of the present invention, the process of alignment may be an alignment process of data code strings, and a data code string includes multiple data code blocks, for example: data block 1 is received from channel 1, and data is received from channel 2. Code block 2, receiving the data code block 3 from the channel N, and receiving the data code block 4 from the channel 1, then connecting the data code blocks 1, 2, 3, 4 in order, and so on, if the data code The string has 1024 data code blocks, from data code block 1 to data code block 1024, that is, the data code blocks in the data code string are aligned. Referring to FIG. 6, an embodiment of a data distribution apparatus according to an embodiment of the present invention includes: a first receiving unit 301, configured to receive a medium access control MAC data frame bitstream carrying a service identifier;
确定单元 302, 用于根据所述第一接收单元 301接收到的业务标识对应的 MAC数据帧比特流的速率, 确定所述业务标识对应的 MAC数据帧比特流对应 的物理层通道;  a determining unit 302, configured to determine, according to a rate of the MAC data frame bitstream corresponding to the service identifier received by the first receiving unit 301, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier;
发送单元 303 , 用于向所述确定单元 302确定的业务标识对应的 MAC数据 帧比特流对应的物理层通道, 发送对应的 MAC数据帧比特流。  The sending unit 303 is configured to send a corresponding MAC data frame bit stream to the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier determined by the determining unit 302.
本发明实施例中, 第一接收单元 301接收携带有业务标识的媒介接入控制 MAC数据帧比特流; 确定单元 302根据所述第一接收单元 301接收到的业务标 识对应的 MAC数据帧比特流的速率 , 确定所述业务标识对应的 MAC数据帧比 特流对应的物理层通道;发送单元 303向所述确定单元 302确定的业务标识对应 的 MAC数据帧比特流对应的物理层通道, 发送对应的 MAC数据帧比特流。 与 现有技术相比, 本发明实施例提供的数据分发装置可以降低数据处理的复杂 度, 提高数据处理的效率。  In the embodiment of the present invention, the first receiving unit 301 receives the medium access control MAC data frame bit stream carrying the service identifier; the determining unit 302 is configured according to the MAC data frame bit stream corresponding to the service identifier received by the first receiving unit 301. Rate, the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier is determined; the sending unit 303 sends the corresponding physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier determined by the determining unit 302 MAC data frame bit stream. Compared with the prior art, the data distribution apparatus provided by the embodiment of the invention can reduce the complexity of data processing and improve the efficiency of data processing.
在上述图 6对应的实施例的基石出上, 参阅图 7, 本发明实施例提供的数据分 发装置的另一实施例中, 所述确定单元 302包括:  In another embodiment of the data distribution device according to the embodiment of the present invention, the determining unit 302 includes:
第一查找子单元 3021 , 用于根据所述业务标识,从预存储的所述业务标识 与物理层通道的通道号的映射表中查找所述业务标识对应的 MAC数据帧比特 流对应的物理层通道;  a first locating subunit 3021, configured to search, according to the service identifier, a physical layer corresponding to a MAC data frame bitstream corresponding to the service identifier from a mapping table of the pre-stored service identifier and a channel number of a physical layer channel. aisle;
第一确定子单元 3022, 用于当所述业务标识对应的 MAC数据帧比特流的 速率不大于所述第一查找子单元 3021查找到的业务标识对应的 MAC数据帧比 特流对应的物理层通道的总承载量时,将所述业务标识对应的物理层通道确定 为所述业务标识对应的 MAC数据帧比特流对应的物理层通道。  The first determining sub-unit 3022 is configured to: when the rate of the MAC data frame bit stream corresponding to the service identifier is not greater than the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier found by the first searching sub-unit 3021 The physical layer channel corresponding to the service identifier is determined as the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
在上述图 6对应的实施例的基石出上, 参阅图 8, 本发明实施例提供的数据分 发装置的另一实施例中, 所述确定单元 302包括:  In another embodiment of the data distribution device according to the embodiment of the present invention, the determining unit 302 includes:
第二查找子单元 3023 , 用于根据所述业务标识,从预存储的所述业务标识 与物理层通道的通道号的映射表中查找所述业务标识对应的 MAC数据帧比特 流对应的物理层通道; The second search subunit 3023 is configured to search, according to the service identifier, a MAC data frame bit corresponding to the service identifier from a mapping table of the pre-stored service identifier and a channel number of a physical layer channel. The physical layer channel corresponding to the stream;
第一选择子单元 3024, 用于当所述业务标识对应的 MAC数据帧比特流的 速率大于所述第二查找子单元 3023查找到的业务标识对应的 MAC数据帧比特 流对应的物理层通道的总承载量时,从未被使用的可用物理层通道中选择至少 一个物理层通道,所述至少一个物理层通道的总承载量与所述业务标识对应的 MAC数据帧比特流对应的物理层通道的总承载量之和不小于所述业务标识对 应的 MAC数据帧比特流的速率;  The first selection sub-unit 3024 is configured to: when the rate of the MAC data frame bit stream corresponding to the service identifier is greater than the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier found by the second search sub-unit 3023 At least one physical layer channel is selected from the available physical layer channels that are not used, and the total carrying capacity of the at least one physical layer channel is a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier. The sum of the total bearers is not less than the rate of the MAC data frame bitstream corresponding to the service identifier;
第二确定子单元 3025 ,用于将所述第一选择子单元 3024选择的所述至少一 个物理层通道和所述映射表中所业务标识对应的物理层通道确定为所述业务 标识对应的 MAC数据帧比特流对应的物理层通道。  a second determining sub-unit 3025, configured to determine, by the first selection sub-unit 3024, the at least one physical layer channel and the physical layer channel corresponding to the service identifier in the mapping table as a MAC corresponding to the service identifier. The physical layer channel corresponding to the data frame bit stream.
在上述图 8对应的实施例的基石出上, 参阅图 9, 本发明实施例提供的数据分 发装置的另一实施例中, 所述确定单元还包括:  In another embodiment of the data distribution device according to the embodiment of the present invention, the determining unit further includes:
关联子单元 3026,用于将所述第一选择子单元 3024选择的所述至少一个物 理层通道的通道号与所述业务标识进行关联;  The association subunit 3026 is configured to associate a channel number of the at least one physical layer channel selected by the first selection subunit 3024 with the service identifier;
存储子单元 3027,用于将所述关联子单元 3026关联后的所述至少一个物理 层通道的通道号与所述业务标识存储到所述映射表中。  The storage subunit 3027 is configured to store the channel number of the at least one physical layer channel associated with the associated subunit 3026 and the service identifier into the mapping table.
在上述图 7对应的实施例的基础上, 本发明实施例提供的数据分发装置的 另一实施例中,  In another embodiment of the data distribution apparatus provided by the embodiment of the present invention, based on the embodiment corresponding to FIG.
所述第一确定子单元 3022, 用于当所述业务标识对应至少两个物理层通 道,且所述至少两个物理层通道中的至少一个物理层通道的总承载量大于所述 业务标识对应的 MAC数据帧比特流的速率时 , 确定所述至少一个物理层通道 中总承载量与所述业务标识对应的 MAC数据帧比特流的速率的差值最小的至 少一个物理层通道作为所述业务标识对应的 MAC数据帧比特流对应的物理层 通道。  The first determining sub-unit 3022 is configured to: when the service identifier corresponds to the at least two physical layer channels, and the total carrying capacity of the at least one physical layer channel of the at least two physical layer channels is greater than the service identifier As the rate of the MAC data frame bit stream, determining at least one physical layer channel having the smallest difference between the total bearer amount in the at least one physical layer channel and the MAC data frame bit stream corresponding to the service identifier as the service Identify the physical layer channel corresponding to the corresponding MAC data frame bit stream.
在上述图 7对应的实施例的基石出上, 参阅图 10, 本发明实施例提供的数据 分发装置的另一实施例中, 所述确定单元 302还包括:  In another embodiment of the data distribution apparatus provided in the embodiment of the present invention, the determining unit 302 further includes:
标记子单元 3028,用于将所述至少两个物理层通道中除被选择的总承载量 与所述业务标识对应的 MAC数据帧比特流的速率的差值最小的至少一个物理 在上述图 6对应的实施例的基础上, 参阅图 11 , 本发明实施例提供的数据 分发装置的另一实施例中, 所述装置 30还包括: a marking subunit 3028, configured to: at least one physical medium of the at least two physical layer channels that has a minimum difference between a selected total carrying capacity and a rate of a MAC data frame bitstream corresponding to the service identifier. On the basis of the embodiment corresponding to FIG. 6 above, referring to FIG. 11, in another embodiment of the data distribution apparatus provided by the embodiment of the present invention, the apparatus 30 further includes:
检测单元 304, 用于检测所有物理层通道;  a detecting unit 304, configured to detect all physical layer channels;
所述确定单元 302,  The determining unit 302,
故障物理层通道; Fault physical layer channel;
关联单元 305 ,  Association unit 305,
信息与所述故障物理层通道的通道号进行关联; Information is associated with a channel number of the fault physical layer channel;
存储单元 306,  Storage unit 306,
障状态信息与所述故障物理层通道的通道号存储到所述映射表中。 The barrier status information and the channel number of the fault physical layer channel are stored in the mapping table.
在上述图 11对应的实施例的基石出上, 参阅图 12, 本发明实施例提供的数据 分发装置的另一实施例中, 所述装置 30还包括:  In another embodiment of the data distribution apparatus provided by the embodiment of the present invention, the apparatus 30 further includes:
选择单元 307, 用于当至少一个所述故障物理层通道的通道号与业务标识 关联时,从未被使用的所述可用物理层通道中选择总承载量不小于所述至少一 个所述故障物理层通道总承载量的至少一个可用物理层通道,并将选择的所述 至少一个可用物理层通道的通道号与所述业务标识关联,并将关联后的所述至 少一个可用物理层通道的通道号与所述业务标识存储到所述映射表中;  The selecting unit 307 is configured to: when the channel number of the at least one fault physical layer channel is associated with the service identifier, select a total bearer from the unused physical layer channels that is not used to be not less than the at least one fault physical At least one available physical layer channel of the total channel capacity of the layer channel, and associates the channel number of the selected at least one available physical layer channel with the service identifier, and associates the channel of the at least one available physical layer channel And the service identifier is stored in the mapping table;
激活单元 308,用于激活所述选择单元 307选择的所述至少一个可用物理层 通道。  The activation unit 308 is configured to activate the at least one available physical layer channel selected by the selection unit 307.
在上述图 11对应的实施例的基石出上, 参阅图 13 , 本发明实施例提供的数据 分发装置的另一实施例中, 所述装置 30还包括:  In another embodiment of the data distribution apparatus provided by the embodiment of the present invention, the apparatus 30 further includes:
修改单元 309,用于当所述检测单元 304检测到所述故障物理层通道的故障 故障状态信息修改为待用状态信息。  The modifying unit 309 is configured to: when the detecting unit 304 detects that the fault physical layer channel is faulty, the fault state information is modified to the inactive state information.
在上述图 6对应的实施例的基石出上, 参阅图 14, 本发明实施例提供的数据 分发装置的另一实施例中, 所述装置 30还包括:  In another embodiment of the data distribution apparatus provided by the embodiment of the present invention, the apparatus 30 further includes:
码块转换单元 310 , 用于将所述业务标识对应的 MAC数据帧比特流中的非 空闲码块都转换为数据码块; 划分单元 311 , 用于将所述业务标识对应的 MAC数据帧比特流中的数据码 块划分为至少两个数据码串,所述至少两个数据码串中的每个数据码串包含至 少一个数据码块; The code block conversion unit 310 is configured to convert all non-idle code blocks in the MAC data frame bit stream corresponding to the service identifier into data code blocks; The dividing unit 311 is configured to divide the data code block in the MAC data frame bit stream corresponding to the service identifier into at least two data code strings, and each of the at least two data code strings includes at least one Data block
所述发送单元 303, 用于向所述业务标识对应的 MAC数据帧比特流对应的 物理层通道依次发送所述每个数据码串,并轮循发送所述每个数据码串中的数 据码块, 且在发送所述每个数据码串前或后, 向所述业务标识对应的 MAC数 据帧比特流对应的物理层通道中发送开始码块和结束码块中的至少一个,并在 所述开始码块和所述结束码块中的至少一个上写入所述 MAC数据帧比特流的 业务标识和承载所述数据码块的物理层通道的通道号。  The sending unit 303 is configured to sequentially send the data code sequence to a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, and sequentially send the data code in each data code string Blocking, and transmitting at least one of a start code block and an end code block to a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier before or after sending each data code string, and Transmitting a service identifier of the MAC data frame bitstream and a channel number of a physical layer channel carrying the data code block on at least one of a start code block and the end code block.
删除单元 312, 用于当每次发送所述开始码块和所述结束码块中的至少一 个时, 删除所述 MAC数据帧比特流中相同数量的空闲码块。  The deleting unit 312 is configured to delete the same number of idle code blocks in the bit stream of the MAC data frame each time at least one of the start code block and the end code block is sent.
参阅图 15 , 本发明实施例提供的一种数据汇聚装置的一实施例包括: 第二接收单元 401 , 用于从多个物理层通道接收数据码块, 以及与所述数 据码块关联的开始码块和结束码块中的至少一个;  Referring to FIG. 15, an embodiment of a data convergence apparatus according to an embodiment of the present invention includes: a second receiving unit 401, configured to receive a data code block from multiple physical layer channels, and start with the data code block. At least one of a code block and an end code block;
读取单元 402,用于从所述第二接收单元 401接收的开始码块和所述结束码 块中的至少一个中读取业务标识和通道号,所述业务标识为所述关联的数据码 块所属的 MAC数据帧比特流的业务标识, 所述通道号为传输所述数据码块的 物理层通道的通道号;  The reading unit 402 is configured to read a service identifier and a channel number from at least one of a start code block and the end code block received by the second receiving unit 401, where the service identifier is the associated data code a service identifier of a MAC data frame bitstream to which the block belongs, where the channel number is a channel number of a physical layer channel that transmits the data code block;
对齐单元 403 , 用于根据所述读取单元 402读取的业务标识,对齐从不同通 道号的物理层通道中接收的所述数据码块;  An aligning unit 403, configured to align the data code blocks received from physical layer channels of different channel numbers according to the service identifier read by the reading unit 402;
恢复单元 404, 用于在所述对齐单元 403对齐数据码块后, 恢复所述业务标 识对应的 MAC数据帧比特流。  The recovery unit 404 is configured to restore the MAC data frame bit stream corresponding to the service identifier after the alignment unit 403 aligns the data code block.
本发明实施例中, 第二接收单元 401从多个物理层通道接收数据码块, 以 及开始码块和结束码块中的至少一个; 读取单元 402从所述第二接收单元 401 接收的开始码块和所述结束码块中的至少一个中读取业务标识和通道号,所述 业务标识为所述关联的数据码块所属的 MAC数据帧比特流的业务标识, 所述 通道号为传输所述数据码块的物理层通道的通道号; 对齐单元 403根据所述读 取单元 402读取的业务标识, 对齐从不同通道号的物理层通道中接收的所述数 据码块; 恢复单元 404在所述对齐单元 403对齐数据码块后, 恢复所述业务标识 对应的 MAC数据帧比特流。 与现有技术相比, 本发明实施例提供的数据汇聚 装置可以降低数据处理的复杂度, 提高数据处理的效率。 In the embodiment of the present invention, the second receiving unit 401 receives the data code block from the plurality of physical layer channels, and at least one of the start code block and the end code block; and the reading unit 402 starts from the second receiving unit 401. The service identifier and the channel number are read in at least one of the code block and the end code block, where the service identifier is a service identifier of a MAC data frame bit stream to which the associated data code block belongs, and the channel number is a transmission a channel number of a physical layer channel of the data code block; the aligning unit 403 aligns the numbers received from physical layer channels of different channel numbers according to the service identifier read by the reading unit 402 According to the code block, the recovery unit 404 restores the MAC data frame bit stream corresponding to the service identifier after the alignment unit 403 aligns the data code block. Compared with the prior art, the data convergence device provided by the embodiment of the present invention can reduce the complexity of data processing and improve the efficiency of data processing.
在上述图 15对应的实施例的基石出上,本发明实施例提供的数据汇聚装置的 一实施例中,  In an embodiment of the data convergence device provided by the embodiment of the present invention, in an embodiment of the embodiment of the present invention,
所述对齐单元 403 , 用于根据所述业务标识和所述通道号, 对齐包含所述 业务标识对应的 MAC数据帧比特流的至少一个数据码块的数据码串;  The aligning unit 403 is configured to align, according to the service identifier and the channel number, a data code string of at least one data code block that includes a MAC data frame bit stream corresponding to the service identifier;
所述恢复单元 404, 用于按照数据码串的接收顺序, 恢复所述业务标识对 应的 MAC数据帧比特流。  The restoring unit 404 is configured to recover a MAC data frame bit stream corresponding to the service identifier according to a receiving sequence of the data code string.
在上述图 15对应的实施例的基石出上, 参阅图 16, 本发明实施例提供的数据 汇聚装置的一实施例中, 所述对齐单元 403包括:  In the embodiment of the data aggregation device according to the embodiment of the present invention, the alignment unit 403 includes:
写入子单元 4031 ,用于将所述业务标识和与所述业务标识关联的所述物理 层通道的通道号, 写入业务标识与物理层通道的通道号的映射表中;  a write subunit 4031, configured to write the service identifier and a channel number of the physical layer channel associated with the service identifier into a mapping table of a service identifier and a channel number of a physical layer channel;
对齐子单元 4032,用于按照所述写入子单元 4031在映射表中写入的所述业 务标识与所述物理层通道的通道号的映射关系, 对齐所述业务标识对应的 MAC数据帧比特流的数据码块。  The aligning sub-unit 4032 is configured to align the MAC data frame bits corresponding to the service identifier according to the mapping relationship between the service identifier written in the mapping table and the channel number of the physical layer channel in the mapping sub-unit 4031. The stream of data blocks.
参阅图 17, 本发明实施例提供的一种数据分发装置的一实施例包括: 第一 接收器 320、 第一发送器 330、 第一存储器 340和第一处理器 350,  Referring to FIG. 17, an embodiment of a data distribution apparatus according to an embodiment of the present invention includes: a first receiver 320, a first transmitter 330, a first memory 340, and a first processor 350.
第一接收器 320、第一发送器 330、第一存储器 340和第一处理器 350通过总 线或者其他方式连接;所述第一存储器存储有所述第一处理器执行数据分发过 程的程序;  The first receiver 320, the first transmitter 330, the first memory 340, and the first processor 350 are connected by a bus or other means; the first memory stores a program for the first processor to execute a data distribution process;
其中, 所述第一接收器 320 , 用于接收携带有业务标识的媒介接入控制 MAC数据帧比特流;  The first receiver 320 is configured to receive a medium access control MAC data frame bit stream carrying a service identifier.
所述第一处理器 350, 用于根据所述业务标识对应的 MAC数据帧比特流的 速率, 确定所述业务标识对应的 MAC数据帧比特流对应的物理层通道;  The first processor 350 is configured to determine, according to a rate of the MAC data frame bitstream corresponding to the service identifier, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier;
所述第一发送器 330, 用于向所述业务标识对应的 MAC数据帧比特流对应 的物理层通道, 发送对应的 MAC数据帧比特流。  The first transmitter 330 is configured to send a corresponding MAC data frame bitstream to a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier.
本发明一些实施例中, 所述第一处理器 350, 用于根据所述业务标识, 从 预存储的所述业务标识与物理层通道的通道号的映射表中查找所述业务标识 对应的 MAC数据帧比特流对应的物理层通道; 当所述业务标识对应的 MAC数 据帧比特流的速率不大于所述业务标识对应的 MAC数据帧比特流对应的物理 层通道的总承载量时,将所述业务标识对应的物理层通道确定为所述业务标识 对应的 MAC数据帧比特流对应的物理层通道。 In some embodiments of the present invention, the first processor 350 is configured to: according to the service identifier, a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier in the mapping table of the service identifier and the channel number of the physical layer channel; and the rate of the MAC data frame bit stream corresponding to the service identifier When the total carrying capacity of the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier is not greater than the physical layer channel corresponding to the service identifier, the physical layer corresponding to the MAC data frame bit stream corresponding to the service identifier is determined. Layer channel.
本发明一些实施例中, 所述第一处理器 350, 用于根据所述业务标识, 从 预存储的所述业务标识与物理层通道的通道号的映射表中查找所述业务标识 对应的 MAC数据帧比特流对应的物理层通道; 当所述业务标识对应的 MAC数 据帧比特流的速率大于所述业务标识对应的 MAC数据帧比特流对应的物理层 通道的总承载量时, 从未被使用的可用物理层通道中选择至少一个物理层通 道, 所述至少一个物理层通道的总承载量与所述业务标识对应的 MAC数据帧 比特流对应的物理层通道的总承载量之和不小于所述业务标识对应的 MAC数 据帧比特流的速率;将选择的所述至少一个物理层通道和所述映射表中所业务 标识对应的物理层通道确定为所述业务标识对应的 MAC数据帧比特流对应的 物理层通道。  In some embodiments of the present invention, the first processor 350 is configured to search, according to the service identifier, a MAC corresponding to the service identifier from a mapping table between the pre-stored service identifier and a channel number of a physical layer channel. a physical layer channel corresponding to the bit stream of the data frame; when the rate of the bit stream of the MAC data frame corresponding to the service identifier is greater than the total capacity of the physical layer channel corresponding to the bit stream of the MAC data frame corresponding to the service identifier, The at least one physical layer channel is selected from the available physical layer channels, and the total bearer of the at least one physical layer channel and the total carrying capacity of the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier are not less than Determining, by the service identifier, a rate of the MAC data frame bit stream corresponding to the service identifier, and selecting the selected at least one physical layer channel and the physical layer channel corresponding to the service identifier in the mapping table as the MAC data frame bit corresponding to the service identifier The physical layer channel corresponding to the stream.
本发明一些实施例中, 所述第一处理器 350, 还用于将选择的所述至少一 个物理层通道的通道号与所述业务标识进行关联,并将关联后的所述至少一个 物理层通道的通道号与所述业务标识存储到所述映射表中。  In some embodiments of the present invention, the first processor 350 is further configured to associate the channel number of the selected at least one physical layer channel with the service identifier, and associate the at least one physical layer. The channel number of the channel and the service identifier are stored in the mapping table.
本发明一些实施例中, 所述第一处理器 350, 用于当所述业务标识对应至 少两个物理层通道,且所述至少两个物理层通道中的至少一个物理层通道的总 承载量大于所述业务标识对应的 MAC数据帧比特流的速率时, 选择所述至少 一个物理层通道中总承载量与所述业务标识对应的 MAC数据帧比特流的速率 的差值最小的至少一个物理层通道作为所述业务标识对应的 MAC数据帧比特 流对应的物理层通道。  In some embodiments of the present invention, the first processor 350 is configured to: when the service identifier corresponds to at least two physical layer channels, and a total capacity of at least one physical layer channel of the at least two physical layer channels When the rate of the MAC data frame bit stream corresponding to the service identifier is greater than the at least one physical medium, the minimum difference between the total bearer and the MAC data frame bit stream corresponding to the service identifier is selected to be at least one physical The layer channel is a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
本发明一些实施例中, 所述第一处理器 350, 还用于将所述至少两个物理 层通道中除被选择的总承载量与所述业务标识对应的 MAC数据帧比特流的速 率的差值最小的至少一个物理层通道外的剩余物理层通道的使用状态标记为 未使用。 本发明一些实施例中, 所述第一处理器 350,还用于检测所有物理层通道, 确定所述所有物理层通道中的故障物理层通道;将所述故障物理层通道的故障 状态信息与所述故障物理层通道的通道号进行关联,并将关联后的所述故障物 理层通道的故障状态信息与所述故障物理层通道的通道号存储到所述映射表 中。 In some embodiments of the present invention, the first processor 350 is further configured to: in the at least two physical layer channels, the rate of the MAC data frame bit stream corresponding to the selected total bearer and the service identifier. The usage status of the remaining physical layer channels outside the at least one physical layer channel with the smallest difference is marked as unused. In some embodiments of the present invention, the first processor 350 is further configured to detect all physical layer channels, determine a fault physical layer channel in the all physical layer channels, and set fault state information of the fault physical layer channel with The channel number of the fault physical layer channel is associated, and the associated fault state information of the fault physical layer channel and the channel number of the fault physical layer channel are stored in the mapping table.
本发明一些实施例中, 所述第一处理器 350, 还用于当至少一个所述故障 物理层通道的通道号与业务标识关联时,从未被使用的所述可用物理层通道中 选择总承载量不小于所述至少一个所述故障物理层通道总承载量的至少一个 可用物理层通道,并将选择的所述至少一个可用物理层通道的通道号与所述业 务标识关联,并将关联后的所述至少一个可用物理层通道的通道号与所述业务 标识存储到所述映射表中; 激活选择的所述至少一个可用物理层通道。  In some embodiments of the present invention, the first processor 350 is further configured to: when the channel number of the at least one faulty physical layer channel is associated with the service identifier, select a total of the available physical layer channels that are not used. Carrying at least one available physical layer channel that is not less than the total bearer of the at least one physical layer of the faulty physical layer, and associating the channel number of the selected at least one available physical layer channel with the service identifier, and associating The channel number of the at least one available physical layer channel and the service identifier are stored in the mapping table; the selected at least one available physical layer channel is activated.
本发明一些实施例中, 所述第一处理器 350, 还用于当检测到所述故障物 的通道号对应的故障状态信息修改为待用状态信息。  In some embodiments of the present invention, the first processor 350 is further configured to: when the fault state information corresponding to the channel number of the faulty object is detected, is modified to the inactive state information.
本发明一些实施例中, 所述第一处理器 350, 还用于将所述业务标识对应 的 MAC数据帧比特流中的非空闲码块都转换为数据码块; 将所述业务标识对 应的 MAC数据帧比特流中的数据码块划分为至少两个数据码串, 所述至少两 个数据码串中的每个数据码串包含至少一个数据码块;  In some embodiments of the present invention, the first processor 350 is further configured to convert, into the data code block, the non-idle code blocks in the bitstream of the MAC data frame corresponding to the service identifier; The data code block in the bit stream of the MAC data frame is divided into at least two data code strings, and each of the at least two data code strings includes at least one data code block;
所述第一发送器 330, 用于向所述业务标识对应的 MAC数据帧比特流对应 的物理层通道依次发送所述每个数据码串,并轮循发送所述每个数据码串中的 数据码块, 且在发送所述每个数据码串前或后, 向所述业务标识对应的 MAC 在所述开始码块和所述结束码块中的至少一个上写入所述 MAC数据帧比特流 的业务标识和承载所述数据码块的物理层通道的通道号。  The first transmitter 330 is configured to sequentially send each data code string to a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, and sequentially send the data code string in the data sequence. a data code block, and before or after transmitting each data code string, writing, to the MAC corresponding to the service identifier, the MAC data frame on at least one of the start code block and the end code block The service identifier of the bitstream and the channel number of the physical layer channel carrying the data code block.
所述第一处理器 350, 还用于当每次发送所述开始码块和所述结束码块中 的至少一个时, 删除相同数量的空闲码块。  The first processor 350 is further configured to delete the same number of idle code blocks each time at least one of the start code block and the end code block is sent.
参阅图 18, 本发明实施例提供的一种数据分发装置的一实施例包括: 第二 接收器 420、 第二发送器 430、 第二存储器 440和第二处理器 450, 所述第二存储 器存储有所述第二处理器执行数据汇聚的程序; Referring to FIG. 18, an embodiment of a data distribution apparatus according to an embodiment of the present invention includes: a second receiver 420, a second transmitter 430, a second memory 440, and a second processor 450, where the second storage And storing a program for the second processor to perform data aggregation;
第二接收器 420、第二发送器 430、第二存储器 440和第二处理器 450通过总 线或者其他方式连接;  The second receiver 420, the second transmitter 430, the second memory 440, and the second processor 450 are connected by a bus or other means;
其中, 所述第二接收器 420, 用于从多个物理层通道接收数据码块, 以及 与所述数据码块关联的开始码块和结束码块中的至少一个;  The second receiver 420 is configured to receive a data code block from multiple physical layer channels, and at least one of a start code block and an end code block associated with the data code block;
所述第二处理器 450, 用于从所述开始码块和所述结束码块中的至少一个 中读取业务标识和通道号, 所述业务标识为所述关联的数据码块所属的 MAC 数据帧比特流的业务标识,所述通道号为传输所述数据码块的物理层通道的通 道号; 根据所述业务标识,对齐从不同通道号的物理层通道中接收的所述数据 码块; 恢复所述业务标识对应的 MAC数据帧比特流。  The second processor 450 is configured to read a service identifier and a channel number from at least one of the start code block and the end code block, where the service identifier is a MAC to which the associated data code block belongs. a service identifier of a data frame bitstream, where the channel number is a channel number of a physical layer channel that transmits the data code block; and the data code block received from a physical layer channel of a different channel number is aligned according to the service identifier And recovering the MAC data frame bit stream corresponding to the service identifier.
本发明一些实施例中, 所述第二处理器 450, 用于根据所述业务标识和所 述通道号, 对齐包含所述业务标识对应的 MAC数据帧比特流的至少一个数据 码块的数据码串, 按照数据码串的接收顺序, 恢复所述业务标识对应的 MAC 数据帧比特流。  In some embodiments of the present invention, the second processor 450 is configured to: according to the service identifier and the channel number, align a data code of at least one data code block that includes a MAC data frame bit stream corresponding to the service identifier. The string, according to the receiving sequence of the data code string, recovers the MAC data frame bit stream corresponding to the service identifier.
本发明一些实施例中, 所述第二处理器 450, 用于将所述业务标识和与所 述业务标识关联的所述物理层通道的通道号,写入业务标识与物理层通道的通 道号的映射表中;按照所述映射表中写入的所述业务标识与所述物理层通道的 通道号的映射关系, 对齐所述业务标识对应的 MAC数据帧比特流的数据码块。  In some embodiments of the present invention, the second processor 450 is configured to write the service identifier and the channel number of the physical layer channel associated with the service identifier to the channel number of the service identifier and the physical layer channel. In the mapping table, the data code block of the MAC data frame bit stream corresponding to the service identifier is aligned according to the mapping relationship between the service identifier and the channel number of the physical layer channel written in the mapping table.
参阅图 19, 本发明实施例提供的数据处理系统的一实施例包括: 数据分发 装置 30和数据汇聚装置 40,  Referring to FIG. 19, an embodiment of a data processing system according to an embodiment of the present invention includes: a data distribution device 30 and a data convergence device 40.
数据分发装置 30, 用于接收携带有业务标识的媒介接入控制 MAC数据帧 比特流; 根据所述业务标识对应的 MAC数据帧比特流的速率, 确定所述业务 标识对应的 MAC数据帧比特流对应的物理层通道; 向所述业务标识对应的 MAC数据帧比特流对应的物理层通道, 发送对应的 MAC数据帧比特流。  a data distribution device 30, configured to receive a media access control MAC data frame bitstream carrying a service identifier, and determine a MAC data frame bitstream corresponding to the service identifier according to a rate of a MAC data frame bitstream corresponding to the service identifier Corresponding physical layer channel; sending a corresponding MAC data frame bit stream to the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
数据汇聚装置 40, 用于从多个物理层通道接收数据码块, 以及与所述数据码块 关联的开始码块和结束码块中的至少一个;从所述开始码块和所述结束码块中 的至少一个中读取业务标识和通道号,所述业务标识为所述关联的数据码块所 属的 MAC数据帧比特流的业务标识, 所述通道号为传输所述数据码块的物理 层通道的通道号; 根据所述业务标识,对齐从不同通道号的物理层通道中接收 的所述数据码块; 恢复所述业务标识对应的 MAC数据帧比特流。 a data convergence device 40, configured to receive a data code block from a plurality of physical layer channels, and at least one of a start code block and an end code block associated with the data code block; from the start code block and the end code The service identifier and the channel number are read in at least one of the blocks, where the service identifier is a service identifier of a MAC data frame bitstream to which the associated data code block belongs, and the channel number is a physics for transmitting the data code block. Channel number of the layer channel; aligning the data code blocks received from physical layer channels of different channel numbers according to the service identifier; recovering a MAC data frame bit stream corresponding to the service identifier.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步 骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读 存储介质中, 存储介质可以包括: ROM、 RAM, 磁盘或光盘等。  A person skilled in the art may understand that all or part of the various steps of the foregoing embodiments may be completed by a program instructing related hardware. The program may be stored in a computer readable storage medium, and the storage medium may include: ROM, RAM, disk or CD, etc.
以上对本发明实施例所提供的数据处理的方法、装置以及系统进行了详细 施例的说明只是用于帮助理解本发明的方法及其核心思想; 同时, 对于本领域 的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改 变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。  The foregoing detailed description of the method, apparatus, and system for data processing provided by the embodiments of the present invention is only for facilitating understanding of the method of the present invention and its core idea; and, for a person of ordinary skill in the art, according to the present invention The scope of the present invention is not limited by the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种数据处理的方法, 其特征在于, 包括:  A method of data processing, comprising:
接收携带有业务标识的媒介接入控制 MAC数据帧比特流;  Receiving, by the medium access control MAC data frame bit stream carrying the service identifier;
根据所述业务标识对应的 MAC数据帧比特流的速率, 确定所述业务标识 对应的 MAC数据帧比特流对应的物理层通道;  Determining, according to a rate of the MAC data frame bit stream corresponding to the service identifier, a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier;
向所述业务标识对应的 MAC数据帧比特流对应的物理层通道, 发送对应 的 MAC数据帧比特流。  And transmitting, to the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, a corresponding MAC data frame bitstream.
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述业务标识对应 的 MAC数据帧比特流的速率, 确定所述业务标识对应的 MAC数据帧比特流对 应的物理层通道, 包括:  The method according to claim 1, wherein the determining, according to the rate of the MAC data frame bit stream corresponding to the service identifier, determining a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, Includes:
根据所述业务标识,从预存储的所述业务标识与物理层通道的通道号的映 射表中查找所述业务标识对应的 MAC数据帧比特流对应的物理层通道;  And searching, according to the service identifier, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, from the mapping table of the pre-stored service identifier and the channel number of the physical layer channel;
当所述业务标识对应的 MAC数据帧比特流的速率不大于所述业务标识对 应的 MAC数据帧比特流对应的物理层通道的总承载量时, 将所述业务标识对 应的物理层通道确定为所述业务标识对应的 MAC数据帧比特流对应的物理层 通道。  When the rate of the MAC data frame bitstream corresponding to the service identifier is not greater than the total carrying capacity of the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, the physical layer channel corresponding to the service identifier is determined as The physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
3、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述业务标识对应 的 MAC数据帧比特流的速率, 确定所述业务标识对应的 MAC数据帧比特流对 应的物理层通道, 包括:  The method according to claim 1, wherein the determining, according to the rate of the MAC data frame bit stream corresponding to the service identifier, determining a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, Includes:
根据所述业务标识,从预存储的所述业务标识与物理层通道的通道号的映 射表中查找所述业务标识对应的 MAC数据帧比特流对应的物理层通道;  And searching, according to the service identifier, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, from the mapping table of the pre-stored service identifier and the channel number of the physical layer channel;
当所述业务标识对应的 MAC数据帧比特流的速率大于所述业务标识对应 的 MAC数据帧比特流对应的物理层通道的总承载量时, 从未被使用的可用物 理层通道中选择至少一个物理层通道,所述至少一个物理层通道的总承载量与 所述业务标识对应的 MAC数据帧比特流对应的物理层通道的总承载量之和不 小于所述业务标识对应的 MAC数据帧比特流的速率;  And selecting at least one of the available physical layer channels that are not used when the rate of the MAC data frame bit stream corresponding to the service identifier is greater than the total carrying capacity of the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier. a physical layer channel, where a total bearer of the at least one physical layer channel and a total carrying capacity of the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier are not smaller than a MAC data frame bit corresponding to the service identifier Rate of flow;
将选择的所述至少一个物理层通道和所述映射表中所业务标识对应的物 理层通道确定为所述业务标识对应的 MAC数据帧比特流对应的物理层通道。 The selected at least one physical layer channel and the physical layer channel corresponding to the service identifier in the mapping table are determined as the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
4、 根据权利要求 3所述的方法, 其特征在于, 所述方法还包括: 将选择的所述至少一个物理层通道的通道号与所述业务标识进行关联,并 将关联后的所述至少一个物理层通道的通道号与所述业务标识存储到所述映 射表中。 The method according to claim 3, wherein the method further comprises: associating the selected channel number of the at least one physical layer channel with the service identifier, and the associated at least the associated The channel number of a physical layer channel and the service identifier are stored in the mapping table.
5、 根据权利要求 2所述的方法, 其特征在于, 所述当所述业务标识对应的 The method according to claim 2, wherein the service identifier corresponds to
MAC数据帧比特流的速率不大于所述业务标识对应的 MAC数据帧比特流对应 的物理层通道的总承载量时,将所述业务标识对应的物理层通道确定为所述业 务标识对应的 MAC数据帧比特流对应的物理层通道, 包括: When the rate of the MAC data frame bit stream is not greater than the total carrying capacity of the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, the physical layer channel corresponding to the service identifier is determined as the MAC address corresponding to the service identifier. The physical layer channel corresponding to the data frame bit stream, including:
当所述业务标识对应至少两个物理层通道,且所述至少两个物理层通道中 的至少一个物理层通道的总承载量大于所述业务标识对应的 MAC数据帧比特 流的速率时,选择所述至少一个物理层通道中总承载量与所述业务标识对应的 MAC数据帧比特流的速率的差值最小的至少一个物理层通道作为所述业务标 识对应的 MAC数据帧比特流对应的物理层通道。  When the service identifier corresponds to at least two physical layer channels, and the total bearer of the at least one physical layer channel of the at least two physical layer channels is greater than the rate of the MAC data frame bit stream corresponding to the service identifier, At least one physical layer channel having a minimum difference between a total carrying capacity of the at least one physical layer channel and a rate of a MAC data frame bit stream corresponding to the service identifier is used as a physical medium corresponding to the MAC data frame bit stream corresponding to the service identifier Layer channel.
6、根据权利要求 2〜5任意一项所述的方法, 其特征在于, 所述根据所述业 务标识对应的 MAC数据帧比特流的速率, 确定所述业务标识对应的 MAC数据 帧比特流对应的物理层通道的步骤之前, 还包括:  The method according to any one of claims 2 to 5, wherein the determining, according to the rate of the MAC data frame bit stream corresponding to the service identifier, determining a MAC data frame bit stream corresponding to the service identifier Before the steps of the physical layer channel, it also includes:
检测所有物理层通道, 确定所述所有物理层通道中的故障物理层通道; 将所述故障物理层通道的故障状态信息与所述故障物理层通道的通道号 进行关联,并将关联后的所述故障物理层通道的故障状态信息与所述故障物理 层通道的通道号存储到所述映射表中。  Detecting all the physical layer channels, determining the fault physical layer channel in the all physical layer channels; associating the fault state information of the fault physical layer channel with the channel number of the fault physical layer channel, and associating the associated The fault state information of the fault physical layer channel and the channel number of the fault physical layer channel are stored in the mapping table.
7、 根据权利要求 6所述的方法, 其特征在于, 所述确定所述所有物理层通 道中的故障物理层通道的步骤后, 所述方法还包括:  The method according to claim 6, wherein, after the step of determining a fault physical layer channel in all physical layer channels, the method further includes:
当至少一个所述故障物理层通道的通道号与业务标识关联时,从未被使用 的所述可用物理层通道中选择总承载量不小于所述至少一个所述故障物理层 通道总承载量的至少一个可用物理层通道,并将选择的所述至少一个可用物理 层通道的通道号与所述业务标识关联,并将关联后的所述至少一个可用物理层 通道的通道号与所述业务标识存储到所述映射表中;  When the channel number of the at least one faulty physical layer channel is associated with the service identifier, selecting a total bearer from the unused physical layer channels that is not used is not less than a total carrying capacity of the at least one fault physical layer channel At least one available physical layer channel, and associates the channel number of the selected at least one available physical layer channel with the service identifier, and associates the associated channel number of the at least one available physical layer channel with the service identifier Stored in the mapping table;
激活选择的所述至少一个可用物理层通道。 The selected at least one available physical layer channel is activated.
8、根据权利要求 1〜7任意一项所述的处理方法, 其特征在于, 所述向所述 业务标识对应的 MAC数据帧比特流对应的物理层通道, 发送对应的 MAC数据 帧比特流的步骤之前, 所述方法还包括: The processing method according to any one of claims 1 to 7, wherein the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier is sent, and the corresponding MAC data frame bit stream is sent. Before the step, the method further includes:
将所述业务标识对应的 MAC数据帧比特流中的非空闲码块都转换为数据 码块;  Converting, in the MAC data frame bit stream corresponding to the service identifier, a non-idle code block into a data code block;
将所述业务标识对应的 MAC数据帧比特流中的数据码块划分为至少两个 数据码串, 所述至少两个数据码串中的每个数据码串包含至少一个数据码块; 对应的 , 所述向所述业务标识对应的 MAC数据帧比特流对应的物理层通 道, 发送对应的 MAC数据帧比特流, 包括:  And dividing a data code block in the MAC data frame bit stream corresponding to the service identifier into at least two data code sequences, where each of the at least two data code strings includes at least one data code block; And sending, to the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, a corresponding MAC data frame bit stream, including:
向所述业务标识对应的 MAC数据帧比特流对应的物理层通道依次发送所 述每个数据码串, 并轮循发送所述每个数据码串中的数据码块,且在发送所述 每个数据码串前或后, 向所述业务标识对应的 MAC数据帧比特流对应的物理 层通道中发送开始码块和结束码块中的至少一个, 同时删除所述 MAC数据帧 比特流中相同数量的空闲码块,并在所述开始码块和所述结束码块中的至少一 个上写入所述 MAC数据帧比特流的业务标识和承载所述数据码块的物理层通 道的通道号。  And transmitting, to the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, each of the data code strings, and transmitting the data code blocks in each of the data code strings in a round robin manner, and transmitting the Before or after the data code string, transmitting at least one of a start code block and an end code block to a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier, and deleting the same in the MAC data frame bit stream a number of idle code blocks, and writing a service identifier of the MAC data frame bitstream and a channel number of a physical layer channel carrying the data code block on at least one of the start code block and the end code block .
9、 一种数据处理的方法, 其特征在于, 包括:  9. A method of data processing, comprising:
从多个物理层通道接收数据码块,以及与所述数据码块关联的开始码块和 结束码块中的至少一个;  Receiving a data code block from a plurality of physical layer channels, and at least one of a start code block and an end code block associated with the data code block;
从所述开始码块和所述结束码块中的至少一个中读取业务标识和通道号 , 所述业务标识为所述关联的数据码块所属的 MAC数据帧比特流的业务标识, 所述通道号为传输所述数据码块的物理层通道的通道号;  And reading, by the at least one of the start code block and the end code block, a service identifier and a channel identifier, where the service identifier is a service identifier of a MAC data frame bitstream to which the associated data code block belongs, The channel number is a channel number of a physical layer channel that transmits the data code block;
根据所述业务标识,对齐从不同通道号的物理层通道中接收的所述数据码 块;  And aligning the data code blocks received from physical layer channels of different channel numbers according to the service identifier;
恢复所述业务标识对应的 MAC数据帧比特流。  And recovering a MAC data frame bit stream corresponding to the service identifier.
10、 根据权利要求 9所述的方法, 其特征在于, 所述根据所述业务标识, 对齐从不同通道号的物理层通道中接收的所述数据码块, 包括:  The method according to claim 9, wherein the aligning the data code blocks received from physical layer channels of different channel numbers according to the service identifier comprises:
将所述业务标识和与所述业务标识关联的所述物理层通道的通道号,写入 业务标识与物理层通道的通道号的映射表中; Writing the service identifier and a channel number of the physical layer channel associated with the service identifier a mapping table between the service identifier and the channel number of the physical layer channel;
按照所述映射表中写入的所述业务标识与所述物理层通道的通道号的映 射关系, 对齐所述业务标识对应的 MAC数据帧比特流的数据码块。  And aligning the data code blocks of the MAC data frame bit stream corresponding to the service identifier according to the mapping relationship between the service identifier and the channel number of the physical layer channel written in the mapping table.
11、 一种数据分发装置, 其特征在于, 包括:  A data distribution device, comprising:
第一接收单元, 用于接收携带有业务标识的媒介接入控制 MAC数据帧比 特流;  a first receiving unit, configured to receive a medium access control MAC data frame bit stream carrying a service identifier;
确定单元, 用于根据所述第一接收单元接收到的业务标识对应的 MAC数 据帧比特流的速率, 确定所述业务标识对应的 MAC数据帧比特流对应的物理 层通道;  a determining unit, configured to determine, according to a rate of the MAC data frame bitstream corresponding to the service identifier received by the first receiving unit, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier;
发送单元, 用于向所述确定单元确定的业务标识对应的 MAC数据帧比特 流对应的物理层通道, 发送对应的 MAC数据帧比特流。  And a sending unit, configured to send a corresponding MAC data frame bitstream to the physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier determined by the determining unit.
12、 根据权利要求 11所述的数据分发装置, 其特征在于, 所述确定单元包 括:  The data distribution device according to claim 11, wherein the determining unit comprises:
第一查找子单元, 用于根据所述业务标识,从预存储的所述业务标识与物 理层通道的通道号的映射表中查找所述业务标识对应的 MAC数据帧比特流对 应的物理层通道;  a first locating subunit, configured to search, according to the service identifier, a physical layer channel corresponding to a MAC data frame bitstream corresponding to the service identifier from a pre-stored mapping table of the service identifier and a channel number of the physical layer channel ;
第一确定子单元, 用于当所述业务标识对应的 MAC数据帧比特流的速率 不大于所述第一查找子单元查找到的业务标识对应的 MAC数据帧比特流对应 的物理层通道的总承载量时,将所述业务标识对应的物理层通道确定为所述业 务标识对应的 MAC数据帧比特流对应的物理层通道。  a first determining subunit, configured to: when a rate of the MAC data frame bitstream corresponding to the service identifier is not greater than a total of physical layer channels corresponding to the MAC data frame bitstream corresponding to the service identifier found by the first searching subunit The physical layer channel corresponding to the service identifier is determined as the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier.
13、 根据权利要求 11所述的数据分发装置, 其特征在于, 所述确定单元包 括:  The data distribution device according to claim 11, wherein the determining unit comprises:
第二查找子单元, 用于根据所述业务标识,从预存储的所述业务标识与物 理层通道的通道号的映射表中查找所述业务标识对应的 MAC数据帧比特流对 应的物理层通道;  a second locating sub-unit, configured to search, according to the service identifier, a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier from a pre-stored mapping table of the service identifier and the channel number of the physical layer channel ;
第一选择子单元, 用于当所述业务标识对应的 MAC数据帧比特流的速率 大于所述第二查找子单元查找到的业务标识对应的 MAC数据帧比特流对应的 物理层通道的总承载量时,从未被使用的可用物理层通道中选择至少一个物理 层通道, 所述至少一个物理层通道的承载量与所述业务标识对应的 MAC数据 帧比特流对应的物理层通道的总承载量之和不小于所述业务标识对应的 MAC 数据帧比特流的速率; a first selection sub-unit, configured to: when the rate of the MAC data frame bit stream corresponding to the service identifier is greater than the total load of the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier found by the second search subunit Select at least one physics from the available physical layer channels that are not used a layer channel, the sum of the bearer of the at least one physical layer channel and the total carrying capacity of the physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier is not less than the MAC data frame bit stream corresponding to the service identifier rate;
第二确定子单元 ,用于将所述第一选择子单元选择的所述至少一个物理层 通道和所述映射表中所业务标识对应的物理层通道确定为所述业务标识对应 的 MAC数据帧比特流对应的物理层通道。  a second determining subunit, configured to determine, by the first selection subunit, the at least one physical layer channel and a physical layer channel corresponding to the service identifier in the mapping table as a MAC data frame corresponding to the service identifier The physical layer channel corresponding to the bit stream.
14、 根据权利要求 12所述的数据分发装置, 其特征在于,  14. The data distribution device according to claim 12, wherein:
所述第一确定子单元, 用于当所述业务标识对应至少两个物理层通道,且 所述至少两个物理层通道中的至少一个物理层通道的总承载量大于所述业务 标识对应的 MAC数据帧比特流的速率时, 确定所述至少一个物理层通道中总 承载量与所述业务标识对应的 MAC数据帧比特流的速率的差值最小的至少一 个物理层通道作为所述业务标识对应的 MAC数据帧比特流对应的物理层通 道。  The first determining subunit is configured to: when the service identifier corresponds to at least two physical layer channels, and a total carrying capacity of at least one physical layer channel of the at least two physical layer channels is greater than that of the service identifier Determining, as the service identifier, at least one physical layer channel having a smallest difference between a total bearer amount of the at least one physical layer channel and a MAC data frame bit stream corresponding to the service identifier The corresponding physical layer channel corresponding to the MAC data frame bit stream.
15、 根据权利要求 11〜14任意一项所述的数据分发装置, 其特征在于, 所 述装置还包括:  The data distribution device according to any one of claims 11 to 14, wherein the device further comprises:
检测单元, 用于检测所有物理层通道; 理层通道; 所述故障物理层通道的通道号进行关联; 信息与所述故障物理层通道的通道号存储到所述映射表中。  a detecting unit, configured to detect all physical layer channels; a physical layer channel; a channel number of the fault physical layer channel is associated; and information and a channel number of the fault physical layer channel are stored in the mapping table.
16、根据权利要求 15所述的数据分发装置,其特征在于,所述装置还包括: 选择单元,用于当至少一个所述故障物理层通道的通道号与业务标识关联 时,从未被使用的所述可用物理层通道中选择总承载量不小于所述至少一个所 述故障物理层通道总承载量的至少一个可用物理层通道,并将选择的所述至少 一个可用物理层通道的通道号与所述业务标识关联,并将关联后的所述至少一 个可用物理层通道的通道号与所述业务标识存储到所述映射表中; 激活单元, 用于激活所述选择单元选择的所述至少一个可用物理层通道。The data distribution device according to claim 15, wherein the device further comprises: a selecting unit, configured to: when the channel number of the at least one faulty physical layer channel is associated with the service identifier, is never used Selecting at least one available physical layer channel whose total carrying capacity is not less than the total carrying capacity of the at least one physical layer of the faulty physical layer, and selecting the channel number of the at least one available physical layer channel Associated with the service identifier, and store the associated channel number of the at least one available physical layer channel and the service identifier into the mapping table; An activation unit, configured to activate the at least one available physical layer channel selected by the selection unit.
17、 根据权利要求 11〜16任意一项所述的数据分发装置, 其特征在于, 所 述装置还包括: The data distribution device according to any one of claims 11 to 16, wherein the device further comprises:
码块转换单元, 用于将所述业务标识对应的 MAC数据帧比特流中的非空 闲码块都转换为数据码块;  a code block conversion unit, configured to convert, into the data code block, the non-empty code blocks in the bit stream of the MAC data frame corresponding to the service identifier;
划分单元, 用于将所述业务标识对应的 MAC数据帧比特流中的数据码块 划分为至少两个数据码串,所述至少两个数据码串中的每个数据码串包含至少 一个数据码块;  a dividing unit, configured to divide a data code block in a MAC data frame bit stream corresponding to the service identifier into at least two data code strings, where each of the at least two data code strings includes at least one data Code block
所述发送单元, 用于向所述业务标识对应的 MAC数据帧比特流对应的物 理层通道依次发送所述每个数据码串,并轮循发送所述每个数据码串中的数据 码块, 且在发送所述每个数据码串前或后, 向所述业务标识对应的 MAC数据 述开始码块和所述结束码块中的至少一个上写入所述 MAC数据帧比特流的业 务标识和承载所述数据码块的物理层通道的通道号;  The sending unit is configured to sequentially send the data code sequence to a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier, and sequentially send the data code block in each data code string And writing, to the at least one of the MAC data description start code block and the end code block corresponding to the service identifier, a service of writing the MAC data frame bitstream before or after sending each data code string Identifying and carrying a channel number of a physical layer channel of the data code block;
删除单元, 用于当每次发送所述开始码块和所述结束码块中的至少一个 时, 删除所述 MAC数据帧比特流中相同数量的空闲码块。  And a deleting unit, configured to delete the same number of idle code blocks in the bit stream of the MAC data frame each time at least one of the start code block and the end code block is sent.
18、 一种数据汇聚装置, 其特征在于, 包括:  18. A data convergence device, comprising:
第二接收单元, 用于从多个物理层通道接收数据码块, 以及与所述数据码 块关联的开始码块和结束码块中的至少一个;  a second receiving unit, configured to receive a data code block from multiple physical layer channels, and at least one of a start code block and an end code block associated with the data code block;
读取单元,用于从所述第二接收单元接收的开始码块和所述结束码块中的 至少一个中读取业务标识和通道号,所述业务标识为所述关联的数据码块所属 的 MAC数据帧比特流的业务标识, 所述通道号为传输所述数据码块的物理层 通道的通道号;  a reading unit, configured to read a service identifier and a channel number from at least one of a start code block and the end code block received by the second receiving unit, where the service identifier is that the associated data code block belongs to a service identifier of a MAC data frame bitstream, where the channel number is a channel number of a physical layer channel that transmits the data code block;
对齐单元, 用于根据所述读取单元读取的业务标识,对齐从不同通道号的 物理层通道中接收的所述数据码块;  An aligning unit, configured to align the data code blocks received from physical layer channels of different channel numbers according to the service identifier read by the reading unit;
恢复单元, 用于在所述对齐单元对齐数据码块后, 恢复所述业务标识对应 的 MAC数据帧比特流。  And a recovery unit, configured to restore a MAC data frame bitstream corresponding to the service identifier after the alignment unit aligns the data code block.
19、 一种数据分发装置, 其特征在于, 包括: 第一接收器、 第一发送器、 第一存储器和第一处理器,所述第一存储器存储有所述第一处理器执行数据分 发过程的程序; A data distribution device, comprising: a first receiver, a first transmitter, a first memory and a first processor, the first memory storing a program in which the first processor executes a data distribution process;
其中, 所述第一接收器, 用于接收携带有业务标识的媒介接入控制 MAC 数据帧比特流;  The first receiver is configured to receive a medium access control MAC data frame bit stream carrying a service identifier;
所述第一处理器, 用于根据所述业务标识对应的 MAC数据帧比特流的速 率 , 确定所述业务标识对应的 MAC数据帧比特流对应的物理层通道;  The first processor is configured to determine, according to a rate of the MAC data frame bit stream corresponding to the service identifier, a physical layer channel corresponding to the MAC data frame bit stream corresponding to the service identifier;
所述第一发送器, 用于向所述业务标识对应的 MAC数据帧比特流对应的 物理层通道, 发送对应的 MAC数据帧比特流。  The first transmitter is configured to send a corresponding MAC data frame bitstream to a physical layer channel corresponding to the MAC data frame bitstream corresponding to the service identifier.
20、 一种数据处理系统, 其特征在于, 包括: 数据分发装置和数据汇聚装 置,  20. A data processing system, comprising: a data distribution device and a data convergence device,
所述数据分发装置为上述权利要求 11〜17任意一项所述的数据分发装置; 所述数据汇聚装置为上述权利要求 18所述的数据汇聚装置。  The data distribution device is the data distribution device according to any one of claims 11 to 17, wherein the data aggregation device is the data aggregation device according to claim 18.
PCT/CN2013/074129 2013-04-12 2013-04-12 Data processing method, apparatus and system WO2014166102A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201380000274.4A CN103502985B (en) 2013-04-12 2013-04-12 Data processing method, device and system
PCT/CN2013/074129 WO2014166102A1 (en) 2013-04-12 2013-04-12 Data processing method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/074129 WO2014166102A1 (en) 2013-04-12 2013-04-12 Data processing method, apparatus and system

Publications (1)

Publication Number Publication Date
WO2014166102A1 true WO2014166102A1 (en) 2014-10-16

Family

ID=49866744

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/074129 WO2014166102A1 (en) 2013-04-12 2013-04-12 Data processing method, apparatus and system

Country Status (2)

Country Link
CN (1) CN103502985B (en)
WO (1) WO2014166102A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486037B (en) * 2014-12-12 2018-02-13 东莞市奥普特自动化科技有限公司 A kind of multi-functional communication means
CN105871502B (en) 2015-01-22 2020-01-03 华为技术有限公司 Method and communication equipment for transmitting service signal by using Ethernet channel
EP3605963B1 (en) 2015-03-30 2023-06-07 Huawei Technologies Co., Ltd. Data processing method and apparatus
WO2017156682A1 (en) * 2016-03-14 2017-09-21 华为技术有限公司 Data transmission method based on channel binding
CN108243128B (en) * 2016-12-27 2020-10-23 华为技术有限公司 Method, network equipment and system for transmitting wireless interface forward signal
WO2021148857A1 (en) * 2020-01-21 2021-07-29 Zeku Inc. Downlink protocol alignment and decoding
CN114500393B (en) * 2021-12-31 2024-03-15 伟乐视讯科技股份有限公司 Communication method and communication equipment for MAC (media access control) to multiple PHY (physical layer) modules

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399811A (en) * 2007-09-27 2009-04-01 华为技术有限公司 Multi-channel data transmitting/receiving and transmission control method, corresponding device
CN101499997A (en) * 2008-01-29 2009-08-05 中兴通讯股份有限公司 Apparatus for multi-path low speed service multiplexing and demultiplexing, and method therefor
CN101841740A (en) * 2009-03-20 2010-09-22 华为技术有限公司 Method and device for sending and receiving high-speed Ethernet data streams in optical transport network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6765869B2 (en) * 2000-12-21 2004-07-20 At&T Wireless Services, Inc. Medium access dynamic congestion control mechanism for wireless data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399811A (en) * 2007-09-27 2009-04-01 华为技术有限公司 Multi-channel data transmitting/receiving and transmission control method, corresponding device
CN101499997A (en) * 2008-01-29 2009-08-05 中兴通讯股份有限公司 Apparatus for multi-path low speed service multiplexing and demultiplexing, and method therefor
CN101841740A (en) * 2009-03-20 2010-09-22 华为技术有限公司 Method and device for sending and receiving high-speed Ethernet data streams in optical transport network

Also Published As

Publication number Publication date
CN103502985B (en) 2017-01-25
CN103502985A (en) 2014-01-08

Similar Documents

Publication Publication Date Title
WO2014166102A1 (en) Data processing method, apparatus and system
WO2019233179A1 (en) Data message detection method, device and system
JPH11187051A (en) Method and device for transmitting packet data from medium access controller
WO2019062500A1 (en) Data transmission method, device and system
WO2006006632A1 (en) Packet transmission method and packet transmission device
US8254291B2 (en) Ethernet device and lane operating method
US9311268B1 (en) Method and system for communication with peripheral devices
CN105591974A (en) Message processing method, device and system
WO2009043251A1 (en) Multiple path data transmitting/receiving method, transmission control method and corresponding apparatus
CN109691031B (en) Service message transmission method and node equipment
WO2012100671A1 (en) Method for binding physical network ports, network card and communication system
RU2602333C2 (en) Network system, packet processing method and storage medium
JP5971072B2 (en) Frame transfer apparatus and frame transfer method
KR20170087633A (en) Method for transmitting data based on priority in network
JP6290123B2 (en) Transmission apparatus and transmission method
WO2014032574A1 (en) Message processing device, method and system
WO2021098425A1 (en) Qos policy method, device, and computing device for service configuration
CN111600809B (en) Gigabit single optical port server adapter
WO2009006858A1 (en) Method, system and device for information transmission and reception
US9137158B2 (en) Communication apparatus and communication method
JP2018107584A (en) Network device and control method of the same
US8953608B1 (en) Method and system for frame aggregation
CN111555800B (en) Gigabit dual-optical-port server adapter
US7953101B2 (en) Encoding fibre channel over ethernet transport
WO2021109851A1 (en) Network communication method, apparatus and device, and storage medium

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: 13881713

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: 13881713

Country of ref document: EP

Kind code of ref document: A1