WO2009082897A1 - Method and device for multiplexing and demultiplexing ethernet messages - Google Patents
Method and device for multiplexing and demultiplexing ethernet messages Download PDFInfo
- Publication number
- WO2009082897A1 WO2009082897A1 PCT/CN2008/072345 CN2008072345W WO2009082897A1 WO 2009082897 A1 WO2009082897 A1 WO 2009082897A1 CN 2008072345 W CN2008072345 W CN 2008072345W WO 2009082897 A1 WO2009082897 A1 WO 2009082897A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- packet
- ethernet
- length
- message
- payload
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2212/00—Encapsulation of packets
Definitions
- the invention belongs to the field of network and communication technologies, and relates to an Ethernet message multiplexing and demultiplexing method and device. Background technique
- Ethernet Session Initiation Protocol
- a prior art uses a Frame Protocol (FP) multiplexing (Multiplexing, CDMA) technology on the User Datagram Protocol (UDP) layer to implement packet transmission.
- the FPMux technology is a multiplexing technology that uses the UDP layer between a base station controller (RNC) and a 3G base station (NodeB).
- RNC base station controller
- NodeB performs FPMux when sending a message and demultiplexing (FP DeMultiplexing, FPDMux for short) when receiving a message.
- FP DeMultiplexing FPDMux
- the NodeB is connected to the upstream RNC through the "Iub" interface.
- the FPMux operation needs to be implemented in the direction of the data flow sent by the NodeB to the RNC.
- DSCP Diff serv Code
- Table 1 shows the package format of FPMux Ver HLen TOS 16-bit total length
- the FP packet payload protocol stipulates that the triplet (Source IP, SIP), Destination IP (DIP), DSCP) uniquely identifies a multiplex channel, that is, has the same SIP and DIP.
- the data stream with the DSCP value is then multiplexed into an FP Mux frame.
- FP Mux is a technology for multiplexing small packets such as voice on UDP.
- the IP/UDP header of the message is completely reserved.
- Each FP payload (payload) is added with a Mux Header. (User Identification, UID for short) is generally the UDP destination port (DPORT).
- This technology has the following drawbacks: Because some IP headers and UDP headers exist at the same time, some network resources are wasted; in addition, since the FPMux technology is compatible with both Ethernet and PPP, the SDH/PDH network using PPP no longer has a development prospect, but for the Ethernet bearer. The network will not need to support PPP, so if it is compatible with PPP, it will waste some network resources.
- IT Li Technology is based on time division (Time-Division Multiplexing (TDM) technology, can be connected to a variety of networks (including IP network, Public Switched Telephone Network (PSTN) I plain old telephone service (PLAIN OLD TELEPHONE SERVICE, POTS for short) network ) Technology.
- IP network Public Switched Telephone Network (PSTN) I plain old telephone service (PLAIN OLD TELEPHONE SERVICE, POTS for short) network
- PSTN Public Switched Telephone Network
- PAIN OLD TELEPHONE SERVICE POTS for short
- FIG. 2 A schematic diagram of the package structure of the specific IT ⁇ field, as shown in FIG. 2 .
- the inventor has found that the prior art has at least the following defects: It only supports fixed-length packet encapsulation, and is inflexible; even for voice packets, it needs to occupy multiple T-Segments (the typical length of the voice packet is 22 bytes); does not support message priority; ⁇ Tima technology microcode implementation is more complex, software complexity is high, may require dedicated hardware implementation; network transmission requires E1/T1 similar precision clock guarantee, higher cost . Therefore, the transmission efficiency of packets such as the packet service of the prior art is relatively low. Summary of the invention
- a first aspect of the present invention provides an Ethernet packet multiplexing method and device to improve packet transmission efficiency of packet services.
- a second aspect of the present invention provides an Ethernet packet demultiplexing method and device to improve demultiplexing efficiency of an Ethernet message.
- an embodiment of the present invention provides an Ethernet packet multiplexing method, including: receiving a packet to be encapsulated; and when the length of the packet to be encapsulated is less than or equal to a sub-packet And determining, by the default maximum allowable length of the packet to be encapsulated, whether the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is greater than a preset maximum allowable transmission length of the Ethernet packet; if yes, The multiplexed Ethernet packet is encapsulated and sent by the Ethernet, and the packet to be encapsulated is multiplexed into a new Ethernet packet.
- the packet to be encapsulated is multiplexed into the multiplexed Ethernet packet.
- a sub-message payload unit and the length of the packet to be encapsulated is added to the payload length of the multiplexed Ethernet packet to obtain the payload length of the current Ethernet packet, where the sub-packet net
- the load unit includes a multiplex header and a sub-message payload, and the multiplex header includes length information of the packet to be encapsulated.
- an embodiment of the present invention further provides an Ethernet packet multiplexing device, including: a first receiving module, a determining module, a first encapsulating module, a multiplexing module, and an accumulating module;
- the module is configured to receive a packet to be encapsulated, and the determining module is configured to be connected to the first receiving module, and configured to: when determining that the length of the packet to be encapsulated is less than or equal to a preset of the payload unit of the sub-message When the maximum allowable length is used, it is determined whether the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is greater than a preset maximum allowable transmission length of the Ethernet packet; When the determining module determines that the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is greater than the preset maximum allowable transmission length of the Ethernet packet, the Ethernet packet is encapsulated in the Ethernet packet.
- the multiplexing module is configured to: when the determining module determines that the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is greater than a preset maximum capacity of the Ethernet packet Transmitting the packet to be encapsulated into a new Ethernet packet, and when the determining module determines the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet. And the packet to be encapsulated is multiplexed into a sub-message payload unit of the multiplexed Ethernet message, and the sub-message is traversed by the preset maximum allowable transmission length of the Ethernet packet.
- the charging unit includes a multiplexer header and a sub-message payload, the multiplexer header includes length information of the packet to be encapsulated, and an accumulation module, configured to determine, by the judging module, the length of the packet to be encapsulated The length of the packet to be encapsulated is accumulated when the sum of the lengths of the multiplexed Ethernet packets is not greater than the preset maximum allowable transmission length of the Ethernet packet. The payload length of the current Ethernet packet is obtained by the payload length of the multiplexed Ethernet packet.
- the multiplexer is added to the front end of each child packet payload to represent the type and length of the service content carried by the child packet payload, and the existing Compared with the UDP/IP header, the network resource is saved and the network resource utilization is improved. Meanwhile, the sub-message payload unit is set according to the actual length of the packet, and the existing method for multiplexing the fixed-length packet is used. In contrast, the use of additional resources is avoided, and the flexibility of message multiplexing is enhanced.
- an embodiment of the present invention provides an Ethernet packet demultiplexing method, including: receiving an Ethernet packet; extracting a payload length unit and at least one sub-message in the Ethernet packet And the sub-message payload unit includes a sub-message payload and a multiplexing header, where the multiplexer header includes length information of the sub-message payload unit, where the payload length unit includes Determining the payload length of the Ether packet; demultiplexing the payload of the sub-message in the payload unit of the sub-message according to the length information of the payload of the sub-message; determining whether the length of the demultiplexed packet is equal to The length of the payload of the Ethernet packet, if yes, the demultiplexing operation is stopped; otherwise, the next sub-message payload unit is demultiplexed until the length of the demultiplexed packet is equal to the payload length of the Ethernet packet.
- an embodiment of the present invention further provides an Ethernet packet demultiplexing device, including: a second receiving module, configured to receive an encapsulated Ethernet packet, where the Ethernet packet includes a payload length a unit and at least one sub-message payload unit, where the sub-message payload unit includes a sub-message payload and a multiplexing header, where the multiplex header includes length information of the sub-message payload unit,
- the load length unit includes a payload length of the Ethernet packet; a first determining module, configured to determine whether a length of the demultiplexed packet is equal to a payload length of the Ethernet packet; and a demultiplexing module, configured to The length information of the sub-packet payload in the multiplexer header in the sub-message payload unit, demultiplexing the sub-message payload in the sub-message payload unit, and when the first judging module When the length of the demultiplexed packet is equal to the payload
- the type and length information of the service content carried in the multiplexer header of the front end is used to represent the type and length information of the service content carried in the payload of the sub-message to implement demultiplexing of the Ethernet packet, so as to improve the efficiency of multiplexing.
- FIG. 1 is a schematic diagram of a multiplexing and demultiplexing process of the prior art
- FIG. 2 is a schematic structural diagram of a multiplexing message based on the IT technology in the prior art
- FIG. 3 is a schematic structural diagram of an Ethernet message involved in the embodiment of the present invention
- FIG. 4 is a schematic diagram of a message multiplexing and demultiplexing process between an RNC and a NodeB based on an Ethernet bearer network according to an embodiment of the present invention
- FIG. 5 is a flowchart of Embodiment 1 of an Ethernet/Multitext multiplexing method according to the present invention.
- FIG. 6 is a flowchart of Embodiment 2 of an Ethernet/Multitext multiplexing method according to the present invention.
- Embodiment 7 is a flowchart of Embodiment 1 of an Ethernet packet demultiplexing method according to the present invention.
- Embodiment 8 is a flowchart of Embodiment 2 of an Ethernet packet demultiplexing method according to the present invention.
- FIG. 9 is a schematic structural diagram of Embodiment 1 of an Ethernet packet multiplexing device according to the present invention.
- FIG. 10 is a schematic structural diagram of Embodiment 2 of an Ethernet packet multiplexing device according to the present invention
- FIG. 11 is a schematic structural diagram of Embodiment 3 of an Ethernet packet multiplexing device according to the present invention
- FIG. 13 is a schematic structural diagram of Embodiment 1 of an Ethernet packet demultiplexing device according to Embodiment 1 of the present invention
- FIG. 14 is a schematic diagram of an Ethernet packet demultiplexing device according to the present invention
- FIG. 15 is a schematic structural diagram of Embodiment 3 of an Ethernet de-duplication device according to the present invention.
- FIG. 3 is a schematic structural diagram of an Ethernet message involved in an embodiment of the present invention.
- ⁇ AC represents the traditional destination MAC address, 6 bytes long; 1.
- SMAC indicates a traditional source MAC address, which is 6 bytes long.
- VLAN Virtual Local Area Network
- Optional, optional indicates the traditional 802. lp/q, 4 bytes long;
- the service tag indicates that the message is Ethernet Mux, and provides Quality of Service (QoS) and message order-preserving functions.
- QoS Quality of Service
- message order-preserving functions The description of the internal fields is as follows:
- TYPE indicates the payload type, 0x9910, demultiplexing (Lix) flag, 2 bytes long; Pri indicates priority information, similar to DSCP, in this embodiment its length is 3 bits long; Res indicates reserved The length, in the embodiment, is 1 bit long; the sequence indicates the message ordering information, such as the sequence number used for message order, in this embodiment, the length can be 12 bits long; the Total Length is the Ethernet message. a load length unit in which a payload length of an Ethernet message is stored, and the payload length is in units of bytes;
- FCS represents the school 3 full sum, for 32-bit Cyclic Redundancy Check (CRC) check, the length of this embodiment is 4 bytes long;
- Payload is the payload of the text, 0 - 1496 bytes to meet the Ethernet frame length limit of 64 - 1518 bytes. When the payload length is insufficient, the frame has a Padding field with a maximum of 42 bytes.
- Each sub-message is multiplexed in the Pay load, and a sub-header Mux Header (3-4 bytes) is added to each sub-book payload, which constitutes a sub-message payload unit, and the receiving device will be based on The Mux Header is demultiplexed.
- the description of the sub-field of the Mux Header is as follows:
- the UID indicates the user ID. In this embodiment, it can be 16 bits long. The user can customize according to the service type.
- E lbit, indicating whether there is an extended field.
- Length 7bit, indicating the net of the sub-message.
- the 4 files that are reused in Pay load can be any type, such as ATM cell or PPP ⁇ ;
- Padding Optional, optional field.
- the frame has a Padding field.
- the payload length is the length information of the packet payload, and in other optional embodiments, the payload length may also be the packet payload and the MN AC, The sum of the lengths of one or several of SMAC, Vlan TAG, Serv i ce Tag, Padding, FCS.
- the Ethernet packet multiplexing and demultiplexing method of the present invention will be described in detail below by taking the multiplexing and demultiplexing of Ethernet packets between the 3G NodeB device and the RNC device as an example.
- FIG. 4 is a schematic diagram of a packet multiplexing and demultiplexing process between a NodeB and an RNC based on an Ethernet bearer network according to the present invention. As shown in Figure 4, packet multiplexing and demultiplexing between the NodeB and the RNC includes the following aspects:
- the NodeB side implements a certain type of service. ⁇ Ethernet multiplexing of the text, correspondingly, the RNC side implements Ethernet demultiplexing;
- the RNC side implements a certain type of service. ⁇ Ethernet multiplexing of the text, correspondingly, the NodeB side implements Ethernet demultiplexing;
- the sub-payload in Figure 3 is the voice payload ( Vo i ce Payload ).
- the processing flow in the RNC -> NodeB direction is similar, except that the RNC performs packet multiplexing and encapsulation, and the NodeB performs packet demultiplexing.
- An embodiment of the present invention provides an Ethernet packet multiplexing method, including: receiving a packet to be encapsulated; when the length of the packet to be encapsulated is less than or equal to a preset maximum allowable length of the sub-mail payload unit And determining whether the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is greater than a preset maximum allowable transmission length of the Ethernet packet, and if yes, performing Ethernet session on the multiplexed Ethernet packet The packet is encapsulated and sent, and the packet to be encapsulated is multiplexed into a new Ethernet packet; if not, the packet to be encapsulated is multiplexed into a packet payload of the multiplexed Ethernet packet.
- the sub-message payload unit includes a multiplex header and a sub-packet payload, and the sub-packet payload carries
- the multiplexed header includes the length information of the packet to be encapsulated and the user identifier, and adds the length of the packet to be encapsulated to the payload length of the Ethernet packet.
- the length of the packet to be encapsulated is PKT_SIZE
- the maximum allowable length of the single Sub Payload is MAX_PAYLOAD_SIZE
- the length of the multiplexed Ethernet is OLD_MUX_SIZE
- the maximum allowable transmission length of the Ethernet packet is MTU.
- FIG. 5 is a flowchart of Embodiment 1 of an Ethernet packet multiplexing method according to the present invention. As shown in Figure 5, the Ethernet packet multiplexing method includes the following steps:
- Step 101 Receive a packet to be encapsulated.
- the packet to be encapsulated in this embodiment takes a voice packet as an example.
- Step 102 Determine whether Ethernet multiplex (Ethernet Mux) is enabled. If yes, go to step 104. Otherwise, go to step 103.
- Ethernet Mux Ethernet multiplex
- Step 103 Perform traditional Ethernet encapsulation and send the voice packet to be encapsulated.
- Step 104 Determine whether the length PKT_S IZE of the voice message to be encapsulated is greater than a preset maximum allowable length of the single child message payload unit, MAX_PAYLOAD_SIZE, and if yes, execute step 105; otherwise, execute step 106;
- Step 105 Perform Ethernet encapsulation on the multiplexed Ethernet packet and send it, and perform traditional Ethernet encapsulation and transmission on the voice packet to be encapsulated.
- the method includes the following steps: Step 1051: Perform Ethernet encapsulation on the multiplexed Ethernet packet and send the packet.
- Step 1042 Perform traditional Ethernet encapsulation and send the voice packet to be encapsulated.
- Step 106 Determine whether the sum of the length PKT_S IZE of the voice message to be encapsulated and the length of the multiplexed Ethernet message 0LD_MUX_SIZE is greater than the preset maximum allowable transmission length MTU of the Ethernet message; if yes, go to step 107; If no, step 108 is performed.
- step 107 the multiplexed Ethernet packet is encapsulated and sent by the Ethernet, and the packet to be encapsulated is multiplexed into a new Ethernet packet.
- the method includes the step 1071: performing the multiplexed Ethernet > 3 ⁇ 4 text. The Ethernet encapsulates and sends the packet.
- Step 1072 The packet to be encapsulated is multiplexed into a new Ethernet packet.
- Step 108 The message to be encapsulated is multiplexed into a sub-message payload unit of the multiplexed Ethernet message.
- the sub-message payload unit includes a multiplex header and a sub-packet payload, and the sub-packet payload carries the
- the multiplexed header includes the length information of the voice packet to be encapsulated, and may further include a user identifier of the voice packet to be encapsulated.
- Step 109 The length of the voice message to be encapsulated is added to the payload length of the multiplexed Ethernet message to obtain the current payload length of the Ethernet message. That is, the length of the voice packet to be encapsulated is added to the Tota l Length field in the service tag.
- steps 101-109 are a complete process of multiplexing a voice message to be encapsulated into an Ethernet message.
- a voice packet but not limited to a voice packet
- FIG. 6 is a flowchart of Embodiment 2 of an Ethernet multiplexing method according to the present invention. As shown in FIG. 6, the embodiment is different from the previous embodiment in that after the step 109, the method further includes:
- Step 110 Start a timer.
- Step 111 Determine whether to time out according to the timer. If the timeout has not expired, continue to receive a new packet, and perform step 101; if timeout, execute step 112.
- Step 112 Encapsulate and send the currently multiplexed Ethernet packet.
- the payload length of the Ethernet packet may also be carried in the state identifier information servicing ce Tag of the Ethernet packet as shown in FIG. 3.
- the structure of the Ethernet packet can also carry the following information or a combination of the following information in the service tag information Service Tag:
- the multiplexing type information TYPE of the Ethernet packet, the reused Ethernet packet The priority information Pr i of the text, or the order information Sequence of the multiplexed Ethernet message.
- the method further includes: setting the multiplexing type information of the Ethernet packet to the Ethernet packet in the Service Tag, that is, Ethernet multiplexing, that is, The TYPE in the specified Service Tag is 0x9910, and the value can be customized.
- FIG. 7 is a flowchart of Embodiment 1 of an Ethernet packet demultiplexing method according to the present invention. As shown in FIG. 7, the Ethernet packet demultiplexing method includes the following steps:
- Step 201 Receive an Ethernet message.
- Step 202 Determine whether the multiplexing type information TYPE in the Ethernet message is Ethernet multiplexing. If not, go to step 203; if yes, go to step 204. In this embodiment, it is determined whether the TYPE in the Serv i ce Tag is 0x9910.
- Step 203 Demultiplexing the etheric object by using an ordinary Ethernet demultiplexing method.
- Step 204 Extract a payload length unit and at least one sub-message payload unit in the Ethernet packet, where the sub-message payload unit includes a sub-packet payload and a multiplexing header, where the multiplexing header is The length information of the sub-message payload unit is included, and the payload length unit includes a payload length of the Ethernet packet.
- Step 205 Demultiplex the sub-message payload in the sub-message payload unit according to the length information of the sub-message payload.
- the service content carried in the sub-packet payload "Sub Pay load" in the payload unit of the sub-packet is demultiplexed according to the length of the payload of the sub-message in the Mux Header in the sub-message payload unit.
- Step 206 Send the service content to a corresponding upper application according to a user identifier UID in the multiplex header Mux Header for processing.
- Step 207 Determine whether the length of the demultiplexed packet is equal to the payload length of the Ethernet packet. If yes, go to step 208. Otherwise, go to step 205 to continue demultiplexing the next sub-packet in the Ethernet packet. The length of the packet until the demultiplexed packet is equal to the payload length of the Ethernet packet.
- Demultiplexing includes: demultiplexing of the payload of the message and demultiplexing of information related to the multiplexed message.
- the demultiplexing of the message payload demultiplexes the payload of the sub-message in the payload of the message.
- the information related to the multiplexing message includes MAC, Vlan TAG, Serv ce Tag, Padding and FCS.
- the payload length in the Ethernet packet is the length information of the payload of the packet payload, it is only necessary to compare whether the total length of the demultiplexed sub-message payload unit is equal to the payload length.
- the payload length may also be information related to the packet payload and the foregoing multiplexing packet. (DMAC, SMAC, Vlan TAG, Service Tag, Padding, FCS) The sum of the lengths of one or several of the packets, so in the comparison process, it is judged whether the length of the packet that has been taken is equal to the payload length of the Ethernet packet. To determine whether the total length of the demultiplexed sub-message payload unit plus the length of the multiplexed packet related information is equal to the payload length of the Ethernet packet.
- Step 208 Stop the demultiplexing operation of the current Ethernet message.
- the method further includes: according to the priority Information is classified and prioritized.
- the method further includes: Information is processed in order.
- FIG. 8 is a flowchart of Embodiment 2 of an Ethernet demultiplexing method according to the present invention.
- the difference between this embodiment and the previous embodiment is that the flow classification and priority scheduling operations and the order-preserving processing operations are added.
- the method further includes:
- Step 209 Perform flow classification and priority scheduling according to the priority information Pr i in the service tag information Service Tag.
- the traffic classification and priority scheduling are performed according to the priority information Pr i in the service tag information Service Tag, such as QoS based on simple traffic classification or complex traffic classification.
- Step 210 Perform a sequence-preserving process according to the order-preserving information Sequence in the service tag information Service Tag.
- the sink can correct the order of the received message according to the serial number.
- the message with the smaller serial number will be processed by the upper application first, and the TCP similarity can also be provided.
- Frame loss detection and retransmission mechanism The packet described in the foregoing embodiment is not limited to the packet service carried by the Ethernet bearer network, such as the wireless voice service.
- the packet may also be included in the network such as the SDH/PDH network, the ATM network, and the PSTN/POTS, and is provided on the Ethernet.
- the bearer of PPP PPP over Etherne t, PPPoE for short
- ATM over Ethernet ATM over Ethernet
- the access device and the server device connected to the Ethernet bearer network are core devices. Take the above ATM network as an example.
- the main functions include:
- the multiplexed packet (or ce ll ) is encapsulated in the Ethernet packet on the device (or server) that the source network accesses the Ethernet bearer network, and the bearer network performs normal L2 forwarding according to the MAC address, and receives the network access device (or Demultiplexing on the server).
- ATM ce l l , ⁇ ⁇ and ordinary IP files can be multiplexed in this mode and transmitted on the Ethernet bearer network, and demultiplexed at the receiving end to provide a transmission mode similar to ATMoE and PPPoE.
- FIG. 9 is a schematic structural diagram of Embodiment 1 of an Ethernet/Multitext multiplexing device according to the present invention.
- the method includes: a first receiving module 11, a determining module 12, a first encapsulating module 13, a multiplexing module 14, and an accumulating module 15; wherein, the first receiving module 11 is configured to receive a packet to be encapsulated;
- the judging module 12 is connected to the first receiving module 11. When it is determined that the length of the packet to be encapsulated is less than or equal to the preset maximum allowable length of the sub-mail payload unit, the judging module 12 continues to determine the packet to be encapsulated. Whether the sum of the length and the length of the multiplexed Ethernet message is greater than a preset maximum allowable transmission length of the Ethernet message;
- the first encapsulating module 13 is invoked, and the multiplexed Ethernet packet is encapsulated and sent by the Ethernet, and the multiplexing module 14 is invoked to multiplex the packet to be encapsulated into a new Ethernet packet.
- the multiplexing module 14 is invoked, and the packet to be encapsulated is multiplexed into a sub-message payload unit of the multiplexed Ethernet message, where the sub-message payload unit includes a multiplexing header and a sub-port.
- the length of the packet is added to the payload length of the multiplexed Ethernet packet to obtain the payload length of the current Ethernet packet.
- the multiplexer header in the sub-message payload unit may further include a user identifier of the packet to be encapsulated.
- the judging module 12 is connected to the first receiving module 11 and is configured to continue to determine the to-be-suppressed when it is determined that the length of the packet to be encapsulated is less than or equal to the preset maximum allowable length of the sub-packet payload unit. Whether the sum of the length of the loaded message and the length of the multiplexed Ethernet message is greater than a preset maximum allowable transmission length of the Ethernet message;
- the first encapsulating module 13 is configured to: when the judging module 12 determines that the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is greater than the preset maximum allowable transmission length of the Ethernet packet, The Ethernet packet is encapsulated and sent by the Ethernet packet;
- the multiplexing module 14 is configured to: when the determining module 12 determines that the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is greater than the preset maximum allowable transmission length of the Ethernet packet, the packet to be encapsulated
- the text is multiplexed into a new Ethernet message, and is used by the determining module 12 to determine that the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet message is not greater than the preset maximum tolerance of the Ethernet message.
- the packet to be encapsulated is multiplexed into a sub-message payload unit of the multiplexed Ethernet packet, and the sub-message payload unit includes a multiplex header and a sub-packet payload, and the multiplex header
- the length information of the packet to be encapsulated is included;
- the accumulating module 15 is configured to: when the judging module 12 determines that the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is not greater than a preset maximum allowable transmission length of the Ethernet packet, the packet to be encapsulated The length of the text is added to the payload length of the multiplexed Ethernet packet to obtain the payload length of the current Ethernet packet.
- FIG. 10 is a schematic structural diagram of Embodiment 2 of an Ethernet packet multiplexing device according to the present invention. As shown in FIG. 10, the embodiment is different from the foregoing embodiment of the Ethernet device in the Ethernet packet.
- the first extension module 16 is further configured to set the Ethernet packet in the service identifier unit of the Ethernet packet.
- the multiplexing type information is Ethernet multiplexing; and may further include a second extension module, configured to set priority information of the multiplexed Ethernet message in a service flag unit of the Ethernet message; and may further include a third extension
- the module 18 is configured to set the order information of the multiplexed Ethernet message in the service flag unit of the Ethernet message.
- FIG. 11 is a schematic structural diagram of Embodiment 3 of an Ethernet multiplex device according to the present invention. As shown in FIG. 11, this embodiment The difference between the foregoing embodiment of the Ethernet packet multiplexing device is that the determining module 12 further includes a timed submodule 1201, and the accumulating module 15 adds the length of the packet to be encapsulated to the multiplexed Ethernet message. After the payload length of the current Ethernet packet is obtained, the timing sub-module 1201 starts counting. When no packet arrives at the first receiving module 11 within a predetermined time, the first encapsulating module 13 , the Ethernet packet that is currently multiplexed is encapsulated and sent by Ethernet.
- FIG. 12 is a schematic structural diagram of Embodiment 4 of an Ethernet packet multiplexing device according to the present invention.
- the difference from the first embodiment of the Ethernet device is as follows: the second module module 19 is further included, and the determining module 12 determines the length of the packet to be encapsulated.
- the first encapsulation module 13 is invoked, and the multiplexed Ethernet packet is encapsulated and sent by the Ethernet, and the second encapsulation module 19 is invoked.
- the message is encapsulated and sent in traditional Ethernet.
- FIG. 13 is a schematic structural diagram of Embodiment 1 of an Ethernet packet demultiplexing device according to the present invention.
- the method includes: a second receiving module 21, configured to receive an encapsulated Ethernet packet, where the Ethernet packet may include a payload length unit and at least one sub-post payload unit, and the sub-message payload unit The sub-message payload and the multiplexing header are included, and the multiplexer header includes the length information of the sub-message payload unit, the payload length unit includes the payload length of the Ethernet packet, and the demultiplexing module 22 and the second receiving module 21 a connection, configured to demultiplex the sub-message payload in the sub-message payload unit according to the length information of the sub-message payload in the multiplexer header in the sub-message payload unit; the first determining module 24 And connecting to the demultiplexing module 22, determining whether the length of the demultiplexed packet is equal to the payload length of the
- the first determining module 24 is configured to determine whether the length of the demultiplexed packet is equal to the payload length of the Ethernet packet; the demultiplexing module 22 is configured to use the sub-header in the multiplex header in the sub-message payload unit.
- the packet payload length information is used to demultiplex the sub-packet payload in the sub-packet payload unit, and when the first judging module 24 determines that the length of the demultiplexed packet is equal to the payload length of the Ether packet Stop the demultiplexing operation.
- the first determining module 24 determines that the length of the demultiplexed packet is not equal to the payload length of the Ethernet packet, continue to demultiplex the next one.
- the Ethernet packet demultiplexing device in this embodiment further includes a sending module 23, which is connected to the demultiplexing module 22, and is configured to send the service content to the corresponding upper layer application for processing according to the user identifier in the multiplexing header.
- FIG. 14 is a schematic structural diagram of Embodiment 2 of an Ethernet demultiplexing device according to the present invention.
- the difference between the embodiment and the foregoing embodiment of the Ethernet demultiplexing device is that the priority scheduling module 25 may be further included, and the used service flag unit of the Ethernet packet is configured to be multiplexed.
- the priority information of the Ethernet packet is used, the traffic classification and priority scheduling are performed according to the priority information before the sub-message payload in the sub-message payload unit is demultiplexed.
- the preamble processing module 26 may be further configured to: when the order information of the multiplexed Ethernet message is set in the service flag unit of the Ethernet message, the sub-message used in the demultiplexing sub-mail payload unit Before the payload, the order-preserving process is performed according to the order-preserving information.
- FIG. 15 is a schematic structural diagram of Embodiment 3 of an Ethernet packet demultiplexing device according to the present invention.
- the embodiment is different from the foregoing embodiment of the Ethernet packet demultiplexing device in that the second determining module 27 is further connected to the second receiving module 21, and is set in the service marking unit of the Ethernet message.
- the second determining module 27 is configured to use the multiplexing type information according to the multiplexing type information before demultiplexing the sub-message payload in the sub-message payload unit.
- a method for directly multiplexing multiple packets into an Ethernet packet and performing Layer 2 transmission on the Ethernet bearer network is provided, and the UDP/IP header is no longer used, and one packet is added before each packet.
- the multiplex header Mux Header is used to characterize the type and length of the service content carried by the payload of the message, and the EtherType field of the traditional Ethernet is extended to TYPE to support Etherne t Mux frame identification, QoS, and language preservation, and supports traditional 802. lp/q is packaged with normal Ethernet.
- the present invention has the following advantages: (1) Further improving transmission efficiency, enhancing flexibility, QoS characteristics, and achieving simpler implementation, further reducing development and operation costs;
- the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
以太报文复用、 解复用方法及设备 技术领域 Ethernet message multiplexing, demultiplexing method and device
本发明属于网络与通信技术领域, 涉及以太报文复用、 解复用方法及设 备。 背景技术 The invention belongs to the field of network and communication technologies, and relates to an Ethernet message multiplexing and demultiplexing method and device. Background technique
随着网络全 IP 化与扁平化的发展, 异步传输模式 (Asynchronous Transfer Mode,简称 ATM )技术已被淘汰,应用点对点通信协议( Point to Point Protocol, 简称 PPP)技术的同步数字系列 /准同步数字系列 (Synchronous Digital Hierarchy / Pies iochronous Digital Hierarchy 简称 SDH/PDH ) 网络即将停止建设, 以太网技术在城域网甚至广域网取得长足发展, 使用以 太网 (Ethernet)承载无线语音等小包业务传输是网络发展的趋势。 As the network is fully IP-based and flattened, the Asynchronous Transfer Mode (ATM) technology has been eliminated, and the synchronous digital series/quasi-synchronous numbers using Point-to-Point Protocol (PPP) technology have been eliminated. The series (Synchronous Digital Hierarchy / Pies iochronous Digital Hierarchy for short SDH/PDH) network is about to stop construction. Ethernet technology has made great progress in metropolitan area network and even wide area network. The use of Ethernet (Ethernet) to carry small packets of wireless voice is a network development. trend.
一现有技术釆用无线用户数据报协议(User Datagram Protocol,简称 UDP) 层上的帧封装协议(Frame Protocol, 简称 FP )复用 (Multiplexing, 简称 Mux )技术实现小包业务的传输。 FPMux技术为在基站控制器( Radio Network Controller, 简称 RNC)与 3G基站 (Node of Base s tat ion,简称 NodeB )之 间釆用 UDP层的复用技术。如图 1所示, RNC或 NodeB在发送 ^艮文时进行 FPMux, 在接收报文时解复用( FP DeMultiplexing, 简称 FPDMux )。对于 NodeB, NodeB 通过 "Iub" 接口与上游 RNC相连, 在 NodeB发向 RNC的数据流方向上需要实 现 FPMux操作, 所支持的复用信道(Channel )数 = NodeB支持的区分服务标 记( Diff serv Code Point, 简称 DSCP )个数。 在接收从 RNC来的下行数据时, 需要能够识别 FPMux包和正常非 Mux包, 对于 Mux包需要能正确解复用后处 理。 具体 FPMux的封装格式如表 1所示: A prior art uses a Frame Protocol (FP) multiplexing (Multiplexing, CDMA) technology on the User Datagram Protocol (UDP) layer to implement packet transmission. The FPMux technology is a multiplexing technology that uses the UDP layer between a base station controller (RNC) and a 3G base station (NodeB). As shown in Figure 1, the RNC or NodeB performs FPMux when sending a message and demultiplexing (FP DeMultiplexing, FPDMux for short) when receiving a message. For the NodeB, the NodeB is connected to the upstream RNC through the "Iub" interface. The FPMux operation needs to be implemented in the direction of the data flow sent by the NodeB to the RNC. The number of supported multiplex channels (Channel) = the differentiated service tag supported by the NodeB (Diff serv Code) Point, referred to as DSCP). When receiving downlink data from the RNC, it needs to be able to identify the FPMux packet and the normal non-Mux packet. For the Mux packet, it needs to be properly demultiplexed and processed. The package format of the specific FPMux is shown in Table 1:
表 1为 FPMux的封装格式 Ver HLen TOS 16位总长度 Table 1 shows the package format of FPMux Ver HLen TOS 16-bit total length
16位标识 F 13位偏移 16-bit identifier F 13-bit offset
TTL Protocol 16 位首部校 -检和 IP TTL Protocol 16-bit first calibration - IP and IP
32^iSIP 32^iSIP
32位 DIP 32-bit DIP
16位 SPORT 16位 DP0RT 16-bit SPORT 16-bit DP0RT
UDP UDP
16位 UDP长度 16位 UDP校 -检和 16-bit UDP length 16-bit UDP checksum
16位 UID E 长度 扩展 Mux头 16-bit UID E length extension Mux head
FP报文净荷 FP message payload
16位 UID E 长度 扩展 16-bit UID E length extension
FP报文净荷 FP message payload
16位 UID E 长度 扩展 16-bit UID E length extension
FP报文净荷 协议规定, 三元组 (源 IP地址 (Source IP, 简称 SIP) 、 目的 IP地址 (Destination IP, 简称 DIP)、 DSCP )唯一确定一复用通道, 也即有相同 SIP、 DIP和 DSCP值的数据流才会复用到一个 FP Mux帧中。 FP Mux是一种建立在 UDP 上对语音等小包进行复用的技术, 报文的 IP/UDP头 (Header) 完全保留, 各 FP 有效载荷 ( Payload ) 前添力口一个 Mux Header , 用户身份证明(User Identification, 简称 UID)—般是 UDP目的端口 (DPORT) 。 The FP packet payload protocol stipulates that the triplet (Source IP, SIP), Destination IP (DIP), DSCP) uniquely identifies a multiplex channel, that is, has the same SIP and DIP. The data stream with the DSCP value is then multiplexed into an FP Mux frame. FP Mux is a technology for multiplexing small packets such as voice on UDP. The IP/UDP header of the message is completely reserved. Each FP payload (payload) is added with a Mux Header. (User Identification, UID for short) is generally the UDP destination port (DPORT).
该技术存在如下缺陷: 由于同时存在 IP头与 UDP头, 因此浪费了一些网络 资源; 另外由于 FPMux技术同时兼容 Ethernet与 PPP, 由于应用 PPP的 SDH/PDH 网络不再具有发展前景, 而对于以太承载网络将无须支持 PPP, 因此如果兼容 PPP, 就会浪费一些网络资源。 This technology has the following drawbacks: Because some IP headers and UDP headers exist at the same time, some network resources are wasted; in addition, since the FPMux technology is compatible with both Ethernet and PPP, the SDH/PDH network using PPP no longer has a development prospect, but for the Ethernet bearer. The network will not need to support PPP, so if it is compatible with PPP, it will waste some network resources.
另一现有技术釆用智能时分复用 ( Intelligent Time-Division Multiplexing,简称 IT丽)技术实现小包业务的传输。 IT丽技术为基于时分复 用 (Time-Division Multiplexing,简称 TDM )技术、 可连接多种网络(含 IP 网络、 公共交换电话网络( Public Switched Telephone Network, 简称 PSTN) I普通老式电话服务(PLAIN OLD TELEPHONE SERVICE, 简称 POTS) 网络) 的 技术。具体 IT丽字段的封装结构示意图,如图 2所示。 图 2的说明如下: "丽 AC" 表示传统目的介质访问控制子层协议 (Media Access Control, 简称 MAC)地 址, 6字节长; SMAC表示传统源 MAC地址, 6字节长; Ether Type表示 文类型 为 ITDM, 2字节长; DMAC、 SMAC, Ether Type组成 MAC Header; PAD表示预留 的填充字段, 6字节长; TAG表示含 2字节才艮文 ID ( 16-bit Packet ID specifies Jitter Queue on Destination Node )与 1字节序歹 'J号; PKT Type: 表明是普 通 IT丽报文还是 ITOMCP控制报文; PAD\TAG、 PKT Type组成 IT丽 Shim; Payload 表示报文净荷, Payload的封装中每个 Quad TOM Segment含 4个 TDM Segment与 4个 Segment ID, 长度分别为固定的 8字节与 2字节。 Payload中封装有 24个 TDM Segment时, 相应地可以有 n=6个 Quad TDM Segment。 Pay load中最多可以封装 148个 TDM Segment, 相应地最多可以有 n=37个 Quad TDM Segment。 Another prior art uses Intelligent Time-Division Multiplexing (IT) technology to implement packet transmission. IT Li Technology is based on time division (Time-Division Multiplexing (TDM) technology, can be connected to a variety of networks (including IP network, Public Switched Telephone Network (PSTN) I plain old telephone service (PLAIN OLD TELEPHONE SERVICE, POTS for short) network ) Technology. A schematic diagram of the package structure of the specific IT 丽 field, as shown in FIG. 2 . The description of Figure 2 is as follows: "Li AC" indicates the traditional destination medium access control sub-layer protocol (Media Access Control, MAC address), 6 bytes long; SMAC indicates the traditional source MAC address, 6 bytes long; Ether Type indicates the text The type is ITDM, 2 bytes long; DMAC, SMAC, Ether Type form MAC Header; PAD indicates reserved padding field, 6 bytes long; TAG indicates 2 bytes for ID ID (16-bit Packet ID specifying Jitter) Queue on Destination Node ) and 1 byte sequence 歹 'J number; PKT Type: Indicates whether it is an ordinary IT message or an ITOMMC control message; PAD\TAG, PKT Type constitutes IT 丽 shim; Payload indicates message payload, Payload Each Quad TOM Segment in the package contains 4 TDM Segments and 4 Segment IDs, which are fixed 8 bytes and 2 bytes respectively. When there are 24 TDM Segments in Payload, there can be n=6 Quad TDM Segments accordingly. Up to 148 TDM Segments can be packaged in the Pay load, with up to n=37 Quad TDM Segments.
在实现本发明的过程中, 发明人发现现有技术至少存在如下缺陷: 仅支 持固定长度报文封装, 不灵活; 即使是针对语音小包, 也需要占用多个 T丽 Segment (语音小包典型长度为 22字节) ; 不支持报文优先级; 釆用 T丽技术 的微码实现较复杂, 软件复杂度高, 可能需要专用硬件实现; 网络传输需要 E1/T1类似的精确时钟保证, 成本较高。 所以, 现有技术的小包业务等报文的 传输效率比较低。 发明内容 In the process of implementing the present invention, the inventor has found that the prior art has at least the following defects: It only supports fixed-length packet encapsulation, and is inflexible; even for voice packets, it needs to occupy multiple T-Segments (the typical length of the voice packet is 22 bytes); does not support message priority; 微Tima technology microcode implementation is more complex, software complexity is high, may require dedicated hardware implementation; network transmission requires E1/T1 similar precision clock guarantee, higher cost . Therefore, the transmission efficiency of packets such as the packet service of the prior art is relatively low. Summary of the invention
本发明的第一方面是提供一种以太报文复用方法及设备, 以提高小包业 务等报文的传输效率。 A first aspect of the present invention provides an Ethernet packet multiplexing method and device to improve packet transmission efficiency of packet services.
本发明的第二方面是提供一种以太报文解复用方法及设备, 以提高以太 报文的解复用效率。 为实现上述第一方面, 本发明的实施例提供了一种以太报文复用方法, 其中包括: 接收待封装的报文; 当所述待封装的报文的长度小于或等于子报 文净荷单元的预设的最大容许长度时, 判断所述待封装的报文的长度与已复 用的以太报文的长度之和是否大于以太报文的预设的最大容许传输长度; 若 是, 对已复用的以太报文进行以太封装并发送, 同时将待封装的报文复用到 一个新的以太报文; 若否, 则将待封装的报文复用到已复用的以太报文的一 子报文净荷单元中, 并将所述待封装的报文的长度累加到已复用的以太报文 的载荷长度得到当前的以太报文的载荷长度, 其中所述子报文净荷单元包括 复用头及子报文净荷, 所述复用头包括所述待封装的报文的长度信息。 A second aspect of the present invention provides an Ethernet packet demultiplexing method and device to improve demultiplexing efficiency of an Ethernet message. To implement the foregoing first aspect, an embodiment of the present invention provides an Ethernet packet multiplexing method, including: receiving a packet to be encapsulated; and when the length of the packet to be encapsulated is less than or equal to a sub-packet And determining, by the default maximum allowable length of the packet to be encapsulated, whether the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is greater than a preset maximum allowable transmission length of the Ethernet packet; if yes, The multiplexed Ethernet packet is encapsulated and sent by the Ethernet, and the packet to be encapsulated is multiplexed into a new Ethernet packet. If not, the packet to be encapsulated is multiplexed into the multiplexed Ethernet packet. a sub-message payload unit, and the length of the packet to be encapsulated is added to the payload length of the multiplexed Ethernet packet to obtain the payload length of the current Ethernet packet, where the sub-packet net The load unit includes a multiplex header and a sub-message payload, and the multiplex header includes length information of the packet to be encapsulated.
为实现上述第一方面, 本发明的实施例还提供了一种以太报文复用设备, 其中包括: 第一接收模块、 判断模块、 第一封装模块、 复用模块以及累加模 块; 第一接收模块, 用于接收待封装的报文; 判断模块, 与所述第一接收模 块连接, 用于当判断出所述待封装的报文的长度小于或等于子报文净荷单元 的预设的最大容许长度时, 继续判断所述待封装的报文的长度与已复用的以 太报文的长度之和是否大于以太报文的预设的最大容许传输长度; 第一封装 模块, 用于当判断模块判断出所述待封装的报文的长度与已复用的以太报文 的长度之和大于以太报文的预设的最大容许传输长度时, 对已复用的以太报 文进行以太封装并发送; 复用模块, 用于当判断模块判断出所述待封装的报 文的长度与已复用的以太报文的长度之和大于以太报文的预设的最大容许传 输长度时, 将所述待封装的报文复用到一个新的以太报文, 且用于当判断模 块判断出所述待封装的报文的长度与已复用的以太报文的长度之和不大于以 太报文的预设的最大容许传输长度时, 将所述待封装的报文复用到已复用的 以太报文的一子报文净荷单元中, 所述子报文净荷单元包括复用头及子报文 净荷, 所述复用头包括所述待封装的报文的长度信息; 累加模块, 用于当判 断模块判断出所述待封装的报文的长度与已复用的以太报文的长度之和不大 于以太报文的预设的最大容许传输长度时, 将所述待封装的报文的长度累加 到已复用的以太报文的载荷长度得到当前的以太报文的载荷长度。 上述以太报文复用方法、 设备的实施例中, 通过在各子报文净荷的前端 添加复用头, 以表征该子报文净荷所携带的业务内容的类型及长度, 与现有 的 UDP/ IP头相比, 节约了网络资源, 提高了网络资源利用率; 同时, 根据报 文的实际长度设置子报文净荷单元, 与现有的釆用固定长度复用报文的方法 相比, 避免了额外资源的占用, 增强了报文复用的灵活性。 To implement the foregoing first aspect, an embodiment of the present invention further provides an Ethernet packet multiplexing device, including: a first receiving module, a determining module, a first encapsulating module, a multiplexing module, and an accumulating module; The module is configured to receive a packet to be encapsulated, and the determining module is configured to be connected to the first receiving module, and configured to: when determining that the length of the packet to be encapsulated is less than or equal to a preset of the payload unit of the sub-message When the maximum allowable length is used, it is determined whether the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is greater than a preset maximum allowable transmission length of the Ethernet packet; When the determining module determines that the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is greater than the preset maximum allowable transmission length of the Ethernet packet, the Ethernet packet is encapsulated in the Ethernet packet. And transmitting, the multiplexing module, is configured to: when the determining module determines that the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is greater than a preset maximum capacity of the Ethernet packet Transmitting the packet to be encapsulated into a new Ethernet packet, and when the determining module determines the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet. And the packet to be encapsulated is multiplexed into a sub-message payload unit of the multiplexed Ethernet message, and the sub-message is traversed by the preset maximum allowable transmission length of the Ethernet packet. The charging unit includes a multiplexer header and a sub-message payload, the multiplexer header includes length information of the packet to be encapsulated, and an accumulation module, configured to determine, by the judging module, the length of the packet to be encapsulated The length of the packet to be encapsulated is accumulated when the sum of the lengths of the multiplexed Ethernet packets is not greater than the preset maximum allowable transmission length of the Ethernet packet. The payload length of the current Ethernet packet is obtained by the payload length of the multiplexed Ethernet packet. In the foregoing embodiment of the Ethernet packet multiplexing method and device, the multiplexer is added to the front end of each child packet payload to represent the type and length of the service content carried by the child packet payload, and the existing Compared with the UDP/IP header, the network resource is saved and the network resource utilization is improved. Meanwhile, the sub-message payload unit is set according to the actual length of the packet, and the existing method for multiplexing the fixed-length packet is used. In contrast, the use of additional resources is avoided, and the flexibility of message multiplexing is enhanced.
为实现上述第二方面, 本发明的实施例提供了一种以太报文解复用方法, 其中包括: 接收以太报文; 提取所述以太报文中的载荷长度单元和至少一个 子报文净荷单元, 所述子报文净荷单元中包括子报文净荷和复用头, 所述复 用头中包括所述子报文净荷单元的长度信息, 所述载荷长度单元中包括所述 以太报文的载荷长度; 根据所述子报文净荷的长度信息, 解复用该子报文净 荷单元中子报文净荷; 判断已解复用的报文的长度是否等于所述以太报文的 载荷长度, 若是, 则停止解复用操作; 否则, 继续解复用下一个子报文净荷 单元, 直至已解复用的报文的长度等于以太报文的载荷长度。 To implement the foregoing second aspect, an embodiment of the present invention provides an Ethernet packet demultiplexing method, including: receiving an Ethernet packet; extracting a payload length unit and at least one sub-message in the Ethernet packet And the sub-message payload unit includes a sub-message payload and a multiplexing header, where the multiplexer header includes length information of the sub-message payload unit, where the payload length unit includes Determining the payload length of the Ether packet; demultiplexing the payload of the sub-message in the payload unit of the sub-message according to the length information of the payload of the sub-message; determining whether the length of the demultiplexed packet is equal to The length of the payload of the Ethernet packet, if yes, the demultiplexing operation is stopped; otherwise, the next sub-message payload unit is demultiplexed until the length of the demultiplexed packet is equal to the payload length of the Ethernet packet.
为实现上述第二方面, 本发明的实施例还提供了一种以太报文解复用设 备, 其中包括: 第二接收模块, 用于接收封装的以太报文, 所述以太报文包 括载荷长度单元和至少一个子报文净荷单元, 所述子报文净荷单元中包括子 报文净荷和复用头, 所述复用头中包括所述子报文净荷单元的长度信息, 所 述载荷长度单元中包括所述以太报文的载荷长度; 第一判断模块, 用于判断 已解复用的报文的长度是否等于以太报文的载荷长度; 解复用模块, 用于根 据一子报文净荷单元中的复用头中的子报文净荷的长度信息, 解复用所述子 报文净荷单元中的子报文净荷, 且当所述第一判断模块判断已解复用的报文 的长度等于以太报文的载荷长度时, 停止解复用操作, 当所述第一判断模块 判断已解复用的报文的长度不等于以太报文的载荷长度时, 继续解复用下一 个子报文净荷单元, 直至已解复用的报文的长度等于以太报文的载荷长度。 To implement the foregoing second aspect, an embodiment of the present invention further provides an Ethernet packet demultiplexing device, including: a second receiving module, configured to receive an encapsulated Ethernet packet, where the Ethernet packet includes a payload length a unit and at least one sub-message payload unit, where the sub-message payload unit includes a sub-message payload and a multiplexing header, where the multiplex header includes length information of the sub-message payload unit, The load length unit includes a payload length of the Ethernet packet; a first determining module, configured to determine whether a length of the demultiplexed packet is equal to a payload length of the Ethernet packet; and a demultiplexing module, configured to The length information of the sub-packet payload in the multiplexer header in the sub-message payload unit, demultiplexing the sub-message payload in the sub-message payload unit, and when the first judging module When the length of the demultiplexed packet is equal to the payload length of the Ethernet packet, the demultiplexing operation is stopped, and the first determining module determines that the length of the demultiplexed packet is not equal to the payload length of the Ethernet packet. When, continue to solve With the next sub-packet payload unit, until the demultiplexed packet length is equal to the length of the payload of Ethernet packets.
上述以太报文解复用方法、 设备的实施例中, 直接根据各子报文净荷的 前端添加的复用头中携带的, 用于表征该子报文净荷所携带的业务内容的类 型及长度信息, 来实现以太报文的解复用, 从而提高了解复用的效率。 附图说明 In the foregoing embodiment of the Ethernet packet demultiplexing method and device, directly according to the payload of each sub-packet The type and length information of the service content carried in the multiplexer header of the front end is used to represent the type and length information of the service content carried in the payload of the sub-message to implement demultiplexing of the Ethernet packet, so as to improve the efficiency of multiplexing. DRAWINGS
图 1为现有技术的一复用与解复用流程示意图; 1 is a schematic diagram of a multiplexing and demultiplexing process of the prior art;
图 2为现有技术的一基于 IT丽技术的复用报文的结构示意图; 图 3为本发明的实施例中所涉及的以太报文的一结构示意图; 2 is a schematic structural diagram of a multiplexing message based on the IT technology in the prior art; FIG. 3 is a schematic structural diagram of an Ethernet message involved in the embodiment of the present invention;
图 4为本发明的实施例中基于以太承载网的 RNC与 NodeB之间的报文复 用与解复用流程示意图; 4 is a schematic diagram of a message multiplexing and demultiplexing process between an RNC and a NodeB based on an Ethernet bearer network according to an embodiment of the present invention;
图 5为本发明一种以太 ·艮文复用方法实施例一的流程图; FIG. 5 is a flowchart of Embodiment 1 of an Ethernet/Multitext multiplexing method according to the present invention; FIG.
图 6为本发明一种以太 ·艮文复用方法实施例二的流程图; 6 is a flowchart of Embodiment 2 of an Ethernet/Multitext multiplexing method according to the present invention;
图 7为本发明一种以太报文解复用方法实施例一的流程图; 7 is a flowchart of Embodiment 1 of an Ethernet packet demultiplexing method according to the present invention;
图 8为本发明一种以太报文解复用方法实施例二的流程图; 8 is a flowchart of Embodiment 2 of an Ethernet packet demultiplexing method according to the present invention;
图 9为本发明一种以太报文复用设备实施例一的结构示意图; FIG. 9 is a schematic structural diagram of Embodiment 1 of an Ethernet packet multiplexing device according to the present invention;
图 1 0为本发明一种以太报文复用设备实施例二的结构示意图; 图 1 1为本发明一种以太报文复用设备实施例三的结构示意图; 图 12为本发明一种以太报文复用设备实施例四的结构示意图; 图 1 3为本发明一种以太报文解复用设备实施例一的结构示意图; 图 14为本发明一种以太报文解复用设备实施例二的结构示意图; 图 15为本发明一种以太 ·艮文解复用设备实施例三的结构示意图。 具体实施方式 FIG. 10 is a schematic structural diagram of Embodiment 2 of an Ethernet packet multiplexing device according to the present invention; FIG. 11 is a schematic structural diagram of Embodiment 3 of an Ethernet packet multiplexing device according to the present invention; FIG. 13 is a schematic structural diagram of Embodiment 1 of an Ethernet packet demultiplexing device according to Embodiment 1 of the present invention; FIG. 14 is a schematic diagram of an Ethernet packet demultiplexing device according to the present invention; FIG. 15 is a schematic structural diagram of Embodiment 3 of an Ethernet de-duplication device according to the present invention. detailed description
下面通过附图和实施例, 对本发明的技术方案做进一步的详细描述。 图 3 为本发明的实施例中所涉及的以太报文的一结构示意图。 该以太报 文的说明 ¾口下: The technical solution of the present invention will be further described in detail below through the accompanying drawings and embodiments. FIG. 3 is a schematic structural diagram of an Ethernet message involved in an embodiment of the present invention. The description of the Ethernet message 3⁄4 below:
1、 丽 AC表示传统目的 MAC地址, 6字节长; 1、 SMAC表示传统源 MAC地址, 6字节长; 1, 丽 AC represents the traditional destination MAC address, 6 bytes long; 1. SMAC indicates a traditional source MAC address, which is 6 bytes long.
3、 VLAN (虚拟局域网, Virtual Local Area Network) Tag (Optional, 可选)表示传统的 802. lp/q, 4字节长; 3. VLAN (Virtual Local Area Network) Tag (Optional, optional) indicates the traditional 802. lp/q, 4 bytes long;
4、 Service Tag表示该才艮文为 Ethernet Mux才艮文, 同时提供服务质量 (Quality of Service, 简称 QoS)、 报文保序功能, 其中内部字段的描述为: 4. The service tag indicates that the message is Ethernet Mux, and provides Quality of Service (QoS) and message order-preserving functions. The description of the internal fields is as follows:
TYPE表示净荷类型, 0x9910, 解复用 (丽 ux)标志, 2字节长; Pri表示优先 级信息, 类似 DSCP, 在本实施例中其长度为 3比特(bit)长; Res表示预留 长度, 在本实施例中其长度为 lbit长; Sequence表示报文保序信息, 如用于 报文保序的序列号, 在本实施例中其长度可以为 12bit长; Total Length是 以太报文的载荷长度单元, 其中保存有以太报文的载荷长度, 所述载荷长度 是以字节为单位; TYPE indicates the payload type, 0x9910, demultiplexing (Lix) flag, 2 bytes long; Pri indicates priority information, similar to DSCP, in this embodiment its length is 3 bits long; Res indicates reserved The length, in the embodiment, is 1 bit long; the sequence indicates the message ordering information, such as the sequence number used for message order, in this embodiment, the length can be 12 bits long; the Total Length is the Ethernet message. a load length unit in which a payload length of an Ethernet message is stored, and the payload length is in units of bytes;
5、 FCS表示校 3全和,用于 32位的循环冗余校验( Cyclic Redundancy Check , 简称 CRC)校验, 该实施例中其长度为 4字节长; 5, FCS represents the school 3 full sum, for 32-bit Cyclic Redundancy Check (CRC) check, the length of this embodiment is 4 bytes long;
6、 Payload即 ^艮文净荷, 0 - 1496字节以符合以太网 64 - 1518字节帧长 度的限制, 当净荷长度不足时, 帧存在 Padding字段, 最大 42字节。 各子报 文被复用在 Pay load 内, 每个子 文净荷 Sub Pay load前加一个复用头 Mux Header (3-4 字节), 组成一个子报文净荷单元, 接收端设备将根据该 Mux Header进行解复用。 对 Mux Header子字段的描述如下: UID表示用户标识, 该实施例中可以为 16bit长, 用户可根据业务类型自定义; E: lbit, 表示是 否具有扩展字段; Length: 7bit, 表示子报文净荷的长度; Extend: 8bit, 用户可以在 Extend中作自定义的扩展; Pay load中被复用的 4艮文可以是任意 类型, 如 ATM cell或 PPP^艮文; 6. Payload is the payload of the text, 0 - 1496 bytes to meet the Ethernet frame length limit of 64 - 1518 bytes. When the payload length is insufficient, the frame has a Padding field with a maximum of 42 bytes. Each sub-message is multiplexed in the Pay load, and a sub-header Mux Header (3-4 bytes) is added to each sub-book payload, which constitutes a sub-message payload unit, and the receiving device will be based on The Mux Header is demultiplexed. The description of the sub-field of the Mux Header is as follows: The UID indicates the user ID. In this embodiment, it can be 16 bits long. The user can customize according to the service type. E: lbit, indicating whether there is an extended field. Length: 7bit, indicating the net of the sub-message. The length of the load; Extend: 8bit, the user can make a custom extension in Extend; the 4 files that are reused in Pay load can be any type, such as ATM cell or PPP^艮;
7、 Padding (Optional, 可选)字段, 当 Payload中的净荷长度不足时, 帧存在 Padding字段。 7. Padding (Optional, optional) field. When the payload length in Payload is insufficient, the frame has a Padding field.
其中, 在本实施方式中, 所述载荷长度即所述的报文净荷的长度信息, 在其他可选择的实施方式中, 该载荷长度亦可为所述报文净荷与上述丽 AC、 SMAC、 Vlan TAG , Serv i ce Tag , Padding , FCS中的一个或几个的长度之和。 下面以针对 3G NodeB设备与 RNC设备之间的以太报文的复用、 解复用为 例, 对本发明以太报文复用、 解复用方法进行详细的说明。 In the present embodiment, the payload length is the length information of the packet payload, and in other optional embodiments, the payload length may also be the packet payload and the MN AC, The sum of the lengths of one or several of SMAC, Vlan TAG, Serv i ce Tag, Padding, FCS. The Ethernet packet multiplexing and demultiplexing method of the present invention will be described in detail below by taking the multiplexing and demultiplexing of Ethernet packets between the 3G NodeB device and the RNC device as an example.
图 4为本发明中基于以太承载网的 NodeB与 RNC之间的报文复用与解复 用流程示意图。 如图 4所示, NodeB与 RNC之间的报文复用与解复用包括如下 几个方面: FIG. 4 is a schematic diagram of a packet multiplexing and demultiplexing process between a NodeB and an RNC based on an Ethernet bearer network according to the present invention. As shown in Figure 4, packet multiplexing and demultiplexing between the NodeB and the RNC includes the following aspects:
1、 NodeB侧实现某一类业务的 ·艮文的以太复用, 对应地, RNC侧实现以 太解复用; 1. The NodeB side implements a certain type of service. · Ethernet multiplexing of the text, correspondingly, the RNC side implements Ethernet demultiplexing;
2、 RNC侧实现某一类业务 ·艮文的以太复用, 对应地, NodeB侧实现以太 解复用; 2. The RNC side implements a certain type of service. · Ethernet multiplexing of the text, correspondingly, the NodeB side implements Ethernet demultiplexing;
3、 使用以太网进行复用报文的承载。 3. Use Ethernet to carry the bearer of the multiplexed message.
以语音类业务的报文, 即语音报文复用为例, 则图 3中子报文净荷(Sub Pay load )为语音净荷 ( Vo i ce Payload ) 。 Taking the packet of the voice service, that is, the voice message multiplexing, as an example, the sub-payload in Figure 3 is the voice payload ( Vo i ce Payload ).
在 NodeB -〉 RNC方向,来自终端用户的多个报文在 NodeB被复用到 Pay load 中, 根据报文类型、 长度等进行封装, 再进行普通以太封装, 以太承载网进 行 L2转发, 在 RNC端, Serv i ce Tag中的 TYPE字段若表明该报文为 Etherne t Mux , 将根据 Mux Header进行 ^艮文的解复用。 In the NodeB -> RNC direction, multiple packets from the end user are multiplexed into the Pay load on the NodeB, encapsulated according to the packet type and length, and then encapsulated in the common Ethernet, and the Ethernet bearer network performs L2 forwarding. If the TYPE field in the Serv i ce Tag indicates that the message is Etherne t Mux, it will be demultiplexed according to the Mux Header.
在 RNC -〉 NodeB方向处理流程是类似的, 只是 RNC进行报文复用封装, 而 NodeB进行报文解复用。 The processing flow in the RNC -> NodeB direction is similar, except that the RNC performs packet multiplexing and encapsulation, and the NodeB performs packet demultiplexing.
本发明的实施例提供一种以太报文复用方法, 其中包括: 接收待封装的 报文; 当该待封装的报文的长度小于或等于子报文净荷单元的预设的最大容 许长度时, 判断该待封装的报文的长度与已复用的以太报文的长度之和是否 大于以太报文的预设的最大容许传输长度, 若是, 则对已复用的以太报文进 行以太封装并发送, 同时将待封装的报文复用到一个新的以太报文; 若否, 则将待封装的报文复用到已复用的以太报文的报文净荷中的一子报文净荷单 元中, 所述子报文净荷单元包括复用头及子报文净荷, 所述子报文净荷携带 该待复用的报文, 所述复用头包括该待封装的报文的长度信息及用户标识; 并将该待封装的报文的长度累加到以太报文的载荷长度中。 An embodiment of the present invention provides an Ethernet packet multiplexing method, including: receiving a packet to be encapsulated; when the length of the packet to be encapsulated is less than or equal to a preset maximum allowable length of the sub-mail payload unit And determining whether the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is greater than a preset maximum allowable transmission length of the Ethernet packet, and if yes, performing Ethernet session on the multiplexed Ethernet packet The packet is encapsulated and sent, and the packet to be encapsulated is multiplexed into a new Ethernet packet; if not, the packet to be encapsulated is multiplexed into a packet payload of the multiplexed Ethernet packet. In the message payload unit, the sub-message payload unit includes a multiplex header and a sub-packet payload, and the sub-packet payload carries The multiplexed header includes the length information of the packet to be encapsulated and the user identifier, and adds the length of the packet to be encapsulated to the payload length of the Ethernet packet.
设待封装的报文的长度为 PKT_SIZE, 单个 Sub Payload的预设的最大容 许长度为 MAX_PAYLOAD_SIZE, 已复用的以太 ^艮文的长度为 OLD_MUX_SIZE, 以 太报文预设的最大容许传输长度为 MTU。 The length of the packet to be encapsulated is PKT_SIZE, the maximum allowable length of the single Sub Payload is MAX_PAYLOAD_SIZE, the length of the multiplexed Ethernet is OLD_MUX_SIZE, and the maximum allowable transmission length of the Ethernet packet is MTU.
图 5为本发明一种以太报文复用方法实施例一的流程图。 如图 5所示, 以太报文复用方法, 包括以下步骤: FIG. 5 is a flowchart of Embodiment 1 of an Ethernet packet multiplexing method according to the present invention. As shown in Figure 5, the Ethernet packet multiplexing method includes the following steps:
步骤 101、 接收待封装的报文。 该实施例待封装的报文以语音报文为例。 步骤 102、 判断以太复用 (Ethernet Mux )是否启用, 若启用, 执行步骤 104 , 否则执行步骤 103。 Step 101: Receive a packet to be encapsulated. The packet to be encapsulated in this embodiment takes a voice packet as an example. Step 102: Determine whether Ethernet multiplex (Ethernet Mux) is enabled. If yes, go to step 104. Otherwise, go to step 103.
步骤 103、 对该待封装的语音报文进行传统以太封装并发送。 Step 103: Perform traditional Ethernet encapsulation and send the voice packet to be encapsulated.
步骤 104、 判断该待封装的语音报文的长度 PKT_S IZE是否大于单个子报 文净荷单元的预设的最大容许长度 MAX_PAYLOAD_SIZE,若是,则执行步骤 105; 否则, 则执行步骤 106; Step 104: Determine whether the length PKT_S IZE of the voice message to be encapsulated is greater than a preset maximum allowable length of the single child message payload unit, MAX_PAYLOAD_SIZE, and if yes, execute step 105; otherwise, execute step 106;
步骤 105、对已复用的以太报文进行以太封装并发送, 并对该待封装的语 音报文进行传统以太封装并发送。 具体包括步骤 1051、 对已复用的以太报文 进行以太封装并发送; 步骤 1052、 对该待封装的语音报文进行传统以太封装 并发送。 Step 105: Perform Ethernet encapsulation on the multiplexed Ethernet packet and send it, and perform traditional Ethernet encapsulation and transmission on the voice packet to be encapsulated. Specifically, the method includes the following steps: Step 1051: Perform Ethernet encapsulation on the multiplexed Ethernet packet and send the packet. Step 1042: Perform traditional Ethernet encapsulation and send the voice packet to be encapsulated.
步骤 106、 判断该待封装的语音报文的长度 PKT_S IZE与已复用的以太报 文的长度 0LD_MUX_SIZE 之和是否大于以太报文的预设的最大容许传输长度 MTU; 若是, 则执行步骤 107; 若否, 则执行步骤 108。 Step 106: Determine whether the sum of the length PKT_S IZE of the voice message to be encapsulated and the length of the multiplexed Ethernet message 0LD_MUX_SIZE is greater than the preset maximum allowable transmission length MTU of the Ethernet message; if yes, go to step 107; If no, step 108 is performed.
步骤 107、对已复用的以太报文进行以太封装并发送, 同时将待封装的报 文复用到一个新的以太 "艮文。 具体包括步骤 1071、 对已复用的以太>¾文进行 以太封装并发送; 步骤 1072、 将待封装的报文复用到一个新的以太报文。 In step 107, the multiplexed Ethernet packet is encapsulated and sent by the Ethernet, and the packet to be encapsulated is multiplexed into a new Ethernet packet. The method includes the step 1071: performing the multiplexed Ethernet > 3⁄4 text. The Ethernet encapsulates and sends the packet. Step 1072: The packet to be encapsulated is multiplexed into a new Ethernet packet.
步骤 108、 将待封装的报文复用到已复用的以太报文的一子报文净荷单 元。 所述子报文净荷单元包括复用头及子报文净荷, 所述子报文净荷携带该 待复用的语音报文, 所述复用头包括该待封装的语音报文的长度信息, 还可 以包括该待封装的语音报文的用户标识。 Step 108: The message to be encapsulated is multiplexed into a sub-message payload unit of the multiplexed Ethernet message. The sub-message payload unit includes a multiplex header and a sub-packet payload, and the sub-packet payload carries the The multiplexed header includes the length information of the voice packet to be encapsulated, and may further include a user identifier of the voice packet to be encapsulated.
步骤 109、将该待封装的语音报文的长度累加到已复用的以太报文的载荷 长度中得到当前的以太 4艮文的载荷长度。即在 Service Tag中的 Tota l Length 字段中加上该待封装的语音报文的长度。 Step 109: The length of the voice message to be encapsulated is added to the payload length of the multiplexed Ethernet message to obtain the current payload length of the Ethernet message. That is, the length of the voice packet to be encapsulated is added to the Tota l Length field in the service tag.
上述步骤 101-步骤 109是一个待封装的语音报文复用到以太报文中的一 个完整流程。 当接收一个以上报文, 如语音报文但不限于语音报文时, 可以 在接收报文的设备中设置一个定时器, 当超时仍然无新的报文到达时, 则对 该以太报文进行封装并发送。 The foregoing steps 101-109 are a complete process of multiplexing a voice message to be encapsulated into an Ethernet message. When receiving more than one packet, such as a voice packet but not limited to a voice packet, you can set a timer in the device that receives the packet. If no new packet arrives after the timeout, the Ethernet packet is sent. Encapsulate and send.
图 6为本发明一种以太 4艮文复用方法实施例二的流程图。 如图 6所示, 该实施例与上一实施例的区别在于, 在所述步骤 109之后还包括: FIG. 6 is a flowchart of Embodiment 2 of an Ethernet multiplexing method according to the present invention. As shown in FIG. 6, the embodiment is different from the previous embodiment in that after the step 109, the method further includes:
步骤 110、 启动定时器; Step 110: Start a timer.
步骤 111、 根据定时器判断是否超时, 若未超时, 则继续接收新的报文, 执行步骤 101 ; 若超时, 则执行步骤 112。 Step 111: Determine whether to time out according to the timer. If the timeout has not expired, continue to receive a new packet, and perform step 101; if timeout, execute step 112.
步骤 112、 对当前已复用以太 ·艮文进行封装并发送。 Step 112: Encapsulate and send the currently multiplexed Ethernet packet.
上述以太报文复用方法实施例中, 以太报文的载荷长度亦可以携带在如 图 3所示的以太 ·艮文的状态标志信息 Servi ce Tag中。 In the foregoing embodiment of the Ethernet packet multiplexing method, the payload length of the Ethernet packet may also be carried in the state identifier information Servi ce Tag of the Ethernet packet as shown in FIG. 3.
如图 3 所示的以太报文的结构示意图, 还可以在服务标志信息 Service Tag 中携带以下信息或以下信息的组合: 该以太 ·艮文的复用类型信息 TYPE, 该已复用的以太报文的优先级信息 Pr i , 或该已复用的以太报文的保序信息 Sequence。 当 Service TAG同时包括 TYPE、 Pr i以及 Sequence时, 在对已复 用的以太报文进行以太封装之前还包括: 在 Service Tag 中设置该以太报文 的复用类型信息 TYPE为以太复用, 即指定 Service Tag中的 TYPE为 0x9910, 该值可以自定义; 在 Service Tag 中设置该已复用的以太 ·艮文的优先级信息 pr i ,可以根据 QoS需求进行 pr i的指定。可以根据报文保序需求进行 Sequence 的指定。 以上三种参数的设定步骤不限。 图 7为本发明一种以太报文解复用方法实施例一的流程图。如图 7所示, 以太报文解复用方法, 包括以下步骤: As shown in Figure 3, the structure of the Ethernet packet can also carry the following information or a combination of the following information in the service tag information Service Tag: The multiplexing type information TYPE of the Ethernet packet, the reused Ethernet packet The priority information Pr i of the text, or the order information Sequence of the multiplexed Ethernet message. Before the Service TAG includes the TYPE, the Pr, and the Sequence, the method further includes: setting the multiplexing type information of the Ethernet packet to the Ethernet packet in the Service Tag, that is, Ethernet multiplexing, that is, The TYPE in the specified Service Tag is 0x9910, and the value can be customized. The priority information pr i of the multiplexed Ethernet packet can be set in the Service Tag, and the pr i can be specified according to the QoS requirement. The specification can be specified according to the message ordering requirements. The setting steps of the above three parameters are not limited. FIG. 7 is a flowchart of Embodiment 1 of an Ethernet packet demultiplexing method according to the present invention. As shown in FIG. 7, the Ethernet packet demultiplexing method includes the following steps:
步骤 201、 接收以太报文。 Step 201: Receive an Ethernet message.
步骤 202、判断以太报文中的复用类型信息 TYPE是否为以太复用,若否, 执行步骤 203;若是,执行步骤 204。该实施例中即判断 Serv i ce Tag中的 TYPE 是否为 0x9910。 Step 202: Determine whether the multiplexing type information TYPE in the Ethernet message is Ethernet multiplexing. If not, go to step 203; if yes, go to step 204. In this embodiment, it is determined whether the TYPE in the Serv i ce Tag is 0x9910.
步骤 203、 釆用普通以太解复用方式解复用该以太 ·艮文。 Step 203: Demultiplexing the etheric object by using an ordinary Ethernet demultiplexing method.
步骤 204、提取所述以太报文中的载荷长度单元和至少一个子报文净荷单 元, 所述子报文净荷单元中包括子报文净荷和复用头, 所述复用头中包括所 述子报文净荷单元的长度信息, 所述载荷长度单元中包括所述以太报文的载 荷长度。 Step 204: Extract a payload length unit and at least one sub-message payload unit in the Ethernet packet, where the sub-message payload unit includes a sub-packet payload and a multiplexing header, where the multiplexing header is The length information of the sub-message payload unit is included, and the payload length unit includes a payload length of the Ethernet packet.
步骤 205、根据所述子报文净荷的长度信息解复用该子报文净荷单元中子 报文净荷。 其中, 根据子报文净荷单元中的 Mux Header中的子报文净荷的长 度, 解复用子报文净荷单元中子报文净荷 "Sub Pay load" 中所承载的业务内 容。 Step 205: Demultiplex the sub-message payload in the sub-message payload unit according to the length information of the sub-message payload. The service content carried in the sub-packet payload "Sub Pay load" in the payload unit of the sub-packet is demultiplexed according to the length of the payload of the sub-message in the Mux Header in the sub-message payload unit.
步骤 206、 根据复用头 Mux Header中的用户标识 UID将所述业务内容送 到对应的上层应用程序进行处理。 Step 206: Send the service content to a corresponding upper application according to a user identifier UID in the multiplex header Mux Header for processing.
步骤 207、 判断已解复用的报文的长度是否等于以太报文的载荷长度, 若 是, 则执行步骤 208 ; 否则, 执行步骤 205 , 继续解复用该以太报文中下一个 子报文净荷单元, 直至已解复用的报文的长度等于以太报文的载荷长度。 解 复用包括: 报文净荷的解复用及与复用报文相关信息的解复用。 报文净荷的 解复用即对报文净荷中的子报文净荷进行解复用。 与复用报文相关的信息包 括 MAC、 Vlan TAG、 Serv i ce Tag , Padding及 FCS。 在本实施方式中, 由于以 太报文中的载荷长度即为报文净荷 Pay Load的长度信息, 故仅需比较已解复 用的子报文净荷单元的总长度是否等于所述载荷长度。 在其他可选择的实施 方式中, 所述载荷长度亦可为所述报文净荷与上述复用报文相关的信息 ( DMAC、 SMAC、 Vlan TAG, Service Tag , Padding , FCS ) 中的一个或几个的 长度之和, 故在比较过程中, 判断已解服用的报文的长度是否等于以太报文 的载荷长度即为判断已解复用的子报文净荷单元的总长度加上复用报文相关 信息的长度是否等于以太报文的载荷长度。 Step 207: Determine whether the length of the demultiplexed packet is equal to the payload length of the Ethernet packet. If yes, go to step 208. Otherwise, go to step 205 to continue demultiplexing the next sub-packet in the Ethernet packet. The length of the packet until the demultiplexed packet is equal to the payload length of the Ethernet packet. Demultiplexing includes: demultiplexing of the payload of the message and demultiplexing of information related to the multiplexed message. The demultiplexing of the message payload demultiplexes the payload of the sub-message in the payload of the message. The information related to the multiplexing message includes MAC, Vlan TAG, Serv ce Tag, Padding and FCS. In this embodiment, since the payload length in the Ethernet packet is the length information of the payload of the packet payload, it is only necessary to compare whether the total length of the demultiplexed sub-message payload unit is equal to the payload length. . In other optional implementation manners, the payload length may also be information related to the packet payload and the foregoing multiplexing packet. (DMAC, SMAC, Vlan TAG, Service Tag, Padding, FCS) The sum of the lengths of one or several of the packets, so in the comparison process, it is judged whether the length of the packet that has been taken is equal to the payload length of the Ethernet packet. To determine whether the total length of the demultiplexed sub-message payload unit plus the length of the multiplexed packet related information is equal to the payload length of the Ethernet packet.
步骤 208、 停止当前以太报文的解复用操作。 Step 208: Stop the demultiplexing operation of the current Ethernet message.
当以太报文的服务标志单元中设置有已复用的以太报文的优先级信息 时, 在解复用子报文净荷单元中的子报文净荷之前还包括: 根据所述优先级 信息进行流分类与优先级调度。 When the priority information of the multiplexed Ethernet message is set in the service flag unit of the Ethernet packet, before the sub-message payload in the demultiplexing sub-mail payload unit, the method further includes: according to the priority Information is classified and prioritized.
当以太报文的服务标志单元中设置有已复用的以太报文的保序信息时, 在解复用子报文净荷单元中的子报文净荷之前还包括: 根据所述保序信息进 行保序处理。 When the order information of the multiplexed Ethernet message is set in the service flag unit of the Ethernet packet, before the sub-message payload in the demultiplexing sub-mail payload unit, the method further includes: Information is processed in order.
图 8为本发明一种以太 ·艮文解复用方法实施例二的流程图。 该实施例与 上一实施例的区别在于, 增加了流分类与优先级调度操作以及保序处理操作。 具体在步骤 202与步骤 204之间还包括: FIG. 8 is a flowchart of Embodiment 2 of an Ethernet demultiplexing method according to the present invention. The difference between this embodiment and the previous embodiment is that the flow classification and priority scheduling operations and the order-preserving processing operations are added. Specifically, between step 202 and step 204, the method further includes:
步骤 209、根据服务标志信息 Service Tag中的优先级信息 Pr i进行流分 类与优先级调度。 当上层应用程序指定根据优先级部署 QoS时, 根据服务标 志信息 Service Tag中的优先级信息 Pr i进行流分类与优先级调度, 如基于 简单流分类或复杂流分类的 QoS等。 Step 209: Perform flow classification and priority scheduling according to the priority information Pr i in the service tag information Service Tag. When the upper layer application specifies that the QoS is deployed according to the priority, the traffic classification and priority scheduling are performed according to the priority information Pr i in the service tag information Service Tag, such as QoS based on simple traffic classification or complex traffic classification.
步骤 210、 根据服务标志信息 Service Tag中的保序信息 Sequence进行 保序处理。 当上层应用程序指定使用报文的序列号时, 宿端可以根据该序列 号纠正被接收的报文的顺序, 具有较小序列号的报文将先被上层应用程序处 理, 亦可提供 TCP相似的丟帧检测与重传机制。 上述实施例中所述的报文不 限于以太承载网承载的小包业务, 如无线语音业务; 还可以包括来自 SDH/PDH 网络、 ATM网络、 PSTN/POTS等网络的报文, 提供类似于以太网上的 PPP (PPP over Etherne t , 简称 PPPoE)、 以太网上的 ATM ( ATM over Ethernet , 简称 ATMoE ) 的承载, 在发送端进行报文的复用封装, 在接收端进行解复用。 各网 络连接以太承载网的接入设备与服务器设备为核心设备。 以上图 ATM 网络为 例, 主要功能包括: Step 210: Perform a sequence-preserving process according to the order-preserving information Sequence in the service tag information Service Tag. When the upper layer application specifies the sequence number of the used message, the sink can correct the order of the received message according to the serial number. The message with the smaller serial number will be processed by the upper application first, and the TCP similarity can also be provided. Frame loss detection and retransmission mechanism. The packet described in the foregoing embodiment is not limited to the packet service carried by the Ethernet bearer network, such as the wireless voice service. The packet may also be included in the network such as the SDH/PDH network, the ATM network, and the PSTN/POTS, and is provided on the Ethernet. The bearer of PPP (PPP over Etherne t, PPPoE for short) and ATM over Ethernet (ATMoE for short) is multiplexed and encapsulated at the transmitting end and demultiplexed at the receiving end. Various networks The access device and the server device connected to the Ethernet bearer network are core devices. Take the above ATM network as an example. The main functions include:
1、 多个 ATM单元(ce l l )在出 ATM网络时被复用到以太报文中; 1. Multiple ATM units (ce l l ) are multiplexed into Ethernet packets when they are out of the ATM network;
2、 在服务器端, 实现以太报文的解复用, 得到各 ATM ce l h 2. On the server side, implement demultiplexing of Ethernet packets to obtain ATM ce l h
被复用的报文(或 ce l l )在源网络接入以太承载网的设备(或服务器) 上进行以太报文封装, 承载网根据 MAC地址进行普通 L2转发, 在接收网络接 入设备 (或服务器 )上进行解复用。 The multiplexed packet (or ce ll ) is encapsulated in the Ethernet packet on the device (or server) that the source network accesses the Ethernet bearer network, and the bearer network performs normal L2 forwarding according to the MAC address, and receives the network access device (or Demultiplexing on the server).
ATM ce l l , ΡΡΡ ·^文、 普通 IP 文都可以釆取该方式复用后在以太承载 网上传输, 在接收端解复用, 以提供类似 ATMoE、 PPPoE的传输方式。 ATM ce l l , ΡΡΡ ·^ and ordinary IP files can be multiplexed in this mode and transmitted on the Ethernet bearer network, and demultiplexed at the receiving end to provide a transmission mode similar to ATMoE and PPPoE.
图 9为本发明一种以太 ·艮文复用设备实施例一的结构示意图。 如图 9所 示, 包括: 第一接收模块 11、 判断模块 12、 第一封装模块 13、 复用模块 14 以及累加模块 15; 其中, 第一接收模块 11 , 用于接收待封装的报文; 判断模 块 12 , 与第一接收模块 11连接, 当判断出该待封装的报文的长度小于或等于 子报文净荷单元的预设的最大容许长度时, 继续判断该待封装的报文的长度 与已复用的以太报文的长度之和是否大于以太报文的预设的最大容许传输长 度; FIG. 9 is a schematic structural diagram of Embodiment 1 of an Ethernet/Multitext multiplexing device according to the present invention. As shown in FIG. 9, the method includes: a first receiving module 11, a determining module 12, a first encapsulating module 13, a multiplexing module 14, and an accumulating module 15; wherein, the first receiving module 11 is configured to receive a packet to be encapsulated; The judging module 12 is connected to the first receiving module 11. When it is determined that the length of the packet to be encapsulated is less than or equal to the preset maximum allowable length of the sub-mail payload unit, the judging module 12 continues to determine the packet to be encapsulated. Whether the sum of the length and the length of the multiplexed Ethernet message is greater than a preset maximum allowable transmission length of the Ethernet message;
若是, 则调用第一封装模块 13 , 对已复用的以太报文进行以太封装并发 送, 同时调用复用模块 14 , 将待封装的报文复用到一个新的以太报文; If yes, the first encapsulating module 13 is invoked, and the multiplexed Ethernet packet is encapsulated and sent by the Ethernet, and the multiplexing module 14 is invoked to multiplex the packet to be encapsulated into a new Ethernet packet.
若否, 则调用复用模块 14 , 将待封装的报文复用到已复用的以太报文的 一子报文净荷单元中, 所述子报文净荷单元包括复用头及子报文净荷, 所述 子报文净荷携带该待复用的报文, 所述复用头包括该待封装的报文的长度信 息及用户标识; 同时调用累加模块 15 , 将该待封装的报文的长度累加到已复 用的以太报文的载荷长度得到当前的以太报文的载荷长度。 该实施例中, 子 报文净荷单元中复用头还可以包括待封装的报文的用户标识。 If not, the multiplexing module 14 is invoked, and the packet to be encapsulated is multiplexed into a sub-message payload unit of the multiplexed Ethernet message, where the sub-message payload unit includes a multiplexing header and a sub-port. a payload of the packet, the payload of the sub-packet carrying the packet to be multiplexed, the multiplexing header includes length information of the packet to be encapsulated, and a user identifier; and the accumulating module 15 is called to encapsulate the packet to be encapsulated. The length of the packet is added to the payload length of the multiplexed Ethernet packet to obtain the payload length of the current Ethernet packet. In this embodiment, the multiplexer header in the sub-message payload unit may further include a user identifier of the packet to be encapsulated.
即: 判断模块 12 , 与第一接收模块 11连接, 用于当判断出待封装的报文 的长度小于或等于子报文净荷单元的预设的最大容许长度时, 继续判断待封 装的报文的长度与已复用的以太报文的长度之和是否大于以太报文的预设的 最大容许传输长度; That is, the judging module 12 is connected to the first receiving module 11 and is configured to continue to determine the to-be-suppressed when it is determined that the length of the packet to be encapsulated is less than or equal to the preset maximum allowable length of the sub-packet payload unit. Whether the sum of the length of the loaded message and the length of the multiplexed Ethernet message is greater than a preset maximum allowable transmission length of the Ethernet message;
第一封装模块 1 3用于当判断模块 12判断出待封装的报文的长度与已复 用的以太报文的长度之和大于以太报文的预设的最大容许传输长度时, 对已 复用的以太报文进行以太封装并发送; The first encapsulating module 13 is configured to: when the judging module 12 determines that the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is greater than the preset maximum allowable transmission length of the Ethernet packet, The Ethernet packet is encapsulated and sent by the Ethernet packet;
复用模块 14用于当判断模块 12判断出待封装的报文的长度与已复用的 以太报文的长度之和大于以太报文的预设的最大容许传输长度时, 将待封装 的报文复用到一个新的以太报文, 且用于当判断模块 12判断出待封装的报文 的长度与已复用的以太报文的长度之和不大于以太报文的预设的最大容许传 输长度时, 将待封装的报文复用到已复用的以太报文的一子报文净荷单元中, 子报文净荷单元包括复用头及子报文净荷, 复用头包括待封装的报文的长度 信息; The multiplexing module 14 is configured to: when the determining module 12 determines that the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is greater than the preset maximum allowable transmission length of the Ethernet packet, the packet to be encapsulated The text is multiplexed into a new Ethernet message, and is used by the determining module 12 to determine that the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet message is not greater than the preset maximum tolerance of the Ethernet message. When the transmission length is used, the packet to be encapsulated is multiplexed into a sub-message payload unit of the multiplexed Ethernet packet, and the sub-message payload unit includes a multiplex header and a sub-packet payload, and the multiplex header The length information of the packet to be encapsulated is included;
累加模块 15用于当判断模块 12判断出待封装的报文的长度与已复用的 以太报文的长度之和不大于以太报文的预设的最大容许传输长度时, 将待封 装的报文的长度累加到已复用的以太报文的载荷长度得到当前的以太报文的 载荷长度。 The accumulating module 15 is configured to: when the judging module 12 determines that the sum of the length of the packet to be encapsulated and the length of the multiplexed Ethernet packet is not greater than a preset maximum allowable transmission length of the Ethernet packet, the packet to be encapsulated The length of the text is added to the payload length of the multiplexed Ethernet packet to obtain the payload length of the current Ethernet packet.
图 10 为本发明一种以太报文复用设备实施例二的结构示意图。 如图 10 所示, 该实施例与上述以太 4艮文复用设备实施例一的区别在于, 还可以包括 第一扩展模块 16 , 用于在以太报文的服务标志单元中设置该以太报文的复用 类型信息为以太复用; 还可以包括第二扩展模块 Π , 用于在以太报文的服务 标志单元中设置该已复用的以太报文的优先级信息; 还可以包括第三扩展模 块 18 , 用于在以太报文的服务标志单元中设置该已复用的以太报文的保序信 息。 FIG. 10 is a schematic structural diagram of Embodiment 2 of an Ethernet packet multiplexing device according to the present invention. As shown in FIG. 10, the embodiment is different from the foregoing embodiment of the Ethernet device in the Ethernet packet. The first extension module 16 is further configured to set the Ethernet packet in the service identifier unit of the Ethernet packet. The multiplexing type information is Ethernet multiplexing; and may further include a second extension module, configured to set priority information of the multiplexed Ethernet message in a service flag unit of the Ethernet message; and may further include a third extension The module 18 is configured to set the order information of the multiplexed Ethernet message in the service flag unit of the Ethernet message.
当接收一个以上报文, 可以在接收报文的设备中设置一个定时子模块, 当超时仍然无新的报文到达时, 则对该以太报文进行封装并发送。 图 11为本 发明一种以太 _ ^文复用设备实施例三的结构示意图。 如图 11所示, 该实施例 与上述以太报文复用设备实施例一的区别在于, 在判断模块 12中还包括一定 时子模块 1201 ,当累加模块 15将该待封装的报文的长度累加到已复用的以太 报文的载荷长度得到当前的以太报文的载荷长度之后, 定时子模块 1201开始 计时, 当在预定的时间内无下一个报文到达所述第一接收模块 11时, 所述第 一封装模块 1 3 , 对当前已复用的以太报文进行以太封装并发送。 When receiving more than one packet, a timer sub-module can be set in the device that receives the packet. When no new packet arrives after the timeout, the Ethernet packet is encapsulated and sent. FIG. 11 is a schematic structural diagram of Embodiment 3 of an Ethernet multiplex device according to the present invention. As shown in FIG. 11, this embodiment The difference between the foregoing embodiment of the Ethernet packet multiplexing device is that the determining module 12 further includes a timed submodule 1201, and the accumulating module 15 adds the length of the packet to be encapsulated to the multiplexed Ethernet message. After the payload length of the current Ethernet packet is obtained, the timing sub-module 1201 starts counting. When no packet arrives at the first receiving module 11 within a predetermined time, the first encapsulating module 13 , the Ethernet packet that is currently multiplexed is encapsulated and sent by Ethernet.
图 12 为本发明一种以太报文复用设备实施例四的结构示意图。 如图 12 所示, 该实施例中, 与上述一种以太 4艮文复用设备实施例一的区别在于还包 括第二封装模块 19 ,当判断模块 12判断出该待封装的报文的长度大于子报文 净荷单元的预设的最大容许长度时, 调用第一封装模块 1 3 , 对已复用的以太 报文进行以太封装并发送, 同时调用第二封装模块 19 , 对该待封装的报文进 行传统以太封装并发送。 FIG. 12 is a schematic structural diagram of Embodiment 4 of an Ethernet packet multiplexing device according to the present invention. As shown in FIG. 12, in this embodiment, the difference from the first embodiment of the Ethernet device is as follows: the second module module 19 is further included, and the determining module 12 determines the length of the packet to be encapsulated. When the maximum allowable length of the sub-message payload unit is greater than the preset maximum allowable length of the sub-packet payload unit, the first encapsulation module 13 is invoked, and the multiplexed Ethernet packet is encapsulated and sent by the Ethernet, and the second encapsulation module 19 is invoked. The message is encapsulated and sent in traditional Ethernet.
图 1 3为本发明一种以太报文解复用设备实施例一的结构示意图。如图 1 3 所示, 包括: 第二接收模块 21 , 用于接收封装的以太报文, 该以太报文可以 包括载荷长度单元和至少一个子报文净荷单元, 子报文净荷单元中包括子报 文净荷和复用头, 复用头中包括子报文净荷单元的长度信息, 载荷长度单元 中包括以太报文的载荷长度; 解复用模块 22 , 与第二接收模块 21连接, 用于 根据一子报文净荷单元中的复用头中的子报文净荷的长度信息, 解复用该子 报文净荷单元中子报文净荷; 第一判断模块 24 , 与解复用模块 22连接, 判断 已解复用的报文的长度是否等于以太报文的载荷长度, 若是, 则停止解复用 操作; 否则, 调用解复用模块 22 , 继续解复用下一个子报文净荷单元, 直至 已解复用的报文的长度之和等于以太报文的载荷长度。 即: 第一判断模块 24 用于判断已解复用的报文的长度是否等于以太报文的载荷长度; 解复用模块 22用于根据子报文净荷单元中的复用头中的子报文净荷的长度信息, 解复用 子报文净荷单元中的子报文净荷, 且当第一判断模块 24判断已解复用的报文 的长度等于以太报文的载荷长度时, 停止解复用操作, 当第一判断模块 24判 断已解复用的报文的长度不等于以太报文的载荷长度时, 继续解复用下一个 子报文净荷单元, 直至已解复用的报文的长度等于以太报文的载荷长度。 该 实施例中的以太报文解复用设备还包括发送模块 23 , 与解复用模块 22连接, 用于根据复用头中的用户标识将业务内容送到对应的上层应用程序进行处 理。 FIG. 13 is a schematic structural diagram of Embodiment 1 of an Ethernet packet demultiplexing device according to the present invention. As shown in FIG. 13 , the method includes: a second receiving module 21, configured to receive an encapsulated Ethernet packet, where the Ethernet packet may include a payload length unit and at least one sub-post payload unit, and the sub-message payload unit The sub-message payload and the multiplexing header are included, and the multiplexer header includes the length information of the sub-message payload unit, the payload length unit includes the payload length of the Ethernet packet, and the demultiplexing module 22 and the second receiving module 21 a connection, configured to demultiplex the sub-message payload in the sub-message payload unit according to the length information of the sub-message payload in the multiplexer header in the sub-message payload unit; the first determining module 24 And connecting to the demultiplexing module 22, determining whether the length of the demultiplexed packet is equal to the payload length of the Ethernet packet, and if so, stopping the demultiplexing operation; otherwise, calling the demultiplexing module 22 to continue demultiplexing The next child message payload unit, until the sum of the lengths of the demultiplexed messages is equal to the payload length of the Ethernet message. That is, the first determining module 24 is configured to determine whether the length of the demultiplexed packet is equal to the payload length of the Ethernet packet; the demultiplexing module 22 is configured to use the sub-header in the multiplex header in the sub-message payload unit. The packet payload length information is used to demultiplex the sub-packet payload in the sub-packet payload unit, and when the first judging module 24 determines that the length of the demultiplexed packet is equal to the payload length of the Ether packet Stop the demultiplexing operation. When the first determining module 24 determines that the length of the demultiplexed packet is not equal to the payload length of the Ethernet packet, continue to demultiplex the next one. The child message payload unit, until the length of the demultiplexed message is equal to the payload length of the Ethernet message. The Ethernet packet demultiplexing device in this embodiment further includes a sending module 23, which is connected to the demultiplexing module 22, and is configured to send the service content to the corresponding upper layer application for processing according to the user identifier in the multiplexing header.
图 14为本发明一种以太 ·艮文解复用设备实施例二的结构示意图。如图 14 所示, 该实施例与上述以太 4艮文解复用设备实施例一的区别在于, 还可以包 括优先级调度模块 25 , 当以太报文的服务标志单元中设置有已复用的以太报 文的优先级信息时, 用于在解复用子报文净荷单元中的子报文净荷之前, 根 据所述优先级信息进行流分类与优先级调度。 还可以包括保序处理模块 26 , 当以太报文的服务标志单元中设置有已复用的以太报文的保序信息时, 用于 在解复用子报文净荷单元中的子报文净荷之前, 根据所述保序信息进行保序 处理。 FIG. 14 is a schematic structural diagram of Embodiment 2 of an Ethernet demultiplexing device according to the present invention. As shown in FIG. 14, the difference between the embodiment and the foregoing embodiment of the Ethernet demultiplexing device is that the priority scheduling module 25 may be further included, and the used service flag unit of the Ethernet packet is configured to be multiplexed. When the priority information of the Ethernet packet is used, the traffic classification and priority scheduling are performed according to the priority information before the sub-message payload in the sub-message payload unit is demultiplexed. The preamble processing module 26 may be further configured to: when the order information of the multiplexed Ethernet message is set in the service flag unit of the Ethernet message, the sub-message used in the demultiplexing sub-mail payload unit Before the payload, the order-preserving process is performed according to the order-preserving information.
图 15为本发明一种以太报文解复用设备实施例三的结构示意图。如图 15 所示, 该实施例与上述以太报文解复用设备实施例一的区别在于还包括第二 判断模块 27 , 与第二接收模块 21连接, 当以太报文的服务标志单元中设置该 以太报文的复用类型信息为以太复用时, 用于在解复用子报文净荷单元中的 子报文净荷之前, 第二判断模块 27用于根据所述复用类型信息判断所述以太 报文的复用类型是否为以太复用, 若是, 则调用解复用模块 22 , 根据一子报 文净荷单元中的复用头中的子报文净荷的长度信息, 解复用该子报文净荷单 元中子报文净荷。 FIG. 15 is a schematic structural diagram of Embodiment 3 of an Ethernet packet demultiplexing device according to the present invention. As shown in FIG. 15, the embodiment is different from the foregoing embodiment of the Ethernet packet demultiplexing device in that the second determining module 27 is further connected to the second receiving module 21, and is set in the service marking unit of the Ethernet message. When the multiplexing type information of the Ethernet packet is Ethernet multiplexing, the second determining module 27 is configured to use the multiplexing type information according to the multiplexing type information before demultiplexing the sub-message payload in the sub-message payload unit. Determining whether the multiplexing type of the Ethernet packet is Ethernet multiplexing, and if so, calling the demultiplexing module 22, according to the length information of the payload of the sub-packet in the multiplexing header in the payload unit of the sub-message, The sub-message payload in the sub-message payload unit is demultiplexed.
本发明的以上实施例中, 提供一种直接将多个报文复用入以太报文并在以 太承载网上进行二层传输的方式, 不再使用 UDP/ IP头, 各报文前都添加一个 复用头 Mux Header以表征该报文净荷所携带的业务内容的类型与长度等, 扩 展传统以太的 EtherType字段为 TYPE以支持 Etherne t Mux帧的识别、 QoS及才艮 文保序, 支持传统的 802. l p/q与普通以太封装。 In the above embodiment of the present invention, a method for directly multiplexing multiple packets into an Ethernet packet and performing Layer 2 transmission on the Ethernet bearer network is provided, and the UDP/IP header is no longer used, and one packet is added before each packet. The multiplex header Mux Header is used to characterize the type and length of the service content carried by the payload of the message, and the EtherType field of the traditional Ethernet is extended to TYPE to support Etherne t Mux frame identification, QoS, and language preservation, and supports traditional 802. lp/q is packaged with normal Ethernet.
综上所述, 本发明具有如下优点: ( 1 )进一步提高了传输效率, 增强了灵活性、 QoS特性, 实现更加简单, 进一步降低了开发与运营成本; In summary, the present invention has the following advantages: (1) Further improving transmission efficiency, enhancing flexibility, QoS characteristics, and achieving simpler implementation, further reducing development and operation costs;
( 2 )去除了 IP头 /UDP头, 而在各 ^艮文前添加一个复用头 Mux Header以表 征该报文净荷所携带的业务内容的类型与长度等, 解决了现有技术使用固定 长度净荷传输的问题, 从而节约了网络资源, 提高了网络资源利用率; (2) The IP header/UDP header is removed, and a multiplex header Mux Header is added in front of each message to characterize the type and length of the service content carried by the packet payload, and the prior art is fixed. The problem of length payload transmission, thereby saving network resources and improving network resource utilization;
( 3 )针对但不限于可大量复用的小包业务, 提供一种可承载各种网络类 型报文进行复用传输的方式。 (3) For a small packet service that can be multiplexed in a large amount, a manner of carrying various types of network type messages for multiplexing transmission is provided.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: R0M、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。 A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The steps of the foregoing method embodiments are included; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
Applications Claiming Priority (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200710160585.3 | 2007-12-27 | ||
| CN200710160585 | 2007-12-27 | ||
| CN200810081622.6 | 2008-02-27 | ||
| CN200810081622.6A CN101471937B (en) | 2007-12-27 | 2008-02-27 | Method and apparatus for multiplexing and demultiplexing Ether message |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2009082897A1 true WO2009082897A1 (en) | 2009-07-09 |
Family
ID=40823772
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2008/072345 Ceased WO2009082897A1 (en) | 2007-12-27 | 2008-09-12 | Method and device for multiplexing and demultiplexing ethernet messages |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2009082897A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115714637A (en) * | 2022-09-13 | 2023-02-24 | 南京濠暻通讯科技有限公司 | Message transmission device and method based on SRIO time division multiplexing and demultiplexing |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5570362A (en) * | 1994-03-16 | 1996-10-29 | Fujitsu Limited | System for transferring variable length cells under ATM |
| CN1490987A (en) * | 2002-10-18 | 2004-04-21 | ��Ϊ��������˾ | A Method for Transmitting Data Service on Synchronous Digital Network |
| CN1777152A (en) * | 2004-11-12 | 2006-05-24 | 英特尔公司 | Data transmission between a media gateway and server |
| WO2007025029A2 (en) * | 2005-08-24 | 2007-03-01 | Qualcomm Incorporated | Transmission of multiplex protocol data units in physical layer packets |
-
2008
- 2008-09-12 WO PCT/CN2008/072345 patent/WO2009082897A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5570362A (en) * | 1994-03-16 | 1996-10-29 | Fujitsu Limited | System for transferring variable length cells under ATM |
| CN1490987A (en) * | 2002-10-18 | 2004-04-21 | ��Ϊ��������˾ | A Method for Transmitting Data Service on Synchronous Digital Network |
| CN1777152A (en) * | 2004-11-12 | 2006-05-24 | 英特尔公司 | Data transmission between a media gateway and server |
| WO2007025029A2 (en) * | 2005-08-24 | 2007-03-01 | Qualcomm Incorporated | Transmission of multiplex protocol data units in physical layer packets |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115714637A (en) * | 2022-09-13 | 2023-02-24 | 南京濠暻通讯科技有限公司 | Message transmission device and method based on SRIO time division multiplexing and demultiplexing |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN100388700C (en) | A Method for Transmitting Data Service on Synchronous Digital Network | |
| CA2382271C (en) | Circuit emulation service over an internet protocol network | |
| US7623508B2 (en) | Bandwidth on demand for media services at stationary equipment unit | |
| CN100574283C (en) | Uplink and downlink transmission methods and aggregation nodes | |
| CN102136959B (en) | Ethernet link management method, device and system | |
| WO2010072162A1 (en) | Method, system and device for configuring semi-persistent scheduling resource | |
| CN1934837A (en) | Method and system for quality of service support for Ethernet multiservice interworking over multiprotocol label switching | |
| WO2010031324A1 (en) | Method, device and system for data transmission | |
| WO2012130050A1 (en) | Wireless communication method, sending device and receiving device | |
| CN101360271A (en) | Wireless bearing method, device and system for circuit domain service data | |
| JP2007529182A (en) | Providing information on upper layer packet or frame boundary in GRE frame | |
| WO2014183281A1 (en) | Data transmission method, apparatus, communication device and communication system | |
| WO2009026845A1 (en) | Method for data transmitting and receiving, wireless access point apparatus, gateway and communication system | |
| WO2009152711A1 (en) | Method and device for realizing priority inter-communication | |
| WO2009086774A1 (en) | A method, an apparatus and a system for transmitting data | |
| EP4191909B1 (en) | Data transmission method and device therefor | |
| CN101471937B (en) | Method and apparatus for multiplexing and demultiplexing Ether message | |
| CN101309263B (en) | Data transmission method, apparatus and system | |
| WO2009082897A1 (en) | Method and device for multiplexing and demultiplexing ethernet messages | |
| CN1969514B (en) | Information transmission in a communications system | |
| CN100512279C (en) | Method and system of mapping quality of service from mobile communication system to IP network | |
| WO2009129686A1 (en) | Method and system for configuring non-scheduled service resource, radio network controller | |
| WO2008095394A1 (en) | Method and device for data transmitting and receiving between radio network controller and station node | |
| CN100571210C (en) | IPv4/IPv6 dual-stack IP-DSLAM system and implementation method | |
| Frattasi et al. | Interworking between WLAN and WMAN: an ethernet-based integrated device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 08800854 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: 08800854 Country of ref document: EP Kind code of ref document: A1 |