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 CN200810119780A CN200810119780A CN101674221A CN 101674221 A CN101674221 A CN 101674221A CN 200810119780 A CN200810119780 A CN 200810119780A CN 200810119780 A CN200810119780 A CN 200810119780A CN 101674221 A CN101674221 A CN 101674221A
Authority
CN
China
Prior art keywords
routing
static routing
terminal
coupling
route
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200810119780A
Other languages
Chinese (zh)
Inventor
惠敏
邓辉
刘大鹏
陈刚
胡雪南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN200810119780A priority Critical patent/CN101674221A/en
Priority to PCT/CN2009/001018 priority patent/WO2010028545A1/en
Publication of CN101674221A publication Critical patent/CN101674221A/en
Pending legal-status Critical Current

Links

Images

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/42Centralised 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 routing generation method, terminal route implementing method and device
Technical field
The present invention relates to the communications field, relate in particular to a kind of static routing generation method of terminal when being connected to a plurality of network, relevant terminal route implementing method, and terminal and network side apparatus.
Background technology
Along with rapid development of Internet, the kind of network is enriched constantly, comprises Ethernet, GPRS network, LTE network, VPN, WiFi etc.Every kind of network has the characteristic of oneself, has characteristics at a high speed as Ethernet, and GPRS network then area coverage is extensive, and VPN has high security etc.The user inserts corresponding network in order to obtain certain network characteristic, and when the user need obtain several network characteristics simultaneously, or single network is can not satisfy user's various demand the time, has just expedited the emergence of the multi-link demand of terminal.Be about to a terminal and insert a plurality of networks simultaneously, can seek only network, keep terminal to be operated in simultaneously in a plurality of networks for different application data bags.
Developing rapidly of terminal makes multi-link demand that the physical hardware assurance arranged.Notebook computer in the market is built-in with wireless network card and Ethernet card substantially simultaneously, leave 3G data draw-in groove simultaneously, and these network interfaces can be worked simultaneously.Smart mobile phone can connect the mobile network of multiple standard, and supports WiFi to connect.
But under the situation that has possessed the assurance of user's request and terminal hardware, it is multi-link that terminal routing mechanism of the prior art has finally limited terminal.Because the terminal route is used default gateway (default gateway) mechanism, under multi-link situation, operating system can be selected the network interface of an acquiescence according to certain rule, make the all-network flow all pass through this default interface turnover, in fact causing the multi-link failure of terminal, thereby can not reach the multi-link purpose of terminal, can not realize using when terminal connects a plurality of networks.
In the prior art, a kind of method that is used for guaranteeing that a plurality of network interfaces of terminal have flow simultaneously is a configuring static route in the main frame routing table.Specific implementation is the mode manual configuration static routing list item that the user passes through order line, comprise input purpose IP, gateway, measurement (metric) value etc., can guarantee like this specific purpose IP address specified network interface is carried out route, other routes are then still finished by the default network interface, have guaranteed that a plurality of interfaces have flow to exist simultaneously.But this method does not have operability substantially to the user, and is very difficult because the user obtains various routing configuration parameters.
Windows Vista operating system can keep main frame multi-link under specific situation, promptly when network service is carried out in application, if default interface is changed, the application that has so started will continue to use old interface to communicate, and the default interface of up-to-date replacing is used in the new application that starts.In this case, old interface and new default interface have flow simultaneously, and it is multi-link to have reached terminal.But this is multi-link under the passive situation, and when the user initiatively need specify heterogeneous networks for different application, this mode can not play a role.
In sum, in the prior art, because the terminal route is deferred to default gateway mechanism, promptly no matter physically terminal has several network interfaces to insert what different networks, and the packet route of terminal is is only received and dispatched from the interface of an acquiescence.Even so just caused terminal to insert a plurality of networks, actual all-network flow all is to send from an interface or receive, and does not reach the multi-link effect of terminal.
Summary of the invention
The embodiment of the invention provides a kind of static routing generation method, relevant terminal and network element device, realize the routing policy that terminal issues according to network side network element device, generate corresponding static routing, solved the problem that does not have operability by the static routing of user's manual configuration.
The embodiment of the invention also provides a kind of static routing generation method, relevant terminal and Dynamic Host Configuration Protocol server, realize that terminal issues routing policy by Dynamic Host Configuration Protocol server use expansion DHCP message, generate corresponding static routing, solved the problem that the static routing of user's manual configuration does not have operability.
The embodiment of the invention also provides terminal route implementing method, sends packet by terminal matched static route, realizes that terminal is multi-link.
A kind of static routing generation method that the embodiment of the invention provides comprises:
Initiate routing policy to network side behind the accessing terminal to network and obtain request;
Receive the routing policy that network side sends;
According to the routing policy that receives, generate corresponding static routing and storage.
The embodiment of the invention provides a kind of terminal route implementing method, comprising:
Terminal is according to the attribute information of packet to be sent, and a coupling route is determined in the static routing of coupling storage;
The coupling route that use is determined sends described packet;
Wherein, described static routing adopts above-mentioned static routing generation method to generate.
The embodiment of the invention also provides a kind of terminal, comprising:
The routing policy acquiring unit is used for initiating routing policy to network side and obtains request, receives the routing policy that network side sends;
Static routing generates memory cell, is used for according to the routing policy that receives, and generates corresponding static routing and storage.
The embodiment of the invention also provides a kind of network element device, comprising:
Memory cell is used to store routing policy;
Receiving element, the routing policy that is used for the receiving terminal initiation obtains request;
Transmitting element is used for sending the routing policy that described memory cell is stored to terminal.
The embodiment of the invention provides a kind of static routing generation method again, comprising:
Dispose to network side dynamic host configuration protocol DHCP server requests IP behind the accessing terminal to network;
Receive the DHCP message that described Dynamic Host Configuration Protocol server sends, comprise routing policy in the described DHCP message;
Obtain the routing policy that comprises in the described DHCP message, generate corresponding static routing and storage.
According to the static routing generation method of above-mentioned use DHCP message, the embodiment of the invention provides a kind of relevant terminal route implementing method, comprising:
Terminal is according to the attribute information of packet to be sent, and a coupling route is determined in the static routing of coupling storage;
The coupling route that use is determined sends described packet.
According to the static routing generation method of above-mentioned use DHCP message, the embodiment of the invention provides a kind of terminal, comprising:
IP configuring request unit is used for the configuration to network side Dynamic Host Configuration Protocol server acquisition request IP, receives the DHCP message that described Dynamic Host Configuration Protocol server sends, and comprises routing policy in the described DHCP message;
Static routing generates memory cell, is used for obtaining the routing policy that described DHCP message comprises, and generates corresponding static routing and storage.
According to the static routing generation method of above-mentioned use DHCP message, the embodiment of the invention provides Dynamic Host Configuration Protocol server, comprising:
Memory cell is used to store routing policy;
Receiving element, what be used for that receiving terminal sends obtains the IP configuring request;
Generation unit is used to generate the DHCP message, comprises the routing policy of storing in the described memory cell in described DHCP message;
Transmitting element is used for sending the described DHCP message that described generation unit generates to terminal.
The present invention gives terminal by issued routing policy by network side network element device or Dynamic Host Configuration Protocol server, terminal only needs to generate corresponding static routing according to the routing policy that network element device or Dynamic Host Configuration Protocol server issue, and need not obtain various routing configuration parameters by the user and come the manual configuration static routing.For terminal, need not safeguard routing algorithm in terminal, saved computational resource; For the user, whole routing policy does not need artificial participation, and is simple.
After terminal generates static routing, can be according to the attribute information of packet to be sent (as the destination address of packet, type of service sign etc.) matched static route, can guarantee that a plurality of networks connect and have packet to pass through simultaneously, reach multi-link purpose.
Description of drawings
Fig. 1 generates method flow diagram for a kind of static routing that the embodiment of the invention one provides;
A kind of terminal route implementing method flow diagram that Fig. 2 provides for the embodiment of the invention two;
A kind of terminal structure schematic diagram that Fig. 3 provides for the embodiment of the invention three;
The network element apparatus structure schematic diagram that Fig. 4 provides for the embodiment of the invention four;
Fig. 5 generates method flow diagram for the static routing that the embodiment of the invention five provides;
Fig. 6 is the concrete signalling interactive process schematic diagram between terminal and the Dynamic Host Configuration Protocol server in the embodiment of the invention five;
A kind of terminal structure schematic diagram that Fig. 7 provides for the embodiment of the invention seven;
The Dynamic Host Configuration Protocol server structural representation that Fig. 8 provides for the embodiment of the invention eight.
Embodiment
The embodiment of the invention provides static routing generation method, relevant terminal and network element device or Dynamic Host Configuration Protocol server, realize the routing policy that terminal issues according to network side, generate corresponding static routing, solved the problem that does not have operability by the static routing of user's manual configuration.And when terminal need send packet, the static routing that can generate according to the attribute information coupling of packet to be sent sent packet by the static routing that matches, and realizes that terminal is multi-link.
Below in conjunction with accompanying drawing, method provided by the invention and device are described in detail with specific embodiment.
Embodiment one:
Embodiment one provides a kind of static routing generation method, issues routing policy by network side and gives terminal, and the routing policy that terminal issues according to network side generates static routing and storage.
Referring to Fig. 1, a kind of static routing that provides for the embodiment of the invention one generates method flow diagram, specifically comprises:
Initiate routing policy to network side behind step S101, the accessing terminal to network and obtain request;
Step S102, terminal receive the routing policy that network side sends;
Step S103, terminal generate corresponding static routing and storage according to the routing policy that receives.
Wherein, routing policy specifically for example can comprise:
Destination address/subnet mask and gateway address; Perhaps comprise type of service sign and gateway address; Perhaps comprise destination address/subnet mask, type of service sign and gateway address etc.
When comprising destination address/subnet mask and gateway address in the routing policy that network side issues, in step S103, according to the destination address/subnet mask and the gateway address that receive, generation comprises a static routing of this destination address/subnet mask and gateway address, and joins in the terminal routing table;
When comprising type of service sign and gateway address in the routing policy that network side issues, in step S103, according to the type of service sign and the gateway address that receive, generate a static routing that comprises this type of service sign and gateway address, and join in the terminal routing table;
When comprising destination address/subnet mask, type of service sign and gateway address in the routing policy that network side issues, in step S103, according to the destination address/subnet mask that receives, type of service sign and gateway address, generation comprises a static routing of this destination address/subnet mask, type of service sign and gateway address, and joins in the terminal routing table.
Behind terminal deviated from network, terminal is deleted the static routing that the local routing policy of storing that sends according to the map network side generates automatically.
According to the above embodiment of the present invention one, the routing policy that terminal only needs to issue according to network side generates corresponding static routing, do not need the user to obtain various routing configuration parameters and come the manual configuration static routing, solved the problem that the static routing of user's manual configuration does not have operability.
Embodiment two:
Embodiment two provides a kind of terminal route implementing method, selects the static routing of local storage to send packet by terminal.
Referring to Fig. 2, a kind of terminal route implementing method flow diagram for the embodiment of the invention two provides specifically comprises:
Step S201, terminal are according to the attribute information of packet to be sent, and a coupling route is determined in the static routing of coupling storage;
Step S202, terminal use the coupling route of determining to send packet;
Wherein, static routing adopts the method for the foregoing description one to generate.
Method according to the embodiment of the invention two provides when not determining the coupling route, adopts default route to send packet.
As mentioned above, if static routing comprises destination address/subnet mask and gateway address, in step S201, whether the destination address that needs to judge packet to be sent belongs in destination address/subnet mask that static routing comprises, if corresponding static routing is defined as mating route;
As mentioned above, if static routing comprises type of service sign and gateway address, in step S201, need to judge that whether the type of service sign of packet to be sent identifies identical with the type of service that static routing comprises, if corresponding static routing is defined as mating route;
As mentioned above, if static routing comprises destination address/subnet mask, type of service sign and gateway address, in step S201, whether the destination address that needs to judge packet to be sent belongs in destination address/subnet mask that static routing comprises, if corresponding static routing is defined as the first coupling route; And whether the type of service sign of judging packet to be sent is identical with the type of service sign that static routing comprises, if corresponding static routing is defined as the second coupling route; Mate route when being same static routing when the first coupling route and second, this static routing is defined as finally mating route; Otherwise, the first coupling route is defined as finally mating route.
Said method according to the embodiment of the invention two, and when terminal need send packet, can send packet by the static routing that matches according to the attribute information of packet to be sent (as the destination address of packet, the type of service sign etc.) static routing that coupling generates; Because its destination address of packet of different application or COS might be different, then its coupling route that obtains is also different, thereby makes terminal can use a plurality of routes to send packet, realizes that terminal is multi-link.
Embodiment three:
Embodiment three provides a kind of terminal, can obtain routing policy from network side, and generates static routing and storage, and selects the static routing of storage to send packet.
Referring to Fig. 3, a kind of terminal structure schematic diagram for the embodiment of the invention three provides specifically comprises:
Routing policy acquiring unit 301 is used for initiating routing policy to network side and obtains request, receives the routing policy that network side sends;
Static routing generates memory cell 302, is used for according to the routing policy that receives, and generates corresponding static routing and storage.
The terminal that the embodiment of the invention three provides also comprises:
Route determining unit 303 is used for the attribute information according to packet to be sent, and a coupling route is determined in the static routing of coupling storage;
Data transmission unit 304 is used to use the coupling route of determining to send described packet.
The terminal that adopts the embodiment of the invention three to provide, the routing policy that only needs to issue according to network side generates corresponding static routing, need not obtain various routing configuration parameters and come the manual configuration static routing, solve the problem that the static routing of user's manual configuration does not have operability by the user; And when terminal need send packet, the static routing that can generate according to the attribute information coupling of packet to be sent sent packet by the static routing that matches, and realizes that terminal is multi-link.
Embodiment four:
Embodiment four provides a kind of network element device, realizes issuing routing policy to terminal.
Referring to Fig. 4, the network element apparatus structure schematic diagram for the embodiment of the invention four provides specifically comprises:
Memory cell 401 is used to store routing policy;
Receiving element 402, the routing policy that is used for the receiving terminal initiation obtains request;
Transmitting element 403 is used for sending the routing policy that memory cell 401 is stored to terminal.
Also comprise:
Dispensing unit 404 is used for disposing or revising the routing policy that memory cell 401 is stored.
The network element device that adopts the embodiment of the invention four to provide sets in advance routing policy and stores in the network element device by network side, receive the request of terminal after, send the routing policy that is provided with to terminal; Not only avoided to safeguard routing algorithm, saved the computational resource of terminal, and operator can dispose or upgrade the routing policy of storing in the network element device easily, realize that flexibly terminal is multi-link in terminal.
Based on same inventive concept, it is a kind of by extended dynamic host configuration (Dynamic Host Configuration Protocol, DHCP) the static routing generation method of Shi Xianing, terminal route implementing method and relevant terminal and Dynamic Host Configuration Protocol server that the present invention also provides.
Embodiment five:
Embodiment five provides a kind of static routing generation method, by behind the accessing terminal to network when Dynamic Host Configuration Protocol server request IP disposes, comprise routing policy by Dynamic Host Configuration Protocol server in returning to the DHCP response message of terminal, terminal generates static routing and storage again according to the routing policy that receives.
Referring to Fig. 5, the static routing that provides for the embodiment of the invention five generates method flow diagram, specifically comprises:
Dispose to network side Dynamic Host Configuration Protocol server request IP behind step S501, the accessing terminal to network;
Step S502, terminal receive the DHCP message that Dynamic Host Configuration Protocol server sends, and comprise routing policy in the DHCP message that this returns;
Step S503, terminal are obtained the routing policy that comprises in the DHCP message, generate corresponding static routing and storage.
Behind the terminal deviated from network, the static routing that the routing policy that sends according to Dynamic Host Configuration Protocol server in the map network of the local storage of deletion generates.
In the method for embodiment five, the concrete signalling interactive process between terminal and the Dynamic Host Configuration Protocol server comprises as shown in Figure 6:
1, behind the accessing terminal to network, sends a discovery (Discovery) broadcast, to determine local available Dynamic Host Configuration Protocol server to the network side Dynamic Host Configuration Protocol server;
2, the network side Dynamic Host Configuration Protocol server provides (Offer) message, the IP configuration information of carried terminal and the routing policy of setting to what terminal sent the DHCP message format; Wherein, the IP configuration information of terminal comprises IP address, gateway address, name server (DNS) etc., and routing policy carries by the DHCP option of expansion.
3, after terminal received the Offer message of a plurality of Dynamic Host Configuration Protocol server transmissions of network side, therefrom selected Dynamic Host Configuration Protocol server sent and selects (Request) broadcast to select for all Dynamic Host Configuration Protocol server affirmations.
4, Xuan Ding Dynamic Host Configuration Protocol server returns affirmation (Acknowledge) message of DHCP message format to this terminal, carries the IP configuration information of this terminal and the routing policy of setting; Wherein, the IP configuration information comprises IP address, gateway address, name server (DNS) etc., and routing policy carries by the DHCP option of expansion.
To how expanding DHCP option carry routing policy and be specifically described below:
Following table 1 is the message format of DHCP in the prior art:
Table 1:
Figure A20081011978000161
The concrete implication of each field is in the table 1:
OP (1): expression message op code/type of message 1=BOOTREQUEST, 2=BOOTREPLY, length is 1 byte (byte);
Htype (1): the expression hardware address type, length is 1 byte (byte);
Hlen (1): the expression hardware address length, length is 1 byte (byte);
Hops (1): be set to zero, can use for Forward Proxy when starting by Forward Proxy, length is 1 byte (byte);
Transaction ID (4): operation ID is a random number, is used for the response of synchronization message and message between terminal and the server, and length is 4 bytes (byte);
Seconds (2): by the time of user's appointment, for start address obtains and upgrades time after carrying out, length is 2 bytes (byte);
Flags (2): flag bit, length are 2 bytes (byte);
Ciaddr (4): IP address, this field only are in BOUND as the user, and RENEW or REBINDING state use when ARP asks with responding, and length is 4 bytes (byte);
Yiaddr (4): IP address, length are 4 bytes (byte);
Siaddr (4): be used for the IP address of bootstrap process, length is 4 bytes (byte);
Giaddr (4): Forward Proxy IP address, length are 4 bytes (byte);
Chaddr (16): client's hardware address, length are 16 bytes (byte);
Sname (64): optional server host name, length is 64 bytes (byte);
File (128): startup file name, length are 128 bytes (byte);
Options (variable): optional parameter field, indefinite length.
Each field of DHCP message format from table 1 as can be known, wherein, Options (variable) is an optional parameter field, its indefinite length.The embodiment of the invention is expanded this Optional Field and is carried the routing policy that is arranged in the Dynamic Host Configuration Protocol server.For example, extended field is: Option N; Carry routing policy by this OptionN field.
Concrete routing policy can comprise:
Destination address/subnet mask and gateway address; Perhaps comprise type of service sign and gateway address; Perhaps comprise destination address/subnet mask, type of service sign and gateway address etc.
Comprising destination address/subnet mask, type of service sign and gateway address with routing policy is example, and the concrete field structure of extended field Option N is as follows:
Sequence number N (1by te) Length M (1by te) Destination address 1 (4by te) Subnet mask 1 (1by te) Type of service 1 (1by te) Gateway address 1 (4by te) Destination address 2 (4by te) Subnet mask 2 (1by te) Type of service 2 (1by te) Gateway address 2 (4by te) ...
Above-mentioned field structure, only for giving an example, the present invention does not limit the specific constructive form of this field structure and the concrete length of each field.
Among the above-mentioned steps S503, terminal is obtained the routing policy that comprises in the DHCP message, and the specific implementation process that generates corresponding static routing and storage is identical with embodiment one, does not repeat.
According to the above embodiment of the present invention five, the routing policy that terminal only needs to issue according to the network side Dynamic Host Configuration Protocol server generates corresponding static routing, need not obtain various routing configuration parameters and come the manual configuration static routing, solve the problem that the static routing of user's manual configuration does not have operability equally by the user.
Embodiment six:
Embodiment six is similar with the foregoing description two, and when terminal had packet to be sent, terminal was according to the attribute information of packet to be sent, and a coupling route is determined in the static routing of storing in the coupling local routing table; And use the coupling route of determining to send packet.
Different is that the static routing among the embodiment six is to adopt embodiment five described methods to generate with embodiment two.
Equally, when terminal is not determined the coupling route in the static routing of this locality storage, adopt default route to send packet.
Embodiment seven:
According to the method that the foregoing description five, embodiment six provide, the present invention also provides a kind of terminal with corresponding function, and its structural representation comprises as shown in Figure 7:
IP configuring request unit 701 is used for the configuration to network side Dynamic Host Configuration Protocol server acquisition request IP, receives the DHCP message that Dynamic Host Configuration Protocol server sends, and comprises IP configuration information and routing policy in this DHCP message;
Static routing generates memory cell 702, is used for obtaining the routing policy that the DHCP message comprises, and generates corresponding static routing and storage.
Also comprise:
Route determining unit 703 is used for the attribute information according to packet to be sent, and a coupling route is determined in the static routing of coupling storage;
Data transmission unit 704 is used to use the coupling route of determining to send described packet.
The terminal that adopts the embodiment of the invention seven to provide, the routing policy that only needs to issue according to the network side Dynamic Host Configuration Protocol server generates corresponding static routing, do not need the user to obtain various routing configuration parameters and come the manual configuration static routing, solved the problem that the static routing of user's manual configuration does not have operability; And when terminal need send packet, the static routing that can generate according to the attribute information coupling of packet to be sent sent packet by the static routing that matches, and realizes that terminal is multi-link.
Embodiment eight:
Corresponding with the terminal that embodiment seven provides, embodiment eight provides a kind of Dynamic Host Configuration Protocol server, is used for sending routing policy to terminal, and its structural representation comprises as shown in Figure 8:
Memory cell 801 is used to store routing policy;
Receiving element 802, what be used for that receiving terminal sends obtains the IP configuring request;
Generation unit 803 is used to generate the DHCP message, comprises the routing policy of storage in the memory cell 801 in the DHCP message that generates;
Transmitting element 804 is used for sending the DHCP message that generation unit 803 generates to terminal.
In a kind of preferred version, also comprise:
Dispensing unit 805 is used for disposing or revising the routing policy that memory cell 801 is stored.
The Dynamic Host Configuration Protocol server that adopts the embodiment of the invention eight to provide, the routing policy that storage sets in advance, receive the IP configuring request of terminal after, send the routing policy that is provided with to terminal by the response message that returns to terminal; Not only avoided to safeguard routing algorithm, saved the computational resource of terminal, and operator can dispose or upgrade the routing policy of storing in the Dynamic Host Configuration Protocol server easily, realize that flexibly terminal is multi-link in terminal.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (21)

1, a kind of static routing generation method is characterized in that, comprising:
Initiate routing policy to network side behind the accessing terminal to network and obtain request;
Receive the routing policy that network side sends;
According to the routing policy that receives, generate corresponding static routing and storage.
2, the method for claim 1 is characterized in that, described routing policy comprises:
Destination address/subnet mask and gateway address;
Perhaps type of service identifies and gateway address;
Perhaps destination address/subnet mask, type of service identify and gateway address;
Described according to the routing policy that receives, generate corresponding static routing and storage, specifically comprise:
According to the destination address/subnet mask and the gateway address that receive, generation comprises a static routing of described destination address/subnet mask and gateway address, and joins in the terminal routing table; Perhaps
According to the type of service sign and the gateway address that receive, generate a static routing that comprises described type of service sign and gateway address, and join in the terminal routing table; Perhaps
According to the destination address/subnet mask that receives, type of service sign and gateway address, generate a static routing that comprises described destination address/subnet mask, type of service sign and gateway address, and join in the terminal routing table.
3, method as claimed in claim 1 or 2 is characterized in that, also comprises:
Behind the terminal deviated from network, the static routing that the routing policy that sends according to the map network side of the local storage of deletion generates.
4, a kind of terminal route implementing method is characterized in that, comprising:
Terminal is according to the attribute information of packet to be sent, and a coupling route is determined in the static routing of coupling storage;
The coupling route that use is determined sends described packet;
Wherein, described static routing adopts the described arbitrary method of claim 1-3 to generate.
5, method as claimed in claim 4, it is characterized in that, if described static routing comprises destination address/subnet mask and gateway address, described terminal is according to the attribute information of packet to be sent, a coupling route is determined in the static routing of coupling storage, specifically comprises: whether the destination address of judging packet to be sent belongs in destination address/subnet mask that static routing comprises, if corresponding static routing is defined as described coupling route;
If described static routing comprises type of service sign and gateway address, described terminal is according to the attribute information of packet to be sent, the static routing of coupling storage, determine a coupling route, specifically comprise: whether the type of service sign of judging packet to be sent is identical with the type of service sign that described static routing comprises, if corresponding static routing is defined as described coupling route;
If described static routing comprises destination address/subnet mask, type of service sign and gateway address, described terminal is according to the attribute information of packet to be sent, the static routing of coupling storage, determine a coupling route, specifically comprise: whether the destination address of judging packet to be sent belongs in destination address/subnet mask that static routing comprises, if corresponding static routing is defined as the first coupling route; And whether the type of service sign of judging packet to be sent is identical with the type of service sign that described static routing comprises, if corresponding static routing is defined as the second coupling route; Mate route when being same static routing when the described first coupling route and second, this static routing is defined as described coupling route; Otherwise, the described first coupling route is defined as described coupling route.
6, a kind of terminal is characterized in that, comprising:
The routing policy acquiring unit is used for initiating routing policy to network side and obtains request, receives the routing policy that network side sends;
Static routing generates memory cell, is used for according to the routing policy that receives, and generates corresponding static routing and storage.
7, terminal as claimed in claim 6 is characterized in that, also comprises:
The route determining unit is used for the attribute information according to packet to be sent, and a coupling route is determined in the static routing of coupling storage;
Data transmission unit is used to use the coupling route of determining to send described packet.
8, as claim 6 or 7 described terminals, it is characterized in that, also comprise:
The static routing delete cells is used for the described static routing of deletion behind the terminal deviated from network and generates the static routing that the routing policy that sends according to the map network side that memory cell stores generates.
9, a kind of network element device is characterized in that, comprising:
Memory cell is used to store routing policy;
Receiving element, the routing policy that is used for the receiving terminal initiation obtains request;
Transmitting element is used for sending the routing policy that described memory cell is stored to terminal.
10, network element device as claimed in claim 9 is characterized in that, also comprises:
Dispensing unit is used for disposing or revising the routing policy that described memory cell is stored.
11, a kind of static routing generation method is characterized in that, comprising:
Dispose to network side dynamic host configuration protocol DHCP server requests IP behind the accessing terminal to network;
Receive the DHCP message that described Dynamic Host Configuration Protocol server sends, comprise routing policy in the described DHCP message;
Obtain the routing policy that comprises in the described DHCP message, generate corresponding static routing and storage.
12, method as claimed in claim 11 is characterized in that, described routing policy carries by the optional Options field in the DHCP message.
13, as claim 11 or 12 described methods, it is characterized in that described routing policy comprises:
Destination address/subnet mask and gateway address; Perhaps type of service identifies and gateway address; Perhaps destination address/subnet mask, type of service identify and gateway address;
The described routing policy that comprises in the described DHCP message that obtains generates corresponding static routing and storage, specifically comprises:
Obtain destination address/subnet mask and gateway address, generation comprises a static routing of described destination address/subnet mask and gateway address, and joins in the terminal routing table; Perhaps
Obtain type of service sign and gateway address, generate a static routing that comprises described type of service sign and gateway address, and join in the terminal routing table; Perhaps
Obtain destination address/subnet mask, type of service sign and gateway address, generate a static routing that comprises described destination address/subnet mask, type of service sign and gateway address, and join in the terminal routing table.
14, as claim 11 or 12 described methods, it is characterized in that, also comprise:
Behind the terminal deviated from network, the static routing that the routing policy that sends according to Dynamic Host Configuration Protocol server in the map network of the local storage of deletion generates.
15, a kind of terminal route implementing method is characterized in that, comprising:
Terminal is according to the attribute information of packet to be sent, and a coupling route is determined in the static routing of coupling storage;
The coupling route that use is determined sends described packet;
Wherein, described static routing adopts the described arbitrary method of claim 11-14 to generate.
16, method as claimed in claim 15, it is characterized in that, if described static routing comprises destination address/subnet mask and gateway address, described terminal is according to the attribute information of packet to be sent, a coupling route is determined in the static routing of coupling storage, specifically comprises: whether the destination address of judging packet to be sent belongs in destination address/subnet mask that static routing comprises, if corresponding static routing is defined as described coupling route;
If described static routing comprises type of service sign and gateway address, described terminal is according to the attribute information of packet to be sent, the static routing of coupling storage, determine a coupling route, specifically comprise: whether the type of service sign of judging packet to be sent is identical with the type of service sign that described static routing comprises, if corresponding static routing is defined as described coupling route;
If described static routing comprises destination address/subnet mask, type of service sign and gateway address, described terminal is according to the attribute information of packet to be sent, the static routing of coupling storage, determine a coupling route, specifically comprise: whether the destination address of judging packet to be sent belongs in destination address/subnet mask that static routing comprises, if corresponding static routing is defined as the first coupling route; And whether the type of service sign of judging packet to be sent is identical with the type of service sign that described static routing comprises, if corresponding static routing is defined as the second coupling route; Mate route when being same static routing when the described first coupling route and second, this static routing is defined as described coupling route; Otherwise, the described first coupling route is defined as described coupling route.
17, a kind of terminal is characterized in that, comprising:
IP configuring request unit is used for the configuration to network side Dynamic Host Configuration Protocol server acquisition request IP, receives the DHCP message that described Dynamic Host Configuration Protocol server sends, and comprises routing policy in the described DHCP message;
Static routing generates memory cell, is used for obtaining the routing policy that described DHCP message comprises, and generates corresponding static routing and storage.
18, terminal as claimed in claim 17 is characterized in that, also comprises:
The route determining unit is used for the attribute information according to packet to be sent, and a coupling route is determined in the static routing of coupling storage;
Data transmission unit is used to use the coupling route of determining to send described packet.
19, as claim 17 or 18 described terminals, it is characterized in that, also comprise:
The static routing delete cells is used for the described static routing of deletion behind the terminal deviated from network and generates the static routing that the routing policy that sends according to Dynamic Host Configuration Protocol server in the map network that memory cell stores generates.
20, a kind of Dynamic Host Configuration Protocol server is characterized in that, comprising:
Memory cell is used to store routing policy;
Receiving element, what be used for that receiving terminal sends obtains the IP configuring request;
Generation unit is used to generate the DHCP message, comprises the routing policy of storing in the described memory cell in described DHCP message;
Transmitting element is used for sending the described DHCP message that described generation unit generates to terminal.
21, Dynamic Host Configuration Protocol server as claimed in claim 20 is characterized in that, also comprises:
Dispensing unit is used for disposing or revising the routing policy that described memory cell is stored.
CN200810119780A 2008-09-09 2008-09-09 Static routing generation method, method and device for implementing terminal routing Pending CN101674221A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200810119780A 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

Applications Claiming Priority (1)

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

Publications (1)

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

Family

ID=42004779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810119780A Pending 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 (15)

* 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 and system for automatically configuring network equipment in Internet protocol version 6 (IPv6) network, and network equipment
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
CN104410572A (en) * 2014-11-25 2015-03-11 青岛海信宽带多媒体技术有限公司 Routing list generating method and device of digital receiver
CN104410576A (en) * 2014-12-12 2015-03-11 上海斐讯数据通信技术有限公司 Mixed type condition policy routing system and method
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
CN109286567A (en) * 2018-11-23 2019-01-29 腾讯科技(深圳)有限公司 Acquisition methods, device and the equipment of routing strategy
CN110226307A (en) * 2017-01-26 2019-09-10 华为技术有限公司 The method and apparatus for routing publication
CN110365557A (en) * 2018-03-26 2019-10-22 中兴通讯股份有限公司 A kind of method and device of network interconnection
CN110996372A (en) * 2019-11-11 2020-04-10 广州爱浦路网络技术有限公司 Message routing method, device and system and electronic equipment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2677689A4 (en) * 2011-05-30 2014-06-11 Huawei Tech Co Ltd Method, apparatus and system for network device configuration
CN114928590B (en) * 2021-01-30 2023-11-10 华为技术有限公司 IPv6 address configuration method and routing equipment

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 富士通株式会社 Automatic setting method of static routing information and computer for automatically setting 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 (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN102271050A (en) * 2010-06-04 2011-12-07 华为技术有限公司 Method and system for automatically configuring network equipment in Internet protocol version 6 (IPv6) network, and network equipment
WO2011150720A1 (en) * 2010-06-04 2011-12-08 华为技术有限公司 Method, network device and system for automatically configuring network device in internet protocol version 6 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
US9219685B2 (en) 2010-08-06 2015-12-22 Beijing Qiantang Network Technology Company, Ltd. Communication method and system for a novel network
CN102377633B (en) * 2010-08-06 2014-10-08 北京乾唐视联网络科技有限公司 Communication connection method and system of access network device
CN102377633A (en) * 2010-08-06 2012-03-14 北京乾唐视联网络科技有限公司 Communication connection method and system of access network device
CN103516610A (en) * 2012-06-18 2014-01-15 华为技术有限公司 Service processing method, device and system
USRE49049E1 (en) 2012-06-18 2022-04-19 Huawei Technologies Co., Ltd. Service processing method, device and system
WO2013189272A1 (en) * 2012-06-18 2013-12-27 华为技术有限公司 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 华为技术有限公司 Method for processing business, equipment and system
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 kind of digital television business method for supervising, Apparatus and system
CN104301225A (en) * 2013-07-17 2015-01-21 华为技术有限公司 Stream forwarding method and communication equipment
CN104301225B (en) * 2013-07-17 2017-12-29 华为技术有限公司 A kind of stream forwarding method and communication equipment
CN103534991B (en) * 2013-07-23 2018-10-09 华为技术有限公司 A kind of message forwarding method and equipment
US10057165B2 (en) 2013-07-23 2018-08-21 Huawei Technologies Co., Ltd. Packet forwarding method and device
CN103534991A (en) * 2013-07-23 2014-01-22 华为技术有限公司 Packet 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 青岛海信宽带多媒体技术有限公司 The route table generating method and device of a kind of digital reception device
CN104410572A (en) * 2014-11-25 2015-03-11 青岛海信宽带多媒体技术有限公司 Routing list generating method and device of digital receiver
CN104410576A (en) * 2014-12-12 2015-03-11 上海斐讯数据通信技术有限公司 Mixed type condition policy routing system and method
CN104410576B (en) * 2014-12-12 2018-07-06 上海斐讯数据通信技术有限公司 Hybrid conditional policies route system and method
CN105827440A (en) * 2016-03-11 2016-08-03 北京奇虎科技有限公司 Intelligent terminal and route configuration method thereof
CN110226307A (en) * 2017-01-26 2019-09-10 华为技术有限公司 The method and apparatus for routing publication
CN110226307B (en) * 2017-01-26 2021-01-29 华为技术有限公司 Method and device for issuing route
CN110365557A (en) * 2018-03-26 2019-10-22 中兴通讯股份有限公司 A kind of method and device of network interconnection
CN110365557B (en) * 2018-03-26 2021-11-02 中兴通讯股份有限公司 Network interconnection method and device
CN109286567B (en) * 2018-11-23 2020-07-28 腾讯科技(深圳)有限公司 Method, device and equipment for acquiring routing strategy
CN109286567A (en) * 2018-11-23 2019-01-29 腾讯科技(深圳)有限公司 Acquisition methods, device and the equipment of routing strategy
CN110996372A (en) * 2019-11-11 2020-04-10 广州爱浦路网络技术有限公司 Message routing method, device and system and electronic equipment
CN110996372B (en) * 2019-11-11 2021-05-18 广州爱浦路网络技术有限公司 Message routing method, device and system and electronic equipment

Also Published As

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

Similar Documents

Publication Publication Date Title
CN101674221A (en) Static routing generation method, method and device for implementing terminal routing
CN100477619C (en) Method and system for establishing bidirectional tunnel
JP5453545B2 (en) Method, apparatus, and network system for tunnel establishment
CN103580921A (en) Automatic network equipment upgrading method and automatic network equipment upgrading system
CN104540090A (en) Networking interconnection method and system based on low-power-consumption Bluetooth
US7600003B1 (en) Method and apparatus for dynamically configuring customer premises network equipment
CN103580980A (en) Automatic searching and automatic configuration method and device of VN
US10142915B2 (en) Method and system for providing multiple service discovery in a wireless environment
CN101335666A (en) Configuration transmitting method, access control equipment and access point
CN102801702B (en) Server connection method, information providing method, system for cloud computing and operating method
JP2011508551A (en) Apparatus and method for simultaneously accessing multiple wireless networks
CN101326794A (en) Method and system for transmitting DHCP message and acquiring collocation information by PPP link
CN107333099A (en) Network camera with wireless relay function
CN102638789B (en) Method for establishing point-to-point transmission and mobile communication system
WO2014101891A1 (en) Method and device for configuring ip address
JP2012104970A (en) Communication apparatus, and control method thereof
CN112491603A (en) Equipment configuration method, device, equipment and storage medium
CN102394857B (en) Method, device and equipment for establishing point-to-point protocol session on Ethernet
EP2700254B1 (en) Apparatus and method for transmitting and receiving ip information in a wireless communication network
CN103581353A (en) Method and system of automatic configuration of gateway device
JP2005341287A (en) Network device, and network connection setting program
EP2426966B1 (en) Wireless extension of broadband acces
CN111954162A (en) Method for realizing wireless screen transmission through autonomous networking among multiple devices, screen transmission end and receiving end
CA2780088A1 (en) Method for address translator traversal in 3gpp networks
WO2022017253A1 (en) File download method, device, and system

Legal Events

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

Application publication date: 20100317