[go: up one dir, main page]

CN106937350B - Routing method and system based on mobile terminal - Google Patents

Routing method and system based on mobile terminal Download PDF

Info

Publication number
CN106937350B
CN106937350B CN201511019736.4A CN201511019736A CN106937350B CN 106937350 B CN106937350 B CN 106937350B CN 201511019736 A CN201511019736 A CN 201511019736A CN 106937350 B CN106937350 B CN 106937350B
Authority
CN
China
Prior art keywords
routing policy
target application
server
routing
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201511019736.4A
Other languages
Chinese (zh)
Other versions
CN106937350A (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.)
NHORIZON INNOVATION (BEIJING) SOFTWARE LMT
Original Assignee
NHORIZON INNOVATION (BEIJING) SOFTWARE LMT
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 NHORIZON INNOVATION (BEIJING) SOFTWARE LMT filed Critical NHORIZON INNOVATION (BEIJING) SOFTWARE LMT
Priority to CN201511019736.4A priority Critical patent/CN106937350B/en
Publication of CN106937350A publication Critical patent/CN106937350A/en
Application granted granted Critical
Publication of CN106937350B publication Critical patent/CN106937350B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Landscapes

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

Abstract

本发明实施例提供一种基于移动终端的路由方法和系统,其中,所述方法应用于位于移动终端的路由策略客户端,所述方法包括:接收由路由策略服务器推送的针对目标应用程序的路由策略;根据所述路由策略将所述目标应用程序的数据包转发到目标应用程序服务器,或者,根据所述路由策略将所述目标应用程序的数据包转发到所述路由策略服务器,以令所述路由策略服务器转发所述数据包至所述目标应用程序服务器。本发明实施例实现对单个应用程序的路由策略的制定,精确控制单个应用程序的路由策略。

Figure 201511019736

The embodiment of the present invention provides a routing method and system based on a mobile terminal, wherein the method is applied to a routing policy client located at the mobile terminal, and the method includes: receiving a routing policy for a target application pushed by a routing policy server; forwarding a data packet of the target application to a target application server according to the routing policy, or forwarding a data packet of the target application to the routing policy server according to the routing policy, so that the routing policy server forwards the data packet to the target application server. The embodiment of the present invention implements the formulation of a routing policy for a single application and accurately controls the routing policy of a single application.

Figure 201511019736

Description

基于移动终端的路由方法及系统Routing method and system based on mobile terminal

技术领域technical field

本发明实施例涉及互联网技术领域,尤其涉及一种基于移动终端的路由方法及系统。Embodiments of the present invention relate to the field of Internet technologies, and in particular, to a mobile terminal-based routing method and system.

背景技术Background technique

路由是指分组从源到目的地时,决定端到端路径的网络范围的进程。路由工作在开放式系统互联(Open System Interconnection,OSI)参考模型第三层——网络层的数据包转发设备。Routing refers to the network-wide process of determining the end-to-end path of a packet from source to destination. Routing works on the third layer of the Open System Interconnection (OSI) reference model—the packet forwarding device at the network layer.

传统的路由策略是针对移动终端中的全部应用程序,即移动终端中的全部应用程序使用相同的路由策略,但同一种路由策略并非适合每一款应用程序,经常出现部分应用程序访问网络正常,而其他应用程序访问网络异常的情况。The traditional routing strategy is for all applications in the mobile terminal, that is, all the applications in the mobile terminal use the same routing strategy, but the same routing strategy is not suitable for every application. It often occurs that some applications access the network normally. And other applications access the network abnormal situation.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种基于移动终端的路由方法及系统,用以解决传统路由策略不适合全部应用程序的问题。Embodiments of the present invention provide a mobile terminal-based routing method and system, which are used to solve the problem that traditional routing strategies are not suitable for all application programs.

本发明实施例提供一种基于移动终端的路由方法,应用于位于移动终端的路由策略客户端,所述方法包括:An embodiment of the present invention provides a routing method based on a mobile terminal, which is applied to a routing policy client located in a mobile terminal, and the method includes:

接收由路由策略服务器推送的针对目标应用程序的路由策略;Receive the routing policy for the target application pushed by the routing policy server;

根据所述路由策略将所述目标应用程序的数据包转发到目标应用程序服务器,或者,根据所述路由策略将所述目标应用程序的数据包转发到所述路由策略服务器,以令所述路由策略服务器转发所述数据包至所述目标应用程序服务器。Forward the data packets of the target application to the target application server according to the routing policy, or forward the data packets of the target application to the routing policy server according to the routing policy, so that the routing The policy server forwards the data packet to the target application server.

相应地,本发明实施例还提供一种基于移动终端的路由方法,应用于路由策略服务器,所述方法包括:Correspondingly, an embodiment of the present invention also provides a routing method based on a mobile terminal, which is applied to a routing policy server, and the method includes:

接收来自位于移动终端的路由策略客户端的目标应用程序访问网络异常的详细信息;Receive detailed information about the abnormal network access of the target application from the routing policy client located in the mobile terminal;

根据所述详细信息和所述移动终端与目标应用程序服务器之间的网络连接状态,制定针对所述目标应用程序的路由策略;According to the detailed information and the network connection state between the mobile terminal and the target application server, formulate a routing strategy for the target application;

将所述路由策略推送至所述路由策略客户端,以令所述路由策略客户端根据所述路由策略将所述目标应用程序的数据包转发到所述目标应用程序服务器,或者,接收来自所述路由策略客户端根据所述路由策略转发所述目标应用程序的数据包,并转发所述数据包至所述目标应用程序服务器。Push the routing policy to the routing policy client, so that the routing policy client forwards the data packets of the target application to the target application server according to the routing policy, or receives data packets from the target application server. The routing policy client forwards the data packet of the target application program according to the routing policy, and forwards the data packet to the target application program server.

相应地,本发明实施例还提供一种基于移动终端的路由系统,所述系统包括:路由策略客户端和路由策略服务器,所述路由策略客户端位于移动终端中;其中,Correspondingly, an embodiment of the present invention further provides a routing system based on a mobile terminal, the system includes: a routing policy client and a routing policy server, the routing policy client is located in the mobile terminal; wherein,

所述路由策略服务器包括:The routing policy server includes:

路由策略制定模块,用于制定针对目标应用程序的路由策略;The routing policy formulation module is used to formulate the routing policy for the target application;

所述路由策略客户端包括:The routing policy client includes:

路由策略接收模块,用于接收所述路由策略;a routing policy receiving module, configured to receive the routing policy;

客户端数据包路由模块,用于根据所述路由策略将所述目标应用程序的数据包转发到目标应用程序服务器,或者,根据所述路由策略将所述目标应用程序的数据包转发到所述路由策略服务器;The client data packet routing module is configured to forward the data packets of the target application to the target application server according to the routing policy, or forward the data packets of the target application to the target application server according to the routing policy routing policy server;

所述路由策略服务器还包括:The routing policy server also includes:

服务器数据包路由模块,用于根据所述路由策略转发来自所述路由客户端的数据包至所述目标应用程序服务器。The server data packet routing module is configured to forward the data packet from the routing client to the target application server according to the routing policy.

本发明实施例提供的基于移动终端的路由方法及系统,在路由策略服务器制定针对单独应用程序的路由策略,并推送至位于移动终端的路由策略客户端,由路由策略客户端根据接收到的路由策略将目标应用程序的数据包转发到目标应用程序服务器,或者将目标应用程序的数据包转发到路由策略服务器,由路由策略服务器转发数据包至目标程序服务器。实现对单个应用程序的路由策略的制定,精确控制单个应用程序的路由策略。In the mobile terminal-based routing method and system provided by the embodiments of the present invention, a routing policy for an individual application is formulated in the routing policy server, and pushed to the routing policy client located in the mobile terminal, and the routing policy client is based on the received routing policy. The policy forwards the data packets of the target application to the target application server, or forwards the data packets of the target application to the routing policy server, and the routing policy server forwards the data packets to the target application server. Realize the formulation of the routing strategy of a single application, and precisely control the routing strategy of a single application.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1为本发明实施例一中的一种基于移动终端的路由方法的步骤流程图;1 is a flowchart of steps of a mobile terminal-based routing method in Embodiment 1 of the present invention;

图2为本发明实施例二中的路由策略客户端、路由策略服务器、目标应用程序和目标应用程序服务器之间的逻辑关系示意图;2 is a schematic diagram of a logical relationship among a routing policy client, a routing policy server, a target application, and a target application server in Embodiment 2 of the present invention;

图3为本发明实施例二中的一种基于移动终端的路由系统的结构示意图。FIG. 3 is a schematic structural diagram of a routing system based on a mobile terminal in Embodiment 2 of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

实施例一Example 1

详细介绍本发明实施例一提出的一种基于移动终端的路由方法,所述方法可以应用于位于移动终端的路由策略客户端,所述移动终端可以为智能手机或者平板电脑等。所述路由策略客户端为部署在移动终端上的一款应用程序,可以路由移动终端中其他应用程序的数据包,还可以接收路由策略服务器推送的针对单个应用程序的路由策略。路由策略服务器可以在移动终端中的应用程序出现访问网络异常时,制定针对单个应用程序的路由策略,并推送至路由策略客户端。The mobile terminal-based routing method proposed in the first embodiment of the present invention is introduced in detail. The method can be applied to a routing policy client located on a mobile terminal, and the mobile terminal can be a smart phone or a tablet computer. The routing policy client is an application deployed on the mobile terminal, which can route data packets of other applications in the mobile terminal, and can also receive routing policies for a single application pushed by the routing policy server. The routing policy server can formulate a routing policy for a single application and push it to the routing policy client when the application in the mobile terminal is abnormal in accessing the network.

参照图1,示出了本发明实施例一中的一种基于移动终端的路由方法的步骤流程图。Referring to FIG. 1 , a flowchart of steps of a routing method based on a mobile terminal in Embodiment 1 of the present invention is shown.

步骤100,接收由路由策略服务器推送的针对目标应用程序的路由策略。Step 100: Receive the routing policy for the target application pushed by the routing policy server.

在移动终端上可以运行多个应用程序,其中,部分应用程序会出现访问网络异常的情况。产生该网络异常的原因是应用程序所使用的路由策略不适合当前的网络状态,例如,在应用程序与应用程序服务器之间的各级节点中,存在无法连通的节点,致使应用程序无法访问应用程序服务器。Multiple applications can be run on the mobile terminal, some of which may access the network abnormally. The reason for this network exception is that the routing strategy used by the application is not suitable for the current network state. For example, in the nodes at all levels between the application and the application server, there are nodes that cannot be connected, so that the application cannot access the application. program server.

当移动终端中存在应用程序访问网络异常的情况时,本发明实施例中,出现访问网络异常的应用程序称为目标应用程序,捕获目标应用程序访问网络异常的详细信息,将详细信息上传至路由策略服务器。其中,所述捕获所述目标应用程序访问网络异常的详细信息的具体过程可以包括:探测所述目标应用程序访问所述移动终端至所述目标应用程序服务器之间的各级节点的连接状态;将连接失败的节点信息记录到网络异常的详细信息。When there is an abnormal situation in the mobile terminal when the application program accesses the network, in this embodiment of the present invention, the application program with the abnormal network access is called the target application program, and the detailed information about the abnormal network access of the target application program is captured, and the detailed information is uploaded to the router. Policy Server. Wherein, the specific process of capturing the detailed information of the abnormal network access by the target application program may include: detecting the connection status of the nodes at all levels between the target application program accessing the mobile terminal and the target application program server; Log the node information of the connection failure to the details of the network exception.

在目标应用程序所在的移动终端与目标应用程序服务器之间存在多级节点,目标应用程序的数据包逐级通过各个节点发送至目标应用程序服务器。若其中某级节点宕机,或者连接路径出现断点,致使目标应用程序无法访问目标应用程序服务器,则将宕机的节点信息或者出现断点的连接路径信息记录为网络异常的详细信息。There are multi-level nodes between the mobile terminal where the target application program is located and the target application program server, and the data packets of the target application program are sent to the target application program server through each node step by step. If a node at a certain level is down, or a breakpoint occurs in the connection path, so that the target application cannot access the target application server, the information of the downed node or the connection path with the breakpoint is recorded as the detailed information of the network exception.

在路由策略服务器中,接收来自路由策略客户端的关于目标应用程序的访问网络异常的详细信息,并判断针对同一目标应用程序的访问网络异常的详细信息的数量是否大于等于预设数量,若大于等于,则根据所述详细信息和所述移动终端与目标应用程序服务器之间的网络连接状态,制定针对所述目标应用程序的路由策略。当多个移动终端中的路由策略客户端发送某同一目标应用程序的访问网络异常的详细信息时,若路由策略服务器接收到的详细信息的数量达到一定的条件,则可以认为该目标应用程序访问该目标应用程序服务器的路由策略出现问题,进一步为该目标应用程序制定新的路由策略,解决之前的访问网络异常的问题。In the routing policy server, receive the detailed information about the abnormal access network of the target application from the routing policy client, and determine whether the number of detailed information about the abnormal access network of the same target application is greater than or equal to the preset number, if it is greater than or equal to , then according to the detailed information and the network connection state between the mobile terminal and the target application server, a routing policy for the target application is formulated. When the routing policy clients in multiple mobile terminals send the detailed information about the access network exception of the same target application, if the number of detailed information received by the routing policy server reaches a certain condition, it can be considered that the target application accesses There is a problem with the routing strategy of the target application server, and a new routing strategy is further developed for the target application to solve the previous abnormal access network problem.

步骤102,根据所述路由策略将所述目标应用程序的数据包转发到目标应用程序服务器。Step 102: Forward the data packets of the target application to the target application server according to the routing policy.

按照路由策略中的路径,将数据包逐级转发到相应的节点处,最终到达目标应用程序服务器。According to the path in the routing policy, the data packets are forwarded to the corresponding nodes step by step, and finally reach the target application server.

步骤104,根据所述路由策略将所述目标应用程序的数据包转发到所述路由策略服务器,以令所述路由策略服务器转发所述数据包至所述目标应用程序服务器。Step 104: Forward the data packet of the target application to the routing policy server according to the routing policy, so that the routing policy server forwards the data packet to the target application server.

按照路由策略中的路径,将数据包逐级转发到路由策略服务器,将路由策略服务器作为中转站,继续按照路由策略中的路径,将数据包逐级转发到目标应用程序服务器。According to the path in the routing policy, the data packets are forwarded to the routing policy server step by step, and the routing policy server is used as a transfer station to continue to forward the data packets to the target application server step by step according to the path in the routing policy.

上述步骤102和步骤104可以根据具体的路由策略选择执行,或者执行步骤102,或者执行步骤104。若路由策略为从移动终端直接发送数据包至目标应用程序服务器,则执行步骤102;若路由策略为从移动终端经过路由策略服务器发送数据包至目标应用程序服务器,则执行步骤104。The above steps 102 and 104 may be selected and executed according to a specific routing policy, or step 102 or step 104 may be executed. If the routing policy is to send data packets directly from the mobile terminal to the target application server, go to step 102; if the routing policy is to send data packets from the mobile terminal to the target application server through the routing policy server, go to step 104.

本发明实施例中路由策略客户端、路由策略服务器、目标应用程序和目标应用程序服务器之间的逻辑关系如图2所示。其中,包括一个路由策略客户端、两个路由策略服务器、两个目标应用程序和三个目标应用程序服务器。但是,关于路由策略客户端、路由策略服务器、目标应用程序和目标应用程序服务器的数量可以根据具体情况进行设定。路由策略客户端与目标应用程序(目标应用程序1和目标应用程序2)均位于移动终端中,两个路由策略服务器(路由策略服务器x和路由策略服务器y)均可以向路由策略客户端推送针对目标应用程序的路由策略。在路由策略客户端接收到针对目标应用程序的路由策略后,根据路由策略将目标应用程序的数据包直接转发到目标应用程序服务器3,或者,将数据包转发到路由策略服务器,再由路由策略服务器转发数据包至目标应用程序服务器1和目标应用程序服务器2。The logical relationship among the routing policy client, the routing policy server, the target application, and the target application server in the embodiment of the present invention is shown in FIG. 2 . Among them, including a routing policy client, two routing policy servers, two target applications and three target application servers. However, the number of routing policy clients, routing policy servers, target applications and target application servers can be set according to specific circumstances. Both the routing policy client and the target application (target application 1 and target application 2) are located in the mobile terminal, and both routing policy servers (routing policy server x and routing policy server y) can push the target to the routing policy client. The routing strategy for the target application. After the routing policy client receives the routing policy for the target application, it directly forwards the data packets of the target application to the target application server 3 according to the routing policy, or forwards the data packets to the routing policy server, and then the routing policy The server forwards the packets to target application server 1 and target application server 2.

综上所述,本发明实施例中的技术方案,在路由策略服务器制定针对单独应用程序的路由策略,并推送至位于移动终端的路由策略客户端,由路由策略客户端根据接收到的路由策略将目标应用程序的数据包转发到目标应用程序服务器,或者将目标应用程序的数据包转发到路由策略服务器,由路由策略服务器转发数据包至目标程序服务器。实现对单个应用程序的路由策略的制定,精确控制单个应用程序的路由策略。To sum up, in the technical solutions in the embodiments of the present invention, a routing policy for individual applications is formulated in the routing policy server, and pushed to the routing policy client located in the mobile terminal, and the routing policy client is based on the received routing policy. Forward the data packets of the target application program to the target application program server, or forward the data packets of the target application program to the routing policy server, and the routing policy server forwards the data packets to the target program server. Realize the formulation of the routing strategy of a single application, and precisely control the routing strategy of a single application.

而且,在目标应用程序访问网络异常时,可以及时制定新的路由策略,解决访问网络异常的问题,避免等待旧的路由策略恢复正常,加快了访问网络异常的解决速度。Moreover, when the target application accesses the network abnormally, a new routing policy can be formulated in time to solve the problem of the access network abnormality, avoiding waiting for the old routing policy to return to normal, and speeding up the resolution of the access network abnormality.

实施例二Embodiment 2

详细介绍本发明实施例二提出的一种基于移动终端的路由系统,所述系统可以包括路由策略客户端和路由策略服务器,所述路由策略客户端位于移动终端中,所述移动终端可以为智能手机或平板电脑。The mobile terminal-based routing system proposed in the second embodiment of the present invention is introduced in detail. The system may include a routing policy client and a routing policy server. The routing policy client is located in a mobile terminal, and the mobile terminal may be an intelligent phone or tablet.

参照图3,示出了本发明实施例二中的一种基于移动终端的路由系统的结构示意图。Referring to FIG. 3 , a schematic structural diagram of a routing system based on a mobile terminal in Embodiment 2 of the present invention is shown.

所述路由策略服务器包括:路由策略制定模块和服务器数据包路由模块。The routing policy server includes: a routing policy formulation module and a server data packet routing module.

所述路由策略客户端包括:路由策略接收模块和客户端数据包路由模块。The routing policy client includes: a routing policy receiving module and a client data packet routing module.

下面分别详细介绍各模块的功能以及各模块之间的关系。The function of each module and the relationship between each module are described in detail below.

路由策略制定模块,用于制定针对目标应用程序的路由策略。The routing policy formulation module is used to formulate the routing policy for the target application.

路由策略接收模块,用于接收所述路由策略。A routing policy receiving module, configured to receive the routing policy.

客户端数据包路由模块,用于根据所述路由策略将所述目标应用程序的数据包转发到目标应用程序服务器,或者,根据所述路由策略将所述目标应用程序的数据包转发到所述路由策略服务器。The client data packet routing module is configured to forward the data packets of the target application to the target application server according to the routing policy, or forward the data packets of the target application to the target application server according to the routing policy Routing Policy Server.

服务器数据包路由模块,用于根据所述路由策略转发来自所述路由客户端的数据包至所述目标应用程序服务器。The server data packet routing module is configured to forward the data packet from the routing client to the target application server according to the routing policy.

所述路由策略客户端还包括:异常信息捕获模块,用于在所述路由策略接收模块接收所述路由策略之前,捕获所述目标应用程序访问网络异常的详细信息;异常信息上传模块,用于将所述详细信息上传至所述路由策略服务器。所述异常信息捕获模块,包括:节点状态探测模块,用于探测所述目标应用程序访问所述移动终端至所述目标应用程序服务器之间的各级节点的连接状态;详细信息记录模块,用于将连接失败的节点信息记录到网络异常的详细信息。The routing policy client further includes: an exception information capture module, configured to capture detailed information about the abnormal network access of the target application program before the routing policy receiving module receives the routing policy; an exception information upload module, configured to uploading the detailed information to the routing policy server. The abnormal information capture module includes: a node status detection module, used to detect the connection status of the nodes at all levels between the target application accessing the mobile terminal and the target application server; a detailed information recording module, using It is used to log the node information of the connection failure to the details of the network exception.

所述路由策略服务器还包括:异常信息判断模块,用于判断接收到的详细信息的数量是否大于等于预设数量;若大于等于,则所述路由策略制定模块根据所述详细信息和所述移动终端与目标应用程序服务器之间的网络连接状态,制定针对所述目标应用程序的路由策略。The routing policy server further includes: an abnormal information judging module for judging whether the quantity of the received detailed information is greater than or equal to a preset quantity; Based on the network connection status between the terminal and the target application server, a routing policy for the target application is formulated.

当某目标应用程序访问网络出现问题时,路由策略客户端中的异常信息捕获模块会捕获到访问网络异常的详细信息,而后由异常信息上传模块上报详细信息给路由策略服务器,如果有很多路由策略客户端都上报该目标应用程序访问网络异常的详细信息,则路由策略服务器的网络异常报警模块会告警,而后利用路由策略服务器的网络状况探测模块、网络异常分析模块,以及路由策略制定模块实时部署针对该目标应用程序的路由策略,由路由策略推送模块推送路由策略到路由策略客户端,从而使该目标应用程序按照接收到的路由策略正常访问目标应用程序服务器。When a target application has problems accessing the network, the exception information capture module in the routing policy client will capture the detailed information of the access network exception, and then the exception information upload module will report the detailed information to the routing policy server. If there are many routing policies If the client reports the detailed information of the target application accessing the network abnormality, the network abnormality alarm module of the routing policy server will give an alarm, and then the network status detection module, network abnormality analysis module, and routing policy formulation module of the routing policy server are used for real-time deployment. For the routing policy of the target application, the routing policy push module pushes the routing policy to the routing policy client, so that the target application can normally access the target application server according to the received routing policy.

综上所述,本发明实施例中的技术方案,在路由策略服务器制定针对单独应用程序的路由策略,并推送至位于移动终端的路由策略客户端,由路由策略客户端根据接收到的路由策略将目标应用程序的数据包转发到目标应用程序服务器,或者将目标应用程序的数据包转发到路由策略服务器,由路由策略服务器转发数据包至目标程序服务器。实现对单个应用程序的路由策略的制定,精确控制单个应用程序的路由策略。To sum up, in the technical solutions in the embodiments of the present invention, a routing policy for individual applications is formulated in the routing policy server, and pushed to the routing policy client located in the mobile terminal, and the routing policy client is based on the received routing policy. Forward the data packets of the target application program to the target application program server, or forward the data packets of the target application program to the routing policy server, and the routing policy server forwards the data packets to the target program server. Realize the formulation of the routing strategy of a single application, and precisely control the routing strategy of a single application.

而且,在目标应用程序访问网络异常时,可以及时制定新的路由策略,解决访问网络异常的问题,避免等待旧的路由策略恢复正常,加快了访问网络异常的解决速度。Moreover, when the target application accesses the network abnormally, a new routing policy can be formulated in time to solve the problem of the access network abnormality, avoiding waiting for the old routing policy to return to normal, and speeding up the resolution of the access network abnormality.

以上所描述的系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The system embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on this understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1.一种基于移动终端的路由方法,其特征在于,应用于位于移动终端的路由策略客户端,所述方法包括:1. A routing method based on a mobile terminal, characterized in that, applied to a routing policy client located at a mobile terminal, the method comprising: 接收由路由策略服务器推送的针对目标应用程序的路由策略;所述路由策略是所述路由策略服务器根据所述目标应用程序访问网络异常的详细信息、所述移动终端与目标应用程序服务器之间的网络连接状态制定的;所述目标应用程序是出现访问网络异常的应用程序;Receive the routing policy for the target application pushed by the routing policy server; the routing policy is the detailed information about the abnormal network access by the routing policy server according to the target application, and the communication between the mobile terminal and the target application server. The state of the network connection is formulated; the target application is an application with abnormal access to the network; 根据所述路由策略将所述目标应用程序的数据包转发到目标应用程序服务器,或者,根据所述路由策略将所述目标应用程序的数据包转发到所述路由策略服务器,以令所述路由策略服务器转发所述数据包至所述目标应用程序服务器。Forward the data packets of the target application to the target application server according to the routing policy, or forward the data packets of the target application to the routing policy server according to the routing policy, so that the routing The policy server forwards the data packet to the target application server. 2.根据权利要求1所述的方法,其特征在于,在所述接收由路由策略服务器实时推送的针对目标应用程序的路由策略之前,所述方法还包括:2. The method according to claim 1, wherein before receiving the routing policy for the target application pushed in real time by the routing policy server, the method further comprises: 捕获所述目标应用程序访问网络异常的详细信息;Capture the detailed information of the target application's access network exception; 将所述详细信息上传至所述路由策略服务器。uploading the detailed information to the routing policy server. 3.根据权利要求2所述的方法,其特征在于,所述捕获所述目标应用程序访问网络异常的详细信息,包括:3. The method according to claim 2, wherein the capturing the detailed information of the abnormal network access by the target application comprises: 探测所述目标应用程序访问所述移动终端至所述目标应用程序服务器之间的各级节点的连接状态;Detecting the connection status of the nodes at all levels between the target application accessing the mobile terminal and the target application server; 将连接失败的节点信息记录到网络异常的详细信息。Log the node information of the connection failure to the details of the network exception. 4.一种基于移动终端的路由方法,其特征在于,应用于路由策略服务器,所述方法包括:4. A routing method based on a mobile terminal, characterized in that, applied to a routing policy server, the method comprising: 接收来自位于移动终端的路由策略客户端的目标应用程序访问网络异常的详细信息;Receive detailed information about the abnormal network access of the target application from the routing policy client located in the mobile terminal; 根据所述详细信息和所述移动终端与目标应用程序服务器之间的网络连接状态,制定针对所述目标应用程序的路由策略;According to the detailed information and the network connection state between the mobile terminal and the target application server, formulate a routing strategy for the target application; 将所述路由策略推送至所述路由策略客户端,以令所述路由策略客户端根据所述路由策略将所述目标应用程序的数据包转发到所述目标应用程序服务器,或者,接收来自所述路由策略客户端根据所述路由策略转发所述目标应用程序的数据包,并转发所述数据包至所述目标应用程序服务器。Push the routing policy to the routing policy client, so that the routing policy client forwards the data packets of the target application to the target application server according to the routing policy, or receives data packets from the target application server. The routing policy client forwards the data packet of the target application program according to the routing policy, and forwards the data packet to the target application program server. 5.根据权利要求4所述的方法,其特征在于,在所述接收来自位于移动终端的路由策略客户端的目标应用程序访问网络异常的详细信息之后,所述方法还包括:5. The method according to claim 4, characterized in that, after receiving the detailed information about the abnormal network access of the target application program from the routing policy client located in the mobile terminal, the method further comprises: 判断接收到的详细信息的数量是否大于等于预设数量;Determine whether the number of received detailed information is greater than or equal to a preset number; 若大于等于,则执行制定针对所述目标应用程序的路由策略的操作。If it is greater than or equal to, execute the operation of formulating a routing policy for the target application. 6.一种基于移动终端的路由系统,其特征在于,所述系统包括:路由策略客户端和路由策略服务器,所述路由策略客户端位于移动终端中;其中,6. A routing system based on a mobile terminal, wherein the system comprises: a routing policy client and a routing policy server, and the routing policy client is located in the mobile terminal; wherein, 所述路由策略服务器包括:The routing policy server includes: 路由策略制定模块,用于制定针对目标应用程序的路由策略;所述路由策略是根据所述目标应用程序访问网络异常的详细信息、所述移动终端与目标应用程序服务器之间的网络连接状态制定的;所述目标应用程序是出现访问网络异常的应用程序;A routing policy formulation module is used to formulate a routing policy for the target application; the routing policy is formulated according to the detailed information about the abnormality of the target application accessing the network and the network connection state between the mobile terminal and the target application server ; the target application is an application that has access to the network abnormally; 所述路由策略客户端包括:The routing policy client includes: 路由策略接收模块,用于接收所述路由策略;a routing policy receiving module, configured to receive the routing policy; 客户端数据包路由模块,用于根据所述路由策略将所述目标应用程序的数据包转发到目标应用程序服务器,或者,根据所述路由策略将所述目标应用程序的数据包转发到所述路由策略服务器;The client data packet routing module is configured to forward the data packets of the target application to the target application server according to the routing policy, or forward the data packets of the target application to the target application server according to the routing policy routing policy server; 所述路由策略服务器还包括:The routing policy server also includes: 服务器数据包路由模块,用于根据所述路由策略转发来自所述路由策略 客户端的数据包至所述目标应用程序服务器。The server data packet routing module is configured to forward the data packets from the routing policy client to the target application server according to the routing policy. 7.根据权利要求6所述的系统,其特征在于,所述路由策略客户端还包括:7. The system according to claim 6, wherein the routing policy client further comprises: 异常信息捕获模块,用于在所述路由策略接收模块接收所述路由策略之前,捕获所述目标应用程序访问网络异常的详细信息;an exception information capture module, configured to capture the detailed information of the target application access network exception before the routing policy receiving module receives the routing policy; 异常信息上传模块,用于将所述详细信息上传至所述路由策略服务器。An exception information uploading module, configured to upload the detailed information to the routing policy server. 8.根据权利要求7所述的系统,其特征在于,所述异常信息捕获模块,包括:8. The system according to claim 7, wherein the abnormal information capture module comprises: 节点状态探测模块,用于探测所述目标应用程序访问所述移动终端至所述目标应用程序服务器之间的各级节点的连接状态;a node status detection module, configured to detect the connection status of the nodes at all levels between the target application accessing the mobile terminal and the target application server; 详细信息记录模块,用于将连接失败的节点信息记录到网络异常的详细信息。The detailed information recording module is used to record the node information of the connection failure to the detailed information of the network exception. 9.根据权利要求7所述的系统,其特征在于,所述路由策略服务器还包括:9. The system according to claim 7, wherein the routing policy server further comprises: 异常信息判断模块,用于判断接收到的详细信息的数量是否大于等于预设数量;The abnormal information judgment module is used for judging whether the quantity of the received detailed information is greater than or equal to the preset quantity; 若大于等于,则所述路由策略制定模块根据所述详细信息和所述移动终端与目标应用程序服务器之间的网络连接状态,制定针对所述目标应用程序的路由策略。If it is greater than or equal to, the routing policy formulating module formulates a routing policy for the target application according to the detailed information and the network connection state between the mobile terminal and the target application server.
CN201511019736.4A 2015-12-29 2015-12-29 Routing method and system based on mobile terminal Expired - Fee Related CN106937350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511019736.4A CN106937350B (en) 2015-12-29 2015-12-29 Routing method and system based on mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511019736.4A CN106937350B (en) 2015-12-29 2015-12-29 Routing method and system based on mobile terminal

Publications (2)

Publication Number Publication Date
CN106937350A CN106937350A (en) 2017-07-07
CN106937350B true CN106937350B (en) 2020-08-04

Family

ID=59441375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511019736.4A Expired - Fee Related CN106937350B (en) 2015-12-29 2015-12-29 Routing method and system based on mobile terminal

Country Status (1)

Country Link
CN (1) CN106937350B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108418758B (en) * 2018-01-05 2021-01-29 网宿科技股份有限公司 Single packet identification method and flow guiding method
CN110309025B (en) * 2019-05-21 2023-02-14 平安普惠企业管理有限公司 APP breakdown repairing method and related equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2670112A1 (en) * 2012-05-29 2013-12-04 Openet Telecom Ltd. System and Method for Communicating in a Telecommunication Network via Common Key Routing and Proxies
CN105025103A (en) * 2015-07-23 2015-11-04 北京南天软件有限公司 Cloud routing method and device for application service system based on TUXEDO middleware

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7684787B2 (en) * 2002-05-29 2010-03-23 Qualcomm Incorporated Method and apparatus for routing messages of different message services in a wireless device
US20050149618A1 (en) * 2003-12-23 2005-07-07 Mobile Action Technology Inc. System and method of transmitting electronic files over to a mobile phone
CN104854561B (en) * 2012-10-16 2018-05-11 思杰系统有限公司 Application program for application management framework encapsulates
US9386501B2 (en) * 2012-10-26 2016-07-05 Dialogic Corporation Systems and methods for implementing customized routing in a modularized processing environment
CN104956381A (en) * 2012-11-21 2015-09-30 格林伊登美国控股有限责任公司 Graphical user interface for monitoring and visualizing contact center routing strategies
KR102109704B1 (en) * 2012-12-13 2020-05-12 삼성전자 주식회사 Method and apparatus for forwarding of data traffic
CN103957572A (en) * 2014-05-20 2014-07-30 普天信息技术有限公司 Android-system-based distribution method through multi-network route policy
CN104010000B (en) * 2014-06-13 2017-12-29 北京联宇益通科技发展有限公司 Packet filtering method, device and system under the non-superuser right of Android system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2670112A1 (en) * 2012-05-29 2013-12-04 Openet Telecom Ltd. System and Method for Communicating in a Telecommunication Network via Common Key Routing and Proxies
CN105025103A (en) * 2015-07-23 2015-11-04 北京南天软件有限公司 Cloud routing method and device for application service system based on TUXEDO middleware

Also Published As

Publication number Publication date
CN106937350A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
KR102298268B1 (en) An apparatus for network monitoring based on edge computing and method thereof, and system
CN105991412B (en) Information push method and device
US8135979B2 (en) Collecting network-level packets into a data structure in response to an abnormal condition
TWI648969B (en) Method and device for identifying agent IP address
EP3586530A1 (en) Methods, systems and computer readable media for providing service capability exposure function (scef) as a diameter routing agent(dra) feature
CN105323247A (en) Intrusion detection system for mobile terminal
CN102571492B (en) Method and device for detecting failure of routing equipment
CN105871584A (en) Method, device and system for updating client configuration in key value pair database
WO2022062407A1 (en) Link monitoring method and apparatus, and storage medium and electronic apparatus
CN105743687B (en) Method and device for judging node fault
CN105743732A (en) Method and system for recording transmission paths and distribution conditions of files in local area network
CN106937350B (en) Routing method and system based on mobile terminal
CN101282366A (en) Data transmission processing method and device in point-to-point network
CN109964450B (en) A method and device for determining a shared risk link group
CN105530144A (en) Service identification method and system in asymmetric routing environment
US11218427B1 (en) Detecting lagging nodes in a time-synchronized distributed environment
CN106230658A (en) A kind of method and apparatus monitoring the network equipment
CN103997416B (en) The error correction method and error correction device of mobile terminal Internet access
CN103457793B (en) A kind of multicast time-delay measuring method, equipment and system
CN115333994B (en) Method and device for realizing VPN route rapid convergence and electronic equipment
CN110650448A (en) A call management system and method for a mobile communication terminal
CN114745809A (en) A network connection method, device, terminal device and storage medium
US9003241B2 (en) Reporting errors on serial interfaces to application layers for flexible error handling approach selection
WO2017107462A1 (en) P2p network-based data processing method, apparatus and system
WO2017032147A1 (en) Method and apparatus for switching internet small computer system interface session link

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200804