CN103634214A - Route information generating method and device - Google Patents
Route information generating method and device Download PDFInfo
- Publication number
- CN103634214A CN103634214A CN201310603031.1A CN201310603031A CN103634214A CN 103634214 A CN103634214 A CN 103634214A CN 201310603031 A CN201310603031 A CN 201310603031A CN 103634214 A CN103634214 A CN 103634214A
- Authority
- CN
- China
- Prior art keywords
- dns
- information
- dynamic routing
- address
- router
- 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.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the technical field of network communication, in particular to a route information generating method and device, which are used for solving the problems that the configuration and updating of a static route both need manual intervention, and the maintenance cost is high and not timely. A data transmission method provided by the embodiment of the invention comprises the steps of after a route determines that a received data packet is a DNS (domain name system) request packet, recording first information of the DNS request packet, determining the subsequently received second information of a DNS answering packet for answering the DNS request packet according to the first information, generating one piece of DNS dynamic route information in a DNS dynamic route table according to the first information and the second information, wherein the DNS dynamic route table is used for allowing the route to query and send the interface of a data transmission packet and receive the next-hop IP (internet protocol) address of the data transmission packet and each piece of DNS dynamic route information in the DNS dynamic route table comprises a destination IP address, the next-hop IP address and the interface information.
Description
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of routing iinformation generation method and device.
Background technology
Along with group of China Telecom breaks up the family by region, north and south, the backbone network of the Internet is also divided into two parts of telecommunications and Netcom, a consequent problem is that the interconnection between telecommunications and Netcom becomes obstructed, and when telecommunication user passes through telecommunication line access websites by Netcom's line access website or the user of Netcom, access speed is all slow;
The domain name mapping service that intelligence domain name system (Domain Name System, DNS) policy resolution provides can address the above problem well; The most basic function of intelligence DNS policy resolution is the user type that can judge intelligently certain website of access, then according to different visitors the domain name of this website, also be network address, resolve to respectively different procotols (Internet Protocol, IP) address, such as, if visitor is the user of Netcom, dns server can be given this visitor the IP of Netcom address resolution corresponding to the domain name of this website, if user is telecommunication user, dns server can be given this visitor telecommunications IP address resolution corresponding to this website domain name; When visitor obtains behind the object IP address of access, just can send packet according to the Xiang Gai website, object IP address obtaining.
In order to realize the load balancing of network, or by other path, replaced forward process while breaking down in some path, to realize route redundancy backup functionality, people have proposed equal-cost route (Equal-CostMultipathRouting, ECMP) concept, configures the different routed paths that many expenses (Cost) value is equal and arrives same object IP address or destination network segment.Current, most manufacturers is by configuring internet service provider (Internet Service Provider, ISP) route realizes equal-cost route function, such as, can set up object IP address and be respectively the equal-cost route list of the IP of Netcom address and telecommunications IP address, visitor is obtaining accessing in advance behind object IP address corresponding to network address by intelligent DNS policy resolution, selects transmitting line to this object IP address transmission data bag from above-mentioned equal-cost route list.
But existing ISP route, by human configuration, that is to say a kind of static configuration mode, this configuration mode not only maintenance cost is high, also possibly because safeguard not in time, causes the transmitting line selected for packet improper.
Summary of the invention
The embodiment of the present invention provides a kind of routing iinformation generation method and device, in order to solve the configuration of static routing and more new capital need manual intervention, maintenance cost is high and safeguard problem not in time.
A kind of data transmission method that the embodiment of the present invention provides, comprising:
Router, after determining that the packet receiving is domain name system DNS request bag, records the first information of described DNS request bag; The described first information comprises: the IP address of the domain name of request analysis, down hop and described router receive the interface message of the interface of described DNS request bag;
Described router, according to the described first information, is determined the second information follow-up reception, that respond the DNS response packet of this DNS request bag; Described the second information comprises: the object procotol IP address that the domain name of request analysis, dns server parse and described router receive the interface message of the interface of described DNS response packet;
Described router, according to the described first information and the second information, generates a DNS dynamic routing information in DNS dynamic routing table; Wherein, described DNS dynamic routing table is for the IP address of the down hop of the interface for described query router forwarding data transmission package and the described transfer of data bag of reception; To be subscriber equipment ask to obtain behind object IP address that dns server parses by DNS described transfer of data bag, the packet sending to this object IP address; Every DNS dynamic routing information in described DNS dynamic routing table comprises: IP address and the interface message of object IP address, down hop.
Alternatively, described every DNS dynamic routing information also comprises the ageing time of real-time update; Wherein, for any DNS dynamic routing information, described ageing time is the last time that generates this DNS dynamic routing information of current distance;
Described method also comprises: for any DNS dynamic routing information, if described ageing time reaches the first setting-up time,, according to the DNS dynamic routing information of other router obtaining, upgrade this DNS dynamic routing information; And/or, if described ageing time reaches the second setting-up time, delete this DNS dynamic routing information.
Alternatively, described method also comprises:
The mode that described router carries out routing inquiry according to described DNS dynamic routing table is set to the highest inquiry mode of all routing inquiry mode medium priorities;
Described router, according to the priority orders of the routing inquiry mode arranging, is inquired about the interface of forwarding data transmission package and the IP address of down hop.
A kind of routing iinformation generating apparatus that the embodiment of the present invention provides, this device is arranged in router, comprising:
The first determination module, for after determining that the packet receiving is domain name system DNS request bag, records the first information of described DNS request bag; The described first information comprises: the IP address of the domain name of request analysis, down hop and described router receive the interface message of the interface of described DNS request bag;
The second determination module, for according to the described first information, determines the second information follow-up reception, that respond the DNS response packet of this DNS request bag; Described the second information comprises: the object procotol IP address that the domain name of request analysis, dns server parse and described router receive the interface message of the interface of described DNS response packet;
Generation module, for according to the described first information and the second information, generates a DNS dynamic routing information in DNS dynamic routing table; Wherein, described DNS dynamic routing table is for the IP address of the down hop of the interface for described query router forwarding data transmission package and the described transfer of data bag of reception; To be subscriber equipment ask to obtain behind object IP address that dns server parses by DNS described transfer of data bag, the packet sending to this object IP address; Every DNS dynamic routing information in described DNS dynamic routing table comprises: IP address and the interface message of object IP address, down hop.
Alternatively, described every DNS dynamic routing information also comprises the ageing time of real-time update; Wherein, for any DNS dynamic routing information, described ageing time is the last time that generates this DNS dynamic routing information of current distance;
Described device also comprises: update module, for for any DNS dynamic routing information, if described ageing time reaches the first setting-up time,, according to the DNS dynamic routing information of other router obtaining, upgrade this DNS dynamic routing information; And/or, if described ageing time reaches the second setting-up time, delete this DNS dynamic routing information.
Alternatively, described device also comprises:
Enquiry module, is set to the highest inquiry mode of all routing inquiry mode medium priorities for the mode of carrying out routing inquiry according to described DNS dynamic routing table; According to the priority orders of the routing inquiry mode arranging, the interface of inquiry forwarding data transmission package and the IP address of down hop.
Adopt the embodiment of the present invention, can utilize DNS request bag and DNS response packet to generate the DNS dynamic routing information in DNS dynamic routing table, the object IP address of the transfer of data bag that router can forward as required, in DNS dynamic routing table, inquire about, for this transfer of data bag select to give out a contract for a project IP address of interface and down hop, because router can automatically configure DNS dynamic routing information when receiving DNS request bag and DNS response packet, without artificial participation, thereby can save maintenance cost, improve maintenance efficiency.
Accompanying drawing explanation
The routing iinformation generation method flow diagram that Fig. 1 provides for the embodiment of the present invention;
The method for building up flow chart of the DNS dynamic routing table that Fig. 2 provides for the embodiment of the present invention;
The querying method flow chart of the DNS dynamic routing table that Fig. 3 provides for the embodiment of the present invention;
Fig. 4 when not adopting DNS dynamic routing table, the transmission schematic diagram of transfer of data bag;
Fig. 5 is while adopting DNS dynamic routing table in the embodiment of the present invention, the transmission schematic diagram of transfer of data bag;
Fig. 6 crosses the schematic diagram of fire compartment wall during pc access www server in the embodiment of the present invention;
The routing iinformation generating apparatus structural representation that Fig. 7 provides for the embodiment of the present invention.
Embodiment
The basic thought of the embodiment of the present invention is to utilize DNS request bag and DNS response packet to generate the DNS dynamic routing information in DNS dynamic routing table, the object IP address of the transfer of data bag that router can forward as required, in DNS dynamic routing table, inquire about, for this transfer of data bag select to give out a contract for a project IP address of interface and down hop, because router can automatically configure DNS dynamic routing information when receiving DNS request bag and DNS response packet, without artificial participation, thereby can save maintenance cost, improve maintenance efficiency.
Below in conjunction with Figure of description, the embodiment of the present invention is described in further detail.
As shown in Figure 1, the routing iinformation providing for the embodiment of the present invention generates method flow diagram, comprises the following steps:
S101: router, after determining that the packet receiving is domain name system DNS request bag, records the first information of described DNS request bag; The described first information comprises: the IP address of the domain name of request analysis, down hop and described router receive the interface message of the interface of described DNS request bag;
S102: router, according to the first information of record, is determined the second information follow-up reception, that respond the DNS response packet of this DNS request bag; Described the second information comprises: the object procotol IP address that the domain name of request analysis, dns server parse and described router receive the interface message of the interface of described DNS response packet;
S103: router, according to the described first information and the second information, generates a DNS dynamic routing information in DNS dynamic routing table; Wherein, described DNS dynamic routing table is for the IP address of the down hop of the interface for described query router forwarding data transmission package and the described transfer of data bag of reception; To be subscriber equipment ask to obtain behind object IP address that dns server parses by DNS described transfer of data bag, the packet sending to this object IP address; Every DNS dynamic routing information in described DNS dynamic routing table comprises: IP address and the interface message of object IP address, down hop.
The basic thought of the embodiment of the present invention is to utilize DNS request bag and DNS response packet to set up DNS dynamic routing table, router is according to the DNS dynamic routing table of setting up, for being transferred to the transfer of data bag of down hop, select routed path, adopt the embodiment of the present invention, the object IP address of the transfer of data bag that router can forward as required, in the DNS dynamic routing table of setting up, inquire about, for this transfer of data bag select to give out a contract for a project IP address of interface and down hop, because router can automatically configure DNS dynamic routing information when receiving DNS request bag and DNS response packet, without artificial participation, thereby can save maintenance cost, improve maintenance efficiency.
In above-mentioned steps S102, the DNS dynamic routing information generating in DNS dynamic routing table can have three layers of implication, comprise: initially generate a DNS dynamic routing information in DNS dynamic routing table, repeat to generate an identical DNS dynamic routing information in DNS dynamic routing table, with a DNS dynamic routing information of generation, this DNS dynamic routing information is for upgrading one or more DNS dynamic routing information of DNS dynamic routing table; Be elaborated below:
In specific implementation process, if initially generate a DNS dynamic routing information in DNS dynamic routing table, can directly this DNS dynamic routing information be added in DNS dynamic routing table; If repeat, generate an identical DNS dynamic routing information in DNS dynamic routing table, this DNS dynamic routing information that can ignore generation, if but DNS dynamic routing information also comprises ageing time, need this ageing time zero clearing, the ageing time is here the last time that generates this DNS dynamic routing information of current distance;
In specific implementation process, can also upgrade the DNS dynamic routing information having generated, particularly, according to the DNS request bag of follow-up reception and the DNS response packet corresponding with this DNS request bag, determining after a DNS dynamic routing information, each DNS dynamic routing information in the DNS dynamic routing information of determining and DNS dynamic routing table is compared, object IP address in the DNS dynamic routing information of determining if find is identical with the object IP address in a DNS dynamic routing information in DNS dynamic routing table, but other information is inconsistent, can upgrade corresponding DNS dynamic routing information in DNS dynamic routing table according to this DNS dynamic routing information of determining, in concrete enforcement, ageing time is set can also to every DNS dynamic routing information in DNS dynamic routing table, the ageing time here refers to the last time that generates this DNS dynamic routing information, at this moment, object IP address in finding the above-mentioned DNS dynamic routing information of determining is identical with the object IP address in one or more DNS dynamic routing information in DNS dynamic routing table, when but other information is inconsistent, further judge whether the ageing time of the described one or more DNS dynamic routing information in DNS dynamic routing table has reached the predefined time, if define the ageing time of DNS dynamic routing information, reached the described predefined time, according to the above-mentioned DNS dynamic routing information of determining, upgrade aged DNS dynamic routing information, if do not have, can select not upgrade, directly the above-mentioned DNS dynamic routing information of determining is recorded in DNS dynamic routing table, for providing another, router transfer of data bag is sent to the routed path of above-mentioned purpose IP address.
Except this, in DNS dynamic routing information, can also comprise the domain name of request analysis, like this, when upgrading DNS dynamic routing table, can also upgrade according to domain name, particularly, according to follow-up reception DNS request bag, determining after a DNS dynamic routing information with corresponding with it DNS response packet, each DNS dynamic routing information in the DNS dynamic routing information of determining and DNS dynamic routing table is compared, in the DNS dynamic routing information determine if find, the domain name of request analysis is identical with the domain name of request analysis in one or more DNS dynamic routing information in DNS dynamic routing table, but other information is inconsistent, can further judge the interface type relating in the DNS dynamic routing information of determining, such as being Netcom's interface or telecommunication interface, one or more DNS dynamic routing information consistent with interface type in the DNS dynamic routing information of determining in described DNS dynamic routing table is upgraded, also can be with similar described in epimere, after reaching setting-up time, ageing time upgrades again.
In specific implementation process, why can adopt DNS request bag and DNS response packet to generate routing iinformation, because can get the required line information of follow-up transmission transfer of data bag by these two packets, the transfer of data bag here refers to that subscriber equipment arrives by DNS acquisition request behind the object IP address of resolving after domain name, the packet of the proper communication sending to this object IP address; By DNS, asking the IP address of the down hop obtained of bag is the IP address that receives the down hop of this DNS request bag, also be the IP address that receives the down hop of transfer of data bag, therefore, according to DNS request bag, getting behind the IP address of down hop, also got the IP address that receives the down hop of transfer of data bag, in specific implementation process, the process of asking bag to obtain the IP address of down hop by DNS can be: according to the object IP address of described DNS request bag, search the IP address of corresponding down hop in existing routing table; Here, the object IP address of DNS request bag refers to the IP address of the dns server that receives this DNS request bag, and the dns server here also can be called intelligent DNS strategic server; Existing routing table refers to other routing table except DNS dynamic routing off-balancesheet, as ISP static routing table.
Except the IP address of above-mentioned down hop, out of Memory is from the DNS receiving, to ask directly to obtain bag and DNS response packet, or can be confirmable when receiving this DNS request bag and DNS response packet, such as, can from above-mentioned DNS request bag and DNS response packet, directly obtain the domain name of request analysis, can from above-mentioned DNS response packet, directly obtain the object IP address that dns server parses, when receiving this DNS request bag or DNS response packet, can determine interface message according to the interface that receives this DNS request bag or DNS response packet.
In specific implementation process, router is after receiving packet, the type of the packet that first judgement receives, if determine, the packet receiving is DNS request bag, can be according to this DNS request bag, obtain the domain name that also record request is resolved, the IP address of down hop, receive with this router the interface message that this DNS asks the interface of bag, it is the above-mentioned first information, if determine, the packet receiving is DNS response packet, obtain the domain name that also record request is resolved, the object IP address that dns server parses, receive the interface message of the interface of this DNS response packet with this router, be above-mentioned the second information, coupling domain name and the consistent first information and the second information of interface message, according to the first information and the second information that the match is successful, determine a DNS dynamic routing information, and add in DNS dynamic routing table, the interface message here refers to the information of interface of any unique identification routers such as IP address of interface name or interface, the transfer of data bag of the packet receiving if determine for needing to forward, also be the packet that subscriber equipment sends to the object IP address that dns server parses, according to the object IP address of this transfer of data bag, query routing path from DNS dynamic routing table, the IP address of definite give out a contract for a project interface and down hop.
Alternatively, in step S102, described every DNS dynamic routing information also comprises the ageing time of real-time update; Wherein, for any DNS dynamic routing information, described ageing time is the last time that generates this DNS dynamic routing information of current distance;
Described method also comprises: for any DNS dynamic routing information, if described ageing time reaches the first setting-up time,, according to the DNS dynamic routing information of other router obtaining, upgrade this DNS dynamic routing information; And/or, if described ageing time reaches the second setting-up time, delete this DNS dynamic routing information.
In specific implementation process, for upgrading in time of every DNS dynamic routing information in assurance DNS dynamic routing table, can add again an information for every DNS dynamic routing information in this DNS dynamic routing table, it is ageing time, the ageing time is here real-time update, is the last time that generates this DNS dynamic routing information of current distance, in concrete enforcement, the first setting-up time can be set, for a DNS dynamic routing information wherein, router reaches after the first setting-up time of setting in the ageing time of this DNS dynamic routing information, obtain the DNS dynamic routing information of other router, according to DNS dynamic routing information corresponding with this DNS dynamic routing information in other router obtaining, upgrade this DNS dynamic routing information, such as, can obtain the DNS dynamic routing information identical with object IP address in this DNS dynamic routing information of object IP address in other router, and the ageing time of the ageing time of DNS dynamic routing information in other router and local dns dynamic routing information is compared, if determine, the ageing time of DNS dynamic routing information in other router is less than the ageing time of local dns dynamic routing information, local dns dynamic routing information is updated to the DNS dynamic routing information in other router obtaining,
In specific implementation process, the second setting-up time can also be set, for any DNS dynamic routing information, if described ageing time reaches the second setting-up time, delete this DNS dynamic routing information; Delete in time the DNS dynamic routing information not being used for a long time, can save the memory space that dynamic routing table takies on the one hand, on the other hand, the long-time DNS dynamic routing information not being used is invalid, delete in time it, can avoid the later stage to use this DNS dynamic routing information by mistake.When being combined with above-mentioned the first setting-up time and the second setting-up time, the first setting-up time being set and being less than the second setting-up time.
Alternatively, described method also comprises:
The mode that described router carries out routing inquiry according to described DNS dynamic routing table is set to the highest inquiry mode of all routing inquiry mode medium priorities;
Described router, according to the priority orders of the routing inquiry mode arranging, is inquired about the interface of forwarding data transmission package and the IP address of down hop.
In specific implementation process, except being undertaken routing inquiry by DNS dynamic routing table, can also there is other routing inquiry mode simultaneously, the priority orders of different routing inquiry modes can be set, the mode of carrying out routing inquiry by DNS dynamic routing table is set to the inquiry mode that priority is the highest, by this DNS dynamic routing table, cannot inquire after routed path, then go to carry out routing inquiry by alternate manner, such as adopting again ISP routing inquiry mode etc.
In order to illustrate that better the embodiment of the present invention generates and the method for query routing information, below by two embodiment, introduce respectively foundation and the query script of DNS dynamic routing table in the embodiment of the present invention;
As shown in Figure 2, the method for building up flow chart of the DNS dynamic routing table providing for the embodiment of the present invention, comprising:
S201: router receives after packet, carries out the decoding of the layer 1-7 of open system interconnection (OSI) (Open System Interconnect, OSI) to the packet receiving;
S202: router is according to decoded information, and the type of judgement packet, if definite packet receiving is DNS request data package, enters step S203, and the packet receiving is DNS reply data bag if determine, enters step S204;
S203: router, according to described DNS request data package, obtains and record the first information, comprises the domain name of request analysis, the IP address of down hop and router receive the interface message of the interface of described DNS request bag;
S204: router, according to described DNS reply data bag, obtains and record the second information, comprises the interface message that the domain name of request analysis, object IP address that dns server parses and described router receive the interface of described DNS response packet;
In specific implementation process, no matter be DNS request data package or DNS reply data bag, after obtaining the above-mentioned first information or the second information, can inquire about existing routing table, this DNS request data package or DNS reply data bag are forwarded, also can, after receiving this DNS request data package or DNS reply data bag, first packet be backed up, then package forward is gone out, according to the packet of backup, obtain the above-mentioned first information or the second information.
S205: the router coupling domain name first information and second information consistent with interface message;
S206: router, according to the first information and the second information that the match is successful, generates a DNS dynamic routing information in DNS dynamic routing table.
In specific implementation process, repeat above-mentioned steps, can constantly supplement the DNS dynamic routing information in DNS dynamic routing table, in concrete enforcement, ageing time is set can also to every DNS dynamic routing information, for upgrading this DNS dynamic routing information, specifically sees the explanation relevant to accompanying drawing 1, here repeat no more, the DNS dynamic routing table of foundation is as shown in following table one:
The domain name of request analysis | IP address after parsing | Interface | Next-hop ip address | Ageing time |
…… | …… | …… | …… | …… |
Table one
As shown in Figure 3, the querying method flow chart of the DNS dynamic routing table providing for the embodiment of the present invention, comprising:
S301: router receives after packet, carries out the decoding of 1-4 layer to the packet receiving;
It should be noted that, router is when the transfer of data bag receiving first for a data flow, what carry out is the decoding of layer 1-7, after layer 1-7 decoding, if the type of specified data bag is transfer of data bag, set up a data flow from source IP address to object IP address, when the follow-up packet receiving again for this stream, only need carry out the decoding of 1-4 layer, the type that can determine the packet of reception is transfer of data bag; For ease of understanding, under work, further illustrate: router is after receiving packet, first by 4 layers of decoded packet datas to the, at this moment source IP address and object IP address that can specified data bag, in the data flow that judgement has been set up at present, whether there is the data flow that source IP address is identical with object IP address with the source IP address of the packet of reception with object IP address, if had, determine that this packet is transfer of data bag, needn't continue decoding.
S302: router is according to the object IP address lookup DNS dynamic routing table of packet, if successful inquiring, the IP address of obtain giving out a contract for a project interface and down hop;
S303: according to the IP address of give out a contract for a project interface and the down hop that inquire, forward the described packet receiving.
In order to further illustrate the beneficial effect of the embodiment of the present invention, below by two legends, describe, as shown in Figure 4, when not adopting DNS dynamic routing table, the transmission schematic diagram of transfer of data bag, for DNS request bag, at interface 1, receive after this DNS request bag, from interface 2(telecommunication interface) send this DNS request bag to dns server, for transfer of data bag, from interface 1, receive this transfer of data bag, from interface 3(Netcom interface) send this transfer of data bag, as we can see from the figure, PC (Personal Computer, what while PC) sending DNS request, walk is telecommunication line, also be, user's type is telecommunication user, when PC sends transfer of data bag to object IP, by inquiring about in the equal-cost route of firewall configuration, the routed path inquiring is Netcom's circuit, so, the interface of giving out a contract for a project when DNS request and proper communication is inconsistent, also be that telecommunication user Adoption Network circuit sends transfer of data bag, line matching mistake, cause network not smooth.As shown in Figure 5, when adopting DNS dynamic routing table in the embodiment of the present invention, the transmission schematic diagram of transfer of data bag, for DNS request bag, at interface 1, receive after this DNS request bag, from interface 2(telecommunication interface) send this DNS request bag to dns server, for transfer of data bag, from interface 1, receive this transfer of data bag, from interface 2, send this transfer of data bag, as we can see from the figure, owing to having adopted the DNS dynamic routing table query routing path that priority is higher, give out a contract for a project while having guaranteed DNS request and the proper communication consistency of interface, line matching is striven for, guaranteed the fluency of network.The fire compartment wall here refers to a kind of network safety system between internal network and external network, has the function of router.During as shown in Figure 6, for PC in the embodiment of the present invention (Personal Computer, PC) access www server, cross the schematic diagram of fire compartment wall.
Based on same inventive concept, a kind of routing iinformation generating apparatus corresponding with routing iinformation generation method is also provided in the embodiment of the present invention, because the principle that this device is dealt with problems is similar to embodiment of the present invention routing iinformation generation method, therefore the enforcement of this device can, referring to the enforcement of method, repeat part and repeat no more.
As shown in Figure 7, be the routing iinformation generating apparatus structural representation that the embodiment of the present invention provides, this device is arranged in router, comprising:
The first determination module 71, for after determining that the packet receiving is domain name system DNS request bag, records the first information of described DNS request bag; The described first information comprises: the IP address of the domain name of request analysis, down hop and described router receive the interface message of the interface of described DNS request bag;
The second determination module 72, for according to the described first information, determines the second information follow-up reception, that respond the DNS response packet of this DNS request bag; Described the second information comprises: the object procotol IP address that the domain name of request analysis, dns server parse and described router receive the interface message of the interface of described DNS response packet;
Alternatively, described every DNS dynamic routing information also comprises the ageing time of real-time update; Wherein, for any DNS dynamic routing information, described ageing time is the last time that generates this DNS dynamic routing information of current distance;
Described device also comprises: update module 74, for for any DNS dynamic routing information, if described ageing time reaches the first setting-up time,, according to the DNS dynamic routing information of other router obtaining, upgrade this DNS dynamic routing information; And/or, if described ageing time reaches the second setting-up time, delete this DNS dynamic routing information.
Alternatively, described device also comprises:
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, device (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computer or other programmable data processing device is produced for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable devices.
Although described the preferred embodiments of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.
Claims (6)
1. a routing iinformation generation method, is characterized in that, the method comprises:
Router, after determining that the packet receiving is domain name system DNS request bag, records the first information of described DNS request bag; The described first information comprises: the IP address of the domain name of request analysis, down hop and described router receive the interface message of the interface of described DNS request bag;
Described router, according to the described first information, is determined the second information follow-up reception, that respond the DNS response packet of this DNS request bag; Described the second information comprises: the object procotol IP address that the domain name of request analysis, dns server parse and described router receive the interface message of the interface of described DNS response packet;
Described router, according to the described first information and the second information, generates a DNS dynamic routing information in DNS dynamic routing table; Wherein, described DNS dynamic routing table is for the IP address of the down hop of the interface for described query router forwarding data transmission package and the described transfer of data bag of reception; To be subscriber equipment ask to obtain behind object IP address that dns server parses by DNS described transfer of data bag, the packet sending to this object IP address; Every DNS dynamic routing information in described DNS dynamic routing table comprises: IP address and the interface message of object IP address, down hop.
2. the method for claim 1, is characterized in that, described every DNS dynamic routing information also comprises the ageing time of real-time update; Wherein, for any DNS dynamic routing information, described ageing time is the last time that generates this DNS dynamic routing information of current distance;
Described method also comprises: for any DNS dynamic routing information, if described ageing time reaches the first setting-up time,, according to the DNS dynamic routing information of other router obtaining, upgrade this DNS dynamic routing information; And/or, if described ageing time reaches the second setting-up time, delete this DNS dynamic routing information.
3. method as claimed in claim 1 or 2, is characterized in that, described method also comprises:
The mode that described router carries out routing inquiry according to described DNS dynamic routing table is set to the highest inquiry mode of all routing inquiry mode medium priorities;
Described router, according to the priority orders of the routing inquiry mode arranging, is inquired about the interface of forwarding data transmission package and the IP address of down hop.
4. a routing iinformation generating apparatus, is characterized in that, this device is arranged in router, comprising:
The first determination module, for after determining that the packet receiving is domain name system DNS request bag, records the first information of described DNS request bag; The described first information comprises: the IP address of the domain name of request analysis, down hop and described router receive the interface message of the interface of described DNS request bag;
The second determination module, for according to the described first information, determines the second information follow-up reception, that respond the DNS response packet of this DNS request bag; Described the second information comprises: the object procotol IP address that the domain name of request analysis, dns server parse and described router receive the interface message of the interface of described DNS response packet;
Generation module, for according to the described first information and the second information, generates a DNS dynamic routing information in DNS dynamic routing table; Wherein, described DNS dynamic routing table is for the IP address of the down hop of the interface for described query router forwarding data transmission package and the described transfer of data bag of reception; To be subscriber equipment ask to obtain behind object IP address that dns server parses by DNS described transfer of data bag, the packet sending to this object IP address; Every DNS dynamic routing information in described DNS dynamic routing table comprises: IP address and the interface message of object IP address, down hop.
5. device as claimed in claim 4, is characterized in that, described every DNS dynamic routing information also comprises the ageing time of real-time update; Wherein, for any DNS dynamic routing information, described ageing time is the last time that generates this DNS dynamic routing information of current distance;
Described device also comprises: update module, for for any DNS dynamic routing information, if described ageing time reaches the first setting-up time,, according to the DNS dynamic routing information of other router obtaining, upgrade this DNS dynamic routing information; And/or, if described ageing time reaches the second setting-up time, delete this DNS dynamic routing information.
6. the device as described in claim 4 or 5, is characterized in that, described device also comprises:
Enquiry module, is set to the highest inquiry mode of all routing inquiry mode medium priorities for the mode of carrying out routing inquiry according to described DNS dynamic routing table; According to the priority orders of the routing inquiry mode arranging, the interface of inquiry forwarding data transmission package and the IP address of down hop.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310603031.1A CN103634214B (en) | 2013-11-25 | 2013-11-25 | A kind of routing iinformation generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310603031.1A CN103634214B (en) | 2013-11-25 | 2013-11-25 | A kind of routing iinformation generation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103634214A true CN103634214A (en) | 2014-03-12 |
CN103634214B CN103634214B (en) | 2017-08-25 |
Family
ID=50214855
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310603031.1A Active CN103634214B (en) | 2013-11-25 | 2013-11-25 | A kind of routing iinformation generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103634214B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105991793A (en) * | 2015-05-27 | 2016-10-05 | 杭州迪普科技有限公司 | Message forwarding method and device |
CN108092889A (en) * | 2017-12-27 | 2018-05-29 | 上海地面通信息网络股份有限公司 | A kind of end-to-end multilink multinode Full automatic redundant route stand-by system |
WO2019015363A1 (en) * | 2017-07-20 | 2019-01-24 | 中兴通讯股份有限公司 | Data packet routing method and data packet routing device |
CN109729183A (en) * | 2018-05-16 | 2019-05-07 | 平安科技(深圳)有限公司 | Request processing method, device, equipment and storage medium |
CN112491721A (en) * | 2020-11-13 | 2021-03-12 | 游密科技(深圳)有限公司 | Data routing method and device, electronic equipment and storage medium |
CN114745316A (en) * | 2022-04-13 | 2022-07-12 | 工银科技有限公司 | Routing method, apparatus, device, medium and program product |
CN116390189A (en) * | 2023-06-05 | 2023-07-04 | 微网优联科技(成都)有限公司 | Route planning method, device, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217497A (en) * | 2008-01-18 | 2008-07-09 | 北京邮电大学 | A Path Selection Method for Wireless Mesh Network |
US20090106453A1 (en) * | 2006-01-30 | 2009-04-23 | Yamaha Corporation | Domain name system using dynamic dns and global address management method for dynamic dns server |
CN101511117A (en) * | 2009-04-08 | 2009-08-19 | 杭州华三通信技术有限公司 | Two-layer cross-network segment communicating method, system and equipment |
CN101895589A (en) * | 2010-07-26 | 2010-11-24 | 杭州华三通信技术有限公司 | Wide area network router and method for establishing routing table items therein |
CN101984605A (en) * | 2010-11-12 | 2011-03-09 | 中兴通讯股份有限公司 | Route discovery method and diameter nodes in non-direct connecting diameter system |
US20110173339A1 (en) * | 2010-01-14 | 2011-07-14 | Sangfor Technologies Company Limited | network service access method and access gateway equipment |
CN102143243A (en) * | 2010-10-28 | 2011-08-03 | 华为终端有限公司 | Dynamic routing processing method and dynamic routing processing device and home gateway thereof |
CN103023778A (en) * | 2012-12-05 | 2013-04-03 | 华为技术有限公司 | Method and device for selecting path for router |
-
2013
- 2013-11-25 CN CN201310603031.1A patent/CN103634214B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090106453A1 (en) * | 2006-01-30 | 2009-04-23 | Yamaha Corporation | Domain name system using dynamic dns and global address management method for dynamic dns server |
CN101217497A (en) * | 2008-01-18 | 2008-07-09 | 北京邮电大学 | A Path Selection Method for Wireless Mesh Network |
CN101511117A (en) * | 2009-04-08 | 2009-08-19 | 杭州华三通信技术有限公司 | Two-layer cross-network segment communicating method, system and equipment |
US20110173339A1 (en) * | 2010-01-14 | 2011-07-14 | Sangfor Technologies Company Limited | network service access method and access gateway equipment |
CN101895589A (en) * | 2010-07-26 | 2010-11-24 | 杭州华三通信技术有限公司 | Wide area network router and method for establishing routing table items therein |
CN102143243A (en) * | 2010-10-28 | 2011-08-03 | 华为终端有限公司 | Dynamic routing processing method and dynamic routing processing device and home gateway thereof |
CN101984605A (en) * | 2010-11-12 | 2011-03-09 | 中兴通讯股份有限公司 | Route discovery method and diameter nodes in non-direct connecting diameter system |
CN103023778A (en) * | 2012-12-05 | 2013-04-03 | 华为技术有限公司 | Method and device for selecting path for router |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105991793B (en) * | 2015-05-27 | 2019-06-07 | 杭州迪普科技股份有限公司 | The method and apparatus of message forwarding |
CN105991793A (en) * | 2015-05-27 | 2016-10-05 | 杭州迪普科技有限公司 | Message forwarding method and device |
WO2019015363A1 (en) * | 2017-07-20 | 2019-01-24 | 中兴通讯股份有限公司 | Data packet routing method and data packet routing device |
US11381503B2 (en) | 2017-07-20 | 2022-07-05 | Zte Corporation | Data packet routing method and data packet routing device |
CN108092889B (en) * | 2017-12-27 | 2024-02-23 | 上海地面通信息网络股份有限公司 | End-to-end multi-link multi-node full-automatic redundancy backup routing system |
CN108092889A (en) * | 2017-12-27 | 2018-05-29 | 上海地面通信息网络股份有限公司 | A kind of end-to-end multilink multinode Full automatic redundant route stand-by system |
CN109729183A (en) * | 2018-05-16 | 2019-05-07 | 平安科技(深圳)有限公司 | Request processing method, device, equipment and storage medium |
WO2019218441A1 (en) * | 2018-05-16 | 2019-11-21 | 平安科技(深圳)有限公司 | Request processing method and apparatus, device, and storage medium |
CN112491721A (en) * | 2020-11-13 | 2021-03-12 | 游密科技(深圳)有限公司 | Data routing method and device, electronic equipment and storage medium |
CN114745316B (en) * | 2022-04-13 | 2023-11-14 | 工银科技有限公司 | Routing method, device, equipment and medium |
CN114745316A (en) * | 2022-04-13 | 2022-07-12 | 工银科技有限公司 | Routing method, apparatus, device, medium and program product |
CN116390189A (en) * | 2023-06-05 | 2023-07-04 | 微网优联科技(成都)有限公司 | Route planning method, device, electronic equipment and storage medium |
CN116390189B (en) * | 2023-06-05 | 2023-08-15 | 微网优联科技(成都)有限公司 | Route planning method, device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103634214B (en) | 2017-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102938794B (en) | ARP message forwarding method, switch and controller | |
CN103634214A (en) | Route information generating method and device | |
EP2909981B1 (en) | Method and system of packet based identifier locator network protocol (ilnp) load balancing and routing | |
US20170034055A1 (en) | Handling Consumer Mobility in Information-Centric Networks | |
CN109474936B (en) | Internet of things communication method and system applied among multiple lora gateways | |
CN105264493A (en) | Dynamic virtual machines migration over information centric networks | |
EP3026872B1 (en) | Packet forwarding method, apparatus, and system | |
EP2723026A1 (en) | Method and system of frame based identifier locator network protocol (ILNP) load balancing and routing | |
CN109981329A (en) | Determine the method, equipment and system of network equipment connection relationship | |
CN103118148A (en) | Method and device for updating ARP (address resolution protocol) cache | |
WO2017193848A1 (en) | Route establishment and message sending | |
US20140032782A1 (en) | Method and apparatus for route selection of host in multihoming site | |
CN107547346B (en) | Message transmission method and device | |
CN104539902A (en) | IPC remote access method and system | |
US10536368B2 (en) | Network-aware routing in information centric networking | |
WO2017177794A1 (en) | Service path establishment method, apparatus and system | |
US9860171B2 (en) | Large scale message routing in a distributed network | |
CN103916489A (en) | Method and system for resolving single-domain-name multi-IP domain name | |
US8423668B2 (en) | Link state protocol routing message containment | |
CN102780701A (en) | Access control method and equipment | |
CN118316869A (en) | Session service intercommunication processing method, system, electronic equipment and storage medium | |
EP3897013A1 (en) | Method for accessing local network, and related device | |
CN115567441A (en) | Method, device and system for generating forwarding information | |
CN101572729B (en) | Processing method of node information of virtual private network, interrelated equipment and system | |
EP3021529B1 (en) | Method and device for implementing layer 3 virtual private network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
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: 100089 Beijing city Haidian District Road No. 4 North wa Yitai three storey building Patentee after: NSFOCUS Technologies Group Co.,Ltd. Patentee after: NSFOCUS TECHNOLOGIES Inc. Address before: 100089 Beijing city Haidian District Road No. 4 North wa Yitai three storey building Patentee before: NSFOCUS INFORMATION TECHNOLOGY Co.,Ltd. Patentee before: NSFOCUS TECHNOLOGIES Inc. |