Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification embodiment, below in conjunction with thisAttached drawing in specification embodiment is described in detail the technical solution in this specification embodiment, it is clear that describedEmbodiment is only a part of the embodiment of this specification, instead of all the embodiments.The embodiment of base in this manual,Those of ordinary skill in the art's every other embodiment obtained, all should belong to the range of protection.
In view of the problems of the existing technology, this specification provides a kind of domain name mapping scheme.
In the embodiment of this specification, domain name mapping process is related at least 2 target UEs and DNS serviceDevice, corresponding system architecture schematic diagram as shown in Figure 1, include user equipment 11,12 ... 1n and dns server 20.It canWith understanding, so-called user equipment in this specification embodiment, can for mobile phone, tablet computer, laptop, etc.A specific server or clothes can be can be by the electronic equipment of domain name access website, the concrete form of dns serverThe forms such as business device cluster.
The domain name mapping scheme of this specification embodiment can be applied to the network that there are a large amount of similar domain name mapping demandsIt, can at least 2 users set by this for 2 with similar domain name mapping demand or more platform user equipmenies in environmentStandby and dns server is added in a multicast group, and dns server sends DNS response message using multicasting technology, owns simultaneouslyUser equipment monitors the DNS response message of multicast, to save massive band width by multicast.
In addition, determining the target UE that same multicast group is added (i.e. with the user of similar domain name mapping demandEquipment) when, similar regions can be judged whether there is by operation personnel according to each user and the domain name mapping demand of individual deviceName parsing demand and same multicast group whether is added etc.;It can also be as usual to access by the feature of extraction domain name mapping demandNetwork address or frequentation ask type of webpage, etc., relative user equipment is determined by certain and its algorithm (such as training pattern)With the presence or absence of similar domain name mapping demand and same multicast group whether is added etc.;This specification embodiment does not limit this.
Fig. 2 is the interaction diagrams for the domain name analytic method that this specification embodiment provides, and can specifically include following stepIt is rapid:
S201, any target UE are deposited in the case where determination needs to carry out domain name mapping locally in advanceIn the domain name mapping result of storage, whether inquiry has stored the domain name for needing to parse;
The user equipment of multicast group is added, the common domain name mapping in part can locally be stored in advance as a result, user setsThere are many standby determination needs the case where carrying out domain name mapping, for example, user equipment is laptop, when user opens in computerThe browser of installation, when inputting domain name in address field and accessing, user equipment can determine the domain name for needing to input to userIt is parsed;For another example, user equipment is smart phone, when user clicks some web page interlinkage (domain by certain application softwareName), then user equipment, which can determine, needs the domain name clicked to user to parse, to access the webpage;Etc..
It, can be first in local pre-stored domain name mapping result when user equipment, which determines, needs to carry out domain name mappingIn searched, whether inquiry, which has stored, needs the domain name that parses that can not need if stored to DNS serviceDevice sends domain name analysis request, and directly may have access to corresponding website using pre-stored parsing result.
S202, in the case where inquiring not stored, Xiang Suoshu dns server is sent the either objective user equipmentDNS request message;
If user equipment does not inquire the domain name parsed in local pre-stored domain name mapping resultCorresponding IP address, then can send DNS request message to the dns server in same multicast group, and request dns server returnsThe parsing result of the domain name.
S203, the dns server reply DNS response report in the case where receiving DNS request message, with multicast modeText;
Dns server, specifically can be by a variety of in the case where receiving DNS request message in this specification embodimentMode replys DNS response message with multicast mode.
In a kind of specific embodiment of this specification embodiment, can first according to the DNS request message that receives,Determine the domain name for needing to parse, then in the local domain name mapping result with existing storage of dns server, whether inquiry has been storedThe parsing result of the domain name for needing to parse and the domain name, has stored if inquired, and dns server can be returned with multicast modeDNS response message is answered, includes the domain name mapping result inquired in the response message.
And stored if do not inquired, it is possible to further determine the DNS query mode of this dns server system,Then according to identified DNS query mode, the query result information returned to user equipment is obtained, and reply with multicast modeQuery result information.
It, specifically, can be first according to receiving for example, in the case where determining DNS query result is recursive queryDNS request message, upstream dns server sends dns resolution request, then in the DNS for receiving the return of upstream dns serverIn the case where parsing result, according to the dns resolution as a result, replying DNS response message with multicast mode, wrapped in the response messageInclude the domain name mapping result of the return.
For another example, in the case where determining DNS query result is iterative query, specifically, upstream DNS clothes can be obtained firstThe address of business device, then returns to upstream dns server obtained to the target UE for sending the DNS request messageAddress, so that the target UE is according to the address upstream dns server nslookup parsing result.
S204, any target UE obtain the DNS in the case where listening to multicast DNS response messageResponse message, and the domain name mapping result being locally stored is updated according to the DNS response message.
As previously described, in this specification embodiment, each user equipment of same multicast group is added, all has similar domainName parsing demand, therefore dns server returns to DNS response message in the form of multicast, and each target user in multicast groupEquipment monitors the DNS response message of multicast.
Any user equipment in multicast group can obtain the message in the case where listening to multicast DNS response message,And the domain name mapping being locally stored is updated as a result, for example, if preparatory not stored domain name and its solution according to the DNS response messageAnalysis as a result, can then be added to and be locally stored in;For another example, if the corresponding parsing result of pre-stored domain name is answered with the DNSInconsistent in message, then can be locally stored by the update of the parsing result in message parsing result is answered, so that it is guaranteed thatIt is accessible to arrive correct IP address when accessing the domain name again, avoid waste flow access errors again.
As it can be seen that can be deposited by multicast DNS response message, the local that timely updates using the scheme of this specification embodimentThe modes such as storage save user equipment and obtain domain name mapping result, the bandwidth for accessing webpage and time.
Corresponding to above method embodiment, this specification embodiment also provides a kind of domain name mapping device, is applied to targetUser equipment, it is shown in Figure 3, the apparatus may include:
Inquiry of the domain name module 110, for determine need to carry out domain name mapping in the case where, in local pre-stored domainIn name parsing result, whether inquiry has stored the domain name for needing to parse;
Message sending module 120, in the case where inquiring not stored, Xiang Suoshu dns server to send DNS requestMessage, so that dns server replys DNS response message in the case where receiving DNS request message with multicast mode;
Message monitoring module 130 for monitoring the DNS response message of multicast, and is listening to multicast DNS response messageIn the case of, the DNS response message is obtained, and the domain name mapping result being locally stored is updated according to the DNS response message.
This specification embodiment also provides a kind of domain name mapping device, is applied to dns server, shown in Figure 4, the dressIt sets and may include:
Request message receiving module 210, for receiving the DNS request message of target UE transmission;The DNS requestMessage is any target UE in the case where inquiring local not stored domain name mapping result, Xiang Suoshu DNS clothesThe message that business device is sent;
Response message group broadcasting module 220, for replying DNS response message with multicast mode, so that either objective user setsIt is standby to obtain the DNS response message in the case where listening to multicast DNS response message and this is updated according to the DNS response messageThe domain name mapping result of ground storage.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatusRealization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method realityApply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unitThe unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be withIt is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actualThe purpose for needing to select some or all of the modules therein to realize this specification example scheme.Ordinary skill peopleMember can understand and implement without creative efforts.
Fig. 5 shows one kind provided by this specification embodiment and more specifically calculates device hardware structural schematic diagram,The equipment may include: processor 1010, memory 1020, input/output interface 1030, communication interface 1040 and bus1050.Wherein processor 1010, memory 1020, input/output interface 1030 and communication interface 1040 are real by bus 1050The now communication connection inside equipment each other.
Processor 1010 can use general CPU (Central Processing Unit, central processing unit), micro- placeReason device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or oneOr the modes such as multiple integrated circuits are realized, for executing relative program, to realize technical side provided by this specification embodimentCase.
Memory 1020 can use ROM (Read Only Memory, read-only memory), RAM (Random AccessMemory, random access memory), static storage device, the forms such as dynamic memory realize.Memory 1020 can storeOperating system and other applications are realizing technical solution provided by this specification embodiment by software or firmwareWhen, relevant program code is stored in memory 1020, and execution is called by processor 1010.
Input/output interface 1030 is for connecting input/output module, to realize information input and output.Input and output/Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.WhereinInput equipment may include keyboard, mouse, touch screen, microphone, various kinds of sensors etc., output equipment may include display,Loudspeaker, vibrator, indicator light etc..
Communication interface 1040 is used for connection communication module (not shown), to realize the communication of this equipment and other equipmentInteraction.Wherein communication module can be realized by wired mode (such as USB, cable etc.) and be communicated, can also be wirelessly(such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 1050 include an access, equipment various components (such as processor 1010, memory 1020, input/it is defeatedOutgoing interface 1030 and communication interface 1040) between transmit information.
It should be noted that although above equipment illustrates only processor 1010, memory 1020, input/output interface1030, communication interface 1040 and bus 1050, but in the specific implementation process, which can also include realizing normal fortuneOther assemblies necessary to row.In addition, it will be appreciated by those skilled in the art that, it can also be only comprising real in above equipmentComponent necessary to existing this specification example scheme, without including all components shown in figure.
Although this specification includes many specific implementation details, these are not necessarily to be construed as the model for limiting any inventionIt encloses or range claimed, and is primarily used for describing the feature of the specific embodiment of specific invention.In this specificationCertain features described in multiple embodiments can also be combined implementation in a single embodiment.On the other hand, individually implementingVarious features described in example can also be performed separately in various embodiments or be implemented with any suitable sub-portfolio.ThisOutside, although feature can work in certain combinations as described above and even initially so be claimed, institute is come fromOne or more features in claimed combination can be removed from the combination in some cases, and claimedCombination can be directed toward the modification of sub-portfolio or sub-portfolio.
Similarly, although depicting operation in the accompanying drawings with particular order, this is understood not to require these behaviourMake the particular order shown in execute or sequentially carry out or require the operation of all illustrations to be performed, to realize desired knotFruit.In some cases, multitask and parallel processing may be advantageous.In addition, the various system modules in above-described embodimentSeparation with component is understood not to be required to such separation in all embodiments, and it is to be understood that describedProgram assembly and system can be usually integrated in together in single software product, or be packaged into multiple software product.
The specific embodiment of theme has been described as a result,.Other embodiments are within the scope of the appended claims.?In some cases, the movement recorded in claims can be executed in different order and still realize desired result.ThisOutside, the processing described in attached drawing and it is nonessential shown in particular order or sequential order, to realize desired result.In certain realitiesIn existing, multitask and parallel processing be may be advantageous.
The foregoing is merely the preferred embodiments of this specification embodiment, do not implement to limit this specificationExample, all within the spirit and principle of this specification embodiment, any modification, equivalent substitution, improvement and etc. done should all includeWithin the scope of the protection of this specification embodiment.