[go: up one dir, main page]

CN108282781A - Method, terminal and the base station of data transmission in moving process - Google Patents

Method, terminal and the base station of data transmission in moving process Download PDF

Info

Publication number
CN108282781A
CN108282781A CN201710009529.3A CN201710009529A CN108282781A CN 108282781 A CN108282781 A CN 108282781A CN 201710009529 A CN201710009529 A CN 201710009529A CN 108282781 A CN108282781 A CN 108282781A
Authority
CN
China
Prior art keywords
base station
data packet
key update
sequence number
information
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.)
Pending
Application number
CN201710009529.3A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710009529.3A priority Critical patent/CN108282781A/en
Priority to PCT/CN2017/117884 priority patent/WO2018126905A1/en
Publication of CN108282781A publication Critical patent/CN108282781A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种移动过程中的数据传输的方法、终端和基站,所述方法包括:终端获取源基站发送的密钥更新指示信息;终端在接收到服务节点发送的数据包时,根据所述密钥更新指示信息,进行密钥更新判断;终端在判断出需要密钥更新时,将当前采用的源基站的密钥更新为目标基站的密钥,并利用更新后的密钥对终端接收到的数据包进行解码。本发明通过密钥更新指示信息,辅助终端进行密钥更新判断,该密钥更新方案既能及时更新终端的密钥,又能保证终端的数据传输不中断,很好的解决现有密钥更新机制不够完善,影响数据包解码的问题。

The invention discloses a data transmission method, a terminal and a base station during a mobile process. The method includes: the terminal acquires key update instruction information sent by the source base station; when the terminal receives the data packet sent by the service node, according to the The above-mentioned key update instruction information is used to judge the key update; when the terminal determines that the key update is required, it updates the key of the source base station currently used to the key of the target base station, and uses the updated key to receive the key of the terminal. The received packets are decoded. The present invention assists the terminal in judging the key update through the key update indication information. The key update scheme can not only update the key of the terminal in time, but also ensure that the data transmission of the terminal is not interrupted, which is a good solution to the existing key update. The mechanism is not perfect, which affects the problem of packet decoding.

Description

移动过程中的数据传输的方法、终端和基站Method, terminal and base station for data transmission during movement

技术领域technical field

本发明涉及无线通信技术领域,尤其涉及一种移动过程中的数据传输的方法、终端和基站。The present invention relates to the technical field of wireless communication, in particular to a data transmission method, terminal and base station during movement.

背景技术Background technique

随着技术的发展,现有技术中长期演进系统(LTE,Long Term Evolution)开始和局域网(WLAN)技术进行融合,形成新的组网形式。主要由四个设备组成:用户设备(UE,UserEquipment)、核心网(CN,Core Network)、基站(eNB,Evolved Node B)和局域网终端(WT,WLAN Termination),其中,核心网中的移动管理实体(MME,Mobility Management Entity)主要负责信令的传输,服务网关(SGW,Serving GetWay)主要负责数据的传输。UE和eNB的接口为Uu,eNB与核心网的接口为S1,WT与eNB的接口为与Xw,如图1所示,为LTE和WLAN融合的架构图。With the development of technology, the existing technology Long Term Evolution (LTE, Long Term Evolution) system begins to integrate with local area network (WLAN) technology to form a new networking form. It mainly consists of four devices: user equipment (UE, UserEquipment), core network (CN, Core Network), base station (eNB, Evolved Node B) and local area network terminal (WT, WLAN Termination). Among them, the mobile management in the core network An entity (MME, Mobility Management Entity) is mainly responsible for signaling transmission, and a serving gateway (SGW, Serving GetWay) is mainly responsible for data transmission. The interface between UE and eNB is Uu, the interface between eNB and core network is S1, and the interface between WT and eNB is Xw. As shown in Figure 1, it is an architecture diagram of LTE and WLAN integration.

eNB和WLAN节点都可以同时为UE提供服务。如图2所示,为eNB和WLAN融合的协议架构图,在该协议架构下eNB的PDCP(Packet Data Convergence Protocol,分组数据汇聚协议)层将加密好的数据包通过接口Xw递交给WLAN的LWAAP(LTE-WLAN AggregationAdaptation Protocol)层,WT负责将数据传输给UE。Both the eNB and the WLAN node can provide services for the UE at the same time. As shown in Figure 2, it is a protocol architecture diagram for the integration of eNB and WLAN. Under this protocol architecture, the PDCP (Packet Data Convergence Protocol) layer of the eNB submits the encrypted data packet to the LWAAP of the WLAN through the interface Xw (LTE-WLAN AggregationAdaptation Protocol) layer, the WT is responsible for transmitting data to the UE.

在eNB和WT重叠覆盖的场景中,如图3所示,尤其是UE从eNB1移动到eNB2过程中,且一直处于WT的覆盖范围内,虽然UE需要从eNB1切换到eNB2,但是UE始终处于WT的覆盖范围。In the overlapping coverage scenario of eNB and WT, as shown in Figure 3, especially when the UE moves from eNB1 to eNB2 and is always within the coverage of WT, although the UE needs to switch from eNB1 to eNB2, the UE is always in WT coverage.

为了避免UE从eNB1切换到eNB2的过程中发生数据中断,WT会持续为UE提供服务。如图4所示,为移动过程中LTE和WLAN为UE提供服务的场景示意图。对于下行,eNB1和eNB2都将数据传递给WT,WT再发送给UE。对于上行,UE将数据发送给WT,WT再提交给eNB1和eNB2,由于数据加密时采用的密钥是与eNB相关的,也就是eNB1和eNB2的密钥是不同的。In order to avoid data interruption during UE handover from eNB1 to eNB2, the WT will continue to provide services for the UE. As shown in FIG. 4 , it is a schematic diagram of a scenario in which LTE and WLAN provide services to UE during the moving process. For downlink, both eNB1 and eNB2 pass data to WT, and WT sends it to UE. For uplink, UE sends data to WT, and WT submits it to eNB1 and eNB2. Since the key used for data encryption is related to eNB, that is, the keys of eNB1 and eNB2 are different.

由于在数据传输过程中,数据包会发生重传,例如,eNB1的数据包需要进行重传,重传的数据包会和新传的数据包混合在一起,例如,eNB1的重传数据包和eNB2的新传数据包混合在一起,而且UE同时只能使用同一个密钥,这就会出现UE会使用错误的密钥去解码数据包。如果数据包解码失败,就可能会丢弃该数据包。During data transmission, data packets will be retransmitted. For example, the data packets of eNB1 need to be retransmitted, and the retransmitted data packets will be mixed with the newly transmitted data packets. For example, the retransmitted data packets of eNB1 and The newly transmitted data packets of eNB2 are mixed together, and the UE can only use the same key at the same time, so the UE will use the wrong key to decode the data packets. If a packet fails to decode, the packet may be dropped.

发明内容Contents of the invention

本发明提供一种移动过程中的数据传输的方法、终端和基站,用以解决现有技术中密钥切换机制不够完善,影响数据包解码的问题。The invention provides a data transmission method, a terminal and a base station in the moving process, which are used to solve the problem in the prior art that the key switching mechanism is not perfect and affects the decoding of data packets.

依据本发明的一个方面,提供一种移动过程中的数据传输的方法,包括:According to one aspect of the present invention, a method for data transmission during movement is provided, including:

终端获取源基站发送的密钥更新指示信息;The terminal obtains the key update indication information sent by the source base station;

终端在接收到服务节点发送的数据包时,根据所述密钥更新指示信息,进行密钥更新判断;When receiving the data packet sent by the service node, the terminal performs a key update judgment according to the key update instruction information;

终端在判断出需要密钥更新时,将当前采用的源基站的密钥更新为目标基站的密钥,并利用更新后的密钥对终端接收到的数据包进行解码。When the terminal determines that a key update is needed, it updates the currently used key of the source base station to the key of the target base station, and uses the updated key to decode the data packet received by the terminal.

依据本发明的第二个方面,提供一种移动过程中的数据传输方法,包括:According to a second aspect of the present invention, a data transmission method during movement is provided, including:

所述源基站在检测到目标终端满足切换到目标基站的条件时,向所述目标基站发送密钥更新指示信息;When the source base station detects that the target terminal meets the conditions for switching to the target base station, it sends key update instruction information to the target base station;

所述源基站在所述目标基站确认切换后,向所述目标终端发送密钥更新指示信息;The source base station sends key update instruction information to the target terminal after the target base station confirms the handover;

所述源基站将缓存中的数据包通过服务节点传输给所述目标终端和/或将缓存中的数据包前传给所述目标基站。The source base station transmits the data packet in the cache to the target terminal through the serving node and/or forwards the cached data packet to the target base station.

依据本发明的第三个方面,提供一种移动过程中的数据传输方法,包括:According to a third aspect of the present invention, a method for data transmission during movement is provided, including:

所述目标基站接收源基站发送的密钥更新指示信息;The target base station receives the key update instruction information sent by the source base station;

所述目标基站在目标终端从所述源基站切入本基站后,根据所述密钥更新指示信息,对向所述目标终端发送的首包进行处理,并在处理后通过服务节点向所述目标终端发送所述首包。After the target terminal switches into the base station from the source base station, the target base station processes the first packet sent to the target terminal according to the key update instruction information, and sends the target packet to the target terminal through the service node after processing. The terminal sends the first packet.

依据本发明的第四个方面,提供一种终端,包括:According to a fourth aspect of the present invention, a terminal is provided, including:

信息获取模块,用于获取源基站发送的密钥更新指示信息;An information acquisition module, configured to acquire key update instruction information sent by the source base station;

更新判断模块,用于在接收到服务节点发送的数据包时,根据所述密钥更新指示信息,进行密钥更新判断;An update judgment module, configured to perform a key update judgment according to the key update instruction information when receiving the data packet sent by the service node;

第一更新处理模块,用于在所述更新判断模块判断出需要密钥更新时,将当前采用的源基站的密钥更新为目标基站的密钥;A first update processing module, configured to update the currently used key of the source base station to the key of the target base station when the update judging module determines that key updating is required;

第一数据处理模块,用于利用更新后的密钥对终端接收到的数据包进行解码。The first data processing module is configured to use the updated key to decode the data packet received by the terminal.

依据本发明的第五个方面,提供一种源基站,包括:According to a fifth aspect of the present invention, a source base station is provided, including:

第一信息发送模块,用于在检测到目标终端满足切换到目标基站的条件时,向目标基站发送密钥更新指示信息;The first information sending module is configured to send key update instruction information to the target base station when it is detected that the target terminal meets the conditions for switching to the target base station;

第二信息发送模块,用于在所述目标基站确认切换后,向所述目标终端发送密钥更新指示信息;A second information sending module, configured to send key update instruction information to the target terminal after the target base station confirms the handover;

数据发送模块,用于将缓存中的数据包通过服务节点传输给所述目标终端和/或将缓存中的数据包前传给所述目标基站。A data sending module, configured to transmit the data packets in the buffer to the target terminal through the serving node and/or forward the data packets in the buffer to the target base station.

依据本发明的第六个方面,提供一种目标基站,包括:According to a sixth aspect of the present invention, a target base station is provided, including:

信息接收模块,用于接收源基站发送的密钥更新指示信息;An information receiving module, configured to receive key update instruction information sent by the source base station;

第一处理模块,用于在目标终端从所述源基站切入本基站后,根据所述密钥更新指示信息,对向所述目标终端发送的首包进行处理;The first processing module is configured to process the first packet sent to the target terminal according to the key update instruction information after the target terminal switches into the base station from the source base station;

第一发送模块,用于将所述第一处理模块处理后的首包通过服务节点向所述目标终端发送。The first sending module is configured to send the first packet processed by the first processing module to the target terminal through the service node.

本发明有益效果如下:The beneficial effects of the present invention are as follows:

本发明通过密钥更新指示信息,辅助终端进行密钥更新判断,该密钥更新方案既能及时更新终端的密钥,又能保证终端的数据传输不中断,很好的解决现有密钥更新机制不够完善,影响数据包解码的问题。The present invention assists the terminal in judging the key update through the key update indication information. The key update scheme can not only update the key of the terminal in time, but also ensure that the data transmission of the terminal is not interrupted, which is a good solution to the existing key update. The mechanism is not perfect, which affects the problem of packet decoding.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:

图1为现有技术中LTE和WLAN融合的架构图;Fig. 1 is the architectural diagram of LTE and WLAN fusion in the prior art;

图2为现有技术中LTE和WLAN融合的协议架构图;FIG. 2 is a protocol architecture diagram of LTE and WLAN fusion in the prior art;

图3为现有技术中LTE和WLAN的共同覆盖的场景示意图;FIG. 3 is a schematic diagram of scenarios of joint coverage of LTE and WLAN in the prior art;

图4为现有技术中在移动过程中LTE和WLAN为UE提供服务的场景示意图;FIG. 4 is a schematic diagram of a scenario in which LTE and WLAN provide services to UEs during mobility in the prior art;

图5为本发明第一实施例提供的一种移动过程中的数据传输的方法的流程图;FIG. 5 is a flowchart of a method for data transmission during movement according to the first embodiment of the present invention;

图6为本发明第二实施例提供的一种移动过程中的数据传输的方法的流程图;FIG. 6 is a flow chart of a method for data transmission during movement according to the second embodiment of the present invention;

图7为本发明第三实施例提供的一种移动过程中的数据传输的方法的流程图;FIG. 7 is a flow chart of a method for data transmission during movement according to the third embodiment of the present invention;

图8为本发明第八实施例提供的移动过程中的数据传输方法的应用场景示意图;FIG. 8 is a schematic diagram of an application scenario of a data transmission method during movement provided by an eighth embodiment of the present invention;

图9为本发明第十实施例提供的移动过程中的数据传输方法的应用场景示意图;FIG. 9 is a schematic diagram of an application scenario of a data transmission method during movement provided by a tenth embodiment of the present invention;

图10为本发明第十一实施例提供的一种终端的结构框图;FIG. 10 is a structural block diagram of a terminal provided by an eleventh embodiment of the present invention;

图11为本发明第十二实施例提供的一种源基站的结构框图;FIG. 11 is a structural block diagram of a source base station provided by a twelfth embodiment of the present invention;

图12为本发明第十三实施例提供的一种目标基站的结构框图。Fig. 12 is a structural block diagram of a target base station provided by a thirteenth embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

本发明实施例提供一种移动过程中的数据传输的方法、终端和基站,本发明既能及时更新UE的密钥,又能保证UE的数据不中断,很好的解决了现有技术中存在的UE密钥更新问题。下面通过几个具体实施例对本发明的实施过程进行详细的阐述。The embodiment of the present invention provides a data transmission method, terminal and base station during the mobile process. The present invention can not only update the key of the UE in time, but also ensure that the data of the UE is not interrupted, which solves the problems existing in the prior art. UE rekey issue. The implementation process of the present invention will be described in detail below through several specific examples.

在本发明第一实施例中,提供一种移动过程中的数据传输的方法,本实施例所述方法应用于终端侧,所述终端处于两个eNB和服务节点的重叠覆盖中。如图5所示,所述方法包括如下步骤:In the first embodiment of the present invention, a method for data transmission during movement is provided. The method described in this embodiment is applied to a terminal side, and the terminal is in overlapping coverage of two eNBs and serving nodes. As shown in Figure 5, the method includes the following steps:

步骤S501,终端获取源基站发送的密钥更新指示信息;Step S501, the terminal obtains the key update instruction information sent by the source base station;

在本发明的一个具体实施例中,终端获取密钥更新指示信息的方式包括:终端接收到源基站发送的RRC重配消息,并在所述RRC重配消息中提取出所述密钥更新指示信息。即源基站通过RRC重配消息将密钥更新指示信息发送到终端。In a specific embodiment of the present invention, the method for the terminal to obtain the key update instruction information includes: the terminal receives the RRC reconfiguration message sent by the source base station, and extracts the key update instruction from the RRC reconfiguration message information. That is, the source base station sends the key update indication information to the terminal through an RRC reconfiguration message.

本发明实施例中,密钥更新指示信息用于辅助终端进行密钥更新判断,在一个具体实施例中,所述密钥更新指示信息为:用于密钥更新判断的数据包PDCP序列号的阈值信息。具体的,用于密钥更新判断的数据包PDCP序列号的阈值信息可以但不限于为:源基站发送的最后一个数据包的PDCP序列号信息,或者,目标基站发送的第一个新传数据包的PDCP序列号信息。In the embodiment of the present invention, the key update instruction information is used to assist the terminal in key update judgment. In a specific embodiment, the key update instruction information is: the PDCP sequence number of the data packet used for the key update judgment Threshold information. Specifically, the threshold information of the PDCP sequence number of the data packet used for key update judgment may be, but not limited to: the PDCP sequence number information of the last data packet sent by the source base station, or the first newly transmitted data packet sent by the target base station Packet's PDCP sequence number information.

在本发明的又一具体实施例中,所述密钥更新指示信息为:用于指示密钥更新的携带在数据包中的标识信息。该标识信息可以但不限于为end maker。In yet another specific embodiment of the present invention, the key update indication information is: identification information carried in a data packet for indicating key update. The identification information may be but not limited to end maker.

在本发明的再一具体实施例中,所述密钥更新指示信息为:用于密钥更新判断的数据包PDCP序列号的阈值信息,和,用于指示密钥更新的携带在数据包中的标识信息。In yet another specific embodiment of the present invention, the key update indication information is: the threshold information of the PDCP sequence number of the data packet used for key update judgment, and the key update information carried in the data packet identification information.

步骤S502,终端在接收到服务节点发送的数据包时,根据所述密钥更新指示信息,进行密钥更新判断;Step S502, when the terminal receives the data packet sent by the service node, it judges the key update according to the key update indication information;

具体的,本发明实施例中,当终端获取的密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息时,密钥更新判断过程具体为:Specifically, in the embodiment of the present invention, when the key update indication information obtained by the terminal is the threshold information of the PDCP sequence number of the data packet used for key update judgment, the key update judgment process is specifically:

终端在接收到服务节点发送的数据包时,检测接收到的数据包的PDCP序列号与所述用于密钥更新判断的数据包PDCP序列号的阈值间的大小关系是否满足设定的标准,当满足时,判定为需要密钥更新,否则,判定为无需密钥更新。When the terminal receives the data packet sent by the service node, it detects whether the magnitude relationship between the PDCP sequence number of the received data packet and the threshold value of the PDCP sequence number of the data packet used for key update judgment meets the set standard, When it is satisfied, it is determined that the key update is required, otherwise, it is determined that the key update is not required.

在本发明的一个具体实施例中,当用于密钥更新判断的数据包PDCP序列号的阈值信息为所述源基站发送的最后一个数据包的PDCP序列号信息时,进行密钥更新判断,具体包括:终端提取接收到的所述数据包的PDCP序列号,将该数据包的PDCP序列号与所述源基站发送的最后一个数据包的PDCP序列号进行比较,当所述数据包的PDCP序列号小于等于所述源基站发送的最后一个数据包的PDCP序列号时,判定为无需密钥更新,否则,判定为需要密钥更新。In a specific embodiment of the present invention, when the threshold information of the PDCP sequence number of the data packet used for key update judgment is the PDCP sequence number information of the last data packet sent by the source base station, the key update judgment is performed, It specifically includes: the terminal extracts the PDCP sequence number of the received data packet, compares the PDCP sequence number of the data packet with the PDCP sequence number of the last data packet sent by the source base station, and when the PDCP sequence number of the data packet When the sequence number is less than or equal to the PDCP sequence number of the last data packet sent by the source base station, it is determined that key update is not required; otherwise, it is determined that key update is required.

进一步地,当用于密钥更新判断的数据包PDCP序列号的阈值信息为所述目标基站发送的第一个新传数据包的PDCP序列号信息时,进行密钥更新判断,具体包括:所述终端提取接收到的所述数据包的PDCP序列号,并将该数据包的PDCP序列号与所述目标基站发送的第一个新传数据包的PDCP序列号进行比较,当所述数据包的PDCP序列号小于所述目标基站发送的第一个新传数据包的PDCP序列号时,判定为无需密钥更新,否则,判定为需要密钥更新。Further, when the threshold information of the PDCP sequence number of the data packet used for the key update judgment is the PDCP sequence number information of the first newly transmitted data packet sent by the target base station, the key update judgment is performed, specifically including: The terminal extracts the PDCP sequence number of the received data packet, and compares the PDCP sequence number of the data packet with the PDCP sequence number of the first newly transmitted data packet sent by the target base station, when the data packet When the PDCP sequence number of is smaller than the PDCP sequence number of the first newly transmitted data packet sent by the target base station, it is determined that key update is not required; otherwise, it is determined that key update is required.

进一步地,本发明实施例中,当终端获取的密钥更新指示信息为用于指示密钥更新的携带在数据包中的标识信息时,密钥更新判断过程具体为:Further, in the embodiment of the present invention, when the key update indication information obtained by the terminal is the identification information carried in the data packet for indicating the key update, the key update judgment process is specifically:

检测所述数据包的包头中是否携带所述标识信息,当携带所述标识信息时,判定为需要密钥更新,否则,判定为无需密钥更新;Detecting whether the identification information is carried in the packet header of the data packet, and when the identification information is carried, it is determined that a key update is required, otherwise, it is determined that a key update is not required;

进一步地,本发明实施例中,当终端获取的密钥更新指示信息包括用于密钥更新判断的数据包PDCP序列号的阈值信息和用于指示密钥更新的携带在数据包中的标识信息时,密钥更新判断过程具体为:Further, in the embodiment of the present invention, when the key update indication information obtained by the terminal includes the threshold information of the PDCP sequence number of the data packet used for key update judgment and the identification information carried in the data packet for indicating the key update When , the key update judgment process is as follows:

检测所述数据包的PDCP序列号与所述用于密钥更新判断的数据包PDCP序列号的阈值间的大小关系是否满足设定的标准,以及检测所述数据包的包头中是否携带所述标识信息,当任一检测结果为是时,判定为需要密钥更新,否则,判定为无需密钥更新。Detecting whether the size relationship between the PDCP sequence number of the data packet and the threshold value of the PDCP sequence number of the data packet used for key update judgment meets the set standard, and detecting whether the packet header of the data packet carries the Identification information, when any detection result is yes, it is determined that the key update is required, otherwise, it is determined that the key update is not required.

步骤S503,终端在判断出需要密钥更新时,将当前采用的源基站的密钥更新为目标基站的密钥,并利用更新后的密钥对终端接收到的数据包进行解码。In step S503, when the terminal determines that a key update is required, it updates the currently used key of the source base station to the key of the target base station, and uses the updated key to decode the data packet received by the terminal.

本发明实施例中,利用更新后的密钥对终端接收到的数据包进行解码,其中接收到的数据包包括步骤S502中接收到的数据包,以及终端随后接收到的数据包。即终端在进行密钥切换后,就不在进行密钥更新判断,而是利用切换后的密钥直接进行数据包的解码操作。In the embodiment of the present invention, the updated key is used to decode the data packet received by the terminal, where the received data packet includes the data packet received in step S502 and the subsequent data packet received by the terminal. That is, after the key is switched, the terminal does not perform a key update judgment, but uses the switched key to directly decode the data packet.

进一步地,本发明实施例中,当用于密钥更新判断的数据包PDCP序列号的阈值信息为源基站发送的最后一个数据包的PDCP序列号信息时,终端在判断出接收到的数据包的PDCP序列号与源基站发送的最后一个数据包的PDCP序列号相等时,可以判定出源基站已经将数据发送完毕,终端在利用源基站的密钥对该数据包进行解码后,可以不用等待下一个数据包的到来,直接进行密钥更新,当下一个数据包到来时,直接利用更新后的密钥进行数据包的解码操作。Further, in the embodiment of the present invention, when the threshold information of the PDCP sequence number of the data packet used for key update judgment is the PDCP sequence number information of the last data packet sent by the source base station, the terminal determines that the received data packet When the PDCP sequence number of the source base station is equal to the PDCP sequence number of the last data packet sent by the source base station, it can be determined that the source base station has sent the data, and the terminal does not need to wait after decoding the data packet with the key of the source base station. When the next data packet arrives, the key is updated directly, and when the next data packet arrives, the updated key is directly used to decode the data packet.

综上可知,本发明实施例给出了密钥更新的多种判断标准,利用本实施例所述方法的终端可以根据预先获取的密钥更新指示信息,进行密钥更新判断及密钥更新操作,解决了现有技术中终端在由源基站切换到目标基站后,存在会使用错误的密钥去解码数据包的问题。To sum up, the embodiment of the present invention provides multiple judgment criteria for key update, and the terminal using the method described in this embodiment can perform key update judgment and key update operation according to the pre-acquired key update instruction information , which solves the problem in the prior art that a terminal uses a wrong key to decode a data packet after switching from a source base station to a target base station.

在本发明第二实施例中,提供一种移动过程中的数据传输方法,应用于源基站侧,如图6所示,所述方法包括如下步骤:In the second embodiment of the present invention, a method for data transmission during the moving process is provided, which is applied to the source base station side, as shown in FIG. 6, and the method includes the following steps:

步骤S601,源基站在检测到目标终端满足切换到目标基站的条件时,向所述目标基站发送密钥更新指示信息;Step S601, when the source base station detects that the target terminal satisfies the conditions for switching to the target base station, it sends key update instruction information to the target base station;

本发明实施例中,所述的目标终端处于源基站、目标基站和服务节点的重叠覆盖中。In the embodiment of the present invention, the target terminal is in overlapping coverage of the source base station, the target base station, and the serving node.

进一步地,在本发明的一个具体实施例中,源基站在向目标基站发送切换请求消息时,在切换请求消息中携带所述密钥更新指示信息,进而实现密钥更新指示信息的下发。Further, in a specific embodiment of the present invention, when the source base station sends a handover request message to the target base station, the key update instruction information is carried in the handover request message, so as to realize the delivery of the key update instruction information.

步骤S602,源基站在目标基站确认切换后,向目标终端发送密钥更新指示信息;Step S602, the source base station sends key update instruction information to the target terminal after the target base station confirms the handover;

本发明实施例中,源基站在向目标基站发送切换请求消息后,若接收到目标基站反馈的切换确认消息,则判定出目标基站确认切换。In the embodiment of the present invention, after the source base station sends the handover request message to the target base station, if it receives the handover confirmation message fed back by the target base station, it determines that the target base station confirms the handover.

在本发明的一个具体实施例中,源基站向目标终端发送的密钥更新指示信息为源基站接收到目标基站反馈的切换确认消息,从切换确认消息中提取出的密钥更新指示信息。In a specific embodiment of the present invention, the key update instruction information sent by the source base station to the target terminal is the key update instruction information extracted from the handover confirmation message fed back by the source base station from the target base station.

在本发明的又一具体实施例中,源基站向所述目标终端发送RRC重配消息,并在所述RRC重配消息中携带所述密钥更新指示信息。即,源基站通过将密钥更新指示信息携带在RRC重配消息中的方式,将密钥更新指示信息发送到目的终端。In yet another specific embodiment of the present invention, the source base station sends an RRC reconfiguration message to the target terminal, and carries the key update indication information in the RRC reconfiguration message. That is, the source base station sends the key update instruction information to the destination terminal by carrying the key update instruction information in the RRC reconfiguration message.

步骤S603,源基站将缓存中的数据包通过服务节点传输给目标终端和/或将缓存中的数据包前传给目标基站,以由目标基站通过服务节点传输给目标终端。Step S603, the source base station transmits the buffered data packet to the target terminal through the serving node and/or forwards the buffered data packet to the target base station, so that the target base station transmits the buffered data packet to the target terminal through the serving node.

本发明实施例中,所述的密钥更新指示信息包括:用于密钥更新判断的数据包PDCP序列号的阈值信息,和/或,用于指示密钥更新的携带在数据包中的标识信息。具体的,用于密钥更新判断的数据包PDCP序列号的阈值信息可以但不限于为:源基站发送的最后一个数据包的PDCP序列号信息,或者,目标基站发送的第一个新传数据包的PDCP序列号信息。所述标识信息可以但不限于为end maker。In the embodiment of the present invention, the key update indication information includes: the threshold information of the PDCP sequence number of the data packet used for key update judgment, and/or, the identifier carried in the data packet used to indicate the key update information. Specifically, the threshold information of the PDCP sequence number of the data packet used for key update judgment may be, but not limited to: the PDCP sequence number information of the last data packet sent by the source base station, or the first newly transmitted data packet sent by the target base station Packet's PDCP sequence number information. The identification information may be but not limited to end maker.

另外,值得一提的是,当本发明实施例所述的源基站和目标基站的类型均为S-eNB(Second eNB,第二基站)时,源基站通过M-eNB(Master eNB,主基站)向目标基站发送所述密钥更新指示信息,以及通过M-eNB向目标终端发送所述密钥更新指示信息。In addition, it is worth mentioning that when the types of the source base station and the target base station described in the embodiment of the present invention are both S-eNB (Second eNB, second base station), the source base station passes M-eNB (Master eNB, main base station ) sending the key update instruction information to the target base station, and sending the key update instruction information to the target terminal through the M-eNB.

综上可知,利用本实施例所述方法的源基站,将用于辅助终端进行密钥更新判断的密钥更新指示信息发送到目标基站和目标终端,使得目标基站根据该密钥更新指示信息,对发送至目标终端的数据包进行处理,以及使得目标终端在接收到数据包时,可以根据接收到的密钥更新指示信息,进行密钥更新判断。可见,利用本实施例所述方法的源基站与利用第一实施例所述方法的终端相配合,可以使得终端在由源基站切换到目标基站后,避免使用错误的密钥去解码数据包。To sum up, it can be seen that the source base station using the method described in this embodiment sends the key update instruction information used to assist the terminal in key update judgment to the target base station and the target terminal, so that the target base station can, according to the key update instruction information, The data packet sent to the target terminal is processed, and when receiving the data packet, the target terminal can perform key update judgment according to the received key update instruction information. It can be seen that the cooperation of the source base station using the method described in this embodiment and the terminal using the method described in the first embodiment can prevent the terminal from using a wrong key to decode data packets after switching from the source base station to the target base station.

在本发明的第三实施例中,提供一种移动过程中的数据传输方法,应用于目标基站,如图7所示,所述方法包括如下步骤:In the third embodiment of the present invention, a data transmission method during a mobile process is provided, which is applied to a target base station. As shown in FIG. 7, the method includes the following steps:

步骤S701,目标基站接收源基站发送的密钥更新指示信息;Step S701, the target base station receives the key update instruction information sent by the source base station;

在本发明的一个具体实施例中,所述目标基站接收所述源基站发送的切换请求消息,并从所述切换请求消息中提取出所述密钥更新指示信息。也就是说,源基站通过切换请求消息来携带所述密钥更新指示信息。In a specific embodiment of the present invention, the target base station receives the handover request message sent by the source base station, and extracts the key update indication information from the handover request message. That is to say, the source base station carries the key update instruction information through a handover request message.

进一步地,本发明实施例中,目标基站在接收到源基站发送的切换请求消息后,还包括:目标基站在允许所述目标终端接入时,向所述源基站发送切换确认消息,所述切换确认消息中携带有源基站需向目标终端发送的密钥更新指示信息。Further, in the embodiment of the present invention, after receiving the handover request message sent by the source base station, the target base station further includes: when the target base station allows the target terminal to access, sending a handover confirmation message to the source base station, the The handover confirmation message carries key update indication information that the active base station needs to send to the target terminal.

步骤S702,目标基站在目标终端从源基站切入本基站后,根据所述密钥更新指示信息,对向所述目标终端发送的首包进行处理,并在处理后通过服务节点向所述目标终端发送所述首包。Step S702, after the target terminal switches into the base station from the source base station, the target base station processes the first packet sent to the target terminal according to the key update instruction information, and sends the target terminal to the target terminal through the service node after processing Send the first packet.

本发明实施例中,所述的密钥更新指示信息包括:用于密钥更新判断的数据包PDCP序列号的阈值信息,和/或,用于指示密钥更新的携带在数据包中的标识信息。具体的,用于密钥更新判断的数据包PDCP序列号的阈值信息包括但不限于为:源基站发送的最后一个数据包的PDCP序列号信息,或者,目标基站发送的第一个新传数据包的PDCP序列号信息。所述标识信息可以但不限于为end maker。In the embodiment of the present invention, the key update indication information includes: the threshold information of the PDCP sequence number of the data packet used for key update judgment, and/or, the identifier carried in the data packet used to indicate the key update information. Specifically, the threshold information of the PDCP sequence number of the data packet used for key update judgment includes but is not limited to: the PDCP sequence number information of the last data packet sent by the source base station, or the first newly transmitted data packet sent by the target base station Packet's PDCP sequence number information. The identification information may be but not limited to end maker.

具体的,本发明实施例中,当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息时,所述首包为目标基站的第一个新传数据包;此时,对向所述目标终端发送的首包进行处理,具体包括:设置向所述目标终端发送的本基站的第一个新传数据包的PDCP序列号,使得该PDCP序列号大于或等于所述阈值。在本发明的一个具体实施例中,当所述密钥更新指示信息为所述源基站发送的最后一个数据包的PDCP序列号信息时,将向所述目标终端发送的第一个新传数据包的PDCP序列号设为所述源基站发送的最后一个数据包的PDCP序列号加一;当所述密钥更新指示信息为所述目标基站发送的第一个新传数据包的PDCP序列号信息时,将向所述目标终端发送的第一个新传数据包的PDCP序列号设为所述目标基站发送的第一个新传数据包的PDCP序列号。Specifically, in the embodiment of the present invention, when the key update indication information is the threshold information of the PDCP sequence number of the data packet used for key update judgment, the first packet is the first newly transmitted data packet of the target base station ; At this time, processing the first packet sent to the target terminal specifically includes: setting the PDCP sequence number of the first newly transmitted data packet of the base station sent to the target terminal, so that the PDCP sequence number is greater than or equal to the threshold. In a specific embodiment of the present invention, when the key update instruction information is the PDCP sequence number information of the last data packet sent by the source base station, the first newly transmitted data packet sent to the target terminal The PDCP sequence number of the packet is set to the PDCP sequence number of the last data packet sent by the source base station plus one; when the key update indication information is the PDCP sequence number of the first newly transmitted data packet sent by the target base station information, set the PDCP sequence number of the first newly transmitted data packet sent to the target terminal as the PDCP sequence number of the first newly transmitted data packet sent by the target base station.

进一步地,本发明实施例中,当所述密钥更新指示信息为用于密钥更新判断的携带在数据包中的标识信息时,所述首包为源基站前传至目标基站的重传数据包或者为目标基站的第一个新传数据包。此时,对向所述目标终端发送的首包进行处理,具体包括:在所述首包的包头中携带所述标识信息;Further, in the embodiment of the present invention, when the key update instruction information is the identification information carried in the data packet used for key update judgment, the first packet is the retransmission data forwarded by the source base station to the target base station packet or the first newly transmitted data packet of the target base station. At this time, processing the first packet sent to the target terminal specifically includes: carrying the identification information in a header of the first packet;

进一步地,本发明实施例中,当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息和用于密钥更新判断的携带在数据包中的标识信息时,若所述首包为源基站前传至目标基站的重传数据包,则对向所述目标终端发送的首包进行处理,具体包括:在所述首包的包头中携带所述标识信息。若所述首包为目标基站的第一个新传数据包,则对向所述目标终端发送的首包进行处理,具体包括:设置向所述目标终端发送的本基站的第一个新传数据包的PDCP序列号,使得该PDCP序列号大于或等于所述阈值。该实施例为终端密钥判断提供了双重判断标准,提高了密钥更新的准确性。Further, in the embodiment of the present invention, when the key update indication information is the threshold information of the PDCP sequence number of the data packet used for the key update judgment and the identification information carried in the data packet used for the key update judgment , if the first packet is a retransmission data packet forwarded by the source base station to the target base station, processing the first packet sent to the target terminal specifically includes: carrying the identification information in a header of the first packet. If the first packet is the first newly transmitted data packet of the target base station, processing the first packet sent to the target terminal specifically includes: setting the first new transmitted data packet of the base station to be sent to the target terminal The PDCP sequence number of the data packet, so that the PDCP sequence number is greater than or equal to the threshold. This embodiment provides double judgment criteria for terminal key judgment, which improves the accuracy of key update.

进一步地,本发明实施例中,当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息和用于密钥更新判断的携带在数据包中的标识信息时,所述首包也可以为目标基站的第一个新传数据包。此时,对向所述目标终端发送的首包进行处理,具体包括:设置向所述目标终端发送的本基站的第一个新传数据包的PDCP序列号,使得该PDCP序列号大于等于所述阈值,以及在第一个新传数据包的包头中携带所述标识信息。Further, in the embodiment of the present invention, when the key update indication information is the threshold information of the PDCP sequence number of the data packet used for the key update judgment and the identification information carried in the data packet used for the key update judgment , the first packet may also be the first newly transmitted data packet of the target base station. At this time, processing the first packet sent to the target terminal specifically includes: setting the PDCP sequence number of the first newly transmitted data packet of the base station sent to the target terminal, so that the PDCP sequence number is greater than or equal to the set The above threshold, and carry the identification information in the header of the first newly transmitted data packet.

综上可知,利用本实施例所述方法的目标基站,在接收到源终端发送的密钥更新指示信息后,对发送给目标终端的首包进行处理,使得已经获取到密钥更新指示的目标终端在接收到首包时,可以准确的进行密钥更新判断。可见,利用本实施例所述方法的目标基站与利用第一实施例所述方法的终端、以及利用第二实施例所述方法的源基站相配合,可以使得终端在由源基站切换到目标基站后,避免使用错误的密钥去解码数据包。To sum up, after receiving the key update instruction information sent by the source terminal, the target base station using the method described in this embodiment processes the first packet sent to the target terminal, so that the target base station that has obtained the key update instruction When the terminal receives the first packet, it can accurately judge the key update. It can be seen that the target base station using the method described in this embodiment cooperates with the terminal using the method described in the first embodiment and the source base station using the method described in the second embodiment, so that the terminal can be handed over from the source base station to the target base station Finally, avoid using the wrong key to decode the packet.

在本发明的第四实施例中,提供一种移动过程中的数据传输方法,该方法中密钥更新指示信息为用于指示密钥更新的携带在数据包中的标识信息(例如,end maker),但该密钥更新指示信息无需源基站发送到目标终端和目标基站。而是通过修改终端和基站协议,实现密钥更新判断。例如,终端在接收到源基站发送的RRC重配消息后,若接收到服务节点发送的数据包时,开始检测所述数据包中是否携带有指定的标识信息,终端在检测出所述数据包中携带有指定的密钥更新指示信息时,将当前采用的密钥更新为目的基站的密钥,并利用更新后的密钥对所述数据包进行解码。而目标基站在终端从所述源基站切入本基站后,在向所述目标终端发送的首包中添加指定的标识信息,并将添加有指定的标识信息的首包通过服务节点向所述目标终端发送。In the fourth embodiment of the present invention, a method for data transmission during movement is provided, in which the key update indication information is the identification information carried in the data packet for indicating key update (for example, end maker ), but the key update indication information does not need to be sent by the source base station to the target terminal and the target base station. Instead, the key update judgment is realized by modifying the protocol between the terminal and the base station. For example, after receiving the RRC reconfiguration message sent by the source base station, if the terminal receives the data packet sent by the serving node, it starts to detect whether the specified identification information is carried in the data packet, and the terminal detects that the data packet When the specified key update indication information is carried in the , update the currently used key to the key of the target base station, and use the updated key to decode the data packet. After the terminal switches into the base station from the source base station, the target base station adds specified identification information to the first packet sent to the target terminal, and sends the first packet with the specified identification information to the target terminal through the serving node. Terminal sends.

本实施例所述方法,也可以很好的解决现有技术中终端在由源基站切换到目标基站后,存在会使用错误的密钥去解码数据包的问题。The method described in this embodiment can also well solve the problem in the prior art that the terminal uses a wrong key to decode the data packet after switching from the source base station to the target base station.

以上分别从终端、源基站、目标基站侧,对密钥更新方案进行了阐述,下面通过几个具体实施例对本发明的整体实施过程进行阐述。The above describes the key update scheme respectively from the side of the terminal, the source base station, and the target base station, and the overall implementation process of the present invention is described below through several specific embodiments.

在本发明的第五实施例中,提供一种移动过程中的数据传输方法,本实施例的应用场景为:两个基站eNB都可与某服务节点node相连,其中,服务节点可以是基站或者WT等。UE处于两个eNB和服务节点的重叠覆盖范围内。初始,源eNB和服务节点为UE提供服务,当UE从源eNB移动到目标eNB的过程中,目标eNB和服务节点开始为UE提供服务。为了保证UE的数据不间断,在这个过程中,两个eNB都将数据包发送给服务节点,服务节点负责将数据包发送给UE。In the fifth embodiment of the present invention, a data transmission method in the process of moving is provided. The application scenario of this embodiment is: two base stations eNB can be connected to a service node node, wherein the service node can be a base station or WT et al. The UE is within the overlapping coverage of two eNBs and a serving node. Initially, the source eNB and the serving node provide services for the UE. When the UE moves from the source eNB to the target eNB, the target eNB and the serving node start to provide services for the UE. In order to ensure uninterrupted data of the UE, during this process, both eNBs send data packets to the serving node, and the serving node is responsible for sending the data packets to the UE.

为了保证UE能够及时更新密钥,本实施例所述方法的实施过程如下:In order to ensure that the UE can update the key in time, the implementation process of the method described in this embodiment is as follows:

步骤1,源eNB检测到目标终端满足切换到目标eNB的条件时,向目标eNB发送切换请求消息。其中,切换请求消息中携带源eNB发送给UE的最后一个数据包的PDCP SN。Step 1, when the source eNB detects that the target terminal meets the conditions for handover to the target eNB, it sends a handover request message to the target eNB. Wherein, the handover request message carries the PDCP SN of the last data packet sent by the source eNB to the UE.

步骤2,目标eNB接受后,回复切换确认消息,该切换确认消息会携带源eNB发送给UE的最后一个数据包的PDCP SN。Step 2: After the target eNB accepts it, it replies with a handover confirmation message, and the handover confirmation message will carry the PDCP SN of the last data packet sent by the source eNB to the UE.

步骤3,源eNB给UE发送RRC重配消息,指示UE发生切换。其中,RRC重配消息中携带源eNB发送给UE的最后一个数据包的PDCP SN。需要指出的是,源eNB给UE发送了RRC重配消息后,不会终止对UE的数据传输。源eNB会继续将缓存中的数据传输给服务节点,继而由服务节点发送给UE。或者,源eNB会将没有发送成功以及没有发送的数据包前传给目标eNB,由目标eNB继续将缓存中的数据传输给服务节点,继而由服务节点发送给UE。Step 3, the source eNB sends an RRC reconfiguration message to the UE, instructing the UE to perform handover. Wherein, the RRC reconfiguration message carries the PDCP SN of the last data packet sent by the source eNB to the UE. It should be pointed out that after the source eNB sends the RRC reconfiguration message to the UE, it will not terminate the data transmission to the UE. The source eNB will continue to transmit the data in the cache to the serving node, and then the serving node will send it to the UE. Alternatively, the source eNB forwards the data packets that have not been sent successfully or not sent to the target eNB, and the target eNB continues to transmit the data in the cache to the serving node, and then the serving node sends it to the UE.

步骤4,UE接收到RRC重配消息后,从该RRC重配消息中得到源eNB发送给UE的最后一个数据包的PDCP SN信息;Step 4. After receiving the RRC reconfiguration message, the UE obtains the PDCP SN information of the last data packet sent by the source eNB to the UE from the RRC reconfiguration message;

步骤5,目标eNB在UE接入本基站后,根据源eNB发送给UE的最后一个数据包的PDCPSN,目标eNB对本基站的第一个新传数据包进行编号,并将该数据包传输给服务节点,继而由服务节点发送给UE。Step 5: After the UE accesses the base station, the target eNB numbers the first newly transmitted data packet of the base station according to the PDCPSN of the last data packet sent by the source eNB to the UE, and transmits the data packet to the service node, and then sent to the UE by the serving node.

步骤6,UE接收到数据包后,若判断出该数据包的PDCP SN小于等于源eNB发送的最后一个数据包的PDCP SN时,UE继续用源eNB的密钥进行解码。当UE接收到的数据包的PDCPSN大于源eNB发送的最后一个数据包的PDCP SN时,UE更新密钥,采用目的eNB的密钥,对接收到的数据包及随后的数据包进行解码。Step 6: After the UE receives the data packet, if it judges that the PDCP SN of the data packet is less than or equal to the PDCP SN of the last data packet sent by the source eNB, the UE continues to decode with the key of the source eNB. When the PDCPSN of the data packet received by the UE is greater than the PDCP SN of the last data packet sent by the source eNB, the UE updates the key and uses the key of the target eNB to decode the received data packet and subsequent data packets.

在本发明的第六实施例中,提供一种移动过程中的数据传输方法,本实施例的应用场景为:两个基站eNB都可与某服务节点node相连。UE处于两个eNB和服务节点的重叠覆盖范围内。初始,源eNB和服务节点为UE提供服务,当UE从源eNB移动到目标eNB的过程中,目标eNB和服务节点开始为UE提供服务。为了保证UE的数据不间断,在这个过程中,两个eNB都将数据包发送给服务节点,服务节点负责将数据包发送给UE。In the sixth embodiment of the present invention, a data transmission method during a moving process is provided. The application scenario of this embodiment is: two base stations eNBs can both be connected to a service node node. The UE is within the overlapping coverage of two eNBs and a serving node. Initially, the source eNB and the serving node provide services for the UE. When the UE moves from the source eNB to the target eNB, the target eNB and the serving node start to provide services for the UE. In order to ensure uninterrupted data of the UE, during this process, both eNBs send data packets to the serving node, and the serving node is responsible for sending the data packets to the UE.

为了保证UE能够及时更新密钥,本实施例所述方法的实施过程如下:In order to ensure that the UE can update the key in time, the implementation process of the method described in this embodiment is as follows:

步骤1,源eNB检测到目标终端满足切换到目标eNB的条件时,向目标eNB发送切换请求消息。其中,切换消息中携带目标eNB发送给UE的第一个新传数据包的PDCP SN。Step 1, when the source eNB detects that the target terminal meets the conditions for handover to the target eNB, it sends a handover request message to the target eNB. Wherein, the handover message carries the PDCP SN of the first newly transmitted data packet sent by the target eNB to the UE.

步骤2,目标eNB接受后,回复切换确认消息,该切换确认消息会携带目标eNB发送给UE的第一个新传数据包的PDCP SN。Step 2: After receiving the acceptance, the target eNB replies with a handover confirmation message, and the handover confirmation message will carry the PDCP SN of the first newly transmitted data packet sent by the target eNB to the UE.

步骤3,源eNB给UE发送RRC重配消息,指示UE发生切换。其中,RRC重配消息中携带目标eNB发送给UE的第一个新传数据包的PDCP SN。需要指出的是,源eNB给UE发送了RRC重配消息后,不会终止对UE的数据传输。源eNB会继续将缓存中的数据传输给服务节点,继而由服务节点发送给UE。或者,源eNB会将没有发送成功以及没有发送的数据包前传给目标eNB,并继续将缓存中的数据传输给服务节点,继而由服务节点发送给UE。Step 3, the source eNB sends an RRC reconfiguration message to the UE, instructing the UE to perform handover. Wherein, the RRC reconfiguration message carries the PDCP SN of the first newly transmitted data packet sent by the target eNB to the UE. It should be pointed out that after the source eNB sends the RRC reconfiguration message to the UE, it will not terminate the data transmission to the UE. The source eNB will continue to transmit the data in the cache to the serving node, and then the serving node will send it to the UE. Alternatively, the source eNB forwards the data packets that have not been sent successfully or not sent to the target eNB, and continues to transmit the data in the buffer to the serving node, and then the serving node sends it to the UE.

步骤4,UE接收到RRC重配消息后,从该RRC重配消息中得到目标eNB发送给UE的第一个新传数据包的PDCP SN信息;Step 4: After receiving the RRC reconfiguration message, the UE obtains the PDCP SN information of the first newly transmitted data packet sent by the target eNB to the UE from the RRC reconfiguration message;

步骤5,目标eNB在UE接入本基站后,根据目标eNB发送的第一个新传数据包的PDCPSN对目标eNB的新传数据包进行编号,并将其传输给服务节点,继而由服务节点发送给UE。Step 5: After the UE accesses the base station, the target eNB numbers the new data packets of the target eNB according to the PDCPSN of the first new data packet sent by the target eNB, and transmits them to the serving node, and then the serving node sent to the UE.

步骤6,UE接收到数据包后,若判断出该数据包的PDCP SN小于目的eNB发送给UE的第一个新传数据包的PDCP SN时,UE继续用源eNB的密钥进行解码。当UE接收到的数据包的PDCP SN大于等于目的eNB发送给UE的第一个新传数据包的PDCP SN时,UE更新密钥,采用目的eNB的密钥,对接收到的数据包及随后的数据包进行解码。Step 6: After the UE receives the data packet, if it judges that the PDCP SN of the data packet is smaller than the PDCP SN of the first newly transmitted data packet sent by the target eNB to the UE, the UE continues to decode using the key of the source eNB. When the PDCP SN of the data packet received by the UE is greater than or equal to the PDCP SN of the first newly transmitted data packet sent by the target eNB to the UE, the UE updates the key, and uses the key of the target eNB to process the received data packet and subsequent The packets are decoded.

在本发明的第七实施例中,提供一种移动过程中的数据传输方法,本实施例的应用场景为:UE处于两个eNB和服务节点的重叠覆盖中,源eNB作为UE的S-eNB(Second eNB)和服务节点进行split bearer(分割承载),为UE提供服务。当UE从源eNB移动到目标eNB的过程中,发生了S-eNB更新过程,但是服务节点依旧可以作为提供split bearer的服务节点。在这个过程中,源S-eNB需要将UE的数据传输给服务节点,服务节点再发送给UE,而目标S-eNB也需要将UE的数据传输给服务节点,服务节点再发送给UE。In the seventh embodiment of the present invention, a data transmission method during the mobile process is provided. The application scenario of this embodiment is: the UE is in the overlapping coverage of two eNBs and serving nodes, and the source eNB is the S-eNB of the UE (Second eNB) and the serving node perform split bearer (split bearer) to provide services for the UE. When the UE moves from the source eNB to the target eNB, the S-eNB update process occurs, but the serving node can still serve as the serving node that provides the split bearer. In this process, the source S-eNB needs to transmit the UE's data to the serving node, which then sends it to the UE, and the target S-eNB also needs to transmit the UE's data to the serving node, which then sends it to the UE.

为了保证UE能够及时更新密钥,本实施例所述方法的实施过程如下:In order to ensure that the UE can update the key in time, the implementation process of the method described in this embodiment is as follows:

步骤1,M-eNB检测到目标终端满足切换到目标eNB的条件时,向源S-eNB发送S-eNB修改请求消息。Step 1, when the M-eNB detects that the target terminal meets the conditions for switching to the target eNB, it sends an S-eNB modification request message to the source S-eNB.

步骤2,源S-eNB回复S-eNB修改请求确认消息,消息会携带源S-eNB发送给UE的最后一个数据包的PDCP SN,或者,目标S-eNB发送给UE的第一个新传数据包的PDCP SN。Step 2. The source S-eNB replies with an S-eNB modification request confirmation message, which will carry the PDCP SN of the last data packet sent by the source S-eNB to the UE, or the first new data packet sent by the target S-eNB to the UE. PDCP SN of the packet.

步骤3,M-eNB向目标S-eNB发送切换请求消息。其中,切换消息中携带源S-eNB发送给UE的最后一个数据包的PDCP SN,或者,目标S-eNB发送给UE的第一个新传数据包的PDCPSN。In step 3, the M-eNB sends a handover request message to the target S-eNB. Wherein, the handover message carries the PDCP SN of the last data packet sent by the source S-eNB to the UE, or the PDCP SN of the first newly transmitted data packet sent by the target S-eNB to the UE.

步骤4,目标S-eNB接受后,回复切换确认消息,该切换确认消息会携带源S-eNB发送给UE的最后一个数据包的PDCP SN,或者,目标S-eNB发送给UE的第一个数据包的PDCPSN。Step 4. After the target S-eNB accepts it, it replies with a handover confirmation message. The handover confirmation message will carry the PDCP SN of the last data packet sent by the source S-eNB to the UE, or the first packet sent by the target S-eNB to the UE. PDCPSN of the packet.

步骤5,M-eNB给UE发送RRC重配消息,指示UE发生S-eNB更新过程。其中RRC重配消息中携带源S-eNB发送给UE的最后一个数据包的PDCP SN,或者,目标S-eNB发送给UE的第一个新传数据包的PDCP SN。In step 5, the M-eNB sends an RRC reconfiguration message to the UE, instructing the UE to perform an S-eNB update process. The RRC reconfiguration message carries the PDCP SN of the last data packet sent by the source S-eNB to the UE, or the PDCP SN of the first newly transmitted data packet sent by the target S-eNB to the UE.

步骤6,目标S-eNB在UE接入本基站后,根据源S-eNB发送给UE的最后一个数据包的PDCP SN,或者,根据目标S-eNB发送给UE的第一个新传数据包的PDCP SN,目标eNB对本基站的第一个新传数据包进行编号,并将该数据包传输给服务节点,继而由服务节点发送给UE。Step 6: After the UE accesses the base station, the target S-eNB, according to the PDCP SN of the last data packet sent by the source S-eNB to the UE, or according to the first new data packet sent by the target S-eNB to the UE The target eNB numbers the first newly transmitted data packet of the base station, and transmits the data packet to the serving node, and then the serving node sends it to the UE.

步骤7,UE接收到数据包后,若判断出该数据包的PDCP SN小于等于源eNB发送的最后一个数据包的PDCP SN时,UE继续用源S-eNB的密钥进行解码。当UE接收到的数据包的PDCP SN大于源S-eNB发送的最后一个数据包的PDCP SN时,UE更新密钥,采用目的S-eNB的密钥,对接收到的数据包及随后的数据包进行解码。Step 7: After UE receives the data packet, if it judges that the PDCP SN of the data packet is less than or equal to the PDCP SN of the last data packet sent by the source eNB, the UE continues to decode with the key of the source S-eNB. When the PDCP SN of the data packet received by the UE is greater than the PDCP SN of the last data packet sent by the source S-eNB, the UE updates the key, and uses the key of the target S-eNB to process the received data packet and subsequent data The packet is decoded.

或者,UE接收到数据包后,若判断出该数据包的PDCP SN小于目的S-eNB发送给UE的第一个新传数据包的PDCP SN时,UE继续用源S-eNB的密钥进行解码。当UE接收到的数据包的PDCP SN大于等于目的S-eNB发送给UE的第一个新传数据包的PDCP SN时,UE更新密钥,采用目的S-eNB的密钥,对接收到的数据包及随后的数据包进行解码。Or, after the UE receives the data packet, if it judges that the PDCP SN of the data packet is smaller than the PDCP SN of the first newly transmitted data packet sent by the target S-eNB to the UE, the UE continues to use the key of the source S-eNB to perform decoding. When the PDCP SN of the data packet received by the UE is greater than or equal to the PDCP SN of the first newly transmitted data packet sent by the target S-eNB to the UE, the UE updates the key and uses the key of the target S-eNB to packet and subsequent packets are decoded.

在本发明的第八实施例中,提供一种移动过程中的数据传输方法,本实施例结合一个具体的应用示例,对本发明的实施过程进行阐述。具体的:In the eighth embodiment of the present invention, a data transmission method during a moving process is provided. This embodiment describes the implementation process of the present invention in conjunction with a specific application example. specific:

如图8所示,本实施例中,新旧两个eNB(即源eNB和目标eNB)都可与某服务节点node相连。UE处于两个eNB和服务节点的重叠覆盖范围内。初始,源eNB和服务节点为UE提供服务,当UE从源eNB移动到目标eNB的过程中,目标eNB和服务节点开始为UE提供服务。为了保证UE的数据不间断,在切换过程中,两个eNB都将数据包发送给服务节点,由服务节点负责将数据包发送给UE。也就是说,在切换过程中,两个eNB都通过服务节点向UE发送数据包,然而,在发送数据包的过程中,会发生源eNB的数据包错误丢失的现象,需要在目标eNB重传,也就是要用目标eNB的密钥重传源eNB的数据包,那么UE就需要及时进行密钥更新。As shown in FIG. 8 , in this embodiment, both the old and new eNBs (namely, the source eNB and the target eNB) can be connected to a service node node. The UE is within the overlapping coverage of two eNBs and a serving node. Initially, the source eNB and the serving node provide services for the UE. When the UE moves from the source eNB to the target eNB, the target eNB and the serving node start to provide services for the UE. In order to ensure uninterrupted data of the UE, during the handover process, both eNBs send data packets to the serving node, and the serving node is responsible for sending the data packets to the UE. That is to say, during the handover process, both eNBs send data packets to the UE through the serving node. However, in the process of sending data packets, the data packets of the source eNB will be lost incorrectly and need to be retransmitted by the target eNB. , that is to use the key of the target eNB to retransmit the data packet of the source eNB, then the UE needs to update the key in time.

本发明实施例中,采用第五实施例所述方式,进行密钥更新判断。下面举例进行说明,假设源eNB发送给UE的最后一个数据包的PDCP SN为4,但是,PDCP SN=4的数据包丢失。继续如图8所示:In the embodiment of the present invention, the method described in the fifth embodiment is adopted to perform key update judgment. The following is an example for illustration, assuming that the PDCP SN of the last data packet sent by the source eNB to the UE is 4, but the data packet with PDCP SN=4 is lost. Continue as shown in Figure 8:

1,源eNB将PDCP SN=4数据包前传给目标eNB,由目标eNB进行重传。1. The source eNB forwards the PDCP SN=4 data packet to the target eNB, and the target eNB retransmits it.

2,为了让UE将密钥更新为目标eNB的密钥,目标eNB会先发送PDCP SN=5的新传数据包。2. In order for the UE to update the key to the key of the target eNB, the target eNB will first send a new data packet with PDCP SN=5.

3,UE接收到目标eNB发送的PDCP SN=5的新传数据包后,由于该数据包的PDCP SN大于4,所以UE进行密钥更新,并利用更新后的密钥对接收到的数据包进行解码,并向服务节点反馈关于PDCP SN=5的数据包的ACK信息,或者反馈status report。3. After the UE receives the newly transmitted data packet with PDCP SN=5 sent by the target eNB, since the PDCP SN of the data packet is greater than 4, the UE performs key update, and uses the updated key to pair the received data packet Perform decoding, and feed back ACK information about the data packet with PDCP SN=5 to the serving node, or feed back a status report.

4,目标eNB接收到服务节点反馈的关于PDCP SN=5的数据包的ACK信息,或者目标eNB接收到UE反馈的status report,确认UE已经接收到PDCP SN=5的新传数据包。4. The target eNB receives the ACK information about the data packet with PDCP SN=5 fed back by the serving node, or the target eNB receives the status report fed back by the UE, and confirms that the UE has received the newly transmitted data packet with PDCP SN=5.

5,目标eNB采用目标eNB的密钥加密源基站的PDCP SN等于4的数据包,然后重传。5. The target eNB uses the key of the target eNB to encrypt the data packet whose PDCP SN of the source base station is equal to 4, and then retransmits it.

6,UE接收到PDCP SN=4的数据包后,仍然采用更新后的密钥进行数据包的解码操作。6. After receiving the data packet with PDCP SN=4, the UE still uses the updated key to decode the data packet.

需要指出的是,本发明实施例中,对于目标eNB要重传的源eNB的数据包,目标eNB需要确定UE的密钥已经更新为目标eNB,然后再重传源eNB的数据包。目标eNB确定UE是否已进行了密钥更新的方法可以是:目标eNB先发送目标eNB的新传数据包,确认UE已经接收到了,则认为UE已经更新密钥了。目标eNB确认UE已经接收到新传数据包的方法可以是:目标eNB的底层给反馈了确认信息,例如:ACK;或者,UE给目标eNB发送了数据包接收情况的信息,例如:status report。It should be pointed out that, in the embodiment of the present invention, for the data packet of the source eNB to be retransmitted by the target eNB, the target eNB needs to determine that the key of the UE has been updated to the target eNB, and then retransmit the data packet of the source eNB. The method for the target eNB to determine whether the key has been updated by the UE may be as follows: the target eNB first sends the new data packet of the target eNB, and confirms that the UE has received it, then it is considered that the UE has updated the key. The method for the target eNB to confirm that the UE has received the newly transmitted data packet may be: the bottom layer of the target eNB feeds back confirmation information, such as: ACK; or, the UE sends information about the reception of the data packet to the target eNB, such as: status report.

在本发明的第九实施例中,提供一种移动过程中的数据传输方法,本实施例的应用场景为:两个基站eNB都可与某服务节点node相连,其中,服务节点可以是基站或者WT等。UE处于两个eNB和服务节点的重叠覆盖范围内。初始,源eNB和服务节点为UE提供服务,当UE从源eNB移动到目标eNB的过程中,目标eNB和服务节点开始为UE提供服务。为了保证UE的数据不间断,在这个过程中,两个eNB都将数据包发送给服务节点,服务节点负责将数据包发送给UE。In the ninth embodiment of the present invention, a data transmission method in the process of moving is provided. The application scenario of this embodiment is: two base stations eNB can be connected to a service node node, wherein the service node can be a base station or WT et al. The UE is within the overlapping coverage of two eNBs and a serving node. Initially, the source eNB and the serving node provide services for the UE. When the UE moves from the source eNB to the target eNB, the target eNB and the serving node start to provide services for the UE. In order to ensure uninterrupted data of the UE, during this process, both eNBs send data packets to the serving node, and the serving node is responsible for sending the data packets to the UE.

为了保证UE能够及时更新密钥,本实施例所述方法的实施过程如下:In order to ensure that the UE can update the key in time, the implementation process of the method described in this embodiment is as follows:

步骤1,源eNB检测到目标终端满足切换到目标eNB的条件时,向目标eNB发送切换请求消息。其中,切换消息中携带密钥更新指示信息;该密钥更新指示信息为用于指示密钥更新的携带在数据包中的标识信息end maker。Step 1, when the source eNB detects that the target terminal meets the conditions for handover to the target eNB, it sends a handover request message to the target eNB. Wherein, the key update instruction information is carried in the switching message; the key update instruction information is the identification information end maker carried in the data packet for indicating the key update.

步骤2,目标eNB接受后,回复切换确认消息,该切换确认消息会携带源eNB发送给UE的密钥更新指示信息。Step 2: After the target eNB accepts it, it replies with a handover confirmation message, and the handover confirmation message will carry the key update instruction information sent by the source eNB to the UE.

步骤3,源eNB给UE发送RRC重配消息,指示UE发生切换。其中,RRC重配消息中携带源eNB发送给UE的密钥更新指示信息。Step 3, the source eNB sends an RRC reconfiguration message to the UE, instructing the UE to perform handover. Wherein, the RRC reconfiguration message carries key update indication information sent by the source eNB to the UE.

步骤4,UE接收到RRC重配消息后,从该RRC重配消息中得到源eNB发送给UE的密钥更新指示信息;Step 4, after the UE receives the RRC reconfiguration message, it obtains the key update instruction information sent by the source eNB to the UE from the RRC reconfiguration message;

步骤5,目标eNB在UE接入本基站后,目标eNB在向UE发送的首包的包头中添加endmaker标识信息。Step 5: After the UE accesses the base station, the target eNB adds endmaker identification information to the header of the first packet sent to the UE.

步骤6,UE接收到数据包后,检测数据包中是否携带end maker标识信息,当数据包中携带end maker标识信息时,直接进行密钥更新,采用目的eNB的密钥,对接收到的数据包及随后的数据包进行解码。Step 6. After receiving the data packet, the UE detects whether the end maker identification information is carried in the data packet. When the end maker identification information is carried in the data packet, the key is updated directly, and the key of the target eNB is used to update the received data packet and subsequent packets are decoded.

在本发明的第十实施例中,提供一种移动过程中的数据传输方法,本实施例结合一个具体的应用示例,对本发明的实施过程进行阐述。具体的:In the tenth embodiment of the present invention, a data transmission method during a moving process is provided. This embodiment describes the implementation process of the present invention in conjunction with a specific application example. specific:

本实施例中,新旧两个eNB(即源eNB和目标eNB)都可与某服务节点node相连。UE处于两个eNB和服务节点的重叠覆盖范围内。初始,源eNB和服务节点为UE提供服务,当UE从源eNB移动到目标eNB的过程中,目标eNB和服务节点开始为UE提供服务。为了保证UE的数据不间断,在切换过程中,两个eNB都将数据包发送给服务节点,由服务节点负责将数据包发送给UE。也就是说,在切换过程中,两个eNB都通过服务节点向UE发送数据包,然而,在发送数据包的过程中,会发生源eNB的数据包错误丢失的现象,需要在目标eNB重传,也就是要用目标eNB的密钥重传源eNB的数据包,那么UE就需要及时进行密钥更新。In this embodiment, both the old and new eNBs (namely, the source eNB and the target eNB) can be connected to a certain service node node. The UE is within the overlapping coverage of two eNBs and a serving node. Initially, the source eNB and the serving node provide services for the UE. When the UE moves from the source eNB to the target eNB, the target eNB and the serving node start to provide services for the UE. In order to ensure uninterrupted data of the UE, during the handover process, both eNBs send data packets to the serving node, and the serving node is responsible for sending the data packets to the UE. That is to say, during the handover process, both eNBs send data packets to the UE through the serving node. However, in the process of sending data packets, the data packets of the source eNB will be lost incorrectly and need to be retransmitted by the target eNB. , that is to use the key of the target eNB to retransmit the data packet of the source eNB, then the UE needs to update the key in time.

具体的,本发明实施例所述方法的实施过程如下:Specifically, the implementation process of the method described in the embodiment of the present invention is as follows:

步骤1,源eNB检测到目标终端满足切换到目标eNB的条件时,向目标eNB发送切换请求消息。其中,切换消息中携带密钥更新指示信息;所述密钥更新指示信息包括:用于指示密钥更新的携带在数据包中的标识信息end maker,和用于密钥更新判断的数据包PDCP序列号的阈值信息。其中,阈值信息为:源eNB发送给UE的最后一个数据包的PDCP SN,或者,目标eNB发送给UE的第一个新传数据包的PDCP SN。Step 1, when the source eNB detects that the target terminal meets the conditions for handover to the target eNB, it sends a handover request message to the target eNB. Wherein, the key update instruction information is carried in the handover message; the key update instruction information includes: the identification information end maker carried in the data packet for indicating the key update, and the data packet PDCP for judging the key update Threshold information for serial numbers. Wherein, the threshold information is: the PDCP SN of the last data packet sent by the source eNB to the UE, or the PDCP SN of the first newly transmitted data packet sent by the target eNB to the UE.

步骤2,目标eNB接受后,回复切换确认消息,该切换确认消息会携带源eNB发送给UE的密钥更新指示信息。Step 2: After the target eNB accepts it, it replies with a handover confirmation message, and the handover confirmation message will carry the key update instruction information sent by the source eNB to the UE.

步骤3,源eNB给UE发送RRC重配消息,指示UE发生切换。其中,RRC重配消息中携带源eNB发送给UE的密钥更新指示信息。Step 3, the source eNB sends an RRC reconfiguration message to the UE, instructing the UE to perform handover. Wherein, the RRC reconfiguration message carries key update indication information sent by the source eNB to the UE.

步骤4,UE接收到RRC重配消息后,从该RRC重配消息中得到源eNB发送给UE的密钥更新指示信息;Step 4, after the UE receives the RRC reconfiguration message, it obtains the key update instruction information sent by the source eNB to the UE from the RRC reconfiguration message;

步骤5,目标eNB在UE接入本基站后,开始提供数据服务时,可以先向UE发送源eNB前传过来的重传数据包,再向UE发送本基站的新传数据包,也可以先向UE发送本基站的新传数据包,再向UE发送源eNB前传过来的重传数据包。所以,目标eNB可以在准备发送的第一个重传数据包的包头中添加end maker标识信息,以及根据获取的PDCP序列号的阈值,设置本基站的第一个新传数据包的PDCP序列号。Step 5, when the target eNB starts to provide data services after the UE accesses the base station, it can first send the retransmission data packet transmitted by the source eNB to the UE, and then send the new transmission data packet of the base station to the UE, or first send the data packet to the UE The UE sends the newly transmitted data packet of the base station, and then sends the retransmitted data packet previously transmitted by the source eNB to the UE. Therefore, the target eNB can add end maker identification information to the header of the first retransmission data packet to be sent, and set the PDCP sequence number of the first newly transmitted data packet of the base station according to the obtained PDCP sequence number threshold .

具体的,当PDCP SN的阈值信息为源eNB发送给UE的最后一个数据包的PDCP SN时,目标基站将新传数据包的PDCP SN设为(源eNB发送给UE的最后一个数据包的PDCP SN+1),当PDCP SN的阈值信息为为目标eNB发送给UE的第一个新传数据包的PDCP SN时,目标基站直接以该PDCP SN阈值为新传数据包的PDCP SN。Specifically, when the threshold information of the PDCP SN is the PDCP SN of the last data packet sent by the source eNB to the UE, the target base station sets the PDCP SN of the newly transmitted data packet to (the PDCP SN of the last data packet sent by the source eNB to the UE SN+1), when the PDCP SN threshold information is the PDCP SN of the first newly transmitted data packet sent to the UE by the target eNB, the target base station directly uses the PDCP SN threshold as the PDCP SN of the newly transmitted data packet.

步骤6,UE接收到数据包后,若检测到数据包中携带end maker标识信息,或者,检测到数据包的PDCP SN与用于密钥更新判断的数据包PDCP序列号的阈值的大小关系满足设定的要求,则进行密钥更新。Step 6: After the UE receives the data packet, if it detects that the data packet carries the end maker identification information, or the PDCP SN of the detected data packet and the threshold value of the PDCP sequence number of the data packet used for key update judgment satisfy the If the set requirements are met, the key is updated.

下面举例进行说明,本示例中,设用于密钥更新判断的数据包PDCP序列号的阈值等于源eNB发送给UE的最后一个数据包的PDCP SN,并令源eNB发送给UE的最后一个数据包的PDCP SN为4。假设源eNB向UE发送PDCP SN=4的数据包后数据包丢失,则有如图9所示:The following is an example to illustrate. In this example, the threshold value of the PDCP sequence number of the data packet used for key update judgment is set equal to the PDCP SN of the last data packet sent by the source eNB to the UE, and the last data packet sent by the source eNB to the UE The PDCP SN of the packet is 4. Assuming that the source eNB sends a data packet with PDCP SN=4 to the UE and the data packet is lost, as shown in Figure 9:

步骤1,源eNB将PDCP SN=4的数据包前传给目标eNB,由目标eNB进行重传。Step 1, the source eNB forwards the data packet with PDCP SN=4 to the target eNB, and the target eNB retransmits it.

步骤2,目标eNB在向UE发送本基站的新传数据包之前,为了让UE更新目标eNB的密钥,目标eNB会在PDCP SN=4的数据包头上添加end maker,然后重传;同时,目标eNB将本基站的第一个新传数据包的PDCP SN设为5。Step 2, before the target eNB sends the new data packet of the base station to the UE, in order for the UE to update the key of the target eNB, the target eNB will add an end maker to the packet header of the PDCP SN=4, and then retransmit; at the same time, The target eNB sets the PDCP SN of the first newly transmitted data packet of the base station to 5.

步骤3,UE若接收到了PDCP SN=4的数据包且检测出该数据包头上添加了endmaker,则UE更新密钥,解码该数据包。然而,如果PDCP SN=4且包头中添加了end maker的数据包也丢失了,由于目标eNB的第一个新传数据包的PDCP SN设为5,UE仍然可以根据PDCPSN进行密钥更新的准确判断。Step 3, if the UE receives the data packet with PDCP SN=4 and detects that an endmaker is added to the header of the data packet, the UE updates the key and decodes the data packet. However, if PDCP SN=4 and the data packet with the end maker added in the header is also lost, since the PDCP SN of the first newly transmitted data packet of the target eNB is set to 5, the UE can still accurately update the key according to the PDCPSN judge.

在本发明的第十一实施例中,提供一种终端,如图10所示,包括:In the eleventh embodiment of the present invention, a terminal is provided, as shown in FIG. 10 , including:

信息获取模块1010,用于获取源基站发送的密钥更新指示信息;An information acquisition module 1010, configured to acquire key update instruction information sent by the source base station;

更新判断模块1020,用于在接收到服务节点发送的数据包时,根据所述密钥更新指示信息,进行密钥更新判断;An update judgment module 1020, configured to perform key update judgment according to the key update indication information when receiving the data packet sent by the service node;

第一更新处理模块1030,用于在所述更新判断模块判断出需要密钥更新时,将当前采用的源基站的密钥更新为目标基站的密钥;The first update processing module 1030 is configured to update the currently used key of the source base station to the key of the target base station when the update judging module determines that a key update is required;

第一数据处理模块1040,用于利用更新后的密钥对终端接收到的数据包进行解码。The first data processing module 1040 is configured to use the updated key to decode the data packet received by the terminal.

进一步地,本发明实施例中,信息获取模块,具体用于接收所述源基站发送的RRC重配消息,并在所述RRC重配消息中提取出所述密钥更新指示信息。Further, in the embodiment of the present invention, the information acquisition module is specifically configured to receive the RRC reconfiguration message sent by the source base station, and extract the key update instruction information from the RRC reconfiguration message.

进一步地,本发明实施例中,所述密钥更新指示信息包括:用于密钥更新判断的数据包PDCP序列号的阈值信息,和/或,用于指示密钥更新的携带在数据包中的标识信息。Further, in the embodiment of the present invention, the key update indication information includes: threshold information of the PDCP sequence number of the data packet used for key update judgment, and/or, used to indicate the key update carried in the data packet identification information.

进一步地,本发明实施例中:Further, in the embodiment of the present invention:

当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息时,所述更新判断模块,具体用于检测所述数据包的PDCP序列号与所述用于密钥更新判断的数据包PDCP序列号的阈值间的大小关系是否满足设定的标准,当满足时,判定为需要密钥更新,否则,判定为无需密钥更新;When the key update indication information is the threshold information of the PDCP sequence number of the data packet used for key update judgment, the update judgment module is specifically used to detect the PDCP sequence number of the data packet and the Whether the size relationship between the thresholds of the PDCP serial number of the data packet for key update judgment satisfies the set standard;

当所述密钥更新指示信息为用于指示密钥更新的携带在数据包中的标识信息时,所述更新判断模块,具体用于检测所述数据包的包头中是否携带所述标识信息,当携带所述标识信息时,判定为需要密钥更新,否则,判定为无需密钥更新;When the key update indication information is identification information carried in a data packet for indicating key update, the update judgment module is specifically configured to detect whether the identification information is carried in the packet header of the data packet, When the identification information is carried, it is determined that a key update is required, otherwise, it is determined that a key update is not required;

当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息和用于指示密钥更新的携带在数据包中的标识信息时,所述更新判断模块,具体用于检测所述数据包的PDCP序列号与所述用于密钥更新判断的数据包PDCP序列号的阈值间的大小关系是否满足设定的标准,以及检测所述数据包的包头中是否携带所述标识信息,当任一检测结果为是时,判定为需要密钥更新,否则,判定为无需密钥更新。When the key update indication information is the threshold information of the PDCP sequence number of the data packet used for key update judgment and the identification information carried in the data packet used to indicate the key update, the update judgment module specifically uses To detect whether the size relationship between the PDCP sequence number of the data packet and the threshold value of the PDCP sequence number of the data packet used for key update judgment meets the set standard, and to detect whether the packet header of the data packet carries the The above identification information, when any detection result is yes, it is determined that the key update is required, otherwise, it is determined that the key update is not required.

进一步地,本发明实施例中,所述用于密钥更新判断的数据包PDCP序列号的阈值信息包括:所述源基站发送的最后一个数据包的PDCP序列号信息,或者,所述目标基站发送的第一个新传数据包的PDCP序列号信息;Further, in the embodiment of the present invention, the threshold information of the PDCP sequence number of the data packet used for key update judgment includes: the PDCP sequence number information of the last data packet sent by the source base station, or, the target base station PDCP sequence number information of the first newly transmitted data packet sent;

和/或,所述标识信息包括:end maker。And/or, the identification information includes: end maker.

进一步地,本发明实施例中,当所述用于密钥更新判断的数据包PDCP序列号的阈值信息为所述源基站发送的最后一个数据包的PDCP序列号信息时,所述更新判断模块,具体用于提取接收到的所述数据包的PDCP序列号,将该数据包的PDCP序列号与所述源基站发送的最后一个数据包的PDCP序列号进行比较,当所述数据包的PDCP序列号小于等于所述源基站发送的最后一个数据包的PDCP序列号时,判定为无需密钥更新,否则,判定为需要密钥更新;Further, in the embodiment of the present invention, when the threshold information of the PDCP sequence number of the data packet used for key update judgment is the PDCP sequence number information of the last data packet sent by the source base station, the update judgment module , specifically for extracting the PDCP sequence number of the received data packet, comparing the PDCP sequence number of the data packet with the PDCP sequence number of the last data packet sent by the source base station, when the PDCP sequence number of the data packet is When the sequence number is less than or equal to the PDCP sequence number of the last data packet sent by the source base station, it is determined that no key update is required, otherwise, it is determined that a key update is required;

当所述用于密钥更新判断的数据包PDCP序列号的阈值信息为所述目标基站发送的第一个新传数据包的PDCP序列号信息,所述更新判断模块,具体用于提取接收到的所述数据包的PDCP序列号,并将该数据包的PDCP序列号与所述目标基站发送的第一个新传数据包的PDCP序列号进行比较,当所述数据包的PDCP序列号小于所述目标基站发送的第一个新传数据包的PDCP序列号时,判定为无需密钥更新,否则,判定为需要密钥更新。When the threshold information of the PDCP sequence number of the data packet used for key update judgment is the PDCP sequence number information of the first newly transmitted data packet sent by the target base station, the update judgment module is specifically used to extract the received The PDCP sequence number of the data packet, and compare the PDCP sequence number of the data packet with the PDCP sequence number of the first newly transmitted data packet sent by the target base station, when the PDCP sequence number of the data packet is less than When the PDCP sequence number of the first newly transmitted data packet is sent by the target base station, it is determined that key update is not required; otherwise, it is determined that key update is required.

综上可知,本发明实施例给出了密钥更新的多种判断标准,利用本实施例所述的终端可以根据预先获取的密钥更新指示信息,进行密钥更新判断及密钥更新操作,解决了现有技术中终端在由源基站切换到目标基站后,存在会使用错误的密钥去解码数据包的问题。In summary, the embodiment of the present invention provides various judgment criteria for key update, and the terminal described in this embodiment can perform key update judgment and key update operation according to the pre-acquired key update instruction information, It solves the problem in the prior art that the terminal uses a wrong key to decode the data packet after switching from the source base station to the target base station.

在本发明的第十二实施例中,提供一种源基站,如图11所示,包括:In a twelfth embodiment of the present invention, a source base station is provided, as shown in FIG. 11 , including:

第一信息发送模块1110,用于在检测到目标终端满足切换到目标基站的条件时,向目标基站发送密钥更新指示信息;The first information sending module 1110 is configured to send key update instruction information to the target base station when it is detected that the target terminal meets the conditions for switching to the target base station;

第二信息发送模块1120,用于在所述目标基站确认切换后,向所述目标终端发送密钥更新指示信息;The second information sending module 1120 is configured to send key update instruction information to the target terminal after the target base station confirms the handover;

数据发送模块1130,用于将缓存中的数据包通过服务节点传输给所述目标终端和/或将缓存中的数据包前传给所述目标基站。The data sending module 1130 is configured to transmit the data packet in the buffer to the target terminal through the service node and/or forward the data packet in the buffer to the target base station.

进一步地,本发明实施例中,第一信息发送模块,具体用于在检测到目标终端将要切换到目标基站时,向所述目标基站发送切换请求消息,所述切换请求消息中携带有所述密钥更新指示信息。Further, in the embodiment of the present invention, the first information sending module is specifically configured to send a handover request message to the target base station when it is detected that the target terminal is about to be handed over to the target base station, and the handover request message carries the Key update instructions.

进一步地,本发明实施例中,所述第二信息发送模块,具体用于接收到所述目标基站反馈的切换确认消息后,判定所述目标基站已确认切换,从所述切换确认消息中提取出携带的密钥更新指示信息,向所述目标终端发送提取的所述密钥更新指示信息。Further, in the embodiment of the present invention, the second information sending module is specifically configured to determine that the target base station has confirmed the handover after receiving the handover confirmation message fed back by the target base station, and extract from the handover confirmation message output the carried key update instruction information, and send the extracted key update instruction information to the target terminal.

进一步地,本发明实施例中,所述第二信息发送模块,具体用于向所述目标终端发送RRC重配消息,并在所述RRC重配消息中携带所述密钥更新指示信息。Further, in the embodiment of the present invention, the second information sending module is specifically configured to send an RRC reconfiguration message to the target terminal, and carry the key update instruction information in the RRC reconfiguration message.

进一步地,本发明实施例中,所述密钥更新指示信息包括:用于密钥更新判断的数据包PDCP序列号的阈值信息,和/或,用于指示密钥更新的携带在数据包中的标识信息。Further, in the embodiment of the present invention, the key update indication information includes: threshold information of the PDCP sequence number of the data packet used for key update judgment, and/or, used to indicate the key update carried in the data packet identification information.

进一步地,本发明实施例中,所述用于密钥更新判断的数据包PDCP序列号的阈值信息,包括:所述源基站发送的最后一个数据包的PDCP序列号信息,或者,所述目标基站发送的第一个新传数据包的PDCP序列号信息;Further, in the embodiment of the present invention, the threshold information of the PDCP sequence number of the data packet used for key update judgment includes: the PDCP sequence number information of the last data packet sent by the source base station, or the target PDCP sequence number information of the first newly transmitted data packet sent by the base station;

和/或,所述标识信息包括:end maker。And/or, the identification information includes: end maker.

进一步地,本发明实施例中,当所述源基站和目标基站的类型均为第二基站S-eNB时,所述第一信息发送模块通过主基站M-eNB向所述目标基站发送所述密钥更新指示信息,以及所述第二信息发送模块通过M-eNB向所述目标终端发送所述密钥更新指示信息。Further, in the embodiment of the present invention, when the types of the source base station and the target base station are both the second base station S-eNB, the first information sending module sends the Key update instruction information, and the second information sending module sends the key update instruction information to the target terminal through the M-eNB.

综上可知,利用本实施例所述的源基站,将用于辅助终端进行密钥更新判断的密钥更新指示信息发送到目标基站和目标终端,使得目标基站根据该密钥更新指示信息,对发送至目标终端的数据包进行处理,以及使得目标终端在接收到数据包时,可以根据接收到的密钥更新指示信息,进行密钥更新判断。可见,利用本实施例所述源基站与利用第十一实施例所述的终端相配合,可以使得终端在由源基站切换到目标基站后,避免使用错误的密钥去解码数据包。In summary, using the source base station described in this embodiment, the key update instruction information used to assist the terminal in key update judgment is sent to the target base station and the target terminal, so that the target base station can, according to the key update instruction information, The data packet sent to the target terminal is processed, and when receiving the data packet, the target terminal can make a key update judgment according to the received key update instruction information. It can be seen that the combination of the source base station described in this embodiment and the terminal described in the eleventh embodiment can prevent the terminal from using a wrong key to decode data packets after switching from the source base station to the target base station.

在本发明的第十三实施例中,提供一种目标基站,如图12所示,包括:In a thirteenth embodiment of the present invention, a target base station is provided, as shown in FIG. 12 , including:

信息接收模块1210,用于接收源基站发送的密钥更新指示信息;An information receiving module 1210, configured to receive key update instruction information sent by the source base station;

第一处理模块1220,用于在目标终端从所述源基站切入本基站后,根据所述密钥更新指示信息,对向所述目标终端发送的首包进行处理;The first processing module 1220 is configured to process the first packet sent to the target terminal according to the key update instruction information after the target terminal switches into the base station from the source base station;

第一发送模块1230,用于将所述第一处理模块处理后的首包通过服务节点向所述目标终端发送。The first sending module 1230 is configured to send the first packet processed by the first processing module to the target terminal through the service node.

进一步地,本发明实施例中,信息接收模块,具体用于接收所述源基站发送的切换请求消息,并从所述切换请求消息中提取出所述密钥更新指示信息。Further, in the embodiment of the present invention, the information receiving module is specifically configured to receive the handover request message sent by the source base station, and extract the key update instruction information from the handover request message.

进一步地,本发明实施例中,信息接收模块,还用于在接收到所述源基站发送的切换请求消息后,当允许所述目标终端接入时,向所述源基站发送切换确认消息,所述切换确认消息中携带有源基站需向目标终端发送的密钥更新指示信息。Further, in the embodiment of the present invention, the information receiving module is further configured to send a handover confirmation message to the source base station when the target terminal is allowed to access after receiving the handover request message sent by the source base station, The handover confirmation message carries key update instruction information that the active base station needs to send to the target terminal.

进一步地,本发明实施例中,所述的密钥更新指示信息包括:用于密钥更新判断的数据包PDCP序列号的阈值信息,和/或,用于指示密钥更新的携带在数据包中的标识信息。Further, in the embodiment of the present invention, the key update indication information includes: threshold information of the PDCP sequence number of the data packet used for key update judgment, and/or, used to indicate that the key update is carried in the data packet Identification information in .

进一步地,本发明实施例中:Further, in the embodiment of the present invention:

当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息时,所述首包为目标基站的第一个新传数据包;所述第一处理模块,具体用于设置向所述目标终端发送的本基站的第一个新传数据包的PDCP序列号,使得该PDCP序列号大于或等于所述阈值;When the key update indication information is the threshold information of the PDCP sequence number of the data packet used for key update judgment, the first packet is the first newly transmitted data packet of the target base station; the first processing module, specifically It is used to set the PDCP sequence number of the first newly transmitted data packet of the base station sent to the target terminal, so that the PDCP sequence number is greater than or equal to the threshold;

当所述密钥更新指示信息为用于指示密钥更新的携带在数据包中的标识信息时,所述首包为源基站前传至目标基站的重传数据包或者为目标基站的第一个新传数据包,所述第一处理模块,具体用于在所述首包的包头中携带所述标识信息;When the key update indication information is the identification information carried in the data packet used to indicate the key update, the first packet is the retransmission data packet forwarded by the source base station to the target base station or the first packet of the target base station For a newly transmitted data packet, the first processing module is specifically configured to carry the identification information in the header of the first packet;

当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息和用于指示密钥更新的携带在数据包中的标识信息时,当所述首包为源基站前传至目标基站的重传数据包时,所述第一处理模块,具体用于在所述首包的包头中携带所述标识信息;当所述首包为目标基站的第一个新传数据包时,所述第一处理模块,具体用于设置向所述目标终端发送的本基站的第一个新传数据包的PDCP序列号,使得该PDCP序列号大于或等于所述阈值。When the key update indication information is the threshold information of the PDCP sequence number of the data packet used for key update judgment and the identification information carried in the data packet used to indicate the key update, when the first packet is the source base station When forwarding the retransmission data packet to the target base station, the first processing module is specifically configured to carry the identification information in the header of the first packet; when the first packet is the first newly transmitted data of the target base station When sending a packet, the first processing module is specifically configured to set the PDCP sequence number of the first newly transmitted data packet of the base station sent to the target terminal, so that the PDCP sequence number is greater than or equal to the threshold.

进一步地,本发明实施例中,所述用于密钥更新判断的数据包PDCP序列号的阈值信息,包括:所述源基站发送的最后一个数据包的PDCP序列号信息,或者,所述目标基站发送的第一个新传数据包的PDCP序列号信息;Further, in the embodiment of the present invention, the threshold information of the PDCP sequence number of the data packet used for key update judgment includes: the PDCP sequence number information of the last data packet sent by the source base station, or the target PDCP sequence number information of the first newly transmitted data packet sent by the base station;

和/或,所述标识信息包括:end maker。And/or, the identification information includes: end maker.

进一步地,本发明实施例中,当所述密钥更新指示信息为所述源基站发送的最后一个数据包的PDCP序列号信息时,所述第一处理模块,具体用于将向所述目标终端发送的首包的PDCP序列号设为所述源基站发送的最后一个数据包的PDCP序列号加一;Further, in the embodiment of the present invention, when the key update instruction information is the PDCP sequence number information of the last data packet sent by the source base station, the first processing module is specifically configured to send the key update information to the target The PDCP sequence number of the first packet sent by the terminal is set to the PDCP sequence number of the last data packet sent by the source base station plus one;

当所述密钥更新指示信息为所述目标基站发送的第一个新传数据包的PDCP序列号信息时,所述第一处理模块,具体用于将向所述目标终端发送的首包的PDCP序列号设为所述目标基站发送的第一个新传数据包的PDCP序列号;所述首包为目标基站的第一个新传数据包。When the key update indication information is the PDCP sequence number information of the first newly transmitted data packet sent by the target base station, the first processing module is specifically used to set the first packet to be sent to the target terminal The PDCP sequence number is set as the PDCP sequence number of the first newly transmitted data packet sent by the target base station; the first packet is the first newly transmitted data packet of the target base station.

综上可知,利用本实施例所述的目标基站,在接收到源终端发送的密钥更新指示信息后,对发送给目标终端的首包进行处理,使得已经获取到密钥更新指示的目标终端在接收到首包时,可以准确的进行密钥更新判断。可见,利用本实施例所述的目标基站与利用第十一实施例所述的终端、以及利用第十二实施例所述的源基站相配合,可以使得终端在由源基站切换到目标基站后,避免使用错误的密钥去解码数据包。In summary, using the target base station described in this embodiment, after receiving the key update instruction information sent by the source terminal, it processes the first packet sent to the target terminal, so that the target terminal that has obtained the key update instruction When the first packet is received, the key update judgment can be accurately performed. It can be seen that using the cooperation of the target base station described in this embodiment with the terminal described in the eleventh embodiment and the source base station described in the twelfth embodiment can make the terminal handover from the source base station to the target base station , to avoid using the wrong key to decode the packet.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是其与其他实施例的不同之处。尤其对于装置实施例而言,由于其基本相似与方法实施例,所以,描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on its differences from other embodiments. Especially for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, please refer to the part of the description of the method embodiment.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:ROM、RAM、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: ROM, RAM, disk or CD, etc.

总之,以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。In a word, the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (40)

1.一种移动过程中的数据传输方法,其特征在于,包括:1. A data transmission method in a moving process, characterized in that, comprising: 终端获取源基站发送的密钥更新指示信息;The terminal obtains the key update indication information sent by the source base station; 终端在接收到服务节点发送的数据包时,根据所述密钥更新指示信息,进行密钥更新判断;When receiving the data packet sent by the service node, the terminal performs a key update judgment according to the key update instruction information; 终端在判断出需要密钥更新时,将当前采用的源基站的密钥更新为目标基站的密钥,并利用更新后的密钥对终端接收到的数据包进行解码。When the terminal determines that a key update is needed, it updates the currently used key of the source base station to the key of the target base station, and uses the updated key to decode the data packet received by the terminal. 2.如权利要求1所述的方法,其特征在于,所述终端获取源基站发送的密钥更新指示信息,包括:2. The method according to claim 1, wherein the terminal obtains the key update instruction information sent by the source base station, comprising: 所述终端接收所述源基站发送的无线资源控制RRC重配消息,并在所述RRC重配消息中提取出所述密钥更新指示信息。The terminal receives the radio resource control RRC reconfiguration message sent by the source base station, and extracts the key update indication information from the RRC reconfiguration message. 3.如权利要求1所述的方法,其特征在于,所述密钥更新指示信息包括:用于密钥更新判断的数据包PDCP序列号的阈值信息,和/或,用于指示密钥更新的携带在数据包中的标识信息。3. The method according to claim 1, wherein the key update indication information includes: threshold information of the PDCP sequence number of the data packet used for key update judgment, and/or, used to indicate key update The identification information carried in the data packet. 4.如权利要求3所述的方法,其特征在于,4. The method of claim 3, wherein, 当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息时,所述根据所述密钥更新指示信息,进行密钥更新判断,包括:检测所述数据包的PDCP序列号与所述用于密钥更新判断的数据包PDCP序列号的阈值间的大小关系是否满足设定的标准,当满足时,判定为需要密钥更新,否则,判定为无需密钥更新;When the key update indication information is the threshold information of the PDCP sequence number of the data packet used for key update judgment, the key update judgment according to the key update indication information includes: detecting the data packet Whether the size relationship between the PDCP sequence number of the data packet and the threshold value of the PDCP sequence number used for key update judgment meets the set standard, and when it is satisfied, it is determined that the key update is required; renew; 当所述密钥更新指示信息为用于指示密钥更新的携带在数据包中的标识信息时,所述根据所述密钥更新指示信息,进行密钥更新判断,包括:检测所述数据包的包头中是否携带所述标识信息,当携带所述标识信息时,判定为需要密钥更新,否则,判定为无需密钥更新;When the key update indication information is identification information carried in a data packet for indicating key update, the key update judgment according to the key update indication information includes: detecting the data packet Whether the identification information is carried in the header of the packet, and when the identification information is carried, it is determined that a key update is required; otherwise, it is determined that a key update is not required; 当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息和用于指示密钥更新的携带在数据包中的标识信息时,所述根据所述密钥更新指示信息,进行密钥更新判断,包括:检测所述数据包的PDCP序列号与所述用于密钥更新判断的数据包PDCP序列号的阈值间的大小关系是否满足设定的标准,以及检测所述数据包的包头中是否携带所述标识信息,当任一检测结果为是时,判定为需要密钥更新,否则,判定为无需密钥更新。When the key update indication information is the threshold information of the PDCP sequence number of the data packet used for key update judgment and the identification information carried in the data packet used to indicate the key update, the key update according to the key update Instruction information, to perform key update judgment, including: detecting whether the magnitude relationship between the PDCP sequence number of the data packet and the threshold value of the data packet PDCP sequence number used for key update judgment meets the set standard, and detecting Whether the identification information is carried in the packet header of the data packet, when any detection result is yes, it is determined that key update is required; otherwise, it is determined that key update is not required. 5.如权利要求3或4所述的方法,其特征在于,5. The method of claim 3 or 4, wherein, 所述用于密钥更新判断的数据包PDCP序列号的阈值信息包括:所述源基站发送的最后一个数据包的PDCP序列号信息,或者,所述目标基站发送的第一个新传数据包的PDCP序列号信息;The threshold information of the PDCP sequence number of the data packet used for key update judgment includes: the PDCP sequence number information of the last data packet sent by the source base station, or the first newly transmitted data packet sent by the target base station PDCP serial number information; 和/或,所述标识信息包括:end maker。And/or, the identification information includes: end maker. 6.如权利要求5所述的方法,其特征在于,6. The method of claim 5, wherein, 当用于密钥更新判断的数据包PDCP序列号的阈值信息为所述源基站发送的最后一个数据包的PDCP序列号信息时,所述根据所述密钥更新指示信息,进行密钥更新判断,包括:所述终端提取接收到的所述数据包的PDCP序列号,将该数据包的PDCP序列号与所述源基站发送的最后一个数据包的PDCP序列号进行比较,当所述数据包的PDCP序列号小于等于所述源基站发送的最后一个数据包的PDCP序列号时,判定为无需密钥更新,否则,判定为需要密钥更新;When the threshold information of the PDCP sequence number of the data packet used for the key update judgment is the PDCP sequence number information of the last data packet sent by the source base station, the key update judgment is performed according to the key update instruction information , including: the terminal extracts the PDCP sequence number of the received data packet, compares the PDCP sequence number of the data packet with the PDCP sequence number of the last data packet sent by the source base station, and when the data packet When the PDCP sequence number of the source base station is less than or equal to the PDCP sequence number of the last data packet sent by the source base station, it is determined that no key update is required, otherwise, it is determined that a key update is required; 当用于密钥更新判断的数据包PDCP序列号的阈值信息为所述目标基站发送的第一个新传数据包的PDCP序列号信息时,所述根据所述密钥更新指示信息,进行密钥更新判断,包括:所述终端提取接收到的所述数据包的PDCP序列号,并将该数据包的PDCP序列号与所述目标基站发送的第一个新传数据包的PDCP序列号进行比较,当所述数据包的PDCP序列号小于所述目标基站发送的第一个新传数据包的PDCP序列号时,判定为无需密钥更新,否则,判定为需要密钥更新。When the threshold information of the PDCP sequence number of the data packet used for key update judgment is the PDCP sequence number information of the first newly transmitted data packet sent by the target base station, the encryption is performed according to the key update indication information. The key update judgment includes: the terminal extracts the PDCP sequence number of the received data packet, and compares the PDCP sequence number of the data packet with the PDCP sequence number of the first newly transmitted data packet sent by the target base station In comparison, when the PDCP sequence number of the data packet is smaller than the PDCP sequence number of the first newly transmitted data packet sent by the target base station, it is determined that key update is not required; otherwise, it is determined that key update is required. 7.一种移动过程中的数据传输方法,其特征在于,应用于源基站,所述方法包括:7. A data transmission method in a moving process, characterized in that it is applied to a source base station, and the method comprises: 所述源基站在检测到目标终端满足切换到目标基站的条件时,向所述目标基站发送密钥更新指示信息;When the source base station detects that the target terminal meets the conditions for switching to the target base station, it sends key update instruction information to the target base station; 所述源基站在所述目标基站确认切换后,向所述目标终端发送密钥更新指示信息;The source base station sends key update instruction information to the target terminal after the target base station confirms the handover; 所述源基站将缓存中的数据包通过服务节点传输给所述目标终端和/或将缓存中的数据包前传给所述目标基站。The source base station transmits the data packet in the cache to the target terminal through the serving node and/or forwards the cached data packet to the target base station. 8.如权利要求7所述的方法,其特征在于,所述源基站向所述目标基站发送密钥更新指示信息,包括:所述源基站向所述目标基站发送切换请求消息,所述切换请求消息中携带有所述密钥更新指示信息。8. The method according to claim 7, wherein the source base station sending key update instruction information to the target base station comprises: the source base station sending a handover request message to the target base station, and the handover The request message carries the key update indication information. 9.如权利要求8所述的方法,其特征在于,所述源基站在所述目标基站确认切换后,向所述目标终端发送密钥更新指示信息,包括:9. The method according to claim 8, wherein the source base station sends key update instruction information to the target terminal after the target base station confirms the handover, comprising: 所述源基站接收所述目标基站反馈的切换确认消息,并从所述切换确认消息中提取出携带的密钥更新指示信息,向所述目标终端发送提取的所述密钥更新指示信息。The source base station receives the handover confirmation message fed back by the target base station, extracts key update instruction information carried in the handover confirmation message, and sends the extracted key update instruction information to the target terminal. 10.如权利要求7所述的方法,其特征在于,所述源基站向所述目标终端发送密钥更新指示信息,包括:10. The method according to claim 7, wherein the source base station sends key update instruction information to the target terminal, comprising: 所述源基站向所述目标终端发送RRC重配消息,并在所述RRC重配消息中携带所述密钥更新指示信息。The source base station sends an RRC reconfiguration message to the target terminal, and carries the key update indication information in the RRC reconfiguration message. 11.如权利要求7所述的方法,其特征在于,所述密钥更新指示信息包括:用于密钥更新判断的数据包PDCP序列号的阈值信息,和/或,用于指示密钥更新的携带在数据包中的标识信息。11. The method according to claim 7, wherein the key update indication information includes: threshold information of the PDCP sequence number of the data packet used for key update judgment, and/or, used to indicate key update The identification information carried in the data packet. 12.如权利要求11所述的方法,其特征在于,12. The method of claim 11, wherein, 所述用于密钥更新判断的数据包PDCP序列号的阈值信息,包括:所述源基站发送的最后一个数据包的PDCP序列号信息,或者,所述目标基站发送的第一个新传数据包的PDCP序列号信息;The threshold information of the PDCP sequence number of the data packet used for key update judgment includes: the PDCP sequence number information of the last data packet sent by the source base station, or the first newly transmitted data sent by the target base station PDCP sequence number information of the packet; 和/或,所述标识信息包括:end maker。And/or, the identification information includes: end maker. 13.如权利要求7至12任意一项所述的方法,其特征在于,当所述源基站和目标基站的类型均为第二基站S-eNB时,所述源基站通过主基站M-eNB向所述目标基站发送所述密钥更新指示信息,以及通过M-eNB向所述目标终端发送所述密钥更新指示信息。13. The method according to any one of claims 7 to 12, wherein when the types of the source base station and the target base station are both the second base station S-eNB, the source base station uses the main base station M-eNB Sending the key update instruction information to the target base station, and sending the key update instruction information to the target terminal through the M-eNB. 14.一种移动过程中的数据传输方法,其特征在于,应用于目标基站,所述方法包括:14. A data transmission method in a mobile process, characterized in that it is applied to a target base station, and the method comprises: 所述目标基站接收源基站发送的密钥更新指示信息;The target base station receives the key update instruction information sent by the source base station; 所述目标基站在目标终端从所述源基站切入本基站后,根据所述密钥更新指示信息,对向所述目标终端发送的首包进行处理,并在处理后通过服务节点向所述目标终端发送所述首包。After the target terminal switches into the base station from the source base station, the target base station processes the first packet sent to the target terminal according to the key update instruction information, and sends the target packet to the target terminal through the service node after processing. The terminal sends the first packet. 15.如权利要求14所述的方法,其特征在于,所述目标基站接收源基站发送的密钥更新指示信息,包括:15. The method according to claim 14, wherein the target base station receives the key update instruction information sent by the source base station, comprising: 所述目标基站接收所述源基站发送的切换请求消息,并从所述切换请求消息中提取出所述密钥更新指示信息。The target base station receives the handover request message sent by the source base station, and extracts the key update indication information from the handover request message. 16.如权利要求15所述的方法,其特征在于,所述目标基站在接收到所述源基站发送的切换请求消息后,还包括:16. The method according to claim 15, wherein after the target base station receives the handover request message sent by the source base station, further comprising: 所述目标基站在允许所述目标终端接入时,向所述源基站发送切换确认消息,所述切换确认消息中携带有源基站需向目标终端发送的密钥更新指示信息。When allowing the target terminal to access, the target base station sends a handover confirmation message to the source base station, where the handover confirmation message carries key update instruction information that the active base station needs to send to the target terminal. 17.如权利要求14所述的方法,其特征在于,所述密钥更新指示信息包括:用于密钥更新判断的数据包PDCP序列号的阈值信息,和/或,用于指示密钥更新的携带在数据包中的标识信息。17. The method according to claim 14, wherein the key update indication information includes: threshold information of the PDCP sequence number of the data packet used for key update judgment, and/or, used to indicate key update The identification information carried in the data packet. 18.如权利要求17所述的方法,其特征在于,18. The method of claim 17, wherein, 当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息时,所述首包为目标基站的第一个新传数据包;所述对向所述目标终端发送的首包进行处理,具体包括:设置向所述目标终端发送的本基站的第一个新传数据包的PDCP序列号,使得该PDCP序列号大于或等于所述阈值;When the key update indication information is the threshold information of the PDCP sequence number of the data packet used for key update judgment, the first packet is the first newly transmitted data packet of the target base station; Processing the first packet sent specifically includes: setting the PDCP sequence number of the first newly transmitted data packet of the base station sent to the target terminal, so that the PDCP sequence number is greater than or equal to the threshold; 当所述密钥更新指示信息为用于密钥更新判断的携带在数据包中的标识信息时,所述首包为源基站前传至目标基站的重传数据包或者为目标基站的第一个新传数据包,所述对向所述目标终端发送的首包进行处理,具体包括:在所述首包的包头中携带所述标识信息;When the key update indication information is the identification information carried in the data packet used for key update judgment, the first packet is the retransmission data packet forwarded by the source base station to the target base station or the first packet of the target base station The newly transmitted data packet, the processing of the first packet sent to the target terminal specifically includes: carrying the identification information in the header of the first packet; 当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息和用于密钥更新判断的携带在数据包中的标识信息时,当所述首包为源基站前传至目标基站的重传数据包时,所述对向所述目标终端发送的首包进行处理,具体包括:在所述首包的包头中携带所述标识信息;当所述首包为目标基站的第一个新传数据包时,所述对向所述目标终端发送的首包进行处理,具体包括:设置向所述目标终端发送的本基站的第一个新传数据包的PDCP序列号,使得该PDCP序列号大于或等于所述阈值。When the key update indication information is the threshold information of the PDCP sequence number of the data packet used for key update judgment and the identification information carried in the data packet used for key update judgment, when the first packet is the source base station When forwarding the retransmission data packet to the target base station, the processing the first packet sent to the target terminal specifically includes: carrying the identification information in the header of the first packet; when the first packet is the target When the first newly transmitted data packet of the base station, the processing of the first packet sent to the target terminal specifically includes: setting the PDCP sequence of the first newly transmitted data packet of the base station sent to the target terminal number, so that the PDCP sequence number is greater than or equal to the threshold. 19.如权利要求17或18所述的方法,其特征在于,19. The method of claim 17 or 18, wherein, 所述用于密钥更新判断的数据包PDCP序列号的阈值信息,包括:所述源基站发送的最后一个数据包的PDCP序列号信息,或者,所述目标基站发送的第一个新传数据包的PDCP序列号信息;The threshold information of the PDCP sequence number of the data packet used for key update judgment includes: the PDCP sequence number information of the last data packet sent by the source base station, or the first newly transmitted data sent by the target base station PDCP sequence number information of the packet; 和/或,所述标识信息包括:end maker。And/or, the identification information includes: end maker. 20.如权利要求19所述的方法,其特征在于,所述根据所述密钥更新指示信息,对向所述目标终端发送的首包进行处理,包括:20. The method according to claim 19, wherein the processing the first packet sent to the target terminal according to the key update instruction information comprises: 当所述密钥更新指示信息为所述源基站发送的最后一个数据包的PDCP序列号信息时,将向所述目标终端发送的首包的PDCP序列号设为所述源基站发送的最后一个数据包的PDCP序列号加一;When the key update instruction information is the PDCP sequence number information of the last data packet sent by the source base station, set the PDCP sequence number of the first packet sent to the target terminal as the last packet sent by the source base station The PDCP sequence number of the data packet is increased by one; 当所述密钥更新指示信息为所述目标基站发送的第一个新传数据包的PDCP序列号信息时,将向所述目标终端发送的首包的PDCP序列号设为所述目标基站发送的第一个新传数据包的PDCP序列号;When the key update instruction information is the PDCP sequence number information of the first newly transmitted data packet sent by the target base station, set the PDCP sequence number of the first packet sent to the target terminal as the The PDCP sequence number of the first newly transmitted data packet; 所述首包为目标基站的第一个新传数据包。The first packet is the first newly transmitted data packet of the target base station. 21.一种终端,其特征在于,包括:21. A terminal, characterized in that it comprises: 信息获取模块,用于获取源基站发送的密钥更新指示信息;An information acquisition module, configured to acquire key update instruction information sent by the source base station; 更新判断模块,用于在接收到服务节点发送的数据包时,根据所述密钥更新指示信息,进行密钥更新判断;An update judgment module, configured to perform a key update judgment according to the key update instruction information when receiving the data packet sent by the service node; 第一更新处理模块,用于在所述更新判断模块判断出需要密钥更新时,将当前采用的源基站的密钥更新为目标基站的密钥;A first update processing module, configured to update the currently used key of the source base station to the key of the target base station when the update judging module determines that key updating is required; 第一数据处理模块,用于利用更新后的密钥对终端接收到的数据包进行解码。The first data processing module is configured to use the updated key to decode the data packet received by the terminal. 22.如权利要求21所述的终端,其特征在于,所述信息获取模块,具体用于接收所述源基站发送的RRC重配消息,并在所述RRC重配消息中提取出所述密钥更新指示信息。22. The terminal according to claim 21, wherein the information obtaining module is specifically configured to receive the RRC reconfiguration message sent by the source base station, and extract the encrypted key from the RRC reconfiguration message Key update instructions. 23.如权利要求21所述的终端,其特征在于,所述密钥更新指示信息包括:用于密钥更新判断的数据包PDCP序列号的阈值信息,和/或,用于指示密钥更新的携带在数据包中的标识信息。23. The terminal according to claim 21, wherein the key update instruction information includes: threshold information of the PDCP sequence number of the data packet used for key update judgment, and/or, used to indicate the key update The identification information carried in the data packet. 24.如权利要求23所述的终端,其特征在于,24. The terminal of claim 23, wherein: 当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息时,所述更新判断模块,具体用于检测所述数据包的PDCP序列号与所述用于密钥更新判断的数据包PDCP序列号的阈值间的大小关系是否满足设定的标准,当满足时,判定为需要密钥更新,否则,判定为无需密钥更新;When the key update indication information is the threshold information of the PDCP sequence number of the data packet used for key update judgment, the update judgment module is specifically used to detect the PDCP sequence number of the data packet and the Whether the size relationship between the thresholds of the PDCP serial number of the data packet for key update judgment satisfies the set standard; 当所述密钥更新指示信息为用于指示密钥更新的携带在数据包中的标识信息时,所述更新判断模块,具体用于检测所述数据包的包头中是否携带所述标识信息,当携带所述标识信息时,判定为需要密钥更新,否则,判定为无需密钥更新;When the key update indication information is identification information carried in a data packet for indicating key update, the update judgment module is specifically configured to detect whether the identification information is carried in the packet header of the data packet, When the identification information is carried, it is determined that a key update is required, otherwise, it is determined that a key update is not required; 当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息和用于指示密钥更新的携带在数据包中的标识信息时,所述更新判断模块,具体用于检测所述数据包的PDCP序列号与所述用于密钥更新判断的数据包PDCP序列号的阈值间的大小关系是否满足设定的标准,以及检测所述数据包的包头中是否携带所述标识信息,当任一检测结果为是时,判定为需要密钥更新,否则,判定为无需密钥更新。When the key update indication information is the threshold information of the PDCP sequence number of the data packet used for key update judgment and the identification information carried in the data packet used to indicate the key update, the update judgment module specifically uses To detect whether the size relationship between the PDCP sequence number of the data packet and the threshold value of the PDCP sequence number of the data packet used for key update judgment meets the set standard, and to detect whether the header of the data packet carries the The above identification information, when any detection result is yes, it is determined that the key update is required, otherwise, it is determined that the key update is not required. 25.如权利要求23或24所述的终端,其特征在于,所述用于密钥更新判断的数据包PDCP序列号的阈值信息包括:所述源基站发送的最后一个数据包的PDCP序列号信息,或者,所述目标基站发送的第一个新传数据包的PDCP序列号信息;25. The terminal according to claim 23 or 24, wherein the threshold information of the PDCP sequence number of the data packet used for key update judgment includes: the PDCP sequence number of the last data packet sent by the source base station information, or, the PDCP sequence number information of the first newly transmitted data packet sent by the target base station; 和/或,所述标识信息包括:end maker。And/or, the identification information includes: end maker. 26.如权利要求25所述的终端,其特征在于,26. The terminal of claim 25, wherein: 当所述用于密钥更新判断的数据包PDCP序列号的阈值信息为所述源基站发送的最后一个数据包的PDCP序列号信息时,所述更新判断模块,具体用于提取接收到的所述数据包的PDCP序列号,将该数据包的PDCP序列号与所述源基站发送的最后一个数据包的PDCP序列号进行比较,当所述数据包的PDCP序列号小于等于所述源基站发送的最后一个数据包的PDCP序列号时,判定为无需密钥更新,否则,判定为需要密钥更新;When the threshold information of the PDCP sequence number of the data packet used for key update judgment is the PDCP sequence number information of the last data packet sent by the source base station, the update judgment module is specifically configured to extract the received The PDCP sequence number of the data packet, compare the PDCP sequence number of the data packet with the PDCP sequence number of the last data packet sent by the source base station, when the PDCP sequence number of the data packet is less than or equal to the PDCP sequence number sent by the source base station When the PDCP sequence number of the last data packet of , it is determined that no key update is required, otherwise, it is determined that a key update is required; 当所述用于密钥更新判断的数据包PDCP序列号的阈值信息为所述目标基站发送的第一个新传数据包的PDCP序列号信息,所述更新判断模块,具体用于提取接收到的所述数据包的PDCP序列号,并将该数据包的PDCP序列号与所述目标基站发送的第一个新传数据包的PDCP序列号进行比较,当所述数据包的PDCP序列号小于所述目标基站发送的第一个新传数据包的PDCP序列号时,判定为无需密钥更新,否则,判定为需要密钥更新。When the threshold information of the PDCP sequence number of the data packet used for key update judgment is the PDCP sequence number information of the first newly transmitted data packet sent by the target base station, the update judgment module is specifically used to extract the received The PDCP sequence number of the data packet, and compare the PDCP sequence number of the data packet with the PDCP sequence number of the first newly transmitted data packet sent by the target base station, when the PDCP sequence number of the data packet is less than When the PDCP sequence number of the first newly transmitted data packet is sent by the target base station, it is determined that key update is not required; otherwise, it is determined that key update is required. 27.一种源基站,其特征在于,包括:27. A source base station, comprising: 第一信息发送模块,用于在检测到目标终端满足切换到目标基站的条件时,向目标基站发送密钥更新指示信息;The first information sending module is configured to send key update instruction information to the target base station when it is detected that the target terminal meets the conditions for switching to the target base station; 第二信息发送模块,用于在所述目标基站确认切换后,向所述目标终端发送密钥更新指示信息;A second information sending module, configured to send key update instruction information to the target terminal after the target base station confirms the handover; 数据发送模块,用于将缓存中的数据包通过服务节点传输给所述目标终端和/或将缓存中的数据包前传给所述目标基站。A data sending module, configured to transmit the data packets in the buffer to the target terminal through the serving node and/or forward the data packets in the buffer to the target base station. 28.如权利要求27所述的源基站,其特征在于,所述第一信息发送模块,具体用于在检测到目标终端将要切换到目标基站时,向所述目标基站发送切换请求消息,所述切换请求消息中携带有所述密钥更新指示信息。28. The source base station according to claim 27, wherein the first information sending module is specifically configured to send a handover request message to the target base station when it is detected that the target terminal is about to be handed over to the target base station, the The handover request message carries the key update indication information. 29.如权利要求28所述的源基站,其特征在于,所述第二信息发送模块,具体用于接收到所述目标基站反馈的切换确认消息后,判定所述目标基站已确认切换,从所述切换确认消息中提取出携带的密钥更新指示信息,向所述目标终端发送提取的所述密钥更新指示信息。29. The source base station according to claim 28, wherein the second information sending module is specifically configured to determine that the target base station has confirmed the handover after receiving the handover confirmation message fed back by the target base station, and from Extracting the carried key update instruction information from the handover confirmation message, and sending the extracted key update instruction information to the target terminal. 30.如权利要求27所述的源基站,其特征在于,所述第二信息发送模块,具体用于向所述目标终端发送RRC重配消息,并在所述RRC重配消息中携带所述密钥更新指示信息。30. The source base station according to claim 27, wherein the second information sending module is specifically configured to send an RRC reconfiguration message to the target terminal, and carry the RRC reconfiguration message in the RRC reconfiguration message Key update instructions. 31.如权利要求27所述的源基站,其特征在于,所述密钥更新指示信息包括:用于密钥更新判断的数据包PDCP序列号的阈值信息,和/或,用于指示密钥更新的携带在数据包中的标识信息。31. The source base station according to claim 27, wherein the key update indication information includes: threshold information of the PDCP sequence number of the data packet used for key update judgment, and/or, used to indicate key update The updated identification information carried in the data packet. 32.如权利要求31所述的源基站,其特征在于,所述用于密钥更新判断的数据包PDCP序列号的阈值信息,包括:所述源基站发送的最后一个数据包的PDCP序列号信息,或者,所述目标基站发送的第一个新传数据包的PDCP序列号信息;32. The source base station according to claim 31, wherein the threshold information of the PDCP sequence number of the data packet used for key update judgment includes: the PDCP sequence number of the last data packet sent by the source base station information, or, the PDCP sequence number information of the first newly transmitted data packet sent by the target base station; 和/或,所述标识信息包括:end maker。And/or, the identification information includes: end maker. 33.如权利要求27至32任意一项所述的源基站,其特征在于,当所述源基站和目标基站的类型均为第二基站S-eNB时,所述第一信息发送模块通过主基站M-eNB向所述目标基站发送所述密钥更新指示信息,以及所述第二信息发送模块通过M-eNB向所述目标终端发送所述密钥更新指示信息。33. The source base station according to any one of claims 27 to 32, wherein when the types of the source base station and the target base station are both the second base station S-eNB, the first information sending module passes the main The base station M-eNB sends the key update instruction information to the target base station, and the second information sending module sends the key update instruction information to the target terminal through the M-eNB. 34.一种目标基站,其特征在于,包括:34. A target base station, comprising: 信息接收模块,用于接收源基站发送的密钥更新指示信息;An information receiving module, configured to receive key update instruction information sent by the source base station; 第一处理模块,用于在目标终端从所述源基站切入本基站后,根据所述密钥更新指示信息,对向所述目标终端发送的首包进行处理;The first processing module is configured to process the first packet sent to the target terminal according to the key update instruction information after the target terminal switches into the base station from the source base station; 第一发送模块,用于将所述第一处理模块处理后的首包通过服务节点向所述目标终端发送。The first sending module is configured to send the first packet processed by the first processing module to the target terminal through the service node. 35.如权利要求34所述的目标基站,其特征在于,所述信息接收模块,具体用于接收所述源基站发送的切换请求消息,并从所述切换请求消息中提取出所述密钥更新指示信息。35. The target base station according to claim 34, wherein the information receiving module is specifically configured to receive a handover request message sent by the source base station, and extract the key from the handover request message Update instructions. 36.如权利要求35所述的目标基站,其特征在于,所述信息接收模块,还用于在接收到所述源基站发送的切换请求消息后,当允许所述目标终端接入时,向所述源基站发送切换确认消息,所述切换确认消息中携带有源基站需向目标终端发送的密钥更新指示信息。36. The target base station according to claim 35, wherein the information receiving module is further configured to, when the target terminal is allowed to access after receiving the handover request message sent by the source base station, send The source base station sends a handover confirmation message, and the handover confirmation message carries key update instruction information that the active base station needs to send to the target terminal. 37.如权利要求34所述的目标基站,其特征在于,所述密钥更新指示信息包括:用于密钥更新判断的数据包PDCP序列号的阈值信息,和/或,用于指示密钥更新的携带在数据包中的标识信息。37. The target base station according to claim 34, wherein the key update indication information includes: threshold information of the PDCP sequence number of the data packet used for key update judgment, and/or, used to indicate key update The updated identification information carried in the data packet. 38.如权利要求37所述的目标基站,其特征在于,38. The target base station of claim 37, wherein: 当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息时,所述首包为目标基站的第一个新传数据包;所述第一处理模块,具体用于设置向所述目标终端发送的本基站的第一个新传数据包的PDCP序列号,使得该PDCP序列号大于或等于所述阈值;When the key update indication information is the threshold information of the PDCP sequence number of the data packet used for key update judgment, the first packet is the first newly transmitted data packet of the target base station; the first processing module, specifically It is used to set the PDCP sequence number of the first newly transmitted data packet of the base station sent to the target terminal, so that the PDCP sequence number is greater than or equal to the threshold; 当所述密钥更新指示信息为用于指示密钥更新的携带在数据包中的标识信息时,所述首包为源基站前传至目标基站的重传数据包或者为目标基站的第一个新传数据包,所述第一处理模块,具体用于在所述首包的包头中携带所述标识信息;When the key update indication information is the identification information carried in the data packet used to indicate the key update, the first packet is the retransmission data packet forwarded by the source base station to the target base station or the first packet of the target base station For a newly transmitted data packet, the first processing module is specifically configured to carry the identification information in the header of the first packet; 当所述密钥更新指示信息为用于密钥更新判断的数据包PDCP序列号的阈值信息和用于指示密钥更新的携带在数据包中的标识信息时,当所述首包为源基站前传至目标基站的重传数据包时,所述第一处理模块,具体用于在所述首包的包头中携带所述标识信息;当所述首包为目标基站的第一个新传数据包时,所述第一处理模块,具体用于设置向所述目标终端发送的本基站的第一个新传数据包的PDCP序列号,使得该PDCP序列号大于或等于所述阈值。When the key update indication information is the threshold information of the PDCP sequence number of the data packet used for key update judgment and the identification information carried in the data packet used to indicate the key update, when the first packet is the source base station When forwarding the retransmission data packet to the target base station, the first processing module is specifically configured to carry the identification information in the header of the first packet; when the first packet is the first newly transmitted data of the target base station When sending a packet, the first processing module is specifically configured to set the PDCP sequence number of the first newly transmitted data packet of the base station sent to the target terminal, so that the PDCP sequence number is greater than or equal to the threshold. 39.如权利要求37或38所述的目标基站,其特征在于,所述用于密钥更新判断的数据包PDCP序列号的阈值信息,包括:所述源基站发送的最后一个数据包的PDCP序列号信息,或者,所述目标基站发送的第一个新传数据包的PDCP序列号信息;39. The target base station according to claim 37 or 38, wherein the threshold information of the PDCP sequence number of the data packet used for key update judgment includes: the PDCP sequence number of the last data packet sent by the source base station Sequence number information, or, PDCP sequence number information of the first newly transmitted data packet sent by the target base station; 和/或,所述标识信息包括:end maker。And/or, the identification information includes: end maker. 40.如权利要求39所述的目标基站,其特征在于,40. The target base station of claim 39, wherein: 当所述密钥更新指示信息为所述源基站发送的最后一个数据包的PDCP序列号信息时,所述第一处理模块,具体用于将向所述目标终端发送的首包的PDCP序列号设为所述源基站发送的最后一个数据包的PDCP序列号加一;When the key update instruction information is the PDCP sequence number information of the last data packet sent by the source base station, the first processing module is specifically configured to use the PDCP sequence number of the first packet to be sent to the target terminal Set to add one to the PDCP sequence number of the last data packet sent by the source base station; 当所述密钥更新指示信息为所述目标基站发送的第一个新传数据包的PDCP序列号信息时,所述第一处理模块,具体用于将向所述目标终端发送的首包的PDCP序列号设为所述目标基站发送的第一个新传数据包的PDCP序列号;所述首包为目标基站的第一个新传数据包。When the key update indication information is the PDCP sequence number information of the first newly transmitted data packet sent by the target base station, the first processing module is specifically used to set the first packet to be sent to the target terminal The PDCP sequence number is set as the PDCP sequence number of the first newly transmitted data packet sent by the target base station; the first packet is the first newly transmitted data packet of the target base station.
CN201710009529.3A 2017-01-06 2017-01-06 Method, terminal and the base station of data transmission in moving process Pending CN108282781A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710009529.3A CN108282781A (en) 2017-01-06 2017-01-06 Method, terminal and the base station of data transmission in moving process
PCT/CN2017/117884 WO2018126905A1 (en) 2017-01-06 2017-12-22 Data transmission method during process of movement, and terminal and base station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710009529.3A CN108282781A (en) 2017-01-06 2017-01-06 Method, terminal and the base station of data transmission in moving process

Publications (1)

Publication Number Publication Date
CN108282781A true CN108282781A (en) 2018-07-13

Family

ID=62791321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710009529.3A Pending CN108282781A (en) 2017-01-06 2017-01-06 Method, terminal and the base station of data transmission in moving process

Country Status (2)

Country Link
CN (1) CN108282781A (en)
WO (1) WO2018126905A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021023088A1 (en) * 2019-08-05 2021-02-11 华为技术有限公司 Data transmission method and device
WO2021031015A1 (en) * 2019-08-16 2021-02-25 华为技术有限公司 Communication method, device and system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385276B (en) * 2018-12-29 2022-11-01 中兴通讯股份有限公司 Data transmission method, data transmission system, and transmitting device and receiving device thereof
EP4226679A4 (en) * 2020-10-21 2024-04-03 Samsung Electronics Co., Ltd. Method and device for multicast transmission

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002025861A1 (en) * 2000-09-20 2002-03-28 The University Of Maryland Dynamic key management architecture for ensuring conditional access to secure multimedia multicast
US20080039096A1 (en) * 2006-03-28 2008-02-14 Nokia Corporation Apparatus, method and computer program product providing secure distributed HO signaling for 3.9G with secure U-plane location update from source eNB
CN101682931A (en) * 2008-04-30 2010-03-24 联发科技股份有限公司 Method for generating traffic encryption key
CN102065427A (en) * 2010-12-28 2011-05-18 广州杰赛科技股份有限公司 Method for safely switching user terminal in wireless metropolitan area network
CN102238541A (en) * 2010-04-29 2011-11-09 电信科学技术研究院 Key updating method and base station
US20120003962A1 (en) * 2009-03-06 2012-01-05 Ajou University Industry-Academic Cooperation Foundation Group handover method and apparatus in broadband wireless communication system that supports mobile relay station
CN102740289A (en) * 2012-06-15 2012-10-17 电信科学技术研究院 Method, device and system for key updating
CN102893548A (en) * 2010-04-01 2013-01-23 瑞典爱立信有限公司 Methods and devices for controlling the deactivation of transmission carriers
CN103686708A (en) * 2012-09-13 2014-03-26 电信科学技术研究院 Key isolation method and device
CN105162794A (en) * 2015-09-23 2015-12-16 北京汉柏科技有限公司 Method and apparatus for updating IPSEC key in appointed mode

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4465015B2 (en) * 2008-06-20 2010-05-19 株式会社エヌ・ティ・ティ・ドコモ Mobile communication method
WO2010119656A1 (en) * 2009-04-17 2010-10-21 パナソニック株式会社 Wireless communication apparatus
WO2016019586A1 (en) * 2014-08-08 2016-02-11 华为技术有限公司 Encryption keystream element updating device, method and double connection system
US20170245181A1 (en) * 2014-09-19 2017-08-24 Nec Corporation Apparatus for dual connectivity

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002025861A1 (en) * 2000-09-20 2002-03-28 The University Of Maryland Dynamic key management architecture for ensuring conditional access to secure multimedia multicast
US20080039096A1 (en) * 2006-03-28 2008-02-14 Nokia Corporation Apparatus, method and computer program product providing secure distributed HO signaling for 3.9G with secure U-plane location update from source eNB
CN101682931A (en) * 2008-04-30 2010-03-24 联发科技股份有限公司 Method for generating traffic encryption key
US20120003962A1 (en) * 2009-03-06 2012-01-05 Ajou University Industry-Academic Cooperation Foundation Group handover method and apparatus in broadband wireless communication system that supports mobile relay station
CN102893548A (en) * 2010-04-01 2013-01-23 瑞典爱立信有限公司 Methods and devices for controlling the deactivation of transmission carriers
CN102238541A (en) * 2010-04-29 2011-11-09 电信科学技术研究院 Key updating method and base station
CN102065427A (en) * 2010-12-28 2011-05-18 广州杰赛科技股份有限公司 Method for safely switching user terminal in wireless metropolitan area network
CN102740289A (en) * 2012-06-15 2012-10-17 电信科学技术研究院 Method, device and system for key updating
CN103686708A (en) * 2012-09-13 2014-03-26 电信科学技术研究院 Key isolation method and device
CN105162794A (en) * 2015-09-23 2015-12-16 北京汉柏科技有限公司 Method and apparatus for updating IPSEC key in appointed mode

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨寅春等: "基于单向哈希链的无线传感器网络安全LEACH路由协议", 《计算机工程与设计》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021023088A1 (en) * 2019-08-05 2021-02-11 华为技术有限公司 Data transmission method and device
WO2021031015A1 (en) * 2019-08-16 2021-02-25 华为技术有限公司 Communication method, device and system

Also Published As

Publication number Publication date
WO2018126905A1 (en) 2018-07-12

Similar Documents

Publication Publication Date Title
US11617115B2 (en) Method and eNB equipment for supporting seamless handover
CN112738858B (en) Method and device for handover
KR101550464B1 (en) Mobile communication system and its handover procedure processing method
KR101667507B1 (en) Method, apparatus and system for controlling data transmission
EP3614733B1 (en) Handover methods and access network devices
KR101387475B1 (en) method of processing data in mobile communication system having a plurality of network entities
US8611304B2 (en) Method, system and base station for transmitting data during cell handover
US20110149905A1 (en) HANDOVER METHOD BETWEEN eNBs IN MOBILE COMMUNICATION SYSTEM
JP2013513988A (en) Relay handover control
KR101233171B1 (en) method of transmitting and receiving control information in wireless network
KR100892212B1 (en) Wireless communication system, wireless base station, and wireless communication control method
WO2013170789A1 (en) Data-forwarding method, apparatus and communications system
KR101371240B1 (en) Handover method and apparatus in a wireless telecommunications network
KR20100071980A (en) Handover method and apparatus in a wireless telecommunications network
CN108282781A (en) Method, terminal and the base station of data transmission in moving process
US20090046662A1 (en) Handover Method and apparatus in a wireless telecommunications network
US20240056901A1 (en) Method and apparatus for multicast and broadcast services
WO2020061871A1 (en) Communication method and communication apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180713

RJ01 Rejection of invention patent application after publication