CN102143243B - Dynamic routing processing method and dynamic routing processing device and home gateway thereof - Google Patents

Dynamic routing processing method and dynamic routing processing device and home gateway thereof Download PDF

Info

Publication number
CN102143243B
CN102143243B CN201010528564.4A CN201010528564A CN102143243B CN 102143243 B CN102143243 B CN 102143243B CN 201010528564 A CN201010528564 A CN 201010528564A CN 102143243 B CN102143243 B CN 102143243B
Authority
CN
China
Prior art keywords
domain name
name system
wide area
area network
network interface
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.)
Active
Application number
CN201010528564.4A
Other languages
Chinese (zh)
Other versions
CN102143243A (en
Inventor
何智勤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Device Co Ltd
Huawei Device Shenzhen Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201010528564.4A priority Critical patent/CN102143243B/en
Publication of CN102143243A publication Critical patent/CN102143243A/en
Application granted granted Critical
Publication of CN102143243B publication Critical patent/CN102143243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a dynamic routing processing method and a device and a home gateway thereof. The dynamic routing processing method comprises the following steps: a domain name system analysis request carrying a uniform resource locator address and sent by a terminal is received; the domain name system analysis request is sent into a domain name system analysis server in a network connected with a wide area network interface through the wide area network interface, so that the domain name system analysis server can judge whether the domain name system analysis response is returned according to the received domain name system analysis request; if the domain name system analysis response returned by the domain name system analysis server in the network connected with the wide area network interface is acquired, a home gateway routing table is configured according to the wide area network interface corresponding to the domain name system analysis response and a destination internet protocol address in the domain name system analysis response.

Description

Dynamic routing processing method and device and home gateway thereof
Technical field
The embodiment of the present invention relates to communication technical field, relates in particular to a kind of dynamic routing processing method and device and home gateway thereof.
Background technology
The structural representation that Fig. 1 is dynamic routing treatment system in prior art, as shown in Figure 1, this system comprises: personal computer (Personal Computer; Be called for short: PC) 11, home gateway 12, telecommunications fixed network Intranet 13, telecommunications mobile Internet 14 and the Internet 15.Wherein, be provided with domain name system (Domain Name System in home gateway 12; Be called for short: DNS) resolution server, and also comprise Digital Subscriber Loop (Digital Subscriber Line; Be called for short: DSL) wide area network (Wide AreaNetwork; Be called for short: WAN) interface and USB (Universal Serial BUS; Be called for short: USB) wan interface etc., concrete, the DSL wan interface is connected with telecommunications fixed network Intranet 13; The USB wan interface is connected with telecommunications mobile Internet 14.In addition, telecommunications fixed network Intranet 13 and telecommunications mobile Internet 14 are isolated mutually, can not mutually access each other.
Concrete, when user input fields name accesses network content, PC 11 sends to home gateway 12 by this domain name, dns resolution server in home gateway 12 is resolved this domain name, obtain the IP address of objective network, home gateway 12, again according to Routing Protocol, is set up the path that reaches this objective network, voluntarily to send the data in this objective network.
In realizing process of the present invention, the inventor finds that in prior art, at least there are the following problems: if when the objective network of user input fields name access is the telecommunications mobile Internet, it is likely to telecommunications fixed network Intranet by the DSL wan interface that home gateway is set up the path that reaches this objective network voluntarily, again by telecommunications fixed network Intranet to the Internet, last by the Internet the path to the telecommunications mobile Internet, thereby the objective network that makes home gateway will access according to the user input fields name is determined corresponding wan interface, and then Exit Road that can't the reasonable disposition home gateway by.
Summary of the invention
The embodiment of the present invention provides a kind of dynamic routing processing method and device and home gateway thereof, determine the problem of corresponding wan interface in order to solve objective network that in prior art, home gateway can't will be accessed according to the user input fields name, realized the reasonably routing table of configuring home gateway.
The embodiment of the present invention provides a kind of dynamic routing processing method, comprising:
The domain name system analysis request that carries the URL(uniform resource locator) address that receiving terminal sends;
The request of domain name system analysis is sent to by Wide Area Network interface in the domain name system resolution server in the network be connected with described Wide Area Network interface, according to the domain name system analysis request received, judge whether to return the domain name system resolution response for the domain name system resolution server in described network;
If get the domain name system analysis response that the domain name system resolution server in the connected network of described Wide Area Network interface returns, according to returning to the domain name system analysis, respond the purpose IP address in corresponding Wide Area Network interface and the response of domain name system analysis, configuring home gateway routing table.
The embodiment of the present invention provides a kind of dynamic routing processing unit, comprising:
Receiver module, the domain name system analysis request that carries the URL(uniform resource locator) address sent for receiving terminal;
The first sending module, for sending in the domain name system resolution server of the network be connected with described Wide Area Network interface by Wide Area Network interface by the request of domain name system analysis respectively, according to the domain name system analysis request received, judge whether to return the domain name system resolution response for the domain name system resolution server in described network;
Configuration module, if the domain name system analysis response of returning for the domain name system resolution server that gets the connected network of described Wide Area Network interface, according to returning to the domain name system analysis, respond the purpose IP address in corresponding Wide Area Network interface and the response of domain name system analysis, configuring home gateway routing table.
The embodiment of the present invention provides a kind of home gateway, comprises Wide Area Network interface and dynamic routing processing unit described above.
The dynamic routing processing method of the embodiment of the present invention and device and home gateway thereof, the domain name system analysis request that carries the URL(uniform resource locator) address sent by receiving terminal, and this domain name system analysis request is sent to by each Wide Area Network interface in the domain name system resolution server in the network be connected with described Wide Area Network interface, and get the domain name system resolution response that the domain name system resolution server in the connected network of Wide Area Network interface returns, thereby according to the purpose Internet Protocol address in this Wide Area Network interface and domain name system resolution response, the configuring home gateway routing table, thereby realized having determined corresponding Wide Area Network interface according to the domain name system resolution response of obtaining, and then effectively, reasonably configured the routing table of home gateway.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The structural representation that Fig. 1 is dynamic routing treatment system in prior art;
Fig. 2 embodiment of the present invention based on the structural representation of dynamic routing treatment system;
The flow chart of the embodiment that Fig. 3 is dynamic routing processing method of the present invention;
The flow chart of another embodiment that Fig. 4 is dynamic routing processing method of the present invention;
The flow chart of another embodiment that Fig. 5 is dynamic routing processing method of the present invention;
The structural representation of the embodiment that Fig. 6 is dynamic routing processing unit of the present invention;
The structural representation of another embodiment that Fig. 7 is dynamic routing processing unit of the present invention;
The structural representation of the embodiment that Fig. 8 is home gateway of the present invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
Fig. 2 embodiment of the present invention based on the structural representation of dynamic routing treatment system, as shown in Figure 2, this dynamic routing treatment system mainly comprises PC 21, home gateway 22, telecommunications fixed network Intranet 23, telecommunications mobile Internet 24, Ethernet 25, xPON 26 and the Internet 27 etc.Be provided with dynamic routing device 221, DSL wan interface 222, USB wan interface 223, EthernetWAN interface 224 and xPON wan interface 225 etc. in home gateway 22.Wherein, dynamic routing device 221 is connected with DSL wan interface 222, USB wan interface 223, Ethernet wan interface 224 and xPONWAN interface 225 respectively; DSL wan interface 222 is connected with telecommunications fixed network Intranet 23; USB wan interface 223 is connected with telecommunications mobile Internet 24; Ethernet wan interface 224 is connected with Ethernet 25; XPON wan interface 225 is connected with xPON 26.
In the present embodiment, home gateway 22 can also be provided with dns-proxy server (DNS Proxy), and dynamic routing device 221 can be arranged on this DNS Proxy.
It should be noted that, various embodiments of the present invention are not limited type and the quantity of the wan interface in home gateway and the network in system, and those skilled in the art can arrange arbitrarily according to the needs of actual conditions wan interface in home gateway and type and the quantity of the network in system.
In addition, the dynamic routing method that various embodiments of the present invention provide and dynamic routing device can be realized based on above-mentioned network system.Below by the drawings and specific embodiments, technical scheme of the present invention is described in further detail.
The flow chart of the embodiment that Fig. 3 is dynamic routing processing method of the present invention, as shown in Figure 3, the method for the present embodiment comprises:
Step 101, receiving terminal send carries URL(uniform resource locator) (Uniform/UniversalResource Locator; Be called for short: URL) the dns resolution request of address.
In the present embodiment, when the user inputs the URL address on terminal, terminal is carried at this URL address in the dns resolution request, and sends to the dynamic routing processing unit.Wherein, this URL address also can be referred to as web page address; Terminal can be specially PC; The dynamic routing device can be arranged on home gateway, concrete, can also be arranged on the DNS Proxy of home gateway.
Step 102, the dns resolution request is sent to by wan interface in the dns resolution server in the network be connected with this wan interface, for the dns resolution server in this network, according to the dns resolution request received, judge whether to return the dns resolution response.
In the present embodiment, on home gateway, a plurality of wan interfaces can be set, the dynamic routing device is connected with those wan interfaces respectively.Wherein, this wan interface can specifically comprise DSL wan interface, USB wan interface, Ethernet (Ethernet) wan interface and/or passive optical network (xPON) wan interface.It should be noted that, in various embodiments of the present invention not quantity and the type to the wan interface that arranges in home gateway limited, those skilled in the art can, according to the needs of actual conditions, arrange arbitrarily quantity and the type of the wan interface in home gateway.
In the present embodiment, when a plurality of wan interface is arranged, can carry out with reference to following steps:
The request of domain name system analysis is sent to the domain name system resolution server in the network be connected with described Wide Area Network interface by a Wide Area Network interface, according to the domain name system analysis request received, judge whether to return the domain name system resolution response for the domain name system resolution server in described network;
Return to the domain name system resolution response if do not get within the predetermined time, the request of domain name system analysis is sent to the domain name system resolution server in the connected network of described next Wide Area Network interface by next Wide Area Network interface;
Return to the domain name system resolution response if do not get within the predetermined time, repeat this step, until the request of domain name system analysis is sent to the domain name system resolution server in the connected network of described last Wide Area Network interface by last Wide Area Network interface, domain name system resolution server for described last Wide Area Network interface in connected network, according to the domain name system analysis request received, judges whether to return the domain name system resolution response.
Concrete, after the dynamic routing processing unit receives the dns resolution request, by this dns resolution request by the wan interface arranged in home gateway, send in the dns resolution server in the network corresponding with this wan interface, after dns resolution server in network receives the dns resolution request, obtain the URL address in this dns resolution request, search in the dns resolution server and whether stored purpose Internet Protocol (the Internet Protocol corresponding with this URL address; Be called for short: IP) address, if do not store purpose IP address corresponding to this URL address, does not generate the dns resolution response; If stored purpose IP address corresponding to this URL address, generate dns resolution response, and the dns resolution response that will carry purpose IP address returns to the dynamic routing processing unit.It should be noted that, can purpose IP address corresponding to pre-stored URL address and this URL address in the database in the dns resolution server in each network.
For instance, when the dynamic routing processing unit sends the dns resolution request by the DSL wan interface, this dns resolution request is sent in the dns resolution server in the telecommunications fixed network Intranet be connected with the DSL wan interface, for this dns resolution server according to the URL address in the dns resolution request received, search in database and whether store purpose IP address corresponding to this URL address, if storage, the dns resolution response that will carry purpose IP address returns to the dynamic routing processing unit by the DSL wan interface; If not storage, do not return to the dns resolution response.
If step 103 gets the dns resolution response that the dns resolution server in the connected network of wan interface returns, according to returning to this dns resolution, respond the purpose IP address in corresponding wan interface and this dns resolution response, configuring home gateway routing table.
In the present embodiment, if the DSN resolution server in the connected network of some wan interfaces is according to the URL address in the dns resolution request received, search while getting purpose IP address corresponding to this URL address, by this wan interface, to the dynamic routing processing unit, return to the dns resolution response that carries purpose IP address.The dynamic routing processing unit is from this wan interface receives the dns resolution response, according to the purpose IP address in this wan interface and this dns resolution response, the configuring home gateway routing table, this home gateway routing table comprises the information such as purpose IP address, wan interface title.Thereby realized having determined that according to the dns resolution response of obtaining the user inputs wan interface corresponding to URL address.Simultaneously, the dynamic routing device can also return to terminal by the dns resolution response, and terminal just can, according to the purpose IP address received, connect to this purpose IP address.
In the present embodiment, the dns resolution request that carries the URL address sent by receiving terminal, and this dns resolution request is sent to by each wan interface in the dns resolution server in the network be connected with this wan interface, and get the dns resolution response that the dns resolution server in the connected network of wan interface returns, thereby according to the purpose IP address in this wan interface and dns resolution response, the configuring home gateway routing table, thereby realized according to the dns resolution response of obtaining, determined that the user inputs wan interface corresponding to URL address, and then effectively, reasonably configured the routing table of home gateway.
The flow chart of another embodiment that Fig. 4 is dynamic routing processing method of the present invention, in the present embodiment, take in home gateway and the DSL wan interface is set and the USB wan interface is example, introduce in detail the technical scheme of the present embodiment, as shown in Figure 4, the method for the present embodiment comprises:
The dns resolution request that carries the URL address that step 201, receiving terminal send.
In the present embodiment, shown in the implementation of step 201 and Fig. 3, the implementation of step 101 is similar, does not repeat them here.
Step 202, this dns resolution request is sent in the dns resolution server in the telecommunications fixed network Intranet corresponding with this DSL wan interface by the DSL wan interface, according to the dns resolution request received, judge whether to return the dns resolution response for the dns resolution server in this telecommunications fixed network Intranet.
In the present embodiment, the dynamic routing device can set in advance the order which DNS interface to send the dns resolution response by.Concrete, in the present embodiment, set in advance first and send the dns resolution response by the DSL wan interface, and wait for and obtain the dns resolution response of returning, the dns resolution response of returning if do not get within the predetermined time, by the USB wan interface, send the dns resolution response, and wait for and obtain the dns resolution response of returning.Certainly, can set in advance first and send the dns resolution response by the USB wan interface, and wait for and obtain the dns resolution response of returning, the dns resolution response of returning if do not get within the predetermined time, by the DSL wan interface, send the dns resolution response, and wait for and obtain the dns resolution response of returning.Herein, take first and to describe as example by the DSL wan interface.
Step 203, judge whether to get within the predetermined time the dns resolution response of returning, if receive the dns resolution response, perform step 204; If do not receive the dns resolution response, perform step 205.
If step 204 gets the dns resolution response that the dns resolution server in the connected telecommunications fixed network Intranet of this DSL wan interface returns, according to returning to this dns resolution, respond the purpose IP address in corresponding DSLWAN interface and this dns resolution response, the configuring home gateway routing table, finish.
In the present embodiment, when the dynamic routing processing unit sends the dns resolution request by the DSL wan interface, this dns resolution request is sent in the dns resolution server in the telecommunications fixed network Intranet be connected with the DSL wan interface, for this dns resolution server according to the URL address in the dns resolution request received, search to obtain and whether stored purpose IP address corresponding to this URL address, if the dns resolution response that will carry purpose IP address returns to the dynamic routing processing unit by the DSL wan interface; If not, do not return to the dns resolution response.
When searching purpose IP address corresponding to the URL address that obtained in the dns resolution request, the dns resolution response that will carry purpose IP address returns to the dynamic routing processing unit by the DSL wan interface, dynamic treatment device responds the purpose IP address in corresponding DSL wan interface and dns resolution response, configuring home gateway routing table according to this dns resolution; Simultaneously, this dns resolution response can also be returned to terminal.
If step 205 does not get the dns resolution response of returning within the predetermined time, the dns resolution request is sent in the dns resolution server in the connected telecommunications mobile Internet of this USB wan interface by the USB wan interface, according to the dns resolution request received, judge whether to return the dns resolution response for this dns resolution server.
In the present embodiment, it is similar whether whether the dns resolution server in the telecommunications mobile Internet returns to dns resolution response operation principle according to the dns resolution request received and the dns resolution server in telecommunications fixed network Intranet return to dns resolution responsive operation principle according to the dns resolution request of reception, do not repeat them here.
Step 206, judge whether to receive within the predetermined time the dns resolution response of returning, if receive the dns resolution response, perform step 207; If do not receive the dns resolution response, perform step 208.
If step 207 gets the dns resolution response that the dns resolution server in the connected telecommunications mobile Internet of this USB wan interface returns, according to returning to this dns resolution, respond the purpose IP address in corresponding USBWAN interface and this dns resolution response, the configuring home gateway routing table, finish.
In the present embodiment, when the dynamic routing processing unit sends the dns resolution request by the USB wan interface, this dns resolution request is sent in the dns resolution server in the telecommunications mobile Internet be connected with the USB wan interface, for this dns resolution server according to the URL address in the dns resolution request received, search and whether get purpose IP address corresponding to this URL address, if the dns resolution response that will carry purpose IP address returns to the dynamic routing processing unit by the USB wan interface; If not, do not return to the dns resolution response.
When the URL address in the dns resolution request is the address of this dns resolution server, the dns resolution response that will carry purpose IP address returns to the dynamic routing processing unit by the USB wan interface, dynamic treatment device responds the purpose IP address in corresponding USB wan interface and dns resolution response, configuring home gateway routing table according to this dns resolution; Simultaneously, this dns resolution response can also be returned to terminal.
If step 208 does not get the dns resolution response of returning within the predetermined time, to terminal, send request failure.
In the present embodiment, if the DSL wan interface arranged in home gateway and USB wan interface all do not get the dns resolution response of returning, this visit network failure is described, and returns to terminal by the request failure, ask unsuccessfully so that the user is known this time.
In the present embodiment, the dns resolution request that carries the URL address sent by receiving terminal, and by this dns resolution request by first sending in the dns resolution server in the telecommunications fixed network Intranet be connected with this DSL wan interface by the DSL wan interface, the dns resolution response of returning if get, according to purpose IP address and DSL wan interface in this dns resolution response, configuring home gateway routing table; The dns resolution response of returning if do not get within the predetermined time, the dns resolution request is sent to next wan interface, the USB wan interface, respond if get dns resolution, according to purpose IP address and USB wan interface in this dns resolution response, configuring home gateway routing table; If do not get the dns resolution response, to terminal, send request failure.Thereby realized having determined that the user inputs wan interface corresponding to URL address, and then effectively, reasonably having configured the routing table of home gateway according to the dns resolution response of obtaining.
It should be noted that, in the present embodiment not type and the quantity to the wan interface that arranges in home gateway limited, those skilled in the art can arrange type and the quantity of wan interface according to actual needs in home gateway, and can set in advance the order which wan interface to send the dns resolution response by.Simultaneously, also it should be noted that, in the embodiment of the present invention, the order which DNS interface to send the dns resolution response by is not limited, those skilled in the art can need to arrange arbitrarily the order which DNS interface to send the dns resolution response by according to actual conditions.
The flow chart of another embodiment that Fig. 5 is dynamic routing processing method of the present invention, in the present embodiment, take in home gateway that DSL wan interface, USB wan interface, Ethernet wan interface and xPON wan interface are set is example, introduce in detail the technical scheme of the present embodiment, as shown in Figure 5, the method for the present embodiment comprises:
The dns resolution request that carries the URL address that step 301, receiving terminal send.
In the present embodiment, shown in the implementation of step 301 and Fig. 3, the implementation of step 101 is similar, does not repeat them here.
Step 302, the dns resolution request is sent in the dns resolution server in the network that those wan interfaces are corresponding by DSL wan interface, USB wan interface, Ethernet wan interface and xPON wan interface respectively simultaneously, according to the dns resolution request received, judge whether to return the dns resolution response for those dns resolution servers.
In the present embodiment, the wan interface that the dynamic routing processing unit can configure the dns resolution request of reception by home gateway sends in the dns resolution server in the network that this wan interface is corresponding.So that all dns resolution servers can judge whether to return the dns resolution response according to the dns resolution request received simultaneously, thereby can more effectively improve the operating efficiency of dynamic routing processing unit.
Step 303, judge whether to get within the predetermined time the dns resolution response of returning, the dns resolution of returning if get within the predetermined time response, perform step 304; The dns resolution response of returning if do not get within the predetermined time, perform step 305.
If step 304 gets the dns resolution response that the dns resolution server in the connected network of wan interface returns, according to returning to this dns resolution, respond the purpose IP address in corresponding wan interface and this dns resolution response, the configuring home gateway routing table, finish.
In the present embodiment, the dynamic routing processing unit is simultaneously by the DSL wan interface, the USB wan interface, Ethernet wan interface and xPON wan interface send the dns resolution request, for the dns resolution server in the telecommunications fixed network Intranet corresponding with the DSL wan interface, dns resolution server in telecommunications mobile Internet corresponding to USB wan interface, dns resolution server in xPON corresponding to the dns resolution server in Ethernet corresponding to Ethernet wan interface and xPON wan interface is respectively to the URL address according in this dns resolution request, search and whether get the purpose IP address corresponding with this URL address, if the dns resolution whois lookup in network corresponding to which wan interface gets purpose IP address corresponding to this URL address, generate the dns resolution response, and the dns resolution response that will carry purpose IP address returns to the dynamic routing processing unit.
For instance, if the judgement of the dns resolution server in telecommunications mobile Internet corresponding to USB wan interface URL address is identical with the address of this dns resolution server, return to the dns resolution response, the dynamic routing processing unit is according to the purpose IP address in this USB wan interface and dns resolution response, the configuring home gateway routing table, so that the dynamic routing processing unit can be determined the wan interface that user's access websites is corresponding, thereby make data to send to main frame corresponding to purpose IP address by the USB wan interface, and then effectively, reasonably configured the routing table of home gateway.
If step 305 does not receive the dns resolution response that the dns resolution server in dns resolution server in the Ethernet that dns resolution server, Ethernet wan interface in the telecommunications mobile Internet that dns resolution server, USB wan interface in the telecommunications fixed network Intranet that the DSL wan interface is corresponding is corresponding is corresponding and xPON corresponding to xPONWAN interface returns within the predetermined time, to terminal, send request failure.
In the present embodiment, when the dynamic routing processing unit sends to the dns resolution server in the network be connected with the plurality of wan interface by a plurality of wan interfaces respectively by the dns resolution request simultaneously, the dynamic routing processing unit receives only the dns resolution response that the dns resolution server in the connected network of wan interface returns, and according to this dns resolution response and this wan interface, the routing table of configuring home gateway; Perhaps do not receive the dns resolution response that the dns resolution server in the connected network of all wan interfaces returns, and return to the request failure to terminal.
In the present embodiment, the dns resolution request that carries the URL address sent by receiving terminal, and this dns resolution request is sent to the dns resolution server in the telecommunications fixed network Intranet that the DSL wan interface is corresponding simultaneously, dns resolution server in telecommunications mobile Internet corresponding to USB wan interface, in dns resolution server in xPON corresponding to the dns resolution server in Ethernet corresponding to Ethernet wan interface and xPON wan interface, if receive the dns resolution response that the dns resolution server in the network that some wan interfaces are corresponding returns, according to purpose IP address and this wan interface in this dns resolution response, the configuring home gateway routing table, if do not get within the predetermined time the dns resolution response, to terminal, send request failure.Thereby realized having determined that the user inputs wan interface corresponding to URL address, and then effectively, reasonably having configured the routing table of home gateway according to the dns resolution response of obtaining.
The structural representation of the embodiment that Fig. 6 is dynamic routing processing unit of the present invention, as shown in Figure 6, the dynamic routing processing unit of the present embodiment comprises: receiver module 31, the first sending module 32 and configuration module 33.Wherein, the dns resolution request that carries the URL address that receiver module 31 sends for receiving terminal; The first sending module 32 is for sending in the dns resolution server of the network be connected with this wan interface by the dns resolution request respectively by wan interface, according to the dns resolution request received, judge whether to return the dns resolution response for the dns resolution server in this network; If the dns resolution response that configuration module 33 returns for the dns resolution server that gets the connected network of wan interface, according to returning to dns resolution, respond the purpose IP address in corresponding wan interface and dns resolution response, configuring home gateway routing table.
The dynamic routing processing unit of the present embodiment can be for the technical scheme of embodiment of the method shown in execution graph 3, and it realizes that principle is similar, repeats no more herein.
In the present embodiment, the dns resolution request that carries the URL address sent by receiving terminal, and this dns resolution request is sent to by each wan interface in the dns resolution server in the network be connected with this wan interface, and get the dns resolution response that the dns resolution server in the connected network of wan interface returns, thereby according to the purpose IP address in this wan interface and dns resolution response, the configuring home gateway routing table, thereby realized according to the dns resolution response of obtaining, determined that the user inputs wan interface corresponding to URL address, and then effectively, reasonably configured the routing table of home gateway.
Further, the structural representation of another embodiment that Fig. 7 is dynamic routing processing unit of the present invention, as shown in Figure 7, on the basis of the described embodiment of Fig. 6, the first sending module 32 can specifically comprise: the first transmitting element 321, judging unit 322 and the second transmitting element 323, wherein, this first transmitting element 321 is for sending in the dns resolution server of the network be connected with this wan interface by the dns resolution request by a wan interface, according to the dns resolution request received, judge whether to return the dns resolution response for the dns resolution server in this network, judging unit 322 is for judging whether configuration module 33 receives the dns resolution response of returning within the predetermined time, do not receive if judge configuration module 33 within the predetermined time the dns resolution response of returning, the first transmitting element 321 sends to the dns resolution request in the dns resolution server in the connected network of next wan interface by next wan interface, if configuration module 33 does not receive the dns resolution response of returning within the predetermined time, repeat this step, until the first transmitting element 321 passes through last wan interface by the dns resolution request, the dns resolution server connected for last wan interface is according to the dns resolution request received, judge whether to return the dns resolution response, the second transmitting element 323 is judged in the given time for judging unit 322, and configuration module 33 does not receive the dns resolution response that the dns resolution server in the connected network of last wan interface returns, and to terminal, sends request failure.
It should be noted that, judge in predetermined time and return to the dns resolution response at judging unit 322, trigger configuration module 33, so that configuration module 33 responds the purpose IP address in corresponding wan interface and dns resolution response, configuring home gateway routing table according to returning to dns resolution.
The dynamic routing processing unit of the present embodiment can be for the technical scheme of embodiment of the method shown in execution graph 4, and it realizes that principle is similar, repeats no more herein.
In the present embodiment, the dns resolution request that carries the URL address sent by receiving terminal, and by this dns resolution request by first sending in the dns resolution server in the network be connected with this wan interface by a wan interface, the dns resolution response of returning if get, according to purpose IP address and this wan interface in this dns resolution response, configuring home gateway routing table; The dns resolution response of returning if do not get within the predetermined time, the dns resolution request is sent to next wan interface, if get the dns resolution response, according to purpose IP address and next wan interface in this dns resolution response, configuring home gateway routing table; If do not get the dns resolution response, to terminal, send request failure.Thereby realized having determined that the user inputs wan interface corresponding to URL address, and then effectively, reasonably having configured the routing table of home gateway according to the dns resolution response of obtaining.
Further, in yet another embodiment of the present invention, on the basis of the described embodiment of Fig. 6, the first sending module 32 is specifically for send to the dns resolution request in the dns resolution server in the connected network of at least two wan interfaces by least two wan interfaces respectively simultaneously, dns resolution server at least two wan interfaces in connected network, according to the dns resolution request received, judges whether to return the dns resolution response.
The dynamic routing processing unit of the present embodiment can be for the technical scheme of embodiment of the method shown in execution graph 5, and it realizes that principle is similar, repeats no more herein.
In the present embodiment, the dns resolution request that carries the URL address sent by receiving terminal, and this dns resolution request is sent in the dns resolution server in the connected network of at least two wan interfaces simultaneously, if receive the dns resolution response that the dns resolution server in the network that some wan interfaces are corresponding returns, according to purpose IP address and this wan interface in this dns resolution response, configuring home gateway routing table; If do not get within the predetermined time the dns resolution response, to terminal, send request failure.Thereby realized having determined that the user inputs wan interface corresponding to URL address, and then effectively, reasonably having configured the routing table of home gateway according to the dns resolution response of obtaining.
The structural representation of the embodiment that Fig. 8 is home gateway of the present invention, as shown in Figure 8, the home gateway of the present embodiment comprises: Wide Area Network interface 41 and dynamic routing processing unit 42.
In the present embodiment, dynamic routing processing unit 42 can, for the technical scheme of embodiment of the method shown in execution graph 3 to Fig. 5, not repeat them here.In addition, Wide Area Network interface 41 can specifically comprise: DSL wan interface, USB wan interface, Ethernet wan interface and/or xPON wan interface.
In the present embodiment, the dns resolution request that carries the URL address sent by receiving terminal, and this dns resolution request is sent to by each wan interface in the dns resolution server in the network be connected with this wan interface, and get the dns resolution response that the dns resolution server in the connected network of wan interface returns, thereby according to the purpose IP address in this wan interface and dns resolution response, the configuring home gateway routing table, thereby realized according to the dns resolution response of obtaining, determined that the user inputs wan interface corresponding to URL address, and then effectively, reasonably configured the routing table of home gateway.
One of ordinary skill in the art will appreciate that: realize that the hardware that all or part of step of said method embodiment can be relevant by program command completes, aforesaid program can be stored in a computer read/write memory medium, this program, when carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: its technical scheme that still can put down in writing aforementioned each embodiment is modified, or part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a dynamic routing processing method, is characterized in that, comprising:
The domain name system analysis request that carries the URL(uniform resource locator) address that receiving terminal sends;
The request of domain name system analysis is sent to by Wide Area Network interface in the domain name system resolution server in the network be connected with described Wide Area Network interface, according to the domain name system analysis request received, judge whether to return the domain name system resolution response for the domain name system resolution server in described network;
If get the domain name system analysis response that the domain name system resolution server in the connected network of described Wide Area Network interface returns, according to the domain name system analysis, respond the purpose Internet Protocol address in corresponding Wide Area Network interface and the response of domain name system analysis, configuring home gateway routing table;
Wherein, described Wide Area Network interface comprises: Digital Subscriber Loop Wide Area Network interface, USB Wide Area Network interface, Ethernet Wide Area Network interface and/or passive optical network Wide Area Network interface.
2. dynamic routing processing method according to claim 1, it is characterized in that, described the request of domain name system analysis is sent to by Wide Area Network interface in the domain name system resolution server in the network be connected with described Wide Area Network interface, domain name system analysis request for the domain name system resolution server in described network according to reception, judge whether to return the domain name system resolution response, comprising:
The request of domain name system analysis is sent to the domain name system resolution server in the network be connected with described Wide Area Network interface by a Wide Area Network interface, according to the domain name system analysis request received, judge whether to return the domain name system resolution response for the domain name system resolution server in described network;
Return to the domain name system resolution response if do not get within the predetermined time, the request of domain name system analysis is sent to the domain name system resolution server in the connected network of described next Wide Area Network interface by next Wide Area Network interface;
Return to the domain name system resolution response if do not get within the predetermined time, repeat this step, until the request of domain name system analysis is sent to the domain name system resolution server in the connected network of described last Wide Area Network interface by last Wide Area Network interface, domain name system resolution server for described last Wide Area Network interface in connected network, according to the domain name system analysis request received, judges whether to return the domain name system resolution response.
3. dynamic routing processing method according to claim 2, is characterized in that, also comprises:
If within described predetermined time, the domain name system resolution server in the connected network of described last Wide Area Network interface does not return to the domain name system resolution response, to described terminal, sends request failure.
4. dynamic routing processing method according to claim 1, it is characterized in that, described the request of domain name system analysis is sent to by Wide Area Network interface in the domain name system resolution server in the network be connected with described Wide Area Network interface, domain name system analysis request for the domain name system resolution server in described network according to reception, judge whether to return the domain name system resolution response, comprising:
The request of domain name system analysis is sent in the domain name system resolution server in the connected network of described at least two Wide Area Network interface by least two Wide Area Network interface respectively simultaneously, domain name system resolution server for described at least two Wide Area Network interface in connected network, according to the domain name system analysis request received, judges whether to return the domain name system resolution response.
5. dynamic routing processing method according to claim 4, is characterized in that, also comprises:
If do not receive within the predetermined time the domain name system resolution response that the domain name system resolution server in the connected network of all described Wide Area Network interface returns, to described terminal, send request failure.
6. a dynamic routing processing unit, is characterized in that, comprising:
Receiver module, the domain name system analysis request that carries the URL(uniform resource locator) address sent for receiving terminal;
The first sending module, for sending in the domain name system resolution server of the network be connected with described Wide Area Network interface by Wide Area Network interface by the request of domain name system analysis respectively, according to the domain name system analysis request received, judge whether to return the domain name system resolution response for the domain name system resolution server in described network;
Configuration module, if the domain name system analysis response of returning for the domain name system resolution server that gets the connected network of described Wide Area Network interface, according to the domain name system analysis, respond the purpose IP address in corresponding Wide Area Network interface and the response of domain name system analysis, configuring home gateway routing table;
Wherein, described Wide Area Network interface comprises: Digital Subscriber Loop Wide Area Network interface, USB Wide Area Network interface, Ethernet Wide Area Network interface and/or passive optical network Wide Area Network interface.
7. dynamic routing processing unit according to claim 6, is characterized in that, described the first sending module comprises:
The first transmitting element, for sending in the domain name system resolution server of the network be connected with described Wide Area Network interface by a Wide Area Network interface by the request of domain name system analysis, according to the domain name system analysis request received, judge whether to return the domain name system resolution response for the domain name system resolution server in described network.
8. dynamic routing processing unit according to claim 7, is characterized in that, described the first sending module also comprises:
Judging unit, for judging in predetermined time, whether described configuration module receives the domain name mapping response of returning;
If described the first transmitting element is also judged described within the predetermined time configuration module for described judgement and is not received the domain name system resolution response of returning, the request of domain name system analysis is sent in the domain name system resolution server in the connected network of described next Wide Area Network interface by next Wide Area Network interface, if described within the predetermined time configuration module does not receive the domain name system resolution response of returning, repeat this step, until described the first transmitting element sends to the request of domain name system analysis in the domain name system resolution server in the connected network of described last Wide Area Network interface by last Wide Area Network interface, domain name system resolution server for described last Wide Area Network interface in connected network is according to the domain name system analysis request received, judge whether to return the domain name system resolution response,
The second transmitting element, for described judgment unit judges, go out within described predetermined time, described configuration module does not receive the domain name system resolution response that the domain name system resolution server in the connected network of described last Wide Area Network interface returns, and to described terminal, sends request failure.
9. dynamic routing processing unit according to claim 6, it is characterized in that, described the first sending module, for the request of domain name system analysis is sent in the domain name system resolution server of the connected network of described at least two Wide Area Network interface by least two Wide Area Network interface respectively simultaneously, domain name system resolution server for described at least two Wide Area Network interface in connected network, according to the domain name system analysis request received, judges whether to return the domain name system resolution response.
10. a home gateway, comprise Wide Area Network interface and described dynamic routing processing unit as arbitrary as claim 6 to 9.
CN201010528564.4A 2010-10-28 2010-10-28 Dynamic routing processing method and dynamic routing processing device and home gateway thereof Active CN102143243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010528564.4A CN102143243B (en) 2010-10-28 2010-10-28 Dynamic routing processing method and dynamic routing processing device and home gateway thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010528564.4A CN102143243B (en) 2010-10-28 2010-10-28 Dynamic routing processing method and dynamic routing processing device and home gateway thereof

Publications (2)

Publication Number Publication Date
CN102143243A CN102143243A (en) 2011-08-03
CN102143243B true CN102143243B (en) 2014-01-08

Family

ID=44410455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010528564.4A Active CN102143243B (en) 2010-10-28 2010-10-28 Dynamic routing processing method and dynamic routing processing device and home gateway thereof

Country Status (1)

Country Link
CN (1) CN102143243B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546853A (en) * 2012-01-06 2012-07-04 大唐移动通信设备有限公司 Method and device for acquiring Internet protocol (IP) address of target network element, system switching method and system switching device
CN102547676A (en) * 2012-01-06 2012-07-04 大唐移动通信设备有限公司 Method and device for acquisition of IP (Internet Protocol) address of target network element and system switching
CN103368847B (en) * 2012-03-27 2017-02-22 华为技术有限公司 Broadband convergence communication method and router
CN103532852B (en) * 2013-10-11 2017-12-19 小米科技有限责任公司 A kind of routing scheduling method, device and the network equipment
CN103634214B (en) * 2013-11-25 2017-08-25 北京神州绿盟信息安全科技股份有限公司 A kind of routing iinformation generation method and device
WO2015162450A1 (en) * 2014-04-22 2015-10-29 Pismo Labs Technology Limited Methods and systems for processing a dns request
CN103973834B (en) * 2014-05-12 2017-07-25 重庆邮电大学 A kind of DNS name resolution accelerating method and device based on home gateway
US9967309B2 (en) * 2014-10-06 2018-05-08 Microsoft Technology Licensing, Llc Dynamic loading of routes in a single-page application
WO2016155796A1 (en) 2015-03-31 2016-10-06 Nec Europe Ltd. Hybrid access dns optimization for multi-source download
CN105306371B (en) * 2015-09-17 2018-12-14 北京星网锐捷网络技术有限公司 A kind of route selection method and device of the network equipment
WO2018090795A1 (en) * 2016-11-18 2018-05-24 Thomson Licensing Method and device for providing services
CN108243050B (en) * 2016-12-27 2020-04-17 中国移动通信有限公司研究院 Method and equipment for configuring routing table
CN110891184A (en) * 2018-09-07 2020-03-17 阿里巴巴集团控股有限公司 Multimedia stream service method and system
CN114157635B (en) * 2020-09-07 2023-08-15 中国移动通信集团湖南有限公司 Domain name back-source method and device for content distribution network, equipment and storage medium
CN112822305B (en) * 2021-02-03 2022-09-13 深圳市共进电子股份有限公司 Method, device, router and storage medium for processing DNS query request

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764855A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Method, device and system for providing domain name resolution services
CN101841577A (en) * 2010-06-07 2010-09-22 中兴通讯股份有限公司 Method and device for implementing domain name resolution agent function

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002185537A (en) * 2000-12-14 2002-06-28 Okamoto Machine Tool Works Ltd Method for connecting networks
US7440466B2 (en) * 2003-08-05 2008-10-21 Intel Corporation Method, apparatus and system for accessing multiple nodes on a private network
CN101217576B (en) * 2008-01-18 2012-05-02 厦门纳网科技有限公司 A dynamic domain name analysis system and the corresponding dynamic analysis method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764855A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Method, device and system for providing domain name resolution services
CN101841577A (en) * 2010-06-07 2010-09-22 中兴通讯股份有限公司 Method and device for implementing domain name resolution agent function

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2002-185537A 2002.06.28

Also Published As

Publication number Publication date
CN102143243A (en) 2011-08-03

Similar Documents

Publication Publication Date Title
CN102143243B (en) Dynamic routing processing method and dynamic routing processing device and home gateway thereof
US9344513B2 (en) In-server redirection of HTTP requests
CN101931635B (en) Network resource access method and proxy device
CN102523314B (en) Identify the method and apparatus of efficient destination server
CN103281409B (en) Based on mobile Internet domain name analytic method and the dns server of Transmission Control Protocol
CN101355565B (en) Method and server for providing page service for various browsers
WO2013143403A1 (en) Method and system for accessing website
CN109729187B (en) Proxy communication method, system, device and storage medium
CN103109517A (en) Double-stack terminal accessing service method, terminal and system
CN111064804B (en) Network access method and device
CN100536472C (en) A method, module and server to control access to network resource
CN102045403A (en) Method, device and system for processing data of distributed network
CN109634753B (en) Data processing method, device, terminal and storage medium for switching browser kernels
CN106464745A (en) Dns server, client and data synchronization method
CN104219230A (en) Method and device for identifying malicious websites
CN103888540A (en) Login information synchronization method, synchronized network servers and synchronizing network servers
CN102801814A (en) Internet access method, device and system
CN101599857B (en) Method, device and network detection system for detecting number of host computers accessed to sharing
CN105847462A (en) Domain name resolution method and device
CN102801745A (en) Method and system for accessing local area network WEB site by using wide area network browser
CN113315852B (en) Domain name resolution method, device and system
CN104702707A (en) Method and device for data processing
CN104969521A (en) Data sending and processing method and router
CN102647463B (en) The generation method of Web side navigation, wireless router terminal and system
CN104980311A (en) Method, device and system for predicting network access

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee after: Huawei terminal (Shenzhen) Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: HUAWEI DEVICE Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20181218

Address after: 523808 Southern Factory Workshop (Phase I) Project B2 Area, No. 2 Xincheng Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: HUAWEI DEVICE Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: Huawei terminal (Shenzhen) Co.,Ltd.