CN105933470B - Stratification Service Source parses mapping method and system - Google Patents

Stratification Service Source parses mapping method and system Download PDF

Info

Publication number
CN105933470B
CN105933470B CN201610440233.2A CN201610440233A CN105933470B CN 105933470 B CN105933470 B CN 105933470B CN 201610440233 A CN201610440233 A CN 201610440233A CN 105933470 B CN105933470 B CN 105933470B
Authority
CN
China
Prior art keywords
mapping server
service identifiers
server
content domain
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610440233.2A
Other languages
Chinese (zh)
Other versions
CN105933470A (en
Inventor
秦雅娟
李宏宝
饶迎
任飞
陈佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jiaotong University
Original Assignee
Beijing Jiaotong University
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 Beijing Jiaotong University filed Critical Beijing Jiaotong University
Priority to CN201610440233.2A priority Critical patent/CN105933470B/en
Publication of CN105933470A publication Critical patent/CN105933470A/en
Application granted granted Critical
Publication of CN105933470B publication Critical patent/CN105933470B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a kind of stratification Service Source parsing mapping method and systems.The described method includes: step 1, service identifiers to be checked are sent to local management server by resource requestor;Step 2, the local management server is matched according to the service identifiers to be checked with the service identifiers in the first database of itself;The first database preserves the service identifiers of resource provider and the access information of corresponding resource provider;The access information includes: the access mark and port numbers of resource provider;Step 3, when the service identity matches in the service identifiers to be checked and the first database, the corresponding access information of the matched service identifiers is sent to resource requestor.The method can accelerate the speed of inquiry.

Description

Stratification Service Source parses mapping method and system
Technical field
The present invention relates to network technique field more particularly to a kind of stratification Service Source parsing mapping method and systems.
Background technique
As the important component of existing internet, Service Source resolution system is always the hot spot that everybody studies, such as What designs a kind of system that is efficient, meeting actual demand, is also the target that domestic and international researcher is pursued always.Existing clothes Business resource resolution system is broadly divided into two major classes: domain name analysis system (Domain Name System, the DNS) peace of stratification The Distributed Services identification (RNC-ID) analytic system in face.
DNS name resolution server can store net as the distributed data base for mutually mapping domain name and IP address The domain name of All hosts and its corresponding IP address in network, and be responsible for translating domain name into IP address to search resource location simultaneously Service is obtained, is eventually pointed to still as IP address.Due to the appearance of DNS, user can replace inconvenient memory with convenient domain name IP address.DNS name resolution system uses tree, the every level-one of domain name by independent one or more dns servers into Row inquiry.The top of tree is root dns server, and junior includes multiple top level DNS servers such as net, com, org, then next Grade is authoritative DNS server, such as google, baidu organization name, afterbody are host name, the dominant query host Resource record, such as WWW, mail, Rp.Although DNS name resolution system obtains huge success, but not with internet Disconnected development, DNS domain name system start to expose its own defect.DNS uses centralized management, completes between domain name and IP address Mapping, has drawn the problems such as service mode is single, resource description ability is poor, system load is unbalanced, mobility is poor.
Planarization service identifiers parsing mapped system based on DHT carries out service and resource using flattening naming rule Name, and service identifiers parsing mapped system is made of common distributed routing protocol Chord, Pastry, CAN, KAD etc., Thus such system has the advantages that good adaptivity, load equilibrium, mobility.But due to its special name and Analysis mode results in many problems: on the one hand, the identification (RNC-ID) analytic mapped system based on DHT uses flat naming method, this The unreadable property of user of service identifiers (naming) certainly will be will cause, will also reduce the scalability of system to a certain extent; On the other hand, Chord, CAN mainly being used currently based on the identification (RNC-ID) analytic mapped system of DHT, KAD scheduling algorithm realizes parsing, and It is complicated using the generally existing identification (RNC-ID) analytic process of the system of these algorithms, the problems such as system stability is poor.
Summary of the invention
The embodiment provides a kind of stratification Service Source parsing mapping method and systems, can accelerate to inquire Speed.
To achieve the goals above, this invention takes following technical solutions.
A kind of stratification Service Source parsing mapping method, comprising:
Step 1, service identifiers to be checked are sent to local management server by resource requestor;
Step 2, the local management server is according in the service identifiers to be checked and the first database of itself Service identifiers are matched;The first database preserves the service identifiers and corresponding resource provider of resource provider Access information;The access information includes: the access mark and port numbers of resource provider;
Step 3, it when the service identity matches in the service identifiers to be checked and the first database, will match The corresponding access information of the service identifiers be sent to resource requestor.
A kind of parsing mapped system of the Service Source of stratification, comprising:
Resource requestor, for service identifiers to be checked to be sent to local management server;
Local management server, the access information of the resource provider for being sent a query to resource requestor;And The service identifiers and corresponding access information for saving the resource provider inquired are for inquiry;
Resource provider, for providing resource to resource requestor;
Local content domain mapping server, for saving the service identifiers of the resource provider in local content domain and corresponding Access information;
Root mapping server, for saving the name and access information of second level mapping server;
Mapping servers at different levels, for saving the name and access information of next stage mapping server;
Purpose content domain mapping server, for saving the service identifiers of the resource provider of purpose content domain and corresponding Access information.
As can be seen from the technical scheme provided by the above-mentioned embodiment of the present invention, in the embodiment of the present invention, due to local pipe Reason server is cached with first database in advance, and the first database preserves the service identifiers and correspondence of resource provider The access information of resource provider therefore can accelerate inquiry velocity.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill of field, without any creative labor, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the process flow diagram that a kind of stratification Service Source that the embodiment of the present invention one provides parses mapping method;
Fig. 2 is the process flow diagram that a kind of stratification Service Source that the embodiment of the present invention one provides parses mapping method;
Fig. 3 is the process flow diagram that a kind of stratification Service Source that the embodiment of the present invention one provides parses mapping method;
Fig. 4 is local management server resource key message cache table in the embodiment of the present invention;
Fig. 5 is the information cache for having inquired mapping server in the embodiment of the present invention in local content domain mapping server Table;
Fig. 6 is mapping server information table memory in the embodiment of the present invention;
Fig. 7 is content domain mapping server information table memory in the embodiment of the present invention;
Fig. 8 is that middle-levelization of embodiment of the present invention service identifiers parse mapped system structural model figure;
Fig. 9 is that middle-levelization of the embodiment of the present invention names structure chart.
Figure 10 is the registration process flow chart of middle-levelization of embodiment of the present invention service identifiers resolution system.
Figure 11 is the query process flow chart of middle-levelization of embodiment of the present invention service identifiers resolution system.
Specific embodiment
Embodiments of the present invention are described below in detail, the example of the embodiment is shown in the accompanying drawings, wherein from beginning Same or similar element or element with the same or similar functions are indicated to same or similar label eventually.Below by ginseng The embodiment for examining attached drawing description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
In order to facilitate understanding of embodiments of the present invention, it is done by taking several specific embodiments as an example below in conjunction with attached drawing further Explanation, and each embodiment does not constitute the restriction to the embodiment of the present invention.
As shown in Figure 1, for a kind of stratification Service Source parsing mapping method of the present invention, comprising:
Step 1, service identifiers to be checked are sent to local management server by resource requestor;
Step 2, the local management server is by the clothes in the service identifiers to be checked and itself first database Business mark is matched;The first database preserves the service identifiers and corresponding resource provider of resource provider Access information;The access information includes: the access mark and port numbers of resource provider;The access information further include: money The format of the resource that the life span of source supplier, resource provider provide, abstract, one or more any in size Combination.The service identifiers include: the establishment of stratification locating for content domain where resource structure, resource name and resource type. Such as: the video of a Duan Mingwei " signal and system course are recorded a video " for telecommunications institute's teaching section, Beijing Jiaotong University publication, clothes Business mark are as follows: " Beijing Jiaotong University/telecommunications institute/teaching section/signal and system course video recording/video ".
Step 3, it when the service identity matches in the service identifiers to be checked and the first database, will match The corresponding access information of the service identifiers be sent to the resource requestor.
In the embodiment of the present invention, there is first database since local management server buffers in advance, the first database Therefore the access information of the service identifiers and corresponding resource provider of preserving resource provider, can accelerate inquiry speed Degree.
The method, further includes:
Step 4, described when the service identifiers in the service identifiers to be checked and the first database mismatch The service identifiers to be checked are transmitted to local content domain mapping server by local management server;
Step 5, the local content domain mapping server is by the second database of the service identifiers to be checked and itself In service identifiers matched;Second database preserves the service identifiers of resource provider and corresponding resource mentions The access information of donor;
Step 6, when the service identity matches success in the service identifiers to be checked and second database, institute It states local content domain mapping server and the corresponding access information of the matched service identifiers is sent to local management server, So that the local management server is transmitted to resource requestor.
The method, further includes:
Step 7, when the service identifiers in the service identifiers to be checked and second database mismatch successfully, The local content domain mapping server is by the mapping server in the service identifiers to be checked and itself third database Name is matched;Mapping server name and corresponding access information are preserved in the third database;In the local Hold domain mapping server for the mapping server name progress in the service identifiers to be checked and the third database of itself With the step of include: using longest prefix match algorithm, the local content domain mapping server marks the service to be checked Knowledge is matched with the mapping server name in the third database of itself.
Step 8, when at least mapping server name in the service identifiers to be checked and the third database When with success, the longest mapping server name of name matching in an at least mapping server name for successful match is obtained Corresponding access information;The first request of inquiry purpose mapping server is sent to the longest mapping server of the name matching Message, using the longest mapping server of the name matching as the mapping server n for receiving first request message;Institute It states and carries the service identifiers to be checked in the first request message;Then, step 10 is jumped to.
Step 9, when the service identifiers to be checked match not with the mapping server name in the third database When success, the local content domain mapping server sends the first request message of inquiry purpose content domain mapping server to root Mapping server;Using described mapping server as the mapping server n for receiving first request message.Then, it jumps Go to step 10.
As shown in Fig. 2, the method, further includes:
Step 10, the mapping server n for receiving first request message, by the service identifiers to be checked with Next-hop mapping server name in the 4th database of itself is matched, and matched next-hop mapping server n+ is obtained The corresponding access information of 1 name;Next-hop mapping server n+1 name and corresponding access are preserved in 4th database Information;The corresponding access information of the matched next-hop mapping server n+1 name is sent to institute by the mapping server n State local content domain mapping server;
Step 11, the local content domain mapping server is updated the third database, in the third number According to the name and corresponding access information for saving matched next-hop mapping server n+1 in library;
Step 12, the local content domain mapping server judge the next-hop mapping server n+1 whether for the purpose of Content domain mapping server;When the next-hop mapping server n+1 is purpose content domain mapping server, step is jumped to 17。
Step 13, when the next-hop mapping server n+1 is not purpose content domain mapping server, in the local Hold domain mapping server and sends the of inquiry purpose content domain mapping server to the matched next-hop mapping server n+1 Two request messages carry the service identifiers to be checked in second request message;
Step 14, the matched next-hop mapping server n+1 is using the service identifiers to be checked itself the It is matched in five databases, obtains matched lower two information for jumping mapping server n+2, and jump mapping services for described lower two The corresponding access information of device n+2 is sent to the local content domain mapping server;
Step 15, the local content domain mapping server judge described lower two jump mapping server n+2 whether for the purpose of Content domain mapping server;When it is purpose content domain mapping server that described lower two, which jump mapping server n+2, step is jumped to 17。
Step 16, when it is not purpose content domain mapping server that described lower two, which jump mapping server n+2, continue under inquiry Three jump mapping server, are purpose content domain mapping server until the lower j inquired jumps mapping server n+j.
As shown in figure 3, the method, further includes:
Step 17, the local content domain mapping server sends third to the purpose content domain mapping server inquired Query messages carry the service identifiers to be checked in the third query messages;
Step 18, the purpose content domain mapping server is by the 5th database of the service identifiers to be checked and itself In service identifiers matched, preserved in the 5th database resource provider service identifiers and corresponding access Information;
Step 19, the corresponding access information of service identifiers that the purpose content domain mapping server will match to is sent to Local content domain mapping server, so that the local content domain mapping server is by the management server by the matching To the corresponding access information of service identifiers be transmitted to resource requestor;
Step 110, the management server updates the first database, saved in the first database it is described to Corresponding relationship between query service mark and the corresponding access information of service identifiers being matched to.
Before the step 1, the method also includes:
Resource provider by resource is provided itself service identifiers and corresponding access information be encapsulated into registration request and disappear In breath, and the login request message is sent to local management server;
The login request message is transmitted to local content domain mapping server by the local management server;
The local content domain mapping server unpacks the login request message, obtains the provided resource of resource provider Service identifiers and corresponding access information;The clothes of the provided resource of the resource provider are provided in second database Corresponding relationship between business mark and access information.
The next stage mapping server title includes: the stratification establishment structure where next stage mapping server.
As shown in Figure 8 and Figure 11, the parsing mapped system of the Service Source of a kind of stratification of the present invention, comprising:
Resource requestor, for service identifiers to be checked to be sent to local management server;
Local management server, the access information of the resource provider for being sent a query to resource requestor;And The service identifiers and corresponding access information for saving the resource provider inquired are for inquiry;Fig. 4 is this in the embodiment of the present invention The schematic diagram of ground management server resource key message cache table;
Resource provider, for providing resource to resource requestor;
Local content domain mapping server, for saving the service identifiers of the resource provider in local content domain and corresponding Access information is for inquiry;Fig. 7 is content domain mapping server information table memory in the embodiment of the present invention;
And the name for saving the mapping server inquired and corresponding access information are for inquiry;Fig. 5 is that the present invention is real Apply the schematic diagram for having inquired the information cache table of mapping server in example in local content domain mapping server;
Root mapping server, the name and access information for saving second level mapping server are for inquiry;
Mapping servers at different levels, the name and access information for saving next stage mapping server are for inquiry;Fig. 6 is this Mapping server information table memory in inventive embodiments;
Purpose content domain mapping server, for saving the service identifiers of the resource provider of purpose content domain and corresponding Access information is for inquiry.
The embodiment of the present invention is described below.
The Service Source that the present invention describes a kind of stratification is named and parsing mapped system.Devise a kind of stratification life Name mechanism, which had not only possessed domain name understandable feature clear in structure, but also has included partial content information, so that entire name It is more abundant, complete.Layer is devised on the basis of using for reference existing domain name analysis system for this stratification name structure The service identifiers of secondaryization parse mapped system.The system uses a kind of iterative manner of longest prefix match, is guaranteeing inquiry knot Under the premise of fruit is accurate, the pressure of balanced hierarchical system top service device reduces inquiry hop count, improves search efficiency.
The Service Source of stratification of the invention is named and parsing mapped system includes naming and parsing mapped system, service Resource uses the naming mechanism of stratification, parses the analyzing step of mapped system are as follows: resource provider is taken by local management Be engaged in device by resource registering into system, when resource requestor query resource, first looks for whether having in local management server caching The information needed;If no, can be inquired in the information table memory of local content domain mapping server;If not yet, leading to It crosses local content domain mapping server and finds purpose content domain mapping server, then looked for from purpose content domain mapping server To looked into information.
Wherein, using the naming mechanism of stratification, name user is readable, and name includes partial content information.
Wherein, local management server can cache the key message for the resource inquired, and can avoid repeating to enter system It is searched in system, improves search efficiency.
Local content domain mapping server can cache the information for the mapping server inquired, and search purpose content domain The method of mapping server is the alternative manner of longest prefix match.Wherein, with the algorithm queries next-hop of longest prefix match The method of mapping server are as follows: when obtaining the service identifiers of wanted query resource, into local content domain mapping server It inquires in mapping server information cache table, is matched with this service identifiers with the server name information inquired, used Longest prefix match algorithm, find with the longest mapping server name of the service identity matches, then the mapping server be exactly Optimal next-hop mapping server.There are many kinds of longest prefix match algorithms, selects suitable longest according to specific needs Prefix match algorithm.Using this algorithm iteration, can balanced hierarchical system server at the middle and upper levels pressure, reduce inquiry Hop count improves the efficiency of inquiry.
Due to existing two classes Service Source resolution system be not it is very perfect, advantage and disadvantage are obvious, but their advantage and disadvantage Again mutually complementary, therefore, the present invention is in conjunction with the characteristics of existing two classes Service Source resolution system, the service life of Design hierarchy Name mechanism and corresponding stratification service identifiers parse mapped system, to realize the Unify legislation to Service Source, specification Change Service Source mechanism for resolving.Present invention incorporates readable and based on DHT the planarization service identifiers of the user of name in DNS The characteristics of name is based on content in mapped system is parsed, a kind of new stratification naming mechanism is designed, makes resource description more Specification and abundant;Simultaneously on the basis of using for reference existing DNS name resolution system, designs one kind and changed based on longest prefix match The stratification service identifiers resolution system in generation realizes quick clear and resolution system the load balancing of resolving.
The present invention mainly includes two large divisions: the Uniform Name mechanism and stratification service identifiers of Service Source parse system System.
1. the Uniform Name mechanism of Service Source
Currently, overwhelming majority tissue or mechanism are all the establishments of stratification, this special establishment structure, the present invention are utilized The naming method of stratification is devised, and this name is referred to as service identifiers.Before name, " content domain " concept is first provided: interior Hold some department that domain refers to lower layer in stratification establishment, such as some department in a school, under some institute A content domain can be regarded as.The size of content domain can be adjusted according to the actual situation.Name structure such as Fig. 9 of the rule Shown: entire name is made of two parts, is separated between every part with "/".First part is locating for content domain where resource Structure Attribution is worked out in stratification, such as: one section of video resource of postgraduate section, telecommunications institute, Beijing Jiaotong University, that The content domain of this resource is exactly postgraduate section, the establishment structure of stratification locating for resource content domain be exactly " Beijing Jiaotong University/ Telecommunications institute/postgraduate section ";Second part is some information of resource itself, is made of resource name and resource type, and provide It is separated between parent name and resource type with "/".Such as: a Duan Mingwei of telecommunications institute's teaching section, Beijing Jiaotong University publication The video of " signal and system course are recorded a video ", name are as follows:
" Beijing Jiaotong University/telecommunications institute/teaching section/signal and system course video recording/video "
2. stratification service identifiers resolution system
Stratification service identifiers parse the structural model of mapped system as shown in figure 8, whole system is made of two large divisions, Server zone part and client part.
Server zone part is the core of whole system, is made of several mapping servers according to the structure of stratification, Top layer is root root server, and following one layer is level-one mapping server, then next layer be second level mapping server ... with This analogizes, and bottom one layer is content domain mapping server.
Client part is made of resource provider, resource requestor and management server.
Wherein, resource provider is to provide the host or server of resource, and effect is the pass that oneself can provide to resource Key information (service identifiers, access mark, port numbers, life span, other auxiliary informations) is registered to local content domain mapping clothes It is engaged on device, for resource requestor inquiry.
Resource requestor is the host or server for requesting resource, and effect is to inquire requested resource to server zone Key message (service identifiers, access mark, port numbers, life span, other auxiliary informations), further finds resource offer Person obtains required resource content.
Management server is to be used for: the intermediate server of connection client part and content domain mapping server, main Effect is registration and the inquiry request message for receiving and forwarding resource provider and resource requestor, receives simultaneously forwarding server end Response message.
The resolving of stratification service identifiers parsing mapped system is divided into: resource provider registered resource information The query process of journey and resource requestor to required resource information.
Resource provider includes: to the step of registration process of resource information
It, can (service identifiers connect by some key messages of this resource when resource provider can provide a certain resource Inlet identity, port numbers, life span, other auxiliary informations) it is encapsulated into resource registering request packet, and this resource registering is requested Message is sent to local management server;
This resource registering request message is transmitted to local content domain mapping server again by local management server;
Local content domain mapping server carries out receiving area's reason after receiving resource registering request message, and registration information is infused Volume sends registration response to local management server and disappears into local content domain mapping server database information table memory Breath;
This registration reply message is transmitted to resource provider again by local management server.
Resource requestor includes: to the step of query process of required resource information
Resource requestor sends inquiry request message to local management server;
Local management server receives after inquiry request message in local management server resource key message cache table Resource information needed for caching is searched whether;
If so, the information of resource needed for encapsulating sends this inquiry sound into query response message, and to resource requestor Answer message;
If it is not, then forwarding this inquiry request message to local content domain mapping server;
After local content domain mapping server receives this inquiry request message, first in local content domain mapping server count According to being searched in the information table memory of library;
If finding, the information of resource needed for encapsulating into query response message and is sent to local management server, this Ground management server is cached after this information in local management server resource key message cache table by this query response message It is transmitted to resource requestor;
If not finding, by finding the relevant information of next-hop mapping server after parsing module parsing (comprising clothes Business device name, access mark and port numbers), it sends inquiry purpose content domain mapping server request message and is taken to next-hop mapping Business device;
Next-hop mapping server is if it is the intermediate mapping server in mapped system, then the intermediate mapping server exists In its mapping server information table memory search next-hop mapping server information (include server name, access mark and Port numbers), and this information is returned into local content domain mapping server;
Local content domain mapping server has been inquired mapping server information in update local content domain mapping server and has been delayed After depositing table, judge whether next-hop mapping server is content domain mapping server;
If so, it is purpose content domain mapping server that the content domain mapping server, which is, and reflected to the purpose content domain Penetrate server forwarding inquiries request message;
If it is not, then down hop mapping server send inquiry purpose content domain mapping server request message, repeat with Upper step.
After purpose content domain mapping server receives inquiry request message, in purpose content domain mapping server database It is inquired in information table memory, and query result is returned into local content domain mapping server;
Query result is transmitted to local management server again by local content domain mapping server;Local management server exists It is cached in local management server resource key message cache table and this query response message is transmitted to resource request after this information Person.
Further, local management server caching is resource key message (service identifiers, the access mark inquired Know, port numbers, life span, other auxiliary informations), cache table is illustrated in fig. 4 shown below.
Further, the information of mapping server in the mapped system that caching query is crossed in local content domain mapping server (name of mapping server, access mark, port numbers), cache table is illustrated in fig. 5 shown below.
Further, the information table memory in mapped system in mapping server database is as shown in Figure 6.
Further, the information table memory in local content domain mapping server database is as shown in Figure 7.
Further, the parsing module resolving of local content domain mapping server includes:
When receiving inquiry request, unpacking obtains the service identifiers of wanted query resource, and with this service identifiers and owns The name for the server inquired is matched according to longest prefix match algorithm, finds that longest mapping of name matching Server, then this mapping server is exactly Next Hop Server, and sends inquiry purpose content domain mapping to this mapping server Server request message.
The process of analysis of stratification service identifiers resolution system is described in detail below, main includes the note of resource provider The querying flow of volume process and resource requestor.
1. resource provider is that resource provider directly infuses the key message of provided resource to the register flow path of resource For volume into local content domain mapping server database information table memory, specific flow chart is as shown in Figure 10.
Registration process:
Step 1. resource provider by the key message of provided resource, (survive by service identifiers, access mark, port numbers Time, other auxiliary informations) it is encapsulated into login request message, and this login request message is sent to local management service Device.
This login request message is transmitted to by step 2. local management server after receiving this login request message Local content domain mapping server.
Step 3. local content domain mapping server is unpacked to obtain registration letter after receiving this login request message This registration information, is then registered in local content domain mapping server database information table memory by breath, and returns to registration and ring Answer message to local management server.
This registration reply message is transmitted to by step 4. local management server after receiving this registration reply message Resource provider.
2. resource requestor is as shown in figure 11 to the specific signaling process of the query process of resource.Query process includes:
The service identifiers of required resource are encapsulated into inquiry request message by step 1. resource requestor, and this inquiry is asked Message is asked to be sent to local management server.
Step 2. local management server is unpacked to obtain inquired service after receiving this inquiry request message Mark, and inquired in local management server resource key message cache table with the service identifiers.If in local pipe Key message (service identifiers, access mark, the port of required resource are had found in reason server resource key message cache table Number, life span, other auxiliary informations), then the key message of this resource is encapsulated into query response message, and return to money Source requestor.
If step 3. does not find required resource information in local management server resource key message cache table, This inquiry request message is transmitted to local content domain mapping server.
Step 4. local content domain mapping server is unpacked to obtain being looked into after receiving this inquiry request message The service identifiers of inquiry, and inquired in local content domain mapping server database information table memory with the service identifiers. If having found key message (the service mark of required resource in local content domain mapping server database information table memory Know, access mark, port numbers, life span, other auxiliary informations), then the key message of this resource is encapsulated into inquiry response In message, and return to local management server.
If step 5. does not find required resource in local content domain mapping server database information table memory and closes Key information has then been inquired in mapping server message store table in local content domain mapping server according to most with this service identifiers The mode of long prefix matching carries out server name matching, obtains the letter of longest that mapping server information n of name matching Breath.It is the longest mapping server n of name matching that if it is not found, then default, which is root server, and sends inquiry purpose Content domain mapping server request message gives mapping server n.
After step 6. mapping server n receives inquiry purpose content domain mapping server request message, unpacked simultaneously Inquired purpose content domain mapping server name is obtained, and the mapping server with this name in mapping server n stores letter Matching inquiry is carried out in breath table, obtains information (name including mapping server, the access mark of next-hop mapping server n+1 Know, port numbers), and the Information encapsulation of mapping server n+1 is sent out into inquiry purpose content domain mapping server response message Give local content domain mapping server.
Step 7. local content domain mapping server receive inquiry purpose content domain mapping server response message after, It is unpacked to obtain the information of mapping server n+1, and updates local content domain mapping server and inquired mapping server letter Cache table is ceased, then sends inquiry purpose content domain mapping server request message to mapping server n+1.
After step 8. mapping server n+1 receives inquiry purpose content domain mapping server request message, unpacked And inquired purpose content domain mapping server name is obtained, and the mapping server with this name in mapping server n+1 is deposited Matching inquiry is carried out in storage information table, obtains the information of next-hop mapping server n+2, and by the information of mapping server n+2 It is encapsulated into inquiry purpose content domain mapping server response message and is sent to local content domain mapping server.
And so on.
The final local content domain mapping server of step 9. is receiving inquiry purpose content domain mapping server response message Later, it being unpacked to obtain the information of mapping server n+j, it is content domain mapping server that judgement, which obtains mapping server n+j, Then mapping server n+j is exactly the purpose content domain mapping server to be looked for, then sends inquiry to mapping server n+j and asks Seek message.
After step 10. mapping server n+j receives inquiry request message, is unpacked and obtain inquired service mark Know, and inquired in purpose content domain mapping server database stores information table with this service identifiers, obtains being looked into The key message (service identifiers, access mark, port numbers, life span, other auxiliary informations) of resource is ask, and by this resource Key message, which is encapsulated into query response message, is sent to local content domain mapping server.
After step 11. local content domain mapping server receives query response message, query response message is transmitted to Local management server.
After step 12. local management server receives query response message, unpacks and obtain the crucial letter of institute's query resource Breath (service identifiers, access mark, port numbers, life span, other auxiliary informations), and the key message of this resource is cached to In local management server resource key message cache table, query response message is then transmitted to resource requestor.
Beneficial effects of the present invention are as follows:
The present invention is having drawn existing domain name analysis system and the planarization service identifiers based on DHT parse mapped system It is designed on the basis of the two advantage.In name, the user for not only having realized resource name is readable, but also enriches name In information relevant to resource content;In resolution system design, this programme is looked into reference domain name analysis system stratification iteration On the basis of inquiry mechanism, a local content domain mapping server is increased to the caching function for inquiring mapping server, and The process of iterative query is optimized using the iterative manner of longest prefix match, not only realizes and mapped system is mapped at the middle and upper levels The load balancing of server, and reduce the hop count of inquiry, accelerate the speed of inquiry.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by anyone skilled in the art, It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of protection of the claims Subject to.

Claims (6)

1. a kind of stratification Service Source parses mapping method characterized by comprising
Step 1, service identifiers to be checked are sent to local management server by resource requestor;
Step 2, the local management server is by the service mark in the service identifiers to be checked and itself first database Knowledge is matched;The first database preserves the access of the service identifiers and corresponding resource provider of resource provider Information;The access information includes: the access mark and port numbers of resource provider;
Step 3, when the service identity matches in the service identifiers to be checked and the first database, by matched institute It states the corresponding access information of service identifiers and is sent to the resource requestor;
Step 4, when the service identifiers in the service identifiers to be checked and the first database mismatch, the local The service identifiers to be checked are transmitted to local content domain mapping server by management server;
Step 5, the local content domain mapping server will be in the service identifiers to be checked and the second database of itself Service identifiers are matched;Second database preserves the service identifiers and corresponding resource provider of resource provider Access information;
Step 6, when the service identity matches success in the service identifiers to be checked and second database, described The corresponding access information of the matched service identifiers is sent to local management server by ground content domain mapping server, so that The local management server is transmitted to resource requestor;
Step 7, described when the service identifiers in the service identifiers to be checked and second database mismatch successfully Local content domain mapping server is by the mapping server name in the service identifiers to be checked and itself third database It is matched;Mapping server name and corresponding access information are preserved in the third database;
Step 8, when at least mapping server name matching in the service identifiers to be checked and the third database at When function, it is corresponding to obtain the longest mapping server name of name matching in an at least mapping server name for successful match Access information;The first request for sending inquiry purpose mapping server to the longest mapping server of the name matching disappears Breath, using the longest mapping server of the name matching as the mapping server n for receiving first request message;It is described The service identifiers to be checked are carried in first request message;
Step 9, it is matched when the service identifiers to be checked with the mapping server name in the third database unsuccessful When, the first request message that the local content domain mapping server sends inquiry purpose content domain mapping server is mapped to root Server;Using described mapping server as the mapping server n for receiving first request message;
Step 10, the mapping server n for receiving first request message, by the service identifiers to be checked and itself The 4th database in next-hop mapping server name matched, obtain matched next-hop mapping server n+1 The corresponding access information of word;Next-hop mapping server n+1 name and corresponding access letter are preserved in 4th database Breath;The corresponding access information of the matched next-hop mapping server n+1 name is sent to described by the mapping server n Local content domain mapping server;
Step 11, the local content domain mapping server is updated the third database, in the third database The middle name for saving matched next-hop mapping server n+1 and corresponding access information;
Step 12, the local content domain mapping server judges whether the next-hop mapping server n+1 is purpose content Domain mapping server;
Step 13, when the next-hop mapping server n+1 is not purpose content domain mapping server, the local content domain Mapping server is asked to the second of the matched next-hop mapping server n+1 transmission inquiry purpose content domain mapping server Message is sought, the service identifiers to be checked are carried in second request message;
Step 14, the matched next-hop mapping server n+1 is counted using the service identifiers to be checked itself the 5th According to being matched in library, matched lower two information for jumping mapping server n+2 are obtained, and jump mapping server n+ for described lower two 2 corresponding access informations are sent to the local content domain mapping server;
Step 15, the local content domain mapping server judges that described lower two jump whether mapping server n+2 is purpose content Domain mapping server;
Step 16, when it is not purpose content domain mapping server that described lower two, which jump mapping server n+2, continue inquiry lower three and jump Mapping server is purpose content domain mapping server until the lower j inquired jumps mapping server n+j;
Step 17, the local content domain mapping server sends third inquiry to the purpose content domain mapping server inquired Message carries the service identifiers to be checked in the third query messages;
Step 18, the purpose content domain mapping server will be in the service identifiers to be checked and the 5th database of itself Service identifiers are matched, and the service identifiers and corresponding access letter of resource provider are preserved in the 5th database Breath;
Step 19, the corresponding access information of service identifiers that the purpose content domain mapping server will match to is sent to local Content domain mapping server, so that the local content domain mapping server is matched to by the management server by described The corresponding access information of service identifiers is transmitted to resource requestor;
Step 110, the management server updates the first database, saves in the first database described to be checked Corresponding relationship between service identifiers and the corresponding access information of service identifiers being matched to.
2. the method as described in claim 1, which is characterized in that the local content domain mapping server is by the clothes to be checked Business mark the step of being matched with the mapping server name in the third database of itself includes:
Using longest prefix match algorithm, the local content domain mapping server by the service identifiers to be checked and itself Mapping server name in third database is matched, and is obtained in an at least mapping server name for successful match The corresponding access information of the longest mapping server name of name matching.
3. the method as described in claim 1, which is characterized in that before the step 1, the method also includes:
Resource provider by resource is provided itself service identifiers and corresponding access information be encapsulated into login request message, And the login request message is sent to local management server;
The login request message is transmitted to local content domain mapping server by the local management server;
The local content domain mapping server unpacks the login request message, obtains the clothes of the provided resource of resource provider Business mark and corresponding access information;The service mark of the provided resource of the resource provider is provided in second database Know the corresponding relationship between access information.
4. the method as described in claim 1, which is characterized in that
The access information further include: the format of the resource that the life span of resource provider, resource provider provide, abstract, One or more any combination in size.
5. the method as described in claim 1, which is characterized in that
The service identifiers include: the establishment of stratification locating for content domain where resource structure, resource name and resource type;
The next stage mapping server title includes: the stratification establishment structure where next stage mapping server.
6. a kind of parsing mapped system of the Service Source of stratification, which is characterized in that the system application claim 1 to 5 Described in any item stratification Service Sources parse mapping method, the system comprises:
Resource requestor, for service identifiers to be checked to be sent to local management server;
Local management server, the access information of the resource provider for being sent a query to resource requestor;And it saves The service identifiers for the resource provider inquired and corresponding access information are for inquiry;
Resource provider, for providing resource to resource requestor;
Local content domain mapping server, for save the resource provider in local content domain service identifiers and corresponding access Information is for inquiry;And the name for saving the mapping server inquired and corresponding access information are for inquiry;
Root mapping server, the name and access information for saving second level mapping server are for inquiry;
Mapping servers at different levels, the name and access information for saving next stage mapping server are for inquiry;
Purpose content domain mapping server, for save the resource provider of purpose content domain service identifiers and corresponding access Information is for inquiry.
CN201610440233.2A 2016-06-17 2016-06-17 Stratification Service Source parses mapping method and system Active CN105933470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610440233.2A CN105933470B (en) 2016-06-17 2016-06-17 Stratification Service Source parses mapping method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610440233.2A CN105933470B (en) 2016-06-17 2016-06-17 Stratification Service Source parses mapping method and system

Publications (2)

Publication Number Publication Date
CN105933470A CN105933470A (en) 2016-09-07
CN105933470B true CN105933470B (en) 2019-07-12

Family

ID=56831858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610440233.2A Active CN105933470B (en) 2016-06-17 2016-06-17 Stratification Service Source parses mapping method and system

Country Status (1)

Country Link
CN (1) CN105933470B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111680018A (en) * 2020-04-26 2020-09-18 泰康保险集团股份有限公司 Method, device and equipment for responding to request and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662510A (en) * 2009-09-16 2010-03-03 北京交通大学 Network naming mechanism and name analytic mapping system
CN102143199A (en) * 2010-10-19 2011-08-03 华为技术有限公司 Content acquisition method, node and content network
CN102185935A (en) * 2011-04-27 2011-09-14 北京交通大学 Resource-oriented hierarchical name resolution system
US9888089B2 (en) * 2008-03-31 2018-02-06 Amazon Technologies, Inc. Client side cache management

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9888089B2 (en) * 2008-03-31 2018-02-06 Amazon Technologies, Inc. Client side cache management
CN101662510A (en) * 2009-09-16 2010-03-03 北京交通大学 Network naming mechanism and name analytic mapping system
CN102143199A (en) * 2010-10-19 2011-08-03 华为技术有限公司 Content acquisition method, node and content network
CN102185935A (en) * 2011-04-27 2011-09-14 北京交通大学 Resource-oriented hierarchical name resolution system

Also Published As

Publication number Publication date
CN105933470A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN104052661B (en) Container name server and container name analytic method
CN104917851B (en) Information processing method and dns caching server
CN105376344B (en) A kind of analytic method and system of recurrence name server relevant to source address
CN105162900B (en) A kind of domain name mapping of multi-node collaboration and caching method and system
CN103929507B (en) A kind of realize can change the method and device of DNS service offline
US8073972B2 (en) System and method for location discovery based on DNS
US11816161B2 (en) Asset search and discovery system using graph data structures
CN106506729B (en) A kind of DNS policy resolution method and device based on DNS view
CN105450787B (en) Mapping network addresses methods, devices and systems
CN103618801B (en) Method, equipment and the system of a kind of P2P resource-sharing
WO2018148984A1 (en) Domain name resolution system, domain name resolution server, and domain name resolution method
WO2013170616A1 (en) Method for obtaining information of resource in internet of things, terminal device, and system
CN111447304B (en) Anycast node IP address enumeration method and system for anycast recursive domain name system
CN109450795A (en) A kind of service router and service network system of service-oriented network
CN104537091B (en) A kind of networking relation data querying method based on level identities routing
CN107896257A (en) Method, apparatus, equipment and the medium of deploying client subsystem function
CN102098192B (en) Cross-domain network measuring method based on web servers
CN104253796B (en) Quick area's recognition methods based on network address binding region layer level in domain name system
CN102378407B (en) Object name resolution system and method in internet of things
CN105933470B (en) Stratification Service Source parses mapping method and system
Deri et al. A distributed dns traffic monitoring system
CN108141463A (en) For Internet of Things resource discovering and the distributive resources list based on ICN of routing
Li et al. CDN-hosted domain detection with supervised machine learning through DNS records
CN104125310B (en) Message method based on semi-permanent address
CN102904858B (en) Method for storing and inquiring data in IMS [IP (internet protocol) multimedia subsystem] network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant