[go: up one dir, main page]

CN1889575B - A Method of Realizing Header Compression and Multiplexing in IP Layer - Google Patents

A Method of Realizing Header Compression and Multiplexing in IP Layer Download PDF

Info

Publication number
CN1889575B
CN1889575B CN200610103321A CN200610103321A CN1889575B CN 1889575 B CN1889575 B CN 1889575B CN 200610103321 A CN200610103321 A CN 200610103321A CN 200610103321 A CN200610103321 A CN 200610103321A CN 1889575 B CN1889575 B CN 1889575B
Authority
CN
China
Prior art keywords
multiplexing
compression
message
udp
port number
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.)
Expired - Fee Related
Application number
CN200610103321A
Other languages
Chinese (zh)
Other versions
CN1889575A (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.)
Huawei Technologies 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 CN200610103321A priority Critical patent/CN1889575B/en
Publication of CN1889575A publication Critical patent/CN1889575A/en
Application granted granted Critical
Publication of CN1889575B publication Critical patent/CN1889575B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种在IP层实现头压缩及复用的方法,包括以下步骤:将在IP层传输的IP数据包的UDP头压缩为UDP复用头,将具有相同源UDP端口号及目的UDP端口号的业务报文作为复用子帧,并在该复用子帧的前部加入所述UDP复用头,将一个以上携带有UDP复用头的复用子帧封装在同一个IP包中,并在所述IP包头部加入IP头。本发明提高了传输效率,降低了对传输带宽的要求,降低了运营商的运营成本,并且减少了传输网上转发的分组数,降低了对路由器处理能力的要求。

Figure 200610103321

The invention discloses a method for realizing header compression and multiplexing at the IP layer. The business message of the UDP port number is used as a multiplexing subframe, and the UDP multiplexing header is added to the front of the multiplexing subframe, and more than one multiplexing subframe carrying the UDP multiplexing header is encapsulated in the same IP packet, and add an IP header to the header of the IP packet. The invention improves the transmission efficiency, reduces the requirement on the transmission bandwidth, reduces the operating cost of the operator, reduces the number of packets forwarded on the transmission network, and reduces the requirement on the processing capacity of the router.

Figure 200610103321

Description

在IP层实现头压缩及复用的方法 A Method of Realizing Header Compression and Multiplexing in IP Layer

技术领域technical field

本发明涉及压缩复用技术,特别是一种在IP层实现头压缩及复用的方法。The invention relates to compression and multiplexing technology, in particular to a method for realizing header compression and multiplexing at the IP layer.

背景技术Background technique

在无线通信系统中,全IP化是一种发展的趋势。IP化能够更高效的利用资源,采用包交换技术能够比采用时隙交换技术实现更多的共享,从而降低单位传输的成本。In wireless communication systems, all-IP is a development trend. IP can use resources more efficiently, and the use of packet switching technology can achieve more sharing than the use of time slot switching technology, thereby reducing the cost of unit transmission.

例如,在CDMA2000系统中,集中式基站控制器(CBSC)与集中式基站收发信机(CBTS)之间就是使用IP/UDP协议栈来承载业务,其中,每个业务信道采用一个源用户数据报协议(UDP)端口号和目的UDP端口号对来表示,加上IP地址的不同,不同的信道对应不同的{源IP地址,源UDP端口号,目的IP地址,目的UDP端口号}组。For example, in the CDMA2000 system, the IP/UDP protocol stack is used to carry services between the centralized base station controller (CBSC) and the centralized base transceiver station (CBTS), wherein each service channel uses a source user datagram The protocol (UDP) port number and the destination UDP port number are represented by a pair, plus the difference in IP address, different channels correspond to different {source IP address, source UDP port number, destination IP address, destination UDP port number} groups.

图1为现有的IP数据包包头各个字段的格式,其中,协议版本为IP协议的版本号,可以为IPv4或IPv6;首部长度是IP数据包包头的长度值;服务类型用于标明IP数据包的服务优先级;生存时间设置了IP数据包可以经过的最多路由器数,即IP数据包的生存时间;总长度字段是指整IP数据包的长度,以字节为单位,利用首部长度字段和总长度字段,就可以知道IP数据包中数据内容的起始位置和长度;标识字段唯一地标识主机发送的每一份数据包,通常每发送一份报文该字段的值就会加1;标志字段和片偏移字段用于分片和重组;协议域字段表明了IP包的上层协议类型;首部检验和字段是根据IP首部计算的校验和码。Fig. 1 is the format of each field of the existing IP data packet header, wherein, the protocol version is the version number of the IP protocol, which can be IPv4 or IPv6; the header length is the length value of the IP data packet header; the service type is used to indicate the IP data The service priority of the packet; the lifetime sets the maximum number of routers that the IP packet can pass through, that is, the lifetime of the IP packet; the total length field refers to the length of the entire IP packet, in bytes, using the header length field and the total length field, you can know the starting position and length of the data content in the IP data packet; the identification field uniquely identifies each data packet sent by the host, and usually the value of this field will increase by 1 each time a message is sent ; The flag field and slice offset field are used for fragmentation and reassembly; the protocol domain field indicates the upper layer protocol type of the IP packet; the header checksum field is the checksum code calculated according to the IP header.

图2为现有的UDP数据包包头各个字段的格式,其中,UDP长度域的内容是整个UDP数据包的长度值,校验和域的内容是根据整个UDP数据包按照协议规定的校验和算法计算的校验和码。Figure 2 is the format of each field of the existing UDP data packet header, wherein the content of the UDP length field is the length value of the entire UDP data packet, and the content of the checksum field is the checksum specified in the protocol according to the entire UDP data packet The checksum code computed by the algorithm.

目前,无线通信系统IP化在传输业务包时存在效率较低的问题,比如说,在CDMA2000系统中,语音业务包采用20ms帧的传输方式,在这种方式下,每20ms的语音业务包包长较小,表1给出了CDMA2000中各种不同语音编码类型的包长:At present, the IP-based wireless communication system has the problem of low efficiency when transmitting service packets. For example, in the CDMA2000 system, voice service packets are transmitted in 20ms frames. In this way, every 20ms voice service packets The length is smaller, and Table 1 shows the packet lengths of various speech coding types in CDMA2000:

Figure G200610103321XD00022
Figure G200610103321XD00022

表1Table 1

由表1可以得知,采用QCELP 8K编码方式,平均语音包长为8.28字节;采用增强型可变频编码(EVRC)方式,平均语音包长为8.68字节;采用Q13K编码方式,平均语音包长为15.7字节。由于IP包头有20个字节,UDP包头也有8个字节,显然,语音在CDMA2000系统中BSC与BTS之间的Abis接口上的传输效率比较低。采用QCELP 8K编码方式,平均传输效率大约为22.8%;采用EVRC编码方式,平均传输效率大约为23.7%;采用Q13K编码方式,平均效率大约为35.9%。It can be seen from Table 1 that the average voice packet length is 8.28 bytes when using the QCELP 8K coding method; the average voice packet length is 8.68 bytes when using the enhanced variable frequency coding (EVRC) method; The length is 15.7 bytes. Since the IP header has 20 bytes and the UDP header also has 8 bytes, it is obvious that the voice transmission efficiency on the Abis interface between the BSC and the BTS in the CDMA2000 system is relatively low. Using the QCELP 8K coding method, the average transmission efficiency is about 22.8%; using the EVRC coding method, the average transmission efficiency is about 23.7%; using the Q13K coding method, the average transmission efficiency is about 35.9%.

同样,在其它无线通信系统中,如WCDMA系统,也存在与CDMA2000系统类似的问题。可见,目前在无线通信系统中对业务包的传输效率较低,并且占用带宽较大,大大降低了IP化为无线通信系统所带来的好处。Similarly, in other wireless communication systems, such as the WCDMA system, there are also problems similar to those of the CDMA2000 system. It can be seen that the transmission efficiency of service packets in the current wireless communication system is low, and the bandwidth is relatively large, which greatly reduces the benefits brought by the transformation of IP into the wireless communication system.

发明内容Contents of the invention

本发明的目的在于提出一种在IP层实现头压缩及复用的方法,以提高传输承载的效率。The purpose of the present invention is to propose a method for realizing header compression and multiplexing at the IP layer, so as to improve the efficiency of transmission and bearing.

为实现上述目的,本发明提供了一种在IP层实现头压缩及复用的方法,包括以下步骤:To achieve the above object, the invention provides a method for realizing header compression and multiplexing at the IP layer, comprising the following steps:

将在IP层传输的IP数据包的UDP头压缩为UDP复用头,将具有相同源UDP端口号及目的UDP端口号的业务报文作为复用子帧,并在该复用子帧的前部加入所述UDP复用头,将一个以上携带有UDP复用头的复用子帧封装在同一个IP包中,并在所述IP包头部加入IP头。Compress the UDP header of the IP data packet transmitted at the IP layer into a UDP multiplexing header, use the service message with the same source UDP port number and destination UDP port number as a multiplexing subframe, and Adding the UDP multiplexing header at the end, encapsulating more than one multiplexing subframe carrying the UDP multiplexing header in the same IP packet, and adding an IP header to the IP packet header.

所述步骤之前还包括:Said steps are also preceded by:

a、接收方向发送方发送请求进行头压缩及复用的协商请求报文;a. The receiver sends a negotiation request message requesting header compression and multiplexing to the sender;

b、发送方向所述接收方返回协商应答报文,该报文中携带所述发送方与所述接收方之间连接的连接标识;b. The sender returns a negotiation response message to the receiver, and the message carries a connection identifier of the connection between the sender and the receiver;

c、所述接收方向所述发送方发送协商确认报文,确认进行所述头压缩及复用;c. The receiver sends a negotiation confirmation message to the sender to confirm the header compression and multiplexing;

d、所述发送方将复用参数配置到用户面,由所述用户面完成业务报文的头压缩及复用。d. The sender configures multiplexing parameters to the user plane, and the user plane completes header compression and multiplexing of service packets.

所述步骤a之前还包括以下步骤:Also include the following steps before the step a:

发送方与接收方分别建立连接标识与发送方的源端口号及接收方的目的端口号之间对应关系的映射表。The sender and the receiver respectively establish a mapping table of the corresponding relationship between the connection identifier, the source port number of the sender, and the destination port number of the receiver.

步骤d中所述发送方将复用参数配置到用户面具体执行以下步骤:In step d, the sender configures the multiplexing parameters to the user interface and performs the following steps:

设置复用的最大子帧长度,所述业务报文的复用子帧超过该长度后不再进行复用;Set the maximum subframe length for multiplexing, and the multiplexing subframe of the service message will not be multiplexed after exceeding this length;

设置最大复用时间,从开始复用的时刻算起,在超过所述最大复用时间之前,必须将业务报文发送出去。Set the maximum multiplexing time. From the moment of multiplexing, the service packets must be sent out before the maximum multiplexing time is exceeded.

步骤d中所述头压缩具体执行以下步骤:The header compression described in step d specifically performs the following steps:

用所述连接标识代替源UDP端口号及目的UDP端口号;删除UDP头的长度域及校验和域。The source UDP port number and the destination UDP port number are replaced by the connection identifier; the length field and the checksum field of the UDP header are deleted.

所述步骤d之后还包括停止头压缩及复用的过程,具体执行以下步骤:After said step d, also include the process of stopping header compression and multiplexing, specifically perform the following steps:

e1、接收方向发送方发送请求停止头压缩及复用的协商请求报文;e1. The receiver sends a negotiation request message requesting to stop header compression and multiplexing to the sender;

e2、发送方向所述接收方返回协商应答报文,该报文中携带所述发送方与所述接收方之间的连接的连接标识;e2. The sender returns a negotiation response message to the receiver, and the message carries the connection identifier of the connection between the sender and the receiver;

e3、所述接收方向所述发送方发送协商确认报文,确认停止所述头压缩及复用。e3. The receiver sends a negotiation confirmation message to the sender, confirming to stop the header compression and multiplexing.

完成对所述IP数据包的压缩复用之后,在所述IP数据包的尾部加入该IP数据包的校验和码。After the compression and multiplexing of the IP data packet is completed, the checksum code of the IP data packet is added at the end of the IP data packet.

所述协商请求报文及协商确认报文包括标志域、压缩复用启动域、报文长度域及保留域。The negotiation request message and the negotiation confirmation message include a flag field, a compression multiplexing start field, a message length field and a reserved field.

所述协商应答报文包括标志域、压缩复用确认域、连接标识域及保留域。The negotiation response message includes a flag field, a compressed multiplexing confirmation field, a connection identification field and a reserved field.

本发明通过将UDP头压缩为UDP复用头,将具有相同源UDP端口号及目的UDP端口号的业务报文作为复用子帧,在该复用子帧前部加入UDP复用头,并将多个携带有UDP复用头的复用子帧封装在同一个IP包中,使得多个业务报文共享UDP头和IP头,提高了业务报文在传输包中所占的比例,从而提高了传输效率,降低了对传输带宽的要求,降低了运营商的运营成本,并且减少了传输网上转发的分组数,降低了对路由器处理能力的要求。In the present invention, by compressing the UDP header into a UDP multiplexing header, the business message with the same source UDP port number and destination UDP port number is used as a multiplexing subframe, and a UDP multiplexing header is added to the front of the multiplexing subframe, and Encapsulate multiple multiplexing subframes with UDP multiplexing headers in the same IP packet, so that multiple service messages share the UDP header and IP header, increasing the proportion of service messages in the transmission packet, thereby The transmission efficiency is improved, the requirement for transmission bandwidth is reduced, the operator's operating cost is reduced, the number of packets forwarded on the transmission network is reduced, and the requirement for router processing capability is reduced.

附图说明Description of drawings

图1为现有技术中的IP数据包包头各个字段的结构图;Fig. 1 is the structural diagram of each field of IP packet header in the prior art;

图2为现有技术中UDP数据包的包头结构图;Fig. 2 is the packet header structural diagram of UDP packet in the prior art;

图3为本发明的实施例中在IP层实现头压缩及复用的方法流程图。FIG. 3 is a flowchart of a method for implementing header compression and multiplexing at the IP layer in an embodiment of the present invention.

具体实施方式Detailed ways

本发明的基本思想是:在IP层传输业务报文时,将UDP头压缩为UDP复用头,将具有相同源UDP端口号及目的UDP端口号的业务报文作为复用子帧,在该复用子帧的前部加入所述UDP复用头,并将多个携带有UDP复用头的复用子帧封装在同一个IP包中,使得多个业务报文共享UDP头和IP头,从而提高传输效率,降低对传输带宽的要求和运营成本。The basic thought of the present invention is: when IP layer transmits business message, compresses UDP header into UDP multiplex header, uses the business message with same source UDP port number and purpose UDP port number as multiplexing subframe, in this The front part of the multiplexing subframe is added with the UDP multiplexing header, and multiple multiplexing subframes carrying the UDP multiplexing header are encapsulated in the same IP packet, so that multiple service messages share the UDP header and the IP header , thereby improving transmission efficiency, reducing requirements on transmission bandwidth and operating costs.

本发明中,所述IP数据包包头不支持可选项,采用固定选项,即图1所示可选项字段不使用。In the present invention, the IP data packet header does not support optional items, and uses fixed options, that is, the optional item field shown in FIG. 1 is not used.

本发明对头压缩及复用方法的实现包括控制面和用户面两部分,其中,控制面用于完成对压缩复用启动及压缩复用参数的协商,用户面用于完成头压缩及复用。控制面协议在IP包头的协议域字段中填写的协议类型值为23,用户面协议在IP包头的协议域字段中填写的协议类型值为24。The realization of the header compression and multiplexing method in the present invention includes two parts: a control plane and a user plane, wherein the control plane is used to complete compression multiplexing startup and negotiation of compression multiplexing parameters, and the user plane is used to complete header compression and multiplexing. The protocol type value filled in the protocol field field of the IP packet header for the control plane protocol is 23, and the protocol type value filled in the protocol field field of the IP packet header for the user plane protocol is 24.

由于每条话路都采用{源IP地址,目的IP地址,源UDP端口号,目的UDP端口号}组标识,且该标识在每条话路建立时就已经确定,后续话路上进行传输时,这些地址都是重复的,因此,应该可以将该标识压缩.但是,依照IP协议的规定,在IP层进行数据包传输时必须使用IP地址,否则所传输的数据包就会被丢弃,所以,本发明中头压缩的实现原理是:不压缩源IP地址和目的IP地址,只压缩源UDP端口号和目的UDP端口号.Since each session adopts {source IP address, destination IP address, source UDP port number, destination UDP port number} group identification, and this identification has been determined when each session is established, when the subsequent session is transmitted, These addresses are all repeated, so it should be possible to compress the logo. However, according to the IP protocol, IP addresses must be used when transmitting data packets at the IP layer, otherwise the transmitted data packets will be discarded, so, The realization principle of the header compression in the present invention is: the source IP address and the destination IP address are not compressed, only the source UDP port number and the destination UDP port number are compressed.

具体压缩方法为:在发送方,将图2所示的16位源UDP端口号及16位的目的UDP端口号压缩为连接标识(SID),即用SID代替源UDP端口号及目的UDP端口号,在接收方根据SID恢复出源UDP端口及目的UDP端口号。并且,删除16位UDP长度域,因为接收方可以根据UDP包头长度及报文长度计算出UDP数据包长度。另外,将16位校验和域设置为可选项,在链路层已经提供校验的情况下,该校验和域可以没有,比如:如果在PPP链路上承载IP协议,由于PPP链路本身已经存在了校验和,且该校验和已经包括IP/UDP的头,此时,UDP头的校验和就可以不用。The specific compression method is: at the sender, compress the 16-bit source UDP port number and the 16-bit destination UDP port number shown in Figure 2 into a connection identifier (SID), that is, replace the source UDP port number and the destination UDP port number with the SID , the receiver recovers the source UDP port and destination UDP port number according to the SID. In addition, the 16-bit UDP length field is deleted, because the receiver can calculate the length of the UDP data packet according to the length of the UDP header and the length of the message. In addition, the 16-bit checksum field is set as an optional item. In the case that the link layer has provided checksum, the checksum field can be omitted. For example: if the IP protocol is carried on the PPP link, because the PPP link The checksum itself already exists, and the checksum already includes the IP/UDP header. At this time, the checksum of the UDP header can be ignored.

压缩后的UDP头在本发明中称为UDP复用头,其结构如表2所示:Compressed UDP header is called UDP multiplexing header in the present invention, and its structure is as shown in table 2:

 LXTLXT   SXTSXT   6位或者14位LEN6-bit or 14-bit LEN   8位或者16位SID8-bit or 16-bit SID

表2Table 2

其中,LXT标志域为1位,用来表明LEN域是6比特还是14比特;Among them, the LXT flag field is 1 bit, which is used to indicate whether the LEN field is 6 bits or 14 bits;

SXT标志域为1位,用来表明SID域的长度是8比特还是16比特;The SXT flag field is 1 bit, which is used to indicate whether the length of the SID field is 8 bits or 16 bits;

SID为连接标识,接收发送两方必须保持一致,该连接标识在协商阶段协商获得,在复用报文中使用;SID is the connection identifier, which must be consistent between the receiving and sending parties. The connection identifier is obtained during the negotiation phase and used in the multiplexed message;

LEN为子帧长度,即复用的子帧长度,该长度不包括SID及LEN本身。本发明中,头复用的实现原理为:在不超过协议规定的IP数据包最大长度的情况下,将具有相同源IP地址和目的IP地址的数据包封装在同一IP数据包中,复用一个IP头;将具有相同源UDP端口号和目的UDP端口号的IP数据包作为复用子帧,加入UDP复用头。LEN is the subframe length, that is, the length of the multiplexed subframe, and the length does not include the SID and LEN itself. In the present invention, the implementation principle of header multiplexing is: under the condition of not exceeding the maximum length of the IP data packet stipulated in the protocol, the data packets with the same source IP address and destination IP address are encapsulated in the same IP data packet, and the multiplexed An IP header; the IP data packet with the same source UDP port number and destination UDP port number is used as a multiplexing subframe and added to the UDP multiplexing header.

另外,由于链路传输上存在误码的问题,需要校验传输中的错误,而IP包头的校验和仅覆盖了IP包头部分,因此,为正确保护复用包并减少校验开销,要在复用包的尾部增加校验和位,该校验和与UDP包头中的校验和类似,覆盖了复用包的包头及所有子帧。校验和为16位的值,类似于UDP的校验和,发送方如果在校验和域发送为0,即表示没有校验和,接收方在此条件下,无需计算校验和。In addition, due to the problem of bit errors in the link transmission, it is necessary to check the errors in the transmission, and the checksum of the IP header only covers the part of the IP header. Therefore, in order to correctly protect the multiplexed packets and reduce the verification overhead, it is A checksum bit is added at the end of the multiplexed packet. The checksum is similar to the checksum in the header of the UDP packet and covers the header of the multiplexed packet and all subframes. The checksum is a 16-bit value, similar to the UDP checksum. If the sender sends 0 in the checksum field, it means that there is no checksum. Under this condition, the receiver does not need to calculate the checksum.

复用后的IP数据包格式如表3所示:The IP packet format after multiplexing is shown in Table 3:

  IP包头IP header  UDP复用头UDP multiplexing header   复用子帧multiplexing subframe  UDP复用头UDP multiplexing header   复用子帧multiplexing subframe ……... 校验和checksum

表3table 3

在实现头压缩及复用后,需要对IP数据包的包头部分进行修改,具体的修改为:由于将原来的多个业务报文封装在一个IP数据包中,总长度发生了变化,需要根据新的总长度大小重新填写IP包头中的总长度域;另外由于IP数据包的个数也发生了变化,需要根据IP协议的规定重新填写标识字段;由于头压缩及复用是在用户面实现的,因此协议域填写的类型值为24;最后还要根据以上字段的修改,重新计算首部校验和,计算方法与现有的IP协议规定的校验和算法相同。After the header compression and multiplexing are realized, the header part of the IP data packet needs to be modified. The specific modification is: because the original multiple service packets are encapsulated in one IP data packet, the total length has changed. Re-fill the total length field in the IP packet header with the new total length; in addition, because the number of IP data packets has also changed, it is necessary to re-fill the identification field according to the provisions of the IP protocol; since the header compression and multiplexing are implemented on the user plane Therefore, the type value filled in the protocol field is 24; finally, the header checksum must be recalculated according to the modification of the above fields, and the calculation method is the same as the checksum algorithm specified in the existing IP protocol.

图3为本发明的实施例中在IP层实现头压缩及复用的方法流程图,具体执行以下步骤:Fig. 3 is the flow chart of the method for realizing header compression and multiplexing at the IP layer in an embodiment of the present invention, specifically perform the following steps:

步骤301、接收方向发送方发送请求进行IP头和UDP头压缩及复用的协商请求报文。协商请求报文是由接收方发起的,接收方如果支持压缩及复用,则在呼叫建立过程中,发起该协商请求。该协商请求报文的格式如表4所示:Step 301 , the receiver sends a negotiation request message requesting compression and multiplexing of the IP header and the UDP header to the sender. The negotiation request message is initiated by the receiver. If the receiver supports compression and multiplexing, it will initiate the negotiation request during the call establishment process. The format of the negotiation request message is shown in Table 4:

表4Table 4

其中,FLAG域的长度为6比特,FLAG域的值为1时,则表示该报文是协商请求报文(MUX REQUEST);Wherein, the length of the FLAG domain is 6 bits, and when the value of the FLAG domain is 1, it means that the message is a negotiation request message (MUX REQUEST);

MON/MOFF域长度为1比特,当MON/MOFF=0表示协商请求关闭压缩复用功能;MON/MOFF=1表示协商请求启用压缩复用功能;The length of the MON/MOFF field is 1 bit. When MON/MOFF=0, it means that the negotiation request disables the compression multiplexing function; MON/MOFF=1 indicates that the negotiation request enables the compression multiplexing function;

16位保留域(reserved)暂时没有使用,待后续版本协议的扩充。The 16-bit reserved field (reserved) is not used for the time being, and will be expanded in subsequent versions of the protocol.

步骤302、发送方向接收方返回协商应答报文,该协商应答报文中携带发送方与接收方之间所建立的连接的连接标识。协商应答报文是由发送方发送的,是用来确认协商请求的报文,分为同意(ACK)报文和不同意(NAK)报文,协商应答报文的格式如表5所示:Step 302: The sender returns a negotiation response message to the receiver, and the negotiation response message carries the connection identifier of the connection established between the sender and the receiver. The negotiation response message is sent by the sender. It is a message used to confirm the negotiation request. It is divided into an agreement (ACK) message and a disagreement (NAK) message. The format of the negotiation response message is shown in Table 5:

Figure G200610103321XD00072
Figure G200610103321XD00072

表5table 5

其中,FLAG域的长度为6比特,值为2时,标识该报文为ACK报文,值为3时标识该报文为NAK报文;Wherein, the length of the FLAG field is 6 bits, when the value is 2, the message is identified as an ACK message, and when the value is 3, the message is identified as a NAK message;

MON/MOFF域长度为1比特,如果该报文为协商关闭,则MON/MOFF的值设置为1,如果该报文为协商启用,则MON/MOFF的值设置为0;The length of the MON/MOFF field is 1 bit. If the message is negotiated off, the value of MON/MOFF is set to 1. If the message is negotiated, the value of MON/MOFF is set to 0;

SXT域长度为1比特,值为0时表示SID为8比特,为1时表示SID为16比特;The length of the SXT field is 1 bit. When the value is 0, it means that the SID is 8 bits, and when it is 1, it means that the SID is 16 bits;

SID是发送方确定的连接标识,当SID为8比特时,为保证4字节对齐,需要有8比特的填充。在本发明中,是用连接标识(SID)来标识不同的连接,该SID在一个点到点连接链路上是唯一的,由发送方从0开始编号。本实施例在链路两端建立了SID与源UDP端口号和目的UDP端口号的映射表,用SID代替源UDP端口号和目的UDP端口号,从而完成对源UDP端口号和目的UDP端口号的压缩。The SID is the connection identifier determined by the sender. When the SID is 8 bits, 8-bit padding is required to ensure 4-byte alignment. In the present invention, a connection identifier (SID) is used to identify different connections, and the SID is unique on a point-to-point connection link, numbered from 0 by the sender. This embodiment sets up the mapping table of SID and source UDP port number and purpose UDP port number at link two ends, replaces source UDP port number and purpose UDP port number with SID, thereby completes the source UDP port number and purpose UDP port number of compression.

后续的16位源端口号与目的端口号即SID对应的源端口号与目的端口号。The subsequent 16-bit source port number and destination port number are the source port number and destination port number corresponding to the SID.

如果该协商应答报文为NAK报文,则表示不同意此次协商,并将不认可的参数返回给接收方,由接收方对这些参数进行调整后,再次发协商请求。If the negotiation response message is a NAK message, it means that the negotiation is not agreed, and the unapproved parameters are returned to the receiver, and the receiver adjusts these parameters and then sends the negotiation request again.

步骤303、接收方向发送方发送协商确认报文,确认进行IP头和UDP头压缩及复用。该协商确认报文的格式与表4格式相同,其中,FLAG域的长度也为6比特,只是值为4;MON/MOFF域的长度也为1比特,确认进行压缩复用则该域值为1,否则为0。Step 303 , the receiver sends a negotiation confirmation message to the sender to confirm the compression and multiplexing of the IP header and the UDP header. The format of the negotiation confirmation message is the same as that in Table 4, wherein the length of the FLAG field is also 6 bits, but the value is 4; the length of the MON/MOFF field is also 1 bit, and the value of this field is 1, otherwise 0.

以上步骤中的协议为控制面协议,在IP数据包包头的协议域中填写的协议号为23。The protocol in the above steps is the control plane protocol, and the protocol number filled in the protocol field of the IP packet header is 23.

步骤304、发送方将复用参数配置到用户面,也就是压缩复用的使能。需要设置如下几个复用参数:Step 304, the sender configures multiplexing parameters to the user plane, that is, enables compression multiplexing. The following multiplexing parameters need to be set:

F_MAX_SUB_LEN:复用的最大子帧长度,当超过这个长度时,就不进行复用了;F_MAX_SUB_LEN: The maximum subframe length for multiplexing. When this length is exceeded, multiplexing will not be performed;

F_MAX_MUX_TIME:最大的复用时间,从开始复用开始,超过这个时间之前,必需将包发送出去,这个参数避免了复用导致过大的时延和抖动;F_MAX_MUX_TIME: The maximum multiplexing time, starting from the start of multiplexing, before this time, the packet must be sent out, this parameter avoids excessive delay and jitter caused by multiplexing;

SID与源UDP端口号与目的UDP端口号对应关系的映射表。A mapping table of the corresponding relationship between SID, source UDP port number and destination UDP port number.

步骤305、在用户面进行业务报文的头压缩及复用。Step 305, performing header compression and multiplexing of service packets on the user plane.

发送方的用户面在确认报文无可选项的情况下,进行IP头和UDP头压缩及复用,具体压缩和复用方法如前所述。When the user plane of the sender confirms that the message has no options, it compresses and multiplexes the IP header and UDP header. The specific compression and multiplexing methods are as described above.

接收方根据IP的协议域解码,如果数据包是复用包,则根据LXT、SXT解包,并根据保存的SID与UDP端口号的关系恢复包。The receiver decodes according to the protocol field of IP, if the data packet is a multiplexed packet, unpacks it according to LXT and SXT, and restores the packet according to the relationship between the saved SID and UDP port number.

如果接收方想停止包压缩和复用,则采用和步骤301到步骤303类似的过程进行协商,此时接收方发送的控制面报文为请求停止IP头和UDP头复用的协商请求报文,MON/MOFF域置0。If the receiving party wants to stop packet compression and multiplexing, it uses a process similar to steps 301 to 303 for negotiation. At this time, the control plane message sent by the receiving party is a negotiation request message requesting to stop the multiplexing of the IP header and the UDP header. , the MON/MOFF field is set to 0.

最后说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围。Finally, it is noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to the embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalent replacement without departing from the spirit and scope of the technical solutions of the present invention.

Claims (8)

1. realize a head compression and a multiplexing method at the IP layer for one kind, it is characterized in that, may further comprise the steps:
Will be at UDP the multiplexing head of boil down to UDP of the IP packet of IP layer transmission, the service message that will have identical sources udp port number and purpose udp port number is as multiplexed sub frame, and add the multiplexing head of described UDP in the front portion of this multiplexed sub frame, the multiplexed sub frame that carries the multiplexing head of UDP more than one is encapsulated in the same IP bag, and adds the IP head at described IP packet header;
Also comprise before the described step:
A, receive direction transmit leg send request and carry out head compression and multiplexing message of negotiation request;
B, the described recipient of sending direction return the negotiation response message, carry the connection identifier that is connected between described transmit leg and the described recipient in this message; Identify different connections with this connection identifier, it is unique that this connection identifier connects on the link at a point-to-point, set up the mapping table of connection identifier and source udp port number and purpose udp port number at both link ends, replaced source udp port number and purpose udp port number with connection identifier;
C, the described transmit leg of described receive direction send consults confirmation message, confirms to carry out described head compression and multiplexing;
D, described transmit leg are configured to user's face with multiplexing parameters, are finished a compression and multiplexing of service message by described user's face.
2. according to claim 1 in an IP layer realization head compression and a multiplexing method, it is characterized in that described step a is before further comprising the steps of:
Connect the respectively mapping table of corresponding relation between sign and the source port number of transmit leg and recipient's the destination slogan of transmit leg and recipient.
3. according to claim 2ly realize a head compression and a multiplexing method, it is characterized in that transmit leg described in the steps d is configured to the mask user body with multiplexing parameters and carries out following steps at the IP layer:
Multiplexing maximum subframe lengths is set, and the multiplexed sub frame of described service message is multiplexing above no longer carrying out after this length;
The maximum multiplexing time is set, counts,, service message must be sent surpassing described maximum before the multiplexing time from beginning the multiplexing moment.
4. describedly realize a head compression and a multiplexing method according to claim 1,2 or 3, it is characterized in that the concrete following steps of carrying out of the compression of head described in the steps d at the IP layer:
Replace source udp port number and purpose udp port number with described connection identifier; Length field and the verification and the territory of deletion UDP head.
5. describedly realize a head compression and a multiplexing method according to claim 1,2 or 3, it is characterized in that, also comprise after the described steps d stopping a head compression and a multiplexing process, specifically carry out following steps at the IP layer:
E1, receive direction transmit leg send request and stop head compression and multiplexing message of negotiation request;
E2, the described recipient of sending direction return the negotiation response message, carry the connection identifier that is connected between described transmit leg and the described recipient in this message;
E3, the described transmit leg of described receive direction send consults confirmation message, confirms to stop described head compression and multiplexing.
6. according to each describedly realizes a head compression and a multiplexing method at the IP layer in the claim 1 to 3, it is characterized in that, finish to the compression of described IP packet multiplexing after, add the verification and the sign indicating number of this IP packet at the afterbody of described IP packet.
7. describedly realize a head compression and a multiplexing method according to claim 1,2 or 3, it is characterized in that, described message of negotiation request and consult confirmation message and comprise mark domain, the multiplexing startup of compression territory, message length territory and keep the territory at the IP layer.
8. describedly realize a head compression and a multiplexing method according to claim 1,2 or 3, it is characterized in that described negotiation response message comprises mark domain, the multiplexing affirmation of compression territory, connection identifier territory and keeps the territory at the IP layer.
CN200610103321A 2006-07-18 2006-07-18 A Method of Realizing Header Compression and Multiplexing in IP Layer Expired - Fee Related CN1889575B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610103321A CN1889575B (en) 2006-07-18 2006-07-18 A Method of Realizing Header Compression and Multiplexing in IP Layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610103321A CN1889575B (en) 2006-07-18 2006-07-18 A Method of Realizing Header Compression and Multiplexing in IP Layer

Publications (2)

Publication Number Publication Date
CN1889575A CN1889575A (en) 2007-01-03
CN1889575B true CN1889575B (en) 2010-05-12

Family

ID=37578832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610103321A Expired - Fee Related CN1889575B (en) 2006-07-18 2006-07-18 A Method of Realizing Header Compression and Multiplexing in IP Layer

Country Status (1)

Country Link
CN (1) CN1889575B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242561B (en) * 2007-02-07 2011-04-06 华为技术有限公司 Data receiving and transmission method and device between wireless network controller and base station node
CN100574283C (en) * 2007-06-12 2009-12-23 华为技术有限公司 Uplink and downlink transmission methods and aggregation nodes
CN101325684B (en) 2007-06-14 2010-10-06 中兴通讯股份有限公司 Encrypted control information transmission method and system based on mobile multimedia broadcasting
CN101388825B (en) * 2007-09-12 2012-02-01 华为技术有限公司 Method and apparatus for transmitting data package of GPRS tunnel protocol
CN101420369A (en) * 2007-10-24 2009-04-29 华为技术有限公司 Packet transmission method, system and device for general packet wireless service tunnel protocol
CN101453463B (en) * 2007-11-28 2013-02-27 中兴通讯股份有限公司 Data packet packing, transmitting and receiving method for mobile multimedia broadcast system
CN101183924B (en) * 2007-12-19 2010-09-29 华为技术有限公司 Method and device for user datagram protocol multiplexing and multiplexing negotiation
CN101350812B (en) * 2008-08-22 2012-06-27 上海华为技术有限公司 Data transmission method, communication apparatus and communication system
CN101730140B (en) * 2008-10-21 2013-08-14 电信科学技术研究院 Method and device for sending and receiving messages
CN101442777B (en) * 2008-12-31 2011-04-13 华为技术有限公司 Method and apparatus for processing compression multiplexing message
CN102143527B (en) 2010-02-03 2013-09-11 华为技术有限公司 Compression method and device for nested protocol packet header
CN103595660B (en) * 2013-11-04 2016-08-31 上海数字电视国家工程研究中心有限公司 The method for packing of IP packet and the header compression method of IP packet
CN103595661B (en) * 2013-11-28 2017-05-10 新华三技术有限公司 Message fragmentation restructuring method and device
CN107196879B (en) * 2017-05-18 2020-10-09 杭州敦崇科技股份有限公司 UDP message processing method and device and network forwarding device
CN110012314B (en) * 2019-01-30 2021-10-12 国家广播电视总局广播电视科学研究院 IP transmission method and system based on DTMB
EP3905625B1 (en) * 2019-02-01 2023-10-04 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Header compression processing method and apparatus, communications equipment
CN113824668B (en) * 2020-06-08 2023-04-25 威海北洋电气集团股份有限公司 Network protocol packet packaging method and system
CN112769705A (en) * 2020-12-01 2021-05-07 北京电子工程总体研究所 VoIP header compression method suitable for small local area network

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1469602A (en) * 2002-06-26 2004-01-21 ���ǵ�����ʽ���� Apparatus and method for compressing headers and multiplexing packets in a network environment
CN1668005A (en) * 2005-02-21 2005-09-14 西安西电捷通无线网络通信有限公司 An Access Authentication Method Suitable for Wired and Wireless Networks

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1469602A (en) * 2002-06-26 2004-01-21 ���ǵ�����ʽ���� Apparatus and method for compressing headers and multiplexing packets in a network environment
CN1668005A (en) * 2005-02-21 2005-09-14 西安西电捷通无线网络通信有限公司 An Access Authentication Method Suitable for Wired and Wireless Networks

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
同上.

Also Published As

Publication number Publication date
CN1889575A (en) 2007-01-03

Similar Documents

Publication Publication Date Title
CN1889575B (en) A Method of Realizing Header Compression and Multiplexing in IP Layer
CN1930835B (en) Providing higher layer packet/frame boundary information in GRE frames
EP1604535B1 (en) Telecommunications apparatuses and method for communicating internet protocol packet data
US7558240B2 (en) Radio telecommunications apparatus and method for communications internet data packets containing different types of data
CN101369977A (en) Method, device and system for data transmission
CN1422484A (en) Using Internet protocol (IP) in radio access network
JP2006522518A5 (en)
CN100574283C (en) Uplink and downlink transmission methods and aggregation nodes
CN101057461A (en) Apparatus and method for compressing header in broadband wireless communication system
CN102447617A (en) Method, terminal and gateway for transmitting IPv6 message in IPv4 network
CN101374266A (en) Data transmission and reception method, wireless access point device, gateway, communication system
WO2010133022A1 (en) Method, apparatus and system for transmitting and receiving voice packets
CN1909513A (en) Method for realizing head compressing and multiple-use in serial chain circuit
CN102124775A (en) Methods of header compression within a wireless communications network
CN1684466A (en) Method of resuming header decompression in a multimedia broadcast/mulitcast service system
CN101155141A (en) Packet Voice Packet Transmission Method and System
CN100428744C (en) Transmission method and system for packet data in communication network
CN102118356A (en) Message transmission method and transmission device
TWI381687B (en) Apparatus and method for efficiently supporting voip in a wireless communication system
CN101242561B (en) Data receiving and transmission method and device between wireless network controller and base station node
CN101415003B (en) Method, apparatus and communication system for transmission of compression message
CN1612621A (en) Base station internal real-time service data transmitting method
CN100414926C (en) Method and system for realizing packet data compression on code division multiple access network
CN1735071A (en) Error recovery method and device for IP header compression in mobile communication network
Kempf IP in the RAN as a Transport Option in 3rd Generation Mobile Systems

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100512

Termination date: 20210718