WO2016180217A1 - 一种实现网络切换的方法及装置 - Google Patents

一种实现网络切换的方法及装置 Download PDF

Info

Publication number
WO2016180217A1
WO2016180217A1 PCT/CN2016/080066 CN2016080066W WO2016180217A1 WO 2016180217 A1 WO2016180217 A1 WO 2016180217A1 CN 2016080066 W CN2016080066 W CN 2016080066W WO 2016180217 A1 WO2016180217 A1 WO 2016180217A1
Authority
WO
WIPO (PCT)
Prior art keywords
data link
management unit
connection
network
route
Prior art date
Application number
PCT/CN2016/080066
Other languages
English (en)
French (fr)
Inventor
刘威
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016180217A1 publication Critical patent/WO2016180217A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/18Performing reselection for specific purposes for allowing seamless reselection, e.g. soft reselection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Definitions

  • the present application relates to, but is not limited to, network management technologies, and in particular, a method and apparatus for implementing network switching.
  • 3G/4G network In order to alleviate the pressure of 3G/4G network when operators have third-generation/fourth-generation (3G/4G) networks and wireless local area network (WiFi) networks, they can be offloaded by using WiFi networks.
  • WiFi wireless local area network
  • the operator-customized terminal supports both 3G/4G Internet access and WiFi Internet access.
  • the terminal When the terminal moves to the area with WiFi coverage, it needs to switch from the 3G/4G network to the WiFi network. In order to ensure that the user data service is not affected, it is necessary to switch to the WiFi network when there is no data service on the 3G/4G link. However, in actual use, such switching is basically infeasible. Unless the terminal moves to an area with WiFi coverage, the user stops all Internet services first, so that the user experience is obviously poor, and the expected switching effect is not achieved.
  • the common practice in the related art is: when the terminal moves to the area covered by the WiFi, the uplink directly switches to the WiFi network, and the 3G/4G network is disconnected. Since the purpose of the handover is to use the WiFi network to share the traffic pressure of the LTE (Long Term Evolution) network, such processing ensures the completion of the handover, but causes the interruption of the current data service of the user and reduces the user experience. .
  • LTE Long Term Evolution
  • the present invention provides a method and device for implementing network switching, which can avoid the interruption of current data services and achieve seamless handover while ensuring handover completion, thereby effectively improving the user experience.
  • An embodiment of the present invention provides a method for implementing network switching, including:
  • the method further includes: before the terminal moves to the second network area and needs to switch to the second network, before creating the second data link and establishing the routing table and the connection tracking table based on the second data link, the method further includes :
  • the first data link is created in the first network area, and a routing table and a connection tracking table based on the first data link are respectively established.
  • the establishing a static route based on the first data link according to the currently active connection includes:
  • the deleting the static routing information based on the first data link of all timeouts includes:
  • All the active connections of the first data link are monitored in real time, and when the connection status timeout is detected, the static routing information corresponding to the connection is deleted until all the static routing information based on the first data link is deleted. .
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
  • the embodiment of the present invention further provides an apparatus for implementing network switching, including at least: a first data link management unit, a second data link management unit, a route management unit, and a connection tracking management unit;
  • a second data link management unit configured to: when the terminal moves to the second network area and needs to switch to the second network, create a second data link, and notify the route management unit and the connection tracking management unit respectively;
  • the first data link management unit is configured to: receive a notification from the route management unit, and sell Destroy the established first data link;
  • a routing management unit configured to: when the terminal moves to the second network area and needs to switch to the second network, establish a static route based on the first data link according to the currently active connection from the connection tracking management unit; a routing table of the second data link; deleting the default route of the first data link, establishing a default route with the second data link; receiving a deletion notification of the connection from the connection tracking management unit regarding the timeout, deleting the corresponding connection Static routing information, when all the static routing information based on the first data link is deleted, notifying the first data link management unit; implementing forwarding of the data stream;
  • the connection tracking management unit is configured to: extract the currently active destination Internet Protocol IP address and output it to the routing management unit; establish a connection tracking table based on the second data link; and monitor all active interfaces of the first data link in real time
  • the connection when the terminal moves to the second network area and needs to switch to the second network and detects that the connection status times out, outputs a deletion notification of the connection regarding the timeout to the routing management unit.
  • the first data link management unit is further configured to: create the first data link in the first network area, and notify the route management unit and the connection tracking management unit respectively;
  • the route management unit is further configured to: establish a routing table based on the first data link;
  • connection tracking management unit is further configured to: establish a connection tracking table based on the first data link.
  • the technical solution of the present application includes: creating a second data link; establishing a static route based on the first data link according to the currently active connection; deleting the default route of the first data link, using the second data
  • the link establishes a default route; deletes all static routing information based on the first data link that expires, and destroys the first data link.
  • the method for implementing network switching according to the embodiment of the present invention can be seen that, when the second data link is enabled, the second data link is first extracted, and all active connection information based on the first data link is extracted, and a corresponding static route is established.
  • the data flow of the current processing activity state is guaranteed to be unaffected; by deleting the default route of the first data link, the routing rule with the second data link as the default data link is established, and all new data flows are guaranteed. Routed on the second data link. Moreover, after all the connections based on the first data link are timed out and the static routing rules corresponding to the connections of all the timed active states are deleted, the first data link is disconnected, thus effectively ensuring the switching in the double data link. In the process, while the handover is completed, avoid The interruption of the current data service enables seamless switching, which effectively improves the user experience.
  • FIG. 1 is a flowchart of a method for implementing network switching according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a device for implementing network switching according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart diagram of an optional implementation manner of a method for implementing network switching according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for implementing network handover according to an embodiment of the present invention. It is assumed that a terminal has been in an active state and has a first data link established in the first network area, as shown in FIG. The method includes:
  • Step 100 When the terminal moves to the second network area and needs to switch to the second network, create a second data link and establish a routing table and a connection tracking table based on the second data link.
  • the method may further include: creating the first data link in the first network area; and establishing a routing table and a connection tracking table based on the first data link, respectively.
  • the connection tracking table may include quintuple information of each data stream, that is, a source Internet Protocol (IP) address, a destination IP address, a source port number, a destination port number, a protocol number, and a timeout included. Connection information such as time, connection status (such as connection established or connected or no response).
  • IP Internet Protocol
  • Step 101 When the terminal moves to the second network area and needs to switch to the second network, establish a static route based on the first data link according to the currently active connection; and delete the default route of the first data link, The second data link establishes a default route.
  • Establishing a static route based on the first data link according to the currently active connection in this step may include:
  • the destination Internet Protocol IP address that is currently active is extracted, and a static route based on the first data link is established according to the extracted destination IP address.
  • Step 102 When the terminal moves to the second network area and needs to switch to the second network, all timeout based static data of the first data link is deleted, and the first data link is destroyed. At this time, the first data link is disconnected, and all data services are all switched to the second data link.
  • the static routing information based on the first data link that deletes all timeouts in this step may include:
  • All the active connections of the first data link are monitored in real time, and when the connection status timeout is detected, the static routing information corresponding to the connection is deleted until all the static routing information based on the first data link is deleted.
  • step 101 and step 102 are not strictly defined in time series.
  • the method for implementing network switching can be seen that, when the second data link is enabled, the second data link is first extracted, and all active connection information based on the first data link is extracted, and a corresponding static route is established. In this way, the data flow of the current processing activity state is guaranteed to be unaffected; by deleting the default route of the first data link, the routing rule with the second data link as the default data link is established, and all new data flows are guaranteed. Routed on the second data link. Moreover, after all the connections based on the first data link are timed out and the static routing rules corresponding to the connections of all the timed active states are deleted, the first data link is disconnected, thus effectively ensuring the switching in the double data link. In the process, while the handover is completed, the interruption of the current data service is avoided, and seamless handover is realized, thereby effectively improving the user experience.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
  • the device includes at least: a first data link management unit, a second data link management unit, and a route management. Unit, connection tracking management unit;
  • a second data link management unit configured to: when the terminal moves to the second network area and needs to be cut When switching to the second network, creating a second data link, and separately notifying the route management unit and the connection tracking management unit;
  • the first data link management unit is configured to: receive a notification from the route management unit, and destroy the established first data link;
  • a routing management unit configured to: when the terminal moves to the second network area and needs to switch to the second network, establish a static route based on the first data link according to the currently active connection from the connection tracking management unit; a routing table of the second data link; deleting the default route of the first data link, establishing a default route with the second data link; receiving a deletion notification of the connection from the connection tracking management unit regarding the timeout, deleting the corresponding connection Static routing information, when all the static routing information based on the first data link is deleted, notifying the first data link management unit; implementing forwarding of the data stream;
  • the connection tracking management unit is configured to: extract the currently active destination Internet Protocol IP address and output it to the routing management unit; establish a connection tracking table based on the second data link; and monitor all active interfaces of the first data link in real time
  • the connection when the terminal moves to the second network area and needs to switch to the second network and detects that the connection status times out, outputs a deletion notification of the connection regarding the timeout to the routing management unit.
  • the first data link management unit may be further configured to: create a first data link in the first network area, and notify the route management unit and the connection tracking management unit respectively;
  • the routing management unit may be further configured to: establish a routing table based on the first data link;
  • connection tracking management unit may be further configured to establish a connection tracking table based on the first data link.
  • FIG. 3 is a schematic flowchart of an optional implementation manner of a method for implementing network switching according to an embodiment of the present invention. As shown in FIG. 3, the method for implementing network switching in the optional implementation manner includes the following steps:
  • Step 300 The first data link management unit creates a first data link in the first network area.
  • Step 301 The first data link management unit notifies the route management unit and the connection tracking management unit to establish a routing table and a connection tracking table based on the first data link, respectively.
  • connection tracking table 1 may include, for example, source IP (Internet Protocol)_1 - destination IP_1, source IP_2 - destination IP_2.
  • Step: 302 When the terminal moves to the second network area and needs to switch to the second network, the second data link management unit creates a second data link.
  • Step 303 The connection tracking management unit extracts the destination IP address of the currently active connection according to the connection tracking table corresponding to the first data link.
  • Step 304 The routing management unit establishes a static route based on the first data link according to the extracted destination IP address. After all the establishment is completed, step 3051 is performed.
  • the static route based on the first data link may include, for example, static route 1, that is, the data to the destination IP_1 is via the first data link; and the static route 2, that is, the data to the destination IP_2 is transmitted through the first data link. road.
  • the routing table may include static route 1 and static route 2.
  • Step 3051 The routing management unit deletes the default route of the first data link, and establishes a default route with the second data link.
  • the routing table may include static route 1, static route 2, and the default route may be the second data link.
  • connection tracking management unit establishes a connection tracking table of the second data link.
  • the established connection tracking table (connection tracking table 2) may include, for example, source IP_1 - destination IP_1, source IP_2 - destination IP_2.
  • Step 3052 After the static route is established, at the same time, the connection tracking management unit monitors all active connections of the first data link in real time, and detects whether each connection status times out; if timeout, step 3062 is performed; otherwise, the detection continues.
  • Step 3062 to step 3072 The routing management unit is notified to delete the static routing rule of the corresponding connection until all the static routing rules based on the first data link are deleted.
  • Step 3082 The first data link management unit destroys the first data link, that is, disconnects the first data link.
  • Step 3092 All data services are all switched to the already established second data link, and the handover is completed.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the technical solution of the present application includes: creating a second data link; establishing a static route based on the first data link according to the currently active connection; deleting a default route of the first data link, and establishing a default route by using the second data link; Deleting all timeout static routing information based on the first data link, destroying the first data link.
  • the method for implementing network switching according to the embodiment of the present invention can be seen that, when the second data link is enabled, the second data link is first extracted, and all active connection information based on the first data link is extracted, and a corresponding static route is established.
  • the data flow of the current processing activity state is guaranteed to be unaffected; by deleting the default route of the first data link, the routing rule with the second data link as the default data link is established, and all new data flows are guaranteed. Routed on the second data link. Moreover, after all the connections based on the first data link are timed out and the static routing rules corresponding to the connections of all the timed active states are deleted, the first data link is disconnected, thus effectively ensuring the switching in the double data link. In the process, while the handover is completed, the interruption of the current data service is avoided, and seamless handover is realized, thereby effectively improving the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种实现网络切换的方法包括创建第二数据链路;根据当前处于活动状态的连接建立基于第一数据链路的静态路由;删除第一数据链路的默认路由,以第二数据链路建立默认路由;删除所有超时的基于第一数据链路的静态路由信息,销毁第一数据链路。

Description

一种实现网络切换的方法及装置 技术领域
本申请涉及但不限于网络管理技术,尤其一种实现网络切换的方法及装置。
背景技术
在运营商分别拥有第三代/***(3G/4G)网络和无线局域网(WiFi)网络时,为了缓解3G/4G网络压力,可以通过采用WiFi网络分流。这种情况下,运营商定制的终端同时支持3G/4G上网和WiFi上网。
当终端移动到有WiFi覆盖的区域时,需要从3G/4G网络切换到WiFi网络,为了保证用户数据业务不受影响,需要在3G/4G链路没有数据业务时才切换到WiFi网络。但是,实际使用中这种切换基本上是不可行的,除非终端移动到有WiFi覆盖的区域后,用户先停止所有上网业务,这样处理显然用户体验较差,也达不到预期切换的效果。
为了保证能切换至WiFi网络,相关技术中通常的做法是:当终端移动到WiFi覆盖的区域时,上行直接切换到WiFi网络,并断开3G/4G网络。由于切换的目的是为了使用WiFi网络来分摊LTE(Long Term Evolution,长期演进)网络的流量压力,这样的处理虽然保证了切换的完成,但造成了用户当前的数据业务产生中断,降低了用户体验。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提供一种实现网络切换的方法及装置,能够在保证切换完成的同时,避免当前数据业务的中断,实现无缝切换,从而有效改善用户体验。
本发明实施例提供了一种实现网络切换的方法,包括:
当终端移动到第二网络区域且需要切换至第二网络时,创建第二数据链 路并建立基于第二数据链路的路由表和连接跟踪表;
当终端移动到第二网络区域且需要切换至第二网络时,根据当前处于活动状态的连接建立基于第一数据链路的静态路由;以及删除已建立的第一数据链路的默认路由,以第二数据链路建立默认路由;
当终端移动到第二网络区域且需要切换至第二网络时,删除所有超时的基于第一数据链路的静态路由信息,以及销毁第一数据链路。
可选地,所述当终端移动到第二网络区域且需要切换至第二网络时,创建第二数据链路并建立基于第二数据链路的路由表和连接跟踪表之前,该方法还包括:
在第一网络区域创建所述第一数据链路,并分别建立基于所述第一数据链路的路由表和连接跟踪表。
可选地,所述根据当前处于活动状态的连接建立基于第一数据链路的静态路由包括:
提取所述当前处于活动状态的目的因特网协议IP地址,并根据提取的目的IP地址,建立所述基于第一数据链路的静态路由。
可选地,所述删除所有超时的基于第一数据链路的静态路由信息包括:
实时监听所述第一数据链路的所有处于活动状态的连接,在检测出连接状态超时时,删除对应该连接的静态路由信息,直至基于所述第一数据链路的静态路由信息全部删除。.
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述实现网络切换的方法。
本发明实施例还提供了一种实现网络切换的装置,至少包括:第一数据链路管理单元、第二数据链路管理单元、路由管理单元、连接跟踪管理单元;其中,
第二数据链路管理单元,设置为:当终端移动到第二网络区域且需要切换至第二网络时,创建第二数据链路,并分别通知路由管理单元和连接跟踪管理单元;
第一数据链路管理单元,设置为:接收到来自路由管理单元的通知,销 毁已建立的第一数据链路;
路由管理单元,设置为:当终端移动到第二网络区域且需要切换至第二网络时,根据来自连接跟踪管理单元的当前处于活动状态的连接建立基于第一数据链路的静态路由;建立基于第二数据链路的路由表;删除第一数据链路的默认路由,以第二数据链路建立默认路由;接收到来自连接跟踪管理单元的关于超时的连接的删除通知,删除对应该连接的静态路由信息,当基于第一数据链路的静态路由信息全部删除时,通知第一数据链路管理单元;实现数据流的转发;
连接跟踪管理单元,设置为:提取当前处于活动状态的目的因特网协议IP地址并输出给路由管理单元;建立基于第二数据链路的连接跟踪表;实时监听第一数据链路的所有处于活动状态的连接,当终端移动到第二网络区域且需要切换至第二网络时以及检测出连接状态超时时,向路由管理单元输出关于超时的连接的删除通知。
可选地,所述第一数据链路管理单元还设置为:在第一网络区域创建所述第一数据链路,并分别通知路由管理单元和连接跟踪管理单元;
所述路由管理单元还设置为:建立基于所述第一数据链路的路由表;
所述连接跟踪管理单元还设置为:建立基于所述第一数据链路的连接跟踪表。
与相关技术相比,本申请技术方案包括创建第二数据链路;根据当前处于活动状态的连接建立基于第一数据链路的静态路由;删除第一数据链路的默认路由,以第二数据链路建立默认路由;删除所有超时的基于第一数据链路的静态路由信息,销毁第一数据链路。通过本发明实施例提供的实现网络切换的方法可见,通过双数据链路,在开启第二数据链路时,先提取基于第一数据链路的所有活动连接信息,并建立对应的静态路由,这样,保证了当前处理活动状态的数据流不受影响;通过删除第一数据链路的默认路由,建立以第二数据链路为默认数据链路的路由规则,保证了所有新的数据流全部被路由在第二数据链路上。而且,在基于第一数据链路的所有连接均超时,并删除所有超时的活动状态的连接对应的静态路由规则后,断开第一数据链路,这样有效地保证了在双数据链路切换过程中,在切换完成的同时,避免 了当前数据业务的中断,实现了无缝切换,从而有效改善了用户体验。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例提供的一种实现网络切换的方法的流程图;
图2为本发明实施例提供的一种实现网络切换的装置的组成结构示意图;
图3为本发明实施例提供的实现网络切换的方法的可选实施方式的流程示意图。
本发明的较佳实施方式
下面结合附图对本发明的实施方式进行描述。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的各种方式可以相互组合。
图1为本发明实施例提供的一种实现网络切换的方法的流程图,假设终端在第一网络区域内已开始业务即处于活动状态并建立有第一数据链路,如图1所示,该方法包括:
步骤100:当终端移动到第二网络区域且需要切换至第二网络时,创建第二数据链路并建立基于第二数据链路的路由表和连接跟踪表。
本步骤之前,该方法还可包括:在第一网络区域创建所述第一数据链路;并分别建立基于所述第一数据链路的路由表和连接跟踪表。其中,连接跟踪表中可以包括有每个数据流的五元组信息,即源因特网协议(Internet Protocol,IP)地址、目的IP地址、源端口号、目的端口号、协议号,以及包含有超时时间、连接状态(如连接建立中或已连接或无响应)等的连接信息。
关于如何创建、销毁数据链路,可以采用本领域已知的技术,这里不再赘述。
步骤101:当终端移动到第二网络区域且需要切换至第二网络时,根据当前处于活动状态的连接建立基于第一数据链路的静态路由;以及删除第一数据链路的默认路由,以第二数据链路建立默认路由。
本步骤中的根据当前处于活动状态的连接建立基于第一数据链路的静态路由可包括:
提取当前处于活动状态的目的因特网协议IP地址,并根据提取的目的IP地址,建立基于第一数据链路的静态路由。
关于如何建立静态路由,可以采用本领域已知的技术,这里不再赘述。
步骤102:当终端移动到第二网络区域且需要切换至第二网络时,删除所有超时的基于第一数据链路的静态路由信息,以及销毁第一数据链路。此时,断开第一数据链路,所有数据业务全部切换至第二数据链路。
本步骤中的删除所有超时的基于第一数据链路的静态路由信息可包括:
实时监听所述第一数据链路的所有处于活动状态的连接,在检测出连接状态超时时,删除对应该连接的静态路由信息,直至基于所述第一数据链路的静态路由信息全部删除。
需要说明的是,步骤101与步骤102并没有严格的时间顺序限定。
通过本发明实施例提供的实现网络切换的方法可见,通过双数据链路,在开启第二数据链路时,先提取基于第一数据链路的所有活动连接信息,并建立对应的静态路由,这样,保证了当前处理活动状态的数据流不受影响;通过删除第一数据链路的默认路由,建立以第二数据链路为默认数据链路的路由规则,保证了所有新的数据流全部被路由在第二数据链路上。而且,在基于第一数据链路的所有连接均超时,并删除所有超时的活动状态的连接对应的静态路由规则后,断开第一数据链路,这样有效地保证了在双数据链路切换过程中,在切换完成的同时,避免了当前数据业务的中断,实现了无缝切换,从而有效改善了用户体验。
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述实现网络切换的方法。
图2为本发明实施例提供的一种实现网络切换的装置的组成结构示意图,如图2所示,该装置至少包括:第一数据链路管理单元、第二数据链路管理单元、路由管理单元、连接跟踪管理单元;其中,
第二数据链路管理单元,设置为:当终端移动到第二网络区域且需要切 换至第二网络时,创建第二数据链路,并分别通知路由管理单元和连接跟踪管理单元;
第一数据链路管理单元,设置为:接收到来自路由管理单元的通知,销毁已建立的第一数据链路;
路由管理单元,设置为:当终端移动到第二网络区域且需要切换至第二网络时,根据来自连接跟踪管理单元的当前处于活动状态的连接建立基于第一数据链路的静态路由;建立基于第二数据链路的路由表;删除第一数据链路的默认路由,以第二数据链路建立默认路由;接收到来自连接跟踪管理单元的关于超时的连接的删除通知,删除对应该连接的静态路由信息,当基于第一数据链路的静态路由信息全部删除时,通知第一数据链路管理单元;实现数据流的转发;
连接跟踪管理单元,设置为:提取当前处于活动状态的目的因特网协议IP地址并输出给路由管理单元;建立基于第二数据链路的连接跟踪表;实时监听第一数据链路的所有处于活动状态的连接,当终端移动到第二网络区域且需要切换至第二网络时以及检测出连接状态超时时,向路由管理单元输出关于超时的连接的删除通知。
可选地,
第一数据链路管理单元还可设置为:在第一网络区域创建第一数据链路,并分别通知路由管理单元和连接跟踪管理单元;
路由管理单元还可设置为:建立基于所述第一数据链路的路由表;
连接跟踪管理单元还可设置为:建立基于所述第一数据链路的连接跟踪表。
图3为本发明实施例提供的实现网络切换的方法的可选实施方式的流程示意图,如图3所示,该可选实施方式中实现网络切换的方法包括如下步骤:
步骤300:第一数据链路管理单元在第一网络区域创建第一数据链路。
步骤301:第一数据链路管理单元通知路由管理单元和连接跟踪管理单元分别建立基于第一数据链路的路由表和连接跟踪表。
此时,路由表中,默认路由可以为第一数据链路;本实施例中,建立的 连接跟踪表(连接跟踪表1)例如可包括:源IP(Internet Protocol,因特网协议)_1-目的IP_1,源IP_2-目的IP_2。
步骤:302:当终端移动到第二网络区域且需要切换至第二网络时,第二数据链路管理单元创建第二数据链路。
步骤303:连接跟踪管理单元根据第一数据链路对应的连接跟踪表,提取当前处于活动状态的连接的目的IP地址。
步骤304:路由管理单元根据提取的目的IP地址,建立基于第一数据链路的静态路由,全部建立完成后执行步骤3051。
本实施例中,基于第一数据链路的静态路由例如可包括:静态路由1,即到目的IP_1的数据经由第一数据链路;静态路由2,即到目的IP_2的数据经由第一数据链路。此时路由表中可包括有静态路由1和静态路由2。
步骤3051:路由管理单元删除第一数据链路的默认路由,建立以第二数据链路的默认路由。此时路由表中可包括有静态路由1、静态路由2,以及默认路由可以为第二数据链路。
步骤3061:连接跟踪管理单元建立第二数据链路的连接跟踪表。本实施例中,建立的连接跟踪表(连接跟踪表2)例如可包括:源IP_1-目的IP_1,源IP_2-目的IP_2。
步骤3052:在建立静态路由后,同时,连接跟踪管理单元实时监听第一数据链路的所有活动连接,检测每条连接状态是否超时;如果超时,执行步骤3062;否则继续检测。
步骤3062~步骤3072:通知路由管理单元删除对应连接的静态路由规则,直至基于第一数据链路的静态路由规则全部删除。
步骤3082:第一数据链路管理单元销毁第一数据链路,即断开第一数据链路。
步骤3092:所有数据业务全部切换至已经建立好的第二数据链路,至此切换完成。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中, 所述计算机程序在相应的硬件平台上(如***、设备、装置、器件、处理器等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
本申请技术方案包括创建第二数据链路;根据当前处于活动状态的连接建立基于第一数据链路的静态路由;删除第一数据链路的默认路由,以第二数据链路建立默认路由;删除所有超时的基于第一数据链路的静态路由信息,销毁第一数据链路。通过本发明实施例提供的实现网络切换的方法可见,通过双数据链路,在开启第二数据链路时,先提取基于第一数据链路的所有活动连接信息,并建立对应的静态路由,这样,保证了当前处理活动状态的数据流不受影响;通过删除第一数据链路的默认路由,建立以第二数据链路为默认数据链路的路由规则,保证了所有新的数据流全部被路由在第二数据链路上。而且,在基于第一数据链路的所有连接均超时,并删除所有超时的活动状态的连接对应的静态路由规则后,断开第一数据链路,这样有效地保证了在双数据链路切换过程中,在切换完成的同时,避免了当前数据业务的中断,实现了无缝切换,从而有效改善了用户体验。

Claims (6)

  1. 一种实现网络切换的方法,包括:
    当终端移动到第二网络区域且需要切换至第二网络时,创建第二数据链路并建立基于第二数据链路的路由表和连接跟踪表;
    当终端移动到第二网络区域且需要切换至第二网络时,根据当前处于活动状态的连接建立基于第一数据链路的静态路由;以及删除已建立的第一数据链路的默认路由,以第二数据链路建立默认路由;
    当终端移动到第二网络区域且需要切换至第二网络时,删除所有超时的基于第一数据链路的静态路由信息,以及销毁第一数据链路。
  2. 根据权利要求1所述的方法,所述当终端移动到第二网络区域且需要切换至第二网络时,创建第二数据链路并建立基于第二数据链路的路由表和连接跟踪表之前,还包括:
    在第一网络区域创建所述第一数据链路,并分别建立基于所述第一数据链路的路由表和连接跟踪表。
  3. 根据权利要求1或2所述的方法,其中,所述根据当前处于活动状态的连接建立基于第一数据链路的静态路由包括:
    提取所述当前处于活动状态的目的因特网协议IP地址,并根据提取的目的IP地址,建立所述基于第一数据链路的静态路由。
  4. 根据权利要求1或2所述的方法,其中,所述删除所有超时的基于第一数据链路的静态路由信息包括:
    实时监听所述第一数据链路的所有处于活动状态的连接,在检测出连接状态超时时,删除对应该连接的静态路由信息,直至基于所述第一数据链路的静态路由信息全部删除。
  5. 一种实现网络切换的装置,包括:第一数据链路管理单元、第二数据链路管理单元、路由管理单元、连接跟踪管理单元;其中,
    第二数据链路管理单元,设置为:当终端移动到第二网络区域且需要切换至第二网络时,创建第二数据链路,并分别通知路由管理单元和连接跟踪 管理单元;
    第一数据链路管理单元,设置为:接收到来自路由管理单元的通知,销毁已建立的第一数据链路;
    路由管理单元,设置为:当终端移动到第二网络区域且需要切换至第二网络时,根据来自连接跟踪管理单元的当前处于活动状态的连接建立基于第一数据链路的静态路由;建立基于第二数据链路的路由表;删除第一数据链路的默认路由,以第二数据链路建立默认路由;接收到来自连接跟踪管理单元的关于超时的连接的删除通知,删除对应该连接的静态路由信息,当基于第一数据链路的静态路由信息全部删除时,通知第一数据链路管理单元;实现数据流的转发;
    连接跟踪管理单元,设置为:提取当前处于活动状态的目的因特网协议IP地址并输出给路由管理单元;建立基于第二数据链路的连接跟踪表;实时监听第一数据链路的所有处于活动状态的连接,当终端移动到第二网络区域且需要切换至第二网络时以及检测出连接状态超时时,向路由管理单元输出关于超时的连接的删除通知。
  6. 根据权利要求5所述的装置,所述第一数据链路管理单元还设置为:在第一网络区域创建所述第一数据链路,并分别通知路由管理单元和连接跟踪管理单元;
    所述路由管理单元还设置为:建立基于所述第一数据链路的路由表;
    所述连接跟踪管理单元还设置为:建立基于所述第一数据链路的连接跟踪表。
PCT/CN2016/080066 2015-07-07 2016-04-22 一种实现网络切换的方法及装置 WO2016180217A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510393852.6A CN106332206A (zh) 2015-07-07 2015-07-07 一种实现网络切换的方法及装置
CN201510393852.6 2015-07-07

Publications (1)

Publication Number Publication Date
WO2016180217A1 true WO2016180217A1 (zh) 2016-11-17

Family

ID=57247705

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080066 WO2016180217A1 (zh) 2015-07-07 2016-04-22 一种实现网络切换的方法及装置

Country Status (2)

Country Link
CN (1) CN106332206A (zh)
WO (1) WO2016180217A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114844940A (zh) * 2022-03-14 2022-08-02 武汉斗鱼鱼乐网络科技有限公司 一种网络请求方法及相关设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368860A (zh) * 2011-08-23 2012-03-07 李秀川 一种网络切换方法及装置
CN102572986A (zh) * 2011-12-30 2012-07-11 中兴通讯股份有限公司 通信终端及其网络切换方法
CN103139858A (zh) * 2011-12-01 2013-06-05 中国电信股份有限公司 一种实现CDMA与WiFi无缝切换的方法、***以及手机终端
CN103313319A (zh) * 2012-03-09 2013-09-18 中国电信股份有限公司 在Android ***中基于AP 实现异网切换的方法和终端
CN103686909A (zh) * 2013-12-11 2014-03-26 北京邮电大学 一种在蜂窝网络和无线局域网之间实现业务无缝切换的方法
US8891441B2 (en) * 2008-09-04 2014-11-18 Intel Corporation L2 tunneling-based low latency single radio handoffs

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4466296B2 (ja) * 2003-10-17 2010-05-26 パナソニック株式会社 ハンドオーバ方法および移動通信システム
CN103179621B (zh) * 2011-12-22 2017-07-25 上海无线通信研究中心 一种蜂窝网与无线局域网切换的方法
KR20130123262A (ko) * 2012-05-02 2013-11-12 한국전자통신연구원 모바일 라우터의 이동성 지원 방법
CN104038971B (zh) * 2013-03-06 2018-05-29 电信科学技术研究院 一种链路切换方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8891441B2 (en) * 2008-09-04 2014-11-18 Intel Corporation L2 tunneling-based low latency single radio handoffs
CN102368860A (zh) * 2011-08-23 2012-03-07 李秀川 一种网络切换方法及装置
CN103139858A (zh) * 2011-12-01 2013-06-05 中国电信股份有限公司 一种实现CDMA与WiFi无缝切换的方法、***以及手机终端
CN102572986A (zh) * 2011-12-30 2012-07-11 中兴通讯股份有限公司 通信终端及其网络切换方法
CN103313319A (zh) * 2012-03-09 2013-09-18 中国电信股份有限公司 在Android ***中基于AP 实现异网切换的方法和终端
CN103686909A (zh) * 2013-12-11 2014-03-26 北京邮电大学 一种在蜂窝网络和无线局域网之间实现业务无缝切换的方法

Also Published As

Publication number Publication date
CN106332206A (zh) 2017-01-11

Similar Documents

Publication Publication Date Title
US10911990B2 (en) Network handover method and related device
EP3586529B1 (en) Method, system and computer readable medium for providing service capability exposure function (scef) as a cloud service
EP3586530B1 (en) Methods, systems and computer readable media for providing service capability exposure function (scef) as a diameter routing agent(dra) feature
US10743355B2 (en) Communication system and base station
JP5759024B2 (ja) 地理的冗長ゲートウェイでセッションを復元するシステムおよび方法
US10484265B2 (en) Dynamic update of virtual network topology
JP6262783B2 (ja) セッション・レジリエンスのためのプール内のモバイルゲートウェイ
US10136412B2 (en) Communication system, communication apparatus, and control method and control apparatus thereof
JP2010063022A (ja) アクセスゲートウェイ装置の制御方法及び通信システム
US20150341443A1 (en) Method for keeping application online, always-online controller, and device
TW201320682A (zh) 當虛擬位址未匹配經組態以用於基座間冗位之網路元件時通知網路操作員
JPWO2009090723A1 (ja) パケット伝送装置
US20150046396A1 (en) Reconciliation protocol after icr switchover during bulk sync
CN102202004B (zh) 路由错误处理方法、装置和路由设备
JP2015523747A (ja) コンピュータシステム、通信制御サーバ、通信制御方法およびプログラム
WO2011157146A2 (zh) 通信设备间的主备倒换方法、通信设备和***及服务请求设备
US20140112203A1 (en) Enhanced Fine-Grained Overlay Transport Virtualization Multi-Homing Using per-network Authoritative Edge Device Synchronization
JP6604336B2 (ja) 情報処理装置、情報処理方法、及び、プログラム
WO2016180217A1 (zh) 一种实现网络切换的方法及装置
CN102857435B (zh) 转发数据中心站点内的三层数据流的方法和设备
WO2022188770A1 (zh) 数据单元处理方法、装置、节点和存储介质
CN107968825B (zh) 一种报文转发控制方法及装置
JP5919915B2 (ja) 通信監視装置、ネットワーク制御方法及びネットワーク制御プログラム
KR102273390B1 (ko) 네트워크 기능 통합방법 및 장치
WO2017010078A1 (ja) 制御装置、障害通知方法及び記録媒体

Legal Events

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

Ref document number: 16792067

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16792067

Country of ref document: EP

Kind code of ref document: A1