[go: up one dir, main page]

CN100433841C - Robustness header compression/decompression method for MIPv6 - Google Patents

Robustness header compression/decompression method for MIPv6 Download PDF

Info

Publication number
CN100433841C
CN100433841C CNB021485119A CN02148511A CN100433841C CN 100433841 C CN100433841 C CN 100433841C CN B021485119 A CNB021485119 A CN B021485119A CN 02148511 A CN02148511 A CN 02148511A CN 100433841 C CN100433841 C CN 100433841C
Authority
CN
China
Prior art keywords
packet
mipv6
compression
header
grouping
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
CNB021485119A
Other languages
Chinese (zh)
Other versions
CN1507286A (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.)
University of Science and Technology of China USTC
Original Assignee
University of Science and Technology of China USTC
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 University of Science and Technology of China USTC filed Critical University of Science and Technology of China USTC
Priority to CNB021485119A priority Critical patent/CN100433841C/en
Publication of CN1507286A publication Critical patent/CN1507286A/en
Application granted granted Critical
Publication of CN100433841C publication Critical patent/CN100433841C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a robustness header compression/decompression method for MIPv6, which relates to the internet mobile communication field and belongs to a header compression/decompression according to data flows sent by MIPv6 in wireless mobile environment. The method utilizes an ROHC regulation at both ends of a wireless communication link to compress transmission layer headers and network layer headers adopted in real-time audio and video services transmitted in a network; the method sends complete MIPv6 groups in the initial transmission stage of data flows and selects associated identifiers to correspond to the complete MIPv6 groups according to the characteristic that multiple domains in UDP/IPv6/MIPv6 headers in the same data flow are constant; then, a compression regulation is started; subsequent groups only need to transfer variational header domains and associated identifiers. The present invention defines compression/decompression processes and compressed group formats; simulation indicates that the header compression rate achieves 96%. The present invention effectively compresses header information, has preferable fault-tolerance function, and greatly enhances the channel utilization rate of wireless links.

Description

用于因特网协议第6版移动子协议MIPv6的鲁棒性头标压缩/解压方法 Robust Header Compression/Decompression Method for Internet Protocol Version 6 Mobility Sub-Protocol MIPv6

技术领域: Technical field:

本发明涉及因特网移动通信领域,属于根据MIPv6在无线移动环境下发送数据流时的头标压缩/解压方法。The invention relates to the field of Internet mobile communication, and belongs to a header compression/decompression method when sending data streams in a wireless mobile environment according to MIPv6.

背景技术: Background technique:

鲁棒性头标压缩(Robust Header Compression,简称ROHC)是因特网工程任务组织(Internet Engineering Task Force,简称IETF)提出的头标压缩协议规程,是一种具有很强的容错能力(包括帧丢失和残留误码(residual bit errors))的头标压缩机制(RFC3095)。ROHC针对不同的协议,提出了不同的头标压缩子协议(profile)。目前规范的子协议有RTP/UDP/IP、UNCOMPRESSED、UDP/IP、ESP/IP头标的模型。但尚未有针对MIPv6的头标模型。Robust Header Compression (Robust Header Compression, referred to as ROHC) is a header compression protocol proposed by the Internet Engineering Task Force (IETF). Header compression mechanism for residual bit errors (RFC3095). ROHC proposes different header compression sub-protocols (profiles) for different protocols. The currently standardized sub-protocols include RTP/UDP/IP, UNCOMPRESSED, UDP/IP, and ESP/IP header models. But there is no header model for MIPv6 yet.

由于因特网的IP分组在转发过程中要根据IP头标信息进行寻路,如果传送实时音频等小分组业务其头标本身所占用的开销很大,因而占用过多的网络带宽、从而会增加网络传送的负担。对于有线网络这种负担暂且还不会影响到网络的性能。但是,无线网络的传输带宽相对较窄,这种负担就会产生很大的影响。尤其是目前正在开发的因特网协议第6版的移动子协议(Mobility Support for Internet Protocol version 6,简称为MIPv6),其头标本身所占用的开销更大,因而更加迫切需要进行头标压缩。Since the IP packets on the Internet need to find their way according to the IP header information during the forwarding process, if real-time audio and other small packet services are transmitted, the header itself will take up a lot of overhead, thus occupying too much network bandwidth, which will increase the network bandwidth. burden of transmission. For the wired network, this burden will not affect the performance of the network for the time being. However, the transmission bandwidth of the wireless network is relatively narrow, and this burden will have a great impact. In particular, the Mobility Support for Internet Protocol version 6 (MIPv6) which is currently under development requires a larger overhead for the header itself, so header compression is more urgently needed.

发明内容: Invention content:

本发明的目的是提供一种用于MIPv6鲁棒性头标压缩/解压方法,以在无线环境下传输MIPv6分组时提高无线带宽利用率。The purpose of the present invention is to provide a method for MIPv6 robust header compression/decompression to improve wireless bandwidth utilization when transmitting MIPv6 packets in a wireless environment.

本发明的技术解决方案如下:Technical solution of the present invention is as follows:

该方法是在无线通信链路的两端进行以下处理:①对MIPv6分组进行筛选;以及②对用UDP协议封装的数据流分组进行头标压缩/解压;其中,发送方为压缩方,接受方为解压方;压缩方对所选定的分组按照分组头标域中信息的状态进行分类,然后选择对应的压缩方法进行头标压缩后,传送给解压方;解压方根据压缩后的头标获得足够的信息,然后恢复成原始的未经压缩的头标;The method is to carry out the following processing at both ends of the wireless communication link: ① screening MIPv6 packets; and ② performing header compression/decompression on data flow packets encapsulated with UDP protocol; It is the decompressor; the compressor classifies the selected packets according to the state of the information in the packet header field, and then selects the corresponding compression method to compress the header, and then transmits it to the decompressor; the decompressor obtains the enough information, and then revert to the original uncompressed header;

头标压缩/解压的范围为该数据流分组中的UDP/MIPv6/IPv6头标的静态域和动态域;压缩后的分组包括以下类别:①包含了完整的MIPv6分组信息的初始化分组;②包含了动态变化的头标域信息的动态分组;③包含了关联识别符CID的完全压缩分组;The range of header compression/decompression is the static domain and dynamic domain of the UDP/MIPv6/IPv6 header in the data flow packet; the compressed packet includes the following categories: ①Initialization packet that contains complete MIPv6 packet information; ②Includes Dynamic grouping of dynamically changing header field information; ③Completely compressed grouping containing the association identifier CID;

所述的压缩方的工作过程包括如下步骤:①筛选:压缩方根据MIPv6分组中的流标记、信源地址域来识别一个流;然后,筛选出含有UDP/MIPv6/IPv6头标的数据流的分组;②初始化:对于属于新的数据流的分组,将压缩方工作设置在初始状态,压缩方向解压方发送初始化分组;③启动压缩规程:对于已经有建立初始化信息的数据流的分组,根据鲁棒性头标压缩ROHC规程发送动态分组和完全压缩分组;The working process of the described compression side comprises the following steps: 1. screening: the compression side identifies a flow according to the flow mark and the source address field in the MIPv6 packet; ;②Initialization: For packets belonging to new data streams, set the compressor to work in the initial state, and send initialization packets to the decompressor from the compressor; Dynamic header compression ROHC protocol to send dynamic packets and fully compressed packets;

所述的解压方的工作过程包括如下步骤:①对于新的数据流,接受初始化分组,建立解压关联表项;②对于已经建立解压关联表项的分组,利用鲁棒性头标压缩ROHC规程进行解压,根据关联识别符CID信息查找解压关联,恢复成原始的未经压缩的头标;③根据所选用的鲁棒性头标压缩ROHC规程中的操作模式,决定是否向压缩方发送反馈分组。The working process of the decompression party includes the following steps: 1. For the new data stream, accept the initialization grouping, and establish the decompression association table item; 2. For the grouping that has already established the decompression association table item, use the robust header to compress the ROHC protocol. Decompress, find the decompression association according to the association identifier CID information, and restore the original uncompressed header; ③ According to the selected operation mode in the robust header compression ROHC protocol, decide whether to send a feedback packet to the compressor.

也就是说,本发明是将鲁棒性头标压缩应用到MIPv6的无线环境中,在无线链路的两端对实时数据流的UDP/MIPv6/IPv6头标进行压缩/解压,使传输过程中所需的头标开销降低。That is to say, the present invention applies robust header compression to the wireless environment of MIPv6, and compresses/decompresses the UDP/MIPv6/IPv6 header of the real-time data flow at both ends of the wireless link, so that the The required header overhead is reduced.

(1)原理(1) Principle

在MIPv6草案中规定,移动节点(Mobile Node,以下简称MN)向通信对端(Correspondent Node,以下简称CN)发送分组时,IPv6分组头标中的源地址为MN的转交地址(Care-of Address)。为了在分组中包含唯一标识MN的家乡地址(HomeAddress),MN发送的分组必须有包含家乡地址的信宿选项头标(Destination OptionHeader)。而CN发给MN的分组则采用寻路头标(Routing Header)的方式,即分组的目的地址为MN的转交地址,寻路头标中含有MN的家乡地址。如图1所示。为方便起见,我们将MIPv6协议中规定的这两个头标通称为MIPv6的扩展头标。According to the MIPv6 draft, when a mobile node (Mobile Node, hereinafter referred to as MN) sends a packet to a correspondent node (Correspondent Node, hereinafter referred to as CN), the source address in the IPv6 packet header is the care-of address (Care-of Address) of the MN. ). In order to include the home address (HomeAddress) that uniquely identifies the MN in the packet, the packet sent by the MN must have a destination option header (Destination OptionHeader) that includes the home address. The packet sent from the CN to the MN is in the form of a routing header, that is, the destination address of the packet is the care-of address of the MN, and the routing header contains the home address of the MN. As shown in Figure 1. For convenience, we refer to these two headers stipulated in the MIPv6 protocol as MIPv6 extension headers.

由于无线链路传输速率较低、误码率较高的特性,在无线网络上传输IPv6分组头标的开销显得过大。例如,一帧音频数据净荷通常只有15-32字节,而在MIPv6环境中传输该数据需要40字节的IPv6头标、20/24字节MIPv6头标、8字节的传输层用户数据报协议(UDP)头标,UDP/MIPv6/IPv6的头标开销总共是68/72字节,如果通信对端也是MN,那么分组的IP/UDP/RTP加在一起的头标开销有92字节。这不仅占用带宽,同时还使分组因出错而被丢弃的概率增大。Due to the low transmission rate and high bit error rate of the wireless link, the overhead of transmitting the IPv6 packet header on the wireless network is too large. For example, the payload of a frame of audio data is usually only 15-32 bytes, and the transmission of this data in the MIPv6 environment requires a 40-byte IPv6 header, a 20/24-byte MIPv6 header, and 8 bytes of transport layer user data UDP protocol (UDP) header, the header overhead of UDP/MIPv6/IPv6 is 68/72 bytes in total, if the communication peer is also MN, then the combined header overhead of IP/UDP/RTP of the packet is 92 bytes Festival. This not only occupies bandwidth, but also increases the probability that packets will be discarded due to errors.

事实上,在传输过程中,同一个数据流的分组的IPv6头标有很多域是相同的,动态变化的部分只有少数几个域。此外,MIPv6头标中的每个域都是静态不变的。因此,如果在无线链路上仅仅在数据流开始时发送完整的MIPv6分组及相应的选项头标,后续分组的头标域只传输变化的部分和相对于同个流的关联识别符,这样就可以更加有效的利用带宽。In fact, during the transmission process, many fields of the IPv6 header of the packets of the same data flow are the same, and only a few fields are dynamically changed. In addition, each field in the MIPv6 header is statically unchanged. Therefore, if only a complete MIPv6 packet and the corresponding option header are sent at the beginning of a data flow on the wireless link, the header field of the subsequent packet only transmits the changed part and the associated identifier relative to the same flow, so that Bandwidth can be used more effectively.

由于头标压缩需要对压缩方和解压方的状态进行保留,因此,头标压缩只适用于持续时间较长、有多个分组的数据流,对于单个分组头标压缩没有意义。一般来说,实时的音频、视频流都是以UDP报文的形式发送长数据流,所以,本发明仅对MIPv6分组中的UDP/MIPv6/IPv6头标进行压缩。Since header compression needs to preserve the state of the compressor and the decompressor, header compression is only applicable to data streams with a long duration and multiple packets, and it is meaningless for header compression of a single packet. Generally speaking, real-time audio and video streams are long data streams sent in the form of UDP packets, so the present invention only compresses the UDP/MIPv6/IPv6 headers in the MIPv6 packets.

(2)MIPv6头标压缩/解压方法(2) MIPv6 header compression/decompression method

无线链路中MIPv6条件下的ROHC的应用如图2所示:The application of ROHC under MIPv6 conditions in the wireless link is shown in Figure 2:

将无线链路一端的移动节点MN和另一端的无线网络控制器RNC(Radio Networkcontroller)作为执行ROHC的压缩/解压的节点。在MN和RNC之间的无线链路上传送的是经过采用ROHC规程压缩的MIPv6分组,在RNC和CN之间的有线链路上传送的是普通的MIPv6分组。MN和RNC都既能执行压缩又可执行解压。对于某一个流,其压缩器和解压器分别在无线链路的两端(即MN和RNC),压缩器在发送方,解压器在接收方。The mobile node MN at one end of the wireless link and the radio network controller RNC (Radio Network controller) at the other end are used as nodes performing ROHC compression/decompression. On the wireless link between MN and RNC, MIPv6 packets compressed by the ROHC protocol are transmitted, and on the wired link between RNC and CN, ordinary MIPv6 packets are transmitted. Both MN and RNC can perform both compression and decompression. For a stream, its compressor and decompressor are located at both ends of the wireless link (that is, MN and RNC), the compressor is at the sender, and the decompressor is at the receiver.

具体的压缩/解压方法如下:The specific compression/decompression method is as follows:

压缩器的工作过程包括如下步骤:The working process of the compressor includes the following steps:

①筛选。压缩器根据MIPv6分组中的流标记、信源地址域来识别一个流;然后,筛选出含有UDP/MIPv6/IPv6头标的数据流的分组;① Screening. The compressor identifies a flow according to the flow mark and the source address field in the MIPv6 packet; then, filters out the packets containing the data flow of the UDP/MIPv6/IPv6 header;

②初始化。对于属于新的数据流的分组,将压缩器工作设置在初始状态(IR:Initialization and Refresh),压缩器向解压器发送初始化分组。该初始化分组除了含有MIPv6分组本身的信息外,还包含了子协议域(profile ID)及关联识别符(context ID,简称CID)等附加信息。Profile ID是用于指出在特定的链路上如何对特定的分组流(本发明中是针对UDP/MIPv6/IPv6分组流)进行头标压缩的规范。CID用来使解压方在存储关联表中索引该流的关联内容(关联表中含有分组中各个域的信息),它在压缩分组所传输的信道内是唯一的。压缩/解压器对每个数据流维护一个关联表项。②Initialization. For the packets belonging to the new data stream, the compressor work is set to the initial state (IR: Initialization and Refresh), and the compressor sends the initialization packet to the decompressor. In addition to the information of the MIPv6 packet itself, the initialization packet also includes additional information such as a subprotocol field (profile ID) and a context ID (CID for short). Profile ID is a specification for pointing out how to carry out header compression to specific packet flow (in the present invention, for UDP/MIPv6/IPv6 packet flow) on a specific link. The CID is used to make the decompressor index the associated content of the stream in the storage association table (the association table contains the information of each field in the packet), and it is unique in the channel through which the compressed packet is transmitted. The compressor/decompressor maintains an association table entry for each data stream.

③启动压缩规程。对于已经有建立初始化信息的数据流的分组,根据ROHC规程发送动态分组和完全压缩分组。这时要针对该分组的具体情况、根据ROHC规程对之进行处理。对于分组中不同类型的域,采用不同的处理方法。下面对照MN和CN之间通信的分组头标格式进行分析。③ Start the compression procedure. For the packet of the data flow that has already established the initialization information, the dynamic packet and the fully compressed packet are sent according to the ROHC regulation. At this time, according to the specific situation of the group, it should be processed according to the ROHC regulations. Different processing methods are used for different types of fields in the group. The following analyzes the header format of the packet communicated between the MN and the CN.

如下表所示,IPv6数据流中的分组头标中有很多域都是不变的(如信源/信宿地址、信源/信宿端口等),称为静态域;有些域偶尔会发生改变(如业务量等级、中继点限制);有些域是作不规则的变化(如UDP的校验和)。压缩时应首先对头标中的各个域进行分类,然后对不同类型的域采用不同的处理方法。As shown in the table below, many fields in the packet header in the IPv6 data stream are constant (such as source/sink address, source/sink port, etc.), which are called static fields; some fields may change occasionally ( Such as traffic level, relay point limit); some fields are changed irregularly (such as UDP checksum). When compressing, each field in the header should be classified first, and then different processing methods should be adopted for different types of fields.

表1:IPv6的基本头标Table 1: Basic headers for IPv6

  域 area   静态 static   版本,流标记,下一个头标,信源地址,信宿地址 Version, stream mark, next header, source address, sink address   动态 dynamic   业务量等级,中继点限制 Traffic level, relay point limit

表2:MIPv6的扩展头标Table 2: Extension headers of MIPv6

  域 area   静态 static   与家乡地址有关的信宿选项头标和寻路头标 Sink options header and wayfinding header related to home address   动态 dynamic   无 none

表3:UDP头标Table 3: UDP headers

  域 area   静态 static   信源端口,信宿端口, Source port, sink port,   动态 dynamic   校验和 checksum

静态的域在压缩后的分组中一般不发送。动态的域可仅在改变的时候发送,这时采用动态分组,它包含了CID信息、动态变化的头标域信息和数据域信息;完全压缩分组一般是在动态的域中不出现变化的情况下发送,主要包含CID信息。具体内容参见子协议格式说明部分。Static fields are generally not sent in compressed packets. The dynamic domain can be sent only when it is changed. At this time, a dynamic packet is used, which contains CID information, dynamically changing header domain information and data domain information; fully compressed packets generally do not change in the dynamic domain Send it down, mainly including CID information. For details, see the sub-protocol format description section.

因此,压缩后的分组包括以下类别:Therefore, compressed packets include the following categories:

①包含了完整的MIPv6分组信息的初始化分组;① An initialization packet containing complete MIPv6 packet information;

②包含了动态变化的头标域信息的动态分组;②Dynamic grouping containing dynamically changing header field information;

③包含了CID的完全压缩分组。③Completely compressed packet including CID.

解压器的工作过程包括如下步骤:The working process of the decompressor includes the following steps:

①对于新的数据流,接受初始化分组,建立解压关联表项;②对于已经建立解压关联表项的分组,利用ROHC规程进行解压,根据CID信息查找解压关联,恢复成原始的未经压缩的头标;③根据所选用的ROHC规程中的操作模式,决定是否向压缩方发送反馈分组。①For the new data stream, accept the initialization packet, and establish the decompression association table item; ②For the group that has already established the decompression association table item, use the ROHC procedure to decompress, find the decompression association according to the CID information, and restore the original uncompressed header ③ According to the operation mode in the selected ROHC regulations, decide whether to send feedback packets to the compressor.

其中反馈分组是用来告诉压缩方此分组解压是否成功,主要包含CID信息、反馈标志信息和是否解压成功的信息。The feedback packet is used to tell the compressor whether the packet is successfully decompressed, and mainly includes CID information, feedback flag information and information on whether the decompression is successful.

(3)MIPv6头标压缩子协议(3) MIPv6 header compression sub-protocol

根据上述将ROHC框架用于MIPv6的分组头标压缩的方法,以及RFC3095定义的初始化分组、动态分组、完全压缩分组、反馈分组的格式,本发明提出MIPv6头标压缩子协议。According to the above-mentioned method of using ROHC framework for MIPv6 packet header compression, and the formats of initialization packet, dynamic packet, fully compressed packet, and feedback packet defined by RFC3095, the present invention proposes the MIPv6 header compression sub-protocol.

①将MIPv6头标压缩的profile ID的格式定义为0x000a。CID的格式就按照RFC3095进行定义。① Define the format of the profile ID compressed by the MIPv6 header as 0x000a. The format of the CID is defined in accordance with RFC3095.

②由于UDP/MIPv6/IPv6头标中没有序列号或IPv4分组中的分组号域(IP-ID),压缩方应随机产生2个字节(16比特)的序列号SN,作为反馈的标志。发送时将其压缩成利用W-LSB(Window-based LSB encoding)算法计算后所得的值。②Since there is no sequence number in the UDP/MIPv6/IPv6 header or the packet number field (IP-ID) in the IPv4 packet, the compressor should randomly generate a 2-byte (16-bit) sequence number SN as a sign of feedback. When sending, it is compressed into a value calculated using the W-LSB (Window-based LSB encoding) algorithm.

③初始化分组的格式也按照RFC3095进行定义,其中包含了MIPv6的扩展头标的内容。其具体格式如图3。③ The format of the initialization packet is also defined in accordance with RFC3095, which includes the content of the extended header of MIPv6. Its specific format is shown in Figure 3.

④按照RFC3095的定义,动态分组和完全压缩分组主要有三类,分别定义为类型0,类型1,类型2。类型0是完全压缩分组,仅发送序列号SN(或者加上循环冗余校验和CRC);类型1包含用来更新SN函数的参数;类型2为动态分组,包含用于更新动态域的信息。由于本发明中的SN的函数是常数,所以没有类型1的压缩分组。④According to the definition of RFC3095, there are three main types of dynamic grouping and fully compressed grouping, which are respectively defined as type 0, type 1, and type 2. Type 0 is a fully compressed packet, sending only the serial number SN (or plus cyclic redundancy check and CRC); type 1 contains parameters used to update the SN function; type 2 is a dynamic packet, including information used to update the dynamic domain . Since the function of SN in the present invention is constant, there is no type 1 compressed packet.

而且,ROHC有三种操作模式:单向模式(Uni-directional,简称U-mode)、双向优化模式(Bi-directional Optimistic,简称O-mode)、双向可靠模式(Bi-directional Reliable,简称R-mode)。当不存在或不能使用反馈信道时,使用U-mode,此时分组只向一个方向发送,从压缩方到解压方。O-mode的目的是提供高度的压缩有效性和合理的鲁棒性。R-mode则提供完全的鲁棒性,但开销稍大且反馈消息较多。O-mode和R-mode两种模式反馈更频繁,在压缩方和解压方都有检测关联是否同步的严格逻辑。Moreover, ROHC has three operating modes: Uni-directional (U-mode for short), Bi-directional Optimistic (O-mode for short), and Bi-directional Reliable (R-mode for short). ). U-mode is used when no feedback channel exists or cannot be used, in which case packets are sent in only one direction, from the compressor to the decompressor. The purpose of O-mode is to provide a high degree of compression efficiency with reasonable robustness. R-mode provides full robustness, but with slightly higher overhead and more feedback messages. The two modes of O-mode and R-mode have more frequent feedback, and both the compression side and the decompression side have strict logic to detect whether the association is synchronized.

对于不同的工作模式,其压缩分组格式一般是不同的。因此,这里分组类型的命名遵循以下格式:模式-类型-特性(mode-type-property)。如:R-0是指R-mode、类型为0的压缩分组;UOR-2-Prio是指该类型为2的压缩分组、适用于所有工作模式,并且该压缩头标中含有Prio(优先级)变化的信息。For different working modes, the compressed packet formats are generally different. Therefore, the naming of grouping types here follows the format: mode-type-property. For example: R-0 refers to R-mode, type 0 compression packet; UOR-2-Prio refers to the type 2 compression packet, applicable to all working modes, and the compression header contains Prio (priority ) change information.

因此,本发明提出的MIPv6子协议的动态分组和完全压缩分组格式如下:Therefore, the dynamic grouping of the MIPv6 sub-protocol proposed by the present invention and the fully compressed grouping format are as follows:

第一类:类型0(有两种格式)Type 1: Type 0 (There are two formats)

R-0格式如图3,SN为6比特的压缩值。The R-0 format is shown in Figure 3, and SN is a compressed value of 6 bits.

UO-0格式如图4,SN为4比特的压缩值,还要加上3比特的CRC。The UO-0 format is shown in Figure 4, SN is a 4-bit compressed value, and a 3-bit CRC is added.

第二类:类型2(有两种格式)Type 2: Type 2 (There are two formats)

有6比特的SN和7比特的CRC。F=0时,表示分组为UOR-2-Prio(如图5),F=1时,表示分组为UOR-2-Hop格式(如图6)。There are 6-bit SN and 7-bit CRC. When F=0, it means that the packet is UOR-2-Prio (as shown in FIG. 5 ), and when F=1, it means that the packet is in UOR-2-Hop format (as shown in FIG. 6 ).

当分组头标中的优先级发生变化时,应发送UOR-2-Prio分组,将变化后的优先级写入Priority域中。When the priority in the packet header changes, a UOR-2-Prio packet should be sent, and the changed priority should be written into the Priority field.

当分组头标中的中继点限制发生变化时,应发送UOR-2-Hop分组。将变化后的中继点限制写入Hoplimit域中。A UOR-2-Hop packet shall be sent when the hop limit in the packet header changes. Write the changed relay point limit into the Hoplimit domain.

(4)效果(4) Effect

为了检验本发明对MIPv6分组的压缩效果,我们采用了NS-2仿真工具对语音和视频业务的MIPv6分组进行头标压缩的仿真。In order to test the compression effect of the present invention on the MIPv6 packet, we have adopted the NS-2 simulation tool to simulate the header compression of the MIPv6 packet of voice and video services.

语音业务是无线链路上的经典业务,在3G中,多媒体业务也将是一个主要部分。本发明仿真的语音业务为自适应多速率(AMR:Adaptive Multi Rate)编码标准语音,语音数据的产生速率为12.2kb/s,每20毫秒一帧。视频业务采用MPEG-4标准,视频数据的发送速率为48kb/s,每秒发送10帧。无线链路延时为100毫秒,误码率10-4~10-2b/s。The voice service is a classic service on the wireless link, and in 3G, the multimedia service will also be a major part. The speech service simulated by the present invention is adaptive multi-rate (AMR: Adaptive Multi Rate) coded standard speech, and the generation rate of speech data is 12.2 kb/s, one frame every 20 milliseconds. The video service adopts the MPEG-4 standard, the sending rate of the video data is 48kb/s, and 10 frames are sent per second. The wireless link delay is 100 milliseconds, and the bit error rate is 10 -4 ~ 10 -2 b/s.

设avg_header_len表示分组的平均头标长度,total_bytes表示总的发送字节数(包括各种类型的压缩分组及其反馈),decomped表示成功解压的分组数,payload_len表示分组中的净荷大小(同一个流的净荷长度相同),则平均头标长度的计算公式为:Let avg_header_len represent the average header length of the packet, total_bytes represent the total number of bytes sent (including various types of compressed packets and their feedback), decomped represents the number of successfully decompressed packets, and payload_len represents the payload size in the packet (the same The payload length of the flow is the same), the calculation formula of the average header length is:

avg_header_len=(total_bytes-decomped×payload_len)÷decompedavg_header_len=(total_bytes-decomped×payload_len)÷decomped

表4、表5是在无线链路无差错的情况下,不同长度的语音业务、视频业务流的压缩后的平均头标长度(单位是字节)。由表中可知,当总业务量大于1000分组的时候,ROHC协议的平均头标长度趋于稳定。对比表4、表5,由于语音业务的分组间隔较短(20ms),视频业务的分组间隔较长(100ms),而头标压缩协议和时间相关(慢启动机制、timeout机制),所以平均开销也不相同。Table 4 and Table 5 show the compressed average header lengths (unit is byte) of voice service and video service streams of different lengths under the condition that there is no error in the wireless link. It can be known from the table that when the total business volume is greater than 1000 packets, the average header length of the ROHC protocol tends to be stable. Comparing Table 4 and Table 5, since the grouping interval of the voice service is short (20ms), the grouping interval of the video service is long (100ms), and the header compression protocol is related to time (slow start mechanism, timeout mechanism), so the average overhead Not the same.

表4:音频业务的平均头标长度(单位是字节)Table 4: Average header length for audio services (in bytes)

Figure C0214851100081
Figure C0214851100081

表5:视频业务的平均头标长度(单位是字节)Table 5: Average header length of video services (in bytes)

Figure C0214851100082
Figure C0214851100082

仿真结果显示,不同模式下的压缩率均大于96%。用ROHC对MIPv6分组进行头标压缩可大大提高分组传输的效率,应用了ROHC头标压缩的MIPv6子协议能够较好的适应无线链路传输速率低、误码率高的特性。该发明的应用有利于提高无线环境下的带宽利用率。The simulation results show that the compression ratios in different modes are all greater than 96%. Using ROHC to compress the header of MIPv6 packets can greatly improve the efficiency of packet transmission. The MIPv6 sub-protocol applying ROHC header compression can better adapt to the characteristics of low transmission rate and high bit error rate of wireless links. The application of the invention is beneficial to improving the bandwidth utilization rate in the wireless environment.

附图说明: Description of drawings:

图1是MN与CN通信时的分组头标格式;Fig. 1 is the packet header format when MN communicates with CN;

图2是MIPv6分组在网络中进行传输的示意图;_Fig. 2 is the schematic diagram that MIPv6 grouping is transmitted in the network;_

图3~7是MIPv6头标压缩子协议示意图;图3是初始化分组格式,其中的静态链(Static Chain)包含MIPv6头标中的所有静态域、动态链(Dynamic Chain)包含MIPv6头标中的所有动态域,静态链和动态链的具体格式根据RFC3095制定(由于其长度不定,所以用虚线框表示);图4是R-0分组格式;图5是UO-0分组格式;图6是UOR-2-Prio分组格式;图7是UOR-2-Hop分组格式;其中,所采用的分组格式是小CID的情况,如果对于拥有大业务数据流需要压缩的场合,就要采用大CID方式,采用大CID方式就是在目前的小CID后面再插入一个1到2个字节的增强CID域。Fig. 3~7 is the schematic diagram of MIPv6 header compression sub-protocol; The specific format of all dynamic domains, static links and dynamic links is formulated according to RFC3095 (due to its variable length, it is represented by a dotted line box); Figure 4 is the R-0 packet format; Figure 5 is the UO-0 packet format; Figure 6 is the UOR -2-Prio packet format; Figure 7 is the UOR-2-Hop packet format; among them, the packet format adopted is the case of small CID, if there is a large business data flow that needs to be compressed, the large CID method will be adopted, The method of adopting a large CID is to insert an enhanced CID domain of 1 to 2 bytes behind the current small CID.

图8是压缩器的工作流程;Figure 8 is the workflow of the compressor;

图9是解压器的工作流程。Figure 9 is the workflow of the decompressor.

具体实施方式: Detailed ways:

本发明的实施例是在Linux操作系统下实现的,主要实施过程如下:Embodiment of the present invention is realized under Linux operating system, and main implementation process is as follows:

在Linux网络链路层发送和接受接口处添加根据上述方法及子协议而编写的软件作为压缩方和解压方的处理模块,形成相应的压缩器和解压器,对发送出去的特定的数据流分组进行压缩、同时对接收到的压缩过的数据流分组进行解压。Add the software written according to the above method and sub-protocol at the sending and receiving interface of the Linux network link layer as the processing module of the compressor and the decompressor to form the corresponding compressor and decompressor, and group the specific data stream sent out performing compression and simultaneously decompressing the received compressed data flow packet.

图8是依照本发明提出的方法实施的MIPv6压缩器的基本流程举例。压缩器首先提取分组头标,然后判断是否是一个UDP/MIPv6分组,对采用UDP传输协议的MIPv6分组进行头标压缩。如果该分组是数据流的头一个分组,那么要对该流创建压缩关联,发送初始化分组,并启动压缩初始化规程;如果该分组属于已经创建了压缩关联的数据流,那么根据其所处的状态进行压缩,压缩分组的格式如图3~7所示,然后将压缩后的分组通过网络接口发送出去。Fig. 8 is an example of the basic flow of the MIPv6 compressor implemented according to the method proposed by the present invention. The compressor first extracts the header of the packet, and then judges whether it is a UDP/MIPv6 packet, and compresses the header of the MIPv6 packet using the UDP transmission protocol. If the packet is the first packet of the data flow, then create a compression association for the flow, send an initialization packet, and start the compression initialization procedure; if the packet belongs to a data flow that has already created a compression association, then according to its state Perform compression, the format of the compressed packet is shown in Figure 3-7, and then send the compressed packet through the network interface.

图9是依照本发明提出的方法实施的MIPv6解压器的基本流程举例。对于从网络接口接收到的数据流分组,解压器要判断该数据包是否是MIPv6头标压缩分组如果是,就读取CID,根据CID查找相应的关联表项进行解压。再根据解压结果的正确与否处理反馈信息,根据相关反馈信息,对应的压缩器要做必要的操作。Fig. 9 is an example of the basic flow of the MIPv6 decompressor implemented according to the method proposed by the present invention. For the data stream packet received from the network interface, the decompressor will judge whether the data packet is a MIPv6 header compressed packet, and if so, read the CID, and search for the corresponding associated table item to decompress according to the CID. Then, the feedback information is processed according to whether the decompression result is correct or not, and the corresponding compressor performs necessary operations according to the relevant feedback information.

Claims (1)

1, a kind of robust header compression/decompression method that is used for the 6th edition mover agreement MIPv6 of Internet Protocol is characterized in that:
This method is to carry out following processing at the two ends of wireless communication link:
1. grouping is screened to MIPv6; And
2. to carrying out header compression/decompress(ion) with the data stream packet of udp protocol encapsulation;
Wherein, transmit leg is compression side, and reciever is a decompressor;
Classify according to the state of information in the packet header territory to selected grouping in compression side, select corresponding compression method to carry out header compression then after, send decompressor to; Decompressor obtains enough information according to the leader after compressing, and reverts to the leader of original uncompressed then;
The scope of header compression/decompress(ion) is the static fields and the dynamic domain of the UDP/MIPv6/IPv6 leader in this data stream packet;
Grouping after the compression comprises following classification:
1. the initialisation packet that has comprised complete MIPv6 grouping information;
2. the Dynamic Packet that has comprised the leader domain information of dynamic change;
3. the complete compressed packet that has comprised related identifier CID;
The course of work of compression side comprises the steps:
1. screening: the compression root is discerned a stream according to flow label, source address territory in the MIPv6 grouping; Then, filter out the grouping of the data flow that contains the UDP/MIPv6/IPv6 leader;
2. initialization: for the grouping that belongs to new data flow, the work of the side of compression is arranged on initial condition, the compression direction decompressor sends initialisation packet;
3. rules are compressed in startup: for the grouping that the data flow of setting up initialization information is arranged, send Dynamic Packet and complete compressed packet according to robust header compression ROHC rules;
The course of work of decompressor comprises the steps:
1. for new data flow, accept initialisation packet, set up the related list item of decompress(ion);
2. for the grouping of setting up the related list item of decompress(ion), utilize robust header compression ROHC rules to carry out decompress(ion), search the decompress(ion) association, revert to the leader of original uncompressed according to related identifier cid information;
3. according to the operator scheme in the selected robust header compression ROHC rules, whether decision sends feedback packet to compression side.
CNB021485119A 2002-12-09 2002-12-09 Robustness header compression/decompression method for MIPv6 Expired - Fee Related CN100433841C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021485119A CN100433841C (en) 2002-12-09 2002-12-09 Robustness header compression/decompression method for MIPv6

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021485119A CN100433841C (en) 2002-12-09 2002-12-09 Robustness header compression/decompression method for MIPv6

Publications (2)

Publication Number Publication Date
CN1507286A CN1507286A (en) 2004-06-23
CN100433841C true CN100433841C (en) 2008-11-12

Family

ID=34233193

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021485119A Expired - Fee Related CN100433841C (en) 2002-12-09 2002-12-09 Robustness header compression/decompression method for MIPv6

Country Status (1)

Country Link
CN (1) CN100433841C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130279516A1 (en) * 2010-12-17 2013-10-24 Zte Corporation Method and Device for Improving Robustness of Context Update Message in Robust Header Compression

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100353727C (en) * 2004-07-16 2007-12-05 中国科学院计算技术研究所 A robust IPv6 header compression method
US8165104B2 (en) * 2004-12-08 2012-04-24 Qualcomm Incorporated Methods and systems for enhancing local repair in robust header compression
CN1889708B (en) * 2005-06-27 2010-04-07 华为技术有限公司 A method for interactive business connection identification
CN100450094C (en) * 2005-12-15 2009-01-07 华为技术有限公司 A method and system for realizing performance statistics of header compression algorithm
US7948989B2 (en) * 2006-05-04 2011-05-24 Qualcomm, Incorporated Methods and systems for enhancing local repair in robust header compression
CN1996941B (en) * 2006-06-30 2010-08-18 华为技术有限公司 A robust processing method for header compression U mode error
CN101136906B (en) * 2006-08-31 2010-07-21 华为技术有限公司 Communication method in mobile IPv6 and mobile IPv6 communication system
CN101364937B (en) * 2007-08-10 2013-12-18 华为技术有限公司 Method and system for keeping robust header compression mechanism communication
CN101364980B (en) 2007-08-10 2012-06-20 华为技术有限公司 Method and system for establishing header compression communication, header compression policy functional entity
CN101137089B (en) * 2007-08-16 2010-04-14 中兴通讯股份有限公司 Method and compressor for setting time interval value in robust header compression
WO2009030062A1 (en) * 2007-09-03 2009-03-12 Zte Corporation A method for repairing the window-based least significant bits decoding in the robust header compression
WO2009030061A1 (en) * 2007-09-03 2009-03-12 Zte Corporation Method and device for decoding by using wlsb in robust header compression
CN101252579B (en) * 2008-02-22 2012-01-25 浙江大学 Method for packing and unpacking network layer
CN101848491A (en) * 2010-04-21 2010-09-29 中兴通讯股份有限公司 Mode converting method and device in robust header compression
CN101895548B (en) * 2010-07-15 2014-08-13 中兴通讯股份有限公司 List compression method and device in robust header compress
EP2633373B1 (en) * 2010-10-26 2017-06-28 ABB Research Ltd. Meeting a communication restriction requirement in a process control system
CN102291406B (en) * 2011-08-12 2017-02-15 中兴通讯股份有限公司 Robustness header compression method and robustness header compressor
CN103841079B (en) * 2012-11-21 2017-08-08 中国电信股份有限公司 Machinery of consultation, network system and the terminal node of IPv6 address compression abilities
CN108200604B (en) * 2017-12-26 2021-04-13 Oppo广东移动通信有限公司 Data transmission method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000079763A1 (en) * 1999-06-18 2000-12-28 Telefonaktiebolaget L M Ericsson (Publ) Robust header compression in packet communications
CN1349702A (en) * 1999-02-26 2002-05-15 艾利森电话股份有限公司 Adaptive header compression for packet communications

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1349702A (en) * 1999-02-26 2002-05-15 艾利森电话股份有限公司 Adaptive header compression for packet communications
WO2000079763A1 (en) * 1999-06-18 2000-12-28 Telefonaktiebolaget L M Ericsson (Publ) Robust header compression in packet communications

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130279516A1 (en) * 2010-12-17 2013-10-24 Zte Corporation Method and Device for Improving Robustness of Context Update Message in Robust Header Compression
US9166931B2 (en) * 2010-12-17 2015-10-20 Zte Corporation Method and device for improving robustness of context update message in robust header compression

Also Published As

Publication number Publication date
CN1507286A (en) 2004-06-23

Similar Documents

Publication Publication Date Title
CN100433841C (en) Robustness header compression/decompression method for MIPv6
JP3751823B2 (en) Header compression in real-time services
JP4602568B2 (en) Communication method used in packet server
CN101350812B (en) Data transmission method, communication apparatus and communication system
CN100401729C (en) Method for specifying header field compression and related system and device
CN1655536B (en) Method for recovering header decompression in multimedia broadcast/multicast service system
US7647421B2 (en) Extension header compression
CN103825869A (en) Compression and decompression method for Ethernet message header, and compression and decompression device thereof
US20060104278A1 (en) Apparatus and method for compressing headers in a broadband wireless communication system
EP1523148A1 (en) Header compression/decompression device and header compression/decompression method
US20170142612A1 (en) Header compression optimisation method during and after handovers in cellular communication network
JP2004208292A (en) Control traffic compression method
CN102118792B (en) Method and device for transmitting data packets
WO2006123980A1 (en) IP HEADER COMPRESSION WITH IPv6 MOBILE NODE
CN101729539B (en) Payload header suppression with conditional field suppression
JP4856251B2 (en) Header suppression in wireless communication networks
CN101534291A (en) Method for sending and receiving IP message and device thereof
CA2512684A1 (en) Method and apparatus for compressing header information for short data burst messaging
KR100689473B1 (en) Protocol header compression device and method in communication system
Jin et al. Performance comparison of header compression schemes for RTP/UDP/IP packets
CN101690072A (en) Method for repairing window-based least significant bit decoding in robust header compression
CN106941697A (en) A kind of method and apparatus for sending, receiving timestamp information
Fortuna et al. Header compressed VoIP in IEEE 802.11
Wang et al. Performance analysis of ROHC U-mode in wireless links
CN112769705A (en) VoIP header compression method suitable for small local area network

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

Granted publication date: 20081112

Termination date: 20111209