CN104883389A - Obtaining method of server-side position and device - Google Patents

Obtaining method of server-side position and device Download PDF

Info

Publication number
CN104883389A
CN104883389A CN201510185194.1A CN201510185194A CN104883389A CN 104883389 A CN104883389 A CN 104883389A CN 201510185194 A CN201510185194 A CN 201510185194A CN 104883389 A CN104883389 A CN 104883389A
Authority
CN
China
Prior art keywords
node device
service
end position
service end
corresponding relation
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
Application number
CN201510185194.1A
Other languages
Chinese (zh)
Other versions
CN104883389B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201510185194.1A priority Critical patent/CN104883389B/en
Publication of CN104883389A publication Critical patent/CN104883389A/en
Application granted granted Critical
Publication of CN104883389B publication Critical patent/CN104883389B/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)
  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention discloses an obtaining method of a server-side position and a device. The method comprises the steps of recording a corresponding relation between the first service information and a first server-side position in a position database when a node device provides the first service, and sending the position storage request information in a broadcast manner, wherein the position storage request information carries the corresponding relation between the first service information and the first server-side position; utilizing the second service information to query the position database when the node device needs to use a second service, if a second server-side position corresponding to the second service information is recorded in the position database, using the node device to obtain the second server-side position from the position database, and establishing connection with a corresponding server-side by utilizing the second server-side position. According to the embodiment of the present invention, the processing workload of a domain name server (DNS) is reduced, and the domain name analysis efficiency and domain name analysis speed of a whole system are improved.

Description

A kind of acquisition methods of service end position and equipment
Technical field
The present invention relates to communication technical field, particularly relate to a kind of acquisition methods and equipment of service end position.
Background technology
In a distributed system, under not providing the prerequisite of service end position on the client, client can obtain service end position accurately, and connects based on service end position and service end, thus uses the service that service end provides.In order to Obtaining Accurate service end position, client, to the request of DNS (DomainName System, domain name system) server sending domain name analysis, carries information on services in this domain name mapping request.Based on the corresponding relation between the information on services of this dns server record and service end position, dns server is after receiving domain name mapping request, the service end position that inquiry service information is corresponding, and by domain name mapping response, service end position is sent to client, obtain service end position by client.
Because all clients all need to obtain service end position to dns server, therefore, when the client terminal quantity needing to obtain service end position is more, dns server can receive a large amount of domain name mapping requests, and return a large amount of domain name mapping responses of carrying service end position, increase the work for the treatment of amount of dns server, the domain name resolution efficiency of whole system is very low.And when client to dns server obtaining service end position, client may need just can get service end position for a long time.
Summary of the invention
The embodiment of the present invention provides a kind of acquisition methods of service end position, be applied in the distributed system comprising multiple node device, the equal maintenance position database of each node device, described location database is for recording the corresponding relation between information on services and service end position, and described method comprises:
Node device is when providing first service, the corresponding relation between the first service information of described first service and the first service end position of described first service is recorded in the location database of this node device, and send position storage resource request message with broadcast mode, carry the corresponding relation between described first service information and described first service end position in the storage resource request message of described position; In the location database of other node device described, the corresponding relation between described first service information and described first service end position is recorded by other node device receiving described position storage resource request message;
Described node device is when needs use second service, utilize the location database of this node device of second service information inquiry of described second service, if record the second service end position that described second service information is corresponding in described location database, then described node device obtains described second service end position from described location database, and utilizes described second service end position and corresponding service end to connect.
Described method comprises further: described node device receive other node device with broadcast mode send carry the position storage resource request message of the corresponding relation between second service information and second service end position time, then described node device records the corresponding relation between described second service information and described second service end position in the location database of this node device.
Described method comprises further: when described node device is not when providing first service, described node device deletes the corresponding relation between described first service information and described first service end position from the location database of this node device, and send position deletion request message with broadcast mode, carry the corresponding relation between described first service information and described first service end position in the deletion request message of described position; From the location database of other node device described, the corresponding relation between described first service information and described first service end position is deleted by other node device receiving described position deletion request message.
Described method comprises further:
When the first service provided is updated to the 3rd service by described node device, described node device is by the corresponding relation between the described first service information in the location database of this node device and described first service end position, corresponding relation between the 3rd service end position that the 3rd information on services and the described 3rd being updated to described 3rd service is served, and send location update request message with broadcast mode, the corresponding relation between the described first service information before renewal and described first service end position is carried in described location update request message, and upgrade after described 3rd information on services and described 3rd service end position between corresponding relation, by receiving other node device of described location update request message by the corresponding relation between the described first service information in the location database of other node device described and described first service end position, be updated to the corresponding relation between described 3rd information on services and described 3rd service end position.
Described method comprises further:
When there being new node equipment to join described distributed system, described node device sends position informing request message with mode of unicast to described new node equipment, carry the corresponding relation between the information on services of all services that this node device provides and the service end position of described all services in described position informing request message, in the location database of described new node equipment, record the corresponding relation between the information on services of all services and the service end position of described all services by described new node equipment.
Described method comprises further:
When described node device leaves from described distributed system, described node device sends position with broadcast mode and leaves request message, the information of carrying described node device and leaving is left in request message in described position, by the corresponding relation that other node device service end position traveled through in the location database of other node device described receiving described position and leave request message is described node device, and delete the corresponding relation that service end position is described node device from the location database of other node device described.
After described node device utilizes the location database of this node device of second service information inquiry of described second service, described method also comprises:
If do not record the second service end position that described second service information is corresponding in described location database, then described node device sends position enquiring request message with broadcast mode, described second service information is carried in described position enquiring request message, by receiving other node device of described position enquiring request message when determining the second service providing described second service information corresponding by this other node device, return the position enquiring response message of the second service end position carrying other node device described to described node device; Described node device obtains described second service end position from described position enquiring response message, and utilizes described second service end position and corresponding service end to connect.
The embodiment of the present invention provides a kind of node device, be applied in the distributed system comprising multiple node device, the equal maintenance position database of each node device, described location database is for recording the corresponding relation between information on services and service end position, and described node device specifically comprises:
Logging modle, for when providing first service, records the corresponding relation between the first service information of first service and the first service end position of first service in the location database of described node device;
Sending module, for sending position storage resource request message with broadcast mode, carries the corresponding relation between described first service information and described first service end position in the storage resource request message of described position; In the location database of other node device described, the corresponding relation between described first service information and described first service end position is recorded by other node device receiving described position storage resource request message;
Enquiry module, for when needs use second service, determines the second service information of described second service, and the location database of node device described in the second service information inquiry utilizing described second service;
Processing module, for when recording second service end position corresponding to described second service information in described location database, from described location database, then obtain second service end position corresponding to described second service information, and utilize described second service end position and corresponding service end to connect.
Described logging modle, also for receive other node device with broadcast mode send carry the position storage resource request message of the corresponding relation between second service information and second service end position time, then in the location database of described node device, record the corresponding relation between described second service information and described second service end position.
Described logging modle, also for when described node device is not when providing first service, deletes the corresponding relation between described first service information and described first service end position from location database;
Described sending module, also for sending position deletion request message with broadcast mode, carries the corresponding relation between described first service information and described first service end position in the deletion request message of described position; From the location database of other node device described, the corresponding relation between described first service information and described first service end position is deleted by other node device receiving described position deletion request message.
Described logging modle, also for when the first service provided is updated to the 3rd service by described node device, by the corresponding relation between the described first service information in the location database of described node device and described first service end position, the corresponding relation between the 3rd service end position that the 3rd information on services and the described 3rd being updated to described 3rd service is served;
Described sending module, also for sending location update request message with broadcast mode, carry the corresponding relation between the described first service information before renewal and described first service end position in described location update request message, and upgrade after described 3rd information on services and described 3rd service end position between corresponding relation; By receiving other node device of described location update request message by the corresponding relation between the described first service information in the location database of other node device described and described first service end position, be updated to the corresponding relation between described 3rd information on services and described 3rd service end position.
Described sending module, also for when there being new node equipment to join described distributed system, position informing request message is sent to described new node equipment with mode of unicast, carry the corresponding relation between the information on services of all services that described node device provides and the service end position of described all services in described position informing request message, in the location database of described new node equipment, record the corresponding relation between the information on services of all services and the service end position of described all services by described new node equipment.
Described sending module, also for when described node device leaves from described distributed system, send position with broadcast mode and leave request message, the information of carrying described node device and leaving is left in request message in described position, by the corresponding relation that other node device service end position traveled through in the location database of other node device described receiving described position and leave request message is described node device, and delete the corresponding relation that service end position is described node device from the location database of other node device described.
Described sending module, also for utilize described second service at described enquiry module second service information inquiry described in node device location database after, if do not record the second service end position that described second service information is corresponding in described location database, then send position enquiring request message with broadcast mode, described second service information is carried in described position enquiring request message, by receiving other node device of described position enquiring request message when determining the second service providing described second service information corresponding by this other node device, return the position enquiring response message of the second service end position carrying other node device,
Described processing module, also for obtaining described second service end position from described position enquiring response message, and utilizes described second service end position and corresponding service end to connect.
Based on technique scheme, in the embodiment of the present invention, by recording the corresponding relation between information on services and service end position in the location database of each node device, when node device needs to use service, directly can obtain service end position corresponding to service from the location database of this node device, avoid each node device to dns server obtains service end position, alleviate the work for the treatment of amount of dns server, improve domain name resolution efficiency and the domain name mapping speed of whole system, guarantee business rapid operation.
Accompanying drawing explanation
Fig. 1 is the acquisition methods schematic flow sheet of a kind of service end position that the embodiment of the present invention provides;
Fig. 2 is the structural representation of a kind of node device that the embodiment of the present invention provides.
Embodiment
For problems of the prior art, the embodiment of the present invention provides a kind of acquisition methods of service end position, and the method is applied in the distributed system comprising multiple node device, and each node device can be client or service end.Wherein, node device is when providing certain to serve, then this node device is the service end of this service.Node device is when needs use certain to serve, then this node device is the client of this service.Further, if when installing the service terminal software of certain service on node device, then this node device can as the service end of this service.If when installing the client software of certain service on node device, then this node device can as the client of this service.
In the embodiment of the present invention, all node devices of distributed system all safeguard there is location database, and this location database is for recording the corresponding relation between the information on services of this distributed system and service end position.Wherein, the corresponding relation between this information on services and service end position with of a database form recorded, can be stored in the location database of all node devices of distributed system.
As shown in Figure 1, the acquisition methods of this service end position specifically can comprise the following steps:
Step 101, node device, when providing first service, records the corresponding relation between the first service information of first service and the first service end position of first service in the location database of this node device.
Step 102, node device sends position storage resource request message with broadcast mode, carries the corresponding relation between first service information and first service end position in this position storage resource request message; In the location database of this other node device, the corresponding relation between first service information and first service end position is recorded by other node device receiving position storage resource request message.
In the embodiment of the present invention, node device receive other node device with broadcast mode send carry the position storage resource request message of the corresponding relation between second service information and second service end position time, then node device records the corresponding relation between second service information and second service end position in the location database of this node device.
Such as, distributed system comprises node device A, node device B and node device C.Node device A is providing HTTP (Hyper Text Transfer Protocol, HTML (Hypertext Markup Language)) when serving, in the location database of node device A, record the corresponding relation between service end position (the IP address as node device A) that the information on services (port information as HTTP service) of HTTP service and HTTP serve.Corresponding relation broadcast transmission between the port information that HTTP serves by node device A and the IP address of node device A is to node device B and node device C.Node device B (or node device C) records the corresponding relation between the port information of HTTP service and the IP address of node device A in the location database of node device B (or node device C).Again such as, node device A is receiving the FTP of node device B broadcast transmission (File Transfer Protocol, file transfer protocol (FTP)) corresponding relation between the port information of serving and the IP address of node device B time, then in the location database of this node device A, record the corresponding relation between the port information of FTP service and the IP address of node device B.
Step 103, node device, when needs use second service, utilizes the location database of this node device of second service information inquiry of this second service.Wherein, if record second service end position corresponding to this second service information in this location database, then perform step 104; If do not record the second service end position that this second service information is corresponding in this location database, then perform step 105.
Step 104, node device obtains second service end position corresponding to second service information from location database, and utilizes this second service end position and corresponding service end to connect.
Step 105, node device sends the position enquiring request message carrying second service information with broadcast mode.Other node device receiving this position enquiring request message when determining the second service providing second service information corresponding by this other node device, then returns the position enquiring response message of the second service end position carrying other node device to node device.Node device obtains second service end position from this position enquiring response message, and utilizes this second service end position and corresponding service end to connect.
Such as, node device A when needs use FTP service, the location database of the information on services that utilizes FTP serve (as the port information that FTP serves) query node device A.The corresponding relation between the port information of FTP service and the IP address of node device B is have recorded in location database due to node device A, therefore, node device A obtains the IP address of the node device B corresponding to port information of FTP service from location database, and utilizes the IP address of node device B and node device B to connect.
Again such as, node device A when needs use P2P (Peer-to-Peer, point-to-point) service, the location database of the information on services that utilizes P2P serve (as the port information that P2P serves) query node device A.Owing to not recording the corresponding relation between the port information of P2P service and service end position in the location database of node device A, therefore, node device A carries the position enquiring request message of the port information of P2P service to the node device B of distributed system and node device C broadcast transmission.Node device C is after receiving this position enquiring request message, if the P2P service that the port information determining to provide P2P to serve by this node device C is corresponding, then node device C returns the position enquiring response message of the IP address of carrying node device C to node device A.Node device A, after receiving this position enquiring response message, obtains the IP address of node device C from this position enquiring response message, and utilizes the IP address of node device C and node device C to connect.Further, node device B is after receiving this position enquiring request message, if determine the P2P service that port information that this node device B does not provide P2P to serve is corresponding, then: node device B can not return any position enquiring response message to node device A; Or node device B can return the position enquiring response message of P2P service corresponding to port information that this node device B do not provide P2P to serve to node device A.
In the embodiment of the present invention, when node device initially provides first service, but this node device is follow-up not when providing first service, then node device deletes the corresponding relation between first service information and first service end position from the location database of this node device, and send position deletion request message with broadcast mode, carry the corresponding relation between first service information and first service end position in this position deletion request message.Further, from the location database of this other node device, the corresponding relation between first service information and first service end position is deleted by other node device receiving position deletion request message.
In the embodiment of the present invention, when the first service that this node device provides by node device is updated to the 3rd service, then this node device can by the corresponding relation between the first service information in the location database of this node device and first service end position, corresponding relation between the 3rd service end position that the 3rd information on services and the 3rd being updated to the 3rd service is served, and send location update request message with broadcast mode, wherein, the corresponding relation between the first service information before renewal and first service end position is carried in this location update request message, and upgrade after the 3rd information on services and the 3rd service end position between corresponding relation.Further, by receiving other node device of this location update request message by the corresponding relation between the first service information in the location database of this other node device and first service end position, be updated to the corresponding relation between the 3rd information on services and the 3rd service end position.
In the embodiment of the present invention, when there being new node equipment to join distributed system, node device sends position informing request message with mode of unicast to this new node equipment, carries the corresponding relation between the information on services of all services that this node device provides and the service end position of all services in this position informing request message.Further, to make new node equipment record corresponding relation between the information on services of all services and the service end position of all services in the location database of this new node equipment.
Such as, when there being node device D to join distributed system, because node device A provides HTTP to serve, therefore, corresponding relation between the port information that HTTP serves by node device A and the IP address of node device A sends to node device D, and node device D records the corresponding relation between the port information of HTTP service and the IP address of node device A in location database.And, because node device B provides FTP to serve, therefore, corresponding relation between the port information that FTP serves by node device B and the IP address of node device B sends to node device D, and node device D records the corresponding relation between the port information of FTP service and the IP address of node device B in location database.
In the embodiment of the present invention, when node device leaves from distributed system, this node device sends position with broadcast mode and leaves request message, and the information of carrying this node device and leaving is left in request message in this position.Further, receiving the service end position left in the location database of this other node device of other node device traversal of request message this position is the corresponding relation of this node device, and deletes the corresponding relation that service end position is this node device from the location database of this other node device.
Such as, when node device A leaves from distributed system, request message is left in the position that node device A carries to the node device B of distributed system and node device C broadcast transmission the information that this node device A leaves.Node device B is after receiving this position and leaving request message, and the service end position traveled through in the location database of this node device B is the corresponding relation of node device A, and namely service end position is the corresponding relation of the IP address of node device A.Owing to have recorded the corresponding relation between the port information of HTTP service and the IP address of node device A in location database, therefore, node device B deletes the corresponding relation between the port information of HTTP service and the IP address of node device A from location database.In like manner, node device C, after receiving this position and leaving request message, deletes the corresponding relation between the port information of HTTP service and the IP address of node device A from location database.
After node device B deletes the corresponding relation between the port information of HTTP service and the IP address of node device A from location database, if node device B finds that this node device B also provides HTTP service, then node device B records the corresponding relation between the port information of HTTP service and the IP address of node device B in location database, and by the node device C of the corresponding relation broadcast transmission between the port information of HTTP service and the IP address of node device B to distributed system.After node device C receives the corresponding relation between the port information of HTTP service and the IP address of node device B, in location database, record the corresponding relation between the port information of HTTP service and the IP address of node device B.
Based on technique scheme, in the embodiment of the present invention, by recording the corresponding relation between information on services and service end position in the location database of each node device, when node device needs to use service, directly can obtain service end position corresponding to service from the location database of this node device, avoid each node device to dns server obtains service end position, alleviate the work for the treatment of amount of dns server, improve domain name resolution efficiency and the domain name mapping speed of whole system, guarantee business rapid operation.
Based on the inventive concept same with said method, a kind of node device is additionally provided in the embodiment of the present invention, be applied in the distributed system comprising multiple node device, the equal maintenance position database of each node device, described location database is for recording the corresponding relation between information on services and service end position, as shown in Figure 2, described node device specifically comprises:
Logging modle 11, for when providing first service, records the corresponding relation between the first service information of first service and the first service end position of first service in the location database of described node device; Sending module 12, for sending position storage resource request message with broadcast mode, carries the corresponding relation between described first service information and described first service end position in the storage resource request message of described position; In the location database of other node device described, the corresponding relation between described first service information and described first service end position is recorded by other node device receiving described position storage resource request message; Enquiry module 13, for when needs use second service, determines the second service information of described second service, and the location database of node device described in the second service information inquiry utilizing described second service; Processing module 14, for when recording second service end position corresponding to described second service information in described location database, from described location database, then obtain second service end position corresponding to described second service information, and utilize described second service end position and corresponding service end to connect.
Described logging modle 11, also for receive other node device with broadcast mode send carry the position storage resource request message of the corresponding relation between second service information and second service end position time, then in the location database of described node device, record the corresponding relation between described second service information and described second service end position.
Described logging modle 11, also for when described node device is not when providing first service, deletes the corresponding relation between described first service information and described first service end position from location database; Described sending module 12, also for sending position deletion request message with broadcast mode, carries the corresponding relation between described first service information and described first service end position in the deletion request message of described position; From the location database of other node device described, the corresponding relation between described first service information and described first service end position is deleted by other node device receiving described position deletion request message.
Described logging modle 11, also for when the first service provided is updated to the 3rd service by described node device, by the corresponding relation between the described first service information in the location database of described node device and described first service end position, the corresponding relation between the 3rd service end position that the 3rd information on services and the described 3rd being updated to described 3rd service is served;
Described sending module 12, also for sending location update request message with broadcast mode, carry the corresponding relation between the described first service information before renewal and described first service end position in described location update request message, and upgrade after described 3rd information on services and described 3rd service end position between corresponding relation; By receiving other node device of described location update request message by the corresponding relation between the described first service information in the location database of other node device described and described first service end position, be updated to the corresponding relation between described 3rd information on services and described 3rd service end position.
Described sending module 12, also for when there being new node equipment to join described distributed system, position informing request message is sent to described new node equipment with mode of unicast, carry the corresponding relation between the information on services of all services that described node device provides and the service end position of described all services in described position informing request message, in the location database of described new node equipment, record the corresponding relation between the information on services of all services and the service end position of described all services by described new node equipment.
Described sending module 12, also for when described node device leaves from described distributed system, send position with broadcast mode and leave request message, the information of carrying described node device and leaving is left in request message in described position, receive the corresponding relation that the service end position left in the location database of other node device traversal other node device described of request message, described position is described node device, and delete the corresponding relation that service end position is described node device from the location database of other node device described.
Described sending module 12, also for utilize described second service at described enquiry module second service information inquiry described in node device location database after, if do not record the second service end position that described second service information is corresponding in described location database, then send position enquiring request message with broadcast mode, described second service information is carried in described position enquiring request message, by receiving other node device of described position enquiring request message when determining the second service providing described second service information corresponding by this other node device, return the position enquiring response message of the second service end position carrying other node device, described processing module 14, also for obtaining described second service end position from described position enquiring response message, and utilizes described second service end position and corresponding service end to connect.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can be separated deployment.Above-mentioned module can merge into a module, also can split into multiple submodule further.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention.It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.It will be appreciated by those skilled in the art that the module in the device in embodiment can carry out being distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices being different from the present embodiment.The module of above-described embodiment can merge into a module, also can split into multiple submodule further.The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.Be only several specific embodiment of the present invention above, but the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (14)

1. the acquisition methods of a service end position, be applied in the distributed system comprising multiple node device, it is characterized in that, the equal maintenance position database of each node device, described location database is for recording the corresponding relation between information on services and service end position, and described method comprises:
Node device is when providing first service, the corresponding relation between the first service information of described first service and the first service end position of described first service is recorded in the location database of this node device, and send position storage resource request message with broadcast mode, carry the corresponding relation between described first service information and described first service end position in the storage resource request message of described position; In the location database of other node device described, the corresponding relation between described first service information and described first service end position is recorded by other node device receiving described position storage resource request message;
Described node device is when needs use second service, utilize the location database of this node device of second service information inquiry of described second service, if record the second service end position that described second service information is corresponding in described location database, then described node device obtains described second service end position from described location database, and utilizes described second service end position and corresponding service end to connect.
2. the method for claim 1, is characterized in that, described method comprises further:
Described node device receive other node device with broadcast mode send carry the position storage resource request message of the corresponding relation between second service information and second service end position time, then described node device records the corresponding relation between described second service information and described second service end position in the location database of this node device.
3. the method for claim 1, is characterized in that, described method comprises further:
When described node device is not when providing first service, described node device deletes the corresponding relation between described first service information and described first service end position from the location database of this node device, and send position deletion request message with broadcast mode, carry the corresponding relation between described first service information and described first service end position in the deletion request message of described position; From the location database of other node device described, the corresponding relation between described first service information and described first service end position is deleted by other node device receiving described position deletion request message.
4. the method for claim 1, is characterized in that, described method comprises further:
When the first service provided is updated to the 3rd service by described node device, described node device is by the corresponding relation between the described first service information in the location database of this node device and described first service end position, corresponding relation between the 3rd service end position that the 3rd information on services and the described 3rd being updated to described 3rd service is served, and send location update request message with broadcast mode, the corresponding relation between the described first service information before renewal and described first service end position is carried in described location update request message, and upgrade after described 3rd information on services and described 3rd service end position between corresponding relation, by receiving other node device of described location update request message by the corresponding relation between the described first service information in the location database of other node device described and described first service end position, be updated to the corresponding relation between described 3rd information on services and described 3rd service end position.
5. the method for claim 1, is characterized in that, described method comprises further:
When there being new node equipment to join described distributed system, described node device sends position informing request message with mode of unicast to described new node equipment, carry the corresponding relation between the information on services of all services that this node device provides and the service end position of described all services in described position informing request message, in the location database of described new node equipment, record the corresponding relation between the information on services of all services and the service end position of described all services by described new node equipment.
6. the method for claim 1, is characterized in that, described method comprises further:
When described node device leaves from described distributed system, described node device sends position with broadcast mode and leaves request message, the information of carrying described node device and leaving is left in request message in described position, by the corresponding relation that other node device service end position traveled through in the location database of other node device described receiving described position and leave request message is described node device, and delete the corresponding relation that service end position is described node device from the location database of other node device described.
7. the method for claim 1, is characterized in that, after described node device utilizes the location database of this node device of second service information inquiry of described second service, described method also comprises:
If do not record the second service end position that described second service information is corresponding in described location database, then described node device sends position enquiring request message with broadcast mode, described second service information is carried in described position enquiring request message, by receiving other node device of described position enquiring request message when determining the second service providing described second service information corresponding by this other node device, return the position enquiring response message of the second service end position carrying other node device described to described node device; Described node device obtains described second service end position from described position enquiring response message, and utilizes described second service end position and corresponding service end to connect.
8. a node device, be applied in the distributed system comprising multiple node device, it is characterized in that, the equal maintenance position database of each node device, described location database is for recording the corresponding relation between information on services and service end position, and described node device specifically comprises:
Logging modle, for when providing first service, records the corresponding relation between the first service information of first service and the first service end position of first service in the location database of described node device;
Sending module, for sending position storage resource request message with broadcast mode, carries the corresponding relation between described first service information and described first service end position in the storage resource request message of described position; In the location database of other node device described, the corresponding relation between described first service information and described first service end position is recorded by other node device receiving described position storage resource request message;
Enquiry module, for when needs use second service, determines the second service information of described second service, and the location database of node device described in the second service information inquiry utilizing described second service;
Processing module, for when recording second service end position corresponding to described second service information in described location database, from described location database, then obtain second service end position corresponding to described second service information, and utilize described second service end position and corresponding service end to connect.
9. equipment as claimed in claim 8, is characterized in that,
Described logging modle, also for receive other node device with broadcast mode send carry the position storage resource request message of the corresponding relation between second service information and second service end position time, then in the location database of described node device, record the corresponding relation between described second service information and described second service end position.
10. equipment as claimed in claim 8, is characterized in that,
Described logging modle, also for when described node device is not when providing first service, deletes the corresponding relation between described first service information and described first service end position from location database;
Described sending module, also for sending position deletion request message with broadcast mode, carries the corresponding relation between described first service information and described first service end position in the deletion request message of described position; From the location database of other node device described, the corresponding relation between described first service information and described first service end position is deleted by other node device receiving described position deletion request message.
11. equipment as claimed in claim 8, is characterized in that,
Described logging modle, also for when the first service provided is updated to the 3rd service by described node device, by the corresponding relation between the described first service information in the location database of described node device and described first service end position, the corresponding relation between the 3rd service end position that the 3rd information on services and the described 3rd being updated to described 3rd service is served;
Described sending module, also for sending location update request message with broadcast mode, carry the corresponding relation between the described first service information before renewal and described first service end position in described location update request message, and upgrade after described 3rd information on services and described 3rd service end position between corresponding relation; By receiving other node device of described location update request message by the corresponding relation between the described first service information in the location database of other node device described and described first service end position, be updated to the corresponding relation between described 3rd information on services and described 3rd service end position.
12. equipment as claimed in claim 8, is characterized in that,
Described sending module, also for when there being new node equipment to join described distributed system, position informing request message is sent to described new node equipment with mode of unicast, carry the corresponding relation between the information on services of all services that described node device provides and the service end position of described all services in described position informing request message, in the location database of described new node equipment, record the corresponding relation between the information on services of all services and the service end position of described all services by described new node equipment.
13. equipment as claimed in claim 8, is characterized in that,
Described sending module, also for when described node device leaves from described distributed system, send position with broadcast mode and leave request message, the information of carrying described node device and leaving is left in request message in described position, by the corresponding relation that other node device service end position traveled through in the location database of other node device described receiving described position and leave request message is described node device, and delete the corresponding relation that service end position is described node device from the location database of other node device described.
14. equipment as claimed in claim 8, is characterized in that,
Described sending module, also for utilize described second service at described enquiry module second service information inquiry described in node device location database after, if do not record the second service end position that described second service information is corresponding in described location database, then send position enquiring request message with broadcast mode, described second service information is carried in described position enquiring request message, by receiving other node device of described position enquiring request message when determining the second service providing described second service information corresponding by this other node device, return the position enquiring response message of the second service end position carrying other node device,
Described processing module, also for obtaining described second service end position from described position enquiring response message, and utilizes described second service end position and corresponding service end to connect.
CN201510185194.1A 2015-04-17 2015-04-17 A kind of acquisition methods and equipment servicing end position Active CN104883389B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510185194.1A CN104883389B (en) 2015-04-17 2015-04-17 A kind of acquisition methods and equipment servicing end position

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510185194.1A CN104883389B (en) 2015-04-17 2015-04-17 A kind of acquisition methods and equipment servicing end position

Publications (2)

Publication Number Publication Date
CN104883389A true CN104883389A (en) 2015-09-02
CN104883389B CN104883389B (en) 2018-12-25

Family

ID=53950722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510185194.1A Active CN104883389B (en) 2015-04-17 2015-04-17 A kind of acquisition methods and equipment servicing end position

Country Status (1)

Country Link
CN (1) CN104883389B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110944036A (en) * 2019-10-23 2020-03-31 成都交大光芒科技股份有限公司 Distributed real-time data interaction method irrelevant to position

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051930A (en) * 2006-04-06 2007-10-10 华为技术有限公司 Positioning method and system for service end
CN101345659B (en) * 2008-08-27 2011-01-19 杭州华三通信技术有限公司 Network terminal control method and network terminal control system
US9183267B2 (en) * 2010-05-24 2015-11-10 Microsoft Technology Licensing, Llc Linked databases
CN101917475B (en) * 2010-08-18 2013-01-02 天津理工大学 P2P (Peer-to-Peer) mode based PSRD (Program Support Requirements Document) universal service resource discovery method
CN102143199A (en) * 2010-10-19 2011-08-03 华为技术有限公司 Content acquisition method, node and content network
CN103888930B (en) * 2012-12-24 2018-02-16 华为技术有限公司 Information on services acquisition methods, provide method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110944036A (en) * 2019-10-23 2020-03-31 成都交大光芒科技股份有限公司 Distributed real-time data interaction method irrelevant to position
CN110944036B (en) * 2019-10-23 2022-08-05 中国国家铁路集团有限公司 Distributed real-time data interaction method irrelevant to position

Also Published As

Publication number Publication date
CN104883389B (en) 2018-12-25

Similar Documents

Publication Publication Date Title
EP3226477B1 (en) Content distribution network (cdn)-based website acceleration method and system
US10015243B2 (en) Optimized content distribution based on metrics derived from the end user
CN101873358B (en) Method and device for balancing link load on basis of domain name resolution
CN102047242B (en) Content management
US9998533B2 (en) P2P content caching system and method
US8639748B2 (en) Optimized content distribution based on metrics derived from the end user
CN103281409B (en) Based on mobile Internet domain name analytic method and the dns server of Transmission Control Protocol
CN111970315A (en) Method, device and system for pushing message
CN108494860B (en) WEB access system, WEB access method and device for client
CN104283723A (en) Network access log processing method and device
CN102611763A (en) DNS (Domain Name Server) inquiring method and equipment
CN102457588A (en) Method and device for implementing rDNS
US20090106260A1 (en) Method and System for Transferring Files
CN109474718B (en) Domain name resolution method and device
CN103997479B (en) A kind of asymmetric services IP Proxy Methods and equipment
WO2017161965A1 (en) Method, device, and system for dynamic domain name system (dns) redirection
CN105516171A (en) Authentication service cluster-based portal keep-alive system, method, authentication system and method
CN111585786A (en) Realization of secret-free building method of big data cluster
CN104301415A (en) Global load balancing method based on HTTP redirection
CN104601742A (en) Message transmission method and device
CN107070978B (en) Method and system for cross-network proxy Web map service and proxy server
CN111726400A (en) Reverse connection method, device and server-side system
EP3161589B1 (en) Dns rendezvous localization
CN104092751A (en) Service access method and device
CN111614792B (en) Transparent transmission method, system, server, electronic device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant