CN101471937B - Method and device for multiplexing and demultiplexing Ethernet packets - Google Patents
Method and device for multiplexing and demultiplexing Ethernet packets Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 claims abstract description 45
- 238000005538 encapsulation Methods 0.000 claims abstract description 41
- 230000005540 biological transmission Effects 0.000 claims abstract description 24
- 238000004321 preservation Methods 0.000 claims description 12
- 238000012545 processing Methods 0.000 claims description 12
- 238000009825 accumulation Methods 0.000 claims description 6
- 238000004806 packaging method and process Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 20
- 238000005516 engineering process Methods 0.000 description 14
- 101150082208 DIABLO gene Proteins 0.000 description 5
- 102100033189 Diablo IAP-binding mitochondrial protein Human genes 0.000 description 5
- MHABMANUFPZXEB-UHFFFAOYSA-N O-demethyl-aloesaponarin I Natural products O=C1C2=CC=CC(O)=C2C(=O)C2=C1C=C(O)C(C(O)=O)=C2C MHABMANUFPZXEB-UHFFFAOYSA-N 0.000 description 5
- 238000011161 development Methods 0.000 description 4
- HRULVFRXEOZUMJ-UHFFFAOYSA-K potassium;disodium;2-(4-chloro-2-methylphenoxy)propanoate;methyl-dioxido-oxo-$l^{5}-arsane Chemical compound [Na+].[Na+].[K+].C[As]([O-])([O-])=O.[O-]C(=O)C(C)OC1=CC=C(Cl)C=C1C HRULVFRXEOZUMJ-UHFFFAOYSA-K 0.000 description 4
- 125000004122 cyclic group Chemical group 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 150000002170 ethers Chemical class 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域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
协议规定,三元组(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
图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
图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
图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
图13为本发明一种以太报文解复用设备实施例一的结构示意图;13 is a schematic structural diagram of
图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
步骤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。
步骤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;
步骤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
步骤106、判断该待封装的语音报文的长度PKT_SIZE与已复用的以太报文的长度OLD_MUX_SIZE之和是否大于以太报文的预设的最大容许传输长度MTU;若是,则执行步骤107;若否,则执行步骤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
步骤108、将待封装的子报文复用到已复用的以太报文的一子报文净荷单元。所述子报文净荷单元包括复用头及子报文净荷,所述子报文净荷携带该待复用的语音报文,所述复用头包括该待封装的语音报文的长度信息,还可以包括该待封装的语音报文的用户标识。
步骤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
步骤110、启动定时器;
步骤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
步骤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
步骤201、接收以太报文。Step 201, receiving an Ethernet message.
步骤202、判断以太报文中的复用类型信息TYPE是否为以太复用,若否,执行步骤203;若是,执行步骤204。该实施例中即判断Service Tag中的TYPE是否为0x9910。
步骤203、采用普通以太解复用方式解复用该以太报文。Step 203: Demultiplex the Ethernet message in a common Ethernet demultiplexing manner.
步骤204、提取所述以太报文中的载荷长度单元和至少一个子报文净荷单元,所述子报文净荷单元中包括子报文净荷和复用头,所述复用头中包括所述子报文净荷单元的长度信息,所述载荷长度单元中包括所述以太报文的载荷长度。
步骤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)中的一个或几个的长度之和,故在比较过程中,判断已解服用的报文的长度是否等于以太报文的载荷长度即为判断已解复用的子报文净荷单元的总长度加上复用报文相关信息的长度是否等于以太报文的载荷长度。
步骤208、停止当前以太报文的解复用操作。
当以太报文的服务标志单元中设置有复用报文的优先级信息时,在解复用子报文净荷单元中的子报文净荷之前还包括:根据所述优先级信息进行流分类与优先级调度。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
步骤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网络为例,主要功能包括:
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
若是,则调用第一封装模块13,对已复用的以太报文进行以太封装并发送,同时调用复用模块14,将待封装的子报文复用到一个新的以太报文;If so, then call the
若否,则调用复用模块14,将待封装的子报文复用到已复用的以太报文的一子报文净荷单元中,所述子报文净荷单元包括复用头及子报文净荷,所述子报文净荷携带该待复用的子报文,所述复用头包括该待封装的子报文的长度信息及用户标识;同时调用累加模块15,将该待封装的子报文的长度累加到已复用的以太报文的载荷长度得到当前的以太报文的载荷长度。该实施例中,子报文净荷单元中复用头还可以包括待封装的子报文的用户标识。If not, then call the
图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
当接收一个以上子报文,可以在接收子报文的设备中设置一个定时子模块,当超时仍然无新的子报文到达时,则对该以太报文进行封装并发送。图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
图12为本发明一种以太报文复用设备实施例四的结构示意图。如图12所示,该实施例中,与上述一种以太报文复用设备实施例一的区别在于还包括第二封装模块19,当判断模块12判断出该待封装的子报文的长度大于子报文净荷单元的预设的最大容许长度时,调用第一封装模块13,对已复用的以太报文进行以太封装并发送,同时调用第二封装模块19,对该待封装的子报文进行传统以太封装并发送。FIG. 12 is a schematic structural diagram of
图13为本发明一种以太报文解复用设备实施例一的结构示意图。如图12所示,包括:接收模块21,用于接收封装的以太报文;解复用模块22,与接收模块21连接,用于根据一子报文净荷单元中的复用头中的子报文净荷的长度信息,解复用该子报文净荷单元中子报文净荷;第一判断模块24,与解复用模块22连接,判断已解复用的报文的长度是否等于以太报文的载荷长度,若是,则停止解复用操作;否则,调用解复用模块23,继续解复用下一个子报文净荷单元,直至已解复用的报文的长度之和等于以太报文的载荷长度。该实施例中的以太报文解复用设备还包括发送模块23,与解复用模块22连接,用于根据复用头中的用户标识将所述业务内容送到对应的上层应用程序进行处理。FIG. 13 is a schematic structural diagram of
图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
图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)
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)
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)
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-02-27 CN CN200810081622.6A patent/CN101471937B/en active Active
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 |
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 |