Movatterモバイル変換


[0]ホーム

URL:


CN114079981B - Network equipment switching method and network equipment - Google Patents

Network equipment switching method and network equipment
Download PDF

Info

Publication number
CN114079981B
CN114079981BCN202010783544.5ACN202010783544ACN114079981BCN 114079981 BCN114079981 BCN 114079981BCN 202010783544 ACN202010783544 ACN 202010783544ACN 114079981 BCN114079981 BCN 114079981B
Authority
CN
China
Prior art keywords
network device
terminal
request message
address
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.)
Active
Application number
CN202010783544.5A
Other languages
Chinese (zh)
Other versions
CN114079981A (en
Inventor
孙立新
李娜
孙玉飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baicells Technologies Co Ltd
Original Assignee
Baicells Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Baicells Technologies Co LtdfiledCriticalBaicells Technologies Co Ltd
Priority to CN202010783544.5ApriorityCriticalpatent/CN114079981B/en
Publication of CN114079981ApublicationCriticalpatent/CN114079981A/en
Application grantedgrantedCritical
Publication of CN114079981BpublicationCriticalpatent/CN114079981B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention provides a network device switching method and network device. The method is applied to a first network device and comprises the following steps: acquiring a network equipment switching request message aiming at a terminal; according to the network equipment switching request message, an address resolution protocol ARP updating request is sent to an NAT gateway; the update request includes: the updated media access control MAC address corresponding to the original IP address of the terminal, or the mapping relation between the updated IP address of the terminal and the public network IP. Based on the mapping rule of the NAT gateway, the embodiment of the invention realizes the switching between core networks, namely the switching of a session anchor point SGW, by updating the mapping table of the IP and the MAC in the NAT gateway or the mapping table of the private network IP and the public network IP during switching, thereby realizing uninterrupted service and overcoming the problem that the network switching can be completed only by interrupting the service due to the change of the core network.

Description

Translated fromChinese
一种网络设备切换方法及网络设备A network device switching method and network device

技术领域Technical field

本发明涉及通信技术领域,尤其涉及一种网络设备切换方法及网络设备。The present invention relates to the field of communication technology, and in particular, to a network device switching method and network device.

背景技术Background technique

移动通信网络由基站及核心网组成,例如HaloB设备,是一种聚集了轻量核心网能力的基站,即将核心网能力与基站能力都本地化,除了提供基站的能力外,还提供必要的核心网能力,如用户设备的附着、信令传输和控制等。由于基站与核心网都部署在同一个设备上,默认每个设备上的eNB都与本设备上的移动管理功能(Mobility Management Entity,MME)实体进行交互,与本设备的服务网关(Serving GateWay,SGW)建立承载,为用户设备(User Equipment,UE)提供连接服务。当UE从一个HaloB设备移动到另外一个HaloB设备时,会出现会话锚点的切换,即中断当前的业务,进行重新附着连接。Mobile communication networks are composed of base stations and core networks. For example, HaloB equipment is a base station that aggregates lightweight core network capabilities. It localizes both core network capabilities and base station capabilities. In addition to providing base station capabilities, it also provides necessary core Network capabilities, such as user equipment attachment, signaling transmission and control, etc. Since the base station and the core network are deployed on the same device, by default the eNB on each device interacts with the Mobility Management Entity (MME) entity on the device and with the Serving GateWay of the device. SGW) establishes a bearer and provides connection services for user equipment (User Equipment, UE). When the UE moves from one HaloB device to another HaloB device, the session anchor point will be switched, that is, the current service will be interrupted and the connection will be reattached.

发明内容Contents of the invention

本发明提供一种网络设备切换方法及网络设备,以解决网络设备切换时业务中断的问题。The present invention provides a network equipment switching method and network equipment to solve the problem of service interruption during network equipment switching.

本发明的实施例提供一种网络设备切换方法,包括:Embodiments of the present invention provide a network device switching method, including:

获取针对终端的网络设备切换请求消息;Obtain the network device switching request message for the terminal;

根据所述网络设备切换请求消息,向网络地址解析协议(Network AddressTranslation,NET)网关发送地址解析协议(Address Resolution Protocol,ARP)更新请求;According to the network device switching request message, send an address resolution protocol (Address Resolution Protocol, ARP) update request to a network address resolution protocol (Network Address Translation, NET) gateway;

所述更新请求包括:与终端的原互联网协议(Internet Protocol,IP)地址对应的更新的介质访问控制(Media Access Control,MAC)地址,或者,终端的更新IP地址与公网IP的映射关系。The update request includes: an updated Media Access Control (MAC) address corresponding to the original Internet Protocol (IP) address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP.

可选地,所述获取针对终端的网络设备切换请求消息包括:Optionally, the obtaining the network device switching request message for the terminal includes:

接收第二网络设备发送的切换请求消息,所述切换请求消息包括:所述终端的原传输路径信息;Receive a switching request message sent by the second network device, where the switching request message includes: the original transmission path information of the terminal;

根据所述切换请求消息,生成用于切换的更新的路径信息。According to the handover request message, updated path information for handover is generated.

可选地,所述接收第二网络设备发送的切换请求消息,包括:Optionally, the receiving a handover request message sent by the second network device includes:

接收由第二网络设备的第二基站发送的第一切换请求消息,所述第一切换请求消息包括:第二网络设备的第二MME的地址信息、所述终端的目标承载的第一承载信息以及第一安全信息;Receive a first handover request message sent by the second base station of the second network device, the first handover request message including: address information of the second MME of the second network device, and first bearer information of the target bearer of the terminal. and first safety information;

所述根据所述切换请求消息,生成用于切换的更新的路径信息,包括:Generating updated path information for handover according to the handover request message includes:

根据所述第一切换请求消息生成第二承载信息和第二安全信息;Generate second bearer information and second security information according to the first handover request message;

生成用于切换的S1隧道的下行端点号以及X2隧道的下行端点号。Generate the downstream endpoint number of the S1 tunnel and the downstream endpoint number of the X2 tunnel used for handover.

可选地,所述方法还包括:Optionally, the method also includes:

向所述第二网络设备的第二MME发送终端的上下文获取请求;Send a context acquisition request of the terminal to the second MME of the second network device;

接收所述第二MME发送的终端的上下文消息,所述上下文消息包括:终端的国际移动用户识别码IMSI和终端的第一IP地址。Receive a context message of the terminal sent by the second MME, where the context message includes: the International Mobile Subscriber Identity IMSI of the terminal and the first IP address of the terminal.

可选地,所述方法还包括:Optionally, the method also includes:

向所述第二基站发送第一应答消息,所述第一应答消息包括:所述X2隧道的下行端点号以及所述第二承载信息。Send a first response message to the second base station, where the first response message includes: the downlink endpoint number of the X2 tunnel and the second bearer information.

可选地,所述获取针对终端的网络设备切换请求消息之后,所述方法还包括:Optionally, after obtaining the network device switching request message for the terminal, the method further includes:

根据所述上下文消息、所述S1隧道的下行端点号以及所述第二承载信息,创建所述第一网络设备的第一基站与所述第一网络设备的第一服务网关SGW之间的会话。Create a session between the first base station of the first network device and the first serving gateway SGW of the first network device according to the context message, the downlink endpoint number of the S1 tunnel and the second bearer information. .

可选地,所述获取针对终端的网络设备切换请求消息之后,所述方法还包括:Optionally, after obtaining the network device switching request message for the terminal, the method further includes:

生成S1隧道的上行端点号与S1承载;Generate the upstream endpoint number and S1 bearer of the S1 tunnel;

根据所述上下文消息和所述S1隧道的上行端点号,建立第二承载与S1承载的映射关系。According to the context message and the uplink endpoint number of the S1 tunnel, a mapping relationship between the second bearer and the S1 bearer is established.

可选地,获取针对终端的网络设备切换请求消息之后,所述方法还包括:Optionally, after obtaining the network device switching request message for the terminal, the method further includes:

为所述终端配置第二IP地址;Configure a second IP address for the terminal;

生成S1隧道的上行端点号与S1承载;Generate the upstream endpoint number and S1 bearer of the S1 tunnel;

根据所述上下文消息、所述S1隧道的上行端点号以及所述第二IP地址,建立第二承载与S1承载的映射关系。According to the context message, the uplink endpoint number of the S1 tunnel, and the second IP address, a mapping relationship between the second bearer and the S1 bearer is established.

可选地,所述方法还包括:Optionally, the method also includes:

向终端发送IP地址更新指示,所述IP地址更新指示包括所述第二IP地址。Send an IP address update instruction to the terminal, where the IP address update instruction includes the second IP address.

可选地,所述接收第二网络设备发送的切换请求消息,包括:Optionally, the receiving a handover request message sent by the second network device includes:

接收由第二网络设备的第二MME发送的第二切换请求消息,所述第二切换请求消息包括:终端的上下文消息,所述上下文消息包括:所述终端的目标承载的第一承载信息、第一安全信息、终端的国际移动用户识别码IMSI以及终端的第一IP地址;Receive a second handover request message sent by the second MME of the second network device, the second handover request message including: a context message of the terminal, the context message including: first bearer information of a target bearer of the terminal, The first security information, the terminal’s International Mobile Subscriber Identity IMSI and the terminal’s first IP address;

所述根据所述切换请求消息,生成用于切换的更新的路径信息,包括:Generating updated path information for handover according to the handover request message includes:

根据所述第二切换请求消息生成S1隧道的上行端点号;Generate the uplink endpoint number of the S1 tunnel according to the second handover request message;

根据所述第二切换请求消息和所述S1隧道的上行端点号,生成第二承载信息和第二安全信息;Generate second bearer information and second security information according to the second handover request message and the uplink endpoint number of the S1 tunnel;

生成S1隧道的下行端点号以及X2隧道的下行端点号。Generate the downlink endpoint number of the S1 tunnel and the downlink endpoint number of the X2 tunnel.

可选地,所述方法还包括:Optionally, the method also includes:

根据所述上下文消息以及所述第二承载信息,创建所述第一网络设备的第一基站与所述第一网络设备的第一SGW之间的会话。According to the context message and the second bearer information, a session is created between the first base station of the first network device and the first SGW of the first network device.

可选地,所述方法还包括:Optionally, the method also includes:

向所述第二MME发送第二应答消息,所述第二应答消息包括:所述第二承载信息、第二安全信息、X2隧道的下行端点号以及第一指示消息;Send a second response message to the second MME, where the second response message includes: the second bearer information, second security information, the downlink endpoint number of the X2 tunnel, and the first indication message;

所述第一指示消息用于指示:所述第二网络设备的第二基站与所述第一网络设备的第一基站建立X2隧道,且指示所述第二基站进行X2隧道切换。The first instruction message is used to instruct the second base station of the second network device to establish an X2 tunnel with the first base station of the first network device, and instruct the second base station to perform X2 tunnel switching.

可选地,所述方法还包括:Optionally, the method also includes:

控制所述第一网络设备的第一MME向所述第一网络设备的第一SGW发送承载修改消息,所述承载修改消息携带所述终端的下行隧道标识。The first MME that controls the first network device sends a bearer modification message to the first SGW of the first network device, where the bearer modification message carries the downlink tunnel identifier of the terminal.

可选地,所述根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求,包括:Optionally, sending an Address Resolution Protocol ARP update request to the NAT gateway according to the network device switching request message includes:

向所述NAT网关发送终端的IP地址与MAC的第一映射关系更新请求;Send a first mapping relationship update request between the terminal's IP address and MAC to the NAT gateway;

所述第一映射关系更新请求用于指示:将所述终端的第一IP地址映射的第二网络设备中的第二SGW的MAC地址,更新为所述第一网络设备的第一SGW的MAC地址。The first mapping relationship update request is used to instruct: update the MAC address of the second SGW in the second network device to which the first IP address of the terminal is mapped to the MAC address of the first SGW of the first network device. address.

可选地,所述方法还包括:Optionally, the method also includes:

为所述终端配置第二IP地址;Configuring a second IP address for the terminal;

向终端发送IP地址更新指示,所述IP地址更新指示包括所述第二IP地址。Send an IP address update instruction to the terminal, where the IP address update instruction includes the second IP address.

可选地,所述根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求,包括:Optionally, sending an Address Resolution Protocol ARP update request to the NAT gateway according to the network device switching request message includes:

向所述NAT网关发送终端的IP地址与公网IP的第二映射关系更新请求;Send a second mapping relationship update request between the terminal's IP address and the public network IP to the NAT gateway;

所述第二映射关系更新请求用于指示:将所述终端的第一IP地址与公网IP的映射关系更新为所述第二IP地址与公网IP的映射关系。The second mapping relationship update request is used to instruct: update the mapping relationship between the first IP address of the terminal and the public network IP to the mapping relationship between the second IP address and the public network IP.

可选地,所述方法还包括:Optionally, the method also includes:

向第二网络设备发送释放所述终端的指示消息。Send an instruction message to release the terminal to the second network device.

本发明实施例还提供一种应用于第二网络设备,包括:An embodiment of the present invention also provides a method applied to a second network device, including:

向第一网络设备发送针对终端的网络设备切换请求消息,以使所述第一网络设备根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;Send a network device switching request message for the terminal to the first network device, so that the first network device sends an Address Resolution Protocol ARP update request to the NAT gateway according to the network device switching request message;

所述更新请求包括:终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新的IP地址与公网IP的映射关系。The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP.

可选地,在向第一网络设备发送针对终端的网络设备切换请求消息之前,所述方法还包括:Optionally, before sending a network device switching request message for the terminal to the first network device, the method further includes:

根据操作维护中心(Operation and Maintenance Center,OMC)配置的可切换的通信设备列表选择待切换的目标通信设备,所述目标通信设备为第一通信设备。The target communication device to be switched is selected according to the switchable communication device list configured by the Operation and Maintenance Center (OMC), and the target communication device is the first communication device.

可选地,所述向第一网络设备发送针对终端的网络设备切换请求消息,包括:Optionally, sending a network device switching request message for the terminal to the first network device includes:

向第一网络设备发送切换请求消息,所述切换请求消息包括:所述终端的原传输路径信息,以使所述第一网络设备根据所述切换请求消息,生成用于切换的更新的路径信息。Send a handover request message to the first network device, where the handover request message includes: the original transmission path information of the terminal, so that the first network device generates updated path information for handover according to the handover request message. .

可选地,向第一网络设备发送切换请求消息,包括:Optionally, sending a handover request message to the first network device includes:

通过所述第二网络设备的第二基站向所述第一网络设备发送第一切换请求消息,所述第一切换请求消息包括:第二网络设备的第二MME的地址信息、所述终端的目标承载的第一承载信息以及第一安全信息。A first handover request message is sent to the first network device through the second base station of the second network device. The first handover request message includes: the address information of the second MME of the second network device, the address information of the terminal The first bearer information and the first security information carried by the target.

可选地,所述方法还包括:Optionally, the method also includes:

通过第二MME接收所述第一网络设备发送的终端的上下文获取请求;Receive, through the second MME, the context acquisition request of the terminal sent by the first network device;

向所述第一网络设备发送所述终端的上下文消息,所述上下文消息包括:终端的国际移动用户识别码(International Mobile Subscriber Identity,IMSI)和终端的第一IP地址。Send a context message of the terminal to the first network device, where the context message includes: an International Mobile Subscriber Identity (IMSI) of the terminal and a first IP address of the terminal.

可选地,所述方法还包括:Optionally, the method also includes:

通过所述第二基站接收所述第一网络设备发送的第一应答消息,所述第一应答消息包括:X2隧道的下行端点号以及第二承载信息。The first response message sent by the first network device is received through the second base station, where the first response message includes: the downlink endpoint number of the X2 tunnel and the second bearer information.

可选地,所述向第一网络设备发送切换请求消息,包括:Optionally, sending a handover request message to the first network device includes:

通过所述第二网络设备的第二基站向所述第二网络设备的第二MME发送第二切换请求消息;Send a second handover request message to the second MME of the second network device through the second base station of the second network device;

将所述第二切换请求消息发送至所述第一网络设备,所述第二切换请求消息包括:终端的上下文消息,所述上下文消息包括:所述终端的目标承载的第一承载信息、第一安全信息、终端的国际移动用户识别码IMSI以及终端的第一IP地址。The second handover request message is sent to the first network device, the second handover request message includes: a context message of the terminal, the context message includes: the first bearer information of the target bearer of the terminal, the third 1. Security information, the terminal’s International Mobile Subscriber Identity IMSI and the terminal’s first IP address.

可选地,所述方法还包括:Optionally, the method also includes:

通过所述第二MME接收所述第一网络设备发送的第二应答消息,所述第二应答消息包括:第二承载信息、第二安全信息、X2隧道的下行端点号以及第一指示消息;Receive, through the second MME, a second response message sent by the first network device, where the second response message includes: second bearer information, second security information, the downlink endpoint number of the X2 tunnel, and a first indication message;

将所述第一指示消息发送至所述第二基站;Send the first indication message to the second base station;

所述第一指示消息用于指示:所述第二基站与所述第一网络设备的第一基站建立X2隧道,且指示所述第二基站进行X2隧道切换。The first instruction message is used to instruct the second base station to establish an X2 tunnel with the first base station of the first network device, and instruct the second base station to perform X2 tunnel switching.

可选地,所述方法还包括:Optionally, the method also includes:

接收释放所述终端的指示消息;Receive an instruction message to release the terminal;

根据所述指示消息删除与所述终端的会话。Delete the session with the terminal according to the instruction message.

可选地,在根据所述指示消息删除与所述终端的会话之后,所述方法还包括:Optionally, after deleting the session with the terminal according to the instruction message, the method further includes:

保留不分配所述终端的第一IP地址预设时长。The first IP address of the terminal is not allocated for a preset period of time.

本发明实施例还提供一种网络设备,所述网络设备为第一网络设备,包括:An embodiment of the present invention also provides a network device, where the network device is a first network device, including:

第一获取模块,用于获取针对终端的网络设备切换请求消息;The first acquisition module is used to acquire the network device switching request message for the terminal;

第一发送模块,用于根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;The first sending module is configured to send an address resolution protocol ARP update request to the NAT gateway according to the network device switching request message;

所述更新请求包括:与终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新IP地址与公网IP的映射关系。The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP.

本发明实施例还提供一种网络设备,所述网络设备为第二网络设备,包括:An embodiment of the present invention also provides a network device, where the network device is a second network device, including:

第二发送模块,用于向第一网络设备发送针对终端的网络设备切换请求消息,以使所述第一网络设备根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;The second sending module is configured to send a network device switching request message for the terminal to the first network device, so that the first network device sends an Address Resolution Protocol ARP update request to the NAT gateway according to the network device switching request message;

所述更新请求包括:终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新的IP地址与公网IP的映射关系。The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP.

本发明实施例还提供一种网络设备,所述网络设备为第一网络设备,包括:收发机、存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:An embodiment of the present invention also provides a network device. The network device is a first network device, including: a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor The following steps are performed when executing the computer program:

获取针对终端的网络设备切换请求消息;Obtain the network device switching request message for the terminal;

根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;According to the network device switching request message, send an Address Resolution Protocol ARP update request to the NAT gateway;

所述更新请求包括:与终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新IP地址与公网IP的映射关系。The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP.

本发明实施例还提供一种网络设备,所述网络设备为第二网络设备,包括:收发机、存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:An embodiment of the present invention also provides a network device. The network device is a second network device, including: a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor The following steps are performed when executing the computer program:

向第一网络设备发送针对终端的网络设备切换请求消息,以使所述第一网络设备根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;Send a network device switching request message for the terminal to the first network device, so that the first network device sends an Address Resolution Protocol ARP update request to the NAT gateway according to the network device switching request message;

所述更新请求包括:终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新的IP地址与公网IP的映射关系。The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP.

本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述网络设备之间的切换方法的步骤。Embodiments of the present invention also provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method for switching between network devices are implemented.

本发明的上述技术方案的有益效果是:基于NAT网关的映射规则,在切换时,通过更新NAT网关内IP与MAC的映射表或者私网IP与公网IP的映射表,实现核心网间的切换,即会话锚点SGW的切换,实现业务不中断,克服了因为核心网的更改而必须中断业务才能完成网络切换的问题。The beneficial effects of the above technical solution of the present invention are: based on the mapping rules of the NAT gateway, during handover, the mapping table between IP and MAC or the mapping table between private network IP and public network IP in the NAT gateway is updated to realize the mapping between core networks. Handover, that is, the handover of the session anchor point SGW, achieves non-interruption of services and overcomes the problem that services must be interrupted to complete network switching due to changes in the core network.

附图说明Description of drawings

图1表示HaloB设备的结构示意图;Figure 1 shows the structural diagram of the HaloB device;

图2表示本发明实施例的网络设备之间的切换方法的流程示意图之一;Figure 2 shows one of the schematic flow diagrams of a switching method between network devices according to an embodiment of the present invention;

图3表示本发明实施例的网络设备之间的切换方法的流程示意图之二;Figure 3 shows the second schematic flowchart of a switching method between network devices according to an embodiment of the present invention;

图4表示本发明实施例的网络设备之间的切换方法的流程示意图之三;Figure 4 shows the third schematic flowchart of the switching method between network devices according to the embodiment of the present invention;

图5表示本发明实施例的网络设备之间的切换方法的流程示意图之四;Figure 5 shows the fourth schematic flowchart of the switching method between network devices according to the embodiment of the present invention;

图6表示本发明实施例的网络设备之间的切换方法的流程示意图之五;Figure 6 shows the fifth schematic flowchart of the switching method between network devices according to the embodiment of the present invention;

图7表示本发明实施例的网络设备之间的切换方法的流程示意图之六;Figure 7 shows the sixth schematic flowchart of the switching method between network devices according to the embodiment of the present invention;

图8表示本发明实施例的第一网络设备的模块示意图;Figure 8 shows a schematic module diagram of the first network device according to the embodiment of the present invention;

图9表示本发明实施例的第二网络设备的模块示意图;Figure 9 shows a schematic module diagram of the second network device according to the embodiment of the present invention;

图10表示本发明实施例的第一网络设备的实施结构示意图;Figure 10 shows a schematic structural diagram of the first network device according to the embodiment of the present invention;

图11表示本发明实施例的第二网络设备的实施结构示意图。Figure 11 shows a schematic structural diagram of the second network device according to the embodiment of the present invention.

具体实施方式Detailed ways

为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。在下面的描述中,提供诸如具体的配置和组件的特定细节仅仅是为了帮助全面理解本发明的实施例。因此,本领域技术人员应该清楚,可以对这里描述的实施例进行各种改变和修改而不脱离本发明的范围和精神。另外,为了清楚和简洁,省略了对已知功能和构造的描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, a detailed description will be given below with reference to the accompanying drawings and specific embodiments. In the following description, specific details, such as specific configurations and components, are provided solely to assist in a comprehensive understanding of embodiments of the invention. Accordingly, it will be apparent to those skilled in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Additionally, descriptions of known functions and construction are omitted for clarity and conciseness.

应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It will be understood that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic associated with the embodiment is included in at least one embodiment of the invention. Thus, the appearances of "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.

在本发明的各种实施例中,应理解,下述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。In various embodiments of the present invention, it should be understood that the size of the sequence numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be implemented in the present invention. The implementation of the examples does not constitute any limitations.

另外,本文中术语“系统”和“网络”在本文中常可互换使用。Additionally, the terms "system" and "network" are often used interchangeably in this article.

在本申请所提供的实施例中,应理解,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A 确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。In the embodiments provided in this application, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined based on A. However, it should also be understood that determining B based on A does not mean determining B only based on A, and B can also be determined based on A and/or other information.

本发明实施例中,接入网的形式不限,可以是包括宏基站(Macro Base Station)、微基站(Pico Base Station)、Node B(3G移动基站的称呼)、增强型基站(eNB)、家庭增强型基站(Femto eNB或Home eNode B或Home eNB或HeNB)、中继站、接入点、RRU(Remote RadioUnit,远端射频模块)、RRH(Remote Radio Head,射频拉远头)等的接入网。用户终端可以是移动电话(或手机),或者其他能够发送或接收无线信号的设备,包括用户设备、个人数字助理(PDA)、无线调制解调器、无线通信装置、手持装置、膝上型计算机、无绳电话、无线本地回路(WLL)站、能够将移动信号转换为WiFi信号的CPE(Customer Premise Equipment,客户终端)或移动智能热点、智能家电、或其他不通过人的操作就能自发与移动通信网络通信的设备等。In the embodiment of the present invention, the form of the access network is not limited, and may include a macro base station (Macro Base Station), a micro base station (Pico Base Station), a Node B (the name of a 3G mobile base station), an enhanced base station (eNB), Access to home enhanced base stations (Femto eNB or Home eNode B or Home eNB or HeNB), relay stations, access points, RRU (Remote RadioUnit, remote radio frequency module), RRH (Remote Radio Head, radio frequency remote head), etc. net. The user terminal may be a mobile telephone (or handset), or other device capable of transmitting or receiving wireless signals, including user equipment, a personal digital assistant (PDA), a wireless modem, a wireless communications device, a handheld device, a laptop computer, a cordless telephone , wireless local loop (WLL) station, CPE (Customer Premise Equipment, customer terminal) that can convert mobile signals into WiFi signals, or mobile smart hotspots, smart home appliances, or other devices that can spontaneously communicate with mobile communication networks without human operation. equipment, etc.

在进行本发明实施例的说明时,首先对下面描述中所用到的一些概念进行解释说明。When describing the embodiments of the present invention, some concepts used in the following description will first be explained.

HaloB:HaloB:

移动通信网络由基站及核心网组成,如图1。HaloB设备是一种聚集了轻量核心网能力的基站,即将核心网能力与基站能力都本地化,其提供除了基站的能力外,还提供必要的核心网能力,如用户设备的附着、信令传输和控制等。The mobile communication network consists of base stations and core networks, as shown in Figure 1. HaloB equipment is a base station that aggregates lightweight core network capabilities, that is, localizes both core network capabilities and base station capabilities. In addition to the capabilities of the base station, it also provides necessary core network capabilities, such as user equipment attachment and signaling. transmission and control, etc.

初始用户设备附着到HaloB上时,HaloB与远端管理中心交互,获取该设备的签约信息,本地存储,以便该设备再次附着时,实现本地签约数据的验证与授权等,同时还能保证在远端核心网发生故障时,本地已存储签约信息的用户可不受远端核心网影响,正常附着到网络进行通信等。When the initial user device is attached to HaloB, HaloB interacts with the remote management center to obtain the device's contract information and store it locally so that when the device is attached again, it can verify and authorize the local contract data, and at the same time ensure that the device is remotely connected to the device. When the end core network fails, users with locally stored subscription information are not affected by the remote core network and can normally attach to the network for communication, etc.

移动性锚点:Mobility Anchors:

UE在同一个eNB的不同扇区移动(小区内切换),接入的eNB是没有改变的(至少是同一个ID的eNB),此eNB就叫做这种场景下的移动性锚点。When the UE moves in different sectors of the same eNB (intra-cell handover), the accessed eNB does not change (at least the eNB with the same ID). This eNB is called the mobility anchor in this scenario.

UE在同一个MME管辖范围下的不同eNB之间切换(小区间切换),那么接入的eNB发生改变,但是接入服务的MME没有改变,所以,在这种场景下,MME是移动性锚点。When the UE switches between different eNBs under the jurisdiction of the same MME (inter-cell handover), the accessed eNB changes, but the MME accessing the service does not change. Therefore, in this scenario, the MME is the mobility anchor. point.

会话锚点:Session anchor:

PDN网关(PDN GateWay,PGW)是为UE分配IP地址的功能实体,同时也是UE在线期间的会话锚点。UE在不同的eNB、MME间切换时,会话锚点都保持不变,否则将会中断业务。SGW与PGW可以同设为一个实体。在HaloB应用场景中,SGW与PGW统一称为SGW,并在每个HaloB中都存在一个SGW为本HaloB下的UE提供会话锚点。PDN Gateway (PDN GateWay, PGW) is a functional entity that allocates IP addresses to UEs and is also the session anchor when the UE is online. When the UE switches between different eNBs and MMEs, the session anchor point remains unchanged, otherwise the service will be interrupted. SGW and PGW can be set as one entity. In HaloB application scenarios, SGW and PGW are collectively called SGW, and there is an SGW in each HaloB to provide session anchor points for UEs under this HaloB.

切换:Switch:

切换包括基于X2的切换和基于S1的切换。Handover includes X2-based handover and S1-based handover.

X2切换是指两个eNB间存在直接的X2接口,可以通过X2接口将切换时的数据转发给对方,同时要求这两个eNB同属于一个MME管辖下,即两个eNB连接同一个MME。X2 handover means that there is a direct X2 interface between two eNBs, and the data during handover can be forwarded to the other party through the X2 interface. At the same time, the two eNBs are required to be under the jurisdiction of the same MME, that is, the two eNBs are connected to the same MME.

S1切换是指UE在发生切换的两个eNB之间没有X2接口的直连,需要借由eNB与MME间的S1接口,由MME将控制信令进行转发,同时建立非间接的切换转发隧道,将切换数据转发给目标eNB,此场景下,在更改eNB的同时,MME、SGW都可以更改,但PGW不可以改变。S1 handover means that the UE is not directly connected to the X2 interface between the two eNBs where the handover occurs. It needs to use the S1 interface between the eNB and the MME to forward the control signaling and establish a non-indirect handover forwarding tunnel. Forward the handover data to the target eNB. In this scenario, when changing the eNB, both the MME and SGW can be changed, but the PGW cannot be changed.

隧道建立:Tunnel establishment:

移动通信中的演进的分组系统(Evolved Packet System,EPS)承载包括无线侧的承载DRB(Data Radio Bearer,数据无线承载)、eNB与SGW间的S1承载以及SGW与PGW间的S5/S8承载。无线侧承载与S1承载合起来叫做演进的无线接入承载(Evolved Radio AccessBearer,E-RAB)。EPS承载中的承载是一一对应的关系。S1承载与S5/S8承载的建立时基于GTP-U(GPRS Tunnelling Protocol,GPRS隧道传输协议),包括创建承载两端的端点号,联合端点的IP地址,发送给对端,作为隧道的寻址机制。因此隧道建立的基础就是隧道两端点知道对端点的隧道端点标识即标识号(Tunnel Endpoint Identifier,TEID)与IP地址。以下的方案中指提有TEID,但其中默认包含了IP地址信息。The Evolved Packet System (EPS) bearer in mobile communications includes the DRB (Data Radio Bearer, Data Radio Bearer) bearer on the wireless side, the S1 bearer between the eNB and the SGW, and the S5/S8 bearer between the SGW and the PGW. The wireless side bearer and S1 bearer are collectively called Evolved Radio Access Bearer (E-RAB). The bearers in the EPS bearer have a one-to-one correspondence. The establishment of S1 bearer and S5/S8 bearer is based on GTP-U (GPRS Tunnelling Protocol, GPRS Tunneling Protocol), including creating the endpoint numbers of both ends of the bearer, combining the IP addresses of the endpoints, and sending them to the opposite end as the addressing mechanism of the tunnel. . Therefore, the basis for tunnel establishment is that the two endpoints of the tunnel know the tunnel endpoint identifier (Tunnel Endpoint Identifier, TEID) and IP address of the other endpoint. The following scheme refers to TEID, but it includes IP address information by default.

NAT(Network Address Translation,网络地址转换):NAT网关将内部私网IP地址转化为公网IP地址,以解决IP地址受限的问题。NAT (Network Address Translation): NAT gateway converts internal private network IP addresses into public network IP addresses to solve the problem of limited IP addresses.

ARP(Address Resolution Protocol,地址解析协议):ARP (Address Resolution Protocol, Address Resolution Protocol):

地址解析协议,是根据IP地址获取物理地址的一个传输控制协议(TransmissionControl Protocol,TCP)/IP协议。主机发送信息时将包含目标IP地址的ARP请求广播到局域网络上的所有主机,并接收返回消息,以此确定目标的物理地址;收到返回消息后将该IP地址和物理地址存入本机ARP缓存中并保留一定时间,下次请求时直接查询ARP缓存以节约资源。交换机根据存储的IP与MAC映射表,根据收到数据包的IP地址,判定下一跳的MAC地址对应设备,将包转发给此设备。Address resolution protocol is a Transmission Control Protocol (TCP)/IP protocol that obtains a physical address based on an IP address. When the host sends information, it broadcasts the ARP request containing the target IP address to all hosts on the local area network, and receives the return message to determine the physical address of the target; after receiving the return message, the IP address and physical address are stored in the local machine. The ARP cache is kept for a certain period of time, and the ARP cache is directly queried on the next request to save resources. Based on the stored IP and MAC mapping table and the IP address of the received data packet, the switch determines the device corresponding to the MAC address of the next hop and forwards the packet to this device.

如图2所示,本发明的实施例提供了一种网络设备切换方法,应用于第一网络设备,包括:As shown in Figure 2, an embodiment of the present invention provides a network device switching method, which is applied to a first network device and includes:

步骤201、获取针对终端的网络设备切换请求消息。Step 201: Obtain the network device switching request message for the terminal.

所述第一网络设备为终端欲切换的目的网络设备,可以为目的HaloB,包括目的eNB、目的MME、目的SGW。所述网络设备切换请求消息可以由第二网络设备(即终端连接的源网络设备,如源HaloB,包括源eNB、源MME、源SGW)发送,所述网络设备切换请求消息可以携带当前与所述终端连接的第二网络设备的基站、MME、承载等多个消息。所述第一网络设备获取到所述网络设备切换请求消息,认为终端存在切换网络设备的意图。The first network device is a destination network device that the terminal wants to switch to, which may be a destination HaloB, including a destination eNB, a destination MME, and a destination SGW. The network device switching request message may be sent by the second network device (i.e., the source network device to which the terminal is connected, such as the source HaloB, including the source eNB, the source MME, and the source SGW). The network device switching request message may carry the current connection with the source network device. Multiple messages including the base station, MME, and bearer of the second network device connected to the terminal. The first network device obtains the network device switching request message and considers that the terminal has the intention to switch network devices.

其中,OMC为统一的管理系统,为所有的网络设备配置可以进行切换的邻区网络设备列表,当终端进行切换时,源网络设备的eNB或者MME根据OMC配置的可切换的网络设备列表,选择目的网络设备进行切换。Among them, OMC is a unified management system that configures a list of neighbor network devices that can be switched for all network devices. When the terminal switches, the eNB or MME of the source network device selects the switchable network device list based on the OMC configuration. The destination network device is switched.

步骤202、根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;所述更新请求包括:与终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新IP地址与公网IP的映射关系。Step 202: Send an Address Resolution Protocol ARP update request to the NAT gateway according to the network device switching request message; the update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or an update of the terminal Mapping relationship between IP address and public IP.

所述第一网络设备根据所述网络设备切换请求消息,将所述终端与第二网络设备的业务传输切换至所述第一网络设备上,并向NAT网关发送地址解析协议ARP更新请求,更改NAT网关的映射规则。其中,所述更新请求中可以包括:与终端的原IP地址对应的更新的介质访问控制MAC地址,即终端的IP地址保持不变,更改NAT网关内终端IP地址与MAC的映射表,将IP地址对应的源SGW MAC地址更新为目的SGW的MAC;或者,所述更新请求中可以包括:终端的更新IP地址与公网IP的映射关系,即终端的IP地址更改,将更新的IP地址发送至NET网关,更新NET网关中私网IP与公网IP的映射表。The first network device switches the service transmission between the terminal and the second network device to the first network device according to the network device switching request message, and sends an Address Resolution Protocol ARP update request to the NAT gateway to change NAT gateway mapping rules. Wherein, the update request may include: an updated media access control MAC address corresponding to the original IP address of the terminal, that is, the IP address of the terminal remains unchanged, changing the mapping table of the terminal IP address and MAC in the NAT gateway, changing the IP The source SGW MAC address corresponding to the address is updated to the MAC of the destination SGW; or, the update request may include: the mapping relationship between the terminal's updated IP address and the public network IP, that is, the terminal's IP address is changed, and the updated IP address is sent Go to the NET gateway and update the mapping table between private IP and public IP in the NET gateway.

本发明的实施例,基于NAT网关的映射规则,在切换时,通过更新NAT网关内IP与MAC的映射表或者私网IP与公网IP的映射表,实现核心网间的切换,即会话锚点SGW的切换,实现业务不中断,克服了因为核心网的更改而必须中断业务才能完成网络切换的问题。In embodiments of the present invention, based on the mapping rules of the NAT gateway, during handover, the handover between core networks is realized by updating the mapping table between IP and MAC or the mapping table between private network IP and public network IP in the NAT gateway, that is, the session anchor Click SGW switching to achieve non-interruption of services, overcoming the problem that services must be interrupted to complete network switching due to changes in the core network.

可选地,所述获取针对终端的网络设备切换请求消息包括:接收第二网络设备发送的切换请求消息,所述切换请求消息包括:所述终端的原传输路径信息;根据所述切换请求消息,生成用于切换的更新的路径信息。Optionally, the obtaining the network device switching request message for the terminal includes: receiving a switching request message sent by the second network device, where the switching request message includes: the original transmission path information of the terminal; according to the switching request message , to generate updated path information for handover.

该实施例中,所述第二网络设备为终端当前连接的源网络设备。在欲将所述第二网络设备切换至所述第一网络设备时,向所述第一网络设备发送切换请求消息,所述切换请求消息包括终端的原传输路径信息。具体地,所述原传输路径信息可以包括但不限于以下信息:第二网络设备的第二MME的信息:可以是MME的地址信息,也可以是MME的ID信息或者域名信息等;需要切换的承载信息,所述承载信息可以为当前正在承载业务的承载信息,也可以为终端的部分或者全部承载信息;安全信息,例如密钥信息;第二网络设备中的SGW信息等;所述原传输路径信息还可以包括:终端的上下文消息,如:终端的IMSI、IP地址等。In this embodiment, the second network device is the source network device to which the terminal is currently connected. When the second network device is to be switched to the first network device, a switching request message is sent to the first network device, where the switching request message includes the original transmission path information of the terminal. Specifically, the original transmission path information may include but is not limited to the following information: the information of the second MME of the second network device: it may be the address information of the MME, or the ID information or domain name information of the MME, etc.; the information that needs to be switched Bearer information, which may be the bearer information currently carrying the service, or may be part or all of the bearer information of the terminal; security information, such as key information; SGW information in the second network device, etc.; the original transmission The path information may also include: context information of the terminal, such as the terminal's IMSI, IP address, etc.

所述第一网络设备根据所述切换请求消息中携带的消息内容,生成用于切换的更新的路径信息,即生成新的安全信息、承载信息、隧道端点号、终端的新的IP地址等。The first network device generates updated path information for handover based on the message content carried in the handover request message, that is, new security information, bearer information, tunnel endpoint number, new IP address of the terminal, etc.

具体地,在进行网络设备的切换时,可以更改终端的IP地址,也可以不更改终端的IP地址,可以基于X2接口切换,也可以基于X2和S1接口进行切换,下面通过具体实施例进行说明。Specifically, when switching network devices, the IP address of the terminal may or may not be changed. The switching may be based on the X2 interface, or the switching may be based on the X2 and S1 interfaces. The following is explained through specific embodiments. .

方式一:基于X2接口的切换:Method 1: Switching based on X2 interface:

进一步地,所述接收第二网络设备发送的切换请求消息,包括:接收由第二网络设备的第二基站发送的第一切换请求消息,所述第一切换请求消息包括:第二网络设备的第二MME的地址信息、所述终端的目标承载的第一承载信息以及第一安全信息。Further, receiving the handover request message sent by the second network device includes: receiving a first handover request message sent by the second base station of the second network device, where the first handover request message includes: The address information of the second MME, the first bearer information of the target bearer of the terminal, and the first security information.

所述第二MME的地址信息可以为:第二网络设备的MME的地址信息,也可以为MME的ID信息或者域名信息等。所述终端的目标承载是指需要切换的承载,所述第一承载信息是指当前正在承载业务的承载信息,例如:当前UE有承载1、承载2、承载3共3个承载,承载1为默认承载,承载2和承载3为专用承载,此时承载2上有业务正在进行,则第二网络设备的第二基站发送第一切换请求消息时可以只包括承载2的信息需要进行切换,其他的可以不携带。需要说明的是,所述第一切换请求消息也可以包括承载2和承载1的信息进行切换,或者携带3个承载信息进行切换,同时所述第二基站需要具备区分不同承载的能力。所述第一安全信息为携带在所述第二基站发送的第一切换请求消息中的安全信息,可以为空口侧的加密信息,如密钥。The address information of the second MME may be: the address information of the MME of the second network device, or may be the ID information or domain name information of the MME, etc. The target bearer of the terminal refers to the bearer that needs to be switched, and the first bearer information refers to the bearer information that is currently carrying services. For example: the current UE has three bearers, bearer 1, bearer 2, and bearer 3. Bearer 1 is By default, bearer 2 and bearer 3 are dedicated bearers. At this time, there is service on bearer 2. When the second base station of the second network device sends the first handover request message, it can only include the information of bearer 2 that needs to be switched, and other information. You don’t need to carry it. It should be noted that the first handover request message may also include information about bearer 2 and bearer 1 for handover, or carry information about three bearers for handover. At the same time, the second base station needs to have the ability to distinguish different bearers. The first security information is security information carried in the first handover request message sent by the second base station, and may be encrypted information on the air interface side, such as a key.

所述根据所述切换请求消息,生成用于切换的更新的路径信息,包括:根据所述第一切换请求消息生成第二承载信息和第二安全信息;生成用于切换的S1隧道的下行端点号以及X2隧道的下行端点号。Generating updated path information for handover according to the handover request message includes: generating second bearer information and second security information according to the first handover request message; and generating a downlink endpoint of the S1 tunnel for handover. number and the downlink endpoint number of the X2 tunnel.

所述第一网络设备的第一基站接收到所述第一切换请求消息后,根据消息中携带的第一安全信息,生成新的第二安全信息,根据第一切换请求消息中携带的第一承载信息,得知上行路径源SGW的地址(即第二网络设备的第二SGW的地址),同时分配新的无线承载ID或多个ID。所述第一基站同时生成X2和S1隧道的端点号,即X2-TEID与S1-TEID,X2和S1隧道的端点号数与承载数相同。After receiving the first handover request message, the first base station of the first network device generates new second security information according to the first security information carried in the message. The bearer information is used to learn the address of the source SGW of the uplink path (that is, the address of the second SGW of the second network device), and at the same time allocate a new wireless bearer ID or multiple IDs. The first base station simultaneously generates endpoint numbers of X2 and S1 tunnels, that is, X2-TEID and S1-TEID. The number of endpoint numbers of X2 and S1 tunnels is the same as the number of bearers.

该实施例中,两个网络设备间切换时,可以只切换当前正在使用的承载,不使用的承载可以不进行切换;此时需要基站具备识别不同承载的能力,如可识别哪个承载属于当前有业务承载,哪个承载为默认承载等。In this embodiment, when switching between two network devices, only the bearer currently in use can be switched, and the bearer not in use does not need to be switched. At this time, the base station needs to have the ability to identify different bearers. For example, it can identify which bearer belongs to the currently used bearer. Service bearer, which bearer is the default bearer, etc.

所述方法还包括:向所述第二基站发送第一应答消息,所述第一应答消息包括:所述X2隧道的下行端点号以及所述第二承载信息。所述第一基站向所述第二基站发送应答消息,同时携带对应承载的相关信息,以及X2隧道的端点号。The method further includes: sending a first response message to the second base station, where the first response message includes: the downlink endpoint number of the X2 tunnel and the second bearer information. The first base station sends a response message to the second base station, carrying relevant information of the corresponding bearer and the endpoint number of the X2 tunnel.

所述方法还可以包括:向所述第二网络设备的第二MME发送终端的上下文获取请求;接收所述第二MME发送的终端的上下文消息,所述上下文消息包括:终端的国际移动用户识别码IMSI和终端的第一IP地址。The method may further include: sending a context acquisition request of the terminal to the second MME of the second network device; receiving a context message of the terminal sent by the second MME, where the context message includes: the international mobile subscriber identity of the terminal. Code the IMSI and the first IP address of the terminal.

该实施例中,所述第一基站向所述第一MME发送路径切换请求,同时携带需要切换的承载的信息,包括S1隧道的端点号,还可以包括唯一标识所述第二网络设备中的第二MME中的终端的信息,如:第二MME与终端的S1AP的ID信息,以及第二MM的信息。所述第一MME根据第二MME的信息找到所述第二MME,向所述第二MME发送终端的上下文获取请求,携带可以唯一标识此终端上下文的信息,如第二MME与UE的S1AP ID。In this embodiment, the first base station sends a path switching request to the first MME, carrying information about the bearer that needs to be switched, including the endpoint number of the S1 tunnel, and may also include unique identification of the bearer in the second network device. Information about the terminal in the second MME, such as: S1AP ID information between the second MME and the terminal, and information about the second MM. The first MME finds the second MME based on the information of the second MME, and sends a context acquisition request of the terminal to the second MME, carrying information that can uniquely identify the context of the terminal, such as the S1AP ID of the second MME and the UE. .

所述获取针对终端的网络设备切换请求消息之后,所述方法还包括:根据所述上下文消息、所述S1隧道的下行端点号以及所述第二承载信息,创建所述第一网络设备的第一基站与所述第一网络设备的第一SGW之间的会话。After obtaining the network device switching request message for the terminal, the method further includes: creating a third network device of the first network device according to the context message, the downlink endpoint number of the S1 tunnel and the second bearer information. A session between a base station and the first SGW of the first network device.

第二MME将终端的上下文消息发送至所述所述第一MME,所述第一MME接收到所述终端的上下文消息后,向所述第一网络设备的第一SGW发起创建会话的请求,同时携带UE的IMSI、UE的IP地址、所述第一基站分配的S1隧道的下行端点号、第二承载信息以及切换指示等,由所述第一MME发起,创建所述第一基站与所述第一SGW之间的会话。The second MME sends the context message of the terminal to the first MME. After receiving the context message of the terminal, the first MME initiates a request to create a session to the first SGW of the first network device, At the same time, it carries the IMSI of the UE, the IP address of the UE, the downlink endpoint number of the S1 tunnel allocated by the first base station, the second bearer information and the handover instruction, etc., and is initiated by the first MME to create a connection between the first base station and the first base station. session between the first SGW.

所述第一SGW接收到所述网络设备切换请求消息后,可以不再为所述终端分配IP地址,即继续沿用网络设备切换请求消息中的IP地址。可选地,所述方法还包括:生成S1隧道的上行端点号与S1承载;根据所述上下文消息和所述S1隧道的上行端点号,建立第二承载与S1承载的映射关系。After receiving the network device switching request message, the first SGW may no longer allocate an IP address to the terminal, that is, continue to use the IP address in the network device switching request message. Optionally, the method further includes: generating an uplink endpoint number of the S1 tunnel and an S1 bearer; and establishing a mapping relationship between the second bearer and the S1 bearer according to the context message and the uplink endpoint number of the S1 tunnel.

该实施例为UE的IP地址不更改时的实现过程,所述第一SGW生成S1隧道的上行端点号和S1承载(即第一基站与第一SGW之间的承载),S1隧道的上行端点号与承载数相同,由所述第一MME发送至所述第一基站,同时包括终端的IMSI,所述第一基站建立第二承载与S1承载的映射关系,便于所述第一基站将承载与UE进行一一映射。其中,所述第二承载为所述第一基站根据所述第一承载生成的新的无线承载。This embodiment is an implementation process when the IP address of the UE does not change. The first SGW generates the uplink endpoint number of the S1 tunnel and the S1 bearer (that is, the bearer between the first base station and the first SGW). The uplink endpoint of the S1 tunnel The number is the same as the bearer number, and is sent by the first MME to the first base station, and also includes the IMSI of the terminal. The first base station establishes a mapping relationship between the second bearer and the S1 bearer, so that the first base station can transfer the bearer to the first base station. Perform one-to-one mapping with UE. Wherein, the second bearer is a new radio bearer generated by the first base station according to the first bearer.

可选地,所述根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求,包括:向所述NAT网关发送终端的IP地址与MAC的第一映射关系更新请求;所述第一映射关系更新请求用于指示:将所述终端的第一IP地址映射的第二网络设备中的第二SGW的MAC地址,更新为所述第一网络设备的第一SGW的MAC地址。Optionally, sending an address resolution protocol ARP update request to the NAT gateway according to the network device switching request message includes: sending a first mapping relationship update request between the terminal's IP address and MAC to the NAT gateway; The first mapping relationship update request is used to instruct: update the MAC address of the second SGW in the second network device to which the first IP address of the terminal is mapped to the MAC address of the first SGW of the first network device.

所述第一SGW向所述NAT网关发送IP与MAC映射关系更新请求,即所述第一映射关系更新请求,将UE的IP地址映射的第二SGW MAC地址更新为所述第一SGW MAC地址。The first SGW sends an IP and MAC mapping relationship update request to the NAT gateway, that is, the first mapping relationship update request, and updates the second SGW MAC address mapped to the UE's IP address to the first SGW MAC address. .

所述方法还包括:向第二网络设备发送释放所述终端的指示消息。在切换完成后,所述第一基站指示第二基站释放所述终端的相关信息,同时所述第二基站发送释放消息至所述第二MME,所述第二MME与第二SGW删除本地所述UE的会话。所述第二SGW保留所述终端的IP地址一端时间,此时间可以是事先预设的,或者由目标网络指示的,以免再次分配造成与终端冲突。The method further includes: sending an instruction message to release the terminal to the second network device. After the handover is completed, the first base station instructs the second base station to release the relevant information of the terminal, and at the same time, the second base station sends a release message to the second MME, and the second MME and the second SGW delete all local information. The session of the UE. The second SGW retains the IP address of the terminal for a certain time. This time may be preset or indicated by the target network to avoid re-allocation causing conflict with the terminal.

以上为不更改终端的IP地址的情况。可选地,所述第一SGW接收到所述网络设备切换请求消息后,可以为所述终端分配新的IP地址,即在切换网络设备时更改终端的IP地址。可选地,所述方法还包括:为所述终端配置第二IP地址;生成S1隧道的上行端点号与S1承载;根据所述上下文消息、所述S1隧道的上行端点号以及所述第二IP地址,建立第二承载与S1承载的映射关系。The above is the case where the IP address of the terminal is not changed. Optionally, after receiving the network device switching request message, the first SGW may allocate a new IP address to the terminal, that is, change the IP address of the terminal when switching network devices. Optionally, the method further includes: configuring a second IP address for the terminal; generating an uplink endpoint number of the S1 tunnel and an S1 bearer; and generating an IP address based on the context message, the uplink endpoint number of the S1 tunnel and the second IP address. The IP address establishes the mapping relationship between the second bearer and the S1 bearer.

该实施例为更改UE的IP地址时的实现过程,所述第一SGW接收到所述网络设备切换请求消息后,保留UE的源IP地址,即所述第一IP地址,同时为所述UE分配新的IP地址,同时创建S1隧道的上行端点号和S1承载,所述S1隧道的上行端点号与承载数相同,由所述第一MME发送给第一基站,同时包括UE的IMSI。所述第一基站建立第二承载与S1承载的映射关系,便于所述第一基站将承载与UE进行一一映射。其中,所述第二承载为所述第一基站根据所述第一承载生成的新的无线承载。This embodiment is an implementation process when changing the IP address of the UE. After receiving the network device switching request message, the first SGW retains the source IP address of the UE, that is, the first IP address, and simultaneously Allocate a new IP address, and create an uplink endpoint number of the S1 tunnel and an S1 bearer at the same time. The uplink endpoint number of the S1 tunnel is the same as the number of bearers, and is sent by the first MME to the first base station, including the IMSI of the UE. The first base station establishes a mapping relationship between the second bearer and the S1 bearer, so that the first base station can map the bearers to the UE one by one. Wherein, the second bearer is a new radio bearer generated by the first base station according to the first bearer.

所述方法还包括:向终端发送IP地址更新指示,所述IP地址更新指示包括所述第二IP地址。所述第一基站向终端发送更新IP地址的消息,同时携带更新的所述第二IP地址,还可以携带原IP地址(即所述第一IP地址)和/或地址更换指示。The method further includes: sending an IP address update instruction to the terminal, where the IP address update instruction includes the second IP address. The first base station sends a message to update the IP address to the terminal, carrying at the same time the updated second IP address, and may also carry the original IP address (ie, the first IP address) and/or an address change instruction.

进一步地,所述根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求,包括:向所述NAT网关发送终端的IP地址与公网IP的第二映射关系更新请求;所述第二映射关系更新请求用于指示:将所述终端的第一IP地址与公网IP的映射关系更新为所述第二IP地址与公网IP的映射关系。所述第一SGW向NAT网关发送更新映射关系的消息,即所述第二映射关系更新请求,携带UE的第一IP地址和更新的第二IP地址,以及更换映射指示。Further, sending an address resolution protocol ARP update request to the NAT gateway according to the network device switching request message includes: sending a second mapping relationship update request between the IP address of the terminal and the public network IP to the NAT gateway; The second mapping relationship update request is used to instruct: update the mapping relationship between the first IP address of the terminal and the public network IP to the mapping relationship between the second IP address and the public network IP. The first SGW sends a message to update the mapping relationship to the NAT gateway, that is, the second mapping relationship update request, which carries the first IP address of the UE, the updated second IP address, and the replacement mapping indication.

在切换完成后,所述方法还包括:向第二网络设备发送释放所述终端的指示消息。即在切换完成后,所述第一基站指示所述第二基站释放所述终端的相关信息,同时所述第二基站发送释放消息给第二MME,所述第二MME与第二SGW删除本地此终端的会话。After the handover is completed, the method further includes: sending an instruction message to release the terminal to the second network device. That is, after the handover is completed, the first base station instructs the second base station to release the relevant information of the terminal, and at the same time, the second base station sends a release message to the second MME, and the second MME and the second SGW delete the local session for this terminal.

下面以所述第一网络设备为目的HaloB、第二网络设备为源HaloB为例,说明基于X2隧道的切换时,不更改UE的IP地址和更改UE的IP地址两种情况下的实现过程。其中,目的HaloB包括目的eNB、目的MME和目的SGW;源HaloB包括源eNB、源MME和源SGW。The following takes the first network device as the destination HaloB and the second network device as the source HaloB as an example to describe the implementation process in two cases of not changing the UE's IP address and changing the UE's IP address during X2 tunnel-based handover. Among them, the destination HaloB includes the destination eNB, the destination MME and the destination SGW; the source HaloB includes the source eNB, the source MME and the source SGW.

示例1:基于X2隧道的切换,不更改UE的IP地址。如图3所示:Example 1: X2 tunnel-based handover without changing the UE’s IP address. As shown in Figure 3:

1):OMC为所有的HaloB设备设置可以进行切换的邻区HaloB设备列表;1): OMC sets a list of neighboring HaloB devices that can be switched for all HaloB devices;

2):当UE进行切换时,源eNB根据OMC配置的可切换HaloB设备列表,选择目的HaloB的eNB,即目标eNB,进行X2切换。发送Handover Request(切换请求)消息给目标eNB,同时携带源MME的信息;在Handover Request中还可以携带需要切换的承载信息;2): When the UE performs handover, the source eNB selects the eNB of the destination HaloB, that is, the target eNB, according to the switchable HaloB device list configured by the OMC, and performs X2 handover. Send a Handover Request (handover request) message to the target eNB, carrying the source MME information at the same time; the Handover Request can also carry the bearer information that needs to be switched;

3):目的eNB收到Handover Request后,根据消息中携带的安全信息,生成新的安全信息,根据收到的承载信息,得知上行路径源SGW的地址,同时分配一个新的无线承载ID或多个ID。同时生成X2与S1隧道的端点号,即X2-TEID与S1-TEID。3): After receiving the Handover Request, the destination eNB generates new security information based on the security information carried in the message, learns the address of the source SGW of the uplink path based on the received bearer information, and allocates a new wireless bearer ID or Multiple IDs. At the same time, the endpoint numbers of the X2 and S1 tunnels are generated, namely X2-TEID and S1-TEID.

4):目的eNB发送应答给源eNB,同时携带对应承载的相关信息,以及X2隧道的端点号;4): The destination eNB sends a response to the source eNB, carrying relevant information about the corresponding bearer and the endpoint number of the X2 tunnel;

5):目的eNB向本地MME发送路径切换请求,同时携带需要切换的承载的信息,包括S1隧道的端点号,还包括可以唯一标识源MME中的此UE;本地MME根据源MME信息找到源MME,向源MME发送UE Context(上下文)获取消息,携带可以唯一标识此UE Context的信息。5): The destination eNB sends a path switching request to the local MME, and carries the information of the bearer that needs to be switched, including the endpoint number of the S1 tunnel, and also includes the UE that can uniquely identify the source MME; the local MME finds the source MME based on the source MME information. , sending a UE Context acquisition message to the source MME, carrying information that can uniquely identify this UE Context.

6):目的MME,即本地MME获取到UE Context后,向本地SGW,即目的SGW发起创建会话的请求,同时携带UE的IMSI、UE的IP地址、目的eNB分配的S1隧道端点号,承载信息以及切换指示等;6): After the destination MME, that is, the local MME obtains the UE Context, it initiates a request to create a session to the local SGW, that is, the destination SGW. It also carries the UE's IMSI, the UE's IP address, and the S1 tunnel endpoint number assigned by the destination eNB to carry the information. And switching instructions, etc.;

7):目的SGW收到消息中的切换指示,将不再为此UE分配IP地址,继续沿用消息中的IP地址,同时创建S1上行的隧道端点号,数目与承载数相同,借由目的MME发送给目的eNB,同时包括UE的IMSI,便于目的eNB将承载与UE进行一一映射。同时向NAT网关发送IP与MAC映射关系更新请求,即将UE的IP地址映射的源SGW MAC地址更新为目的SGW的MAC;7): After receiving the handover instruction in the message, the destination SGW will no longer allocate an IP address to this UE and continue to use the IP address in the message. At the same time, it will create S1 uplink tunnel endpoint numbers, the number of which is the same as the number of bearers, through the destination MME. It is sent to the destination eNB and also includes the IMSI of the UE, so that the destination eNB can map the bearer to the UE one by one. At the same time, an IP and MAC mapping relationship update request is sent to the NAT gateway, that is, the source SGW MAC address mapped to the UE's IP address is updated to the MAC of the destination SGW;

8):切换完成后,目的eNB指示源eNB释放此UE的相关信息;同时源eNB发送释放消息给本地MME,本地MME与SGW删除本地此UE的会话;8): After the handover is completed, the target eNB instructs the source eNB to release the relevant information of the UE; at the same time, the source eNB sends a release message to the local MME, and the local MME and SGW delete the local session of the UE;

9):源SGW保留此UE的IP地址一段时间,以免再次分配造成与此UE造成冲突。9): The source SGW retains the IP address of this UE for a period of time to avoid conflict with this UE due to re-allocation.

示例2:基于X2隧道的切换,更改UE的IP地址。如图4所示:Example 2: X2 tunnel-based switching, changing the IP address of the UE. As shown in Figure 4:

该示例2的步骤a~f与上述示例1的步骤1~6相同或相似,在此不做赘述;Steps a to f of this example 2 are the same or similar to steps 1 to 6 of the above example 1, and will not be described again;

g):目的SGW收到消息中的切换指示,保留UE的源IP地址,同时为此UE再分配新的IP地址,同时创建S1上行的隧道端点号,借由目的MME发送给目的eNB,同时包括UE的IMSI,便于目的eNB将承载与UE进行一一映射。eNB发送给UE更新IP地址的消息,携带UE新的IP地址,可选的,携带旧IP地址,和/或地址更换指示;g): The destination SGW receives the handover instruction in the message, retains the UE's source IP address, and allocates a new IP address to the UE. At the same time, it creates the S1 uplink tunnel endpoint number and sends it to the destination eNB through the destination MME. Including the IMSI of the UE, it is convenient for the destination eNB to map the bearer to the UE one by one. The IP address update message sent by the eNB to the UE carries the UE's new IP address, optionally, the old IP address, and/or an address change instruction;

h):目的SGW向NAT网关发送更新信息映射关系的消息,携带UE旧的IP地址1和新的IP地址2,以及更换映射指示;h): The destination SGW sends a message to update the information mapping relationship to the NAT gateway, carrying the UE's old IP address 1 and new IP address 2, as well as the replacement mapping instruction;

i):切换完成后,目的eNB指示源eNB释放此UE的相关信息。同时源eNB发送释放消息给本地MME,本地MME与SGW删除本地此UE的会话。i): After the handover is completed, the target eNB instructs the source eNB to release the relevant information of this UE. At the same time, the source eNB sends a release message to the local MME, and the local MME and SGW delete the local session of this UE.

上面通过实施例说明了基于X2接口的切换,不更改UE的IP地址和更改UE的IP地址的两种情况,下面通过具体实施例说明基于X2接口和S1接口的切换,不更改UE的IP地址和更改UE的IP地址时的实现方法。The above examples illustrate the two situations of switching based on the X2 interface without changing the IP address of the UE and changing the IP address of the UE. The following describes the switching based on the X2 interface and the S1 interface without changing the IP address of the UE through specific embodiments. And the implementation method when changing the IP address of the UE.

方式二:基于X2接口和S1接口的切换:Method 2: Switching based on X2 interface and S1 interface:

进一步地,所述接收第二网络设备发送的切换请求消息,包括:Further, the receiving the handover request message sent by the second network device includes:

接收由第二网络设备的第二MME发送的第二切换请求消息,所述第二切换请求消息包括:终端的上下文消息,所述上下文消息包括:所述终端的目标承载的第一承载信息、第一安全信息、终端的国际移动用户识别码IMSI以及终端的第一IP地址。Receive a second handover request message sent by the second MME of the second network device, the second handover request message including: a context message of the terminal, the context message including: first bearer information of a target bearer of the terminal, The first security information, the terminal's International Mobile Subscriber Identity IMSI and the terminal's first IP address.

所述根据所述切换请求消息,生成用于切换的更新的路径信息,包括:根据所述第二切换请求消息生成S1隧道的上行端点号;根据所述第二切换请求消息和所述S1隧道的上行端点号,生成第二承载信息和第二安全信息;生成S1隧道的下行端点号以及X2隧道的下行端点号。Generating updated path information for handover based on the handover request message includes: generating an uplink endpoint number of the S1 tunnel based on the second handover request message; and generating an uplink endpoint number of the S1 tunnel based on the second handover request message and the S1 tunnel. The uplink endpoint number is generated to generate the second bearer information and the second security information; the downlink endpoint number of the S1 tunnel and the downlink endpoint number of the X2 tunnel are generated.

该实施例中,当UE进行切换时,所述第二网络设备的第二基站发送切换请求消息至第二MME,所述第二MME根据OMC配置的可切换的网络设备列表,选择所述第一网络设备。所述第二MME发送所述第二切换请求消息至所述第一MME,其中携带UE的上下文,可以包括UE的第一安全信息、第一承载信息IMSI以及IP地址等。其中,第一承载信息可以为当前正在承载业务的承载信息,也可以为终端的部分或者全部的承载信息。In this embodiment, when the UE performs handover, the second base station of the second network device sends a handover request message to the second MME, and the second MME selects the first switchable network device according to the list of switchable network devices configured by the OMC. A network device. The second MME sends the second handover request message to the first MME, which carries the context of the UE, which may include the first security information of the UE, the first bearer information IMSI, the IP address, etc. The first bearer information may be bearer information currently carrying services, or may be part or all of the bearer information of the terminal.

所述第一MME获取到所述终端的上下文后,根据所述上下文消息以及所述第二承载信息,创建所述第一网络设备的第一基站与所述第一网络设备的第一SGW之间的会话。第一MME向第一SGW发起创建会话的请求,同时携带UE的IMSI、UE的第一IP地址、第一承载信息以及切换指示等。After obtaining the context of the terminal, the first MME creates a connection between the first base station of the first network device and the first SGW of the first network device according to the context message and the second bearer information. conversations between. The first MME initiates a request to create a session to the first SGW, carrying at the same time the IMSI of the UE, the first IP address of the UE, the first bearer information, the handover instruction, etc.

第一SGW接收到所述创建会话的请求后,不再为终端分配IP地址,即继续沿用消息中的所述第一IP地址,同时生成S1隧道的上行端点号,数目与承载数相同,将所述S1隧道的上行端点号发送至所述第一网络设备的第一MME。After receiving the request to create a session, the first SGW no longer allocates an IP address to the terminal, that is, continues to use the first IP address in the message, and at the same time generates the upstream endpoint number of the S1 tunnel, the number of which is the same as the number of bearers, and The uplink endpoint number of the S1 tunnel is sent to the first MME of the first network device.

或者,第一SGW接收到所述创建会话的请求后,为所述终端配置第二IP地址。所述第一SGW接收到消息中的切换指示,保留UE的源IP地址(即所述第一IP地址),同时为所述UE分配新的第二IP地址,同时创建S1隧道的上行端点号,将所述S1隧道的上行端点号发送至所述第一网络设备的第一MME。Alternatively, after receiving the request to create a session, the first SGW configures a second IP address for the terminal. The first SGW receives the handover instruction in the message, retains the source IP address of the UE (i.e., the first IP address), allocates a new second IP address to the UE, and creates the uplink endpoint number of the S1 tunnel. , sending the uplink endpoint number of the S1 tunnel to the first MME of the first network device.

所述第一MME向第一基站转发所述第二切换请求消息,同时携带终端的上下文信息以及所述S1隧道的上行端点号;所述第一基站接收到所述第二切换请求消息后,根据消息中携带的第一安全信息,生成第二安全信息,根据第一承载信息,得知上行路径第一SGW的地址,同时分配一个信息无线承载ID或多个ID(即所述第二承载信息),同时生成S1隧道的下行端点号以及X2隧道的下行端点号,即S1-TEID和X2-TEID。X2与S1隧道的端点号数与承载数相同。The first MME forwards the second handover request message to the first base station, carrying context information of the terminal and the uplink endpoint number of the S1 tunnel; after the first base station receives the second handover request message, According to the first security information carried in the message, the second security information is generated. According to the first bearer information, the address of the first SGW of the uplink path is learned, and at the same time, an information radio bearer ID or multiple IDs are allocated (i.e., the second bearer information), and at the same time generate the downlink endpoint number of the S1 tunnel and the downlink endpoint number of the X2 tunnel, that is, S1-TEID and X2-TEID. The number of endpoints and the number of bearers of X2 and S1 tunnels are the same.

可选地,所述方法还包括:向所述第二MME发送第二应答消息,所述第二应答消息包括:所述第二承载信息、第二安全信息、X2隧道的下行端点号以及第一指示消息;所述第一指示消息用于指示:所述第二网络设备的第二基站与所述第一网络设备的第一基站建立X2隧道,且指示所述第二基站进行X2隧道切换。Optionally, the method further includes: sending a second response message to the second MME, where the second response message includes: the second bearer information, the second security information, the downlink endpoint number of the X2 tunnel, and the An instruction message; the first instruction message is used to instruct the second base station of the second network device to establish an X2 tunnel with the first base station of the first network device, and instruct the second base station to perform X2 tunnel switching .

该实施例中,第一基站发送所述第二应答消息给所述第一MME,同时携带对应承载的相关信息,以及X2隧道的端点号。所述第一MME转发所述第二应答消息至第二网络设备的第二MME,除了携带创建X2隧道的信息外,还携带建立X2隧道的第一指示消息,指示所述第二基站与第一基站建立X2隧道,进行切换数据转发。所述第二MME向第二基站发送指示消息,携带X2隧道的端点标识,指示所述第二基站进行X2隧道切换。In this embodiment, the first base station sends the second response message to the first MME, carrying relevant information of the corresponding bearer and the endpoint number of the X2 tunnel. The first MME forwards the second response message to the second MME of the second network device. In addition to carrying information about creating an X2 tunnel, it also carries a first instruction message for establishing an X2 tunnel, instructing the second base station to communicate with the third base station. A base station establishes an X2 tunnel to forward handover data. The second MME sends an instruction message to the second base station, carrying the endpoint identifier of the X2 tunnel, to instruct the second base station to perform X2 tunnel switching.

可选地,所述方法还包括:控制所述第一网络设备的第一MME向所述第一网络设备的第一SGW发送承载修改消息,所述承载修改消息携带所述终端的下行隧道标识。第一MME发送承载修改消息给第一SGW,携带所述终端的下行隧道标识。其中,在所述第一SGW为终端分配了新的第二IP地址的情况下,所述方法还包括:向终端发送IP地址更新指示,所述IP地址更新指示包括所述第二IP地址,可选地,所述IP地址更新指示还可以包括所述第一IP地址。Optionally, the method further includes: controlling the first MME of the first network device to send a bearer modification message to the first SGW of the first network device, where the bearer modification message carries the downlink tunnel identifier of the terminal. . The first MME sends a bearer modification message to the first SGW, carrying the downlink tunnel identifier of the terminal. Wherein, in the case where the first SGW allocates a new second IP address to the terminal, the method further includes: sending an IP address update instruction to the terminal, where the IP address update instruction includes the second IP address, Optionally, the IP address update indication may also include the first IP address.

在未更改UE的IP地址的情况下,所述根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求,包括:向所述NAT网关发送终端的IP地址与MAC的第一映射关系更新请求;所述第一映射关系更新请求用于指示:将所述终端的第一IP地址映射的第二网络设备中的第二SGW的MAC地址,更新为所述第一网络设备的第一SGW的MAC地址。所述第一SGW向所述NAT网关发送IP与MAC映射关系更新请求,即所述第一映射关系更新请求,将UE的IP地址映射的第二SGW MAC更新为第一SGW MAC。If the IP address of the UE is not changed, sending an address resolution protocol ARP update request to the NAT gateway according to the network device switching request message includes: sending the first combination of the terminal's IP address and MAC to the NAT gateway. Mapping relationship update request; the first mapping relationship update request is used to instruct: update the MAC address of the second SGW in the second network device to which the first IP address of the terminal is mapped to the first network device. MAC address of the first SGW. The first SGW sends an IP and MAC mapping relationship update request to the NAT gateway, that is, the first mapping relationship update request, to update the second SGW MAC mapped to the IP address of the UE to the first SGW MAC.

在更改了UE的IP地址的情况下,所述根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求,包括:向所述NAT网关发送终端的IP地址与公网IP的第二映射关系更新请求;所述第二映射关系更新请求用于指示:将所述终端的第一IP地址与公网IP的映射关系更新为所述第二IP地址与公网IP的映射关系。所述第一SGW向所述NAT网关发送IP与MAC映射关系更新请求,即所述第二映射关系更新请求,使所述NAT网关存储的所述终端的第一IP地址与公网IP的映射关系更新为第二IP地址与公网IP的映射关系。同时可以携带所述第二IP地址和所述第一IP地址,以及更换映射指示。When the IP address of the UE is changed, sending an address resolution protocol ARP update request to the NAT gateway according to the network device switching request message includes: sending the IP address of the terminal and the public network IP to the NAT gateway. A second mapping relationship update request; the second mapping relationship update request is used to instruct: update the mapping relationship between the first IP address of the terminal and the public network IP to the mapping relationship between the second IP address and the public network IP. . The first SGW sends an IP and MAC mapping relationship update request, that is, the second mapping relationship update request, to the NAT gateway, so that the NAT gateway stores the mapping between the first IP address of the terminal and the public network IP. The relationship is updated to the mapping relationship between the second IP address and the public IP address. At the same time, the second IP address, the first IP address, and a replacement mapping instruction may be carried.

切换完成后,向第二网络设备发送释放所述终端的指示消息。所述第一基站指示第二基站释放所述终端的相关信息,同时所述第二基站发送释放消息给第二MME,第二MME与第二SGW删除本地所述终端的会话。所述第二SGW可以保留所述终端的IP地址一段时间,此时间可以是预先设置的,或者由目标网络指示的,以免再次分配造成与所述终端冲突。After the handover is completed, an instruction message to release the terminal is sent to the second network device. The first base station instructs the second base station to release the relevant information of the terminal, and at the same time, the second base station sends a release message to the second MME, and the second MME and the second SGW delete the local session of the terminal. The second SGW may reserve the IP address of the terminal for a period of time, and this time may be preset or indicated by the target network to avoid re-allocation causing conflict with the terminal.

下面以所述第一网络设备为目的HaloB、第二网络设备为源HaloB为例,说明基于X2隧道和S1隧道的切换时,不更改UE的IP地址和更改UE的IP地址两种情况下的实现过程。其中,目的HaloB包括目的eNB、目的MME和目的SGW;源HaloB包括源eNB、源MME和源SGW。The following takes the first network device as the destination HaloB and the second network device as the source HaloB as an example to illustrate the two situations of not changing the UE's IP address and changing the UE's IP address when switching based on the X2 tunnel and the S1 tunnel. Implementation process. Among them, the destination HaloB includes the destination eNB, the destination MME and the destination SGW; the source HaloB includes the source eNB, the source MME and the source SGW.

示例3:基于X2和S1接口的切换,不更改UE的IP地址。如图5所示:Example 3: Handover based on X2 and S1 interfaces without changing the IP address of the UE. As shown in Figure 5:

一):OMC为所有的HaloB设备配置可以进行切换的邻区HaloB设备列表;1): OMC configures a list of neighboring HaloB devices that can be switched for all HaloB devices;

二):当UE进行切换时,源eNB发送handover required(切换请求)消息给本设备的源MME,源MME根据OMC配置的可切换HaloB设备列表,选择目的HaloB,即目标MME,进行切换。发送转发重分配请求给目的MME,其中携带UE的上下文,包括UE的安全信息,承载信息等。可选的,在承载信息中携带的需要切换的承载信息,可以只发送当前正在承载业务的承载信息,也可以发送部分或者全部承载信息;2): When the UE performs handover, the source eNB sends a handover required (handover request) message to the source MME of the device. The source MME selects the target HaloB, that is, the target MME, to perform handover based on the switchable HaloB device list configured by the OMC. Send a forwarding reallocation request to the destination MME, which carries the context of the UE, including the UE's security information, bearer information, etc. Optionally, the bearer information that needs to be switched carried in the bearer information can only send the bearer information that is currently carrying the service, or send part or all of the bearer information;

三):目的MME获取到UE Context(上下文)后,向目的SGW发起创建会话的请求,同时携带UE的IMSI,UE的IP地址,承载信息以及切换指示等;3): After obtaining the UE Context, the destination MME initiates a session creation request to the destination SGW, carrying the UE's IMSI, UE's IP address, bearer information, and handover instructions, etc.;

四):目的SGW收到消息中的切换指示,将不再为此UE分配IP地址,继续沿用消息中的IP地址,同时创建S1上行的隧道端点号,数目与承载数相同,发送给目的MME;4): After receiving the handover instruction in the message, the destination SGW will no longer allocate an IP address to this UE and continue to use the IP address in the message. At the same time, it will create S1 uplink tunnel endpoint numbers, the number of which is the same as the number of bearers, and send it to the destination MME. ;

五):目的MME发送Handover Request消息给目标eNB,同时携带UE的上下文以及目的SGW分配的上行S1隧道的端点标识;5): The target MME sends a Handover Request message to the target eNB, carrying the context of the UE and the endpoint identifier of the uplink S1 tunnel allocated by the target SGW;

六):目的eNB收到Handover Request后,根据消息中携带的安全信息,生成新的安全信息,根据收到的承载信息,得知上行路径目的SGW的地址,同时分配一个新的无线承载ID或多个ID。同时生成X2与S1隧道的端点号,即X2-TEID与S1-TEID;6): After receiving the Handover Request, the destination eNB generates new security information based on the security information carried in the message. Based on the received bearer information, it learns the address of the destination SGW of the uplink path and allocates a new wireless bearer ID or Multiple IDs. At the same time, the endpoint numbers of the X2 and S1 tunnels are generated, namely X2-TEID and S1-TEID;

七):目的eNB发送应答给目的MME,同时携带对应承载的相关信息,以及隧道的端点号;7): The destination eNB sends a response to the destination MME, carrying relevant information about the corresponding bearer and the endpoint number of the tunnel;

八):目的MME发送转发重分配应答给源MME,除了携带创建X2隧道的信息外,还携带建立X2隧道的指示,指示源eNB与目的eNB建立X2隧道,进行切换数据转发;8): The destination MME sends a forwarding redistribution response to the source MME. In addition to carrying information about creating an X2 tunnel, it also carries an instruction to establish an X2 tunnel, instructing the source eNB to establish an X2 tunnel with the destination eNB for handover data forwarding;

九):源MME发送命令给源eNB,指示源eNB进行X2切换,携带X2的隧道端点标识;9): The source MME sends a command to the source eNB to instruct the source eNB to perform X2 handover, carrying the X2 tunnel endpoint identifier;

十):目的MME发送承载修改消息给目的SGW,携带此UE的下行端点隧道标识;10): The destination MME sends a bearer modification message to the destination SGW, carrying the downlink endpoint tunnel identifier of the UE;

十一):目的SGW向NAT网关发送IP与MAC映射关系更新请求,即将UE IP地址映射的源SGW MAC地址更新为目的SGW的MAC地址;11): The destination SGW sends an IP and MAC mapping relationship update request to the NAT gateway, that is, the source SGW MAC address mapped to the UE IP address is updated to the destination SGW's MAC address;

十二):切换完成后,目的eNB指示源eNB释放此UE的相关信息;同时源eNB发送释放消息给源ME,源MME与源SGW删除本地此UE的会话;12): After the handover is completed, the target eNB instructs the source eNB to release the relevant information of the UE; at the same time, the source eNB sends a release message to the source ME, and the source MME and the source SGW delete the local session of the UE;

十三):源SGW保留此UE的IP地址一段时间,以免再次分配造成与此UE造成冲突。13): The source SGW retains the IP address of this UE for a period of time to avoid conflict with this UE due to re-allocation.

示例4:基于X2和S1接口的切换,更改UE的IP地址。如图6所示:Example 4: Change the IP address of the UE based on switching of the X2 and S1 interfaces. As shown in Figure 6:

其中,步骤A~C与上述示例3中的步骤一~三相同,在此不做赘述;Among them, steps A to C are the same as steps 1 to 3 in Example 3 above, and will not be described again;

D):目的SGW收到消息中的切换指示,保留UE的源IP地址,同时为此UE再分配新的IP地址,同时创建S1上行的隧道端点号,数目与承载数相同,发送给目的MME;D): The destination SGW receives the handover instruction in the message, retains the UE's source IP address, and allocates a new IP address to the UE. At the same time, it creates S1 uplink tunnel endpoint numbers, the number of which is the same as the number of bearers, and sends it to the destination MME. ;

步骤E~I与上述示例3的步骤五~九相同,在此不做赘述;Steps E to I are the same as steps 5 to 9 in Example 3 above, and will not be described again;

J):目的MME发送承载修改消息给目的SGW,携带此UE的下行端点隧道标识;同时目的MME发送给UE更新IP地址的消息,携带UE新的IP地址,可选的,携带旧IP地址,和/或地址更换指示;J): The destination MME sends a bearer modification message to the destination SGW, carrying the UE's downlink endpoint tunnel identifier; at the same time, the destination MME sends an IP address update message to the UE, carrying the UE's new IP address, and optionally, the old IP address. and/or address change instructions;

K):目的SGW向NAT网关发送更新信息映射关系的消息,携带UE旧的IP地址1和新的IP地址2,以及更换映射指示;K): The destination SGW sends a message to update the information mapping relationship to the NAT gateway, carrying the UE's old IP address 1 and new IP address 2, as well as the replacement mapping instruction;

L):切换完成后,目的eNB指示源eNB释放此UE的相关信息。同时源eNB发送释放消息给本地MME,本地MME与SGW删除本地此UE的会话。L): After the handover is completed, the target eNB instructs the source eNB to release the relevant information of this UE. At the same time, the source eNB sends a release message to the local MME, and the local MME and SGW delete the local session of this UE.

以上以所述第一网络设备为目的HaloB、第二网络设备为源HaloB为例,说明了基于X2隧道和S1隧道的切换时,不更改UE的IP地址和更改UE的IP地址两种情况下的实现过程。使用S1切换的消息流程,搭建X2切换隧道,可以减少eNB X2切换时需要处理切换列表及切换时携带MME信息;减少源HaloB基于S1切换时非直接隧道在源HaloB内部冗余的传输路劲的创建及转发的时延。The above takes the first network device as the destination HaloB and the second network device as the source HaloB as an example to illustrate the two situations of not changing the UE's IP address and changing the UE's IP address when switching based on the X2 tunnel and the S1 tunnel. implementation process. Using the S1 handover message process to build an X2 handover tunnel can reduce the eNB's need to process the handover list and carry the MME information during X2 handover; reduce the redundant transmission path of the indirect tunnel within the source HaloB when the source HaloB is based on S1 handover. Creation and forwarding delays.

本发明的实施例,基于NAT网关的映射规则,在切换时,通过更新NAT网关内IP与MAC的映射表或者私网IP与公网IP的映射表,实现核心网间的切换,即会话锚点SGW的切换,实现业务不中断,克服了因为核心网的更改而必须中断业务才能完成网络切换的问题。In embodiments of the present invention, based on the mapping rules of the NAT gateway, during handover, the handover between core networks is realized by updating the mapping table between IP and MAC or the mapping table between private network IP and public network IP in the NAT gateway, that is, the session anchor Click SGW switching to achieve non-interruption of services, overcoming the problem that services must be interrupted to complete network switching due to changes in the core network.

如图7所示,本发明的实施例还提供一种网络设备切换方法,应用于第二网络设备,包括:As shown in Figure 7, an embodiment of the present invention also provides a network device switching method, which is applied to the second network device, including:

步骤701、向第一网络设备发送针对终端的网络设备切换请求消息,以使所述第一网络设备根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;所述更新请求包括:终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新的IP地址与公网IP的映射关系。Step 701: Send a network device switching request message for the terminal to the first network device, so that the first network device sends an Address Resolution Protocol ARP update request to the NAT gateway according to the network device switching request message; the update request Including: the updated media access control MAC address corresponding to the terminal's original IP address, or the mapping relationship between the terminal's updated IP address and the public network IP.

所述第一网络设备为终端欲切换的目的网络设备,可以为目的HaloB,包括目的eNB、目的MME、目的SGW。所述第二网络设备为终端当前连接的源网络设备(如源HaloB,包括源eNB、源MME、源SGW),所述网络设备切换请求消息可以携带所述第二网络设备的基站、MME、承载等多个消息。所述第一网络设备获取到所述网络设备切换请求消息,认为终端存在切换网络设备的意图。The first network device is a destination network device that the terminal wants to switch to, which may be a destination HaloB, including a destination eNB, a destination MME, and a destination SGW. The second network device is the source network device (such as source HaloB, including source eNB, source MME, and source SGW) to which the terminal is currently connected. The network device switching request message may carry the base station, MME, and Carrying multiple messages. The first network device obtains the network device switching request message and considers that the terminal has the intention to switch network devices.

所述第一网络设备根据所述网络设备切换请求消息,将所述终端与第二网络设备的业务传输切换至所述第一网络设备上,并向NAT网关发送地址解析协议ARP更新请求,更改NAT网关的映射规则。其中,所述更新请求中可以包括:与终端的原IP地址对应的更新的介质访问控制MAC地址,即终端的IP地址保持不变,更改NAT网关内终端IP地址与MAC的映射表,将IP地址对应的源SGW MAC地址更新为目的SGW的MAC;或者,所述更新请求中可以包括:终端的更新IP地址与公网IP的映射关系,即终端的IP地址更改,将更新的IP地址发送至NET网关,更新NET网关中私网IP与公网IP的映射表。The first network device switches the service transmission between the terminal and the second network device to the first network device according to the network device switching request message, and sends an Address Resolution Protocol ARP update request to the NAT gateway to change NAT gateway mapping rules. Wherein, the update request may include: an updated media access control MAC address corresponding to the original IP address of the terminal, that is, the IP address of the terminal remains unchanged, changing the mapping table of the terminal IP address and MAC in the NAT gateway, changing the IP The source SGW MAC address corresponding to the address is updated to the MAC of the destination SGW; or, the update request may include: the mapping relationship between the terminal's updated IP address and the public network IP, that is, the terminal's IP address is changed, and the updated IP address is sent Go to the NET gateway and update the mapping table between private IP and public IP in the NET gateway.

本发明的实施例,基于NAT网关的映射规则,在切换时,通过更新NAT网关内IP与MAC的映射表或者私网IP与公网IP的映射表,实现核心网间的切换,即会话锚点SGW的切换,实现业务不中断,克服了因为核心网的更改而必须中断业务才能完成网络切换的问题。In embodiments of the present invention, based on the mapping rules of the NAT gateway, during handover, the handover between core networks is realized by updating the mapping table between IP and MAC or the mapping table between private network IP and public network IP in the NAT gateway, that is, the session anchor Click SGW switching to achieve non-interruption of services, overcoming the problem that services must be interrupted to complete network switching due to changes in the core network.

可选地,在向第一网络设备发送针对终端的网络设备切换请求消息之前,所述方法还包括:根据操作维护中心OMC配置的可切换的通信设备列表选择待切换的目标通信设备,所述目标通信设备为第一通信设备。Optionally, before sending the network device switching request message for the terminal to the first network device, the method further includes: selecting the target communication device to be switched according to the switchable communication device list configured by the operation and maintenance center OMC, said The target communication device is the first communication device.

OMC为统一的管理系统,为所有的网络设备配置可以进行切换的邻区网络设备列表,当终端进行切换时,第二网络设备的eNB或者MME根据OMC配置的可切换的网络设备列表,选择目的网络设备进行切换。OMC is a unified management system that configures a list of neighbor network devices that can be switched for all network devices. When the terminal performs a switch, the eNB or MME of the second network device selects the destination based on the list of switchable network devices configured by OMC. Network devices are switched.

可选地,所述向第一网络设备发送针对终端的网络设备切换请求消息,包括:Optionally, sending a network device switching request message for the terminal to the first network device includes:

向第一网络设备发送切换请求消息,所述切换请求消息包括:所述终端的原传输路径信息,以使所述第一网络设备根据所述切换请求消息,生成用于切换的更新的路径信息。Send a handover request message to the first network device, where the handover request message includes: the original transmission path information of the terminal, so that the first network device generates updated path information for handover according to the handover request message. .

在欲将终端连接的所述第二网络设备切换至所述第一网络设备时,向所述第一网络设备发送切换请求消息,所述切换请求消息包括终端的原传输路径信息。具体地,所述原传输路径信息可以包括但不限于以下信息:第二网络设备的第二MME的信息:可以是MME的地址信息,也可以是MME的ID信息或者域名信息等;需要切换的承载信息,所述承载信息可以为当前正在承载业务的承载信息,也可以为终端的部分或者全部承载信息;安全信息,例如密钥信息;第二网络设备中的SGW信息等;所述原传输路径信息还可以包括:终端的上下文消息,如:终端的IMSI、IP地址等。When the second network device connected to the terminal is to be switched to the first network device, a switching request message is sent to the first network device, where the switching request message includes the original transmission path information of the terminal. Specifically, the original transmission path information may include but is not limited to the following information: the information of the second MME of the second network device: it may be the address information of the MME, or the ID information or domain name information of the MME, etc.; the information that needs to be switched Bearer information, which may be the bearer information currently carrying the service, or may be part or all of the bearer information of the terminal; security information, such as key information; SGW information in the second network device, etc.; the original transmission The path information may also include: context information of the terminal, such as the terminal's IMSI, IP address, etc.

所述第一网络设备根据所述切换请求消息中携带的消息内容,生成用于切换的更新的路径信息,即生成新的安全信息、承载信息、隧道端点号、终端的新的IP地址等。The first network device generates updated path information for handover based on the message content carried in the handover request message, that is, new security information, bearer information, tunnel endpoint number, new IP address of the terminal, etc.

可选地,所述向第一网络设备发送针对终端的网络设备切换请求消息,包括:Optionally, sending a network device switching request message for the terminal to the first network device includes:

通过所述第二网络设备的第二基站向所述第一网络设备发送第一切换请求消息,所述第一切换请求消息包括:第二网络设备的第二MME的地址信息、所述终端的目标承载的第一承载信息以及第一安全信息。A first handover request message is sent to the first network device through the second base station of the second network device. The first handover request message includes: the address information of the second MME of the second network device, the address information of the terminal The first bearer information and the first security information carried by the target.

所述第二MME的地址信息可以为:第二网络设备的MME的地址信息,也可以为MME的ID信息或者域名信息等。所述终端的目标承载是指需要切换的承载,所述第一承载信息是指当前正在承载业务的承载信息,还可以包括终端的部分或者全部承载信息。所述第一安全信息为携带在所述第二基站发送的第一切换请求消息中的安全信息,可以为空口侧的加密信息,如密钥。The address information of the second MME may be: the address information of the MME of the second network device, or may be the ID information or domain name information of the MME, etc. The target bearer of the terminal refers to the bearer that needs to be switched, and the first bearer information refers to the bearer information currently carrying the service, and may also include part or all of the bearer information of the terminal. The first security information is security information carried in the first handover request message sent by the second base station, and may be encrypted information on the air interface side, such as a key.

所述第一网络设备的第一基站接收到所述第一切换请求消息后,根据消息中携带的第一安全信息,生成新的第二安全信息,根据第一切换请求消息中携带的第一承载信息,得知上行路径源SGW的地址,同时分配新的无线承载ID或多个ID。所述第一基站同时生成X2和S1隧道的端点号,即X2-TEID与S1-TEID,X2和S1隧道的端点号数与承载数相同。After receiving the first handover request message, the first base station of the first network device generates new second security information according to the first security information carried in the message. Bearer information, learn the address of the uplink path source SGW, and allocate a new wireless bearer ID or multiple IDs. The first base station simultaneously generates endpoint numbers of X2 and S1 tunnels, that is, X2-TEID and S1-TEID. The number of endpoint numbers of X2 and S1 tunnels is the same as the number of bearers.

可选地,所述方法还包括:通过第二MME接收所述第一网络设备发送的终端的上下文获取请求;向所述第一网络设备发送所述终端的上下文消息,所述上下文消息包括:终端的国际移动用户识别码IMSI和终端的第一IP地址。Optionally, the method further includes: receiving a context acquisition request of the terminal sent by the first network device through the second MME; sending a context message of the terminal to the first network device, where the context message includes: The terminal's International Mobile Subscriber Identity IMSI and the terminal's first IP address.

可选地,所述方法还包括:通过所述第二基站接收所述第一网络设备发送的第一应答消息,所述第一应答消息包括:X2隧道的下行端点号以及第二承载信息。Optionally, the method further includes: receiving, through the second base station, a first response message sent by the first network device, where the first response message includes: a downlink endpoint number of the X2 tunnel and second bearer information.

可选地,所述向第一网络设备发送针对终端的网络设备切换请求消息,包括:Optionally, sending a network device switching request message for the terminal to the first network device includes:

通过所述第二网络设备的第二基站向所述第二网络设备的第二MME发送第二切换请求消息;Send a second handover request message to the second MME of the second network device through the second base station of the second network device;

将所述第二切换请求消息发送至所述第一网络设备,所述第二切换请求消息包括:终端的上下文消息,所述上下文消息包括:所述终端的目标承载的第一承载信息、第一安全信息、终端的国际移动用户识别码IMSI以及终端的第一IP地址。The second handover request message is sent to the first network device, the second handover request message includes: a context message of the terminal, the context message includes: the first bearer information of the target bearer of the terminal, the third 1. Security information, the terminal’s International Mobile Subscriber Identity IMSI and the terminal’s first IP address.

该实施例中,当UE进行切换时,所述第二网络设备的第二基站发送第二切换请求消息至第二MME,所述第二MME根据OMC配置的可切换的网络设备列表,选择所述第一网络设备。所述第二MME发送所述第二切换请求消息至所述第一网络设备的第一MME,其中携带UE的上下文,可以包括UE的第一安全信息、第一承载信息IMSI以及IP地址等。其中,第一承载信息可以为当前正在承载业务的承载信息,也可以为终端的部分或者全部的承载信息。In this embodiment, when the UE performs handover, the second base station of the second network device sends a second handover request message to the second MME, and the second MME selects the switchable network device list according to the OMC configuration. The first network device. The second MME sends the second handover request message to the first MME of the first network device, which carries the context of the UE, which may include the first security information of the UE, the first bearer information IMSI, the IP address, etc. The first bearer information may be bearer information currently carrying services, or may be part or all of the bearer information of the terminal.

可选地,所述方法还包括:Optionally, the method also includes:

通过所述第二MME接收所述第一网络设备发送的第二应答消息,所述第二应答消息包括:第二承载信息、第二安全信息、X2隧道的下行端点号以及第一指示消息;所述第一指示消息用于指示:所述第二网络设备的第二基站与所述第一网络设备的第一基站建立X2隧道,且指示所述第二基站进行X2隧道切换。将所述第一指示消息发送至所述第二基站;Receive, through the second MME, a second response message sent by the first network device, where the second response message includes: second bearer information, second security information, the downlink endpoint number of the X2 tunnel, and a first indication message; The first instruction message is used to instruct the second base station of the second network device to establish an X2 tunnel with the first base station of the first network device, and instruct the second base station to perform X2 tunnel switching. Send the first indication message to the second base station;

该实施例中,第一基站发送所述第二应答消息给所述第一MME,同时携带对应承载的相关信息,以及X2隧道的端点号。所述第一MME转发所述第二应答消息至第二网络设备的第二MME,除了携带创建X2隧道的信息外,还携带建立X2隧道的第一指示消息,指示所述第二基站与第一基站建立X2隧道,进行切换数据转发。所述第二MME向第二基站发送指示消息,携带X2隧道的端点标识,指示所述第二基站进行X2隧道切换。In this embodiment, the first base station sends the second response message to the first MME, carrying relevant information of the corresponding bearer and the endpoint number of the X2 tunnel. The first MME forwards the second response message to the second MME of the second network device. In addition to carrying information about creating an X2 tunnel, it also carries a first instruction message for establishing an X2 tunnel, instructing the second base station to communicate with the second MME. A base station establishes an X2 tunnel to forward handover data. The second MME sends an instruction message to the second base station, carrying the endpoint identifier of the X2 tunnel, to instruct the second base station to perform X2 tunnel switching.

所述第一网络设备的第一MME向所述第一网络设备的第一SGW发送承载修改消息。其中,在所述第一SGW为终端分配了新的第二IP地址的情况下,所述方法还包括:向终端发送IP地址更新指示,所述IP地址更新指示包括所述第二IP地址。The first MME of the first network device sends a bearer modification message to the first SGW of the first network device. Wherein, in the case where the first SGW allocates a new second IP address to the terminal, the method further includes: sending an IP address update instruction to the terminal, where the IP address update instruction includes the second IP address.

第一SGW向NAT网关发送地址解析协议ARP更新请求,在未更改UE的IP地址的情况下,所述ARP更新请求为终端的IP地址与MAC的第一映射关系更新请求,所述第一映射关系更新请求用于指示:将所述终端的第一IP地址映射的第二网络设备中的第二SGW的MAC地址,更新为所述第一SGW的MAC地址;在更改了UE的IP地址的情况下,所述ARP更新请求为终端的IP地址与公网IP的第二映射关系更新请求,所述第二映射关系更新请求用于指示:将所述终端的第一IP地址与公网IP的映射关系更新为所述第二IP地址与公网IP的映射关系。The first SGW sends an Address Resolution Protocol ARP update request to the NAT gateway. If the IP address of the UE is not changed, the ARP update request is a first mapping relationship update request between the IP address of the terminal and the MAC. The first mapping The relationship update request is used to indicate: update the MAC address of the second SGW in the second network device to which the first IP address of the terminal is mapped to the MAC address of the first SGW; when the IP address of the UE is changed, In this case, the ARP update request is a second mapping relationship update request between the terminal's IP address and the public network IP. The second mapping relationship update request is used to indicate: the terminal's first IP address and the public network IP. The mapping relationship is updated to the mapping relationship between the second IP address and the public network IP.

切换完成后,第一基站向第二网络设备发送释放所述终端的指示消息。可选地,所述方法还包括:接收释放所述终端的指示消息;根据所述指示消息删除与所述终端的会话。所述第二基站接收到释放所述终端的指示消息后,发送释放消息给第二MME,第二MME与第二SGW删除本地所述终端的会话。After the handover is completed, the first base station sends an instruction message to release the terminal to the second network device. Optionally, the method further includes: receiving an instruction message to release the terminal; and deleting the session with the terminal according to the instruction message. After receiving the instruction message to release the terminal, the second base station sends a release message to the second MME, and the second MME and the second SGW delete the local session of the terminal.

可选地,在根据所述指示消息删除与所述终端的会话之后,所述方法还包括:保留不分配所述终端的第一IP地址预设时长。所述第二SGW可以保留所述终端的IP地址一段时间,此时间可以是预先设置的,或者由目标网络指示的,以免再次分配造成与所述终端冲突。Optionally, after deleting the session with the terminal according to the instruction message, the method further includes: leaving the first IP address of the terminal unallocated for a preset period of time. The second SGW may reserve the IP address of the terminal for a period of time, and this time may be preset or indicated by the target network to avoid re-allocation causing conflict with the terminal.

需要说明的是,该实施例是与上述应用于第一网络设备的方法相对应的应用于第二网络设备的方法,上述实施例中所有关于所述第二网络设备的实现方式均适用于该实施例中,也能达到与其相同的效果。It should be noted that this embodiment is a method applied to the second network device corresponding to the above-mentioned method applied to the first network device, and all implementations of the second network device in the above-described embodiment are applicable to this method. In the embodiment, the same effect can be achieved.

本申请的实施例,基于NAT网关的映射规则,在切换时,通过更新NAT网关内IP与MAC的映射表或者私网IP与公网IP的映射表,实现核心网间的切换,即会话锚点SGW的切换,实现业务不中断,克服了因为核心网的更改而必须中断业务才能完成网络切换的问题。Embodiments of this application are based on the mapping rules of the NAT gateway. During handover, the handover between core networks is realized by updating the mapping table between IP and MAC or the mapping table between private network IP and public network IP in the NAT gateway, that is, the session anchor. Click SGW switching to achieve non-interruption of services, overcoming the problem that services must be interrupted to complete network switching due to changes in the core network.

如图8所示本申请实施例还提供一种网络设备,所述网络设备为第一网络设备800,包括:As shown in Figure 8, this embodiment of the present application also provides a network device. The network device is a first network device 800, including:

第一获取模块810,用于获取针对终端的网络设备切换请求消息;The first obtaining module 810 is used to obtain the network device switching request message for the terminal;

第一发送模块820,用于根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;The first sending module 820 is configured to send an address resolution protocol ARP update request to the NAT gateway according to the network device switching request message;

所述更新请求包括:与终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新IP地址与公网IP的映射关系。The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP.

可选地,所述第一获取模块包括:Optionally, the first acquisition module includes:

第一接收单元,用于接收第二网络设备发送的切换请求消息,所述切换请求消息包括:所述终端的原传输路径信息;The first receiving unit is configured to receive a switching request message sent by the second network device, where the switching request message includes: the original transmission path information of the terminal;

第一生成单元,用于根据所述切换请求消息,生成用于切换的更新的路径信息。A first generating unit configured to generate updated path information for handover according to the handover request message.

可选地,所述第一接收单元具体用:接收由第二网络设备的第二基站发送的第一切换请求消息,所述第一切换请求消息包括:第二网络设备的第二MME的地址信息、所述终端的目标承载的第一承载信息以及第一安全信息;Optionally, the first receiving unit is specifically configured to: receive a first handover request message sent by the second base station of the second network device, where the first handover request message includes: the address of the second MME of the second network device. information, first bearer information and first security information of the terminal's target bearer;

所述第一生成单元具体用于:根据所述第一切换请求消息生成第二承载信息和第二安全信息;The first generating unit is specifically configured to: generate second bearer information and second security information according to the first handover request message;

生成用于切换的S1隧道的下行端点号以及X2隧道的下行端点号。Generate the downstream endpoint number of the S1 tunnel and the downstream endpoint number of the X2 tunnel used for handover.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第三发送模块,用于向所述第二网络设备的第二MME发送终端的上下文获取请求;A third sending module, configured to send the context acquisition request of the terminal to the second MME of the second network device;

第一接收模块,用于接收所述第二MME发送的终端的上下文消息,所述上下文消息包括:终端的国际移动用户识别码IMSI和终端的第一IP地址。The first receiving module is configured to receive the context message of the terminal sent by the second MME, where the context message includes: the International Mobile Subscriber Identity IMSI of the terminal and the first IP address of the terminal.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第四发送模块,用于向所述第二基站发送第一应答消息,所述第一应答消息包括:所述X2隧道的下行端点号以及所述第二承载信息。The fourth sending module is configured to send a first response message to the second base station, where the first response message includes: the downlink endpoint number of the X2 tunnel and the second bearer information.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第一会话模块,用于根据所述上下文消息、所述S1隧道的下行端点号以及所述第二承载信息,创建所述第一网络设备的第一基站与所述第一网络设备的第一SGW之间的会话。A first session module configured to create a first communication between the first base station of the first network device and the first network device according to the context message, the downlink endpoint number of the S1 tunnel and the second bearer information. Sessions between SGWs.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第一生成模块,用于生成S1隧道的上行端点号与S1承载;The first generation module is used to generate the uplink endpoint number and S1 bearer of the S1 tunnel;

第一建立模块,用于根据所述上下文消息和所述S1隧道的上行端点号,建立第二承载与S1承载的映射关系。The first establishment module is configured to establish a mapping relationship between the second bearer and the S1 bearer according to the context message and the uplink endpoint number of the S1 tunnel.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第一配置模块,用于为所述终端配置第二IP地址;A first configuration module configured to configure a second IP address for the terminal;

第二生成模块,用于生成S1隧道的上行端点号与S1承载;The second generation module is used to generate the uplink endpoint number and S1 bearer of the S1 tunnel;

第二建立模块,用于根据所述上下文消息、所述S1隧道的上行端点号以及所述第二IP地址,建立第二承载与S1承载的映射关系。The second establishment module is configured to establish a mapping relationship between the second bearer and the S1 bearer based on the context message, the uplink endpoint number of the S1 tunnel, and the second IP address.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第五发送模块,用于向终端发送IP地址更新指示,所述IP地址更新指示包括所述第二IP地址。The fifth sending module is configured to send an IP address update instruction to the terminal, where the IP address update instruction includes the second IP address.

可选地,所述第一接收单元具体用:接收由第二网络设备的第二MME发送的第二切换请求消息,所述第二切换请求消息包括:终端的上下文消息,所述上下文消息包括:所述终端的目标承载的第一承载信息、第一安全信息、终端的国际移动用户识别码IMSI以及终端的第一IP地址;Optionally, the first receiving unit is specifically configured to: receive a second handover request message sent by the second MME of the second network device, where the second handover request message includes: a context message of the terminal, where the context message includes: : the first bearer information, the first security information, the International Mobile Subscriber Identity IMSI of the terminal and the first IP address of the terminal's target bearer;

所述第一生成单元具体用于:The first generation unit is specifically used for:

根据所述第二切换请求消息生成S1隧道的上行端点号;Generate the uplink endpoint number of the S1 tunnel according to the second handover request message;

根据所述第二切换请求消息和所述S1隧道的上行端点号,生成第二承载信息和第二安全信息;Generate second bearer information and second security information according to the second handover request message and the uplink endpoint number of the S1 tunnel;

生成S1隧道的下行端点号以及X2隧道的下行端点号。Generate the downlink endpoint number of the S1 tunnel and the downlink endpoint number of the X2 tunnel.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第二会话模块,用于根据所述上下文消息以及所述第二承载信息,创建所述第一网络设备的第一基站与所述第一网络设备的第一SGW之间的会话。A second session module, configured to create a session between the first base station of the first network device and the first SGW of the first network device according to the context message and the second bearer information.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第六发送模块,用于向所述第二MME发送第二应答消息,所述第二应答消息包括:所述第二承载信息、第二安全信息、X2隧道的下行端点号以及第一指示消息;The sixth sending module is configured to send a second response message to the second MME. The second response message includes: the second bearer information, the second security information, the downlink endpoint number of the X2 tunnel, and the first indication message. ;

所述第一指示消息用于指示:所述第二网络设备的第二基站与所述第一网络设备的第一基站建立X2隧道,且指示所述第二基站进行X2隧道切换。The first instruction message is used to instruct the second base station of the second network device to establish an X2 tunnel with the first base station of the first network device, and instruct the second base station to perform X2 tunnel switching.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第七发送模块,用于控制所述第一网络设备的第一MME向所述第一网络设备的第一SGW发送承载修改消息,所述承载修改消息携带所述终端的下行隧道标识。A seventh sending module, configured to control the first MME of the first network device to send a bearer modification message to the first SGW of the first network device, where the bearer modification message carries the downlink tunnel identifier of the terminal.

可选地,所述第一发送模块具体用于:Optionally, the first sending module is specifically used for:

向所述NAT网关发送终端的IP地址与MAC的第一映射关系更新请求;Send a first mapping relationship update request between the terminal's IP address and MAC to the NAT gateway;

所述第一映射关系更新请求用于指示:将所述终端的第一IP地址映射的第二网络设备中的第二SGW的MAC地址,更新为所述第一网络设备的第一SGW的MAC地址。The first mapping relationship update request is used to instruct: update the MAC address of the second SGW in the second network device to which the first IP address of the terminal is mapped to the MAC address of the first SGW of the first network device. address.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第二配置模块,用于为所述终端配置第二IP地址;A second configuration module configured to configure a second IP address for the terminal;

第八发送模块,用于向终端发送IP地址更新指示,所述IP地址更新指示包括所述第二IP地址。An eighth sending module is configured to send an IP address update instruction to the terminal, where the IP address update instruction includes the second IP address.

可选地,所述第一发送模块具体用于:Optionally, the first sending module is specifically used for:

向所述NAT网关发送终端的IP地址与公网IP的第二映射关系更新请求;Send a second mapping relationship update request between the terminal's IP address and the public network IP to the NAT gateway;

所述第二映射关系更新请求用于指示:将所述终端的第一IP地址与公网IP的映射关系更新为所述第二IP地址与公网IP的映射关系。The second mapping relationship update request is used to instruct: update the mapping relationship between the first IP address of the terminal and the public network IP to the mapping relationship between the second IP address and the public network IP.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第九发送模块,用于向第二网络设备发送释放所述终端的指示消息。The ninth sending module is configured to send an instruction message to release the terminal to the second network device.

需要说明的是,本发明实施例提供的网络设备,能够实现上述应用于第一网络设备的方法实施例所实现的所有方法步骤,且能够达到相同的技术效果,在此不再对本实施例中与方法实施例相同的部分及有益效果进行具体赘述。It should be noted that the network device provided by the embodiment of the present invention can implement all the method steps implemented by the above method embodiment applied to the first network device, and can achieve the same technical effect. No further explanation will be given here. The same parts and beneficial effects as those in the method embodiment will be described in detail.

如图9所示本申请实施例还提供一种网络设备,所述网络设备为第二网络设备900,包括:As shown in Figure 9, this embodiment of the present application also provides a network device. The network device is a second network device 900, including:

第二发送模块910,用于向第一网络设备发送针对终端的网络设备切换请求消息,以使所述第一网络设备根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;The second sending module 910 is configured to send a network device switching request message for the terminal to the first network device, so that the first network device sends an Address Resolution Protocol ARP update request to the NAT gateway according to the network device switching request message. ;

所述更新请求包括:终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新的IP地址与公网IP的映射关系。The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP.

可选地,所述网络设备还包括:Optionally, the network device also includes:

选择模块,用于根据操作维护中心OMC配置的可切换的通信设备列表选择待切换的目标通信设备,所述目标通信设备为第一通信设备。A selection module, configured to select a target communication device to be switched according to the switchable communication device list configured by the operation and maintenance center OMC, where the target communication device is the first communication device.

可选地,所述第二发送模块包括:Optionally, the second sending module includes:

第一发送单元,用于向第一网络设备发送切换请求消息,所述切换请求消息包括:所述终端的原传输路径信息,以使所述第一网络设备根据所述切换请求消息,生成用于切换的更新的路径信息。The first sending unit is configured to send a switching request message to the first network device, where the switching request message includes: the original transmission path information of the terminal, so that the first network device generates a username based on the switching request message. Updated path information for switching.

可选地,所述第一发送单元具体用于:Optionally, the first sending unit is specifically used for:

通过所述第二网络设备的第二基站向所述第一网络设备发送第一切换请求消息,所述第一切换请求消息包括:第二网络设备的第二MME的地址信息、所述终端的目标承载的第一承载信息以及第一安全信息。A first handover request message is sent to the first network device through the second base station of the second network device. The first handover request message includes: the address information of the second MME of the second network device, the address information of the terminal The first bearer information and the first security information carried by the target.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第二接收模块,用于通过第二MME接收所述第一网络设备发送的终端的上下文获取请求;A second receiving module configured to receive the context acquisition request of the terminal sent by the first network device through the second MME;

第十发送模块,用于向所述第一网络设备发送所述终端的上下文消息,所述上下文消息包括:终端的国际移动用户识别码IMSI和终端的第一IP地址。A tenth sending module, configured to send a context message of the terminal to the first network device, where the context message includes: the International Mobile Subscriber Identity IMSI of the terminal and the first IP address of the terminal.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第三接收模块,用于通过所述第二基站接收所述第一网络设备发送的第一应答消息,所述第一应答消息包括:X2隧道的下行端点号以及第二承载信息。The third receiving module is configured to receive the first response message sent by the first network device through the second base station, where the first response message includes: the downlink endpoint number of the X2 tunnel and the second bearer information.

可选地,所述第一发送单元具体用于:Optionally, the first sending unit is specifically used for:

通过所述第二网络设备的第二基站向所述第二网络设备的第二MME发送第二切换请求消息;Send a second handover request message to the second MME of the second network device through the second base station of the second network device;

将所述第二切换请求消息发送至所述第一网络设备,所述第二切换请求消息包括:终端的上下文消息,所述上下文消息包括:所述终端的目标承载的第一承载信息、第一安全信息、终端的国际移动用户识别码IMSI以及终端的第一IP地址。The second handover request message is sent to the first network device, the second handover request message includes: a context message of the terminal, the context message includes: the first bearer information of the target bearer of the terminal, the third 1. Security information, the terminal’s International Mobile Subscriber Identity IMSI and the terminal’s first IP address.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第四接收模块,用于通过所述第二MME接收所述第一网络设备发送的第二应答消息,所述第二应答消息包括:第二承载信息、第二安全信息、X2隧道的下行端点号以及第一指示消息;The fourth receiving module is configured to receive the second response message sent by the first network device through the second MME. The second response message includes: second bearer information, second security information, and the downlink endpoint of the X2 tunnel. Number and first instruction message;

第十一发送模块,用于将所述第一指示消息发送至所述第二基站;An eleventh sending module, configured to send the first indication message to the second base station;

所述第一指示消息用于指示:所述第二基站与所述第一网络设备的第一基站建立X2隧道,且指示所述第二基站进行X2隧道切换。The first instruction message is used to instruct the second base station to establish an X2 tunnel with the first base station of the first network device, and instruct the second base station to perform X2 tunnel switching.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第五接收模块,用于接收释放所述终端的指示消息;The fifth receiving module is used to receive an instruction message to release the terminal;

第一处理模块,用于根据所述指示消息删除与所述终端的会话。The first processing module is configured to delete the session with the terminal according to the instruction message.

可选地,所述网络设备还包括:Optionally, the network device also includes:

第二处理模块,用于保留不分配所述终端的第一IP地址预设时长。The second processing module is configured to reserve the first IP address of the terminal from being allocated for a preset period of time.

需要说明的是,本发明实施例提供的网络设备,能够实现上述应用于第二网络设备的方法实施例所实现的所有方法步骤,且能够达到相同的技术效果,在此不再对本实施例中与方法实施例相同的部分及有益效果进行具体赘述。It should be noted that the network device provided by the embodiment of the present invention can implement all the method steps implemented by the above method embodiment applied to the second network device, and can achieve the same technical effect. No further explanation will be given here. The same parts and beneficial effects as those in the method embodiment will be described in detail.

为了更好的实现上述目的,如图10所示,本发明实施例还提供一种网络设备,所述网络设备为第一网络设备,包括收发机104、存储器103、处理器101及存储在存储器上并可在处理器上运行的计算机程序。In order to better achieve the above purpose, as shown in Figure 10, an embodiment of the present invention also provides a network device. The network device is a first network device, including a transceiver 104, a memory 103, a processor 101 and a network device stored in the memory. A computer program that runs on a processor.

存储器103通过总线接口102与所述处理器101相连接,所述存储器103用于存储所述处理器101在执行操作时所使用的程序和数据,当处理器101调用并执行所述存储器103中所存储的程序和数据时,执行上述网络设备之间的切换方法的步骤。The memory 103 is connected to the processor 101 through the bus interface 102. The memory 103 is used to store programs and data used by the processor 101 when executing operations. When the processor 101 calls and executes the memory 103 The steps of the above method for switching between network devices are performed when the stored programs and data are stored.

其中,收发机104与总线接口102连接,用于在处理器101的控制下接收和发送数据。具体地,处理器101执行计算机程序时实现以下步骤:Among them, the transceiver 104 is connected to the bus interface 102 and is used to receive and send data under the control of the processor 101. Specifically, the processor 101 implements the following steps when executing the computer program:

通过收发机104向第一网络设备发送针对终端的网络设备切换请求消息,以使所述第一网络设备根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;Send a network device switching request message for the terminal to the first network device through the transceiver 104, so that the first network device sends an Address Resolution Protocol ARP update request to the NAT gateway according to the network device switching request message;

所述更新请求包括:终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新的IP地址与公网IP的映射关系。The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

通过收发机104接收第二网络设备发送的切换请求消息,所述切换请求消息包括:所述终端的原传输路径信息;The transceiver 104 receives a switching request message sent by the second network device, where the switching request message includes: the original transmission path information of the terminal;

根据所述切换请求消息,生成用于切换的更新的路径信息。Based on the handover request message, updated path information for handover is generated.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

通过收发机104接收由第二网络设备的第二基站发送的第一切换请求消息,所述第一切换请求消息包括:第二网络设备的第二MME的地址信息、所述终端的目标承载的第一承载信息以及第一安全信息;The first handover request message sent by the second base station of the second network device is received through the transceiver 104. The first handover request message includes: the address information of the second MME of the second network device, the target bearer of the terminal. The first bearer information and the first security information;

根据所述第一切换请求消息生成第二承载信息和第二安全信息;Generate second bearer information and second security information according to the first handover request message;

生成用于切换的S1隧道的下行端点号以及X2隧道的下行端点号。Generate the downstream endpoint number of the S1 tunnel and the downstream endpoint number of the X2 tunnel used for handover.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

通过收发机104向所述第二网络设备的第二MME发送终端的上下文获取请求;Send the context acquisition request of the terminal to the second MME of the second network device through the transceiver 104;

接收所述第二MME发送的终端的上下文消息,所述上下文消息包括:终端的国际移动用户识别码IMSI和终端的第一IP地址。Receive a context message of the terminal sent by the second MME, where the context message includes: the International Mobile Subscriber Identity IMSI of the terminal and the first IP address of the terminal.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

通过收发机104向所述第二基站发送第一应答消息,所述第一应答消息包括:所述X2隧道的下行端点号以及所述第二承载信息。A first response message is sent to the second base station through the transceiver 104, where the first response message includes: the downlink endpoint number of the X2 tunnel and the second bearer information.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

根据所述上下文消息、所述S1隧道的下行端点号以及所述第二承载信息,创建所述第一网络设备的第一基站与所述第一网络设备的第一SGW之间的会话。According to the context message, the downlink endpoint number of the S1 tunnel and the second bearer information, a session is created between the first base station of the first network device and the first SGW of the first network device.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

生成S1隧道的上行端点号与S1承载;Generate the upstream endpoint number and S1 bearer of the S1 tunnel;

根据所述上下文消息和所述S1隧道的上行端点号,建立第二承载与S1承载的映射关系。According to the context message and the uplink endpoint number of the S1 tunnel, a mapping relationship between the second bearer and the S1 bearer is established.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

为所述终端配置第二IP地址;Configure a second IP address for the terminal;

生成S1隧道的上行端点号与S1承载;Generate the upstream endpoint number and S1 bearer of the S1 tunnel;

根据所述上下文消息、所述S1隧道的上行端点号以及所述第二IP地址,建立第二承载与S1承载的映射关系。According to the context message, the uplink endpoint number of the S1 tunnel, and the second IP address, a mapping relationship between the second bearer and the S1 bearer is established.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

通过收发机184向终端发送IP地址更新指示,所述IP地址更新指示包括所述第二IP地址。An IP address update indication is sent to the terminal through the transceiver 184, where the IP address update indication includes the second IP address.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

通过收发机104接收由第二网络设备的第二MME发送的第二切换请求消息,所述第二切换请求消息包括:终端的上下文消息,所述上下文消息包括:所述终端的目标承载的第一承载信息、第一安全信息、终端的国际移动用户识别码IMSI以及终端的第一IP地址;The second handover request message sent by the second MME of the second network device is received through the transceiver 104. The second handover request message includes: a context message of the terminal, and the context message includes: a third target bearer of the terminal. - Bearer information, first security information, the terminal’s International Mobile Subscriber Identity IMSI and the terminal’s first IP address;

根据所述第二切换请求消息生成S1隧道的上行端点号;Generate the uplink endpoint number of the S1 tunnel according to the second handover request message;

根据所述第二切换请求消息和所述S1隧道的上行端点号,生成第二承载信息和第二安全信息;Generate second bearer information and second security information according to the second handover request message and the uplink endpoint number of the S1 tunnel;

生成S1隧道的下行端点号以及X2隧道的下行端点号。Generate the downlink endpoint number of the S1 tunnel and the downlink endpoint number of the X2 tunnel.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

根据所述上下文消息以及所述第二承载信息,创建所述第一网络设备的第一基站与所述第一网络设备的第一SGW之间的会话。According to the context message and the second bearer information, a session is created between the first base station of the first network device and the first SGW of the first network device.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

通过收发机104向所述第二MME发送第二应答消息,所述第二应答消息包括:所述第二承载信息、第二安全信息、X2隧道的下行端点号以及第一指示消息;Send a second response message to the second MME through the transceiver 104, where the second response message includes: the second bearer information, the second security information, the downlink endpoint number of the X2 tunnel, and the first indication message;

所述第一指示消息用于指示:所述第二网络设备的第二基站与所述第一网络设备的第一基站建立X2隧道,且指示所述第二基站进行X2隧道切换。The first instruction message is used to instruct the second base station of the second network device to establish an X2 tunnel with the first base station of the first network device, and instruct the second base station to perform X2 tunnel switching.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

控制所述第一网络设备的第一MME向所述第一网络设备的第一SGW发送承载修改消息,所述承载修改消息携带所述终端的下行隧道标识。The first MME that controls the first network device sends a bearer modification message to the first SGW of the first network device, where the bearer modification message carries the downlink tunnel identifier of the terminal.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

通过收发机104向所述NAT网关发送终端的IP地址与MAC的第一映射关系更新请求;Send a first mapping relationship update request between the terminal's IP address and MAC to the NAT gateway through the transceiver 104;

所述第一映射关系更新请求用于指示:将所述终端的第一IP地址映射的第二网络设备中的第二SGW的MAC地址,更新为所述第一网络设备的第一SGW的MAC地址。The first mapping relationship update request is used to instruct: update the MAC address of the second SGW in the second network device to which the first IP address of the terminal is mapped to the MAC address of the first SGW of the first network device. address.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

为所述终端配置第二IP地址;Configure a second IP address for the terminal;

通过收发机104向终端发送IP地址更新指示,所述IP地址更新指示包括所述第二IP地址。An IP address update instruction is sent to the terminal through the transceiver 104, where the IP address update instruction includes the second IP address.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

通过收发机104向所述NAT网关发送终端的IP地址与公网IP的第二映射关系更新请求;Send a second mapping relationship update request between the terminal's IP address and the public network IP to the NAT gateway through the transceiver 104;

所述第二映射关系更新请求用于指示:将所述终端的第一IP地址与公网IP的映射关系更新为所述第二IP地址与公网IP的映射关系。The second mapping relationship update request is used to instruct: update the mapping relationship between the first IP address of the terminal and the public network IP to the mapping relationship between the second IP address and the public network IP.

可选地,所述处理器101执行所述计算机程序时实现以下步骤:Optionally, the processor 101 implements the following steps when executing the computer program:

通过收发机104向第二网络设备发送释放所述终端的指示消息。An instruction message to release the terminal is sent to the second network device through the transceiver 104.

需要说明的是,在图10中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器101代表的一个或多个处理器101和存储器103代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机104可以是多个元件,即包括发送机和收发机,提供用于在传输介质上与各种其他装置通信的单元。处理器101负责管理总线架构和通常的处理,存储器103可以存储处理器101在执行操作时所使用的数据。It should be noted that in Figure 10, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors 101 represented by the processor 101 and various circuits of the memory represented by the memory 103 are linked together. . The bus architecture can also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are all well known in the art and therefore will not be described further herein. The bus interface provides the interface. The transceiver 104 may be a plurality of elements, including a transmitter and a transceiver, providing a unit for communicating with various other devices over a transmission medium. The processor 101 is responsible for managing the bus architecture and general processing, and the memory 103 can store data used by the processor 101 when performing operations.

本领域技术人员可以理解,实现上述实施例的全部或者部分步骤可以通过硬件来完成,也可以通过计算机程序来指示相关的硬件来完成,所述计算机程序包括执行上述方法的部分或者全部步骤的指令;且该计算机程序可以存储于一可读存储介质中,存储介质可以是任何形式的存储介质。Those skilled in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a computer program. The computer program includes instructions for executing part or all of the steps of the above method. ; And the computer program can be stored in a readable storage medium, and the storage medium can be any form of storage medium.

本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现应用于第一网络设备的网络设备之间的切换方法的步骤。Embodiments of the present invention also provide a computer-readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the switching method between network devices applied to the first network device are implemented.

为了更好的实现上述目的,如图11所示,本发明实施例还提供一种网络设备,所述网络设备为第二网络设备,包括收发机114、存储器113、处理器111及存储在存储器上并可在处理器上运行的计算机程序。In order to better achieve the above purpose, as shown in Figure 11, an embodiment of the present invention also provides a network device. The network device is a second network device, including a transceiver 114, a memory 113, a processor 111 and a device stored in the memory. A computer program that runs on a processor.

存储器113通过总线接口112与所述处理器111相连接,所述存储器113用于存储所述处理器111在执行操作时所使用的程序和数据,当处理器111调用并执行所述存储器113中所存储的程序和数据时,执行上述网络设备之间的切换方法的步骤。The memory 113 is connected to the processor 111 through the bus interface 112. The memory 113 is used to store programs and data used by the processor 111 when executing operations. When the processor 111 calls and executes the memory 113 The steps of the above method for switching between network devices are performed when the stored programs and data are stored.

其中,收发机114与总线接口112连接,用于在处理器111的控制下接收和发送数据。具体地,处理器111执行计算机程序时实现以下步骤:Among them, the transceiver 114 is connected to the bus interface 112 and is used to receive and send data under the control of the processor 111. Specifically, the processor 111 implements the following steps when executing the computer program:

通过收发机114向第一网络设备发送针对终端的网络设备切换请求消息,以使所述第一网络设备根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;Send a network device switching request message for the terminal to the first network device through the transceiver 114, so that the first network device sends an Address Resolution Protocol ARP update request to the NAT gateway according to the network device switching request message;

所述更新请求包括:终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新的IP地址与公网IP的映射关系。The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP.

可选地,所述处理器111执行所述计算机程序时实现以下步骤:Optionally, the processor 111 implements the following steps when executing the computer program:

根据操作维护中心OMC配置的可切换的通信设备列表选择待切换的目标通信设备,所述目标通信设备为第一通信设备。The target communication device to be switched is selected according to the switchable communication device list configured by the operation and maintenance center OMC, and the target communication device is the first communication device.

可选地,所述处理器111执行所述计算机程序时实现以下步骤:Optionally, the processor 111 implements the following steps when executing the computer program:

通过收发机114向第一网络设备发送切换请求消息,所述切换请求消息包括:所述终端的原传输路径信息,以使所述第一网络设备根据所述切换请求消息,生成用于切换的更新的路径信息。A handover request message is sent to the first network device through the transceiver 114. The handover request message includes: the original transmission path information of the terminal, so that the first network device generates a switch for handover according to the handover request message. Updated path information.

可选地,所述处理器111执行所述计算机程序时实现以下步骤:Optionally, the processor 111 implements the following steps when executing the computer program:

通过所述第二网络设备的第二基站向所述第一网络设备发送第一切换请求消息,所述第一切换请求消息包括:第二网络设备的第二MME的地址信息、所述终端的目标承载的第一承载信息以及第一安全信息。A first handover request message is sent to the first network device through the second base station of the second network device. The first handover request message includes: the address information of the second MME of the second network device, the address information of the terminal The first bearer information and the first security information carried by the target.

可选地,所述处理器111执行所述计算机程序时实现以下步骤:Optionally, the processor 111 implements the following steps when executing the computer program:

通过第二MME接收所述第一网络设备发送的终端的上下文获取请求;Receive, through the second MME, the context acquisition request of the terminal sent by the first network device;

向所述第一网络设备发送所述终端的上下文消息,所述上下文消息包括:终端的国际移动用户识别码IMSI和终端的第一IP地址。Send a context message of the terminal to the first network device, where the context message includes: the International Mobile Subscriber Identity IMSI of the terminal and the first IP address of the terminal.

可选地,所述处理器111执行所述计算机程序时实现以下步骤:Optionally, the processor 111 implements the following steps when executing the computer program:

通过所述第二基站接收所述第一网络设备发送的第一应答消息,所述第一应答消息包括:X2隧道的下行端点号以及第二承载信息。The first response message sent by the first network device is received through the second base station, where the first response message includes: the downlink endpoint number of the X2 tunnel and the second bearer information.

可选地,所述处理器111执行所述计算机程序时实现以下步骤:Optionally, the processor 111 implements the following steps when executing the computer program:

通过所述第二网络设备的第二基站向所述第二网络设备的第二MME发送第二切换请求消息;Send a second handover request message to the second MME of the second network device through the second base station of the second network device;

将所述第二切换请求消息发送至所述第一网络设备,所述第二切换请求消息包括:终端的上下文消息,所述上下文消息包括:所述终端的目标承载的第一承载信息、第一安全信息、终端的国际移动用户识别码IMSI以及终端的第一IP地址。The second handover request message is sent to the first network device, the second handover request message includes: a context message of the terminal, the context message includes: the first bearer information of the target bearer of the terminal, the third 1. Security information, the terminal’s International Mobile Subscriber Identity IMSI and the terminal’s first IP address.

可选地,所述处理器111执行所述计算机程序时实现以下步骤:Optionally, the processor 111 implements the following steps when executing the computer program:

通过所述第二MME接收所述第一网络设备发送的第二应答消息,所述第二应答消息包括:第二承载信息、第二安全信息、X2隧道的下行端点号以及第一指示消息;Receive, through the second MME, a second response message sent by the first network device, where the second response message includes: second bearer information, second security information, the downlink endpoint number of the X2 tunnel, and a first indication message;

将所述第一指示消息发送至所述第二基站;Send the first indication message to the second base station;

所述第一指示消息用于指示:所述第二基站与所述第一网络设备的第一基站建立X2隧道,且指示所述第二基站进行X2隧道切换。The first instruction message is used to instruct the second base station to establish an X2 tunnel with the first base station of the first network device, and instruct the second base station to perform X2 tunnel switching.

可选地,所述处理器111执行所述计算机程序时实现以下步骤:Optionally, the processor 111 implements the following steps when executing the computer program:

接收释放所述终端的指示消息;Receive an instruction message to release the terminal;

根据所述指示消息删除与所述终端的会话。Delete the session with the terminal according to the instruction message.

可选地,所述处理器111执行所述计算机程序时实现以下步骤:Optionally, the processor 111 implements the following steps when executing the computer program:

保留不分配所述终端的第一IP地址预设时长。The first IP address of the terminal is not allocated for a preset period of time.

需要说明的是,在图11中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器111代表的一个或多个处理器111和存储器113代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机114可以是多个元件,即包括发送机和收发机,提供用于在传输介质上与各种其他装置通信的单元。处理器111负责管理总线架构和通常的处理,存储器113可以存储处理器111在执行操作时所使用的数据。It should be noted that in Figure 11, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors 111 represented by the processor 111 and various circuits of the memory represented by the memory 113 are linked together. . The bus architecture can also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are all well known in the art and therefore will not be described further herein. The bus interface provides the interface. The transceiver 114 may be a plurality of elements, including a transmitter and a transceiver, providing a unit for communicating with various other devices over a transmission medium. The processor 111 is responsible for managing the bus architecture and general processing, and the memory 113 can store data used by the processor 111 when performing operations.

本领域技术人员可以理解,实现上述实施例的全部或者部分步骤可以通过硬件来完成,也可以通过计算机程序来指示相关的硬件来完成,所述计算机程序包括执行上述方法的部分或者全部步骤的指令;且该计算机程序可以存储于一可读存储介质中,存储介质可以是任何形式的存储介质。Those skilled in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a computer program. The computer program includes instructions for executing part or all of the steps of the above method. ; And the computer program can be stored in a readable storage medium, and the storage medium can be any form of storage medium.

本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现应用于第二网络设备的网络设备之间的切换方法的步骤。且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention also provide a computer-readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the switching method between network devices applied to the second network device are implemented. And can achieve the same technical effect. To avoid repetition, they will not be described again here. Wherein, the computer-readable storage medium is such as read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.

此外,需要指出的是,在本发明的装置和方法中,显然,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本发明的等效方案。并且,执行上述系列处理的步骤可以自然地按照说明的顺序按时间顺序执行,但是并不需要一定按照时间顺序执行,某些步骤可以并行或彼此独立地执行。对本领域的普通技术人员而言,能够理解本发明的方法和装置的全部或者任何步骤或者部件,可以在任何计算装置(包括处理器、存储介质等)或者计算装置的网络中,以硬件、固件、软件或者它们的组合加以实现,这是本领域普通技术人员在阅读了本发明的说明的情况下运用他们的基本编程技能就能实现的。In addition, it should be pointed out that in the device and method of the present invention, obviously, each component or each step can be decomposed and/or recombined. These decompositions and/or recombinations should be regarded as equivalent solutions of the present invention. Furthermore, the steps for executing the above series of processes can naturally be executed in chronological order in the order described, but they do not necessarily need to be executed in chronological order, and some steps may be executed in parallel or independently of each other. For those of ordinary skill in the art, it can be understood that all or any steps or components of the method and device of the present invention can be implemented in any computing device (including processor, storage medium, etc.) or a network of computing devices in the form of hardware or firmware. , software or their combination, this can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.

因此,本发明的目的还可以通过在任何计算装置上运行一个程序或者一组程序来实现。所述计算装置可以是公知的通用装置。因此,本发明的目的也可以仅仅通过提供包含实现所述方法或者装置的程序代码的程序产品来实现。也就是说,这样的程序产品也构成本发明,并且存储有这样的程序产品的存储介质也构成本发明。显然,所述存储介质可以是任何公知的存储介质或者将来所开发出来的任何存储介质。还需要指出的是,在本发明的装置和方法中,显然,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本发明的等效方案。并且,执行上述系列处理的步骤可以自然地按照说明的顺序按时间顺序执行,但是并不需要一定按照时间顺序执行。某些步骤可以并行或彼此独立地执行。Therefore, the objects of the invention can also be achieved by running a program or a set of programs on any computing device. The computing device may be a well-known general-purpose device. Therefore, the object of the present invention can also be achieved only by providing a program product containing a program code for implementing the method or apparatus. That is, such a program product also constitutes the present invention, and a storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium may be any known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, obviously, each component or each step can be decomposed and/or recombined. These decompositions and/or recombinations should be regarded as equivalent solutions of the present invention. Furthermore, the steps for executing the above series of processes can naturally be executed in chronological order in the order described, but do not necessarily need to be executed in chronological order. Certain steps can be performed in parallel or independently of each other.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is the preferred embodiment of the present invention. It should be pointed out that for those of ordinary skill in the art, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications can also be made. should be regarded as the protection scope of the present invention.

Claims (26)

Translated fromChinese
1.一种网络设备切换方法,应用于第一网络设备,其特征在于,包括:1. A network device switching method, applied to the first network device, characterized in that it includes:获取针对终端的网络设备切换请求消息;Obtain the network device switching request message for the terminal;根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;According to the network device switching request message, send an Address Resolution Protocol ARP update request to the NAT gateway;所述更新请求包括:与终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新IP地址与公网IP的映射关系;The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP;其中,所述第一网络设备是终端欲切换的目的网络设备,所述第一网络设备是聚集了轻量核心网能力的基站;Wherein, the first network device is the destination network device that the terminal wants to switch to, and the first network device is a base station that aggregates lightweight core network capabilities;所述获取针对终端的网络设备切换请求消息包括:The obtaining the network device switching request message for the terminal includes:接收第二网络设备发送的切换请求消息,所述切换请求消息包括:所述终端的原传输路径信息;Receive a switching request message sent by the second network device, where the switching request message includes: the original transmission path information of the terminal;根据所述切换请求消息,生成用于切换的更新的路径信息;Generate updated path information for handover according to the handover request message;所述接收第二网络设备发送的切换请求消息,包括:The receiving the handover request message sent by the second network device includes:接收由第二网络设备的第二基站发送的第一切换请求消息,所述第一切换请求消息包括:第二网络设备的第二MME的地址信息、所述终端的目标承载的第一承载信息以及第一安全信息;Receive a first handover request message sent by the second base station of the second network device, the first handover request message including: address information of the second MME of the second network device, and first bearer information of the target bearer of the terminal. and first safety information;所述根据所述切换请求消息,生成用于切换的更新的路径信息,包括:Generating updated path information for handover according to the handover request message includes:根据所述第一切换请求消息生成第二承载信息和第二安全信息;Generate second bearer information and second security information according to the first handover request message;生成用于切换的S1隧道的下行端点号以及X2隧道的下行端点号;Generate the downlink endpoint number of the S1 tunnel and the downlink endpoint number of the X2 tunnel for handover;或者,or,所述接收第二网络设备发送的切换请求消息,包括:The receiving the handover request message sent by the second network device includes:接收由第二网络设备的第二MME发送的第二切换请求消息,所述第二切换请求消息包括:终端的上下文消息,所述上下文消息包括:所述终端的目标承载的第一承载信息、第一安全信息、终端的国际移动用户识别码IMSI以及终端的第一IP地址;Receive a second handover request message sent by the second MME of the second network device, the second handover request message including: a context message of the terminal, the context message including: first bearer information of a target bearer of the terminal, The first security information, the terminal’s International Mobile Subscriber Identity IMSI and the terminal’s first IP address;所述根据所述切换请求消息,生成用于切换的更新的路径信息,包括:Generating updated path information for handover according to the handover request message includes:根据所述第二切换请求消息生成S1隧道的上行端点号;Generate the uplink endpoint number of the S1 tunnel according to the second handover request message;根据所述第二切换请求消息和所述S1隧道的上行端点号,生成第二承载信息和第二安全信息;Generate second bearer information and second security information according to the second handover request message and the uplink endpoint number of the S1 tunnel;生成S1隧道的下行端点号以及X2隧道的下行端点号。Generate the downlink endpoint number of the S1 tunnel and the downlink endpoint number of the X2 tunnel.2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that, the method further comprises:向所述第二网络设备的第二MME发送终端的上下文获取请求;Send a context acquisition request of the terminal to the second MME of the second network device;接收所述第二MME发送的终端的上下文消息,所述上下文消息包括:终端的国际移动用户识别码IMSI和终端的第一IP地址。Receive a context message of the terminal sent by the second MME, where the context message includes: the International Mobile Subscriber Identity IMSI of the terminal and the first IP address of the terminal.3.根据权利要求1所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1, characterized in that, the method further comprises:向所述第二基站发送第一应答消息,所述第一应答消息包括:所述X2隧道的下行端点号以及所述第二承载信息。Send a first response message to the second base station, where the first response message includes: the downlink endpoint number of the X2 tunnel and the second bearer information.4.根据权利要求2所述的方法,其特征在于,所述获取针对终端的网络设备切换请求消息之后,所述方法还包括:4. The method according to claim 2, characterized in that after obtaining the network device switching request message for the terminal, the method further includes:根据所述上下文消息、所述S1隧道的下行端点号以及所述第二承载信息,创建所述第一网络设备的第一基站与所述第一网络设备的第一SGW之间的会话。According to the context message, the downlink endpoint number of the S1 tunnel and the second bearer information, a session is created between the first base station of the first network device and the first SGW of the first network device.5.根据权利要求2所述的方法,其特征在于,所述获取针对终端的网络设备切换请求消息之后,所述方法还包括:5. The method according to claim 2, characterized in that after obtaining the network device switching request message for the terminal, the method further includes:生成S1隧道的上行端点号与S1承载;Generate the upstream endpoint number and S1 bearer of the S1 tunnel;根据所述上下文消息和所述S1隧道的上行端点号,建立第二承载与S1承载的映射关系。According to the context message and the uplink endpoint number of the S1 tunnel, a mapping relationship between the second bearer and the S1 bearer is established.6.根据权利要求2所述的方法,其特征在于,获取针对终端的网络设备切换请求消息之后,所述方法还包括:6. The method according to claim 2, characterized in that after obtaining the network device switching request message for the terminal, the method further includes:为所述终端配置第二IP地址;Configure a second IP address for the terminal;生成S1隧道的上行端点号与S1承载;Generate the upstream endpoint number and S1 bearer of the S1 tunnel;根据所述上下文消息、所述S1隧道的上行端点号以及所述第二IP地址,建立第二承载与S1承载的映射关系。According to the context message, the uplink endpoint number of the S1 tunnel, and the second IP address, a mapping relationship between the second bearer and the S1 bearer is established.7.根据权利要求6所述的方法,其特征在于,所述方法还包括:7. The method according to claim 6, characterized in that the method further comprises:向终端发送IP地址更新指示,所述IP地址更新指示包括所述第二IP地址。Send an IP address update instruction to the terminal, where the IP address update instruction includes the second IP address.8.根据权利要求1所述的方法,其特征在于,所述方法还包括:8. The method according to claim 1, characterized in that, the method further comprises:根据所述上下文消息以及所述第二承载信息,创建所述第一网络设备的第一基站与所述第一网络设备的第一SGW之间的会话。According to the context message and the second bearer information, a session is created between the first base station of the first network device and the first SGW of the first network device.9.根据权利要求1所述的方法,其特征在于,所述方法还包括:9. The method according to claim 1, characterized in that, the method further comprises:向所述第二MME发送第二应答消息,所述第二应答消息包括:所述第二承载信息、第二安全信息、X2隧道的下行端点号以及第一指示消息;Send a second response message to the second MME, where the second response message includes: the second bearer information, second security information, the downlink endpoint number of the X2 tunnel, and the first indication message;所述第一指示消息用于指示:所述第二网络设备的第二基站与所述第一网络设备的第一基站建立X2隧道,且指示所述第二基站进行X2隧道切换。The first instruction message is used to instruct the second base station of the second network device to establish an X2 tunnel with the first base station of the first network device, and instruct the second base station to perform X2 tunnel switching.10.根据权利要求1所述的方法,其特征在于,所述方法还包括:10. The method according to claim 1, characterized in that, the method further comprises:控制所述第一网络设备的第一MME向所述第一网络设备的第一SGW发送承载修改消息,所述承载修改消息携带所述终端的下行隧道标识。The first MME that controls the first network device sends a bearer modification message to the first SGW of the first network device, where the bearer modification message carries the downlink tunnel identifier of the terminal.11.根据权利要求1或2所述的方法,其特征在于,所述根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求,包括:11. The method according to claim 1 or 2, characterized in that, sending an address resolution protocol ARP update request to the NAT gateway according to the network device switching request message includes:向所述NAT网关发送终端的IP地址与MAC的第一映射关系更新请求;Send a first mapping relationship update request between the terminal's IP address and MAC to the NAT gateway;所述第一映射关系更新请求用于指示:将所述终端的第一IP地址映射的第二网络设备中的第二SGW的MAC地址,更新为所述第一网络设备的第一SGW的MAC地址。The first mapping relationship update request is used to instruct: update the MAC address of the second SGW in the second network device to which the first IP address of the terminal is mapped to the MAC address of the first SGW of the first network device. address.12.根据权利要求1所述的方法,其特征在于,所述方法还包括:12. The method of claim 1, further comprising:为所述终端配置第二IP地址;Configure a second IP address for the terminal;向终端发送IP地址更新指示,所述IP地址更新指示包括所述第二IP地址。Send an IP address update instruction to the terminal, where the IP address update instruction includes the second IP address.13.根据权利要求6或12所述的方法,其特征在于,所述根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求,包括:13. The method according to claim 6 or 12, characterized in that, sending an address resolution protocol ARP update request to the NAT gateway according to the network device switching request message includes:向所述NAT网关发送终端的IP地址与公网IP的第二映射关系更新请求;Send a second mapping relationship update request between the terminal's IP address and the public network IP to the NAT gateway;所述第二映射关系更新请求用于指示:将所述终端的第一IP地址与公网IP的映射关系更新为所述第二IP地址与公网IP的映射关系。The second mapping relationship update request is used to instruct: update the mapping relationship between the first IP address of the terminal and the public network IP to the mapping relationship between the second IP address and the public network IP.14.根据权利要求1所述的方法,其特征在于,所述方法还包括:14. The method of claim 1, further comprising:向第二网络设备发送释放所述终端的指示消息。Send an instruction message to release the terminal to the second network device.15.一种网络设备切换方法,应用于第二网络设备,其特征在于,包括:15. A network device switching method, applied to the second network device, characterized in that it includes:向第一网络设备发送针对终端的网络设备切换请求消息,以使所述第一网络设备根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;Send a network device switching request message for the terminal to the first network device, so that the first network device sends an Address Resolution Protocol ARP update request to the NAT gateway according to the network device switching request message;所述更新请求包括:终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新的IP地址与公网IP的映射关系;The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP;其中,所述第一网络设备是终端欲切换的目的网络设备,所述第二网络设备为终端当前连接的源网络设备;所述第一网络设备和所述第二网络设备是聚集了轻量核心网能力的基站;Wherein, the first network device is the destination network device that the terminal wants to switch to, and the second network device is the source network device that the terminal is currently connected to; the first network device and the second network device are lightweight Base stations with core network capabilities;所述向第一网络设备发送针对终端的网络设备切换请求消息,包括:The sending a network device switching request message for the terminal to the first network device includes:向第一网络设备发送切换请求消息,所述切换请求消息包括:所述终端的原传输路径信息,以使所述第一网络设备根据所述切换请求消息,生成用于切换的更新的路径信息;Send a handover request message to the first network device, where the handover request message includes: the original transmission path information of the terminal, so that the first network device generates updated path information for handover according to the handover request message. ;所述向第一网络设备发送切换请求消息,包括:The sending a handover request message to the first network device includes:通过所述第二网络设备的第二基站向所述第一网络设备发送第一切换请求消息,所述第一切换请求消息包括:第二网络设备的第二MME的地址信息、所述终端的目标承载的第一承载信息以及第一安全信息;所述第一切换请求消息用于生成第二承载信息、第二安全信息、用于切换的S1隧道的下行端点号以及X2隧道的下行端点号;A first handover request message is sent to the first network device through the second base station of the second network device. The first handover request message includes: the address information of the second MME of the second network device, the address information of the terminal The first bearer information and the first security information of the target bearer; the first handover request message is used to generate the second bearer information, the second security information, the downlink endpoint number of the S1 tunnel and the downlink endpoint number of the X2 tunnel for handover. ;或者,or,所述向第一网络设备发送切换请求消息,包括:The sending a handover request message to the first network device includes:通过所述第二网络设备的第二基站向所述第二网络设备的第二MME发送第二切换请求消息;Send a second handover request message to the second MME of the second network device through the second base station of the second network device;将所述第二切换请求消息发送至所述第一网络设备,所述第二切换请求消息包括:终端的上下文消息,所述上下文消息包括:所述终端的目标承载的第一承载信息、第一安全信息、终端的国际移动用户识别码IMSI以及终端的第一IP地址;所述第二切换请求消息用于生成S1隧道的上行端点号、第二承载信息、第二安全信息、S1隧道的下行端点号以及X2隧道的下行端点号。The second handover request message is sent to the first network device, the second handover request message includes: a context message of the terminal, the context message includes: the first bearer information of the target bearer of the terminal, the third a security information, the International Mobile Subscriber Identity IMSI of the terminal and the first IP address of the terminal; the second handover request message is used to generate the uplink endpoint number of the S1 tunnel, the second bearer information, the second security information, and the The downstream endpoint number and the downstream endpoint number of the X2 tunnel.16.根据权利要求15所述的方法,其特征在于,在向第一网络设备发送针对终端的网络设备切换请求消息之前,所述方法还包括:16. The method according to claim 15, characterized in that before sending a network device switching request message for the terminal to the first network device, the method further includes:根据操作维护中心OMC配置的可切换的通信设备列表选择待切换的目标通信设备,所述目标通信设备为第一通信设备。The target communication device to be switched is selected according to the switchable communication device list configured by the operation and maintenance center OMC, and the target communication device is the first communication device.17.根据权利要求15所述的方法,其特征在于,所述方法还包括:17. The method according to claim 15, characterized in that the method further comprises:通过第二MME接收所述第一网络设备发送的终端的上下文获取请求;Receive, through the second MME, the context acquisition request of the terminal sent by the first network device;向所述第一网络设备发送所述终端的上下文消息,所述上下文消息包括:终端的国际移动用户识别码IMSI和终端的第一IP地址。Send a context message of the terminal to the first network device, where the context message includes: the International Mobile Subscriber Identity IMSI of the terminal and the first IP address of the terminal.18.根据权利要求17所述的方法,其特征在于,所述方法还包括:18. The method according to claim 17, characterized in that, the method further comprises:通过所述第二基站接收所述第一网络设备发送的第一应答消息,所述第一应答消息包括:X2隧道的下行端点号以及第二承载信息。The first response message sent by the first network device is received through the second base station, where the first response message includes: the downlink endpoint number of the X2 tunnel and the second bearer information.19.根据权利要求15所述的方法,其特征在于,所述方法还包括:19. The method of claim 15, further comprising:通过所述第二MME接收所述第一网络设备发送的第二应答消息,所述第二应答消息包括:第二承载信息、第二安全信息、X2隧道的下行端点号以及第一指示消息;Receive, through the second MME, a second response message sent by the first network device, where the second response message includes: second bearer information, second security information, the downlink endpoint number of the X2 tunnel, and a first indication message;将所述第一指示消息发送至所述第二基站;Send the first indication message to the second base station;所述第一指示消息用于指示:所述第二基站与所述第一网络设备的第一基站建立X2隧道,且指示所述第二基站进行X2隧道切换。The first instruction message is used to instruct the second base station to establish an X2 tunnel with the first base station of the first network device, and instruct the second base station to perform X2 tunnel switching.20.根据权利要求15所述的方法,其特征在于,所述方法还包括:20. The method of claim 15, further comprising:接收释放所述终端的指示消息;Receive an instruction message to release the terminal;根据所述指示消息删除与所述终端的会话。Delete the session with the terminal according to the instruction message.21.根据权利要求20所述的方法,其特征在于,在根据所述指示消息删除与所述终端的会话之后,所述方法还包括:21. The method according to claim 20, characterized in that, after deleting the session with the terminal according to the instruction message, the method further includes:保留不分配所述终端的第一IP地址预设时长。The first IP address of the terminal is not allocated for a preset period of time.22.一种网络设备,所述网络设备为第一网络设备,其特征在于,包括:22. A network device, the network device is a first network device, characterized in that it includes:第一获取模块,用于获取针对终端的网络设备切换请求消息;The first acquisition module is used to acquire the network device switching request message for the terminal;第一发送模块,用于根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;The first sending module is configured to send an address resolution protocol ARP update request to the NAT gateway according to the network device switching request message;所述更新请求包括:与终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新IP地址与公网IP的映射关系;The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP;其中,所述第一网络设备是终端欲切换的目的网络设备,所述第一网络设备是聚集了轻量核心网能力的基站;Wherein, the first network device is the destination network device that the terminal wants to switch to, and the first network device is a base station that aggregates lightweight core network capabilities;所述第一获取模块包括:The first acquisition module includes:第一接收单元,用于接收第二网络设备发送的切换请求消息,所述切换请求消息包括:所述终端的原传输路径信息;The first receiving unit is configured to receive a switching request message sent by the second network device, where the switching request message includes: the original transmission path information of the terminal;第一生成单元,用于根据所述切换请求消息,生成用于切换的更新的路径信息;A first generating unit configured to generate updated path information for handover according to the handover request message;所述第一接收单元具体用:接收由第二网络设备的第二基站发送的第一切换请求消息,所述第一切换请求消息包括:第二网络设备的第二MME的地址信息、所述终端的目标承载的第一承载信息以及第一安全信息;The first receiving unit is specifically used to receive a first handover request message sent by the second base station of the second network device. The first handover request message includes: the address information of the second MME of the second network device, the The first bearer information and the first security information of the terminal's target bearer;所述第一生成单元具体用于:根据所述第一切换请求消息生成第二承载信息和第二安全信息;The first generating unit is specifically configured to: generate second bearer information and second security information according to the first handover request message;生成用于切换的S1隧道的下行端点号以及X2隧道的下行端点号;Generate the downlink endpoint number of the S1 tunnel and the downlink endpoint number of the X2 tunnel for handover;或者,or,所述第一接收单元具体用:接收由第二网络设备的第二MME发送的第二切换请求消息,所述第二切换请求消息包括:终端的上下文消息,所述上下文消息包括:所述终端的目标承载的第一承载信息、第一安全信息、终端的国际移动用户识别码IMSI以及终端的第一IP地址;The first receiving unit is specifically used to: receive a second handover request message sent by the second MME of the second network device, the second handover request message includes: a context message of the terminal, and the context message includes: the terminal The first bearer information, the first security information of the target bearer, the International Mobile Subscriber Identity IMSI of the terminal and the first IP address of the terminal;所述第一生成单元具体用于:The first generation unit is specifically used for:根据所述第二切换请求消息生成S1隧道的上行端点号;Generate the uplink endpoint number of the S1 tunnel according to the second handover request message;根据所述第二切换请求消息和所述S1隧道的上行端点号,生成第二承载信息和第二安全信息;Generate second bearer information and second security information according to the second handover request message and the uplink endpoint number of the S1 tunnel;生成S1隧道的下行端点号以及X2隧道的下行端点号。Generate the downlink endpoint number of the S1 tunnel and the downlink endpoint number of the X2 tunnel.23.一种网络设备,所述网络设备为第二网络设备,其特征在于,包括:23. A network device, the network device is a second network device, characterized in that it includes:第二发送模块,用于向第一网络设备发送针对终端的网络设备切换请求消息,以使所述第一网络设备根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;The second sending module is configured to send a network device switching request message for the terminal to the first network device, so that the first network device sends an Address Resolution Protocol ARP update request to the NAT gateway according to the network device switching request message;所述更新请求包括:终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新的IP地址与公网IP的映射关系;The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP;其中,所述第一网络设备是终端欲切换的目的网络设备,所述第二网络设备为终端当前连接的源网络设备;所述第一网络设备和所述第二网络设备是聚集了轻量核心网能力的基站;Wherein, the first network device is the destination network device that the terminal wants to switch to, and the second network device is the source network device that the terminal is currently connected to; the first network device and the second network device are lightweight Base stations with core network capabilities;所述第二发送模块包括:The second sending module includes:第一发送单元,用于向第一网络设备发送切换请求消息,所述切换请求消息包括:所述终端的原传输路径信息,以使所述第一网络设备根据所述切换请求消息,生成用于切换的更新的路径信息;The first sending unit is configured to send a switching request message to the first network device, where the switching request message includes: the original transmission path information of the terminal, so that the first network device generates a username based on the switching request message. Updated path information for switching;所述第一发送单元具体用于:The first sending unit is specifically used for:通过所述第二网络设备的第二基站向所述第一网络设备发送第一切换请求消息,所述第一切换请求消息包括:第二网络设备的第二MME的地址信息、所述终端的目标承载的第一承载信息以及第一安全信息;所述第一切换请求消息用于生成第二承载信息、第二安全信息、用于切换的S1隧道的下行端点号以及X2隧道的下行端点号;A first handover request message is sent to the first network device through the second base station of the second network device. The first handover request message includes: the address information of the second MME of the second network device, the address information of the terminal The first bearer information and the first security information of the target bearer; the first handover request message is used to generate the second bearer information, the second security information, the downlink endpoint number of the S1 tunnel and the downlink endpoint number of the X2 tunnel for handover. ;或者,or,所述第一发送单元具体用于:The first sending unit is specifically used for:通过所述第二网络设备的第二基站向所述第二网络设备的第二MME发送第二切换请求消息;Send a second handover request message to the second MME of the second network device through the second base station of the second network device;将所述第二切换请求消息发送至所述第一网络设备,所述第二切换请求消息包括:终端的上下文消息,所述上下文消息包括:所述终端的目标承载的第一承载信息、第一安全信息、终端的国际移动用户识别码IMSI以及终端的第一IP地址;所述第二切换请求消息用于生成S1隧道的上行端点号、第二承载信息、第二安全信息、S1隧道的下行端点号以及X2隧道的下行端点号。The second handover request message is sent to the first network device, the second handover request message includes: a context message of the terminal, the context message includes: the first bearer information of the target bearer of the terminal, the third a security information, the International Mobile Subscriber Identity IMSI of the terminal and the first IP address of the terminal; the second handover request message is used to generate the uplink endpoint number of the S1 tunnel, the second bearer information, the second security information, and the The downstream endpoint number and the downstream endpoint number of the X2 tunnel.24.一种网络设备,所述网络设备为第一网络设备,包括:收发机、存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现以下步骤:24. A network device, the network device is a first network device, including: a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor The following steps are performed when executing the computer program:获取针对终端的网络设备切换请求消息;Obtain the network device switching request message for the terminal;根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;According to the network device switching request message, send an Address Resolution Protocol ARP update request to the NAT gateway;所述更新请求包括:与终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新IP地址与公网IP的映射关系;The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP;其中,所述第一网络设备是终端欲切换的目的网络设备,所述第一网络设备是聚集了轻量核心网能力的基站;Wherein, the first network device is the destination network device that the terminal wants to switch to, and the first network device is a base station that aggregates lightweight core network capabilities;所述处理器执行所述计算机程序时实现以下步骤:The processor implements the following steps when executing the computer program:通过收发机接收第二网络设备发送的切换请求消息,所述切换请求消息包括:所述终端的原传输路径信息;根据所述切换请求消息,生成用于切换的更新的路径信息;Receive a switching request message sent by the second network device through the transceiver, where the switching request message includes: the original transmission path information of the terminal; generate updated path information for switching according to the switching request message;所述处理器执行所述计算机程序时实现以下步骤:The processor implements the following steps when executing the computer program:通过收发机接收由第二网络设备的第二基站发送的第一切换请求消息,所述第一切换请求消息包括:第二网络设备的第二MME的地址信息、所述终端的目标承载的第一承载信息以及第一安全信息;The first handover request message sent by the second base station of the second network device is received through the transceiver. The first handover request message includes: the address information of the second MME of the second network device, the third target bearer of the terminal. 1. Carrying information and first security information;根据所述第一切换请求消息生成第二承载信息和第二安全信息;Generate second bearer information and second security information according to the first handover request message;生成用于切换的S1隧道的下行端点号以及X2隧道的下行端点号;Generate the downlink endpoint number of the S1 tunnel and the downlink endpoint number of the X2 tunnel for handover;或者,or,通过收发机接收由第二网络设备的第二MME发送的第二切换请求消息,所述第二切换请求消息包括:终端的上下文消息,所述上下文消息包括:所述终端的目标承载的第一承载信息、第一安全信息、终端的国际移动用户识别码IMSI以及终端的第一IP地址;A second handover request message sent by the second MME of the second network device is received through the transceiver. The second handover request message includes: a context message of the terminal, and the context message includes: the first target bearer of the terminal. Bearer information, first security information, the terminal’s International Mobile Subscriber Identity IMSI and the terminal’s first IP address;根据所述第二切换请求消息生成S1隧道的上行端点号;Generate the uplink endpoint number of the S1 tunnel according to the second handover request message;根据所述第二切换请求消息和所述S1隧道的上行端点号,生成第二承载信息和第二安全信息;Generate second bearer information and second security information according to the second handover request message and the uplink endpoint number of the S1 tunnel;生成S1隧道的下行端点号以及X2隧道的下行端点号。Generate the downlink endpoint number of the S1 tunnel and the downlink endpoint number of the X2 tunnel.25.一种网络设备,所述网络设备为第二网络设备,包括:收发机、存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现以下步骤:25. A network device, the network device is a second network device, including: a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor The following steps are performed when executing the computer program:向第一网络设备发送针对终端的网络设备切换请求消息,以使所述第一网络设备根据所述网络设备切换请求消息,向NAT网关发送地址解析协议ARP更新请求;Send a network device switching request message for the terminal to the first network device, so that the first network device sends an Address Resolution Protocol ARP update request to the NAT gateway according to the network device switching request message;所述更新请求包括:终端的原IP地址对应的更新的介质访问控制MAC地址,或者,终端的更新的IP地址与公网IP的映射关系;The update request includes: an updated media access control MAC address corresponding to the original IP address of the terminal, or a mapping relationship between the updated IP address of the terminal and the public network IP;其中,所述第一网络设备是终端欲切换的目的网络设备,所述第二网络设备为终端当前连接的源网络设备;所述第一网络设备和所述第二网络设备是聚集了轻量核心网能力的基站;Wherein, the first network device is the destination network device that the terminal wants to switch to, and the second network device is the source network device that the terminal is currently connected to; the first network device and the second network device are lightweight Base stations with core network capabilities;所述处理器执行所述计算机程序时实现以下步骤:通过收发机向第一网络设备发送切换请求消息,所述切换请求消息包括:所述终端的原传输路径信息,以使所述第一网络设备根据所述切换请求消息,生成用于切换的更新的路径信息;When the processor executes the computer program, the following steps are implemented: sending a switching request message to the first network device through the transceiver, where the switching request message includes: the original transmission path information of the terminal, so that the first network The device generates updated path information for handover according to the handover request message;所述处理器执行所述计算机程序时实现以下步骤:The processor implements the following steps when executing the computer program:通过所述第二网络设备的第二基站向所述第一网络设备发送第一切换请求消息,所述第一切换请求消息包括:第二网络设备的第二MME的地址信息、所述终端的目标承载的第一承载信息以及第一安全信息;所述第一切换请求消息用于生成第二承载信息、第二安全信息、用于切换的S1隧道的下行端点号以及X2隧道的下行端点号;A first handover request message is sent to the first network device through the second base station of the second network device. The first handover request message includes: the address information of the second MME of the second network device, the address information of the terminal The first bearer information and the first security information of the target bearer; the first handover request message is used to generate the second bearer information, the second security information, the downlink endpoint number of the S1 tunnel and the downlink endpoint number of the X2 tunnel for handover. ;或者,or,通过所述第二网络设备的第二基站向所述第二网络设备的第二MME发送第二切换请求消息;Send a second handover request message to the second MME of the second network device through the second base station of the second network device;将所述第二切换请求消息发送至所述第一网络设备,所述第二切换请求消息包括:终端的上下文消息,所述上下文消息包括:所述终端的目标承载的第一承载信息、第一安全信息、终端的国际移动用户识别码IMSI以及终端的第一IP地址;所述第二切换请求消息用于生成S1隧道的上行端点号、第二承载信息、第二安全信息、S1隧道的下行端点号以及X2隧道的下行端点号。The second handover request message is sent to the first network device, the second handover request message includes: a context message of the terminal, the context message includes: the first bearer information of the target bearer of the terminal, the third a security information, the International Mobile Subscriber Identity IMSI of the terminal and the first IP address of the terminal; the second handover request message is used to generate the uplink endpoint number of the S1 tunnel, the second bearer information, the second security information, and the The downstream endpoint number and the downstream endpoint number of the X2 tunnel.26.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该计算机程序被处理器执行时实现如权利要求1至14中任一项所述的网络设备切换方法的步骤,或者实现如权利要求15至21中任一项所述的网络设备切换方法的步骤。26. A computer-readable storage medium with a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of the network device switching method as claimed in any one of claims 1 to 14 are implemented, Or implement the steps of the network device switching method as described in any one of claims 15 to 21.
CN202010783544.5A2020-08-062020-08-06Network equipment switching method and network equipmentActiveCN114079981B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010783544.5ACN114079981B (en)2020-08-062020-08-06Network equipment switching method and network equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010783544.5ACN114079981B (en)2020-08-062020-08-06Network equipment switching method and network equipment

Publications (2)

Publication NumberPublication Date
CN114079981A CN114079981A (en)2022-02-22
CN114079981Btrue CN114079981B (en)2024-02-02

Family

ID=80279615

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010783544.5AActiveCN114079981B (en)2020-08-062020-08-06Network equipment switching method and network equipment

Country Status (1)

CountryLink
CN (1)CN114079981B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114867070B (en)*2022-03-182023-09-15北京佰才邦技术股份有限公司Distributed network switching method and device
CN117041130B (en)*2023-08-242024-04-30宸芯科技股份有限公司Route recovery method and device, access node, star network and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101176293A (en)*2004-11-052008-05-07株式会社东芝 network discovery mechanism
CN101212461A (en)*2006-12-262008-07-02华为技术有限公司 Data transmission method and system during heterogeneous IP network switching, and core network gateway
CN101572928A (en)*2008-04-302009-11-04华为技术有限公司Switching method, communication system and associated equipment
CN102149147A (en)*2010-02-042011-08-10华为技术有限公司Update method of radio bearer and relay station
CN103686888A (en)*2013-12-112014-03-26大唐移动通信设备有限公司Terminal switching method and base station
CN103905571A (en)*2012-12-262014-07-02中国电信股份有限公司Method of updating address information, device and system
WO2014130764A1 (en)*2013-02-222014-08-28Rivada Networks, LlcMethods and systems for dynamic spectrum arbitrage
CN107484187A (en)*2016-06-082017-12-15中国移动通信有限公司研究院 Service processing method, device and base station
CN109586986A (en)*2019-01-292019-04-05杭州迪普科技股份有限公司Method, apparatus, equipment and the storage medium of network equipment switching
CN109587687A (en)*2018-12-042019-04-05西安佰才邦网络技术有限公司Base station equipment and its network-building method
CN109698767A (en)*2018-12-202019-04-30杭州迪普科技股份有限公司A kind of main/standby switching method and device
CN111200851A (en)*2018-11-202020-05-26华为技术有限公司 A data communication method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8891441B2 (en)*2008-09-042014-11-18Intel CorporationL2 tunneling-based low latency single radio handoffs
EP2509345A1 (en)*2011-04-052012-10-10Panasonic CorporationImproved small data transmissions for machine-type-communication (MTC) devices
US9510263B2 (en)*2012-09-122016-11-29Industrial Technology Research InstituteMethod of enhancing handover by using a group handover over a wireless connection and devices therefor

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101176293A (en)*2004-11-052008-05-07株式会社东芝 network discovery mechanism
CN101212461A (en)*2006-12-262008-07-02华为技术有限公司 Data transmission method and system during heterogeneous IP network switching, and core network gateway
CN101572928A (en)*2008-04-302009-11-04华为技术有限公司Switching method, communication system and associated equipment
CN102149147A (en)*2010-02-042011-08-10华为技术有限公司Update method of radio bearer and relay station
CN103905571A (en)*2012-12-262014-07-02中国电信股份有限公司Method of updating address information, device and system
WO2014130764A1 (en)*2013-02-222014-08-28Rivada Networks, LlcMethods and systems for dynamic spectrum arbitrage
CN103686888A (en)*2013-12-112014-03-26大唐移动通信设备有限公司Terminal switching method and base station
CN107484187A (en)*2016-06-082017-12-15中国移动通信有限公司研究院 Service processing method, device and base station
CN111200851A (en)*2018-11-202020-05-26华为技术有限公司 A data communication method and device
CN109587687A (en)*2018-12-042019-04-05西安佰才邦网络技术有限公司Base station equipment and its network-building method
CN109698767A (en)*2018-12-202019-04-30杭州迪普科技股份有限公司A kind of main/standby switching method and device
CN109586986A (en)*2019-01-292019-04-05杭州迪普科技股份有限公司Method, apparatus, equipment and the storage medium of network equipment switching

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Ericsson."Introduction of support for NB-IoT".《SA WG2 Meeting #113AH S2-161124》.2016,全文.*
赵丽花.《城市轨道交通通信工》.中国铁道出版社,2015,第116-118页.*
赵丽花.《城市轨道交通通信工》-版权页.中国铁道出版社,2015,全文.*
黄嘉 ; 聂炜玲 ; 李艳俊 ; 唐晨 ; .5G核心网建设路径选择及部署方案研究.《互联网天地》.2018,全文.*

Also Published As

Publication numberPublication date
CN114079981A (en)2022-02-22

Similar Documents

PublicationPublication DateTitle
KR102371810B1 (en)Method and apparatus for transreceiving data in radio access system supporting multiple radio access technology
JP6536850B2 (en) Communications system
US9967781B2 (en)Apparatus and method for supporting handover
CN105338655B (en) A method and device for user plane bearer establishment
TW201737743A (en) Interact with traditional radio access technology to connect to next-generation core networks
WO2012175053A1 (en)Method、apparatus and system for handover between h(e)nbs
CN105409285B (en) A device and control method for controlling bearer switching
CN104521280A (en)System and method for mobile relay packet gateway relocation for path optimization
CN102724648B (en)A kind of method and system of tunnel information renewal
US20170347251A1 (en)Signaling method in mobile communication core network and system thereof
WO2011026392A1 (en)Method and system for acquiring route strategies
CN106331200A (en) A method for data transmission between nodes, a gateway node and a node
CN102256329B (en)A kind of method and apparatus realizing Route Selection
CN104137646A (en)Data interaction method and device
CN107148061B (en)LTE and WLAN heterogeneous network switching system and method based on SDN
CN114079981B (en)Network equipment switching method and network equipment
CN108307521A (en)Local IP access service implementation method and device, system, home evolved node B
CN102892162B (en)Host base station, relay node equipment and method for enhancing path conversion
WO2016161785A1 (en)Cross-menb switching method and apparatus and base station
CN102088688B (en)Information interaction control method
CN102448185B (en)Remote access method and equipment
CN102256326A (en)Method and device for realizing routing
CN114079980B (en)Switching method and base station equipment
CN105792199A (en)Park business access method, device and system
JP6452800B2 (en) Method, system, apparatus and computer storage medium for realizing hybrid networking

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp