CN101674221A - Static routing generation method, method and device for implementing terminal routing - Google Patents

Static routing generation method, method and device for implementing terminal routing Download PDF

Info

Publication number
CN101674221A
CN101674221A CN 200810119780 CN200810119780A CN101674221A CN 101674221 A CN101674221 A CN 101674221A CN 200810119780 CN200810119780 CN 200810119780 CN 200810119780 A CN200810119780 A CN 200810119780A CN 101674221 A CN101674221 A CN 101674221A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
route
terminal
static
routing
determined
Prior art date
Application number
CN 200810119780
Other languages
Chinese (zh)
Inventor
刘大鹏
敏 惠
胡雪南
辉 邓
刚 陈
Original Assignee
中国移动通信集团公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/42Centralized routing

Abstract

The invention discloses a static routing generation method, a method and a device for implementing terminal routing. The method for implementing the terminal routing comprises the following steps that: a network element device on a network side or a DHCP server transmits a routing policy to the terminal, and the terminal generates and stores a corresponding static routing according to the routingpolicy transmitted by the network element device or the DHCP server; and the terminal matches the stored static routing according to the attribute information about data packets to be transmitted to determine the matched routing and utilizes the determined matched routing to transmit the data packets. The scheme of the invention does not need a user to manually configure the static routing by acquiring various routing configuration parameters, can ensure that a plurality of networks are connected and the data packets pass through so as to implement the multi-connection of the terminal.

Description

静态路由生成方法、终端路由实现方法及装置 Static route generating method, and device realization method enroute

技术领域 FIELD

本发明涉及通信领域,尤其涉及终端连接到多个网络时的一种静态路由生成方法,相应的终端路由实现方法,以及终端与网络侧装置。 The present invention relates to the field of communications, particularly to a method of generating a static route when a terminal connected to a plurality of networks, routing implemented method corresponding terminal, and a terminal and the network side device.

背景技术 Background technique

随着互联网的飞速发展,网络的种类不断丰富,包括以太网、GPRS网络、 LTE网络、VPN、 WiFi等。 With the rapid development of the Internet, constantly enrich the types of network, including Ethernet, GPRS network, LTE network, VPN, WiFi and so on. 每种网络有自己的特性,如以太网具有高速的特点, 而GPRS网络则覆盖面积广泛,VPN具有高安全性等。 Each network has its own characteristics, such as high-speed Ethernet features, and GPRS networks are wide area coverage, VPN with high security. 用户为了获得某种网络特性而接入相应的网络,当用户需要同时获得几种网络特性,或是单一网络不能够满足用户的多样需求时,就催生了终端多连接的需求。 In order to obtain some kind of network users and access the corresponding network characteristics, when the user need to obtain several properties of a network or a single network can not meet the diverse needs of users, the demand created a system of multiple connection terminals. 即将一个终端同时接入多个网络,可以为不同的应用数据包寻找最合适的网络,保持终端同时工作在多个网络中。 A plurality of access terminals simultaneously coming networks, to find the most suitable network packets for different applications, a plurality of holding the terminal in the network simultaneously.

终端的迅速发展使多连接的需求有了物理硬件保证。 The rapid development of the terminal needs to make multiple connections with the physical hardware guarantee. 目前市场上的笔记本电脑基本同时内置有无线网卡和以太网卡,同时留有3G数据卡槽,并且这些网络接口都可以同时工作。 Currently laptop on the market at the same time the basic built-in wireless LAN and Ethernet cards, while leaving 3G data card slot, and these network interfaces can work simultaneously. 智能手机能够连接多种制式的移动网络,并且支持WiFi连接。 Smart phones can connect a variety of standard mobile network, and supports WiFi connectivity.

但是在具备了用户需求与终端硬件保证的情况下,现有技术中的终端路由机制最终限制了终端多连接。 However, in the case where the user is provided with the terminal needs to ensure the hardware, the terminal routing mechanism of the prior art multi-connection terminals ultimately limits. 由于终端路由使用默认网关(default gateway) 机制,在多连接的情况下,操作系统会根据一定的规则选择出一个默认的网络接口,使所有网络流量都通过这个默认接口进出,在事实上造成了终端多连接的失败,从而不能达到终端多连接的目的,不能实现终端对多个网络连接的同时使用。 Since the terminal the route using the default gateway (default gateway) mechanism, in the case of multiple connections, the operating system will choose a default network interface according to certain rules, so that all network traffic through the default interface and out, in fact, resulted in multi-terminal connection failure, thereby failing to achieve the object of multi-terminal connector, the terminal can not be achieved while using a plurality of network connections.

现有技术中, 一种用来保证终端多个网络接口同时拥有流量的方法是在主 The prior art, a method to ensure that the terminal has multiple network interfaces at the same time the main flow is

7机路由表中配置静态路由。 7 routing tables configured static route. 具体实现方式是用户通过命令行的方式手动配置静 DETAILED implementation is a user manually configure the static command line

态路由表项,包括输入目的IP、网关、测量(metric)值等,这样可以保证对特定目的IP地址指定网络接口进行路由,其他路由则仍通过默认网络接口完成,保证了多个接口同时有流量存在。 State routing table entries, including an input destination IP, gateway, measured (Metric) values ​​etc., can ensure that the network interface specified destination IP address for a particular route, the other route is still enabled through the default network, while ensuring the plurality of interfaces there is traffic. 但该方法对用户基本不具有可操作性, 因为用户获取各种路由配置参数很困难。 However, this method has substantially no user operability, because the user acquires various parameters of the routing configuration is difficult.

Windows Vista操作系统可以在特定的情形下保持主机多连接,即在应用进行网络通信时,如果默认接口更换,那么已经启动的应用将继续使用旧接口进行通信,新启动的应用使用最新更换的默认接口。 Windows Vista operating system can be maintained under certain circumstances hosts multiple connections, that is, when the application of network communication, if the default interface replacement application that has been started will continue to use the old interface to communicate the new launch applications using the latest replacement of default interface. 这种情况下,旧接口和新的默认接口同时拥有流量,达到了终端多连接。 In this case, the old interface and the new default interface also has a flow, reaching multi-terminal connection. 但是,这是一个被动情况下的多连接,当用户主动需要为不同应用指定不同网络时,这种方式不能发挥作用。 But this is more than a passive connection in the case, when the user is actively need to specify different networks for different applications, this approach can not work. 综上所述,现有技术中,由于终端路由遵从默认网关机制,即无论物理上终端有几个网络接口接入多少个不同的网络,终端的数据包路由只从一个默认的接口收发。 In summary, the prior art, since the default gateway enroute compliance mechanism, i.e., whether the terminal has several packet routing network interface different network access number, the terminal only from a default physical interface transceiver. 这样就造成了即使终端接入多个网络,事实上的所有网络流量都是从一个接口中发送或接收,达不到终端多连接的效果。 Thus causing the plurality of access networks even if the terminal, in fact, all network traffic is sent or received from an interface, to achieve the effect of multi-connection terminals.

发明内容 SUMMARY

本发明实施例提供一种静态路由生成方法、相应的终端和网元装置,实现终端根据网络侧网元装置下发的路由策略,生成对应的静态路由,解决了由用户手动配置静态路由不具有可操作性的问题。 Embodiment of the present invention provides a method for generating a static routing, the network element and the corresponding terminal device, a terminal realized in accordance with the routing policy sent by the network side of the network element means for generating a corresponding static routing, solves the static routes configured manually by a user having no the problem operability.

本发明实施例还提供一种静态路由生成方法、相应的终端和DHCP服务器,实现终端通过DHCP服务器使用扩展DHCP报文下发路由策略,生成对应的静态路由,解决了用户手动配置静态路由不具有可操作性的问题。 Embodiments of the invention further provides a method for generating a static routing, the corresponding terminal and the DHCP server, the DHCP server implemented by a terminal extension issued DHCP packet routing policy corresponding to the generation of static routes to solve the user does not have to manually configure static routes the problem operability.

本发明实施例还提供终端路由实现方法,通过终端匹配静态路由发送数据包,实现终端多连接。 Embodiments of the invention further provides a terminal routing method implemented by a terminal to send packets matched static route, to achieve a multi-terminal connector.

本发明实施例提供的一种静态路由生成方法,包括: Kind of static route generating method according to an embodiment of the present invention, comprising:

终端接入网络后向网络侧发起路由策略获取请求接收网络侧发送的^各由策略; 根据接收的路由策略,生成对应的静态路由并存储。 After the terminal accesses the network to the network to initiate route policy acquisition request sent by a network side ^ by the respective policy; policy routing according to the received, generating and storing a corresponding static route. 本发明实施例提供一种终端路由实现方法,包括: Embodiment of the present invention provides a terminal routing implemented method, comprising:

终端根据待发送的数据包的属性信息,匹配存储的静态路由,确定出一条匹配3各由; The terminal according to the attribute information of data to be transmitted packet matches a stored static route, it is determined that a match of the respective 3;

使用确定出的匹配路由发送所述数据包; Using the determined transmission route matches the data packet;

其中,所述静态路由采用上述静态路由生成方法生成。 Wherein the above-described static routing static route generation method.

本发明实施例还提供一种终端,包括: Embodiments of the invention further provides a terminal, comprising:

路由策略获取单元,用于向网络侧发起路由策略获取请求,接收网络侧发送的路由策略; Routing policy acquisition unit, for initiating the routing policy acquisition request to the network side, receives the routing policy of the network side;

静态路由生成存储单元,用于根据接收的路由策略,生成对应的静态路由并存储。 Generating static route storing unit according to the received routing policy, generate and store a corresponding static route.

本发明实施例还提供一种网元装置,包括: 存储单元,用于存储路由策略; 接收单元,用于接收终端发起的路由策略获取请求; 发送单元,用于向终端发送所述存储单元中存储的路由策略。 Embodiment of the present invention further provides a network element apparatus, comprising: a storage unit for storing the routing policy; receiving means for receiving a routing policy acquisition request initiated by the terminal; transmitting means for transmitting the storage unit to the terminal routing policy store. 本发明实施例再提供一种静态路由生成方法,包括: 终端接入网络后向网络侧动态主机配置协议DHCP服务器请求IP配置; 接收所述DHCP服务器发送的DHCP报文,所述DHCP报文中包含路由策略; Another embodiment of the present invention to provide a method for generating a static routing, comprising: after the terminal accesses the network IP configuration request to the network Dynamic Host Configuration Protocol DHCP server; receiving the DHCP packets sent by the DHCP server, the DHCP packet contains routing strategy;

获取所述DHCP报文中包含的路由策略,生成对应的静态路由并存储。 Obtaining routing policy contained in the DHCP packet to generate a corresponding static routing and storage. 根据上述使用DHCP报文的静态路由生成方法,本发明实施例提供一种相 According to the DHCP packets to a method for generating a static route, embodiments of the present invention there is provided a phase

应的终端路由实现方法,包括: Terminal should route implemented method, comprising:

终端根据待发送的数据包的属性信息,匹配存储的静态路由,确定出一条 The terminal according to the attribute information of the packet to be transmitted, the router matches the stored, it is determined that a

匹配3各由; 3 by a respective matching;

使用确定出的匹配路由发送所述数据包。 Using the determined match the routed packets. 根据上述使用DHCP报文的静态路由生成方法,本发明实施例提供一种终端,包4舌: According to the DHCP packets to static route generating method, embodiments of the present invention provides a terminal, including tongue 4:

IP配置请求单元,用于向网络侧DHCP服务器请求获耳又IP配置,接收所述DHCP服务器发送的DHCP报文,所述DHCP报文中包含路由策略; IP configuration request means for requesting a DHCP server to the network side and the ear is eligible IP configuration, the DHCP server receives the DHCP packets sent by the DHCP packet contains routing policy;

静态路由生成存储单元,用于获取所述DHCP报文中包含的路由策略,生成对应的静态路由并存储。 Generating static routing storage unit, configured to obtain the routing policy contained in the DHCP packet, generating and storing a corresponding static route.

根据上述使用DHCP报文的静态路由生成方法,本发明实施例提供DHCP 服务器,包括: According to the DHCP packets to static route generating method, embodiments of the present invention provides a DHCP server, comprising:

存储单元,用于存储路由策略; A storage unit for storing a routing policy;

接收单元,用于接收终端发送的获取IP配置请求; A receiving unit, configured to obtain IP configuration request sent by a terminal;

生成单元,用于生成DHCP报文,在所述DHCP报文中包含所述存储单元中存储的路由策略; Generating means for generating a DHCP packet, the routing policy comprises the storage unit stored in the DHCP packet;

本发明通过由网络侧网元装置或DHCP服务器下发路由策略给终端,终端只需根据网元装置或DHCP服务器下发的路由策略生成对应的静态路由,不需要由用户获取各种路由配置参数来手动配置静态路由。 Configuration parameters of the present invention, only the terminal generates a corresponding static route, the user does not require access to a variety of routes sent by a routing network element at network side device or a DHCP server policy to the terminal according to routing strategy at the network element device or a DHCP server to configure a static route manually. 对于终端来说,不需要在终端维护路由算法,节省了计算资源;对于用户来说,整个路由策略不需要人为参与,简单易行。 For the terminal, the terminal does not need to maintain the routing algorithm, saving computing resources; For the user, the entire routing policy does not require human involvement is simple.

终端生成静态路由后,能够根据待发送数据包的属性信息(如数据包的目标地址、业务类型标识等)匹配静态路由,可以保证多个网络连接同时有数据包通过,达到多连接的目的。 After the terminal generates a static route can be matched according to the attribute information of the packet to be transmitted (e.g., the packet destination address, service type identification, etc.) static routing, the network connection can be guaranteed while a plurality of data packets through a multi-purpose connections.

附图说明 BRIEF DESCRIPTION

图1为本发明实施例一提供的一种静态路由生成方法流程图; 图2为本发明实施例二提供的一种终端路由实现方法流程图; 图3为本发明实施例三提供的一种终端结构示意图;图4为本发明实施例四提供的网元装置结构示意图; 图5为本发明实施例五提供的静态路由生成方法流程图; 图6为本发明实施例五中终端与DHCP服务器之间的具体信令交互过程示意图; A flowchart of a method of generating a static routing according to a first embodiment of the present invention, FIG. 1; FIG. 2 a flow chart to implement a method of routing according to a second terminal of the embodiment of the present invention; FIG. 3 one kind according to a third embodiment of the present invention. a schematic view of the terminal structure; FIG. 4 is a schematic structural diagram of a network element device according to a fourth embodiment of the invention; FIG. 5 is a flowchart static route generating method according to a fifth embodiment of the present invention; FIG. 6 terminal fifth embodiment of the present invention and the DHCP server DETAILED signaling interaction process between the schematic;

图7为本发明实施例七提供的一种终端结构示意图; Figure 7 a schematic view of one kind of structure of a terminal according to a seventh embodiment of the present invention provides;

图8为本发明实施例八-提供的DHCP服务器结构示意图。 The DHCP server provides a schematic view of the structure - Figure 8 eight embodiment of the present invention.

具体实施方式 detailed description

本发明实施例提供静态路由生成方法、相应的终端和网元装置或DHCP服务器,实现终端根据网络侧下发的路由策略,生成对应的静态路由,解决了由用户手动配置静态路由不具有可操作性的问题。 Embodiments of the present invention provides a method for generating a static routing, the network element and the corresponding terminal apparatus or DHCP server, the terminal according to routing strategy implemented by the network side, corresponding to the generation of static routes, static routes configured solved manually by a user having no operable issues. 且当终端需要发送数据包时, 能够根据待发送数据包的属性信息匹配生成的静态路由,通过匹配出的静态路由发送数据包,实现终端多连接。 And when the terminal needs to send a data packet can be transmitted according to the attribute information matches packets generated static route, sends packets matched static route, to achieve a multi-terminal connector.

下面结合附图,用具体实施例对本发明提供的方法及装置进行详细描述。 Below in conjunction with the accompanying drawings, the present invention provides a method and apparatus are described in detail with specific embodiments.

实施例一: Example One:

实施例一提供一种静态路由生成方法,由网络侧下发路由策略给终端,终端根据网络侧下发的路由策略生成静态路由并存储。 A static embodiment provides a routing method for generating, by the network side routing policy sent to the terminal, the terminal generates a static routing according to the routing policy issued by the network side and stored.

参见图1,为本发明实施例一提供的一种静态路由生成方法流程图,具体包括: Referring to Figure 1 A static route generating method according to a first embodiment of the present invention in a flowchart, comprises:

步骤S101、终端接入网络后向网络侧发起路由策略获取请求; 步骤S102、终端接收网络侧发送的路由策略; Step S101, the network terminal after initiating the access to the network routing policy acquisition request; step S102, the terminal receives a routing policy of the network side;

步骤S103、终端根据接收的路由策略,生成对应的静态路由并存储。 Step S103, the terminal according to the received routing policy, generate and store a corresponding static route. 其中,路由策略具体可以包含例如: Among them, specific routing policy may include, for example:

目的地址/子网掩码和网关地址;或者包含业务类型标识和网关地址;或者包含目的地址/子网掩码、业务类型标识和网关地址等。 Destination address / subnet mask and gateway address; or comprise the service type identifier and the gateway address; or comprises a destination address / subnet mask, and gateway address identifies the service type and the like.

,在步骤 In step

iiS103中,根据接收的目的地址/子网掩码和网关地址,生成包含该目的地址/子网掩码和网关地址的一条静态路由,并加入到终端路由表中; iiS103 in accordance with the destination address / subnet mask and gateway address received, generating a static route containing the destination address / subnet mask and gateway address of the terminal and added to the routing table;

当网络侧下发的路由策略中包含业务类型标识和网关地址时,在步骤S103 中,根据接收的业务类型标识和网关地址,生成包含该业务类型标识和网关地址的一条静态路由,并加入到终端路由表中; When the routing policy sent by the network side comprises service type ID and the gateway address, in step S103, according to the service type identifier and a gateway address received, generates a static route to the service type ID and the gateway address, and added to terminal routing table;

当网络侧下发的路由策略中包含目的地址/子网掩码、业务类型标识和网关地址时,在步骤S103中,根据接收的目的地址/子网掩码、业务类型标识和网关地址,生成包含该目的地址/子网掩码、业务类型标识和网关地址的一条静态路由,并加入到终端路由表中。 When the routing policy of the network side comprises a destination address / subnet mask, and gateway address identifies the service type, in step S103, the destination address received / subnet mask, gateway address and service type identifier, generating the object comprises a static route address / subnet mask, gateway address and the service type identifier of the terminal and added to the routing table.

当终端离开网络后,终端自动删除本地存储的根据对应网络侧发送的路由策略生成的静态路由。 When the terminal leaves the network, the terminal automatically delete stored locally generated according to the routing policy corresponding to the network side of the static route.

根据本发明上述实施例一,终端只需根据网络侧下发的路由策略生成对应的静态路由,不需要用户获取各种路由配置参数来手动配置静态路由,解决了用户手动配置静态路由不具有可操作性的问题。 According to the above-described embodiment of the invention a terminal according to a static routing only sent by the network side to generate a corresponding routing strategies, does not require a user to obtain various routing configuration parameters manually configure static routes to solve the user does not manually configure static routes having operational problems.

实施例二: Example II:

实施例二提供一种终端路由实现方法,由终端选择本地存储的静态路由发送数据包。 A terminal according to the second embodiment routing implemented method selected by the terminal locally stored static routes to send packets.

参见图2,为本发明实施例二提供的一种终端路由实现方法流程图,具体包括: Referring to Figure 2, a flowchart of a method to implement a routing according to a second terminal of the embodiment of the present invention comprises:

步骤S201、终端根据待发送的数据包的属性信息,匹配存储的静态路由, 确定出一条匹配路由; Step S201, the terminal according to the attribute information of data to be transmitted packet matches a stored static route, a match is determined route;

步骤S202、终端使用确定出的匹配路由发送数据包; 其中,静态路由采用上述实施例一的方法生成。 Step S202, the terminal uses the determined match routed packets; wherein the static routing method of generating the above-described first embodiment.

根据本发明实施例二提供的方法,当未确定出匹配^各由时,采用默认路由发送数据包。 The method according to a second embodiment of the present invention, when a match is not determined by the ^ each time, with default routed packets.

如上所述,若静态路由包含目的地址/子网掩码和网关地址,在步骤S201中,需要判断待发送的数据包的目标地址是否属于静态路由包含的目的地址/ As described above, if the static route containing the destination address / subnet mask and gateway address, in step S201, the required target address of the packet is determined to be transmitted belongs to the destination address contained in the static route /

子网掩码中,若是,将对应静态路由确定为匹配路由; Subnet mask, if the static route is determined to match the corresponding route;

如上所述,若静态路由包含业务类型标识和网关地址,在步骤S201中, 需要判断待发送的数据包的业务类型标识是否与静态路由包含的业务类型标识相同,若是,将对应静态路由确定为匹配路由; As described above, if the static route identifier and the service type comprises a gateway address, in step S201, the same need to determine the type of service type identification data packet to be transmitted is included with a static routing identifier, if the static route is determined as the corresponding matching route;

如上所述,若静态路由包含目的地址/子网掩码、业务类型标识和网关地址, 在步骤S201中,需要判断待发送的数据包的目标地址是否属于静态路由包含的目的地址/子网掩码中,若是,将对应静态路由确定为第一匹配路由;以及判断待发送的数据包的业务类型标识是否与静态路由包含的业务类型标识相同, 若是,将对应静态路由确定为第二匹配路由;当第一匹配路由与第二匹配路由为同一静态路由时,将该静态路由确定为最终匹配路由;否则,将第一匹配路由确定为最终匹配路由。 As described above, if the static route containing the destination address / subnet mask, and gateway address identifies the service type, in step S201, the required target address of the packet is determined to be transmitted belongs to the destination address contained in the static route / subnet mask code, if the static route is determined as corresponding to a first matching route; the same service type identifier and a service type identification data packet to be transmitted is determined whether or not contained in the static route, if the static route corresponding to the route as the second match ; when the first and the second route matching the same static route matching route, the route is determined as the final match the static route; otherwise, the route is determined as the final first matching matching route.

根据本发明实施例二的上述方法,且当终端需要发送数据包时,能够根据待发送数据包的属性信息(如数据包的目标地址、业务类型标识等)匹配生成的静态路由,通过匹配出的静态路由发送数据包;由于不同应用的数据包其目标地址或服务类型有可能不同,则其得到的匹配路由也不同,从而使得终端可以使用多个路由发送数据包,实现终端多连接。 According to the method according to the second embodiment of the present invention, and when the terminal needs to send a data packet, can be matched to generate static routing according to the attribute information to be sent packet (e.g., destination address of the packet, a service type identification, etc.), by matching the static packet transmission route; different applications because the data packet or the destination address which may be different types of service, which is obtained by matching route is different, so that the terminal may transmit the packet using a plurality of routes for connecting multiple terminals.

实施例三: Example III:

实施例三提供一种终端,能够从网络侧获取路由策略,并生成静态路由并存储,并选择存储的静态路由发送数据包。 According to a third embodiment of a terminal capable of acquiring the routing policy from the network side, and generates and stores the static route, and static routes packets stored in the transmission data.

参见图3,为本发明实施例三提供的一种终端结构示意图,具体包括: Referring to a schematic diagram of a termination structure according to a third embodiment 3, the present invention comprises:

路由策略获取单元301,用于向网络侧发起路由策略获取请求,接收网络侧发送的路由策略; Routing policy acquisition unit 301, for initiating the routing policy acquisition request to the network side, receives the routing policy of the network side;

静态路由生成存储单元302,用于根据接收的路由策略,生成对应的静态路由并存储。 Generating static route storage unit 302, according to the received routing policy, generate and store a corresponding static route.

本发明实施例三提供的终端,还包括:路由确定单元303,用于根据待发送的数据包的属性信息,匹配存储的静态路由,确定出一条匹配if各由; The terminal according to a third embodiment of the present invention, further comprising: a route determining unit 303, the attribute information for the data packet to be transmitted, stored matching static route, if it is determined that a match of each;

数据发送单元304,用于使用确定出的匹配路由发送所述数据包。 Data transmitting unit 304, using the determined matching the packet transmission route.

采用本发明实施例三提供的终端,只需根据网络侧下发的路由策略生成对应的静态路由,不需要由用户获取各种路由配置参数来手动配置静态路由,解决了用户手动配置静态路由不具有可操作性的问题;且当终端需要发送数据包时,能够根据待发送数据包的属性信息匹配生成的静态路由,通过匹配出的静态路由发送数据包,实现终端多连接。 The present invention uses a terminal according to a third embodiment, only the static routes sent by the network side routing policy corresponding to the generated, no need to obtain different routing configuration parameter by the user to manually configure a static route to solve the user to manually configure static routes is not having operational problems; and when the terminal needs to send a packet, it is possible, by sending packets matched static route according to the attribute information matches the generated static routing of data packets to be transmitted, to achieve a multi-terminal connector.

实施例四: Example IV:

实施例四提供一种网元装置,实现向终端下发路由策略。 According to a fourth embodiment A network element apparatus, implement routing policies sent to a terminal.

参见图4,为本发明实施例四提供的网元装置结构示意图,具体包括: Referring to Figure 4, a schematic view of the present device configuration network element according to a fourth embodiment of the invention, comprises:

存储单元401,用于存储路由策略; A storage unit 401 for storing the routing policy;

接收单元402,用于接收终端发起的路由策略获取请求; Receiving unit 402 for receiving a routing policy acquisition request initiated by the terminal;

发送单元403,用于向终端发送存储单元401中存储的路由策略。 A sending unit 403, configured to send a storage unit 401 to the terminal routing policy.

还包括: Also includes:

配置单元404,用于配置或修改存储单元401中存储的路由策略。 Configuring unit 404 to configure or modify the storage unit 401 of the routing policy.

采用本发明实施例四提供的网元装置,通过网络侧预先设置路由策略并存储到网元装置中,接收到终端的请求后,向终端发送设置的路由策略;不仅避免了在终端需要维护路由算法,节省了终端的计算资源,且运营商可以方便地配置或更新网元装置中存储的路由策略,灵活实现终端多连接。 Using the network element apparatus according to a fourth embodiment of the present invention, a routing policy in advance by the network side and stored in the routing policy NE device, after receiving a request from the terminal, the transmission setting to the terminal; not only avoids the terminal needs to maintain the routing algorithm saves computational resources of the terminal, and the operator can easily configure the new cell or routing policies in the storage device, to realize flexible multi-connection terminals.

基于同一发明构思,本发明还提供一种通过扩展动态主机配置协议(Dynamic Host Configuration Protocol , DHCP)实现的静态i?各由生成方法、 终端路由实现方法以及相应的终端与DHCP服务器。 Based on the same inventive concept, the present invention further provides an implementation of static i by extending the dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP)? Generated by the respective methods, implementation and enroute respective terminal with a DHCP server.

实施例五: Example Five:

实施例五提供一种静态路由生成方法,通过终端接入网络后向DHCP服务器请求IP配置时,由DHCP服务器在返回给终端的DHCP应答报文中包含路由策略,终端再根据接收的路由策略,生成静态路由并存储。 According to the fifth embodiment provides a method for generating a static routing, IP configuration request to the DHCP server when the terminal accesses the network by the DHCP server contained in the policy routing back to the terminal a DHCP response message, then the terminal according to the received routing policy, generate static routing and storage.

参见图5,为本发明实施例五提供的静态路由生成方法流程图,具体包括: Referring to Figure 5, a flowchart of a method for generating a static routing according to a fifth embodiment of the invention, comprises:

步骤S501 、终端接入网络后向网络侧DHCP服务器请求IP配置; Step S501, the network terminal after the access request to the network side DHCP IP configuration server;

步骤S502、终端接收DHCP服务器发送的DHCP报文,在该返回的DHCP Step S502, the terminal receives the DHCP server sends a DHCP message, the DHCP returns

报文中包含路由策略; Packet contains routing policy;

步骤S503、终端获取DHCP报文中包含的路由策略,生成对应的静态路 Step S503, the terminal acquires the routing policy contained in the DHCP packet, generating a corresponding static routes

由并存4诸。 4 by the various co-exist.

终端离开网络后,删除本地存储的根据对应网络中DHCP服务器发送的路由策略生成的静态路由。 After leaving the network terminal, to delete a static route generated based on the routing policy corresponding to the network DHCP server to send the local storage.

实施例五的方法中,终端与DHCP服务器之间的具体信令交互过程如图6 所示,包括: The method according to a fifth embodiment, the specific signaling interaction process between the terminal and the DHCP server shown in Figure 6, comprising:

1、 终端接入网络后,向网络侧DHCP服务器发送一条发现(Discovery) 广播消息,以确定本地可用的DHCP服务器; 1, the terminal accesses the network, the network server sends a DHCP discovery (the Discovery) broadcast message, a DHCP server to determine if the locally available;

2、 网络侧DHCP服务器向终端发送DHCP报文格式的提供(Offer)消息, 携带终端的IP配置信息以及设置的路由策略;其中,终端的IP配置信息包括IP地址、网关地址、域名服务器(DNS)等,路由策略通过扩展的DHCP选项携带。 2, the network side DHCP server to the terminal to provide DHCP packet format (Offer Penalty for) message carrying the IP configuration information of the terminal and the routing policy settings; wherein, IP configuration information of the terminal includes an IP address, the gateway address, the domain name server (DNS ), etc., by extending the routing policy to carry DHCP options.

3、 终端接收到网络侧多个DHCP服务器发送的Offer消息后,从中选定一个DHCP服务器,发送选择(R叫uest)广播消息给所有的DHCP服务器确认选择。 3, the terminal after receiving the DHCP Offer message server sends the network side of the plurality of selected from a DHCP server, transmitting the selected (R called uest) a broadcast message to all DHCP server to confirm the selection.

4、 选定的DHCP服务器向该终端返回DHCP报文格式的确认(Acknowledge)消息,携带该终端的IP配置信息以及设置的路由策略;其中, 4, the selected terminal to the DHCP server returns the DHCP acknowledgment packet format (the Acknowledge) message carrying the IP configuration information of the terminal and routing policy settings; wherein,

IP配置信息包括IP地址、网关地址、域名服务器(DNS)等,路由策略通过扩展的DHCP选项携带。 IP configuration information including IP address, gateway address, Domain Name Server (DNS), etc., by extending the routing policy to carry DHCP options.

下面对如何扩展DHCP选项携带路由策略进行具体说明: Next, how to extend the DHCP option carries the routing strategies specify:

下表1为现有技术中DHCP的报文格式: Table 1 is a prior art DHCP packet format:

15表1: 15 Table 1:

<table>table see original document page 16</column></row> <table> <Table> table see original document page 16 </ column> </ row> <table>

表l中各字段的具体含义为: Table l is the specific meaning of each field:

OP(1): 表示消息op代码/消息类型1=BOOTREQUEST, 2=BOOTREPLY,长度为1个字节(byte); OP (1): indicates that the message op codes / Message Type 1 = BOOTREQUEST, 2 = BOOTREPLY, length of 1 byte (byte);

Htype(1):表示硬件地址类型,长度为1个字节(byte); Htype (1): indicates the hardware address type, length of 1 byte (byte);

Hlen(1):表示硬件地址长度,长度为1个字节(byte); Hlen (1): indicates the hardware address length, a length of one byte (byte);

Hops(1):设置为零,当通过转发代理启动时可以供转发代理使用,长度为1个字节(byte); Hops (1): is set to zero, when it can be supplied through the forwarding agent starts forwarding agent used, the length of one byte (byte);

Transaction ID(4):操作ID,是一个随机数,用于终端和服务器之间同步消息和消息的响应,长度为4个字节(byte); Transaction ID (4): operation ID, a random number is used for the synchronization message and the response message between the terminal and the server, a length of 4 bytes (byte);

Seconds(2):由用户指定的时间,为开始地址获取和更新进行后的时间, 长度为2个字节(byte); Seconds (2): the time specified by the user, retrieve and update time will be after the start address, the length of 2 bytes (byte);

Rags(2):标志位,长度为2个字节(byte); Rags (2): flag, a length of 2 bytes (byte);

Ciaddr (4):用户IP地址,此字段仅当用户处于BOUND,RENEW或REBINDING状态和能够响应ARP请求时使用,长度为4个字节(byte); Yiaddr (4):用户IP地址,长度为4个字节(byte);Siaddr (4 ):用于bootstrap过程中的IP地址,长度为4个字节(byte); Ciaddr (4): IP address of the user, this field only when the user is in BOUND, RENEW or REBINDING use state and can respond to ARP request, a length of 4 bytes (byte); Yiaddr (4): user IP address, length of 4 bytes (byte); Siaddr (4): IP address of the bootstrap process for a length of 4 bytes (byte);

Giaddr(4):转发代理IP地址,长度为4个字节(byte); Giaddr (4): IP address of the Forwarding Agent, a length of 4 bytes (byte);

Chaddr (16):客户硬件地址,长度为16个字节(byte); Chaddr (16): the client hardware address, a length of 16 bytes (byte);

Sname (64):可选的服务器主机名,长度为64个字节(byte); Sname (64): Optional server host name, a length of 64 bytes (byte);

File (128):启动文件名,长度为128个字节(byte); File (128): boot file name, a length of 128 bytes (byte);

Options (variable):可选的参数字段,长度不定。 Options (variable): an optional parameter field, of indefinite length.

从表1中的DHCP报文格式各字段可知,其中,Options (variable)是一个可选的参数字段,其长度不定。 Table 1 shows that a DHCP packet format fields, wherein, Options (variable) is an optional parameter field, the length variable. 本发明实施例扩展这一可选字段来携带设置在DHCP服务器中的路由策略。 Extending this embodiment an optional field used to carry the routing policy is provided in the DHCP server according to the present invention. 例如,扩展字段为:Option N;通过该OptionN字段携带路由策略。 For example, the extension field is: Option N; carried by the routing policy OptionN field.

具体的路由策略可以包含: Specific routing policy may include:

目的地址/子网掩码和网关地址;或者包含业务类型标识和网关地址;或者包含目的地址/子网掩码、业务类型标识和网关地址等。 Destination address / subnet mask and gateway address; or comprise the service type identifier and the gateway address; or comprises a destination address / subnet mask, and gateway address identifies the service type and the like.

以路由策略包含目的地址/子网掩码、业务类型标识和网关地址为例,扩展 Routing policy to include destination address / subnet mask, and gateway address identifies the service type for the extended

字段Option N的具体字段结构如下: DETAILED field Option N field configuration is as follows:

<table>table see original document page 17</column></row> <table> <Table> table see original document page 17 </ column> </ row> <table>

上述字段结构,仅为举例,本发明对此字段结构的具体结构形式及各字段的具体长度不作限定。 Field above configuration, for example only, a specific structure forms a specific length of this field and each field structure of the present invention is not limited.

上述步骤S503中,终端获取DHCP报文中包含的路由策略,生成对应的静态路由并存储的具体实现过程与实施例一相同,不重迷。 A same as the above-described step S503, the terminal acquires the routing policy contained in the DHCP packet, generating and storing a corresponding static route specific implementation process of the embodiment, no weight lost.

根据本发明上述实施例五,终端只需根据网络侧DHCP服务器下发的路由策略生成对应的静态路由,不需要由用户获取各种路由配置参数来手动配置静态路由,同样解决了用户手动配置静态路由不具有可操作性的问题。 The static routing according to the fifth embodiment described above, the terminal according to the present invention, only the routing policy issued by the network side to generate a corresponding DHCP server, the user does not need to obtain various routing configuration parameter to manually configure static routes, also solves the user to manually configure a static routing does not have operational problems. 实施例六: Example VI:

实施例六与上述实施例二相类似,当终端有数据包待发送时,终端4艮据待发送的数据包的属性信息,匹配本地路由表中存储的静态路由,确定出一条匹配路由;并使用确定出的匹配路由发送数据包。 Sixth Embodiment of the above-described second embodiment, similarly, when the terminal has data packets to be transmitted, attribute information of the packet 4 Gen data to be transmitted from the terminal, the matching local routing table stored in the static route, it is determined that a matching route; and using the determined transmission route matching packets.

与实施例二所不同的是,实施例六中的静态路由是采用实施例五所述方法生成的。 Example except that the two static routes embodiment Sixth embodiment is to use the method described in Example five generated.

同样,当终端在本地存储的静态路由中未确定出匹配路由时,采用默认路由发送数据包。 Similarly, when the terminal does not determine the matching route stored in the local static route, the default route to send data packets. 实施例七: Example seven:

根据上述实施例五、实施例六提供的方法,本发明还提供一种具有相应功能的终端,其结构示意图如图7所示,包括: The five embodiments of the method according to a sixth embodiment of the above-described embodiment, the present invention further provides a terminal having the corresponding functions, a schematic view of the structure shown in Figure 7, comprising:

IP配置请求单元701,用于向网络侧DHCP服务器请求获取IP配置,接收DHCP服务器发送的DHCP报文,在该DHCP报文中包含IP配置信息和路由策略; IP configuration request unit 701 for requesting the DHCP server to the network side acquires IP configuration, the DHCP server receives the DHCP packets sent by the IP configuration information contained in the policy and routing DHCP packets;

静态路由生成存储单元702,用于获取DHCP报文中包含的路由策略,生成对应的静态路由并存储。 Generating static route storage unit 702, for obtaining routing policy contained in the DHCP packet, generating and storing a corresponding static route. 还包括: Also includes:

路由确定单元703,用于根据待发送的数据包的属性信息,匹配存储的静态路由,确定出一条匹配^^由; Route determining unit 703, the attribute information for the data packet to be transmitted, the matching route stored in the static, one determined by the match ^^;

数据发送单元704,用于使用确定出的匹配路由发送所述数据包。 Data transmitting unit 704, using the determined matching the packet transmission route.

采用本发明实施例七提供的终端,只需根据网络侧DHCP服务器下发的路由策略生成对应的静态路由,不需要用户获取各种路由配置参数来手动配置静态路由,解决了用户手动配置静态路由不具有可操作性的问题;且当终端需要发送数据包时,能够根据待发送数据包的属性信息匹配生成的静态路由,通过匹配出的静态路由发送数据包,实现终端多连接。 The present invention provides a terminal according to a seventh embodiment, only the static routes sent by the network side DHCP server to generate a corresponding policy routing, route configuration does not require the user acquires various parameters manually configure static routes to solve the user to manually configure static routes having no operational problem; and when the terminal needs to send a packet, it is possible, by sending packets matched static route according to the attribute information matches the generated static routing of data packets to be transmitted, to achieve a multi-terminal connector.

实施例八: Example Eight:

18与实施例七提供的终端相对应,实施例八提供一种DHCP服务器,用于向终端发送路由策略,其结构示意图如图8所示,包括: The terminal 18 a seventh embodiment corresponding to the embodiment, the eighth embodiment provides a DHCP server configured to send a routing policy to the terminal, which is a schematic view of the structure shown in Figure 8, comprising:

存储单元801,用于存储路由策略; A storage unit 801 for storing the routing policy;

接收单元802,用于接收终端发送的获取IP配置请求; Receiving unit 802, configured to obtain IP configuration request sent by a terminal;

生成单元803,用于生成DHCP报文,在生成的DHCP报文中包含存储单元801中存储的路由策略; Generating unit 803 for generating a DHCP packet that contains the routing policy storing unit 801 stored in the DHCP packet generated;

发送单元804,用于向终端发送生成单元803生成的DHCP报文。 A sending unit 804, configured to send generating unit 803 generates a DHCP packet to the terminal.

一种较佳方案中,还包括: In a preferred embodiment, further comprising:

配置单元805,用于配置或修改存储单元801中存储的路由策略。 Configuring unit 805, to configure or modify the routing policy storage unit 801 is stored. 采用本发明实施例八提供的DHCP服务器,存储预先设置的路由策略,接收到终端的IP配置请求后,通过向终端返回的响应消息向终端发送设置的路由策略;不仅避免了在终端需要维护路由算法,节省了终端的计算资源,且运营商可以方便地配置或更新DHCP服务器中存储的路由策略,灵活实现终端多连接。 According to the present invention, the routing policy eight cases provided by the DHCP server, to store a preset embodiment, after receiving the IP configuration request terminal transmits the routing policy is provided to the terminal via a response message returned to the terminal; not only avoids the terminal needs to maintain the routing algorithm saves computing resources of the terminal, and operators can easily configure or update routing policies DHCP server, storage, and flexibility to achieve multi-terminal connection.

明的精神和范围。 The spirit and scope of the Ming. 这样,倘若对本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 Thus, if part of the claimed invention for such modifications and variations within the scope of the present invention and equivalents thereof, the present invention intends to include these modifications and variations.

19 19

Claims (21)

  1. 1、一种静态路由生成方法,其特征在于,包括: 终端接入网络后向网络侧发起路由策略获取请求; 接收网络侧发送的路由策略; 根据接收的路由策略,生成对应的静态路由并存储。 A static route generating method characterized by comprising: a terminal access network after the network side initiates a request for obtaining routing policy; routing policy sent by a network side; in accordance with the received routing policy, generate and store a corresponding static route .
  2. 2、 如权利要求l所述的方法,其特征在于,所述路由策略包括: 目的地址/子网掩石马和网关地址; 或者业务类型标识和网关地址; 或者目的地址/子网掩码、业务类型标识和网关地址; 所述根据接收的路由策略,生成对应的静态路由并存储,具体包括: 根据接收的目的地址/子网掩码和网关地址,生成包含所述目的地址/子网掩码和网关地址的一条静态路由,并加入到终端路由表中;或者根据接收的业务类型标识和网关地址,生成包含所述业务类型标识和网关地址的一条静态路由,并加入到终端路由表中;或者根据接收的目的地址/子网掩码、业务类型标识和网关地址,生成包含所述目的地址/子网掩码、业务类型标识和网关地址的一条静态路由,并加入到终端路由表中。 2. The method of claim l, wherein the routing policy comprises: destination address / subnet mask and gateway address Shima; or gateway address and service type identifier; or destination address / subnet mask, service type identifier and the gateway address; the routing policy according to the received, generating and storing a corresponding static route, comprises: according to the destination address / subnet mask and gateway address received, comprising generating the destination address / subnet mask a static routing and gateway IP address, the terminal and added to the routing table; or according to the service type identifier and a reception address of the gateway, generating a static route containing the service type identifier and the address of the gateway, the terminal and added to the routing table ; or according to the received destination address / subnet mask, gateway address and service type identifier, generating a static route containing the destination address / subnet mask, gateway address and the service type identifier of the terminal and added to the routing table .
  3. 3、 如权利要求1或2所述的方法,其特征在于,还包括:终端离开网络后,删除本地存储的根据对应网络侧发送的路由策略生成的静态路由。 3. A method as claimed in claim 1 or 2, characterized in that, further comprising: after leaving the network terminal, to delete a static route generated based on the routing policy corresponding to the network side sending a locally stored.
  4. 4、 一种终端路由实现方法,其特征在于,包括:终端根据待发送的数据包的属性信息,匹配存储的静态路由,确定出一条匹配路由;使用确定出的匹配路由发送所述数据包;其中,所述静态路由采用权利要求1-3所述任一方法生成。 4. A terminal routing implemented method, comprising: a terminal according to the attribute information of data to be transmitted packet matches a stored static route, it is determined that a matching route; using the determined transmission route matches the data packet; wherein the static routing according to any of claims 1-3 using a method of generating.
  5. 5、 如权利要求4所述的方法,其特征在于,若所述静态路由包含目的地址/子网掩码和网关地址,所述终端根据待发送的数据包的属性信息,匹配存储的静态路由,确定出一条匹配路由,具体包括:判断待发送的数据包的目标地址是否属于静态路由包含的目的地址/子网掩码中,若是,将对应静态路由确定为所述匹配路由;若所述静态路由包含业务类型标识和网关地址,所述终端根据待发送的数据包的属性信息,匹配存储的静态路由,确定出一条匹配路由,具体包括:判断待发送的数据包的业务类型标识是否与所述静态路由包含的业务类型标识相同,若是,将对应静态路由确定为所述匹配路由;若所述静态路由包含目的地址/子网掩码、业务类型标识和网关地址,所述终端根据待发送的数据包的属性信息,匹配存储的静态路由,确定出一条匹配路由, 5. The method as claimed in claim 4, wherein, if the static route containing the destination address / subnet mask and gateway address of the terminal attribute information of the static routing of data packets to be transmitted, according to the stored matching , it is determined that a matching route, comprises: determining a target address of the packet to be transmitted belongs to the destination address contained in the static route / subnet mask, if the static route corresponding to the matching route is determined; if the service type identifier comprising a static routing and gateway address, the terminal according to the attribute information of the packet to be transmitted, the router matches the stored, it is determined that a matching route, comprises: service type identification data packet to be transmitted is determined whether the static route containing the same service type identifier, if the static route is determined as corresponding to the matching route; if the static route containing the destination address / subnet mask, and gateway address identifies the service type, according to the terminal to be attribute information transmitted data packet, the router matches the stored, it is determined that a matching route, 体包括:判断待发送的数据包的目标地址是否属于静态路由包含的目的地址/子网掩码中,若是,将对应静态路由确定为第一匹配路由;以及判断待发送的数据包的业务类型标识是否与所述静态路由包含的业务类型标识相同, 若是,将对应静态路由确定为第二匹配路由;当所述第一匹配路由与第二匹配路由为同一静态路由时,将该静态路由确定为所述匹配路由;否则,将所述第一匹配路由确定为所述匹配路由。 It comprises: a target address of the packet to be transmitted is determined whether the destination address of the static route included / subnet mask, if the static route corresponding to the route determined as the first match; and a service type of the packet to be transmitted is determined identifying whether the static route containing the same service type identifier, if the static route is determined as corresponding to a second matching routing; when the first and the second matching route is the same route matched static route, the static route determination to the matching route; otherwise, the first matching route is determined as the matching route.
  6. 6、 一种终端,其特征在于,包括:路由策略获取单元,用于向网络侧发起路由策略获取请求,接收网络侧发送的路由策略;静态路由生成存储单元,用于根据接收的路由策略,生成对应的静态路由并存储。 6. A terminal, comprising: routing policy acquisition unit configured to initiate route policy acquisition request to the network side, the network side receives the routing policy transmitted; generating static route storing unit according to the received routing policy, generating and storing a corresponding static route.
  7. 7、 如权利要求6所述的终端,其特征在于,还包括: 路由确定单元,用于根据待发送的数据包的属性信息,匹配存储的静态路由,确定出一条匹配路由;数据发送单元,用于使用确定出的匹配路由发送所述数据包。 7, the terminal as claimed in claim 6, characterized in that, further comprising: a route determining unit, the attribute information for the data packet to be transmitted, the router matches the stored, it is determined that a matching route; data transmission unit, for transmitting the data packet using the determined matching route.
  8. 8、 如权利要求6或7所述的终端,其特征在于,还包括:静态路由删除单元,用于终端离开网络后删除所述静态路由生成存储单元中存储的根据对应网络侧发送的路由策略生成的静态路由。 8. A terminal as claimed in claim 6 or 7, characterized in that, further comprising: a static route deletion unit for deleting the terminal static routing policy route generation network after leaving the storage unit according to the corresponding transmission network generated static routing.
  9. 9、 一种网元装置,其特征在于,包括: 存储单元,用于存储路由策略;接收单元,用于接收终端发起的路由策略获取请求; 发送单元,用于向终端发送所述存储单元中存储的路由策略。 9. A network element apparatus, comprising: a storage unit for storing the routing policy; receiving means for receiving a routing policy acquisition request initiated by the terminal; transmitting means for transmitting the storage unit to the terminal routing policy store.
  10. 10、 如权利要求9所述的网元装置,其特征在于,还包括: 配置单元,用于配置或修改所述存储单元中存储的i?各由策略。 10, the apparatus of network element as claimed in claim 9, characterized in that, further comprising: a configuring unit, for configuring or modifying the storage unit of each of the policy i?.
  11. 11、 一种静态路由生成方法,其特征在于,包括: 终端接入网络后向网络侧动态主机配置协议DHCP服务器请求IP配置; 接收所述DHCP服务器发送的DHCP报文,所述DHCP报文中包含路由策略;获取所述DHCP报文中包含的路由策略,生成对应的静态路由并存储。 11. A static route generating method characterized by comprising: after the terminal accesses the network IP configuration request to the network Dynamic Host Configuration Protocol DHCP server; receiving the DHCP packets sent by the DHCP server, the DHCP packet routing policy comprising; obtaining the routing policy contained in the DHCP packet, generating and storing a corresponding static route.
  12. 12、 如权利要求11所述的方法,其特征在于,所述路由策略通过DHCP 报文中的可选Options字段携带。 12. The method as claimed in claim 11, wherein the routing policy carried in the DHCP packet optional Options field.
  13. 13、 如权利要求11或12所述的方法,其特征在于,所述路由策略包括: 目的地址/子网掩码和网关地址;或者业务类型标识和网关地址;或者目的地址/子网掩码、业务类型标识和网关地址;所述获取所述DHCP报文中包含的路由策略,生成对应的静态路由并存储,具体包括:获取目的地址/子网掩码和网关地址,生成包含所述目的地址/子网掩码和网关地址的一条静态路由,并加入到终端路由表中;或者获取业务类型标识和网关地址,生成包含所述业务类型标识和网关地址的一条静态路由,并加入到终端路由表中;或者获取目的地址/子网掩码、业务类型标识和网关地址,生成包含所述目的地址/子网掩码、业务类型标识和网关地址的一条静态路由,并加入到终端路由表中。 13. The method of claim 11 or claim 12, wherein the routing policy comprises: destination address / subnet mask and gateway address; or gateway address and service type identifier; or destination address / subnet mask , gateway address and service type identifier; obtaining the routing policy contained in the DHCP packet to generate and store a corresponding static route, comprises: obtaining a destination address / subnet mask and gateway address, comprising generating said object a static routing address / subnet mask and the gateway address, and added to the routing table in the terminal; obtaining service type identifier or address and the gateway, generating a static route containing the service type identifier and the address of the gateway, and added to the terminal a routing table; obtaining or destination address / subnet mask, gateway address and service type identifier, generating a static route containing the destination address / subnet mask, gateway address and the service type identifier of the terminal and added to the routing table in.
  14. 14、 如权利要求11或12所述的方法,其特征在于,还包括: 终端离开网络后,删除本地存储的根据对应网络中DHCP服务器发送的路由策略生成的静态路由。 14. The method of claim 11 or claim 12, characterized in that, further comprising: after leaving the network terminal, to delete a static route generated based on the routing policy corresponding to the network DHCP server to send the local storage.
  15. 15、 一种终端^^由实现方法,其特征在于,包括:终端根据待发送的数据包的属性信息,匹配存储的静态路由,确定出一条匹配3各由;使用确定出的匹配路由发送所述数据包;其中,所述静态路由采用权利要求11-14所述任一方法生成。 15. A terminal ^^, characterized by being implemented method, comprising: a terminal according to the attribute information of the packet to be transmitted, the router matches the stored, a match is determined by the respective 3; using the determined transmission route matches the said data packets; wherein the static route using any of claim 11-14 a method of generating.
  16. 16、 如权利要求15所述的方法,其特征在于,若所述静态路由包含目的地址/子网掩码和网关地址,所述终端根据待发送的数据包的属性信息,匹配存储的静态路由,确定出一条匹配路由,具体包括:判断待发送的数据包的目标地址是否属于静态路由包含的目的地址/子网掩码中,若是,将对应静态路由确定为所述匹配路由;若所述静态路由包含业务类型标识和网关地址,所述终端根据待发送的数据包的属性信息,匹配存储的静态路由,确定出一条匹配路由,具体包括:判断待发送的数据包的业务类型标识是否与所述静态路由包含的业务类型标识相同,若是,将对应静态路由确定为所述匹配路由;若所述静态路由包含目的地址/子网掩码、业务类型标识和网关地址,所述终端根据待发送的数据包的属性信息,匹配存储的静态路由,确定出一条匹配路由 16. The method as claimed in claim 15, wherein, if the static route containing the destination address / subnet mask and gateway address of the terminal attribute information of the static routing of data packets to be transmitted, according to the stored matching , it is determined that a matching route, comprises: determining a target address of the packet to be transmitted belongs to the destination address contained in the static route / subnet mask, if the static route corresponding to the matching route is determined; if the service type identifier comprising a static routing and gateway address, the terminal according to the attribute information of the packet to be transmitted, the router matches the stored, it is determined that a matching route, comprises: service type identification data packet to be transmitted is determined whether the static route containing the same service type identifier, if the static route is determined as corresponding to the matching route; if the static route containing the destination address / subnet mask, and gateway address identifies the service type, according to the terminal to be attribute information transmitted data packet, the router matches the stored, a match is determined route 具体包括:判断待发送的数据包的目标地址是否属于静态路由包含的目的地址/子网掩码中,若是,将对应静态路由确定为第一匹配路由;以及判断待发送的数据包的业务类型标识是否与所述静态路由包含的业务类型标识相同, 若是,将对应静态路由确定为第二匹配路由;当所述第一匹配路由与第二匹配路由为同一静态路由时,将该静态路由确定为所述匹配路由;否则,将所述第一匹配i?各由确定为所述匹配if各由。 Comprises: determining a target address of the packet to be transmitted belongs to the destination address / subnet mask contained in the static route, if yes, the route is determined as corresponding to a first matching static routing; and determining a packet to be transmitted to the service type identifying whether the static route containing the same service type identifier, if the static route is determined as corresponding to a second matching routing; when the first and the second matching route is the same route matched static route, the static route determination to the matching route; otherwise, each of the first matching i determined by the match as if each of the?.
  17. 17、 一种终端,其特征在于,包括:IP配置请求单元,用于向网络侧DHCP服务器请求获取IP配置,接收所述DHCP服务器发送的DHCP报文,所述DHCP报文中包含路由策略;静态路由生成存储单元,用于获取所述DHCP报文中包含的路由策略,生成对应的静态路由并存储。 17. A terminal, comprising: IP configuration request means for requesting a DHCP server to obtain an IP network configured to receive the DHCP packets sent by the DHCP server, the DHCP message contains the routing policy; generating static routing storage unit, configured to obtain the routing policy contained in the DHCP packet, generating and storing a corresponding static route.
  18. 18、 如权利要求17所述的终端,其特征在于,还包括: 路由确定单元,用于根据待发送的数据包的属性信息,匹配存储的静态路由,确定出一条匹配路由;数据发送单元,用于使用确定出的匹配路由发送所述数据包。 18. The terminal as claimed in claim 17, characterized in that, further comprising: a route determining unit, the attribute information for the data packet to be transmitted, the router matches the stored, it is determined that a matching route; data transmission unit, for transmitting the data packet using the determined matching route.
  19. 19、 如权利要求17或18所述的终端,其特征在于,还包括: 静态路由删除单元,用于终端离开网络后删除所述静态路由生成存储单元中存储的根据对应网络中DHCP服务器发送的路由策略生成的静态路由。 19. The terminal as claimed in claim 17 or 18, characterized in that, further comprising: a static route deletion unit for deleting the terminal after leaving the network generating static route storage unit according to the corresponding transmission network DHCP server routing policy generated static routing.
  20. 20、 一种DHCP服务器,其特征在于,包括: 存储单元,用于存储路由策略;接收单元,用于接收终端发送的获取IP配置请求;生成单元,用于生成DHCP报文,在所述DHCP报文中包含所述存储单元中存储的路由策略;发送单元,用于向终端发送所述生成单元生成的所述DHCP报文。 20. A DHCP server, characterized by comprising: a storage unit for storing the routing policy; a receiving unit, configured to obtain IP configuration request sent by a terminal; generating means for generating a DHCP message, the DHCP packet includes the routing policy is stored in the storage unit; transmitting means for transmitting the generation unit generates the DHCP message to the terminal.
  21. 21、 如权利要求20所述的DHCP服务器,其特征在于,还包括: 配置单元,用于配置或修改所述存储单元中存储的路由策略。 21, the DHCP server as claimed in claim 20, characterized in that, further comprising: a configuring unit, for configuring or modifying the storage unit in the routing policy.
CN 200810119780 2008-09-09 2008-09-09 Static routing generation method, method and device for implementing terminal routing CN101674221A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810119780 CN101674221A (en) 2008-09-09 2008-09-09 Static routing generation method, method and device for implementing terminal routing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200810119780 CN101674221A (en) 2008-09-09 2008-09-09 Static routing generation method, method and device for implementing terminal routing
PCT/CN2009/001018 WO2010028545A1 (en) 2008-09-09 2009-09-09 Static route generation method, terminal route realization method and apparatus

Publications (1)

Publication Number Publication Date
CN101674221A true true CN101674221A (en) 2010-03-17

Family

ID=42004779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810119780 CN101674221A (en) 2008-09-09 2008-09-09 Static routing generation method, method and device for implementing terminal routing

Country Status (2)

Country Link
CN (1) CN101674221A (en)
WO (1) WO2010028545A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917492A (en) * 2010-08-06 2010-12-15 北京乾唐视联网络科技有限公司 Communication method and communication system of novel network
CN102271050A (en) * 2010-06-04 2011-12-07 华为技术有限公司 Method in IPv6 network devices to automatically configure the network, network devices and systems
CN102377633A (en) * 2010-08-06 2012-03-14 北京乾唐视联网络科技有限公司 Communication connection method and system of access network device
CN102761441A (en) * 2012-06-29 2012-10-31 深圳市龙视传媒有限公司 Digital television service monitoring method, device and system
WO2013189272A1 (en) * 2012-06-18 2013-12-27 华为技术有限公司 Service processing method, device and system
CN103534991A (en) * 2013-07-23 2014-01-22 华为技术有限公司 Packet forwarding method and apparatus
CN104301225A (en) * 2013-07-17 2015-01-21 华为技术有限公司 Stream forwarding method and communication equipment
CN104410576A (en) * 2014-12-12 2015-03-11 上海斐讯数据通信技术有限公司 Mixed type condition policy routing system and method
CN104410572A (en) * 2014-11-25 2015-03-11 青岛海信宽带多媒体技术有限公司 Routing list generating method and device of digital receiver
WO2016066108A1 (en) * 2014-10-31 2016-05-06 阿里巴巴(中国)有限公司 Route access method, route access system and user terminal
CN105827440A (en) * 2016-03-11 2016-08-03 北京奇虎科技有限公司 Intelligent terminal and route configuration method thereof

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011144126A3 (en) * 2011-05-30 2012-04-26 华为技术有限公司 Method, apparatus and system for network device configuration

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3361865B2 (en) * 1993-12-13 2003-01-07 富士通株式会社 Computer for automatic setting of the automatic setting method and routing information static routing information
US6097718A (en) * 1996-01-02 2000-08-01 Cisco Technology, Inc. Snapshot routing with route aging
CN100440826C (en) * 2003-04-30 2008-12-03 华为技术有限公司 Static route refresh method
KR20050079420A (en) * 2004-02-05 2005-08-10 삼성전자주식회사 Tunnelling sevice method and system thereof
CN100505899C (en) * 2005-08-04 2009-06-24 华为技术有限公司 Cross-domain route control method for the third generation mobile communication system

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271050A (en) * 2010-06-04 2011-12-07 华为技术有限公司 Method in IPv6 network devices to automatically configure the network, network devices and systems
WO2011150720A1 (en) * 2010-06-04 2011-12-08 华为技术有限公司 Method, network device and system for automatically configuring network device in internet protocol version 6 network
CN102271050B (en) 2010-06-04 2014-04-30 华为技术有限公司 Method and system for automatically configuring network equipment in Internet protocol version 6 (IPv6) network, and network equipment
CN102377633B (en) 2010-08-06 2014-10-08 北京乾唐视联网络科技有限公司 A method and system for connecting a communication access network device
CN102377633A (en) * 2010-08-06 2012-03-14 北京乾唐视联网络科技有限公司 Communication connection method and system of access network device
US9219685B2 (en) 2010-08-06 2015-12-22 Beijing Qiantang Network Technology Company, Ltd. Communication method and system for a novel network
CN101917492A (en) * 2010-08-06 2010-12-15 北京乾唐视联网络科技有限公司 Communication method and communication system of novel network
WO2012016533A1 (en) * 2010-08-06 2012-02-09 北京乾唐视联网络科技有限公司 Communication method and system for a novel network
WO2013189272A1 (en) * 2012-06-18 2013-12-27 华为技术有限公司 Service processing method, device and system
CN103516610A (en) * 2012-06-18 2014-01-15 华为技术有限公司 Service processing method, device and system
US9736062B2 (en) 2012-06-18 2017-08-15 Huawei Technologies Co., Ltd. Service processing method, device and system
CN103516610B (en) * 2012-06-18 2017-12-15 华为技术有限公司 Service processing method, apparatus and system for
CN102761441A (en) * 2012-06-29 2012-10-31 深圳市龙视传媒有限公司 Digital television service monitoring method, device and system
CN102761441B (en) * 2012-06-29 2016-02-17 深圳市同洲电子股份有限公司 A digital television service monitoring method, apparatus and system for
CN104301225B (en) * 2013-07-17 2017-12-29 华为技术有限公司 One kind of stream transfer method and communication device
CN104301225A (en) * 2013-07-17 2015-01-21 华为技术有限公司 Stream forwarding method and communication equipment
CN103534991A (en) * 2013-07-23 2014-01-22 华为技术有限公司 Packet forwarding method and apparatus
US10057165B2 (en) 2013-07-23 2018-08-21 Huawei Technologies Co., Ltd. Packet forwarding method and device
CN103534991B (en) * 2013-07-23 2018-10-09 华为技术有限公司 OSPF packets forwarding method and apparatus
WO2016066108A1 (en) * 2014-10-31 2016-05-06 阿里巴巴(中国)有限公司 Route access method, route access system and user terminal
CN104410572B (en) * 2014-11-25 2017-08-18 青岛海信宽带多媒体技术有限公司 Routing table generating method and apparatus of a digital reception apparatus
CN104410572A (en) * 2014-11-25 2015-03-11 青岛海信宽带多媒体技术有限公司 Routing list generating method and device of digital receiver
CN104410576B (en) * 2014-12-12 2018-07-06 上海斐讯数据通信技术有限公司 The hybrid system and method for policy-based routing conditions
CN104410576A (en) * 2014-12-12 2015-03-11 上海斐讯数据通信技术有限公司 Mixed type condition policy routing system and method
CN105827440A (en) * 2016-03-11 2016-08-03 北京奇虎科技有限公司 Intelligent terminal and route configuration method thereof

Also Published As

Publication number Publication date Type
WO2010028545A1 (en) 2010-03-18 application

Similar Documents

Publication Publication Date Title
US20050138144A1 (en) Providing location-specific services to a mobile node
US6970444B2 (en) System and method for self propagating information in ad-hoc peer-to-peer networks
US20100272107A1 (en) Technique for address resolution in a data transmission network
US20050175020A1 (en) Tunneling service method and system
US20030035399A1 (en) Apparatus and method for data communication
US20080080513A1 (en) Anycast routing method and apparatus for supporting service flow in internet system
US20040128367A1 (en) Configuration of lan hosts
CN1949784A (en) IP address requesting method for DHCP client by DHCP repeater
CN101330531A (en) Method for processing DHCP address allocation and DHCP relay
US20100223655A1 (en) Method, System, and Apparatus for DHCP Authentication
CN101692674A (en) Method and equipment for double stack access
US20100189052A1 (en) Method and Nodes for Registering a Terminal
US20130007233A1 (en) Device Abstraction in Autonomous Wireless Local Area Networks
CN1744597A (en) Method for host use obtaining IP address parameters in IPV6 network
US20090213792A1 (en) Apparatus and method for setting a default gateway address in a mobile communication system
CN101753635A (en) Method and system of collocating IPV6 (internet protocol version 6) addresses
CN101316236A (en) VRRP backup group load sharing method and router
CN101656725A (en) Method for implementing safety access and access equipment
CN103580980A (en) Automatic searching and automatic configuration method and device of VN
US20030093542A1 (en) Communication device and communication control method using efficient echonet address determination scheme
CN102340546A (en) IPv6 (Internet Protocol Version 6) address allocation method and system
CN101674288A (en) Method, device and system for managing address prefix distribution
US20070127461A1 (en) Router and communication system
CN102158563A (en) Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network
JP2005045472A (en) Terminal and address generating method

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C12 Rejection of an application for a patent