[go: up one dir, main page]

CN101471937B - Method and device for multiplexing and demultiplexing Ethernet packets - Google Patents

Method and device for multiplexing and demultiplexing Ethernet packets Download PDF

Info

Publication number
CN101471937B
CN101471937B CN200810081622.6A CN200810081622A CN101471937B CN 101471937 B CN101471937 B CN 101471937B CN 200810081622 A CN200810081622 A CN 200810081622A CN 101471937 B CN101471937 B CN 101471937B
Authority
CN
China
Prior art keywords
message
sub
ethernet
length
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.)
Active
Application number
CN200810081622.6A
Other languages
Chinese (zh)
Other versions
CN101471937A (en
Inventor
王毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200810081622.6A priority Critical patent/CN101471937B/en
Priority to PCT/CN2008/072345 priority patent/WO2009082897A1/en
Publication of CN101471937A publication Critical patent/CN101471937A/en
Application granted granted Critical
Publication of CN101471937B publication Critical patent/CN101471937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention relates to an ether message multiplexing and de-multiplexing method and a device. The embodiment of the ether message multiplexing method comprises the following steps: receiving a sub message to be encapsulated; judging whether the sum of the length of the sub message to be encapsulated and the length of an ether message multiplexed is larger than the predetermined maximal allowable transmission length preset of the ether message when the length of the sub message to be encapsulated is less than or equal to the predetermined maximal allowable transmission length of the payload unit of the sub message; carrying out ether encapsulation and transmission to the ether message multiplexed if the sum of the length of the sub message to be encapsulated and the length of the ether message multiplexed is larger than the predetermined maximal allowable transmission length of the ether message; multiplexing the sub message to be encapsulated into the payload unit of the sub message of the ether message multiplexed if the sum of the length of the sub message to be encapsulated and the length of the ether message multiplexed is not larger than the predetermined maximal allowable transmission length of the ether message, and accumulating the length of the sub message to be encapsulated and the load length of the ether message multiplexed to obtain the load length of the current ether message. The embodiment of the invention improves the transmission efficiency of packet services and other messages and enhances the multiplexing flexibility of the messages.

Description

以太报文复用、解复用方法及设备Method and device for multiplexing and demultiplexing Ethernet packets

技术领域technical field

本发明属于网络与通信技术领域,涉及以太报文复用、解复用方法及设备。The invention belongs to the technical field of networks and communications, and relates to methods and equipment for multiplexing and demultiplexing Ethernet messages.

背景技术Background technique

随着网络全IP化与扁平化的发展,ATM技术已被淘汰,应用点对点通信协议(Point to Point Protocol,简称PPP)技术的SDH/PDH网络即将停止建设,以太网技术在城域网甚至广域网取得长足发展,使用以太网(Ethernet)承载无线语音等小包业务传输是网络发展的趋势。With the development of all-IP and flattening of the network, ATM technology has been eliminated, and the construction of SDH/PDH network using Point to Point Protocol (PPP) technology is about to stop. It has made great progress, and it is a trend of network development to use Ethernet (Ethernet) to bear the transmission of small packet services such as wireless voice.

一现有技术采用无线UDP层上的帧封装协议(Frame Protocol,简称FP)复用(Multiplexing,简称Mux)技术实现小包业务的传输。FPMux技术为在基站(Radio Network Controller,简称RNC)与3G基站(Node of Base station,简称NodeB)之间采用用户数据报协议((User Datagram Protocol,简称UDP)层的复用技术。如图1所示,RNC或NodeB在发送报文时进行FPMux,在接收保文时解复用(FPDMux)。对于NodeB,NodeB通过Iub接口与上游RNC相连,在NodeB发向RNC的数据流方向上需要实现FPMux操作,所支持的复用Channel数=NodeB支持的区分服务标记(Diffserv Code Point,简称DSCP)个数。在接收从RNC来的下行数据时,需要能够识别FPMux包和正常非Mux包,对于Mux包需要能正确解复用后处理。具体FPMux的封装格式如表1所示:A prior art adopts the frame encapsulation protocol (Frame Protocol, FP for short) multiplexing (Multiplexing, Mux for short) technology on the wireless UDP layer to realize the transmission of small packet services. The FPMux technology is a multiplexing technology using the User Datagram Protocol (UDP) layer between the base station (Radio Network Controller, referred to as RNC) and the 3G base station (Node of Base station, referred to as NodeB). As shown in Figure 1 Shown, RNC or NodeB carry out FPMux when sending message, demultiplex (FPDMux) when receiving guaranteed text.For NodeB, NodeB is connected with upstream RNC by Iub interface, needs to realize on the data flow direction that NodeB sends to RNC FPMux operation, supported multiplexing Channel number=NodeB supports differentiated service mark (Diffserv Code Point, be called for short DSCP) number.When receiving the downlink data that comes from RNC, need to be able to distinguish FPMux bag and normal non-Mux bag, for The Mux package needs to be demultiplexed and processed correctly. The specific packaging format of FPMux is shown in Table 1:

表1为FPMux的封装格式Table 1 is the packaging format of FPMux

Figure 2008100816226A00800021
Figure 2008100816226A00800021

协议规定,三元组(SIP、DIP、DSCP)唯一确定一复用通道,也即有相同SIP、DIP和DSCP值的数据流才会复用到一个FP Mux帧中。FP Mux是一种建立在UDP上对语音等小包进行复用的技术,报文的IP/UDP Header完全保留,各FP Payload前添加一个Mux Header,UID一般是UDP DPORT。The protocol stipulates that the triplet (SIP, DIP, DSCP) uniquely determines a multiplexing channel, that is, data streams with the same SIP, DIP, and DSCP values will be multiplexed into an FP Mux frame. FP Mux is a technology based on UDP to multiplex voice and other small packets. The IP/UDP Header of the message is completely reserved, and a Mux Header is added before each FP Payload. The UID is generally UDP DPORT.

该技术存在如下缺陷:由于同时存在IP头与UDP头,因此浪费了一些网络资源;另外由于FPMux技术同时兼容Ethernet与PPP,由于应用PPP的SDH/PDH网络不再具有发展前景,而对于以太承载网络将无须支持PPP,因此如果兼容PPP,就会浪费一些网络资源。This technology has the following defects: due to the existence of IP header and UDP header at the same time, some network resources are wasted; in addition, because FPMux technology is compatible with Ethernet and PPP at the same time, because SDH/PDH networks using PPP no longer have development prospects, and for Ethernet bearer The network will not need to support PPP, so if it is compatible with PPP, some network resources will be wasted.

另一现有技术采用智能时分复用(Intelligent Time-DivisionMultiplexing,简称ITDM)技术实现小包业务的传输。ITDM技术为基于TDM技术、可连接多种网络(含IP网络、PSTN/POTS网络)的技术。具体ITDM字段的封装结构示意图,如图2所示。图2的说明如下:DMAC表示传统目的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 JitterQueue on Destination Node)与1字节序列号;PKT Type:表明是普通ITDM报文还是ITDMCP控制报文;PAD\TAG、PKT Type组成ITDM Shim;Payload表示报文净荷,Payload的封装中每个Quad TDM Segment含4个TDM Segment与4个Segment ID,长度分别为固定的8字节与2字节。Payload中封装有24个TDMSegment时,相应地可以有n=6个Quad TDM Segment。Payload中最多可以封装148个TDM Segment,相应地最多可以有n=37个Quad TDM Segment。Another prior art adopts an intelligent time-division multiplexing (Intelligent Time-Division Multiplexing, ITDM for short) technology to realize the transmission of small packet services. ITDM technology is based on TDM technology and can connect various networks (including IP network, PSTN/POTS network). A schematic diagram of an encapsulation structure of a specific ITDM field is shown in FIG. 2 . The description of Figure 2 is as follows: DMAC represents the traditional destination MAC address, 6 bytes long; SMAC represents the traditional source MAC address, 6 bytes long; Ether Type represents the message type is ITDM, 2 bytes long; DMAC, SMAC, Ether Type Constitutes the MAC Header; PAD indicates the reserved padding field, 6 bytes long; TAG indicates a 2-byte packet ID (16-bit Packet ID specifies JitterQueue on Destination Node) and a 1-byte serial number; PKT Type: indicates yes Ordinary ITDM messages are still ITDMCP control messages; PAD\TAG and PKT Type form ITDM Shim; Payload indicates the message payload, and each Quad TDM Segment in the Payload package contains 4 TDM Segments and 4 Segment IDs, and the lengths are respectively Fixed 8 bytes vs 2 bytes. When there are 24 TDMSegments encapsulated in the Payload, there can be n=6 Quad TDM Segments accordingly. A maximum of 148 TDM Segments can be encapsulated in the Payload, correspondingly there can be a maximum of n=37 Quad TDM Segments.

该技术存在如下缺陷:仅支持固定长度报文封装,不灵活;即使是针对语音小包,也需要占用多个TDM Segment(语音小包典型长度为22字节);不支持报文优先级;采用TDM技术的微码实现较复杂,软件复杂度高,可能需要专用硬件实现;网络传输需要E1/T1类似的精确时钟保证,成本较高。This technology has the following defects: it only supports fixed-length message encapsulation, which is inflexible; even for small voice packets, it needs to occupy multiple TDM Segments (the typical length of voice packets is 22 bytes); it does not support message priority; it uses TDM The microcode implementation of the technology is relatively complicated, and the software complexity is high, and special hardware may be required for implementation; network transmission requires E1/T1 similar accurate clock guarantees, and the cost is relatively high.

发明内容Contents of the invention

本发明的第一方面是提供一种以太报文复用方法及设备,以提高了小包业务等报文的传输效率。The first aspect of the present invention is to provide an Ethernet message multiplexing method and equipment, so as to improve the transmission efficiency of messages such as small packet services.

本发明的第二方面是提供一种以太报文解复用方法及设备,以提高以太报文的解复用效率。The second aspect of the present invention is to provide a method and device for demultiplexing Ethernet messages, so as to improve the demultiplexing efficiency of Ethernet messages.

为实现上述第一方面,本发明的实施例提供了一种以太报文复用方法,其中包括:接收待封装的子报文;当该待封装的子报文的长度小于或等于子报文净荷单元的预设的最大容许长度时,判断该待封装的子报文的长度与已复用的以太报文的长度之和是否大于以太报文的预设的最大容许传输长度;若是,则对已复用的以太报文进行以太封装并发送,同时将待封装的子报文复用到一个新的以太报文;若否,则将待封装的子报文复用到已复用的以太报文的一子报文净荷单元中,并将所述该待封装的子报文的长度累加到已复用的以太报文的载荷长度得到当前的以太报文的载荷长度,其中所述子报文净荷单元包括复用头及子报文净荷,所述子报文净荷携带该待复用的子报文,所述复用头包括该待封装的子报文的长度信息。In order to realize the first aspect above, an embodiment of the present invention provides a method for multiplexing Ethernet packets, which includes: receiving sub-messages to be encapsulated; when the length of the sub-messages to be encapsulated is less than or equal to the sub-message When the preset maximum allowable length of the payload unit, it is judged whether the sum of the length of the sub-message to be encapsulated and the length of the multiplexed Ethernet message is greater than the preset maximum allowable transmission length of the Ethernet message; if so, Then carry out Ethernet encapsulation and send to the multiplexed Ethernet message, and multiplex the sub-message to be encapsulated into a new Ethernet message; if not, then multiplex the sub-message to be encapsulated into the multiplexed In a sub-message payload unit of the Ethernet message, and the length of the sub-message to be encapsulated is added to the load length of the multiplexed Ethernet message to obtain the load length of the current Ethernet message, wherein The sub-message payload unit includes a multiplexing header and a sub-message payload, the sub-message payload carries the sub-message to be multiplexed, and the multiplexing header includes the sub-message of the to-be-encapsulated sub-message length information.

为实现上述第一方面,本发明的实施例还提供了一种以太报文复用设备,其中包括:接收模块、判断模块、第一封装模块、复用模块以及累加模块;接收模块,用于接收待封装的子报文;判断模块,与所述接收模块连接,当判断出该待封装的子报文的长度小于或等于子报文净荷单元的预设的最大容许长度时,继续判断该待封装的子报文的长度与已复用的以太报文的长度之和是否大于以太报文的预设的最大容许传输长度,若是,则调用第一封装模块,对已复用的以太报文进行以太封装并发送,同时调用复用模块,将待封装的子报文复用到一个新的以太报文;若否,则调用复用模块,将待封装的子报文复用到已复用的以太报文的一子报文净荷单元中,所述子报文净荷单元包括复用头及子报文净荷,所述子报文净荷携带该待复用的子报文,所述复用头包括该待封装的子报文的长度信息;同时调用累加模块,将该待封装的子报文的长度累加到已复用的以太报文的载荷长度得到当前的以太报文的载荷长度。In order to realize the above-mentioned first aspect, an embodiment of the present invention also provides an Ethernet message multiplexing device, which includes: a receiving module, a judging module, a first encapsulation module, a multiplexing module, and an accumulation module; the receiving module is used for Receive the sub-message to be encapsulated; the judging module is connected to the receiving module, and when it is judged that the length of the sub-message to be encapsulated is less than or equal to the preset maximum allowable length of the sub-message payload unit, continue to judge Whether the sum of the length of the sub-message to be encapsulated and the length of the multiplexed Ethernet message is greater than the preset maximum allowable transmission length of the Ethernet message, if so, then call the first encapsulation module to The message is encapsulated and sent by Ethernet, and at the same time, the multiplexing module is called to multiplex the sub-message to be encapsulated into a new Ethernet message; if not, the multiplexing module is called to multiplex the sub-message to be encapsulated In a sub-message payload unit of the Ethernet message that has been multiplexed, the sub-message payload unit includes a multiplexing header and a sub-message payload, and the sub-message payload carries the sub-message to be multiplexed. message, the multiplexing header includes the length information of the sub-message to be encapsulated; at the same time, the accumulation module is called to add the length of the sub-message to be encapsulated to the load length of the multiplexed Ethernet message to obtain the current The payload length of the Ethernet packet.

上述以太报文复用方法、设备的实施例中,通过在各子报文净荷的前端添加复用头,以表征该子报文净荷所携带的业务内容的类型及长度,与现有的UDP/IP头相比,节约了网络资源,提高了网络资源利用率;同时,根据子报文的实际长度设置子报文净荷单元,与现有的采用固定长度复用报文的方法相比,避免了额外资源的占用,增强了报文服用的灵活性。In the embodiment of the above-mentioned Ethernet message multiplexing method and device, by adding a multiplexing header at the front end of each sub-message payload, to represent the type and length of the business content carried by the sub-message payload, which is different from the existing Compared with the original UDP/IP header, it saves network resources and improves the utilization rate of network resources; at the same time, the sub-message payload unit is set according to the actual length of the sub-message, which is different from the existing method of multiplexing messages with a fixed length. Compared with this method, the occupation of additional resources is avoided, and the flexibility of packet consumption is enhanced.

为实现上述第二方面,本发明的实施例提供了一种以太报文解复用方法,其中包括:接收以太报文;提取所述以太报文中的载荷长度单元和至少一个子报文净荷单元,所述子报文净荷单元中包括子报文净荷和复用头,所述复用头中包括所述子报文净荷单元的长度信息,所述载荷长度单元中包括所述以太报文的载荷长度;根据所述子报文净荷的长度信息,解复用该子报文净荷单元中子报文净荷;判断已解复用的报文的长度是否等于所述以太报文的载荷长度,若是,则停止解复用操作;否则,继续解复用下一个子报文净荷单元,直至已解复用的报文的长度等于以太报文的载荷长度。In order to realize the above-mentioned second aspect, an embodiment of the present invention provides a method for demultiplexing an Ethernet message, which includes: receiving the Ethernet message; extracting the payload length unit and at least one sub-message net in the Ethernet message; A load unit, the sub-message payload unit includes a sub-message payload and a multiplexing header, the multiplexing header includes length information of the sub-message payload unit, and the payload length unit includes the According to the length information of the sub-message payload, demultiplex the sub-message payload in the sub-message payload unit; judge whether the length of the demultiplexed message is equal to the If it is the payload length of the Ethernet message, then stop the demultiplexing operation; otherwise, continue to demultiplex the next sub-message payload unit until the length of the demultiplexed message is equal to the payload length of the Ethernet message.

为实现上述第二方面,本发明的实施例还提供了一种以太报文解复用设备,其中包括:接收模块,用于接收封装的以太报文;解复用模块,与接收模块连接,用于根据一子报文净荷单元中的复用头中的子报文净荷的长度信息,解复用该子报文净荷单元中的子报文净荷;第一判断模块,与解复用模块连接,判断已解复用的报文的长度是否等于以太报文的载荷长度,若是,则停止解复用操作;否则,调用解复用模块,继续解复用下一个子报文净荷单元,直至已解复用的报文的长度等于以太报文的载荷长度。In order to realize the above-mentioned second aspect, an embodiment of the present invention also provides an Ethernet message demultiplexing device, which includes: a receiving module for receiving encapsulated Ethernet messages; a demultiplexing module connected to the receiving module, It is used to demultiplex the sub-message payload in the sub-message payload unit according to the length information of the sub-message payload in the multiplexing header in the sub-message payload unit; the first judging module, and The demultiplexing module is connected to determine whether the length of the demultiplexed message is equal to the payload length of the Ethernet message, and if so, stop the demultiplexing operation; otherwise, call the demultiplexing module to continue demultiplexing the next subgram Text payload unit until the length of the demultiplexed message is equal to the payload length of the Ethernet message.

上述以太报文解复用方法、设备的实施例中,直接根据各子报文净荷的前端添加的复用头中携带的,用于表征该子报文净荷所携带的业务内容的类型及长度信息,来实现以太报文的解复用,从而提高了解复用的效率。In the embodiments of the above-mentioned Ethernet message demultiplexing method and device, it is used to characterize the type of business content carried by the sub-message payload directly according to what is carried in the multiplexing header added to the front end of each sub-message payload. and length information to realize the demultiplexing of Ethernet packets, thereby improving the efficiency of demultiplexing.

附图说明Description of drawings

图1为现有技术的一复用与解复用流程示意图;Fig. 1 is a schematic flow diagram of multiplexing and demultiplexing in the prior art;

图2为现有技术的一基于ITDM技术的复用报文的结构示意图;FIG. 2 is a schematic structural diagram of a multiplexing message based on ITDM technology in the prior art;

图3为本发明的实施例中所涉及的以太报文的一结构示意图;Fig. 3 is a structural representation of the Ethernet message involved in the embodiment of the present invention;

图4为本发明的实施例中基于以太承载网的RNC与NodeB之间的报文复用与解复用流程图示意图;Fig. 4 is the schematic flow chart diagram of message multiplexing and demultiplexing between RNC and NodeB based on Ethernet bearer network in the embodiment of the present invention;

图5为本发明一种以太报文复用方法实施例一的流程图;Fig. 5 is the flowchart of Embodiment 1 of a kind of Ethernet packet multiplexing method of the present invention;

图6为本发明一种以太报文复用方法实施例二的流程图;Fig. 6 is the flowchart of Embodiment 2 of a kind of Ethernet packet multiplexing method of the present invention;

图7为本发明一种以太报文解复用方法实施例一的流程图;Fig. 7 is the flow chart of Embodiment 1 of a kind of Ethernet packet demultiplexing method of the present invention;

图8为本发明一种以太报文解复用方法实施例二的流程图;Fig. 8 is the flowchart of Embodiment 2 of a kind of Ethernet message demultiplexing method of 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;

图10为本发明一种以太报文复用设备实施例二的结构示意图;10 is a schematic structural diagram of Embodiment 2 of an Ethernet packet multiplexing device according to the present invention;

图11为本发明一种以太报文复用设备实施例三的结构示意图;11 is a schematic structural diagram of Embodiment 3 of an Ethernet packet multiplexing device according to the present invention;

图12为本发明一种以太报文复用设备实施例四的结构示意图;12 is a schematic structural diagram of Embodiment 4 of an Ethernet packet multiplexing device according to the present invention;

图13为本发明一种以太报文解复用设备实施例一的结构示意图;13 is a schematic structural diagram of Embodiment 1 of an Ethernet packet demultiplexing device according to the present invention;

图14为本发明一种以太报文解复用设备实施例二的结构示意图;14 is a schematic structural diagram of Embodiment 2 of an Ethernet packet demultiplexing device according to the present invention;

图15为本发明一种以太报文解复用设备实施例三的结构示意图。FIG. 15 is a schematic structural diagram of Embodiment 3 of an Ethernet packet demultiplexing device according to the present invention.

具体实施方式Detailed ways

下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

图3为本发明的实施例中所涉及的以太报文的一结构示意图。该以太报文的说明如下:FIG. 3 is a schematic structural diagram of an Ethernet packet involved in an embodiment of the present invention. The description of the Ethernet message is as follows:

1、DMAC表示传统目的MAC地址,6字节长;1. DMAC represents the traditional destination MAC address, 6 bytes long;

2、SMAC表示传统源MAC地址,6字节长;2. SMAC means traditional source MAC address, 6 bytes long;

3、VLAN TAG(Optional,可选)表示传统的802.1p/q,4字节长;3. VLAN TAG (Optional, optional) means traditional 802.1p/q, 4 bytes long;

4、Service Tag表示该报文为Ethernet Mux报文,同时提供QoS、报文保序功能,其中内部字段的描述为:TYPE表示净荷类型,0x9910,解复用(DMux)标志,2字节长;Pri表示优先级信息,类似DSCP,在本实施例中其长度为3bit长;Res表示预留长度,在本实施例中其长度为1bit长;Sequence表示报文保序信息,如用于报文保序的序列号,在本实施例中其长度可以为12bit长;Total Length是以太报文的载荷长度单元,其中保存有以太报文的载荷长度,所述载荷长度是以字节为单位。4. Service Tag indicates that the message is an Ethernet Mux message, and provides QoS and message order protection functions at the same time. The description of the internal field is: TYPE indicates the payload type, 0x9910, demultiplexing (DMux) flag, 2 bytes Long; Pri represents priority information, similar to DSCP, and its length is 3bit long in this embodiment; Res represents the reserved length, and its length is 1 bit long in this embodiment; Sequence represents message order preservation information, such as for The serial number of message order, in the present embodiment, its length can be 12bit long; Total Length is the load length unit of Ethernet message, wherein preserves the load length of Ethernet message, and described load length is with byte as unit.

5、FCS表示校验和,用于32位的循环冗余校验(Cyclic Redundancy Check,简称CRC)校验,该实施例中其长度为4字节长。5. FCS represents a checksum, which is used for a 32-bit cyclic redundancy check (Cyclic Redundancy Check, referred to as CRC) check, and its length is 4 bytes long in this embodiment.

6、Payload即报文净荷,0-1496字节以符合以太网64-1518字节帧长度的限制,当净荷长度不足时,帧存在Padding字段,最大42字节。各子报文被复用在Payload内,每个子报文净荷Sub Payload前加一个复用头MuxHeader(3-4字节),组成一个子报文净荷单元,接收端设备将根据该MuxHeader进行解复用。对Mux Header子字段的描述如下:UID表示用户标识,该实施例中可以为16bit长,用户可根据业务类型自定义;E:1bit,表示是否具有扩展字段;Length:7bit,表示子报文净荷的长度;Extend:8bit,用户可以在Extend中作自定义的扩展;Payload中被复用的报文可以是任意类型,如ATM cell或PPP报文。6. Payload is the payload of the message, 0-1496 bytes to comply with the Ethernet frame length limit of 64-1518 bytes. When the payload length is insufficient, there is a Padding field in the frame, with a maximum of 42 bytes. Each sub-message is multiplexed in the Payload, and a multiplexing header MuxHeader (3-4 bytes) is added before each sub-message payload Sub Payload to form a sub-message payload unit, and the receiving end device will for demultiplexing. The description of the Mux Header subfield is as follows: UID represents the user identifier, which can be 16bit long in this embodiment, and the user can customize it according to the business type; E: 1bit, indicating whether there is an extension field; Length: 7bit, indicating the net content of the sub-message The length of the payload; Extend: 8bit, users can make custom extensions in Extend; the multiplexed packets in Payload can be of any type, such as ATM cell or PPP packets.

7、Padding(Optional,可选)字段,当Payload中的净荷长度不足时,帧存在Padding字段。7. Padding (Optional, optional) field. When the length of the payload in the Payload is insufficient, the frame contains the Padding field.

其中,在本实施方式中,所述载荷长度即所述的报文净荷的长度信息,在其他可选择的实施方式中,该载荷长度亦可为所述报文净荷与上述DMAC、SMAC、Vlan TAG、Service Tag、Padding、FCS中的一个或几个的长度之和。Wherein, in this embodiment, the payload length is the length information of the message payload. In other optional embodiments, the payload length can also be the length information of the message payload and the above-mentioned DMAC, SMAC , Vlan TAG, Service Tag, Padding, FCS, or the sum of the lengths of several of them.

下面以针对3G NodeB设备与RNC设备之间的以太报文的复用、解复用为例,对本发明以太报文复用、解复用方法进行详细的说明。Taking the multiplexing and demultiplexing of Ethernet packets between 3G NodeB equipment and RNC equipment as an example, the method for multiplexing and demultiplexing Ethernet packets of the present invention will be described in detail below.

图4为本发明中基于以太承载网的NodeB与RNC之间的报文复用与解复用流程图示意图。如图4所示,NodeB与RNC之间的报文复用与解复用包括如下几个方面:Fig. 4 is a schematic flowchart of message multiplexing and demultiplexing between NodeB and RNC based on Ethernet bearer network in the present invention. As shown in Figure 4, the message multiplexing and demultiplexing between NodeB and RNC includes the following aspects:

1、NodeB侧实现某一类业务的报文的以太复用,对应地,RNC侧实现以太解复用;1. The NodeB side implements Ethernet multiplexing of packets of a certain type of service, and correspondingly, the RNC side implements Ethernet demultiplexing;

2、RNC侧实现某一类业务报文的以太复用,对应地,NodeB侧实现以太解复用;2. The RNC side implements Ethernet multiplexing of a certain type of service message, and correspondingly, the NodeB side implements Ethernet demultiplexing;

3、使用以太网进行复用报文的承载。3. Use Ethernet to carry multiplexed packets.

以语音类业务的报文,即语音报文复用为例,则图3中子报文负荷SubPayload为Voice Payload。Taking voice service packets, that is, voice packet multiplexing as an example, the SubPayload in Figure 3 is Voice Payload.

在NodeB->RNC方向,来自终端用户的多个子报文在NodeB被复用到Payload中,根据报文类型、长度等进行封装,再进行普通以太封装,以太承载网进行L2转发,在RNC端,Service Tag中的TYPE字段若表明该报文为Ethernet Mux,将根据Mux Header进行报文的解复用。In the NodeB->RNC direction, multiple sub-messages from end users are multiplexed into the Payload at NodeB, encapsulated according to the type and length of the message, and then encapsulated with ordinary Ethernet, and the Ethernet bearer network performs L2 forwarding. , if the TYPE field in the Service Tag indicates that the message is an Ethernet Mux, the message 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, while the NodeB performs packet demultiplexing.

本发明的实施例提供一种以太报文复用方法,其中包括:接收待封装的子报文;当该待封装的子报文的长度小于或等于子报文净荷单元的预设的最大容许长度时,判断该待封装的子报文的长度与已复用的以太报文的长度之和是否大于以太报文的预设的最大容许传输长度,若是,则对已复用的以太报文进行以太封装并发送,同时将待封装的子报文复用到一个新的以太报文;若否,则将待封装的子报文复用到已复用的以太报文的报文净荷中的一子报文净荷单元中,所述子报文净荷单元包括复用头及子报文净荷,所述子报文净荷携带该待复用的子报文,所述复用头包括该待封装的子报文的长度信息及用户标识;并将该待封装的子报文的长度累加到以太报文的载荷长度中。An embodiment of the present invention provides a method for multiplexing Ethernet packets, which includes: receiving sub-messages to be encapsulated; when the length of the sub-messages to be encapsulated is less than or equal to the preset maximum When the length is allowed, it is judged whether the sum of the length of the sub-message to be encapsulated and the length of the multiplexed Ethernet message is greater than the preset maximum allowable transmission length of the Ethernet message. Ethernet encapsulation and sending of the message, and multiplex the sub-message to be encapsulated into a new Ethernet message; if not, multiplex the sub-message to be encapsulated into the message net of the multiplexed Ethernet In a sub-message payload unit in the load, the sub-message payload unit includes a multiplexing header and a sub-message payload, and the sub-message payload carries the sub-message to be multiplexed, and the The multiplexing header includes the length information of the sub-message to be encapsulated and the user identification; and the length of the sub-message to be encapsulated is added to the payload length of the Ethernet message.

设待封装的子报文的长度为PKT_SIZE,单个Sub Payload的预设的最大容许长度为MAX_PAYLOAD_SIZE,已复用的以太报文的长度为OLD_MUX_SIZE,以太报文预设的最大容许传输长度为MTU。Let the length of the sub-message to be encapsulated be PKT_SIZE, the preset maximum allowable length of a single Sub Payload is MAX_PAYLOAD_SIZE, the length of the multiplexed Ethernet message is OLD_MUX_SIZE, and the preset maximum allowable transmission length of the Ethernet message is MTU.

图5为本发明一种以太报文复用方法实施例一的流程图。如图5所示,以太报文复用方法,包括以下步骤:FIG. 5 is a flow chart of Embodiment 1 of an Ethernet packet multiplexing method according to the present invention. As shown in Figure 5, the Ethernet packet multiplexing method comprises the following steps:

步骤101、接收待封装的子报文。该实施例待封装的子报文以语音报文为例。Step 101: Receive sub-messages to be encapsulated. The sub-message to be encapsulated in this embodiment takes a voice message as an example.

步骤102、判断以太复用(Ethernet Mux)是否启用,若启用执行步骤104,否则执行步骤103。Step 102, judge whether Ethernet multiplexing (Ethernet Mux) is enabled, if enable and execute step 104, otherwise execute step 103.

步骤103、对该待封装的语音报文进行传统以太封装并发送。Step 103: Perform traditional Ethernet encapsulation on the voice message to be encapsulated and send it.

步骤104、判断该待封装的语音报文的长度PKT_SIZE是否大于单个子报文净荷单元的预设的最大容许长度MAX_PAYLOAD_SIZE,若是,则执行步骤105;否则,则执行步骤106;Step 104, judge whether the length PKT_SIZE of the voice message to be encapsulated is greater than the preset maximum allowable length MAX_PAYLOAD_SIZE of a single sub-message payload unit, if so, then perform step 105; otherwise, then perform step 106;

步骤105、对已复用的以太报文进行以太封装并发送,并对该待封装的语音报文进行传统以太封装并发送。具体包括步骤1051、对已复用的以太报文进行以太封装并发送;步骤1052、对该待封装的语音报文进行传统以太封装并发送。Step 105, perform Ethernet encapsulation on the multiplexed Ethernet message and send it, and perform traditional Ethernet encapsulation on the voice message to be encapsulated and send it. It specifically includes step 1051, performing Ethernet encapsulation on the multiplexed Ethernet message and sending it; and step 1052, performing traditional Ethernet encapsulation on the voice message to be encapsulated and sending it.

步骤106、判断该待封装的语音报文的长度PKT_SIZE与已复用的以太报文的长度OLD_MUX_SIZE之和是否大于以太报文的预设的最大容许传输长度MTU;若是,则执行步骤107;若否,则执行步骤108。Step 106, judge whether the sum of the length PKT_SIZE of the voice message to be encapsulated and the length OLD_MUX_SIZE of the multiplexed Ethernet message is greater than the preset maximum allowable transmission length MTU of the Ethernet message; if so, then perform step 107; if If not, go to step 108.

步骤107、对已复用的以太报文进行以太封装并发送,同时将待封装的子报文复用到一个新的以太报文。具体包括步骤1071、对已复用的以太报文进行以太封装并发送;步骤1072、将待封装的子报文复用到一个新的以太报文。Step 107, perform Ethernet encapsulation on the multiplexed Ethernet message and send it, and simultaneously multiplex the sub-messages to be encapsulated into a new Ethernet message. It specifically includes step 1071, performing Ethernet encapsulation on the multiplexed Ethernet message and sending it; and step 1072, multiplexing sub-messages to be encapsulated into a new Ethernet message.

步骤108、将待封装的子报文复用到已复用的以太报文的一子报文净荷单元。所述子报文净荷单元包括复用头及子报文净荷,所述子报文净荷携带该待复用的语音报文,所述复用头包括该待封装的语音报文的长度信息,还可以包括该待封装的语音报文的用户标识。Step 108, multiplex the sub-message to be encapsulated into a sub-message payload unit of the multiplexed Ethernet message. The sub-message payload unit includes a multiplexing header and a sub-message payload, the sub-message payload carries the voice message to be multiplexed, and the multiplexing header includes the voice message to be encapsulated The length information may also include the user identifier of the voice message to be encapsulated.

步骤109、将该待封装的语音报文的长度累加到已复用的以太报文的载荷长度中得到当前的以太报文的载荷长度。即在Service Tag中的Total Length字段中加上该待封装的语音报文的长度。Step 109: Add the length of the voice packet to be encapsulated to the payload length of the multiplexed Ethernet packet to obtain the payload length of the current Ethernet packet. That is, add the length of the voice packet to be encapsulated in the Total Length field in the Service Tag.

上述步骤101-步骤109是一个待封装的语音报文复用到以太报文中的一个完整流程。当接收一个以上子报文,如语音报文但不限于语音报文时,可以在接收子报文的设备中设置一个定时器,当超时仍然无新的子报文到达时,则对该以太报文进行封装并发送。The above steps 101 to 109 are a complete process for multiplexing a voice message to be encapsulated into an Ethernet message. When receiving more than one sub-message, such as a voice message but not limited to a voice message, a timer can be set in the device receiving the sub-message. Packets are encapsulated and sent.

图6为本发明一种以太报文复用方法实施例二的流程图。如图6所示,该实施例与上一实施例的区别在于,在所述步骤109之后还包括:FIG. 6 is a flow chart of Embodiment 2 of an Ethernet packet multiplexing method according to the present invention. As shown in Figure 6, the difference between this embodiment and the previous embodiment is that after the step 109, it also includes:

步骤110、启动定时器;Step 110, start the timer;

步骤111、根据定时器判断是否超时,若未超时,则继续接收新的子报文,执行步骤101;若超时,则执行步骤112。Step 111 , judge whether it is timed out according to the timer, if not timed out, continue to receive new sub-messages, and execute step 101 ; if timed out, execute step 112 .

步骤112、对当前已复用以太报文进行封装并发送。Step 112: Encapsulate and send the currently multiplexed Ethernet packet.

上述以太报文复用方法实施例中,以太报文的载荷长度亦可以携带在如图3所示的以太报文的状态标志信息Service Tag中。In the above embodiment of the Ethernet packet multiplexing method, the payload length of the Ethernet packet may also be carried in the status flag information Service Tag of the Ethernet packet as shown in FIG. 3 .

如图3所示的以太报文的结构示意图,还可以在服务标志信息ServiceTag中携带以下信息或以下信息的组合:该以太报文的复用类型信息TYPE,该复用报文的优先级信息Pri,或该复用报文的保序信息Sequence。当ServiceTAG同时包括TYPE,Pri以及Sequence时,在对已复用的以太报文进行以太封装之前还包括:在Service Tag中设置该以太报文的复用类型信息TYPE为以太复用,即指定Service Tag中的TYPE为0x9910,该值可以自定义;在Service Tag中设置该复用报文的优先级信息pri,可以根据Qos需求进行pri的指定。可以根据报文保序需求进行Sequence的指定。以上三种参数的设定步骤不限。The structural diagram of the Ethernet message shown in Figure 3 can also carry the following information or a combination of the following information in the service tag information ServiceTag: the multiplexing type information TYPE of the Ethernet message, the priority information of the multiplexing message Pri, or the sequence preservation information Sequence of the multiplexed message. When the ServiceTAG includes TYPE, Pri, and Sequence at the same time, before encapsulating the multiplexed Ethernet message, it also includes: setting the multiplexing type information TYPE of the Ethernet message in the Service Tag to Ethernet multiplexing, that is, specifying the Service The TYPE in the Tag is 0x9910, and this value can be customized; the priority information pri of the multiplexed message is set in the Service Tag, and pri can be specified according to the Qos requirements. The Sequence can be specified according to the packet order preservation requirements. The setting steps of the above three parameters are not limited.

图7为本发明一种以太报文解复用方法实施例一的流程图。如图7所示,以太报文解复用方法,包括以下步骤:FIG. 7 is a flow chart of Embodiment 1 of an Ethernet packet demultiplexing method according to the present invention. As shown in Figure 7, the Ethernet packet demultiplexing method comprises the following steps:

步骤201、接收以太报文。Step 201, receiving an Ethernet message.

步骤202、判断以太报文中的复用类型信息TYPE是否为以太复用,若否,执行步骤203;若是,执行步骤204。该实施例中即判断Service Tag中的TYPE是否为0x9910。Step 202, judge whether the multiplexing type information TYPE in the Ethernet message is Ethernet multiplexing, if not, execute step 203; if yes, execute step 204. In this embodiment, it is judged whether the TYPE in the Service Tag is 0x9910.

步骤203、采用普通以太解复用方式解复用该以太报文。Step 203: Demultiplex the Ethernet message in a common Ethernet demultiplexing manner.

步骤204、提取所述以太报文中的载荷长度单元和至少一个子报文净荷单元,所述子报文净荷单元中包括子报文净荷和复用头,所述复用头中包括所述子报文净荷单元的长度信息,所述载荷长度单元中包括所述以太报文的载荷长度。Step 204, extracting the payload length unit and at least one sub-message payload unit in the Ethernet message, the sub-message payload unit and the multiplexing header are included in the sub-message payload unit, and in the multiplexing header It includes length information of the sub-message payload unit, and the payload length unit includes the payload length of the Ethernet message.

步骤205、根据所述子报文净荷的长度信息解复用该子报文净荷单元中子报文净荷。其中,根据子报文净荷单元中的Mux Header中的子报文净荷的长度,解复用子报文净荷单元中子报文净荷Sub Payload中所承载的业务内容。Step 205: Demultiplex the sub-message payload in the sub-message payload unit according to the length information of the sub-message payload. Wherein, according to the length of the sub-message payload in the Mux Header in the sub-message payload unit, the business content carried in the sub-message payload Sub Payload in the sub-message payload unit is demultiplexed.

步骤206、根据复用头Mux Header中的用户标识UID将所述业务内容送到对应的上层应用程序进行处理。Step 206: Send the business content to the corresponding upper-layer application program for processing according to the user identification UID in the Mux Header.

步骤207、判断已解复用的报文的长度是否等于以太报文的载荷长度,若是,则执行步骤208;否则,执行步骤205,继续解复用该以太报文中下一个子报文净荷单元,直至已解复用的报文的长度等于以太报文的载荷长度。解复用包括:报文净荷的解复用及与复用报文相关信息的解复用。报文净荷的解复用即对报文净荷中的子报文净荷进行解复用。与复用报文相关的信息包括MAC、Vlan TAG、Service Tag、Padding及FCS。在本实施方式中,由于以太报文中的载荷长度即为报文净荷Pay Load的长度信息,故仅需比较已解复用的子报文净荷单元的总长度是否等于所述载荷长度。在其他可选择的实施方式中,所述载荷长度亦可为所述报文净荷与上述复用报文相关的信息(DMAC、SMAC、Vlan TAG、Service Tag、Padding、FCS)中的一个或几个的长度之和,故在比较过程中,判断已解服用的报文的长度是否等于以太报文的载荷长度即为判断已解复用的子报文净荷单元的总长度加上复用报文相关信息的长度是否等于以太报文的载荷长度。Step 207, judge whether the length of the demultiplexed message is equal to the load length of the ether message, if so, then perform step 208; otherwise, perform step 205, continue to demultiplex the next sub-message net in this ether message load unit until the length of the demultiplexed message is equal to the payload length of the Ethernet message. Demultiplexing includes: demultiplexing of message payload and demultiplexing of information related to the multiplexed message. The demultiplexing of the message payload is to demultiplex the sub-message payload in the message payload. Information related to multiplexed packets includes MAC, Vlan TAG, Service Tag, Padding, and FCS. In this embodiment, because the load length in the Ethernet message is the length information of the message payload Pay Load, it is only necessary to compare whether the total length of the demultiplexed sub-message payload unit is equal to the load length . In other optional implementation manners, the payload length may also be one or more of the information (DMAC, SMAC, Vlan TAG, Service Tag, Padding, FCS) related to the message payload and the above-mentioned multiplexing message. Therefore, in the comparison process, judging whether the length of the demultiplexed message is equal to the payload length of the Ethernet message is the total length of the demultiplexed sub-message payload unit plus the multiplexed Whether the length of the information related to the packet 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 multiplexing message is set in the service flag unit of the Ethernet message, before demultiplexing the sub-message payload in the sub-message payload unit, it also includes: performing flow according to the priority information Classification and priority scheduling.

当以太报文的服务标志单元中设置有复用报文的保序信息时,在解复用子报文净荷单元中的子报文净荷之前还包括:根据所述保序信息进行保序处理。When the order preservation information of the multiplexing message is set in the service flag unit of the Ethernet message, before demultiplexing the sub-message payload in the sub-message payload unit, it also includes: sequential processing.

图8为本发明一种以太报文解复用方法实施例二的流程图。该实施例与上一实施例的区别在于,增加了流分类与优先级调度操作以及保序处理操作。具体在步骤202与步骤204之间还包括:FIG. 8 is a flow chart of Embodiment 2 of an Ethernet packet demultiplexing method according to the present invention. The difference between this embodiment and the previous embodiment lies in the addition of flow classification and priority scheduling operations and order-preserving processing operations. Specifically between step 202 and step 204 also includes:

步骤209、根据服务标志信息Service Tag中的优先级信息Pri进行流分类与优先级调度。当上层应用程序指定根据优先级部署QoS时,根据服务标志信息Service Tag中的优先级信息Pri进行流分类与优先级调度,如基于简单流分类或复杂流分类的Qos等。Step 209: Perform flow classification and priority scheduling according to the priority information Pri in the service tag information Service Tag. When the upper layer application specifies to deploy QoS according to the priority, flow classification and priority scheduling are performed according to the priority information Pri in the service tag information Service Tag, such as QoS based on simple flow classification or complex flow classification.

步骤210、根据服务标志信息Service Tag中的保序信息Sequence进行保序处理。当上层应用程序指定使用报文的序列号时,宿端可以根据该序列号纠正被接收的子报文的顺序,具有较小序列号的报文将先被上层应用程序处理,亦可提供TCP相似的丢帧检测与重传机制。上述实施例中所述的子报文不限于以太承载网承载的小包业务,如无线语音业务;还可以包括来自SDH/PDH网络、ATM网络、PSTN/POTS等网络的子报文,提供类似于PPPoE、ATMoE的承载,在发送端进行报文的复用封装,在接收端进行解复用。各网络连接以太承载网的接入设备与服务器设备为核心设备。以上图ATM网络为例,主要功能包括:Step 210, perform sequence preservation processing according to the sequence preservation information Sequence in the service tag information Service Tag. When the upper-layer application specifies the serial number of the packet, the sink can correct the order of the received sub-messages according to the serial number, and the packets with smaller serial numbers will be processed by the upper-layer application first, and TCP Similar frame loss detection and retransmission mechanism. The sub-messages described in the foregoing embodiments are not limited to the packet services carried by the Ethernet bearer network, such as wireless voice services; they may also include sub-messages from SDH/PDH networks, ATM networks, PSTN/POTS and other networks, providing similar For the bearer of PPPoE and ATMoE, packets are multiplexed and encapsulated at the sending end, and demultiplexed at the receiving end. Each network is connected to the access device and server device of the Ethernet bearer network as the core device. The ATM network in the above figure is an example, the main functions include:

1、多个ATM cell在出ATM网络时被复用到以太报文中;1. Multiple ATM cells are multiplexed into Ethernet packets when leaving the ATM network;

2、在服务器端,实现以太报文的解复用,得到各ATM cell。2. On the server side, realize the demultiplexing of the Ethernet message to obtain each ATM cell.

被复用的报文(或cell)在源网络接入以太承载网的设备(或服务器)上进行以太报文封装,承载网根据MAC地址进行普通L2转发,在接收网络接入设备(或服务器)上进行解复用。The multiplexed message (or cell) performs Ethernet packet encapsulation on the device (or server) that connects the source network to the Ethernet bearer network. ) for demultiplexing.

ATM cell、PPP报文、普通IP报文都可以采取该方式复用后在以太承载网上传输,在接收端解复用,以提供类似ATMoE、PPPoE的传输方式。ATM cells, PPP packets, and ordinary IP packets can be multiplexed in this way and then 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 packet multiplexing device according to the present invention. As shown in Figure 9, it includes: a receiving module 11, a judging module 12, a first encapsulation module 13, a multiplexing module 14 and an accumulation module 15; wherein, the receiving module 11 is used to receive sub-messages to be encapsulated; the judging module 12 , connected to the receiving module 11, when it is judged that the length of the sub-message to be encapsulated is less than or equal to the preset maximum allowable length of the sub-message payload unit, continue to judge the length of the sub-message to be encapsulated and the length of the sub-message to be encapsulated Whether the sum of the lengths of the multiplexed Ethernet packets is greater than the preset maximum allowable transmission length of the Ethernet packets;

若是,则调用第一封装模块13,对已复用的以太报文进行以太封装并发送,同时调用复用模块14,将待封装的子报文复用到一个新的以太报文;If so, then call the first encapsulation module 13, carry out ether encapsulation and send to the multiplexed ether message, call the multiplexing module 14 simultaneously, multiplex the sub-message to be encapsulated to a new ether message;

若否,则调用复用模块14,将待封装的子报文复用到已复用的以太报文的一子报文净荷单元中,所述子报文净荷单元包括复用头及子报文净荷,所述子报文净荷携带该待复用的子报文,所述复用头包括该待封装的子报文的长度信息及用户标识;同时调用累加模块15,将该待封装的子报文的长度累加到已复用的以太报文的载荷长度得到当前的以太报文的载荷长度。该实施例中,子报文净荷单元中复用头还可以包括待封装的子报文的用户标识。If not, then call the multiplexing module 14, the sub-message to be encapsulated is multiplexed in a sub-message payload unit of the Ethernet message that has been multiplexed, and the sub-message payload unit includes a multiplexing header and Sub-message payload, the sub-message payload carries the sub-message to be multiplexed, and the multiplexing header includes the length information and the user identification of the sub-message to be encapsulated; call the accumulation module 15 simultaneously, and The length of the sub-message to be encapsulated 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 multiplexing header in the payload unit of the sub-message may further include the user identifier of the sub-message to be encapsulated.

图10为本发明一种以太报文复用设备实施例二的结构示意图。如图10所示,该实施例与上述以太报文复用设备实施例一的区别在于,还可以包括第一扩展模块16,用于在以太报文的服务标志单元中设置该以太报文的复用类型信息为以太复用;还可以包括第二扩展模块17,用于在以太报文的服务标志单元中设置该复用报文的优先级信息;还可以包括第三扩展模块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 Figure 10, the difference between this embodiment and the first embodiment of the above-mentioned Ethernet packet multiplexing device is that it can also include a first expansion module 16, which is used to set the Ethernet packet in the service flag unit of the Ethernet packet. The multiplexing type information is Ethernet multiplexing; it can also include a second extension module 17, which is used to set the priority information of the multiplexing message in the service flag unit of the ether message; it can also include the third extension module 18, which can be used to The sequence preservation information of the multiplexed message is set in the service flag unit of the Ethernet message.

当接收一个以上子报文,可以在接收子报文的设备中设置一个定时子模块,当超时仍然无新的子报文到达时,则对该以太报文进行封装并发送。图11为本发明一种以太报文复用设备实施例三的结构示意图。如图11所示,该实施例与上述以太报文复用设备实施例一的区别在于,在判断模块12中还包括一定时子模块1201,当累加模块15将该待封装的子报文的长度累加到已复用的以太报文的载荷长度得到当前的以太报文的载荷长度之后,定时子模块1201开始计时,当在预定的时间内无下一个子报文到达所述接收模块11时,所述第一封装模块13,对当前已复用的以太报文进行以太封装并发送。When more than one sub-message is received, a timing sub-module can be set in the device receiving the sub-message, and when no new sub-message arrives after timeout, the Ethernet message is encapsulated and sent. FIG. 11 is a schematic structural diagram of Embodiment 3 of an Ethernet packet multiplexing device according to the present invention. As shown in Figure 11, the difference between this embodiment and the first embodiment of the above-mentioned Ethernet packet multiplexing device is that a certain timing sub-module 1201 is also included in the judging module 12. After the length is added to the load length of the multiplexed Ethernet message to obtain the load length of the current Ethernet message, the timing sub-module 1201 starts counting, and when no next sub-message arrives at the receiving module 11 within a predetermined time , the first encapsulation module 13 performs Ethernet encapsulation on the currently multiplexed Ethernet packets and sends them.

图12为本发明一种以太报文复用设备实施例四的结构示意图。如图12所示,该实施例中,与上述一种以太报文复用设备实施例一的区别在于还包括第二封装模块19,当判断模块12判断出该待封装的子报文的长度大于子报文净荷单元的预设的最大容许长度时,调用第一封装模块13,对已复用的以太报文进行以太封装并发送,同时调用第二封装模块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 Figure 12, in this embodiment, the difference from the first embodiment of the above-mentioned Ethernet message multiplexing device is that it also includes a second encapsulation module 19, when the judging module 12 judges the length of the sub-message to be encapsulated When greater than the preset maximum allowable length of the sub-message payload unit, the first encapsulation module 13 is called to encapsulate and send the multiplexed Ethernet message, and the second encapsulation module 19 is called simultaneously to encapsulate the packet to be encapsulated. The sub-message is encapsulated by traditional Ethernet and sent.

图13为本发明一种以太报文解复用设备实施例一的结构示意图。如图12所示,包括:接收模块21,用于接收封装的以太报文;解复用模块22,与接收模块21连接,用于根据一子报文净荷单元中的复用头中的子报文净荷的长度信息,解复用该子报文净荷单元中子报文净荷;第一判断模块24,与解复用模块22连接,判断已解复用的报文的长度是否等于以太报文的载荷长度,若是,则停止解复用操作;否则,调用解复用模块23,继续解复用下一个子报文净荷单元,直至已解复用的报文的长度之和等于以太报文的载荷长度。该实施例中的以太报文解复用设备还包括发送模块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 Figure 12, comprise: receiving module 21, be used to receive the Ethernet packet of encapsulation; The length information of the sub-message payload, demultiplex the sub-message payload in the sub-message payload unit; the first judging module 24 is connected with the demultiplexing module 22, and judges the length of the demultiplexed message Whether it is equal to the load length of the Ethernet message, if so, then stop the demultiplexing operation; otherwise, call the demultiplexing module 23, continue to demultiplex the next sub-message payload unit, until the length of the demultiplexed message The sum is equal to the payload length of the Ethernet packet. The Ethernet packet demultiplexing device in this embodiment also includes a sending module 23, which is connected to the demultiplexing module 22, and is used to send the business content to the corresponding upper-layer application program for processing according to the user identification in the multiplexing header .

图14为本发明一种以太报文解复用设备实施例二的结构示意图。如图14所示,该实施例与上述以太报文解复用设备实施例一的区别在于,还可以包括优先级调度模块25,当以太报文的服务标志单元中设置有复用报文的优先级信息时,用于在解复用子报文净荷单元中的子报文净荷之前,根据所述优先级信息进行流分类与优先级调度。还可以包括保序处理模块26,当以太报文的服务标志单元中设置有复用报文的保序信息时,用于在解复用子报文净荷单元中的子报文净荷之前,根据所述保序信息进行保序处理。FIG. 14 is a schematic structural diagram of Embodiment 2 of an Ethernet packet demultiplexing device according to the present invention. As shown in Figure 14, the difference between this embodiment and the first embodiment of the above-mentioned Ethernet message demultiplexing device is that it can also include a priority scheduling module 25, when the service flag unit of the Ethernet message is provided with the Priority information is used to perform flow classification and priority scheduling according to the priority information before demultiplexing the sub-message payload in the sub-message payload unit. It can also include a sequence processing module 26, which is used for demultiplexing before the sub-message payload in the sub-message payload unit , performing order preservation processing according to the order preservation 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 Figure 15, the difference between this embodiment and the above-mentioned Ethernet packet demultiplexing device embodiment one is that it also includes a second judging module 27, which is connected with the receiving module 21, and when the Ethernet packet is set in the service flag unit of the Ethernet packet When the multiplexing type information of the message is Ethernet multiplexing, before demultiplexing the sub-message payload in the sub-message payload unit, the second judging module 27 is used to judge the Whether the multiplexing type of the Ethernet message is Ethernet multiplexing, if so, then call the demultiplexing module 22, according to the length information of the sub-message payload in the multiplexing header in a sub-message payload unit, demultiplex Use this sub-message payload unit to neuter the sub-message payload.

本发明的以上实施例中,提供一种直接将多个子报文复用入以太报文并在以太承载网上进行二层传输的方式,不再使用UDP/IP头,各子报文前都添加一个复用头Mux Header以表征该报文净荷所携带的业务内容的类型与长度等,扩展传统以太的EtherType字段为TYPE以支持Ethernet Mux帧的识别、QoS及报文保序,支持传统的802.1p/q与普通以太封装。In the above embodiments of the present invention, a method of directly multiplexing multiple sub-messages into Ethernet messages and carrying out Layer 2 transmission on the Ethernet bearer network is provided. UDP/IP headers are no longer used, and each sub-message is preceded by adding A Mux Header to represent the type and length of the business content carried by the payload of the message, and extend the EtherType field of traditional Ethernet to TYPE to support the identification, QoS and message order of the Ethernet Mux frame, and support the traditional 802.1p/q and common Ethernet encapsulation.

综上所述,本发明具有如下优点:In summary, the present invention has the following advantages:

(1)进一步提高了传输效率,增强了灵活性、QoS特性,实现更加简单,进一步降低了开发与运营成本。(1) The transmission efficiency is further improved, the flexibility and QoS characteristics are enhanced, the implementation is simpler, and the development and operation costs are further reduced.

(2)去除了IP头/UDP头,而在各子报文前添加一个复用头Mux Header以表征该报文净荷所携带的业务内容的类型与长度等,从而节约了网络资源,提高了网络资源利用率;(2) The IP header/UDP header is removed, and a Mux Header is added before each sub-message to represent the type and length of the business content carried by the message payload, thereby saving network resources and improving improved network resource utilization;

(3)针对但不限于可大量复用的小包业务,提供一种可承载各种网络类型报文进行复用传输的方式。(3) Aiming at but not limited to small-packet services that can be multiplexed in large quantities, provide a method that can carry various types of network packets for multiplexed transmission.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (24)

1.一种以太报文复用方法,其特征在于,包括:1. A method for multiplexing ether packets, characterized in that, comprising: 接收待封装的子报文;Receive the sub-message to be encapsulated; 当该待封装的子报文的长度小于或等于子报文净荷单元的预设的最大容许长度时,判断该待封装的子报文的长度与已复用的以太报文的长度之和是否大于以太报文的预设的最大容许传输长度;When the length of the sub-message to be encapsulated is less than or equal to the preset maximum allowable length of the sub-message payload unit, judge the sum of the length of the sub-message to be encapsulated and the length of the multiplexed Ethernet message Whether it is greater than the preset maximum allowable transmission length of the Ethernet message; 若是,则对已复用的以太报文进行以太封装并发送,同时将待封装的子报文复用到一个新的以太报文;If so, perform Ethernet encapsulation on the multiplexed Ethernet message and send it, and multiplex the sub-message to be encapsulated into a new Ethernet message; 若否,则将待封装的子报文复用到已复用的以太报文的一子报文净荷单元中,并将该待封装的子报文的长度累加到已复用的以太报文的载荷长度得到当前的以太报文的载荷长度,其中所述子报文净荷单元包括复用头及子报文净荷,所述子报文净荷携带该待复用的子报文,所述复用头包括该待封装的子报文的长度信息。If not, the sub-message to be encapsulated is multiplexed into a sub-message payload unit of the multiplexed Ethernet message, and the length of the sub-message to be encapsulated is added to the multiplexed Ethernet message. The load length of text obtains the load length of current Ethernet message, wherein said sub-message payload unit comprises multiplexing header and sub-message payload, and said sub-message payload carries the sub-message to be multiplexed , the multiplexing header includes length information of the sub-package to be encapsulated. 2.根据权利要求1所述的方法,其特征在于,所述复用头还包括待封装的子报文的用户标识。2. The method according to claim 1, wherein the multiplexing header further includes a user identifier of the sub-message to be encapsulated. 3.根据权利要求1所述的方法,其特征在于,所述将待封装的子报文的长度累加到已复用的以太报文的载荷长度得到当前的以太报文的载荷长度之后还包括:当在预定时间内无下一个子报文到达时,对当前已复用的以太报文进行以太封装并发送。3. method according to claim 1, it is characterized in that, after the load length of the Ethernet message of multiplexing the length of the sub-message to be encapsulated is added up to obtain the current load length of the Ethernet message, it also includes : When no next sub-message arrives within the predetermined time, perform Ethernet encapsulation on the currently multiplexed Ethernet message and send it. 4.根据权利要求1所述的方法,其特征在于,当该待封装的子报文的长度大于子报文净荷单元的预设的最大容许长度时,对已复用的以太报文进行以太封装并发送,同时对该待封装的子报文进行传统以太封装并发送。4. The method according to claim 1, wherein, when the length of the sub-message to be encapsulated is greater than the preset maximum allowable length of the sub-message payload unit, the multiplexed Ethernet message is carried out Ethernet encapsulation and sending, and at the same time perform traditional Ethernet encapsulation and sending on the sub-message to be encapsulated. 5.根据权利要求1所述的方法,其特征在于,所述对已复用的以太报文进行以太封装之前还包括:在所述以太报文的服务标志单元中设置该以太报文的复用类型信息为以太复用。5. The method according to claim 1, characterized in that, before said carrying out Ethernet encapsulation to the multiplexed Ethernet message, it also includes: setting the multiplex number of the Ethernet message in the service flag unit of said Ethernet message Use type information for Ethernet multiplexing. 6.根据权利要求1所述的方法,其特征在于,所述对已复用的以太报文 进行以太封装之前还包括:在所述以太报文的服务标志单元中设置该复用报文的优先级信息。6. method according to claim 1, is characterized in that, before described carrying out Ethernet encapsulation to the multiplexed Ethernet message, also comprises: setting the multiplexing message of this multiplexed message in the service mark unit of described Ethernet message priority information. 7.根据权利要求1所述的方法,其特征在于,所述对已复用的以太报文进行以太封装之前还包括:在所述以太报文的服务标志单元中设置该复用报文的保序信息。7. The method according to claim 1, characterized in that, before said multiplexed Ethernet message is carried out to Ethernet encapsulation, it also includes: setting the value of the multiplexed message in the service flag unit of said Ethernet message Order information. 8.一种以太报文解复用方法,其特征在于,包括:8. A method for demultiplexing Ethernet packets, characterized in that, comprising: 接收以太报文;Receive Ethernet message; 提取所述以太报文中的载荷长度单元和至少一个子报文净荷单元,所述子报文净荷单元中包括子报文净荷和复用头,所述复用头中包括所述子报文净荷单元的长度信息,所述载荷长度单元中包括所述以太报文的载荷长度;Extract the load length unit and at least one sub-message payload unit in the Ethernet message, the sub-message payload unit includes a sub-message payload and a multiplexing header, and the multiplexing header includes the length information of the sub-message payload unit, the payload length unit includes the payload length of the Ethernet message; 根据所述子报文净荷的长度信息,解复用该子报文净荷单元中子报文净荷;Demultiplexing the sub-message payload in the sub-message payload unit according to the length information of the sub-message payload; 判断已解复用的报文的长度是否等于所述以太报文的载荷长度,若是,则停止解复用操作;否则,继续解复用下一个子报文净荷单元,直至已解复用的报文的长度等于以太报文的载荷长度。Determine whether the length of the demultiplexed message is equal to the payload length of the Ethernet message, if so, stop the demultiplexing operation; otherwise, continue to demultiplex the next sub-message payload unit until demultiplexed The length of the packet is equal to the payload length of the Ethernet packet. 9.根据权利要求8所述的方法,其特征在于,所述复用头还包括待封装的子报文的用户标识,所述解复用该子报文净荷单元中子报文净荷之后还包括:根据复用头中的用户标识将业务内容送到对应的上层应用程序进行处理。9. The method according to claim 8, wherein the multiplexing header also includes the user identification of the sub-message to be encapsulated, and the demultiplexing sub-message payload in the sub-message payload unit After that, it also includes: sending the business content to the corresponding upper layer application program for processing according to the user identification in the multiplexing header. 10.根据权利要求8所述的方法,其特征在于,所述以太报文中还包括服务标志单元,所述服务标志单元中设置有复用类型信息,在所述提取子报文净荷单元之前还包括:根据所述复用类型信息判断所述以太报文的复用类型是否为以太复用。10. The method according to claim 8, characterized in that, the Ethernet message also includes a service flag unit, the service flag unit is provided with multiplexing type information, and in the extracted sub-message payload unit The method previously also includes: judging whether the multiplexing type of the Ethernet message is Ethernet multiplexing according to the multiplexing type information. 11.根据权利要求8所述的方法,其特征在于,所述以太报文中还包括服务标志单元,所述服务标志单元中设置有复用报文的优先级信息,在解复用子报文净荷单元中的子报文净荷之前还包括:根据所述优先级信息进行流分类与优先级调度。 11. The method according to claim 8, wherein the Ethernet message also includes a service flag unit, the service flag unit is provided with the priority information of the multiplexing message, and the demultiplexing subgram Before the sub-message payload in the text payload unit, flow classification and priority scheduling are performed according to the priority information. the 12.根据权利要求8所述的方法,其特征在于,所述以太报文中还包括服务标志单元,所述服务标志单元中设置有复用报文的保序信息,在解复用子报文净荷单元中的子报文净荷之前还包括:根据所述保序信息进行保序处理。 12. The method according to claim 8, wherein the Ethernet message also includes a service flag unit, the service flag unit is provided with sequence-preserving information of the multiplexed message, and the demultiplexed subgram Before the sub-message payload in the text payload unit, it also includes: performing order preservation processing according to the order preservation information. the 13.一种以太报文复用设备,其特征在于,包括:接收模块、判断模块、第一封装模块、复用模块以及累加模块; 13. A kind of Ethernet packet multiplexing equipment, is characterized in that, comprises: receiving module, judging module, the first packaging module, multiplexing module and accumulating module; 接收模块,用于接收待封装的子报文; The receiving module is used to receive the sub-message to be encapsulated; 判断模块,与所述接收模块连接,当判断出该待封装的子报文的长度小于或等于子报文净荷单元的预设的最大容许长度时,继续判断该待封装的子报文的长度与已复用的以太报文的长度之和是否大于以太报文的预设的最大容许传输长度,若是,则调用第一封装模块,对已复用的以太报文进行以太封装并发送,同时调用复用模块,将待封装的子报文复用到一个新的以太报文;若否,则调用复用模块,将待封装的子报文复用到已复用的以太报文的一子报文净荷单元中,所述子报文净荷单元包括复用头及子报文净荷,所述子报文净荷携带该待复用的子报文,所述复用头包括该待封装的子报文的长度信息;同时调用累加模块,将该待封装的子报文的长度累加到已复用的以太报文的载荷长度得到当前的以太报文的载荷长度。 Judging module, connected with the receiving module, when it is judged that the length of the sub-message to be encapsulated is less than or equal to the preset maximum allowable length of the sub-message payload unit, continue to judge the length of the sub-message to be encapsulated Whether the sum of the length and the length of the multiplexed Ethernet message is greater than the preset maximum allowable transmission length of the Ethernet message, if so, the first encapsulation module is called to encapsulate and send the multiplexed Ethernet message, At the same time, the multiplexing module is called to multiplex the sub-message to be encapsulated into a new Ethernet message; if not, the multiplexing module is called to multiplex the sub-message to be encapsulated into the multiplexed Ethernet message. In a sub-message payload unit, the sub-message payload unit includes a multiplexing header and a sub-message payload, and the sub-message payload carries the sub-message to be multiplexed, and the multiplexing header Including the length information of the sub-message to be encapsulated; at the same time, the accumulation module is called to add the length of the sub-message to be encapsulated to the payload length of the multiplexed Ethernet packet to obtain the payload length of the current Ethernet packet. the 14.根据权利要求13所述的设备,其特征在于,所述子报文净荷单元中复用头还包括待封装的子报文的用户标识。 14. The device according to claim 13, wherein the multiplexing header in the sub-message payload unit further includes a user identifier of the sub-message to be encapsulated. the 15.根据权利要求13所述的设备,其特征在于,所述判断模块包括定时子模块,当累加模块将该待封装的子报文的长度累加到已复用的以太报文的载荷长度得到当前的以太报文的载荷长度之后,定时子模块开始计时,当在预定时间内无下一个子报文到达所述接收模块时,所述第一封装模块,对当前已复用的以太报文进行以太封装并发送。 15. The device according to claim 13, wherein the judging module includes a timing sub-module, when the accumulation module adds the length of the sub-message to be encapsulated to the load length of the multiplexed Ethernet message to obtain After the load length of the current Ethernet message, the timing sub-module starts counting, and when no next sub-message arrives at the receiving module within a predetermined time, the first encapsulation module performs multiplexing on the currently multiplexed Ethernet message Carry out ether encapsulation and send. the 16.根据权利要求13所述的设备,其特征在于,还包括第二封装模块, 当所述判断模块判断出该待封装的子报文的长度大于子报文净荷单元的预设的最大容许长度时,调用第一封装模块,对已复用的以太报文进行以太封装并发送,同时调用第二封装模块,对该待封装的子报文进行传统以太封装并发送。 16. The device according to claim 13, further comprising a second encapsulation module, when the judging module determines that the length of the sub-message to be encapsulated is greater than the preset maximum of the sub-message payload unit When the length is allowed, the first encapsulation module is invoked to encapsulate and send the multiplexed Ethernet message, and the second encapsulation module is called at the same time to perform traditional Ethernet encapsulation and transmission on the sub-message to be encapsulated. the 17.根据权利要求13所述的设备,其特征在于,还包括第一扩展模块,用于在以太报文的服务标志单元中设置该以太报文的复用类型信息为以太复用。17. The device according to claim 13, further comprising a first extension module, configured to set the multiplexing type information of the Ethernet message to Ethernet multiplexing in the service flag unit of the Ethernet message. 18.根据权利要求13所述的设备,其特征在于,还包括第二扩展模块,用于在以太报文的服务标志单元中设置该复用报文的优先级信息。18. The device according to claim 13, further comprising a second extension module, configured to set the priority information of the multiplexed message in the service flag unit of the Ethernet message. 19.根据权利要求13所述的设备,其特征在于,还包括第三扩展模块,用于在以太报文的服务标志单元中设置该复用报文的保序信息。19. The device according to claim 13, further comprising a third extension module, configured to set the order preservation information of the multiplexed message in the service flag unit of the Ethernet message. 20.一种以太报文解复用设备,其特征在于,包括:20. An Ethernet message demultiplexing device, characterized in that, comprising: 接收模块,用于接收封装的以太报文;A receiving module, configured to receive encapsulated Ethernet packets; 解复用模块,与接收模块连接,用于根据一子报文净荷单元中的复用头中的子报文净荷的长度信息,解复用该子报文净荷单元中的子报文净荷;The demultiplexing module is connected with the receiving module, and is used for demultiplexing the submessage in the submessage payload unit according to the length information of the submessage payload in the multiplexing header in the submessage payload unit text payload; 第一判断模块,与解复用模块连接,判断已解复用的报文的长度是否等于以太报文的载荷长度,若是,则停止解复用操作;否则,调用解复用模块,继续解复用下一个子报文净荷单元,直至已解复用的报文的长度等于以太报文的载荷长度。The first judging module is connected with the demultiplexing module, and judges whether the length of the demultiplexed message is equal to the load length of the Ethernet message, if so, stops the demultiplexing operation; otherwise, calls the demultiplexing module to continue demultiplexing The next sub-message payload unit is multiplexed until the length of the demultiplexed message is equal to the payload length of the Ethernet message. 21.根据权利要求20所述的设备,其特征在于,还包括发送模块,与解复用模块连接,用于根据复用头中的用户标识将解复用后的子报文净荷送到对应的上层应用程序进行处理。21. The device according to claim 20, further comprising a sending module connected to the demultiplexing module for sending the demultiplexed sub-message payload to The corresponding upper layer application process. 22.根据权利要求20所述的设备,其特征在于,还包括第二判断模块,与接收模块连接,当以太报文的服务标志单元中设置该以太报文的复用类型信息为以太复用时,在解复用子报文净荷单元中的子报文净荷之前,第二判断模块用于根据所述复用类型信息判断所述以太报文的复用类型是否为以太 复用,若是,则调用解复用模块。 22. The device according to claim 20, further comprising a second judging module, connected to the receiving module, when the multiplexing type information of the Ethernet message is set as Ethernet multiplexing in the service flag unit of the Ethernet message When, before demultiplexing the sub-message payload in the sub-message payload unit, the second judging module is used to judge whether the multiplexing type of the Ethernet message is Ethernet multiplexing according to the multiplexing type information, If so, call the demultiplexing module. the 23.根据权利要求20所述的设备,其特征在于,还包括优先级调度模块,当以太报文的服务标志单元中设置有复用报文的优先级信息时,用于在解复用子报文净荷单元中的子报文净荷之前,根据所述优先级信息进行流分类与优先级调度。 23. The device according to claim 20, further comprising a priority scheduling module, when the priority information of the multiplexing message is set in the service flag unit of the Ethernet message, it is used for demultiplexing Before the sub-message payload in the message payload unit, flow classification and priority scheduling are performed according to the priority information. the 24.根据权利要求20所述的设备,其特征在于,还包括保序处理模块,当以太报文的服务标志单元中设置有复用报文的保序信息时,用于在解复用子报文净荷单元中的子报文净荷之前,根据所述保序信息进行保序处理。 24. The device according to claim 20, further comprising an order-keeping processing module, which is used for demultiplexing when the order-keeping information of the multiplexing message is set in the service flag unit of the Ethernet message. Before the payload of the sub-message in the message payload unit, perform order-preserving processing according to the order-preserving information. the
CN200810081622.6A 2007-12-27 2008-02-27 Method and device for multiplexing and demultiplexing Ethernet packets Active CN101471937B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200810081622.6A CN101471937B (en) 2007-12-27 2008-02-27 Method and device for multiplexing and demultiplexing Ethernet packets
PCT/CN2008/072345 WO2009082897A1 (en) 2007-12-27 2008-09-12 Method and device for multiplexing and demultiplexing ethernet messages

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200710160585 2007-12-27
CN200710160585.3 2007-12-27
CN200810081622.6A CN101471937B (en) 2007-12-27 2008-02-27 Method and device for multiplexing and demultiplexing Ethernet packets

Publications (2)

Publication Number Publication Date
CN101471937A CN101471937A (en) 2009-07-01
CN101471937B true CN101471937B (en) 2011-08-24

Family

ID=40829062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810081622.6A Active CN101471937B (en) 2007-12-27 2008-02-27 Method and device for multiplexing and demultiplexing Ethernet packets

Country Status (1)

Country Link
CN (1) CN101471937B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571541A (en) * 2010-12-24 2012-07-11 中兴通讯股份有限公司 Message encoding-decoding method and device
CN102420672A (en) * 2011-01-25 2012-04-18 苏州汉明科技有限公司 Method for transmitting data from wireless access point of wireless local area network to wireless controller
CN104144086B (en) 2013-12-04 2018-09-11 腾讯科技(深圳)有限公司 Communication means and system and information transmission and receiving device
CN110958183B (en) * 2019-10-24 2022-02-25 中国科学院计算技术研究所 Bandwidth utilization rate improving method and system for heterogeneous system

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN101471937A (en) 2009-07-01

Similar Documents

Publication Publication Date Title
US7623508B2 (en) Bandwidth on demand for media services at stationary equipment unit
JP4763682B2 (en) Providing information on upper layer packet or frame boundary in GRE frame
CN101388825B (en) Method and apparatus for transmitting data package of GPRS tunnel protocol
EP1744479B1 (en) A time division multiplex data transmission method
US9078290B2 (en) Uplink transmission method, downlink transmission method, and convergence device
CA2382271C (en) Circuit emulation service over an internet protocol network
WO2010031324A1 (en) Method, device and system for data transmission
US8913623B2 (en) Method and apparatus for processing labeled flows in a communications access network
CN1934837A (en) Method and system for quality of service support for Ethernet multiservice interworking over multiprotocol label switching
CN104303466B (en) A kind of data transmission method, device, communication equipment and communication system
WO2009026845A1 (en) Method for data transmitting and receiving, wireless access point apparatus, gateway and communication system
WO2021093154A1 (en) System and method for multicast /broadcast service data
WO2009056061A1 (en) Method, system and device for transmitting general packet radio service tunneling protocol datagram
US20070058543A1 (en) ATM over ethernet scheduler
CN100389559C (en) The method of data transmission in the network
CN101471937B (en) Method and device for multiplexing and demultiplexing Ethernet packets
CN100514975C (en) Iub interface data transmission method in broadband CDMA network
JP3872077B2 (en) Data transmission method using multi-frame
CN100466630C (en) Iub interface data transmission method and system in mobile communication network
WO2009146631A1 (en) Method, device and system for data transmission
EP2053798A1 (en) Method and device for data transmitting and receiving between radio network controller and station node
WO2009082897A1 (en) Method and device for multiplexing and demultiplexing ethernet messages
WO2012110004A1 (en) Message forwarding method and device based on lte-lan
CN100466649C (en) Method for transmitting multiprotocol label switching protocol data unit
Li et al. Carrier Ethernet for transport in UMTS radio access network: Ethernet backhaul evolution

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210422

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China