CN101895589A - Wide area network router and method for establishing routing table items therein - Google Patents

Wide area network router and method for establishing routing table items therein Download PDF

Info

Publication number
CN101895589A
CN101895589A CN2010102362329A CN201010236232A CN101895589A CN 101895589 A CN101895589 A CN 101895589A CN 2010102362329 A CN2010102362329 A CN 2010102362329A CN 201010236232 A CN201010236232 A CN 201010236232A CN 101895589 A CN101895589 A CN 101895589A
Authority
CN
China
Prior art keywords
address
domain name
wan
dns
mouth
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
CN2010102362329A
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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2010102362329A priority Critical patent/CN101895589A/en
Publication of CN101895589A publication Critical patent/CN101895589A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a wide area network (WAN) router and a method for establishing routing table items therein. The method comprises the following steps: configuring the respective corresponding relations between a plurality of WAN ports in the WAN router and addresses of DN servers in the networks of different Internet service providers; respectively transmitting DNS requests to the corresponding DNS servers through the WAN ports by the WAN router, and acquiring domain names in the DNS response messages received through the WAN ports and the IP addresses corresponding to the domain names; and if more than two different IP addresses exist in the acquired IP addresses, selecting one IP address as the domain name IP address according to a preset domain name IP address selection policy, and establishing routing table items to record the corresponding relation between the WAN port, which receives the DNS response message containing the domain name IP address, and the domain name IP address, thereby realizing automatic configuration of balance routing table items in the WAN router.

Description

The method that route table items is set up in WAN router and the WAN router
Technical field
The present invention relates to the communications field, relate in particular to the method that route table items is set up in a kind of WAN router and the WAN router.
Background technology
Two WAN (Wide Area Network, wide area network) router has two WAN mouths, two WAN circuits by two WAN mouth correspondences insert Internet (Yin Te) net, a WAN mouth is telecommunications ISP (Internet Service Provider, ISP) provide bandwidth service, another WAN mouth is that the ISP of Netcom provides bandwidth service.In order reasonably to use the ISP bandwidth, two wan routers will be visited the flow of Internet and be shared in two WAN circuits according to a certain percentage, and this moment, the mode of operation of two WAN was a balanced mode.
When two wan routers are operated in balanced mode, subject matter is the ISP visit to occur striding, during server of promptly two wan router visits, suppose it is telecommunications, because balanced mode is to select ISP in proportion at random, in the time of can occurring visiting telecommunication server, situation from the forwarding of the ISP of Netcom circuit, the ISP visit occurs striding, thereby cause two wan router access servers that bigger time-delay is arranged even go offline, play problems such as interruption as play frequent electric wire, online film of Internet bar.
Mainly be to solve the above-mentioned ISP of striding access problem in the prior art by balanced route.Concrete, in two wan routers, set up balanced routing table, wherein balanced route table items is:<purpose IP, WAN mouth 〉, as above-mentioned telecommunication server IP, corresponding outgoing interface is exactly the WAN mouth that inserts telecommunications ISP.Two wan routers are preferential to carry out the message forwarding according to the result who searches balanced routing table, thereby guarantees not transmit from the WAN mouth that inserts the ISP of Netcom the flow of visit telecommunication server.
As seen Guan Jian problem is how to set up above-mentioned balanced routing table.The existing mode of setting up this equilibrium routing table is to set up manually.When the client feeds back certain server of visit and goes offline problems such as (cards/slow), by technological means such as packet capturings, obtain server ip, remove to search this IP to specified web then and belong to which ISP (supposing it is telecommunications), add this route table items<IP then, telecommunications WAN mouth〉in balanced routing table; Or directly search whether had similar routing table on the net, behind the artificial then proving correctness, use this routing table to add route table items in this routing table as balanced routing table or in balanced routing table.
But, manually set up the integrality that can't guarantee balanced route table items, the promptness of balanced routing table.The foundation of routing table adds one by one by manual, can't know accurately which server two wan routers visited, and the balanced route table items of interpolation that just can't be complete causes some slow at random problems, is difficult to the location; In addition, the manual mode that adds one by one can't accomplish to upgrade balanced routing table at any time, and thousands of at least of common complete relatively balanced routing tables, adds the cost height one by one and occurs operating mistake easily by manual.
Summary of the invention
The invention provides the method that route table items in a kind of WAN router and the WAN router is set up, make wan router dispose balanced route on it automatically.
The invention provides a kind of method of route table items foundation of wide area network wan router, described wan router has a plurality of WAN mouths, and this method comprises:
Dispose the corresponding relation of the address of the domain name mapping dns server in each WAN mouth and the different ISP's network;
Receive that client sends contain the DNS request of domain name the time, according to the corresponding relation of the address of each WAN mouth and dns server, described DNS is asked to be sent to each dns server by each WAN mouth;
Receive the DNS response message corresponding to described DNS request of each dns server loopback by each WAN mouth;
Obtain the IP address of domain name in each DNS response message and domain name correspondence, if when in the IP address that obtains IP addresses different more than two being arranged, according to presetting IP address of domain name IP address choice policy selection as domain name IP address;
Set up route table items, be used for recorder and contained the WAN mouth of DNS response message of domain name IP address and the corresponding relation of domain name IP address.
If when a different IP address is only arranged in the IP address that obtains, select this IP address as domain name IP address.
Described method further comprises:
Send domain name and domain name IP address to described client;
Receive that described client sends carry the access to netwoks message of domain name IP address the time, search in the route table items WAN mouth corresponding to domain name IP address;
By the WAN mouth that finds the described access to netwoks message that receives is transmitted.
If when the IP address that obtains is identical IP address, then select this IP address as domain name IP address;
Send domain name and domain name IP address to described client;
Receive that described client sends carry the access to netwoks message of domain name IP address the time, according to the WAN mouth selection strategy that presets, selects a described WAN mouth as forwarding WAN mouth;
By the described forwarding WAN mouth of selecting the described access to netwoks message that receives is transmitted.
In obtaining each DNS response message before the step of the IP address of domain name and domain name correspondence, described method also comprises: the time corresponding to the DNS response message of described DNS request that each WAN mouth is received each dns server loopback is carried out timing, if timing time more than or equal to the preset time threshold value, then abandons this DNS response message that this WAN mouth receives.
A kind of WAN router, this WAN router have a plurality of wide area network WAN mouths, and this WAN router comprises:
Dispensing unit is used to dispose the corresponding relation and the domain name IP address choice strategy of the address of the domain name mapping dns server in each WAN mouth and the different ISP's network;
First receiving element is used to receive the DNS request that contains domain name that client sends;
Retransmission unit is used for the corresponding relation according to the address of each WAN mouth and dns server, and the described DNS request that receives is sent to each dns server by each WAN mouth;
Second receiving element is used for receiving by each WAN mouth the DNS response message corresponding to described DNS request of each dns server loopback;
Selected cell, the IP address that is used for obtaining each DNS response message domain name and domain name correspondence is when having IP addresses different more than two, according to presetting IP address of domain name IP address choice policy selection as domain name IP address in the IP address that obtains;
Routing unit is used to set up route table items, the corresponding relation that is used to write down domain name IP address Yu has received the WAN mouth of the DNS response message that contains domain name IP address.
Described acquiring unit also is used for, and when a different IP address is only arranged in the IP address that obtains, selects this IP address as domain name IP address.
This WAN router also comprises:
Response unit is used for sending domain name and domain name IP address to described client;
First receiving element also is used to receive the access to netwoks message that carries domain name IP address that described client sends;
Described routing unit also is used for searching WAN mouth corresponding to domain name IP address at route table items;
Described retransmission unit also is used for by the WAN mouth that finds the described access to netwoks message that receives being transmitted.
Dispensing unit also is used to dispose WAN mouth selection strategy;
When described selected cell also is used for being identical IP address in the IP address that obtains, select this IP address as domain name IP address;
Retransmission unit also is used for the WAN mouth selection strategy according to configuration, selects a described WAN mouth as transmitting the WAN mouth, by the described forwarding WAN mouth of selecting the described access to netwoks message that receives is transmitted.
This WAN router also comprises:
Timing unit, the time corresponding to the DNS response message of described DNS request that each WAN mouth is received each dns server loopback is carried out timing;
Second receiving element also is used for time in described timing unit timing more than or equal to the preset time threshold value, abandons the DNS response message that the WAN mouth receives.
Compared with prior art, the present invention has the following advantages at least:
Among the present invention, the a plurality of WAN mouths of configuration in the wan router respectively with different ISP's network in the corresponding relation of address of dns server, wan router sends the DNS request to its corresponding dns server respectively by each WAN mouth, obtain IP address by domain name and domain name correspondence in the DNS response message of each WAN mouth reception, if when in the IP address that obtains IP addresses different more than two being arranged, according to presetting IP address of domain name IP address choice policy selection as domain name IP address, and set up route table items, with recorder contain the WAN mouth of DNS response message of domain name IP address and the corresponding relation of domain name IP address, thereby realized the automatic configuration of balanced route table items in the wan router.
Description of drawings
Fig. 1 is the schematic flow sheet of the method that route table items is set up in the wan router that provides of the embodiment of the invention one;
Fig. 2 is the schematic flow sheet of the method that route table items is set up in the wan router that provides of the embodiment of the invention two;
Fig. 3 is the structural representation of the wan router that provides of the embodiment of the invention three.
Embodiment
Among the present invention, wan router has a plurality of WAN mouths, and disposes the corresponding relation of the address of the dns server in each WAN mouth and the different ISP's network.After the DNS request that receives the client transmission, wan router according to each WAN mouth to the corresponding relation of the address of dns server, the DNS request is sent to each dns server by each WAN mouth, and receives the DNS response message corresponding to the DNS request of each dns server loopback by each WAN mouth; Wan router obtains the IP address of domain name in each DNS response message and domain name correspondence, if when in the IP address that obtains IP addresses different more than two being arranged, according to presetting IP address of domain name IP address choice policy selection as domain name IP address, and set up route table items with recorder contain the WAN mouth of DNS response message of this domain name IP address and the corresponding relation of this domain name IP address.
Embodiment one
The method that the embodiment of the invention one provides a kind of route table items of wan router to set up, wan router has a plurality of WAN mouths, and as shown in Figure 1, this method comprises:
Step 101 disposes the corresponding relation of the address of the dns server in each WAN mouth and the different ISP's network.
Step 102, after wan router received the DNS request that contains domain name that client sends, wan router asked that DNS be sent to each dns server by each WAN mouth according to the corresponding relation of the address of each WAN mouth and dns server.
Step 103, wan router receive the DNS response message corresponding to the DNS request of each dns server loopback by each WAN mouth.
The domain name that the inquiry of the domain name that request is carried according to DNS of each dns server is stored separately and the corresponding relation of IP address send the corresponding DNS response message of this DNS request to wan router, carry the IP address that inquiry obtains in this DNS response message.If dns server does not find DNS and asks the corresponding IP address of domain name of carrying in the corresponding relation of the domain name of self storage and IP address, dns server can send this DNS request, the IP address of acquisition request correspondence to the upper strata of book server belonging network dns server; When this upper strata dns server does not find the IP address of the domain name correspondence that DNS request carries, can send this DNS request to the upper strata of its belonging network dns server, if the dns server in the present networks does not all find the IP address of the domain name correspondence that the DNS request carries, can also send this DNS request to the dns server in other networks to obtain corresponding IP address.
Step 104, wan router are obtained the IP address of domain name in each DNS response message and domain name correspondence, if when in the IP address that obtains IP addresses different more than two being arranged, according to presetting IP address of domain name IP address choice policy selection as domain name IP address.
Preferably, wan router can also be added up the time that each WAN mouth receives the DNS response message of DNS request; If time of obtaining of statistics is less than the Preset Time threshold value, the wan router storage receives the domain name and the IP address of carrying in the WAN mouth of this DNS response message and this DNS response message; If the time that statistics obtains, wan router abandoned the DNS response message that this WAN mouth receives more than or equal to the Preset Time threshold value.
Wan router obtains the IP address of domain name in each DNS response message and domain name correspondence, if a different IP address is only arranged in the IP address that obtains, then selects this IP address as domain name IP address; Optionally, if the IP address that obtains is identical IP address, wan router selects this IP address as domain name IP address.
Step 105 is set up route table items, has been used for recorder and has contained the WAN mouth of DNS response message of domain name IP address and the corresponding relation of domain name IP address.
By the method that adopts the embodiment of the invention to provide, the a plurality of WAN mouths of configuration in the wan router respectively with different ISP's network in the corresponding relation of address of dns server, wan router sends the DNS request to its corresponding dns server respectively by each WAN mouth, obtain IP address by domain name and domain name correspondence in the DNS response message of each WAN mouth reception, if when in the IP address that obtains IP addresses different more than two being arranged, according to presetting IP address of domain name IP address choice policy selection as domain name IP address, and set up route table items, with recorder contain the WAN mouth of DNS response message of domain name IP address and the corresponding relation of domain name IP address, thereby realized the automatic configuration of balanced route table items in the wan router.
Embodiment two
The embodiment of the invention two provides the method that route table items is set up in a kind of wan router, this wan router has a plurality of WAN mouths, ISP's network that each WAN mouth is corresponding different respectively, the WAN mouth that has 4 corresponding respectively different ISPs networks with wan router in the present embodiment is that example describes, and these 4 WAN mouths are respectively WAN1 mouth, WAN2 mouth, WAN3 mouth and WAN4 mouth.
Is example with client by wan router visit Sina homepage, the WAN1 mouth of supposing wan router inserts communication network, WAN2 mouth Access Network open network, WAN3 mouth access Tie Tong network, WAN4 mouth access UNICOM network, Sina's homepage has corresponding Server (server) in Netcom, telecommunications and Tie Tong network, but in UNICOM's network, there is not corresponding Server, the server ip address of telecommunications is A, the server ip address of Netcom is B, the server ip address of Tie Tong is C, as shown in Figure 2, this method may further comprise the steps:
Step 201, client-access Sina homepage domain name sends the DNS request to wan router.
Concrete, suppose that Sina's homepage domain name is www.sina.com.cn, client sends the DNS that carries this domain name and asks wan router.
After step 202, wan router are received the DNS request,, send the DNS request respectively from 4 WAN mouths according to the DNS Server address of configuration of routers.
Concrete, pre-configured and 4 WAN mouths are distinguished the address of corresponding DNS Server in the wan router.After receiving the DNS request that client sends, wan router duplicates this DNS request, obtains 4 parts of DNS requests, and the address according to the DNS Server of each WAN mouth correspondence sends the DNS request respectively by 4 WAN mouths.
Step 203, DNS Server sends to wan router and carries the DNS response message of IP address.
DNS Protocol is a domain name Transformation Service agreement, the domain name of visit can be converted to the IP address by this agreement.As client access www.sina.com, so at first can send a DNS and ask to dns server, message of server response, the IP address of telling this domain name correspondence of client, follow-up visit is all by this direct access server in IP address.
Concrete, after DNS Server receives the DNS request of wan router transmission, DNS Server this locality search with DNS request in the corresponding IP address of domain name, if search successfully, then return the DNS response message that carries the IP address to wan router, if search failure, then transmit the DNS request to present networks upper strata DNS Server; When this upper strata DNS Server does not find the IP address of the domain name correspondence that DNS request carries, can send this DNS request to the upper strata of its belonging network DNS Server, if the DNS Server in the present networks does not find the IP address of the domain name correspondence that the DNS request carries, can also send this DNS request to the DNS Server in other networks to obtain corresponding IP address.
In the present embodiment, the homepage domain name www.sina.com.cn of Sina is to the IP address A that telecommunications should be arranged, the IP address B of Netcom and the server ip address C of Tie Tong, the DNS Server corresponding with the WAN1 mouth is positioned at communication network, the server address that obtains the telecommunications corresponding with the homepage domain name www.sina.com.cn of Sina is A, and this address A is sent to the WAN1 mouth; The DNS Server corresponding with the WAN2 mouth is positioned at Netcom's network, and the server address that obtains the Netcom corresponding with Sina homepage domain name is B, and this address B is sent to the WAN2 mouth; The DNS Server corresponding with the WAN3 mouth is positioned at the Tie Tong network, and the server address that obtains the Tie Tong corresponding with Sina homepage domain name is C, and this address C is sent to the WAN3 mouth; The DNS Server corresponding with the WAN4 mouth is positioned at UNICOM's network, but Sina's homepage domain name is the server address of corresponding UNICOM not, therefore, the DNS Server corresponding with the WAN4 mouth do not obtain corresponding IP address in present networks, but can obtain the server address (for example address C) in other networks, the address C that obtains is sent to wan router, and below all to obtain address C with the WAN4 mouth be that example describes.
Step 204, wan router receives the DNS response message respectively from 4 WAN mouths, obtains the domain name and the IP address of carrying in the DNS response message.
Concrete, wan router is provided with the reception strategy of DNS response message, and a time threshold for example is set, and wan router is added up the time that each WAN mouth receives the DNS response message, preferably, this time asks this WAN mouth to receive the time of DNS response message for send DNS from the WAN mouth.
If the time that statistics obtains, wan router obtained the domain name and the IP address of carrying in the DNS response message less than this time threshold; If the time that statistics obtains, wan router abandoned the DNS response message more than or equal to this time threshold.For example, wan router has received the DNS response message by 4 WAN mouths respectively in the time threshold that is provided with, and then wan router obtains the corresponding relation of corresponding relation, IP address C and domain name www.sina.com.cn of corresponding relation, IP address B and domain name www.sina.com.cn of IP address A and domain name www.sina.com.cn and the corresponding relation of IP address C and domain name www.sina.com.cn.If wan router does not obtain the DNS response message by the WAN4 mouth in time threshold, the corresponding relation of the corresponding relation of the corresponding relation of storing IP address A and domain name www.sina.com.cn, IP address B and domain name www.sina.com.cn and IP address C and domain name www.sina.com.cn only then.In like manner, if wan router does not obtain the DNS response message by WAN3 mouth and WAN4 mouth in time threshold, the corresponding relation of the corresponding relation of storing IP address A and domain name www.sina.com.cn and IP address B and domain name www.sina.com.cn only then.
Need to prove, when time that or wan router each WAN mouth lower to the time requirement that receives the DNS response message receive the DNS response message all more in short-term, this reception strategy also can not considered time of reception, but receive the DNS response message of all WAN mouths, and storage receives the domain name and the IP address of carrying in the WAN mouth of DNS response message and the DNS response message.
Step 205, when domain name when IP addresses different more than two should be arranged, wan router is according to presetting IP address of domain name IP address choice policy selection as domain name IP address; If a different IP address is only arranged in the IP address of domain name correspondence, then select this IP address as domain name IP address.
Concrete, when domain name when IP addresses different more than two should be arranged, wan router is according to presetting IP address of domain name IP address choice policy selection as domain name IP address.Preferably, wan router is in all the IP addresses corresponding with domain name that obtain, at first search with self outside IP address all inequality, any one IP address, IP address with the domain name correspondence of storage in the step 204 is that A, B, C, C are example, then wan router search obtain with self outside any one IP address IP address A and B all inequality, wan router according to the configuration domain name IP address choice policy selection address A or address B as domain name IP address.If there is no with self outside IP address all inequality, any one IP address, then in all IP addresses that obtain, select an IP address as domain name IP address according to presetting domain name IP address choice strategy again.
Concrete, this configuration domain name IP address choice strategy can be provided with according to actual needs flexibly, and for example loop cycle selects address A and address B to send to client, perhaps selects address A and address B in turn according to certain weighting ratio.
Need to prove that wan router is after client sends the IP address in the present embodiment, wan router can be deleted domain name and the IP address that step 204 is obtained from the DNS response message, reduces the burden of wan router.
Step 206, wan router is set up route table items, has been used for recorder and has contained the WAN mouth of DNS response message of domain name IP address and the corresponding relation of domain name IP address.
Step 207, wan router sends the DNS response message to client, wherein carries domain name and domain name IP address.
After step 208, wan router receive the access to netwoks message of client transmission, in route table items, search corresponding WAN mouth, send the access to netwoks message by the WAN mouth that finds according to the purpose IP address of wherein carrying.
For example, select address A after client sends when wan router in the step 206, client sends access to netwoks message as purpose IP address to wan router with address A.Wan router obtains the address A that carries in the access to netwoks message, searches route table items and obtains the WAN1 mouth transmission access to netwoks message corresponding with address A.If wan router sends and DNS request corresponding address B to client, then follow-up wan router sends the access to netwoks message by the WAN2 mouth corresponding with address B.
Need to prove, if wan router obtains in the step 204 with corresponding all the IP addresses of domain name when being identical IP address, then wan router selects this IP address as domain name IP address, send domain name and this domain name IP address to client, when wan router receive that client sends carry the access to netwoks message of this domain name IP address the time, according to the WAN mouth selection strategy that presets, select a WAN mouth as transmitting the WAN mouth, the access to netwoks message that receives is transmitted by the forwarding WAN mouth of selecting.Concrete, WAN mouth selection strategy can be provided with according to actual needs flexibly herein, for example is set to loop cycle and selects WAN mouth transmission network visit message, perhaps is set to specific WAN mouth and transmits access to netwoks message when not having corresponding route table items.
By the method that adopts the embodiment of the invention to provide, the a plurality of WAN mouths of configuration in the wan router respectively with different ISP's network in the corresponding relation of address of dns server, wan router sends the DNS request to its corresponding dns server respectively by each WAN mouth, obtain IP address by domain name and domain name correspondence in the DNS response message of each WAN mouth reception, if when in the IP address that obtains IP addresses different more than two being arranged, according to presetting IP address of domain name IP address choice policy selection as domain name IP address, and set up route table items, with recorder contain the WAN mouth of DNS response message of domain name IP address and the corresponding relation of domain name IP address, thereby realize disposing automatically the balanced route table items in the wan router, this list item is set up process does not simultaneously need human intervention, and because the foundation of routing table is initiatively set out by client, can in time add routing table, guarantee the integrality and the promptness of route table items; And, wan router is behind the access to netwoks message that receives the client transmission in the present embodiment, by searching the balanced route table items corresponding with the purpose IP address in the access to netwoks message, obtain corresponding WAN mouth and transmit networking visit message, effectively avoid the ISP that strides of message to transmit, helped improving the message forward efficiency of wan router.
Embodiment three
The embodiment of the invention three provides a kind of wide area network wan router, and this wan router has a plurality of WAN mouths, and as shown in Figure 3, this wan router comprises:
Dispensing unit 11 is used to dispose the corresponding relation and the domain name IP address choice strategy of the address of the domain name mapping dns server in each WAN mouth and the different ISP's network;
First receiving element 12 is used to receive the DNS request that contains domain name that client sends;
Retransmission unit 13 is connected with first receiving element 12 with dispensing unit 11, is used for the corresponding relation according to the address of each WAN mouth and dns server, and the described DNS request that receives is sent to each dns server by each WAN mouth;
Second receiving element 14 is connected with retransmission unit 13, is used for receiving by each WAN mouth the DNS response message corresponding to described DNS request of each dns server loopback;
Selected cell 15, be connected with second receiving element 14, be used for obtaining the IP address of each DNS response message domain name and domain name correspondence, when in the IP address that obtains, IP addresses different more than two being arranged, according to presetting IP address of domain name IP address choice policy selection as domain name IP address;
Routing unit 16 is connected with selected cell 15, is used to set up route table items, the corresponding relation that is used to write down domain name IP address Yu has received the WAN mouth of the DNS response message that contains domain name IP address.
Described selected cell 15 also is used for, and when a different IP address is only arranged in the IP address that obtains, selects this IP address as domain name IP address.
This WAN router also comprises:
Response unit 21 is used for sending domain name and domain name IP address to described client;
First receiving element 12 is connected with response unit 21, also is used to receive the access to netwoks message that carries domain name IP address that described client sends;
Described routing unit 16 is connected with first receiving element 12, also is used for searching WAN mouth corresponding to domain name IP address at route table items;
Described retransmission unit 13 is connected with routing unit 16, also is used for by the WAN mouth that finds the described access to netwoks message that receives being transmitted.
Dispensing unit 11 also is used to dispose WAN mouth selection strategy;
When described selected cell 15 also is used for being identical IP address in the IP address that obtains, select this IP address as domain name IP address;
Retransmission unit 13 also is used for the WAN mouth selection strategy according to configuration, selects a described WAN mouth as transmitting the WAN mouth, by the described forwarding WAN mouth of selecting the described access to netwoks message that receives is transmitted.
This WAN router also comprises:
Timing unit 22, the time corresponding to the DNS response message of described DNS request that each WAN mouth is received each dns server loopback is carried out timing;
Second receiving element 14 also is used for time in described timing unit 22 timing more than or equal to the preset time threshold value, abandons the DNS response message that the WAN mouth receives.
In the embodiment of the invention, a plurality of WAN mouths in the wan router configuration wan router respectively with different ISP's network in the corresponding relation of address of dns server, wan router sends the DNS request to its corresponding dns server respectively by each WAN mouth, obtain IP address by domain name and domain name correspondence in the DNS response message of each WAN mouth reception, if when in the IP address that obtains IP addresses different more than two being arranged, according to presetting IP address of domain name IP address choice policy selection as domain name IP address, and set up route table items, with recorder contain the WAN mouth of DNS response message of domain name IP address and the corresponding relation of domain name IP address, thereby realized the automatic configuration of balanced route table items in the wan router.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (10)

1. the method set up of the route table items of a wide area network wan router, described wan router has a plurality of WAN mouths, it is characterized in that, and this method comprises:
Dispose the corresponding relation of the address of the domain name mapping dns server in each WAN mouth and the different ISP's network;
Receive that client sends contain the DNS request of domain name the time, according to the corresponding relation of the address of each WAN mouth and dns server, described DNS is asked to be sent to each dns server by each WAN mouth;
Receive the DNS response message corresponding to described DNS request of each dns server loopback by each WAN mouth;
Obtain the IP address of domain name in each DNS response message and domain name correspondence, if when in the IP address that obtains IP addresses different more than two being arranged, according to presetting IP address of domain name IP address choice policy selection as domain name IP address;
Set up route table items, be used for recorder and contained the WAN mouth of DNS response message of domain name IP address and the corresponding relation of domain name IP address.
2. method according to claim 1 is characterized in that, if when in the IP address that obtains a different IP address only being arranged, selects this IP address as domain name IP address.
3. method according to claim 1 and 2 is characterized in that, described method further comprises:
Send domain name and domain name IP address to described client;
Receive that described client sends carry the access to netwoks message of domain name IP address the time, search in the route table items WAN mouth corresponding to domain name IP address;
By the WAN mouth that finds the described access to netwoks message that receives is transmitted.
4. method according to claim 3 is characterized in that, when being identical IP address as if the IP address that obtains, then selects this IP address as domain name IP address;
Send domain name and domain name IP address to described client;
Receive that described client sends carry the access to netwoks message of domain name IP address the time, according to the WAN mouth selection strategy that presets, selects a described WAN mouth as forwarding WAN mouth;
By the described forwarding WAN mouth of selecting the described access to netwoks message that receives is transmitted.
5. as claim 3 or 4 described methods, it is characterized in that, in obtaining each DNS response message before the step of the IP address of domain name and domain name correspondence, described method also comprises: the time corresponding to the DNS response message of described DNS request that each WAN mouth is received each dns server loopback is carried out timing, if timing time more than or equal to the preset time threshold value, then abandons this DNS response message that this WAN mouth receives.
6. WAN router, this WAN router has a plurality of wide area network WAN mouths, it is characterized in that this WAN router comprises:
Dispensing unit is used to dispose the corresponding relation and the domain name IP address choice strategy of the address of the domain name mapping dns server in each WAN mouth and the different ISP's network;
First receiving element is used to receive the DNS request that contains domain name that client sends;
Retransmission unit is used for the corresponding relation according to the address of each WAN mouth and dns server, and the described DNS request that receives is sent to each dns server by each WAN mouth;
Second receiving element is used for receiving by each WAN mouth the DNS response message corresponding to described DNS request of each dns server loopback;
Selected cell, the IP address that is used for obtaining each DNS response message domain name and domain name correspondence is when having IP addresses different more than two, according to presetting IP address of domain name IP address choice policy selection as domain name IP address in the IP address that obtains;
Routing unit is used to set up route table items, the corresponding relation that is used to write down domain name IP address Yu has received the WAN mouth of the DNS response message that contains domain name IP address.
7. WAN router according to claim 6 is characterized in that described selected cell also is used for, and when a different IP address is only arranged in the IP address that obtains, selects this IP address as domain name IP address.
8. according to claim 6 or 7 described WAN routers, it is characterized in that this WAN router also comprises:
Response unit is used for sending domain name and domain name IP address to described client;
First receiving element also is used to receive the access to netwoks message that carries domain name IP address that described client sends;
Described routing unit also is used for searching WAN mouth corresponding to domain name IP address at route table items;
Described retransmission unit also is used for by the WAN mouth that finds the described access to netwoks message that receives being transmitted.
9. WAN router according to claim 8 is characterized in that, dispensing unit also is used to dispose WAN mouth selection strategy;
When described selected cell also is used for being identical IP address in the IP address that obtains, select this IP address as domain name IP address;
Retransmission unit also is used for the WAN mouth selection strategy according to configuration, selects a described WAN mouth as transmitting the WAN mouth, by the described forwarding WAN mouth of selecting the described access to netwoks message that receives is transmitted.
10. WAN router as claimed in claim 8 or 9 is characterized in that this WAN router also comprises:
Timing unit, the time corresponding to the DNS response message of described DNS request that each WAN mouth is received each dns server loopback is carried out timing;
Second receiving element also is used for time in described timing unit timing more than or equal to the preset time threshold value, abandons the DNS response message that the WAN mouth receives.
CN2010102362329A 2010-07-26 2010-07-26 Wide area network router and method for establishing routing table items therein Pending CN101895589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102362329A CN101895589A (en) 2010-07-26 2010-07-26 Wide area network router and method for establishing routing table items therein

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102362329A CN101895589A (en) 2010-07-26 2010-07-26 Wide area network router and method for establishing routing table items therein

Publications (1)

Publication Number Publication Date
CN101895589A true CN101895589A (en) 2010-11-24

Family

ID=43104654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102362329A Pending CN101895589A (en) 2010-07-26 2010-07-26 Wide area network router and method for establishing routing table items therein

Country Status (1)

Country Link
CN (1) CN101895589A (en)

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011116726A2 (en) * 2011-04-29 2011-09-29 华为技术有限公司 Method and system for network caching, domain name system redirection sub-system thereof
CN102413201A (en) * 2011-11-10 2012-04-11 上海牙木通讯技术有限公司 Processing method and equipment for domain name system (DNS) query request
CN102801823A (en) * 2012-08-23 2012-11-28 神州数码网络(北京)有限公司 DNS (domain name server) relay method and device
CN103023778A (en) * 2012-12-05 2013-04-03 华为技术有限公司 Method and device for selecting path for router
WO2013068789A1 (en) * 2011-11-11 2013-05-16 Pismo Labs Technology Ltd. Method and system for allowing the use of domain names in enforcing network policy
CN103327129A (en) * 2012-03-21 2013-09-25 深圳市共进电子股份有限公司 Domain name analyticmethod for multi-WAN-port gateway device
CN103634214A (en) * 2013-11-25 2014-03-12 北京神州绿盟信息安全科技股份有限公司 Route information generating method and device
CN103812965A (en) * 2014-02-25 2014-05-21 北京极科极客科技有限公司 Router-based domain name classifying and processing method and device
CN103916489A (en) * 2014-03-31 2014-07-09 浙江宇视科技有限公司 Method and system for resolving single-domain-name multi-IP domain name
CN103929508A (en) * 2014-05-04 2014-07-16 上海大亚科技有限公司 System and method for achieving binding of services and domain name resolution servers
CN104320335A (en) * 2014-11-20 2015-01-28 北京美琦华悦通讯科技有限公司 System and method for achieving optimal outlet route selection based on service quality dial testing
CN105119679A (en) * 2015-09-24 2015-12-02 烽火通信科技股份有限公司 Method and system for realizing SNTP client time synchronization
CN105227684A (en) * 2014-05-29 2016-01-06 国基电子(上海)有限公司 Dynamic domain name server device, WAN router and network communication method
CN105279156A (en) * 2014-05-29 2016-01-27 腾讯科技(深圳)有限公司 Network information communication method and network information browsing device
CN105516007A (en) * 2015-11-30 2016-04-20 般固(北京)科技股份有限公司 Traffic pulling method combining domain name system (DNS) request and response
CN106130913A (en) * 2016-09-08 2016-11-16 深圳市磊科实业有限公司 A kind of multi-operator is the route selecting method of many WAN mouth router based on strategy in the case of accessing
CN106210173A (en) * 2016-07-29 2016-12-07 杭州迪普科技有限公司 DNS replys retransmission method and the device of message
CN103873372B (en) * 2012-12-14 2016-12-28 华耀(中国)科技有限公司 Policy-routing system based on domain name and method to set up
CN106572009A (en) * 2016-11-11 2017-04-19 锐捷网络股份有限公司 Method and device for forwarding massages under multi-operator link environment
CN106789528A (en) * 2016-12-13 2017-05-31 上海市共进通信技术有限公司 The method and apparatus that many bridges are surfed the Net are realized by kernel
CN108632173A (en) * 2017-03-16 2018-10-09 南方银谷科技有限公司 A kind of resource access system and the resource access method based on LAN
CN109889618A (en) * 2014-04-22 2019-06-14 柏思科技有限公司 For handling the method and system of DNS request
US10666771B2 (en) 2013-08-05 2020-05-26 Pismo Labs Technology Limited Method and system for allowing the use of domain name based network policies stored in a second device in enforcing network policy at a first device
CN112822305A (en) * 2021-02-03 2021-05-18 深圳市共进电子股份有限公司 Method, device, router and storage medium for processing DNS query request

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582904A (en) * 2009-06-17 2009-11-18 杭州华三通信技术有限公司 Implementation method of symmetry of multi-line access flow rate of data center, device and system
CN101719864A (en) * 2009-11-27 2010-06-02 深圳市共进电子有限公司 Method for transmitting and distributing data of router with double network ports
CN101764855A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Method, device and system for providing domain name resolution services

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582904A (en) * 2009-06-17 2009-11-18 杭州华三通信技术有限公司 Implementation method of symmetry of multi-line access flow rate of data center, device and system
CN101719864A (en) * 2009-11-27 2010-06-02 深圳市共进电子有限公司 Method for transmitting and distributing data of router with double network ports
CN101764855A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Method, device and system for providing domain name resolution services

Cited By (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011116726A2 (en) * 2011-04-29 2011-09-29 华为技术有限公司 Method and system for network caching, domain name system redirection sub-system thereof
WO2011116726A3 (en) * 2011-04-29 2012-04-05 华为技术有限公司 Method and system for network caching, domain name system redirection sub-system thereof
CN102413201A (en) * 2011-11-10 2012-04-11 上海牙木通讯技术有限公司 Processing method and equipment for domain name system (DNS) query request
CN102413201B (en) * 2011-11-10 2015-03-04 上海牙木通讯技术有限公司 Processing method and equipment for domain name system (DNS) query request
US9369345B2 (en) 2011-11-11 2016-06-14 Pismo Labs Technology Limited Method and system for allowing the use of domain names in enforcing network policy
WO2013068789A1 (en) * 2011-11-11 2013-05-16 Pismo Labs Technology Ltd. Method and system for allowing the use of domain names in enforcing network policy
CN103327129A (en) * 2012-03-21 2013-09-25 深圳市共进电子股份有限公司 Domain name analyticmethod for multi-WAN-port gateway device
CN103327129B (en) * 2012-03-21 2018-10-26 深圳市共进电子股份有限公司 For the domain name analytic method of more WAN mouthfuls of gateway devices
CN102801823A (en) * 2012-08-23 2012-11-28 神州数码网络(北京)有限公司 DNS (domain name server) relay method and device
CN103023778A (en) * 2012-12-05 2013-04-03 华为技术有限公司 Method and device for selecting path for router
CN103023778B (en) * 2012-12-05 2016-02-03 华为技术有限公司 route selection method and device
CN103873372B (en) * 2012-12-14 2016-12-28 华耀(中国)科技有限公司 Policy-routing system based on domain name and method to set up
US10666771B2 (en) 2013-08-05 2020-05-26 Pismo Labs Technology Limited Method and system for allowing the use of domain name based network policies stored in a second device in enforcing network policy at a first device
CN103634214A (en) * 2013-11-25 2014-03-12 北京神州绿盟信息安全科技股份有限公司 Route information generating method and device
CN103634214B (en) * 2013-11-25 2017-08-25 北京神州绿盟信息安全科技股份有限公司 A kind of routing iinformation generation method and device
CN103812965A (en) * 2014-02-25 2014-05-21 北京极科极客科技有限公司 Router-based domain name classifying and processing method and device
CN103916489B (en) * 2014-03-31 2017-08-15 浙江宇视科技有限公司 The many IP of a kind of single domain name domain name analytic method and system
CN103916489A (en) * 2014-03-31 2014-07-09 浙江宇视科技有限公司 Method and system for resolving single-domain-name multi-IP domain name
CN109889618A (en) * 2014-04-22 2019-06-14 柏思科技有限公司 For handling the method and system of DNS request
CN103929508A (en) * 2014-05-04 2014-07-16 上海大亚科技有限公司 System and method for achieving binding of services and domain name resolution servers
CN105279156A (en) * 2014-05-29 2016-01-27 腾讯科技(深圳)有限公司 Network information communication method and network information browsing device
CN105279156B (en) * 2014-05-29 2019-11-29 腾讯科技(深圳)有限公司 Network information communication means and network information browsing apparatus
CN105227684A (en) * 2014-05-29 2016-01-06 国基电子(上海)有限公司 Dynamic domain name server device, WAN router and network communication method
CN104320335A (en) * 2014-11-20 2015-01-28 北京美琦华悦通讯科技有限公司 System and method for achieving optimal outlet route selection based on service quality dial testing
CN105119679A (en) * 2015-09-24 2015-12-02 烽火通信科技股份有限公司 Method and system for realizing SNTP client time synchronization
CN105119679B (en) * 2015-09-24 2017-09-29 烽火通信科技股份有限公司 A kind of method and system for realizing that SNTP client times are synchronous
CN105516007A (en) * 2015-11-30 2016-04-20 般固(北京)科技股份有限公司 Traffic pulling method combining domain name system (DNS) request and response
CN106210173A (en) * 2016-07-29 2016-12-07 杭州迪普科技有限公司 DNS replys retransmission method and the device of message
CN106130913B (en) * 2016-09-08 2019-04-26 深圳市磊科实业有限公司 The route selecting method of the more WAN mouthfuls of routers based on strategy in the case of a kind of access of multi-operator
CN106130913A (en) * 2016-09-08 2016-11-16 深圳市磊科实业有限公司 A kind of multi-operator is the route selecting method of many WAN mouth router based on strategy in the case of accessing
CN106572009A (en) * 2016-11-11 2017-04-19 锐捷网络股份有限公司 Method and device for forwarding massages under multi-operator link environment
CN106789528A (en) * 2016-12-13 2017-05-31 上海市共进通信技术有限公司 The method and apparatus that many bridges are surfed the Net are realized by kernel
CN108632173A (en) * 2017-03-16 2018-10-09 南方银谷科技有限公司 A kind of resource access system and the resource access method based on LAN
CN112822305A (en) * 2021-02-03 2021-05-18 深圳市共进电子股份有限公司 Method, device, router and storage medium for processing DNS query request

Similar Documents

Publication Publication Date Title
CN101895589A (en) Wide area network router and method for establishing routing table items therein
CN101141420B (en) Method and system for performing data communication between private network and public network
EP1430651B1 (en) Adaptive node selection
US6304913B1 (en) Internet system and method for selecting a closest server from a plurality of alternative servers
US7558254B2 (en) Method and apparatus for call routing via gateway brokering
CN101098272A (en) Seed enquiring method of P2P system and P2P server
EP1811724A1 (en) Determining data link (L2) network paths
US20040152439A1 (en) Mobile device communications system and method
WO2012106918A1 (en) Content processing method, device and system
US9319235B2 (en) Authentication, authorization, and accounting based on an automatically generated username
US20060230111A1 (en) Method for allowing peer-to-peer data transmission
CN104539531A (en) Data transmission method and device
CN108173976A (en) Domain name analytic method and device
EP2451125A1 (en) Method and system for realizing network topology discovery
KR100426399B1 (en) A method for providing contents delivery network service through wireless networks and a system therefor
EP4270900A1 (en) Using dns to communicate mp-tcp capability of server devices
CN104506549A (en) Method, device and system for establishing online game connection
EP2494769B1 (en) Communications system
CN101656762A (en) Method, apparatus and system for transmitting domain name server information
SE524733C2 (en) Procedure and systems for retransmitting mobile IP services in a telecommunications system
CN107612759A (en) Network access accelerated method, device and system
CN110380981B (en) Flow distribution method and equipment
CN110601989A (en) Network traffic balancing method and device
CN101471838B (en) Method, system and equipment for switching source
CN100393039C (en) Network administration method for no-IP address device

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