CN101938526A - Obtaining method of routing policy, terminal and server - Google Patents

Obtaining method of routing policy, terminal and server Download PDF

Info

Publication number
CN101938526A
CN101938526A CN2009101396005A CN200910139600A CN101938526A CN 101938526 A CN101938526 A CN 101938526A CN 2009101396005 A CN2009101396005 A CN 2009101396005A CN 200910139600 A CN200910139600 A CN 200910139600A CN 101938526 A CN101938526 A CN 101938526A
Authority
CN
China
Prior art keywords
terminal
routing policy
response message
dhcp response
module
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
CN2009101396005A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2009101396005A priority Critical patent/CN101938526A/en
Priority to PCT/CN2009/075822 priority patent/WO2010145153A1/en
Publication of CN101938526A publication Critical patent/CN101938526A/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

Abstract

The invention discloses an obtaining method of routing policy, a terminal and a server, wherein the method comprises the following steps: after the terminal sends dynamic host machine configuration protocol DHCP request, receiving the DHCP response information from DHCP server by the terminal, wherein DHCP response information carries the routing policy of the terminal; and obtaining routing policy from the DHCP response information by the terminal. The invention can obtain routing policy when the terminal obtains IP address through DHCP.

Description

The acquisition methods of routing policy, terminal and server
Technical field
The present invention relates to the communications field, in particular to a kind of acquisition methods, terminal and server of routing policy.
Background technology
In the mobile Internet epoch in the future, network environment is very complicated, might there be multiple the connection in a terminal with network simultaneously, for example, Wireless Fidelity (Wireless Fidelity, abbreviate WiFi as), GPRS (General Packet Radio Service, abbreviate GPRS as), Long Term Evolution (Long-Term Evolution, abbreviate LTE as) etc., can there be the selection that more network connects in the realization of different multimedia services on the terminal, even different IP stream all may be on different networks connects in the same business.In this case, network side need be handed down to terminal with the routing policy that heterogeneous networks connects.
The multi-link expression terminal of terminal can connect a plurality of networks by different network interfaces, and with the routing policy of IP stream by obtaining different on the terminal, is assigned to different network interfaces and gets on.Guarantee the acceptance that all network interfaces can be simultaneously like this and transmit data.At present, in the operating system of terminal, only allow to exist simultaneously an acquiescence to connect.If terminal has a plurality of connections, although the route of a plurality of " 0.0.0.0 " is arranged in the routing table of terminal, all in fact connections all are to point to the gateway that acquiescence connects.That is, can only receive and send data by the gateway that acquiescence connects.
At present, terminal can be according to the 4th version DHCP (Dynamic HostConfiguration Protocol, abbreviate DHCPv4 as) obtain the IP address automatically, but, the IP address that can only obtain by DHCPv4, and can't obtain routing iinformation, therefore, terminal can only receive/send data by default gateway.
Can only obtain the IP address, can not obtain the problem of routing iinformation by the DHCPv4 agreement at terminal in the correlation technique, not propose effective solution at present as yet.
Summary of the invention
At terminal in the correlation technique by the DHCPv4 agreement can only obtain the IP address, the problem that can not obtain routing iinformation proposes the present invention, for this reason, main purpose of the present invention is to provide a kind of scheme of obtaining of routing policy, one of to address the above problem at least.
To achieve these goals, according to an aspect of the present invention, provide a kind of acquisition methods of routing policy.
Acquisition methods according to routing policy of the present invention comprises: after terminal sent the dynamic host configuration protocol DHCP request, terminal received the dhcp response message from Dynamic Host Configuration Protocol server, wherein, carries the routing policy of terminal in the dhcp response message; Terminal is obtained routing policy from dhcp response message.
Preferably, the routing policy of carried terminal in dhcp response message in the following manner: the option option field by dhcp response message is carried routing policy, and wherein, the option field comprises: predetermined code code and one or more routing policy.
Preferably, terminal is obtained routing policy and comprised from dhcp response message: terminal is judged the code in the option field of dhcp response message, and obtain routing policy under the situation of the code that code equals to be scheduled to.
Preferably, comprise in a routing policy: destination address, subnet mask, COS, next-hop network protocol IP address.
Preferably, terminal was obtained routing policy from dhcp response message after, said method also comprised: terminal is added routing policy in the local routing table to, and determines the IP address of next jumping of different IP stream from routing table.
To achieve these goals, according to a further aspect in the invention, provide a kind of terminal.
Terminal according to the present invention comprises: sending module is used to send the dynamic host configuration protocol DHCP request; Receiver module is used to receive the dhcp response message from Dynamic Host Configuration Protocol server, wherein, carries the routing policy of terminal in the dhcp response message; Acquisition module is used for obtaining routing policy from dhcp response message.
Preferably, acquisition module comprises: judge module is used for judging the code whether code of the option field of dhcp response message equals to be scheduled to; Obtain submodule, be used for being judged as under the situation that is and obtain routing policy from dhcp response message at judge module.
Preferably, above-mentioned terminal also comprises: add module, be used for adding routing policy to local routing table; The route determination module is used for according to the IP address of different IP stream from definite next jumping of routing table.
To achieve these goals, according to a further aspect in the invention, provide a kind of server.
Server comprises according to the present invention: second receiver module is used to receive the DHCP request message of self terminal; Generation module is used for generating dhcp response message according to the DHCP request message; Add module, be used for adding predetermined code code and one or more routing policy in the option option of dhcp response message field; Sending module is used to send dhcp response message.
By the present invention, employing is added routing policy in dhcp response information, having solved terminal can only obtain the IP address, can not obtain the problem of routing iinformation by the DHCPv4 agreement, and then when having reached terminal and obtained the IP address, obtain the effect of routing policy, guaranteed that terminal uses correct route when accesses network.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram that the IP of the terminal in the multiconnection network of the embodiment of the invention connects;
Fig. 2 is the flow chart according to the acquisition methods of the routing policy of the embodiment of the invention;
Fig. 3 is the schematic diagram according to the expansion DHCPv4 protocol format of the embodiment of the invention;
Fig. 4 is the structured flowchart according to the terminal of the embodiment of the invention;
Fig. 5 is the structured flowchart concrete according to the terminal of the embodiment of the invention;
Fig. 6 is the structured flowchart according to the server of the embodiment of the invention.
Embodiment
Functional overview
Consider that terminal in the correlation technique can only obtain the IP address, can not obtain the problem of routing iinformation by the DHCPv4 agreement, the embodiment of the invention provides a kind of scheme of obtaining of routing policy, under multiple-network connection environment, can be by this scheme network side by expansion DHCPv4 agreement, when terminal is obtained the network allocation address, routing policy together is handed down to terminal.The treatment principle of this scheme is as follows: after terminal sent the dynamic host configuration protocol DHCP request, terminal received the dhcp response message from Dynamic Host Configuration Protocol server, wherein, carries the routing policy of terminal in the dhcp response message; Terminal is obtained routing policy from dhcp response message.
Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.Describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
In following examples, can in computer system, carry out in the step shown in the flow chart of accompanying drawing such as a set of computer-executable instructions, and, though there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order that is different from herein.
Method embodiment
Fig. 1 is the schematic diagram that the IP of the terminal in the multiconnection network of the embodiment of the invention connects, as shown in Figure 1, terminal or subscriber equipment (User Equipment, abbreviate UE as), connect third generation partner program (3rd Generation Partnership Project, abbreviate 3GPP as) Access Network and non-3 GPP access network, by sending IP phone (Voice over IP to different servers, abbreviate VOIP as), video conference (Conv.Video), non-video meeting (Non Conv.Video), web service (Web), use file transfer protocol (FTP) (File Transfer Protocol, abbreviate FTP as) carry out IP such as transfer of data stream, different IP streams have different routing policies.At the scene among Fig. 1 embodiments of the invention are described below.
According to embodiments of the invention, a kind of acquisition methods of routing policy is provided, Fig. 2 is the flow chart according to the acquisition methods of the routing policy of the embodiment of the invention, as shown in Figure 2, this flow process comprises that following step S202 is to step S204:
Step S202, after terminal sent the dynamic host configuration protocol DHCP request, terminal received the dhcp response message from Dynamic Host Configuration Protocol server, wherein, carries the routing policy of terminal in the dhcp response message.That is, when terminal access network and when asking network configuration for the first time, Dynamic Host Configuration Protocol server can send terminal to routing policy with the IP configuration.
Step S204, terminal is obtained routing policy from dhcp response message.
Preferably, can carry routing policy by the option option field of dhcp response message, wherein, the option field comprises: predetermined code code and one or more routing policy.Article one, comprise in the routing policy: destination address, subnet mask, COS, next-hop network protocol IP address.Need to prove that the code value is to describe a kind of DHCP option value of appointment, this value assigns mechanism's (Internet AssignedNumbers Authority abbreviates IANA as) to distribute by internet address.
In step S204, terminal can at first be judged the code in the option field of dhcp response message, then, obtain routing policy under the situation of the code that code equals to be scheduled to.
Preferably, terminal is obtained routing policy from dhcp response message after, terminal can be added routing policy in the local routing table (promptly, terminal is read routing policy, and it is deposited in the routing table of terminal), and the IP address of next jumping of definite different IP stream from routing table, promptly, according to the value of destination address in the routing policy and type of service, each the IP stream on the terminal can find suitable route to jump as next, and enters network by the network interface of correspondence.
Be described in detail below in conjunction with the implementation procedure of example the embodiment of the invention.
Example one
Step 1, terminal be access network and when asking network configuration for the first time, and Dynamic Host Configuration Protocol server can send terminal to routing policy with the IP configuration.Wherein, Fig. 3 is according to the schematic diagram of the expansion DHCPv4 protocol format of the embodiment of the invention, below each field value among Fig. 3 is described:
The Code:Code value is to describe a kind of DHCP option value of appointment;
Length (Len): the Len value is to describe this field length afterwards;
Destination address (Destination): Destination is a field of describing purpose IP address, occupies 4byte;
Subnet mask (Mask): Mask describes the subnet mask of purpose IP address, occupies 1byte;
COS (Type Of Service abbreviates TOS as): follow RFC 1349, this field description the demand of assigned ip stream, for example, bandwidth, delay etc.;
Route (Router): Router is the IP address of next jumping.
Step 2, terminal is deposited in information such as destination address, subnet mask, type of service, route in the routing policy of Dynamic Host Configuration Protocol server transmission in the routing table of terminal.In the table 1 giving an example to the route strategy.
Table 1
Destination Mask TOS Router
10.40.36.188 255.255.252.0 ftp 10.40.36.1
192.168.1.10 255.255.255.0 WEB 192.168.1.1
Step 3, when having IP stream to need accesses network on the terminal, the routing policy of depositing in the inquiry terminal routing table.By information such as destination address, subnet mask, types of service, inquire the value of route.
Step 4, according to the route that inquires, different IP stream uses the route of setting in the routing table to use different network interfaces, accesses network.
Device embodiment one
According to embodiments of the invention, a kind of terminal is provided, Fig. 4 is the structured flowchart according to the terminal of the embodiment of the invention, as shown in Figure 4, this terminal comprises: sending module 42, receiver module 44, acquisition module 46 are described in detail this structure below.
Sending module 42 is used to send the dynamic host configuration protocol DHCP request; Receiver module 44 is connected to sending module 42, is used to receive the dhcp response message from Dynamic Host Configuration Protocol server, wherein, carries the routing policy of terminal in the dhcp response message; Acquisition module 46 is connected to receiver module 44, is used for obtaining routing policy from dhcp response message.
Fig. 5 is the structured flowchart concrete according to the terminal of the embodiment of the invention, and as shown in Figure 5, this acquisition module 46 comprises: judge module 52, obtain submodule 54, below this mechanism is described in detail.
Judge module 52 is used for judging the code whether code of the option field of dhcp response message equals to be scheduled to; Obtain submodule 54 and be connected to judge module 52, be used for being judged as under the situation that is and obtain routing policy from dhcp response message at judge module.
As shown in Figure 5, above-mentioned terminal also comprises: add module 56, route determination module 58.Wherein, add module 56 and be connected to acquisition module 46, be connected to acquisition module 46 and be used for adding routing policy to local routing table; Route determination module 58 is used for according to the IP address of different IP stream from definite next jumping of routing table.
Device embodiment two
According to embodiments of the invention, a kind of server is provided, and Fig. 6 is the structured flowchart according to the server of the embodiment of the invention, as shown in Figure 6, this server comprises: second receiver module 62, interpolation module 64, sending module 66, generation module 68 are described in detail this structure below.
Second receiver module 62 is used to receive the DHCP request message of next terminal; Generation module 68 is connected to second receiver module 62, is used for generating dhcp response message according to described DHCP request message; Add module 64 and be connected to generation module 68, be used for adding predetermined code code and one or more routing policy in the option option of dhcp response message field; Sending module 66 is connected to and adds module 64, is used to send dhcp response message.
In sum, by the above embodiment of the present invention, as can be seen, the present invention has realized following technique effect:
1.DHCP agreement is a general agreement, accessing terminal to network must use this agreement when distributing the address, obtains new effect and has versatility thereby it is expanded.
2. routing policy is deposited in the Dynamic Host Configuration Protocol server,, can be got access to routing policy, use correct route during with the assurance terminal access network in case the terminal access network requires to distribute the address.
3. by information such as destination addresses, type of service, can find corresponding route accurately, the use that makes the network of terminal connect reaches optimized effect.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. the acquisition methods of a routing policy is characterized in that, comprising:
After terminal sent the dynamic host configuration protocol DHCP request, described terminal received the dhcp response message from Dynamic Host Configuration Protocol server, wherein, carries the routing policy of described terminal in the described dhcp response message;
Described terminal is obtained described routing policy from described dhcp response message.
2. method according to claim 1 is characterized in that, carries the routing policy of described terminal in the following manner in described dhcp response message:
Option option field by described dhcp response message is carried described routing policy, and wherein, described option field comprises: predetermined code code and one or more routing policy.
3. method according to claim 2 is characterized in that, described terminal is obtained described routing policy and comprised from described dhcp response message:
Described terminal judges the code in the option field of described dhcp response message, and equals at described code to obtain described routing policy under the situation of described predetermined code.
4. method according to claim 2 is characterized in that, comprises in the described routing policy: destination address, subnet mask, COS, next-hop network protocol IP address.
5. according to each described method in the claim 1 to 4, it is characterized in that described terminal was obtained described routing policy from described dhcp response message after, described method also comprised:
Described terminal is added described routing policy in the local routing table to, and determines the IP address of next jumping of different IP stream from described routing table.
6. a terminal is characterized in that, comprising:
Sending module is used to send the dynamic host configuration protocol DHCP request;
Receiver module is used to receive the dhcp response message from Dynamic Host Configuration Protocol server, wherein, carries the routing policy of described terminal in the described dhcp response message;
Acquisition module is used for obtaining described routing policy from described dhcp response message.
7. terminal according to claim 6 is characterized in that, described acquisition module comprises:
Judge module is used for judging the code whether code of the option field of described dhcp response message equals to be scheduled to;
Obtain submodule, be used for being judged as under the situation that is and obtain described routing policy from described dhcp response message at described judge module.
8. terminal according to claim 7 is characterized in that, also comprises:
Add module, be used for adding described routing policy to local routing table;
The route determination module is used for according to the IP address of different IP stream from definite next jumping of described routing table.
9. a server is characterized in that, comprising:
Second receiver module is used to receive the DHCP request message of self terminal;
Generation module is used for generating dhcp response message according to described DHCP request message;
Add module, be used for adding predetermined code code and one or more routing policy in the option option of described dhcp response message field;
Sending module is used to send described dhcp response message.
CN2009101396005A 2009-06-30 2009-06-30 Obtaining method of routing policy, terminal and server Pending CN101938526A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2009101396005A CN101938526A (en) 2009-06-30 2009-06-30 Obtaining method of routing policy, terminal and server
PCT/CN2009/075822 WO2010145153A1 (en) 2009-06-30 2009-12-22 Method, terminal and server for routing strategy acquisition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101396005A CN101938526A (en) 2009-06-30 2009-06-30 Obtaining method of routing policy, terminal and server

Publications (1)

Publication Number Publication Date
CN101938526A true CN101938526A (en) 2011-01-05

Family

ID=43355710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101396005A Pending CN101938526A (en) 2009-06-30 2009-06-30 Obtaining method of routing policy, terminal and server

Country Status (2)

Country Link
CN (1) CN101938526A (en)
WO (1) WO2010145153A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401735A (en) * 2013-08-19 2013-11-20 上海斐讯数据通信技术有限公司 Method and system for indicating errors in routing device
CN103460676A (en) * 2011-04-11 2013-12-18 阿尔卡特朗讯公司 Flow routing protocol by querying a remote server
CN103973828A (en) * 2013-02-01 2014-08-06 华为技术有限公司 Method and device for acquiring IP (internet protocol) addresses for DHCP (dynamic host configuration protocol) clients

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6587468B1 (en) * 1999-02-10 2003-07-01 Cisco Technology, Inc. Reply to sender DHCP option
EP1746803A1 (en) * 2005-04-30 2007-01-24 Huawei Technologies Co., Ltd. A method, user terminal and server for obtaining the information of the access position
CN101141372A (en) * 2006-09-07 2008-03-12 上海贝尔阿尔卡特股份有限公司 Method and device for management of routing information and data forwarding in access equipment
CN101321111A (en) * 2004-02-05 2008-12-10 三星电子株式会社 Communication method and device, server, and computer readable recording medium
CN101330528A (en) * 2007-10-25 2008-12-24 中兴通讯股份有限公司 Mobile IP network optimization system and implementing method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6587468B1 (en) * 1999-02-10 2003-07-01 Cisco Technology, Inc. Reply to sender DHCP option
CN101321111A (en) * 2004-02-05 2008-12-10 三星电子株式会社 Communication method and device, server, and computer readable recording medium
EP1746803A1 (en) * 2005-04-30 2007-01-24 Huawei Technologies Co., Ltd. A method, user terminal and server for obtaining the information of the access position
CN101141372A (en) * 2006-09-07 2008-03-12 上海贝尔阿尔卡特股份有限公司 Method and device for management of routing information and data forwarding in access equipment
CN101330528A (en) * 2007-10-25 2008-12-24 中兴通讯股份有限公司 Mobile IP network optimization system and implementing method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103460676A (en) * 2011-04-11 2013-12-18 阿尔卡特朗讯公司 Flow routing protocol by querying a remote server
CN103973828A (en) * 2013-02-01 2014-08-06 华为技术有限公司 Method and device for acquiring IP (internet protocol) addresses for DHCP (dynamic host configuration protocol) clients
WO2014117615A1 (en) * 2013-02-01 2014-08-07 华为技术有限公司 Method and apparatus for obtaining ip address by dhcp client
US9736110B2 (en) 2013-02-01 2017-08-15 Huawei Technologies Co., Ltd. Method and apparatus for acquiring IP address by DHCP client
CN103401735A (en) * 2013-08-19 2013-11-20 上海斐讯数据通信技术有限公司 Method and system for indicating errors in routing device
CN103401735B (en) * 2013-08-19 2017-09-19 上海斐讯数据通信技术有限公司 Indicate the wrong method and system in routing device

Also Published As

Publication number Publication date
WO2010145153A1 (en) 2010-12-23

Similar Documents

Publication Publication Date Title
US7533160B2 (en) Provisioning server information in a mobile station
US7277434B2 (en) Method for SIP-mobility and mobile-IP coexistence
US8325615B2 (en) System and method for collapsed subscriber management and call control
US8914486B2 (en) Method, system and device for implementing identity identifier and location separation
US20060056420A1 (en) Communication apparatus selecting a source address
US20070116011A1 (en) Method and apparatus for communications of user equipment using internet protocol address in a mobile communication system
JP2002084317A (en) Communication system, mobile terminal equipment, gateway equipment, address assigning method and retrieving service method
CN101984713A (en) Method, terminal and system for realizing business data shunting
CN102301763A (en) Method and nodes for registering a terminal
KR100909014B1 (en) Dynamic IP Address Allocation Method for Mobile Terminal in Mobile Communication System
US9615246B2 (en) Dynamic allocation of host IP addresses
CN102918817B (en) The method of IPv6 address assignment and equipment
JP2009531911A (en) Telecommunication system and telecommunication method
CN101834741B (en) Method and device for adjusting configuration of equipment under bridge port of home gateway
CN102739676B (en) The implementation method and device of voice call service
KR101481337B1 (en) Mobile Communication System Based on Software Defined Networks and Method for Processing Access of Mobile Equipment thereof
WO2006021610A1 (en) Method and device to support session continuity
CN101938526A (en) Obtaining method of routing policy, terminal and server
WO2022007657A1 (en) Method and apparatus for sending domain name system request
US20130282924A1 (en) Method for addressing messages in a computer network
CN100525202C (en) A method of registration for the private network terminal to the gatekeeper based on the H.323 protocol
WO2013023591A1 (en) Method and device for selecting policy server
CN102238756A (en) Network connection establishing method, device and system
KR101782750B1 (en) Subscriber planning and Session Initiation Protocol processing integration operation Method for implementing Voice over Internet Protocol system of Ad-Hoc network
JP3325541B2 (en) Wireless communication system and wireless communication control method

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: 20110105