WO2012171289A1 - Method and apparatus for switching working mode of robust header compression protocol layer - Google Patents

Method and apparatus for switching working mode of robust header compression protocol layer Download PDF

Info

Publication number
WO2012171289A1
WO2012171289A1 PCT/CN2011/080933 CN2011080933W WO2012171289A1 WO 2012171289 A1 WO2012171289 A1 WO 2012171289A1 CN 2011080933 W CN2011080933 W CN 2011080933W WO 2012171289 A1 WO2012171289 A1 WO 2012171289A1
Authority
WO
WIPO (PCT)
Prior art keywords
working mode
context information
link
relationship table
link library
Prior art date
Application number
PCT/CN2011/080933
Other languages
French (fr)
Chinese (zh)
Inventor
董建军
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012171289A1 publication Critical patent/WO2012171289A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are a method and an apparatus for switching a working mode of a robust header compression protocol (ROHC) layer. The method comprises: when a working mode of an ROHC layer is required to be switched, determining, according to the working mode before and after the switching, whether context information conversion is required; and if yes, setting context information in a switched working mode according to the context information in the current working mode, and initiating working mode switching. According to the present invention, the problem of wastes of learning resources in the working mode switching of the ROHC layer is solved, and the utilization rate of the system resource can be improved.

Description

鲁棒性头压缩协议层的工作模式切换方法和装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种鲁棒性头压缩协议 (Robust Header Compression Protocol, ROHC) 层的工作模式切换方法和装置。 背景技术  The present invention relates to the field of communications, and in particular to a method for switching a working mode of a Robust Header Compression Protocol (ROHC) layer and Device. Background technique
ROHC为鲁棒性头压缩协议的简称, 是一种基于 IP的通用压缩技术, 它可以应用 于 3G (3rd Generation Partnership Project, 第三代合作伙伴计划) 的任何一种标准, 还 可以应用在 B3G的 LTE (Long Term Evolution, 长期演进) 等技术上, 主要工作在基 站和用户终端之间。 ROHC主要对分组流进行包头压缩, 其功能实体分为压缩端和解 压端, 压缩端和解压端需各自维护一套上下文信息, 当压缩端确信解压端维护了充分 的上下文信息后, 便进入压缩状态, 开始发送压缩分组。 之后压缩端和解压端会根据 当前报文, 有选择性的更新各自上下文信息, 以保证压缩端和解压端上下文信息的同 少。 ROHC is short for Robust Header Compression Protocol. It is a general IP-based compression technology that can be applied to any standard of 3G (3rd Generation Partnership Project) and can also be applied to B3G. In LTE (Long Term Evolution) technology, it mainly works between a base station and a user terminal. ROHC mainly performs packet header compression on packet flows. Its functional entities are divided into compression end and decompression end. The compression end and the decompression end need to maintain a set of context information. When the compression end is sure that the decompression end maintains sufficient context information, it enters compression. Status, start sending compressed packets. Afterwards, the compression end and the decompression end selectively update the respective context information according to the current message, so as to ensure that the context information of the compression end and the decompression end are the same.
ROHC针对数据包头中每个域值的变化规律采用不同的压缩算法, 其中链表压缩 (List compression) 算法是专门用来压缩 RTP (Real-time Transport Protocol 实时传送 协议) CSRC (Contribution Sourc, 提供源, 用以标识分信号源) 选项的, RTP CSRC 选项是由一系列元素 (item) 组成的, 被称为链表 (list), 链表中的元素 (item) 为每 个 CSRC值, 在相邻的包之间, 链表是很少变化的, 如果没有发生变化, 压缩端可以 不发送任何数据。 如果发生了较小的变化, 压缩端只需要发送链表之间发生变化的部 分即可, 从而达到压缩的目的; 基于表的元素 (Table-based item) 压缩算法是用来有 效压缩单个元素 (item) 的, 它的基本思想是: 压缩端为每个 item分配一个唯一对应 的标签(index), 压缩端将发送过的 item以及其 index保存到一个 Table表(也称为元 素与标签的关系表) 中, 当压缩端确信解压端己经知道 index和 item之间的对应关系 后, 压缩端只要发送 index来代替 item, 从而达到压缩的目的; 同理, 解压端也维护 着一个 Table表, 表中保存着接收到的 item和相应的 index, 当解压端只接收到 index, 没有 item时, 就可以根据 index到 Table表中查找到对应的 item, 从而正确解压。 压 缩端为每对 item和 index之间引入一个标示: Known (已知位)。 Known有两种取值 0 和 1, Known为 0时, 表示压缩端还没有确信解压端是否得知这对 item与 index之间 的对应关系; Known为 1时, 表示压缩端已经确信解压端己经得知这对 item与 index 之间的对应关系。 Known初始时为 0, 什么时候将 Known置为 1, 即压缩端什么时候 确信解压端己经得知对应关系, 与具体的工作模式有关。 现有技术中, ROHC支持三种工作模式: 单向工作模式(SP, U模式)、 双向优化 工作模式 (即, 0模式)、 双向可靠工作模式 (即, R模式)。 在 R模式下工作时, 主要通过反馈信息来同步压缩器和解压器上下文, 压缩端上 下文信息中为每对 index和 item维护着一个 Table表, 该 Table表如表 1所示, 其中, 表中的 SN存放的是己经发送的携带 index和 item关系的包的 SN的值,当表中的任何 一个 SN被反馈信息确认, 则将该 Known置为 1, 并清空表中的 SN域。 表 1ROHC uses different compression algorithms for the change of each field value in the packet header. The List compression algorithm is specifically used to compress RTP (Real-time Transport Protocol) CSRC (Contribution Sourc, source, The RTP CSRC option consists of a series of elements called a list, the elements in the list are for each CSRC value, and the adjacent package is used to identify the split source. Between, the linked list is rarely changed, and if there is no change, the compressed end can not send any data. If a small change occurs, the compression side only needs to send the changed part between the linked lists to achieve the purpose of compression; the Table-based item compression algorithm is used to effectively compress a single element (item) ), its basic idea is: The compression side assigns a unique corresponding index (index) to each item, and the compression side saves the sent item and its index to a Table table (also called the relationship table between the element and the label). ), when the compression end is sure that the decompression end already knows the correspondence between index and item, the compression end only needs to send index instead of item to achieve the purpose of compression; similarly, the decompression end also maintains a Table, table The received item and the corresponding index are saved. When the decompressed end only receives the index, if there is no item, the corresponding item can be found according to the index to the Table, so that the decompression is correctly performed. The compression side introduces a label between each pair of items and index: Known (known bit). Known has two values 0 and 1. When Known is 0, it means that the compression end is not sure whether the decompressor knows the correspondence between the item and index. When Known is 1, it means that the compression end is sure that the decompression end has been decompressed. I know this pair of items and index Correspondence between them. Known is initially 0, when is set to 1 for Known, that is, when the compression end is sure that the decompression end has learned the correspondence, which is related to the specific working mode. In the prior art, ROHC supports three working modes: one-way working mode (SP, U mode), two-way optimized working mode (ie, 0 mode), and two-way reliable working mode (ie, R mode). When working in the R mode, the compressor and the decompressor context are mainly synchronized by the feedback information, and a Table table is maintained for each pair of index and item in the context information of the compression end, and the Table is as shown in Table 1, wherein, in the table, The SN stores the value of the SN of the packet that has been sent to carry the index and item relationship. When any SN in the table is confirmed by the feedback information, the Known is set to 1, and the SN field in the table is cleared. Table 1
Figure imgf000004_0001
Figure imgf000004_0001
在 U/O模式下, 由于缺乏反馈, 压缩端维护的表如图 2所示, 压缩端需要在表中 维护一个计数 (Counter)值, 用于表示发送的 index和 item对应关系的计数。 在计数 值到达一定的发送次数后, 将该 Known置为 1。 表 2 In U/O mode, due to lack of feedback, the table maintained by the compression end is shown in Figure 2. The compression end needs to maintain a counter value in the table to indicate the count of the correspondence between the index and item sent. After the count value reaches a certain number of transmissions, the Known is set to 1. Table 2
Figure imgf000004_0002
Figure imgf000004_0002
解压端上下文中也维护着一个 Table表, 解压端每收到一对 item和 index, 将其放 入表中, 并将相应的 Known置为 1。 同时,为了能及时有效的更新参考链表,压缩端上下文信息中维护有一个 List库, 此库中保存了有可能作为参考 list的所有链表, 由于 Table表中已维护了 item和 index 的对应关系, 因此 List库中的链表只需要保存 index值即可。 针对 ROHC的工作模式不同, 参考链表的选取方式也不同。 例如: 在 R模式下, List库中链表的唯一标识通过数据包的 SN表示, 并且需要维护 list发送数据包的所有 SN值, 用于在收到反馈信息的时候, 将反馈信息中 SN所对应的链表选择作为参考链 表; 在 U/0模式下, List库中链表的唯一标识是通过 Gen_Id (链表标识)值表示, 该 值初始时随机产生, 如果 list没有发生变化, 则该值不变, 如果发生变化, 则该值自 增 1, 上下文信息中还需要维护当前 list的发送次数, 用于在发送次数达到发送 list上 限的时候, 将 Gen_Id值中 Index对应的链表选择为参考链表。 解压端上下文中也维护着一个 List库, 用于根据压缩端发送的 list标示选择参考 list所用。 当前技术中, 解压端可以根据当前的信道环境, 误码率, 时延大小, 反馈信 道是否存在, 业务的优先级, 流包的大小等等因素, 随时发起模式转换, 并且在 U/0 模式和 R模式相互切换过程中, 由于存储的链表上下文信息有所不同, 会清空压缩端 和解压端上下文中所维护的 Table表和 List库, 待模式切换成功后, 在新模式下重新 维护 Table表和 List库。 这种模式切换方式因未能继承之前的学习经验, 导致学习资 源浪费, 进而影响模式切换后链表的压缩效率。 针对相关技术中 ROHC的工作模式切换中学习资源的浪费问题, 目前尚未提出有 效的解决方案。 发明内容 本发明提供了一种鲁棒性头压缩协议层的工作模式切换方法和装置, 以至少解决 上述 ROHC的工作模式切换中学习资源的浪费问题。 根据本发明的一个方面, 提供了一种 ROHC层的工作模式切换方法, 包括: 在需 要进行 ROHC层的工作模式切换时,根据切换前后的工作模式判断是否需要进行上下 文信息转换; 如果是, 根据当前工作模式的上下文信息设置切换后的工作模式的上下 文信息, 并发起工作模式切换。 优选地, 根据切换前后的工作模式判断是否需要进行上下文信息转换包括: 如果 当前工作模式为单向工作模式或双向优化工作模式, 欲切换至双向可靠工作模式时, 确定需要进行上下文信息转换; 或者, 如果当前工作模式为双向可靠工作模式, 欲切 换至单向工作模式或双向优化工作模式时, 确定需要进行上下文信息转换。 优选地, 根据当前工作模式的上下文信息设置切换后的工作模式的上下文信息包 括: 根据第一元素与标签关系表中的上下文信息设置第二元素与标签关系表中的上下 文信息, 其中, 第一元素与标签关系表为当前工作模式下学习的元素与标签关系表, 第二元素与标签关系表为切换后的工作模式对应的元素与标签关系表; 根据第一链路 库中的上下文信息设置第二链路库中的上下文信息, 其中, 第一链路库为当前工作模 式下学习的链路库, 第二链路库为切换后的工作模式对应的链路库。 优选地, 上述当前工作模式为单向工作模式或双向优化工作模式, 切换后的工作 模式为双向可靠工作模式时, 根据第一元素与标签关系表中的上下文信息设置第二元 素与标签关系表中的上下文信息包括: 在第一元素与标签关系表中查找元素发送计数 值达到第一设定上限的元素, 在第二元素与标签关系表中设置查找到的元素对应的已 知位为已确定标识; 根据第一链路库中的上下文信息设置第二链路库中的上下文信息 包括: 在第一链路库中查找链路发送计数值达到第二设定上限的链路, 将查找到的链 路作为参考链路设置在第二链路库中。 优选地, 当前工作模式为双向可靠工作模式, 切换后的工作模式为单向工作模式 或双向优化工作模式时, 上述根据第一元素与标签关系表中的上下文信息设置第二元 素与标签关系表中的上下文信息包括: 统计第一元素与标签关系表中每个元素对应的 数据包序列号 SN的个数; 将统计的个数作为第二元素与标签关系表中对应元素的发 送计数值, 并在第二元素与标签关系表中将发送计数值达到第一设定上限的元素对应 的已知位设置为已确定标识; 上述根据第一链路库中的上下文信息设置第二链路库中 的上下文信息包括: 统计第一链路库中每个链路对应的数据包序列号 SN的个数; 将 统计的个数作为第二链路库中对应链路的发送计数值, 将发送计数值达到第二设定上 限的链路作为参考链路。 优选地, 发起工作模式切换之后, 上述方法还包括: 根据切换后的工作模式的上 下文信息进行元素的压缩或解压缩。 根据本发明的另一方面, 提供了一种 ROHC层的工作模式切换装置, 包括: 信息 转换判断模块, 设置为需要进行 ROHC层的工作模式切换时, 根据切换前后的工作模 式判断是否需要进行上下文信息转换; 信息设置模块, 设置为当信息转换判断模块的 判断结果为是时, 根据当前工作模式的上下文信息设置切换后的工作模式的上下文信 息; 模式切换模块, 设置为发起工作模式切换。 优选地, 信息转换判断模块包括: 第一确定单元, 设置为如果当前工作模式为单 向工作模式或双向优化工作模式, 欲切换至双向可靠工作模式时, 确定需要进行上下 文信息转换; 或者, 第二确定单元, 设置为如果当前工作模式为双向可靠工作模式, 欲切换至单向工作模式或双向优化工作模式时, 确定需要进行上下文信息转换。 优选地, 上述信息设置模块包括: 关系表设置单元, 设置为根据第一元素与标签 关系表中的上下文信息设置第二元素与标签关系表中的上下文信息, 其中, 第一元素 与标签关系表为当前工作模式下学习的元素与标签关系表, 第二元素与标签关系表为 切换后的工作模式对应的元素与标签关系表; 链路库设置单元, 设置为根据第一链路 库中的上下文信息设置第二链路库中的上下文信息, 其中, 第一链路库为当前工作模 式下学习的链路库, 第二链路库为切换后的工作模式对应的链路库。 优选地, 上述关系表设置单元包括: 元素查找子单元, 设置为当前工作模式为单 向工作模式或双向优化工作模式, 切换后的工作模式为双向可靠工作模式时, 在第一 元素与标签关系表中查找元素发送计数值达到第一设定上限的元素; 第一关系表设置 子单元, 设置为在第二元素与标签关系表中设置元素查找子单元查找到的元素对应的 已知位为已确定标识; 上述链路库设置单元包括: 链路查找子单元, 设置为当前工作 模式为单向工作模式或双向优化工作模式,切换后的工作模式为双向可靠工作模式时, 在第一链路库中查找链路发送计数值达到第二设定上限的链路; 第一链路库设置子单 元, 设置为将链路查找子单元查找到的链路作为参考链路设置在第二链路库中。 优选地, 上述关系表设置单元包括: 元素统计子单元, 设置为当前工作模式为双 向可靠工作模式, 切换后的工作模式为单向工作模式或双向优化工作模式时, 统计第 一元素与标签关系表中每个元素对应的数据包序列号 SN的个数; 第二关系表设置子 单元, 设置为将元素统计子单元统计的个数作为第二元素与标签关系表中对应元素的 发送计数值, 并在第二元素与标签关系表中将发送计数值达到第一设定上限的元素对 应的已知位设置为已确定标识; 上述链路库设置单元包括: 链路统计子单元, 设置为 当前工作模式为双向可靠工作模式, 切换后的工作模式为单向工作模式或双向优化工 作模式时, 统计第一链路库中每个链路对应的数据包序列号 SN的个数; 第二链路库 设置子单元, 设置为将链路统计子单元统计的个数作为第二链路库中对应链路的发送 计数值, 将发送计数值达到第二设定上限的链路作为参考链路。 通过本发明, 采用利用切换前学习到的元素上下文信息设置切换后的元素上下文 信息, 使切换后不需要再清空之前的元素上下文信息重新学习, 解决了 ROHC的工作 模式切换中学习资源的浪费问题, 提高了系统资源的利用率。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例 1的 ROHC层的工作模式切换方法流程图; 图 2是根据本发明实施例 2的 ROHC层的工作模式切换装置的结构框图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 本发明实施例考虑到应用 ROHC对分组流进行包头压缩时,压缩端和解压端会在 某些情况下切换工作模式, 例如, 由 U或 0模式切换到 R模式; 为了提高工作模式 切换后元素上下文信息的学习效率, 有效地利用工作模式切换前的学习经验, 提供了 一种 ROHC层的工作模式切换方法和装置。 实施例 1 本实施例提供了一种 ROHC层的工作模式切换方法, 适用于压缩端和解压端, 参 见图 1, 该方法包括以下步骤 (步骤 S102-步骤 S106): 步骤 S102,在需要进行 ROHC层的工作模式切换时,根据切换前后的工作模式判 断是否需要进行上下文信息转换; 例如, 如果当前工作模式为单向工作模式 (U模式) 或双向优化工作模式 (0模 式) (也可以简化表示成 "U/0模式"), 欲切换至双向可靠工作模式 (R模式) 时, 确 定需要进行上下文信息转换; 或者, 如果当前工作模式为 R模式双向可靠工作模式, 欲切换至单向工作模式或双向优化工作模式时, 确定需要进行上下文信息转换。 步骤 S104, 如果是, 根据当前工作模式的上下文信息设置切换后的工作模式的上 下文信息; 本实施例中的上下文信息指元素 (item) 的上下文信息, 该上下文信息通常保存 在元素与标签关系表 (即, Table表) 和链路库 (List库) 中, 元素与标签关系表和链 路库具体包括的内容与相关技术中相同,例如, R模式下, Table表如前面的表 1所示; U/0模式下, Table表如前面的表 2所示。基于此, 根据当前工作模式的上下文信息设 置切换后的工作模式的上下文信息包括: A table is also maintained in the decompression side context. Each time the decompressor receives a pair of items and indexes, it is placed in the table, and the corresponding Known is set to 1. At the same time, in order to update the reference list in time and effectively, the compressed end context information maintains a List library, which stores all linked lists that may be used as a reference list. Since the correspondence between item and index has been maintained in the Table table, Therefore, the linked list in the List library only needs to save the index value. The selection of the reference list is different for the different working modes of the ROHC. For example, in the R mode, the unique identifier of the linked list in the List library is represented by the SN of the data packet, and all the SN values of the data packet sent by the list need to be maintained, and used to receive the feedback information, and the SN corresponding to the feedback information The linked list is selected as the reference linked list; in the U/0 mode, the unique identifier of the linked list in the List library is represented by the Gen_Id (chain list identifier) value, which is initially generated randomly, and if the list does not change, the value does not change. If the change occurs, the value is incremented by 1. The context information also needs to maintain the number of times the current list is sent. When the number of times of sending reaches the upper limit of the list, the linked list corresponding to the index in the Gen_Id value is selected as the reference list. The decompression side context also maintains a List library for selecting the reference list based on the list indication sent by the compression side. In the current technology, the decompression end can be based on the current channel environment, the bit error rate, the delay size, and the feedback signal. Whether the channel exists, the priority of the service, the size of the stream packet, etc., the mode conversion is initiated at any time, and in the process of switching between the U/0 mode and the R mode, the compressed end is cleared because the stored linked list context information is different. The Table table and the List library maintained in the context of the decompression end, after the mode switching succeeds, the Table table and the List library are re-maintained in the new mode. This mode switching method fails to inherit the previous learning experience, resulting in wasted learning resources, which in turn affects the compression efficiency of the linked list after mode switching. In view of the waste of learning resources in the ROHC working mode switching in the related art, an effective solution has not been proposed yet. SUMMARY OF THE INVENTION The present invention provides a working mode switching method and apparatus for a robust header compression protocol layer to at least solve the problem of wasted learning resources in the working mode switching of the above ROHC. According to an aspect of the present invention, a method for switching an operating mode of an ROHC layer is provided, including: determining, when performing an operation mode switching of an ROHC layer, whether context information conversion is required according to a working mode before and after switching; if yes, according to The context information of the current working mode sets the context information of the working mode after the switching, and initiates the working mode switching. Preferably, determining whether the context information conversion is required according to the working mode before and after the switching comprises: if the current working mode is the one-way working mode or the bidirectional optimized working mode, and determining to perform the context information conversion when switching to the two-way reliable working mode; or If the current working mode is the bidirectional reliable working mode, if you want to switch to the one-way working mode or the bidirectional optimized working mode, it is determined that the context information conversion is required. Preferably, setting the context information of the switched working mode according to the context information of the current working mode comprises: setting context information in the second element and the label relationship table according to the context information in the first element and the label relationship table, where The element and label relationship table is an element and label relationship table learned in the current working mode, and the second element and label relationship table is an element and label relationship table corresponding to the switched working mode; according to the context information in the first link library Context information in the second link library, where the first link library is a link library learned in the current working mode, and the second link library is a link library corresponding to the switched working mode. Preferably, the current working mode is a one-way working mode or a two-way optimized working mode, and when the switched working mode is a two-way reliable working mode, setting a second element and a label relationship table according to the context information in the first element and the label relationship table. The context information in the method includes: searching for an element whose element sending count value reaches a first upper limit in the first element and tag relationship table, and setting a known bit corresponding to the found element in the second element and the tag relationship table as Determining an identifier; setting context information in the second link library according to context information in the first link library The method includes: searching, in the first link library, a link whose link transmission count value reaches a second upper limit, and setting the found link as a reference link in the second link library. Preferably, the current working mode is a bidirectional reliable working mode, and when the switched working mode is a one-way working mode or a bidirectional optimized working mode, the second element and the tag relationship table are set according to the context information in the first element and the label relationship table. The context information in the method includes: counting the number of the packet sequence number SN corresponding to each element in the label relationship table of the first element; using the number of statistics as the sending count value of the corresponding element in the second element and the label relationship table, And setting, in the second element and the label relationship table, a known bit corresponding to the element whose sending count value reaches the first upper limit is set as the determined identifier; and setting the second link library according to the context information in the first link library The context information in the method includes: counting the number of the data packet sequence number SN corresponding to each link in the first link library; using the number of statistics as the sending count value of the corresponding link in the second link library, and sending A link whose count value reaches the second upper limit is used as a reference link. Preferably, after the working mode switching is initiated, the method further includes: performing compression or decompression of the element according to the context information of the switched working mode. According to another aspect of the present invention, an operation mode switching apparatus of an ROHC layer is provided, including: an information conversion judging module, configured to determine whether a context needs to be performed according to an operation mode before and after switching, when an operation mode switching of the ROHC layer is required The information setting module is configured to: when the judgment result of the information conversion judging module is yes, set the context information of the switched working mode according to the context information of the current working mode; and the mode switching module is set to initiate the working mode switching. Preferably, the information conversion judging module includes: a first determining unit, configured to determine that a context information conversion is required when the current working mode is a one-way working mode or a bidirectional optimal working mode; or The second determining unit is set to determine that the context information conversion is required if the current working mode is the two-way reliable working mode and the mode is to be switched to the one-way working mode or the two-way optimized working mode. Preferably, the information setting module includes: a relationship table setting unit, configured to set context information in the second element and the label relationship table according to the context information in the first element and the label relationship table, where the first element and the label relationship table The element and label relationship table for learning in the current working mode, the second element and label relationship table is an element and label relationship table corresponding to the switched working mode; the link library setting unit is set according to the first link library The context information sets the context information in the second link library, where the first link library is a link library learned in the current working mode, and the second link library is a link library corresponding to the switched working mode. Preferably, the relationship table setting unit includes: an element search subunit, configured to set the current working mode to a one-way working mode or a two-way optimized working mode, and when the switched working mode is a two-way reliable working mode, the relationship between the first element and the label The element in the table that finds the element sending count value reaches the first upper limit; the first relation table setting a subunit, configured to set a known bit corresponding to an element found by the element search subunit in the second element and the tag relationship table as a determined identifier; the link library setting unit includes: a link lookup subunit, set to current The working mode is a one-way working mode or a two-way optimized working mode. When the working mode after the switching is the two-way reliable working mode, the first link library searches for a link whose link sending count value reaches a second upper limit; The link library setting subunit is configured to set the link found by the link lookup subunit as a reference link in the second link library. Preferably, the relationship table setting unit includes: an element statistics subunit, configured to set the current working mode to a bidirectional reliable working mode, and when the switched working mode is a one-way working mode or a bidirectional optimized working mode, the first element and the label relationship are counted. The number of the packet sequence number SN corresponding to each element in the table; the second relationship table setting subunit, set to count the number of statistics of the element statistics subunit as the sending count value of the corresponding element in the second element and the label relationship table And setting, in the second element and the label relationship table, a known bit corresponding to the element whose sending count value reaches the first upper limit is set as the determined identifier; the link library setting unit includes: a link statistics subunit, set to The current working mode is a two-way reliable working mode, and the number of data packet sequence numbers SN corresponding to each link in the first link library is counted when the working mode after the switching is the one-way working mode or the two-way optimized working mode; The link library setting subunit is set to send the number of the link statistics subunit statistics as the corresponding link in the second link library. The count value is used as a reference link for the link whose transmission count value reaches the second upper limit. According to the present invention, the element context information after the switching is set by using the element context information learned before the switching, so that the element context information before the switching does not need to be emptied again, and the learning resource is wasted in the ROHC working mode switching. , improve the utilization of system resources. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a flow chart showing an operation mode switching method of a ROHC layer according to Embodiment 1 of the present invention; FIG. 2 is a block diagram showing a configuration of an operation mode switching device of a ROHC layer according to Embodiment 2 of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. In the embodiment of the present invention, when the ROHC is used to perform packet header compression on the packet stream, the compression end and the decompression end switch the working mode in some cases, for example, switching from the U or 0 mode to the R mode; The learning efficiency of context information, effectively utilizing the learning experience before the work mode switching, provides a working mode switching method and device for the ROHC layer. Embodiment 1 This embodiment provides a working mode switching method for a ROHC layer, which is applicable to a compression end and a decompression end. Referring to FIG. 1, the method includes the following steps (step S102 - step S106): Step S102, where ROHC is required When the working mode of the layer is switched, it is determined whether the context information conversion is needed according to the working mode before and after the switching; for example, if the current working mode is the one-way working mode (U mode) or the bidirectional optimized working mode (0 mode) (it can also be simplified In "U/0 mode"), when switching to the bidirectional reliable working mode (R mode), it is determined that the context information conversion is required; or, if the current working mode is the R mode bidirectional reliable working mode, to switch to the one-way working mode Or when optimizing the working mode in both directions, it is determined that context information conversion is required. Step S104, if yes, setting context information of the switched working mode according to context information of the current working mode; the context information in this embodiment refers to context information of an element, and the context information is usually saved in an element and label relationship table. (ie, Table table) and link library (List library), the element and label relationship table and the link library specifically include the same content in the related art, for example, in the R mode, the Table table is as shown in Table 1 above. ; In U/0 mode, the Table table is as shown in Table 2 above. Based on this, setting context information of the switched working mode according to the context information of the current working mode includes:
1 )根据第一元素与标签关系表中的上下文信息设置第二元素与标签关系表中的上 下文信息,其中,第一元素与标签关系表为当前工作模式下学习的元素与标签关系表, 第二元素与标签关系表为切换后的工作模式对应的元素与标签关系表; 1) setting context information in the second element and the label relationship table according to the context information in the first element and the label relationship table, wherein the first element and the label relationship table are elements and label relationship tables learned in the current working mode, The two element and label relationship table is an element and label relationship table corresponding to the switched working mode;
2)根据第一链路库中的上下文信息设置第二链路库中的上下文信息, 其中, 第一 链路库为当前工作模式下学习的链路库, 第二链路库为切换后的工作模式对应的链路 库。 对于当前工作模式为单向工作模式或双向优化工作模式, 切换后的工作模式为双 向可靠工作模式的情况, 上述根据第一元素与标签关系表中的上下文信息设置第二元 素与标签关系表中的上下文信息包括: 在第一元素与标签关系表中查找元素发送计数 值达到第一设定上限的元素, 在第二元素与标签关系表中设置查找到的元素对应的已 知位为已确定标识; 该情况下, 上述根据第一链路库中的上下文信息设置第二链路库中的上下文信息 包括: 在第一链路库中查找链路发送计数值达到第二设定上限的链路, 将查找到的链 路作为参考链路设置在第二链路库中。 对于当前工作模式为双向可靠工作模式, 切换后的工作模式为单向工作模式或双 向优化工作模式的情况, 上述根据第一元素与标签关系表中的上下文信息设置第二元 素与标签关系表中的上下文信息包括: 统计第一元素与标签关系表中每个元素对应的 数据包序列号 SN的个数; 将统计的个数作为第二元素与标签关系表中对应元素的发 送计数值, 并在第二元素与标签关系表中将发送计数值达到第一设定上限的元素对应 的已知位设置为已确定标识; 该情况下, 上述根据第一链路库中的上下文信息设置第二链路库中的上下文信息 包括: 统计第一链路库中每个链路对应的数据包序列号 SN的个数; 将统计的个数作 为第二链路库中对应链路的发送计数值, 将发送计数值达到第二设定上限的链路作为 参考链路。 在上述转换过程中,链表标识 Gen_Id与数据包序列号标识 SN可以直接相互赋值。 当然, 对于根据切换前后的工作模式判断不需要进行上下文信息转换的情况, 例 如, U模式与 0模式间的切换; 这种情况可以在进行工作模式切换后, 直接使用切换 前的上下文信息进行压缩与解压缩。 步骤 S106, 发起工作模式切换。 其中,步骤 S106也可以先执行,即进行工作模式切换后再进行上下文信息的切换。 发起工作模式切换之后, 上述方法还包括: 根据切换后的工作模式的上下文信息 进行元素的压缩或解压缩。 本实施例通过充分利用切换前学习到的元素上下文信息设置切换后的元素上下文 信息, 使切换后不需要再清空之前的元素上下文信息重新学习, 解决了 ROHC的工作 模式切换中学习资源的浪费问题, 提高了系统资源的利用率。 同时, 使用继承的元素 上下文进行压缩 /解压时, 可以提高压缩的效率和压缩程度。 上述方法的实现主要考虑了压缩器和解压器在 U/0 模式和 R模式下所维护的 Table表和 List库的实质数据一致, 即实际维护的 item值一致, 针对 U/0模式和 R模 式上下文差异, 进行了如下转换: 首先, Gen_Id和 SN在 U/0模式和 R模式下, 均可以唯一标识一个数据包, 因此 当 U/0模式和 R模式相互切换时, 同时将 Gen_Id和 SN的值进行转换即可。 其中, Gen_Id首次随机产生, 对接下来的数据包, 会根据数据包的变化与否, 选 择性的对 Gen_Id值加 1, 同时, Gen_Id用于标识此数据包; SN是数据包中自带、 可 以唯一标识一个数据包的字段; 既然 Gen_Id和 SN都可以唯一标识一个数据包, 那么 在模式转化过程中, 将两个字段相互赋值即可。 其次, 当由 U/0模式切换到 R模式时, 将 List库中达到 list发送上限的 list选择 作为参考 list即可, 当由 R模式切换到 U/0模式时, 将 List库中所有 list表对应的 SN 个数, 转化为 U/0模式下 list的发送次数, 然后将达到 list发送上限的 list选择作为参 考 list。 最后, 对于所有模式切换过程中, index与 item的对应关系保持不变, 当由 U/0 模式切换到 R模式时, 将 Table表中到达 item发送上限的 item置为已知位(SP, 将对 应的 Kown设置为 1 ), 当由 R模式切换到 U/0模式时,将 Table表中所有 item对应的 SN个数,转化为 U/0模式下 item的发送次数,然后将达到 item发送上限的 item置为 已知位。 因为 U模式和 0模式下所维护的链表上下文信息是一致的, 因此当 U模式和 0 模式相互切换时, 不需要清空链表上下文信息, 也不需要按照上述方式对上下文信息 进行转换。 下面以由 R模式切换到 U模式为例, 说明工作模式切换过程中的处理方式: 当前模式为 R模式, 切换模式为 U模式, 当前参考 list的 SN为 21, 其实际 list 值为 (3500、 3600、 3601 ), 相对应的 index为 (0、 2、 3 ), 假设模式切换后待发送的 list的 SN为 24, 其实际 list值为 (3500、 3600、 3601、 3602), 压缩器和解压器 R模 式下的 Talbe表如表 3所示, List库如表 4所示。 表 3 2) setting context information in the second link library according to the context information in the first link library, where the first link library is a link library learned in the current working mode, and the second link library is switched The link library corresponding to the working mode. For the case where the current working mode is the one-way working mode or the two-way optimized working mode, and the working mode after the switching is the two-way reliable working mode, the second element and the label relationship table are set according to the context information in the first element and the label relationship table. The context information includes: Finding the element send count in the first element and label relationship table An element whose value reaches the first upper limit is set, and the known bit corresponding to the found element in the second element and the tag relationship table is the determined identifier; in this case, the foregoing is set according to the context information in the first link library. The context information in the second link library includes: searching, in the first link library, a link whose link transmission count value reaches a second upper limit, and setting the found link as a reference link on the second link. In the library. For the case where the current working mode is the two-way reliable working mode, and the working mode after the switching is the one-way working mode or the two-way optimized working mode, the second element and the label relationship table are set according to the context information in the first element and the label relationship table. The context information includes: counting the number of the packet sequence number SN corresponding to each element in the label relationship table of the first element; and using the number of statistics as the sending count value of the corresponding element in the second element and the label relationship table, and Setting, in the second element and the label relationship table, a known bit corresponding to the element whose transmission count value reaches the first upper limit is set as the determined identifier; in this case, setting the second according to the context information in the first link library The context information in the link library includes: counting the number of the packet sequence number SN corresponding to each link in the first link library; using the number of statistics as the sending count value of the corresponding link in the second link library The link that sends the count value to the second upper limit is used as the reference link. In the above conversion process, the linked list identifier Gen_Id and the packet serial number identifier SN can be directly assigned to each other. Of course, it is determined that the context information conversion is not required according to the working mode before and after the handover, for example, the switching between the U mode and the 0 mode; in this case, after the working mode switching, the context information before the switching is directly used for compression. With unzipping. Step S106, initiating a working mode switching. The step S106 may also be performed first, that is, the context information is switched after the working mode is switched. After the working mode switching is initiated, the method further includes: compressing or decompressing the element according to the context information of the switched working mode. In this embodiment, the element context information after switching is set by fully utilizing the element context information learned before the switching, so that the element context information before the switching does not need to be emptied again, and the learning resource waste in the ROHC working mode switching is solved. , improve the utilization of system resources. At the same time, when using the inherited element context for compression/decompression, the efficiency and compression of compression can be improved. The implementation of the above method mainly considers that the physical data of the Table and the List library maintained by the compressor and the decompressor in the U/0 mode and the R mode are consistent, that is, the actual maintained item values are consistent, for the U/0 mode and the R mode. Context difference, the following conversion: First, Gen_Id and SN can uniquely identify a data packet in U/0 mode and R mode, so when U/0 mode and R mode switch to each other, Gen_Id and SN are simultaneously The value can be converted. The Gen_Id is randomly generated for the first time. For the next data packet, the Gen_Id value is optionally added according to the change of the data packet. At the same time, the Gen_Id is used to identify the data packet. The SN is the data packet and can be A field that uniquely identifies a packet; since both Gen_Id and SN can uniquely identify a packet, then in the mode conversion process, the two fields are assigned to each other. Secondly, when switching from U/0 mode to R mode, the list in the List library that reaches the upper limit of the list transmission can be selected as the reference list. When the mode is switched from the R mode to the U/0 mode, all the list tables in the list are listed. The corresponding number of SNs is converted into the number of times the list is sent in the U/0 mode, and then the list selection that reaches the upper limit of the list transmission is selected as the reference list. Finally, for all mode switching, the correspondence between index and item remains unchanged. When the U/0 mode is switched to the R mode, the item in the Table table that reaches the upper limit of the item is set to a known bit (SP, The corresponding Kown is set to 1). When the mode is switched from the R mode to the U/0 mode, the number of SNs corresponding to all the items in the Table is converted to the number of times the item is sent in the U/0 mode, and then the item is sent to the upper limit. The item is set to a known bit. Because the linked list context information maintained in the U mode and the 0 mode is consistent, when the U mode and the 0 mode are switched to each other, it is not necessary to clear the linked list context information, and the context information does not need to be converted as described above. The following is an example of switching from R mode to U mode to illustrate the processing mode during the working mode switching process: the current mode is R mode, the switching mode is U mode, the current reference list SN is 21, and the actual list value is (3500, 3600, 3601), the corresponding index is (0, 2, 3), assuming that the SN of the list to be sent after mode switching is 24, the actual list value is (3500, 3600, 3601, 3602), compressor and decompression The Talbe table in the R mode is shown in Table 3, and the List library is shown in Table 4. table 3
Figure imgf000011_0001
表 4
Figure imgf000011_0001
Table 4
Figure imgf000011_0002
模式切换后, 如果清空 Talbe表和 List库以及相应的上下文信息, 这时需要将 待发送的 SN = 24的数据包的 list信息全部发送给解压端, 即将实际的 list ( 3500、 3600、 3601、 3602) 原值发送, 然后压缩端和解压端重新进行上下文信息的同步, 以及 Talbe表和 List库的维护。 如果采用本实施例提供的上述工作模式切换方法, 则不清空上述 Talbe表和 List库,而是将其进行转换,转换后的 Talbe表如表 5所示, 转换后的 List库如表 6所示。
Figure imgf000011_0002
After the mode is switched, if the Talbe table and the List library and the corresponding context information are cleared, then the list information of the data packet of the SN=24 to be sent needs to be sent to the decompression end, that is, the actual list (3500, 3600, 3601). 3602) The original value is sent, and then the compression end and the decompression end re-synchronize the context information, and maintain the Talbe table and the List library. If the above-mentioned working mode switching method provided by this embodiment is adopted, the Talbe table and the List library are not emptied, but are converted, and the converted Talbe table is as shown in Table 5. The converted List library is as shown in Table 6. Show.
表 5  table 5
Counter Counter
Index i (标签 i) Known (已知位) Item (兀素)  Index i (label i) Known (known bit) Item (兀素)
(元素计数值) (element count value)
0 1 3500 4 0 1 3500 4
1 1 3501 2 1 1 3501 2
2 1 3600 4 2 1 3600 4
3 1 3601 4 表 6 3 1 3601 4 Table 6
Figure imgf000012_0001
Figure imgf000012_0001
模式切换后, 压缩器和解压器依然保存转换后的 Talbe表和 List库, 以及相应的 上下文信息, 这时待发送 SN = 24的包的 list信息便可以压缩后发送, 由于当前参考 list为 (3500、 3600、 3601 ), 待发送 list为 (3500、 3600、 3601、 3602) , 按照链表压 缩原理, 只需要发送当前 list和参考 list的差别部分, 即只需要将 (3602)发送到解压端 即可。 根据本实施例提供的上述方法, 可以保证各种模式切换过程中, 压缩端和解压端 所维护的链表上下文信息都不被清空, 而是通过转换被有效地继承, 进而保证了链表 压缩下的无缝模式切换, 有效提高了模式切换后链表压缩的效率。 实施例 2 本实施例提供了一种 ROHC层的工作模式切换装置, 该装置可以设置在压缩端或 解压缩端的实体设备上, 参见图 2, 该装置包括: 信息转换判断模块 22,设置为需要进行 ROHC层的工作模式切换时,根据切换前 后的工作模式判断是否需要进行上下文信息转换; 信息设置模块 24, 与信息转换判断模块 22相连, 设置为当信息转换判断模块 22 的判断结果为是时, 根据当前工作模式的上下文信息设置切换后的工作模式的上下文 信息; 模式切换模块 26, 与信息设置模块 24相连, 设置为发起工作模式切换。 优选地, 信息转换判断模块 22包括: 第一确定单元, 设置为如果当前工作模式为 单向工作模式或双向优化工作模式, 欲切换至双向可靠工作模式时, 确定需要进行上 下文信息转换; 或者, 第二确定单元, 设置为如果当前工作模式为双向可靠工作模式, 欲切换至单向工作模式或双向优化工作模式时, 确定需要进行上下文信息转换。 上述信息设置模块 24包括: 关系表设置单元,设置为根据第一元素与标签关系表 中的上下文信息设置第二元素与标签关系表中的上下文信息, 其中, 第一元素与标签 关系表为当前工作模式下学习的元素与标签关系表, 第二元素与标签关系表为切换后 的工作模式对应的元素与标签关系表; 链路库设置单元, 设置为根据第一链路库中的 上下文信息设置第二链路库中的上下文信息, 其中, 第一链路库为当前工作模式下学 习的链路库, 第二链路库为切换后的工作模式对应的链路库。 根据切换前后工作模式的不同, 上述关系表设置单元和链路库设置单元可以由两 类实现方式, 方式一针对当前工作模式为单向工作模式或双向优化工作模式, 切换后 的工作模式为双向可靠工作模式的情况, 方式二针对当前工作模式为双向可靠工作模 式, 切换后的工作模式为单向工作模式或双向优化工作模式的情况, 下面详见进行说 明这两种方式。 方式一: 上述关系表设置单元包括: 元素查找子单元, 设置为当前工作模式为单向工作模 式或双向优化工作模式, 切换后的工作模式为双向可靠工作模式时, 在第一元素与标 签关系表中查找元素发送计数值达到第一设定上限的元素; 第一关系表设置子单元, 设置为在第二元素与标签关系表中设置元素查找子单元查找到的元素对应的已知位为 已确定标识; 上述链路库设置单元包括: 链路查找子单元, 设置为当前工作模式为单向工作模 式或双向优化工作模式, 切换后的工作模式为双向可靠工作模式时, 在第一链路库中 查找链路发送计数值达到第二设定上限的链路; 第一链路库设置子单元, 设置为将链 路查找子单元查找到的链路作为参考链路设置在第二链路库中。 方式二: 上述关系表设置单元包括: 元素统计子单元, 设置为当前工作模式为双向可靠工 作模式, 切换后的工作模式为单向工作模式或双向优化工作模式时, 统计第一元素与 标签关系表中每个元素对应的数据包序列号 SN的个数; 第二关系表设置子单元, 设 置为将元素统计子单元统计的个数作为第二元素与标签关系表中对应元素的发送计数 值, 并在第二元素与标签关系表中将发送计数值达到第一设定上限的元素对应的已知 位设置为已确定标识; 上述链路库设置单元包括: 链路统计子单元, 设置为当前工作模式为双向可靠工 作模式, 切换后的工作模式为单向工作模式或双向优化工作模式时, 统计第一链路库 中每个链路对应的数据包序列号 SN的个数; 第二链路库设置子单元, 设置为将链路 统计子单元统计的个数作为第二链路库中对应链路的发送计数值, 将发送计数值达到 第二设定上限的链路作为参考链路。 在上述转换过程中,链表标识 Gen_Id与数据包序列号标识 SN可以直接相互赋值。 为了实现压缩与解压缩功能, 上述装置还可以包括: 压缩与解压缩模块 32, 设置 为发起工作模式切换之后, 根据所述切换后的工作模式的上下文信息进行元素的压缩 或解压缩。 本实施例通过充分利用切换前学习到的元素上下文信息设置切换后的元素上下文 信息, 使切换后不需要再清空之前的元素上下文信息重新学习, 解决了 ROHC的工作 模式切换中学习资源的浪费问题, 提高了系统资源的利用率。 同时, 使用继承的元素 上下文进行压缩 /解压时, 可以提高压缩的效率和压缩程度。 从以上的描述中可以看出, 以上实施例可以保证各种模式切换过程中, 压缩端和 解压端所维护的链表上下文信息都不被清空, 而是通过转换被有效地继承, 进而保证 了链表压缩下的无缝模式切换, 有效提高了模式切换后链表压缩的效率。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 After the mode is switched, the compressor and the decompressor still save the converted Talbe table and the List library, and the corresponding context information. At this time, the list information of the packet to be sent with SN=24 can be compressed and sent, since the current reference list is ( 3500, 3600, 3601), the list to be sent is (3500, 3600, 3601, 3602). According to the principle of linked list compression, only the difference between the current list and the reference list needs to be sent, that is, only (3602) needs to be sent to the decompression end. can. According to the foregoing method provided in this embodiment, it is ensured that the context information of the linked list maintained by the compression end and the decompression end is not cleared in various mode switching processes, but is effectively inherited through conversion, thereby ensuring compression under the linked list. Seamless mode switching effectively improves the efficiency of linked list compression after mode switching. Embodiment 2 This embodiment provides an ROHC layer working mode switching device. The device may be disposed on a physical device of a compression end or a decompressing end. Referring to FIG. 2, the device includes: an information conversion determining module 22, configured to be required When the operation mode switching of the ROHC layer is performed, it is determined whether the context information conversion is required according to the operation mode before and after the switching; the information setting module 24 is connected to the information conversion judging module 22, and is set to be when the judgment result of the information conversion judging module 22 is YES. And setting context information of the switched working mode according to the context information of the current working mode; the mode switching module 26 is connected to the information setting module 24, and is set to initiate the working mode switching. Preferably, the information conversion judging module 22 includes: a first determining unit, configured to determine that a context information conversion is required when the current working mode is a one-way working mode or a bidirectional optimal working mode; or The second determining unit is configured to determine that the context information conversion is required if the current working mode is the bidirectional reliable working mode and is to be switched to the one-way working mode or the bidirectional optimized working mode. The information setting module 24 includes: a relationship table setting unit configured to set context information in the second element and the label relationship table according to the context information in the first element and the label relationship table, where the first element and the label The relationship table is an element and label relationship table learned in the current working mode, and the second element and label relationship table is an element and label relationship table corresponding to the switched working mode; the link library setting unit is set according to the first link library The context information in the second link library is set, wherein the first link library is a link library learned in the current working mode, and the second link library is a link library corresponding to the switched working mode. According to different working modes before and after switching, the relationship table setting unit and the link library setting unit may be implemented by two types. The mode 1 is a one-way working mode or a bidirectional optimized working mode for the current working mode, and the working mode after the switching is two-way. In the case of reliable working mode, mode 2 is for the current working mode as the two-way reliable working mode, and the working mode after the switching is the one-way working mode or the two-way optimized working mode. The following two methods are described in detail below. Method 1: The foregoing relationship table setting unit includes: an element search subunit, configured to set the current working mode to a one-way working mode or a two-way optimized working mode, and when the switched working mode is a two-way reliable working mode, the relationship between the first element and the label The element in the table is configured to send an element whose count value reaches the first upper limit; the first relationship table sets the subunit, and is set to be a known bit corresponding to the element found by the element search subunit in the second element and the tag relationship table. The link library setting unit includes: a link search subunit, configured to set the current working mode to a one-way working mode or a bidirectional optimized working mode, and the working mode after the switching is a two-way reliable working mode, in the first chain A link in the road library for finding a link transmission count value reaching a second upper limit; a first link library setting subunit, configured to set the link found by the link lookup subunit as a reference link in the second chain In the road library. Manner 2: The foregoing relationship table setting unit includes: an element statistics subunit, configured to set the current working mode to a bidirectional reliable working mode, and when the switched working mode is a one-way working mode or a bidirectional optimized working mode, the relationship between the first element and the label is counted. The number of the packet sequence number SN corresponding to each element in the table; the second relationship table setting subunit, set to count the number of statistics of the element statistics subunit as the sending count value of the corresponding element in the second element and the label relationship table And setting, in the second element and the label relationship table, a known bit corresponding to the element whose sending count value reaches the first upper limit is set as the determined identifier; the link library setting unit includes: a link statistics subunit, set to The current working mode is a two-way reliable working mode, and the number of data packet sequence numbers SN corresponding to each link in the first link library is counted when the working mode after the switching is the one-way working mode or the two-way optimized working mode; Link library setting subunit, set to link The number of statistics subunit statistics is used as the transmission count value of the corresponding link in the second link library, and the link whose transmission count value reaches the second upper limit is used as the reference link. In the above conversion process, the linked list identifier Gen_Id and the packet serial number identifier SN can be directly assigned to each other. In order to implement the compression and decompression functions, the foregoing apparatus may further include: a compression and decompression module 32, configured to perform compression or decompression of elements according to context information of the switched operation mode after the operation mode switching is initiated. In this embodiment, the element context information after switching is set by fully utilizing the element context information learned before the switching, so that the element context information before the switching does not need to be emptied again, and the learning resource waste in the ROHC working mode switching is solved. , improve the utilization of system resources. At the same time, when using the inherited element context for compression/decompression, the efficiency and compression of compression can be improved. As can be seen from the above description, the above embodiment can ensure that the linked list context information maintained by the compression end and the decompression end is not cleared during the various mode switching processes, but is effectively inherited through the conversion, thereby ensuring the linked list. Seamless mode switching under compression effectively improves the efficiency of linked list compression after mode switching. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

1. 一种鲁棒性头压缩协议 ROHC层的工作模式切换方法, 包括: 在需要进行 ROHC层的工作模式切换时,根据切换前后的工作模式判断是 否需要进行上下文信息转换; A robust head compression protocol ROHC layer working mode switching method includes: when the working mode switching of the ROHC layer is required, determining whether context information conversion is required according to the working mode before and after the switching;
如果是, 根据当前工作模式的上下文信息设置切换后的工作模式的上下文 信息, 并发起工作模式切换。  If yes, the context information of the switched working mode is set according to the context information of the current working mode, and the working mode switching is initiated.
2. 根据权利要求 1所述的方法, 其中, 所述根据切换前后的工作模式判断是否需 要进行上下文信息转换包括: The method according to claim 1, wherein the determining whether the context information conversion is required according to the working mode before and after the switching comprises:
如果当前工作模式为单向工作模式或双向优化工作模式, 欲切换至双向可 靠工作模式时, 确定需要进行上下文信息转换; 或者,  If the current working mode is the one-way working mode or the two-way optimized working mode, if it is desired to switch to the two-way reliable working mode, it is determined that context information conversion is required; or
如果当前工作模式为双向可靠工作模式, 欲切换至单向工作模式或双向优 化工作模式时, 确定需要进行上下文信息转换。  If the current working mode is the bidirectional reliable working mode, if you want to switch to the one-way working mode or the two-way optimized working mode, it is determined that the context information conversion is required.
3. 根据权利要求 1所述的方法, 其中, 所述根据当前工作模式的上下文信息设置 切换后的工作模式的上下文信息包括: The method according to claim 1, wherein the setting the context information of the switched working mode according to the context information of the current working mode comprises:
根据第一元素与标签关系表中的上下文信息设置第二元素与标签关系表中 的上下文信息, 其中, 所述第一元素与标签关系表为当前工作模式下学习的元 素与标签关系表, 所述第二元素与标签关系表为切换后的工作模式对应的元素 与标签关系表;  Setting the context information in the second element and the label relationship table according to the context information in the first element and the label relationship table, where the first element and the label relationship table are the element and label relationship table learned in the current working mode, The second element and the label relationship table are an element and label relationship table corresponding to the switched working mode;
根据第一链路库中的上下文信息设置第二链路库中的上下文信息, 其中, 第一链路库为当前工作模式下学习的链路库, 第二链路库为切换后的工作模式 对应的链路库。  Setting the context information in the second link library according to the context information in the first link library, where the first link library is a link library learned in the current working mode, and the second link library is a working mode after the switching Corresponding link library.
4. 根据权利要求 3所述的方法, 其中, 所述当前工作模式为单向工作模式或双向 优化工作模式, 所述切换后的工作模式为双向可靠工作模式时, The method according to claim 3, wherein the current working mode is a one-way working mode or a two-way optimized working mode, and when the switched working mode is a two-way reliable working mode,
所述根据第一元素与标签关系表中的上下文信息设置第二元素与标签关系 表中的上下文信息包括: 在所述第一元素与标签关系表中查找元素发送计数值 达到第一设定上限的元素, 在第二元素与标签关系表中设置所述查找到的元素 对应的已知位为已确定标识; 所述根据第一链路库中的上下文信息设置第二链路库中的上下文信息包 括: 在所述第一链路库中查找链路发送计数值达到第二设定上限的链路, 将查 找到的所述链路作为参考链路设置在第二链路库中。 Setting the context information in the second element and the label relationship table according to the context information in the first element and the label relationship table includes: searching for the element sending count value in the first element and the label relationship table to reach a first upper limit The element, the known bit corresponding to the found element in the second element and the tag relationship table is the determined identifier; Setting the context information in the second link library according to the context information in the first link library includes: searching, in the first link library, a link whose link transmission count value reaches a second upper limit, The found link is set as a reference link in the second link library.
5. 根据权利要求 3所述的方法, 其中, 所述当前工作模式为双向可靠工作模式, 所述切换后的工作模式为单向工作模式或双向优化工作模式时, The method according to claim 3, wherein the current working mode is a two-way reliable working mode, and when the switched working mode is a one-way working mode or a two-way optimized working mode,
所述根据第一元素与标签关系表中的上下文信息设置第二元素与标签关系 表中的上下文信息包括: 统计所述第一元素与标签关系表中每个元素对应的数 据包序列号 SN的个数; 将统计的所述个数作为所述第二元素与标签关系表中 对应元素的发送计数值, 并在所述第二元素与标签关系表中将发送计数值达到 第一设定上限的元素对应的已知位设置为已确定标识;  The setting the context information in the second element and the label relationship table according to the context information in the first element and the label relationship table comprises: counting the data packet sequence number SN of the first element corresponding to each element in the label relationship table. The number of the statistics is used as the sending count value of the corresponding element in the second element and the label relationship table, and the sending count value reaches the first upper limit in the second element and label relationship table. The known bit corresponding to the element is set to the identified identifier;
所述根据第一链路库中的上下文信息设置第二链路库中的上下文信息包 括: 统计所述第一链路库中每个链路对应的数据包序列号 SN的个数; 将统计 的所述个数作为所述第二链路库中对应链路的发送计数值, 将发送计数值达到 第二设定上限的链路作为参考链路。  Setting the context information in the second link library according to the context information in the first link library includes: counting the number of the data packet sequence number SN corresponding to each link in the first link library; The number is used as a transmission count value of a corresponding link in the second link library, and a link whose transmission count value reaches a second upper limit is used as a reference link.
6. 根据权利要求 1-5任一项所述的方法, 其中, 所述发起工作模式切换之后, 所 述方法还包括: The method according to any one of claims 1-5, wherein after the initiating the working mode switching, the method further comprises:
根据所述切换后的工作模式的上下文信息进行元素的压缩或解压缩。  The element is compressed or decompressed according to the context information of the switched operating mode.
7. 一种鲁棒性头压缩协议 ROHC层的工作模式切换装置, 包括: 7. A robust head compression protocol ROHC layer operating mode switching device, comprising:
信息转换判断模块, 设置为需要进行 ROHC层的工作模式切换时, 根据切 换前后的工作模式判断是否需要进行上下文信息转换;  The information conversion judging module is configured to determine whether the context information conversion is required according to the working mode before and after the switching when the working mode switching of the ROHC layer is required;
信息设置模块, 设置为当所述信息转换判断模块的判断结果为是时, 根据 当前工作模式的上下文信息设置切换后的工作模式的上下文信息;  The information setting module is configured to: when the determination result of the information conversion judging module is yes, set the context information of the switched working mode according to the context information of the current working mode;
模式切换模块, 设置为发起工作模式切换。  The mode switching module is set to initiate a working mode switching.
8. 根据权利要求 7所述的装置, 其中, 所述信息转换判断模块包括: The device according to claim 7, wherein the information conversion determining module comprises:
第一确定单元, 设置为如果当前工作模式为单向工作模式或双向优化工作 模式, 欲切换至双向可靠工作模式时, 确定需要进行上下文信息转换; 或者, 第二确定单元, 设置为如果当前工作模式为双向可靠工作模式, 欲切换至 单向工作模式或双向优化工作模式时, 确定需要进行上下文信息转换。 a first determining unit, configured to determine that a context information conversion is required when the current working mode is a one-way working mode or a two-way optimized working mode, or to switch to a two-way reliable working mode; or, the second determining unit is set to if the current working The mode is a two-way reliable working mode. When switching to the one-way working mode or the two-way optimized working mode, it is determined that context information conversion is required.
9. 根据权利要求 7所述的装置, 其中, 所述信息设置模块包括: 关系表设置单元, 设置为根据第一元素与标签关系表中的上下文信息设置 第二元素与标签关系表中的上下文信息, 其中, 所述第一元素与标签关系表为 当前工作模式下学习的元素与标签关系表, 所述第二元素与标签关系表为切换 后的工作模式对应的元素与标签关系表; 9. The apparatus according to claim 7, wherein the information setting module comprises: a relation table setting unit configured to set a context in the second element and the label relationship table according to the context information in the first element and the label relationship table The information, where the first element and the label relationship table are the element and label relationship table learned in the current working mode, and the second element and the label relationship table are the element and label relationship table corresponding to the switched working mode;
链路库设置单元, 设置为根据第一链路库中的上下文信息设置第二链路库 中的上下文信息, 其中, 第一链路库为当前工作模式下学习的链路库, 第二链 路库为切换后的工作模式对应的链路库。  The link library setting unit is configured to set context information in the second link library according to the context information in the first link library, where the first link library is a link library learned in the current working mode, and the second chain The road library is the link library corresponding to the working mode after the switching.
10. 根据权利要求 9所述的装置, 其中, 所述关系表设置单元包括: The device according to claim 9, wherein the relationship table setting unit comprises:
元素查找子单元, 设置为所述当前工作模式为单向工作模式或双向优化工 作模式, 所述切换后的工作模式为双向可靠工作模式时, 在所述第一元素与标 签关系表中查找元素发送计数值达到第一设定上限的元素;  An element search subunit, configured to: the current working mode is a one-way working mode or a bidirectional optimized working mode, and when the switched working mode is a two-way reliable working mode, searching for an element in the first element and the label relationship table Sending an element whose count value reaches the first upper limit;
第一关系表设置子单元, 设置为在第二元素与标签关系表中设置所述元素 查找子单元查找到的元素对应的已知位为已确定标识;  a first relationship table setting subunit, configured to set the element in the second element and the tag relationship table, and the known bit corresponding to the element found by the lookup subunit is the determined identifier;
所述链路库设置单元包括:  The link library setting unit includes:
链路查找子单元, 设置为所述当前工作模式为单向工作模式或双向优化工 作模式, 所述切换后的工作模式为双向可靠工作模式时, 在所述第一链路库中 查找链路发送计数值达到第二设定上限的链路;  a link search subunit, configured to: the current working mode is a one-way working mode or a bidirectional optimized working mode, and when the switched working mode is a bidirectional reliable working mode, searching for a link in the first link library Sending a link whose count value reaches the second set upper limit;
第一链路库设置子单元, 设置为将所述链路查找子单元查找到的所述链路 作为参考链路设置在第二链路库中。  The first link library setting subunit is configured to set the link found by the link lookup subunit as a reference link in the second link library.
11. 根据权利要求 9所述的装置, 其中, 11. The device according to claim 9, wherein
所述关系表设置单元包括:  The relationship table setting unit includes:
元素统计子单元, 设置为所述当前工作模式为双向可靠工作模式, 所述切 换后的工作模式为单向工作模式或双向优化工作模式时, 统计所述第一元素与 标签关系表中每个元素对应的数据包序列号 SN的个数;  An element statistic subunit, configured to: the current working mode is a bidirectional reliable working mode, and when the switched working mode is a unidirectional working mode or a bidirectional optimized working mode, each of the first element and the tag relationship table is counted The number of the packet sequence number SN corresponding to the element;
第二关系表设置子单元, 设置为将所述元素统计子单元统计的所述个数作 为所述第二元素与标签关系表中对应元素的发送计数值, 并在所述第二元素与 标签关系表中将发送计数值达到第一设定上限的元素对应的已知位设置为已确 定标识; 所述链路库设置单元包括: a second relationship table setting subunit, configured to use the number of the element statistics subunit statistics as a sending count value of the corresponding element in the second element and the label relationship table, and in the second element and the label The known bit corresponding to the element whose sending count value reaches the first upper limit is set as the determined identifier in the relation table; The link library setting unit includes:
链路统计子单元, 设置为所述当前工作模式为双向可靠工作模式, 所述切 换后的工作模式为单向工作模式或双向优化工作模式时, 统计所述第一链路库 中每个链路对应的数据包序列号 SN的个数;  a link statistics subunit, configured to: the current working mode is a bidirectional reliable working mode, and when the switched working mode is a one-way working mode or a bidirectional optimized working mode, each chain in the first link library is counted The number of data packet sequence numbers SN corresponding to the road;
第二链路库设置子单元, 设置为将所述链路统计子单元统计的所述个数作 为所述第二链路库中对应链路的发送计数值, 将发送计数值达到第二设定上限 的链路作为参考链路。  a second link library setting subunit, configured to use the number of the statistics of the link statistics subunit as a sending count value of a corresponding link in the second link library, and send the sending count value to a second setting The upper limit link is used as the reference link.
PCT/CN2011/080933 2011-06-13 2011-10-18 Method and apparatus for switching working mode of robust header compression protocol layer WO2012171289A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110157654.1 2011-06-13
CN201110157654.1A CN102215236B (en) 2011-06-13 2011-06-13 Working mode switching method and device of robust header compression protocol (ROHC) layer

Publications (1)

Publication Number Publication Date
WO2012171289A1 true WO2012171289A1 (en) 2012-12-20

Family

ID=44746366

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/080933 WO2012171289A1 (en) 2011-06-13 2011-10-18 Method and apparatus for switching working mode of robust header compression protocol layer

Country Status (2)

Country Link
CN (1) CN102215236B (en)
WO (1) WO2012171289A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI692946B (en) * 2018-10-23 2020-05-01 瑞昱半導體股份有限公司 Method for performing mode transition of compression operation in a transmission device, and associated transmission device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215236B (en) * 2011-06-13 2017-02-08 中兴通讯股份有限公司 Working mode switching method and device of robust header compression protocol (ROHC) layer
CN109219083A (en) * 2017-07-06 2019-01-15 深圳市中兴微电子技术有限公司 Optimization method and system in a kind of conversion of robustness header compression mode
CN107801212A (en) * 2017-10-17 2018-03-13 京信通信系统(中国)有限公司 A kind of communication means and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1603339A1 (en) * 2004-06-01 2005-12-07 STMicroelectronics S.r.l. Method and system for communicating video data in a packet-switched network, related network and computer program product therefor
CN101984621A (en) * 2010-10-25 2011-03-09 中兴通讯股份有限公司 Method and device for improving list compression efficiency in robustness header compression
EP2328295A1 (en) * 2008-09-19 2011-06-01 Fujitsu Limited Packet transmission method and node
CN102215236A (en) * 2011-06-13 2011-10-12 中兴通讯股份有限公司 Working mode switching method and device of robust header compression protocol (ROHC) layer

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364937B (en) * 2007-08-10 2013-12-18 华为技术有限公司 Method and system for keeping robust header compression mechanism communication
CN101494641A (en) * 2008-01-23 2009-07-29 中兴通讯股份有限公司 Mode transition method and apparatus of robustness head compression technology
CN101998438B (en) * 2009-08-17 2013-08-07 电信科学技术研究院 Method and equipment for improving performance of PDCP (Packet Data Convergence Protocol) ROHC (Robust Header Compression) algorithm
CN102045328B (en) * 2009-10-16 2016-08-03 中兴通讯股份有限公司 The method of a kind of robustness header compression pattern switching and decompression machine
CN102045769A (en) * 2010-12-23 2011-05-04 南京邮电大学 Heading compress text transfer method in Internet of things (IOT) prestressed handover

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1603339A1 (en) * 2004-06-01 2005-12-07 STMicroelectronics S.r.l. Method and system for communicating video data in a packet-switched network, related network and computer program product therefor
EP2328295A1 (en) * 2008-09-19 2011-06-01 Fujitsu Limited Packet transmission method and node
CN101984621A (en) * 2010-10-25 2011-03-09 中兴通讯股份有限公司 Method and device for improving list compression efficiency in robustness header compression
CN102215236A (en) * 2011-06-13 2011-10-12 中兴通讯股份有限公司 Working mode switching method and device of robust header compression protocol (ROHC) layer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI692946B (en) * 2018-10-23 2020-05-01 瑞昱半導體股份有限公司 Method for performing mode transition of compression operation in a transmission device, and associated transmission device

Also Published As

Publication number Publication date
CN102215236B (en) 2017-02-08
CN102215236A (en) 2011-10-12

Similar Documents

Publication Publication Date Title
EP2057813B1 (en) Inclusion of quality of service indication in header compression channel
JP4456115B2 (en) Sending embedded information about quality of service
US10904152B2 (en) Hardware-friendly mechanisms for in-band OAM processing
US20130294283A1 (en) Facilitating device-to-device communication
JP2003229925A (en) Method for transmitting packet data in communication system
EP1506656A1 (en) Dynamic allocation of a radio resource
US20150036513A1 (en) Multicore processing of bidirectional traffic flows
EP3078174B1 (en) Sctp bundling
US20070242703A1 (en) Binding/combining of plural telecommunications functions
WO2015196393A1 (en) Data transmission method and device
US8189586B2 (en) Plural telecommunications functions having sharing transaction(s)
KR20050021522A (en) Method for calculating a transmission window size
WO2008052443A1 (en) A method and system of multimedia service performance monitoring
WO2022143902A1 (en) Data packet transmission method and related device
WO2010032318A1 (en) Packet transmission method and node
WO2014173246A1 (en) Data transmission method, apparatus, and computer storage medium
KR20140017678A (en) Multipath overlay network and its multipath management protocol
WO2012171289A1 (en) Method and apparatus for switching working mode of robust header compression protocol layer
WO2004057829A1 (en) On-demand header compression
JP5075837B2 (en) Header compression method on the channel for out-of-order delivery
KR20210113332A (en) Ethernet frame transmission method and communication device
JP2017535117A (en) Call execution method and apparatus using LTE system
KR100965944B1 (en) Efficient encoding out of order data packets in a network
WO2012155566A1 (en) Context reuse method and system
EP2190163B1 (en) A method for repairing the window-based least significant bits decoding in the robust header compression

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11867784

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11867784

Country of ref document: EP

Kind code of ref document: A1