CN104883389B - A kind of acquisition methods and equipment servicing end position - Google Patents

A kind of acquisition methods and equipment servicing end position Download PDF

Info

Publication number
CN104883389B
CN104883389B CN201510185194.1A CN201510185194A CN104883389B CN 104883389 B CN104883389 B CN 104883389B CN 201510185194 A CN201510185194 A CN 201510185194A CN 104883389 B CN104883389 B CN 104883389B
Authority
CN
China
Prior art keywords
service
end position
node device
information
corresponding relationship
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
CN201510185194.1A
Other languages
Chinese (zh)
Other versions
CN104883389A (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.)
New H3C Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New 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)
  • Computer And Data Communications (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of acquisition methods and equipment for servicing end position, this method comprises: node device is when providing first service, the corresponding relationship between first service information and first service end position is being recorded in location database, and position is sent with broadcast mode and stores request message, the corresponding relationship between the first service information and the first service end position is carried in the position storage request message;The node device is when needing using second service, utilize second service information inquiring position database, if record has the corresponding second service end position of the second service information in the location database, then the node device obtains the second service end position from the location database, and establishes connection with corresponding server-side using the second service end position.In the embodiment of the present invention, the processing workload of dns server is alleviated, improves the domain name resolution efficiency and domain name mapping speed of whole system.

Description

A kind of acquisition methods and equipment servicing end position
Technical field
The present invention relates to field of communication technology more particularly to a kind of acquisition methods and equipment for servicing end position.
Background technique
In a distributed system, under the premise of servicing end position without offer on the client, client can be quasi- True acquisition services end position, and establishes connection based on service end position and server-side, thus the service provided using server-side. In order to accurately obtain service end position, client sends domain name to DNS (Domain Name System, domain name system) server Analysis request, the domain name mapping request in carry information on services.Information on services and server-side position based on this dns server record Corresponding relationship between setting, dns server is after receiving domain name mapping request, the corresponding server-side position of query service information It sets, and service end position is sent to by client by domain name mapping response, service end position is obtained by client.
Since all clients are required to obtain service end position on dns server, it is serviced when needing to obtain When the client terminal quantity of end position is more, dns server will receive a large amount of domain name mapping request, and returns to a large amount of carry and take The domain name mapping response of business end position, increases the processing workload of dns server, the domain name resolution efficiency of whole system is very Lowly.Moreover, client may take a long time obtain when obtaining service end position in client to dns server To service end position.
Summary of the invention
The embodiment of the present invention provides a kind of acquisition methods for servicing end position, applied to the distribution including multiple node devices In formula system, each equal maintenance position database of node device, the location database is for recording information on services and server-side position Corresponding relationship between setting, which comprises
Node device records the first service when providing first service in the location database of this node device Corresponding relationship between first service information and the first service end position of the first service, and position is sent with broadcast mode Request message is stored, carries the first service information and the first service end position in the position storage request message Between corresponding relationship;By receiving other node devices of the position storage request message in the position of other node devices Set the corresponding relationship recorded between the first service information and the first service end position in database;
The node device inquires this when needing using second service, using the second service information of the second service The location database of node device, if record has the corresponding second service of the second service information in the location database End position, then the node device obtains the second service end position from the location database, and utilizes described second It services end position and establishes connection with corresponding server-side.
The method further includes: the node devices to be taken with what broadcast mode was sent receiving other node devices When position with the corresponding relationship between second service information and second service end position stores request message, then the node is set It is standby that pair between the second service information and the second service end position is being recorded in the location database of this node device It should be related to.
The method further includes: when the node device is not when providing first service, the node device is from originally The corresponding relationship between the first service information and the first service end position is deleted in the location database of node device, And position deletion request message is sent with broadcast mode, the first service information is carried in the position deletion request message With the corresponding relationship between the first service end position;By receive other node devices of the position deletion request message from It is deleted in the location database of other node devices between the first service information and the first service end position Corresponding relationship.
The method further includes:
When the first service provided is updated to third service by the node device, the node device sets this node The corresponding relationship between the first service information and the first service end position in standby location database, is updated to institute The corresponding relationship between the third information on services of third service and the third service end position of the third service is stated, and with broadcast Mode sends location update request message, and the first service information before updating is carried in the location update request message Corresponding relationship and the updated third information on services and the third service between the first service end position Corresponding relationship between end position;Other node devices by receiving the location update request message set other nodes The corresponding relationship between the first service information and the first service end position in standby location database, is updated to institute State the corresponding relationship between third information on services and third service end position.
The method further includes:
When there is new node equipment to be added to the distributed system, the node device is with mode of unicast to the new section Point device sends position informing request message, and all clothes of this node device offer are carried in the position informing request message Corresponding relationship between the information on services of business and the service end position of all services, by the new node equipment described new It is recorded in the location database of node device between the information on services of all services and the service end position of all services Corresponding relationship.
The method further includes:
When the node device leaves from the distributed system, the node device with broadcast mode send position from Open request message, the position is left and carries the information that the node device leaves in request message, by receive the position from It is described for opening the service end position that other node devices of request message traverse in the location database of other node devices The corresponding relationship of node device, and deleting service end position from the location database of other node devices is the node The corresponding relationship of equipment.
The node device inquires the location database of this node device using the second service information of the second service Later, the method also includes:
If not recording the corresponding second service end position of the second service information, institute in the location database It states node device and position enquiring request message is sent with broadcast mode, second clothes are carried in the position enquiring request message Business information, other node devices as receiving the position enquiring request message are being determined as described in this other node devices offer When the corresponding second service of second service information, the second service for carrying other node devices is returned to the node device The position enquiring response message of end position;The node device obtains the second service from the position enquiring response message End position, and connection is established with corresponding server-side using the second service end position.
The embodiment of the present invention provides a kind of node device, applied to include multiple node devices distributed system in, respectively The equal maintenance position database of node device, the location database are used to record corresponding between information on services and service end position Relationship, the node device specifically include:
Logging modle, for recording the first clothes in the location database of the node device when providing first service Corresponding relationship between the first service information of business and the first service end position of first service;
Sending module stores request message for sending position with broadcast mode, takes in the position storage request message With the corresponding relationship between the first service information and the first service end position;By receiving the position storage request Other node devices of message recorded in the location database of other node devices the first service information with it is described Corresponding relationship between first service end position;
Enquiry module, for when needing using second service, determining the second service information of the second service, and benefit The location database of the node device is inquired with the second service information of the second service;
Processing module has the corresponding second service end of the second service information for working as record in the location database When position, then the corresponding second service end position of the second service information is obtained from the location database, and utilize institute It states second service end position and establishes connection with corresponding server-side.
The logging modle is also used in the carrying second service letter for receiving other node devices and being sent with broadcast mode When the position of corresponding relationship between breath and second service end position stores request message, then in the positional number of the node device According to the corresponding relationship recorded in library between the second service information and the second service end position.
The logging modle is also used to be deleted from location database when the node device is not when providing first service Except the corresponding relationship between the first service information and the first service end position;
The sending module is also used to send position deletion request message with broadcast mode, and the position removal request disappears The corresponding relationship between the first service information and the first service end position is carried in breath;It is deleted by receiving the position Except other node devices of request message delete the first service information from the location database of other node devices With the corresponding relationship between the first service end position.
The logging modle is also used to when the first service provided is updated to third service by the node device, will Corresponding pass between the first service information and the first service end position in the location database of the node device System is updated to the corresponding pass between the third information on services of the third service and the third of third service service end position System;
The sending module is also used to send location update request message with broadcast mode, and the position updating request disappears The first service information before updating and the corresponding relationship between the first service end position are carried in breath, and are updated The corresponding relationship between the third information on services and third service end position afterwards;By receiving the position updating request Other node devices of message are by the first service information and described the in the location database of other node devices Corresponding relationship between one service end position, pair being updated between the third information on services and third service end position It should be related to.
The sending module is also used to when there is new node equipment to be added to the distributed system, with mode of unicast to The new node equipment sends position informing request message, carries the node device in the position informing request message and mentions Corresponding relationship between the information on services of all services supplied and the service end position of all services, is set by the new node It is standby that the information on services of all services and the server-side of all services are recorded in the location database of the new node equipment Corresponding relationship between position.
The sending module is also used to send out when the node device leaves from the distributed system with broadcast mode Position is sent to leave request message, the position is left and carries the information that the node device leaves in request message, by receiving Rheme, which is set, to be left other node devices of request message and traverses server-side position in the location database of other node devices It is set to the corresponding relationship of the node device, and deletes service end position from the location database of other node devices and is The corresponding relationship of the node device.
The sending module is also used to inquire institute using the second service information of the second service in the enquiry module After the location database for stating node device, if not recording the second service information corresponding in the location database Two service end positions then send position enquiring request message with broadcast mode, in the position enquiring request message described in carrying Second service information, other node devices by receiving the position enquiring request message are mentioned determining by this other node device When second service corresponding for the second service information, the position for carrying the second service end position of other node devices is returned to Query response message;
The processing module is also used to obtain the second service end position from the position enquiring response message, and Connection is established with corresponding server-side using the second service end position.
Based on the above-mentioned technical proposal, it in the embodiment of the present invention, is taken by being recorded in the location database of each node device Corresponding relationship between information of being engaged in and service end position can directly be set from this node when node device is needed using service It is obtained in standby location database and services corresponding service end position, avoid obtaining service on each node device to dns server End position alleviates the processing workload of dns server, improves the domain name resolution efficiency and domain name mapping speed of whole system Degree, it is ensured that business rapid operation.
Detailed description of the invention
Fig. 1 is a kind of acquisition methods flow diagram for servicing end position provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of node device provided in an embodiment of the present invention.
Specific embodiment
Aiming at the problems existing in the prior art, the embodiment of the present invention provides a kind of acquisition methods for servicing end position, should Method is applied in the distributed system including multiple node devices, and each node device can be client or server-side.Its In, for node device when providing some service, then the node device is the server-side of the service.Node device is needing to use certain When a service, then the node device is the client of the service.Further, if installing some service on node device When service terminal software, then the node device can be used as the server-side of the service.If installing some service on node device Client software when, then the node device can be used as the client of the service.
In the embodiment of the present invention, maintenance has location database, and the position on all node devices of distributed system Database is set for recording the corresponding relationship between the information on services of the distributed system and service end position.Wherein, the service Corresponding relationship between information and service end position can be stored in distributed system in the form of a record of database In the location database of all node devices.
As shown in Figure 1, the acquisition methods of the service end position can specifically include following steps:
Step 101, node device records the first clothes when providing first service in the location database of this node device Corresponding relationship between the first service information of business and the first service end position of first service.
Step 102, node device sends position with broadcast mode and stores request message, takes in position storage request message With the corresponding relationship between first service information and first service end position;By the other sections for receiving position storage request message Point device is recording pair between first service information and first service end position in the location database of this other node device It should be related to.
In the embodiment of the present invention, node device takes in the carrying second for receiving other node devices and being sent with broadcast mode When the position of corresponding relationship between information of being engaged in and second service end position stores request message, then node device is set in this node The corresponding relationship between second service information and second service end position is recorded in standby location database.
For example, including node device A, node device B and node device C in distributed system.Node device A is being provided When HTTP (Hyper Text Transfer Protocol, hypertext transfer protocol) is serviced, in the position data of node device A The information on services (port information of such as HTTP service) of HTTP service and service end position (such as node of HTTP service are recorded in library The IP address of equipment A) between corresponding relationship.Node device A is by the IP address of the port information of HTTP service and node device A Between corresponding relationship broadcast transmission to node device B and node device C.Node device B (or node device C) is in node device Pair between the port information of HTTP service and the IP address of node device A is recorded in the location database of B (or node device C) It should be related to.In another example node device A receive node device B broadcast transmission FTP (File Transfer Protocol, File Transfer Protocol) service port information and node device B IP address between corresponding relationship when, then in this node device The corresponding relationship between the port information of FTP service and the IP address of node device B is recorded in the location database of A.
Step 103, node device is inquired when needing using second service using the second service information of the second service The location database of this node device.Wherein, if record has the second service information corresponding second in the location database End position is serviced, thens follow the steps 104;If not recording corresponding second clothes of the second service information in the location database Business end position, thens follow the steps 105.
Step 104, node device obtains the corresponding second service end position of second service information from location database, and Connection is established with corresponding server-side using the second service end position.
Step 105, node device sends the position enquiring request message for carrying second service information with broadcast mode.It receives Other node devices of the position enquiring request message are determining corresponding by this other node devices offer second service information When second service, then the position enquiring response that the second service end position of the other node devices of carrying is returned to node device disappears Breath.Node device obtains second service end position from the position enquiring response message, and using the second service end position with Corresponding server-side establishes connection.
For example, node device A when needing using FTP service, utilizes the information on services (end of such as FTP service of FTP service Message breath) query node equipment A location database.Due to having recorded the end of FTP service in the location database of node device A Corresponding relationship between message breath and the IP address of node device B, therefore, node device A obtain FTP clothes from location database The IP address of the corresponding node device B of the port information of business, and established and connected using the IP address of node device B and node device B It connects.
In another example node device A is serviced when needing to be serviced using P2P (Peer-to-Peer, point-to-point) using P2P Information on services the port information of service (such as P2P) query node equipment A location database.Due to the position of node device A Do not have in database record P2P service port information and service end position between corresponding relationship, therefore, node device A to The position enquiring request that the node device B and node device C broadcast transmission of distributed system carry the port information of P2P service disappears Breath.Node device C is after receiving the position enquiring request message, if it is determined that provides the end of service P2P by this node device C Message ceases corresponding P2P service, then node device C returns to the position enquiring for carrying the IP address of node device C to node device A Response message.Node device A obtains node from the position enquiring response message after receiving the position enquiring response message The IP address of equipment C, and connection is established using the IP address of node device C and node device C.Further, node device B exists After receiving the position enquiring request message, if it is determined that the port information that this node device B does not provide P2P service is corresponding P2P service, then: node device B can not return to any position enquiring response message to node device A;Alternatively, node device B The position enquiring that this node device B does not provide the corresponding P2P service of port information of P2P service can be returned to node device A Response message.
In the embodiment of the present invention, when node device initially provides first service, but the node device is subsequent is not providing the When one service, then node device deletes first service information and first service end position from the location database of this node device Between corresponding relationship, and position deletion request message is sent with broadcast mode, the is carried in the position deletion request message Corresponding relationship between one information on services and first service end position.Further, by receive position deletion request message its Its node device is deleted between first service information and first service end position from the location database of this other node device Corresponding relationship.
In the embodiment of the present invention, when the first service that node device provides this node device is updated to third service, Then the node device can will be between the first service information in the location database of this node device and first service end position Corresponding relationship is updated to the corresponding pass between the third information on services of third service and the third of third service service end position System, and location update request message is sent with broadcast mode, wherein the before updating is carried in the location update request message Corresponding relationship and updated third information on services and third server-side between one information on services and first service end position Corresponding relationship between position.Further, by receiving other node devices of the location update request message for this other section Corresponding relationship between first service information in the location database of point device and first service end position is updated to third clothes Corresponding relationship between information of being engaged in and third service end position.
In the embodiment of the present invention, when there is new node equipment to be added to distributed system, node device with mode of unicast to The new node equipment sends position informing request message, and the institute of this node device offer is carried in the position informing request message There is the corresponding relationship between the information on services of service and the service end position of all services.Further, so that new node equipment Between the service end position of information on services and all services for recording all services in the location database of the new node equipment Corresponding relationship.
For example, when there is node device D to be added to distributed system, since node device A provides HTTP service, Corresponding relationship between the port information of HTTP service and the IP address of node device A is sent to node device by node device A D, node device D are corresponding between the port information and the IP address of node device A for recording HTTP service in location database Relationship.Moreover, because node device B provides FTP service, therefore, node device B sets the port information of FTP service with node Corresponding relationship between the IP address of standby B is sent to node device D, and node device D records FTP service in location database Corresponding relationship between port information and the IP address of node device B.
In the embodiment of the present invention, when node device leaves from distributed system, which is sent with broadcast mode Request message is left in position, and the position is left and carries the information that this node device leaves in request message.Further, it receives Other node devices that request message is left in the position traverse the service end position in the location database of this other node device For the corresponding relationship of the node device, and deleting service end position from the location database of this other node device is the node The corresponding relationship of equipment.
For example, when node device A leaves from distributed system, node device B from node device A to distributed system and Leave request message in the position that node device C broadcast transmission carries the information that this node device A leaves.Node device B is being received After leaving request message to the position, traversing the service end position in the location database of this node device B is node device A Corresponding relationship, i.e., service end position be node device A IP address corresponding relationship.Due to being had recorded in location database Corresponding relationship between the port information of HTTP service and the IP address of node device A, therefore, node device B is from position data The corresponding relationship between the port information of HTTP service and the IP address of node device A is deleted in library.Similarly, node device C exists It receives after the position leaves request message, the port information and node device A of HTTP service is deleted from location database IP address between corresponding relationship.
Node device B is between the IP address of port information and node device A for deleting HTTP service in location database Corresponding relationship after, if node device B has found that this node device B also provides HTTP service, node device B is in positional number According to the corresponding relationship between the IP address of the port information and node device B that record HTTP service in library, and by HTTP service The node device C of corresponding relationship broadcast transmission between port information and the IP address of node device B to distributed system.Node After equipment C receives the corresponding relationship between the port information of HTTP service and the IP address of node device B, in location database Record the corresponding relationship between the port information of HTTP service and the IP address of node device B.
Based on the above-mentioned technical proposal, it in the embodiment of the present invention, is taken by being recorded in the location database of each node device Corresponding relationship between information of being engaged in and service end position can directly be set from this node when node device is needed using service It is obtained in standby location database and services corresponding service end position, avoid obtaining service on each node device to dns server End position alleviates the processing workload of dns server, improves the domain name resolution efficiency and domain name mapping speed of whole system Degree, it is ensured that business rapid operation.
Based on inventive concept same as the above method, a kind of node device is additionally provided in the embodiment of the present invention, is applied In the distributed system for including multiple node devices, each equal maintenance position database of node device, the location database is used In record information on services and the corresponding relationship between end position is serviced, as shown in Fig. 2, the node device specifically includes:
Logging modle 11, for recording first in the location database of the node device when providing first service Corresponding relationship between the first service information of service and the first service end position of first service;Sending module 12, for Broadcast mode sends position and stores request message, carries the first service information and institute in the position storage request message State the corresponding relationship between first service end position;By receiving other node devices of the position storage request message described It is recorded in the location database of other node devices corresponding between the first service information and the first service end position Relationship;Enquiry module 13, for when needing using second service, determining the second service information of the second service, and benefit The location database of the node device is inquired with the second service information of the second service;Processing module 14, for working as institute When stating in location database record has the second service information corresponding second service end position, then from the location database It is middle to obtain the corresponding second service end position of the second service information, and utilize the second service end position and corresponding clothes Connection is established at business end.
The logging modle 11 is also used in the carrying second service for receiving other node devices and being sent with broadcast mode When the position of corresponding relationship between information and second service end position stores request message, then in the position of the node device The corresponding relationship between the second service information and the second service end position is recorded in database.
The logging modle 11 is also used to when the node device is not when providing first service, from location database Delete the corresponding relationship between the first service information and the first service end position;The sending module 12, is also used to Send position deletion request message with broadcast mode, carry in the position deletion request message first service information with Corresponding relationship between the first service end position;By receiving other node devices of the position deletion request message from institute State pair deleted between the first service information and the first service end position in the location database of other node devices It should be related to.
The logging modle 11 is also used to when the first service provided is updated to third service by the node device, By the first service information in the location database of the node device and corresponding between the first service end position Relationship is updated to corresponding between the third information on services of the third service and the third of third service service end position Relationship;
The sending module 12 is also used to send location update request message, the position updating request with broadcast mode The first service information before updating and the corresponding relationship between the first service end position, Yi Jigeng are carried in message Corresponding relationship between the third information on services after new and third service end position;It is asked by receiving the location updating Ask other node devices of message by the location database of other node devices the first service information with it is described Corresponding relationship between first service end position is updated between the third information on services and third service end position Corresponding relationship.
The sending module 12, is also used to when there is new node equipment to be added to the distributed system, with mode of unicast Position informing request message is sent to the new node equipment, carries the node device in the position informing request message Corresponding relationship between the information on services of all services provided and the service end position of all services, by the new node Equipment records the information on services of all services and the service of all services in the location database of the new node equipment Corresponding relationship between end position.
The sending module 12 is also used to when the node device leaves from the distributed system, with broadcast mode It sends position and leaves request message, the position is left and carries the information that the node device leaves in request message, and institute is received Rheme, which is set, to be left other node devices of request message and traverses server-side position in the location database of other node devices It is set to the corresponding relationship of the node device, and deletes service end position from the location database of other node devices and is The corresponding relationship of the node device.
The sending module 12 is also used to inquire in the enquiry module using the second service information of the second service After the location database of the node device, if it is corresponding not record the second service information in the location database Second service end position then sends position enquiring request message with broadcast mode, carries institute in the position enquiring request message Second service information is stated, other node devices by receiving the position enquiring request message are being determined by this other node device When the corresponding second service of the second service information is provided, the position for carrying the second service end position of other node devices is returned to Set query response message;The processing module 14 is also used to obtain the second service from the position enquiring response message End position, and connection is established with corresponding server-side using the second service end position.
Wherein, the modules of apparatus of the present invention can integrate in one, can also be deployed separately.Above-mentioned module can close And be a module, multiple submodule can also be further split into.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which is stored in a storage medium, if including Dry instruction is used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes this hair Method described in bright each embodiment.It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment, Module or process in attached drawing are not necessarily implemented necessary to the present invention.It will be appreciated by those skilled in the art that in embodiment Device in module can according to embodiment describe be distributed in the device of embodiment, corresponding change position can also be carried out In the one or more devices for being different from the present embodiment.The module of above-described embodiment can be merged into a module, can also be with It is further split into multiple submodule.The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.With Upper disclosed several specific embodiments only of the invention, still, the present invention is not limited to this, any those skilled in the art Member can think of variation should all fall into protection scope of the present invention.

Claims (14)

1. a kind of acquisition methods for servicing end position, applied in the distributed system including multiple node devices, feature exists In each equal maintenance position database of node device, the location database is for recording between information on services and service end position Corresponding relationship, which comprises
Node device records the first of the first service when providing first service in the location database of this node device Corresponding relationship between information on services and the first service end position of the first service, and position storage is sent with broadcast mode Request message, the position stores to be carried between the first service information and the first service end position in request message Corresponding relationship;By positional number of other node devices in other node devices for receiving the position storage request message According to the corresponding relationship recorded in library between the first service information and the first service end position;
The node device inquires this node when needing using second service, using the second service information of the second service The location database of equipment, if record has the corresponding second service end position of the second service information in the location database It sets, then the node device obtains the second service end position from the location database, and utilizes the second service End position establishes connection with corresponding server-side.
2. the method as described in claim 1, which is characterized in that the method further includes:
The node device is in the carrying second service information and the second clothes for receiving other node devices and being sent with broadcast mode The position of the corresponding relationship between end position be engaged in when storing request message, then positional number of the node device in this node device According to the corresponding relationship recorded in library between the second service information and the second service end position.
3. the method as described in claim 1, which is characterized in that the method further includes:
When the node device no longer provides first service, the node device is from the location database of this node device The corresponding relationship between the first service information and the first service end position is deleted, and position is sent with broadcast mode and is deleted Except request message, carried in the position deletion request message first service information and the first service end position it Between corresponding relationship;By receiving other node devices of the position deletion request message from the position of other node devices The corresponding relationship between the first service information and the first service end position is deleted in database.
4. the method as described in claim 1, which is characterized in that the method further includes:
When the first service provided is updated to third service by the node device, the node device is by this node device The corresponding relationship between the first service information and the first service end position in location database is updated to described Corresponding relationship between the third information on services of three services and the third service end position of the third service, and with broadcast mode Location update request message is sent, the first service information before updating and institute are carried in the location update request message State corresponding relationship between first service end position and the updated third information on services and third server-side position Corresponding relationship between setting;By receiving other node devices of the location update request message for other node devices The corresponding relationship between the first service information and the first service end position in location database is updated to described Corresponding relationship between three information on services and third service end position.
5. the method as described in claim 1, which is characterized in that the method further includes:
When there is new node equipment to be added to the distributed system, the node device is set with mode of unicast to the new node Preparation send position informing request message, and all services of this node device offer are carried in the position informing request message Corresponding relationship between information on services and the service end position of all services, by the new node equipment in the new node It is recorded in the location database of equipment corresponding between the information on services of all services and the service end position of all services Relationship.
6. the method as described in claim 1, which is characterized in that the method further includes:
When the node device leaves from the distributed system, the node device is left with broadcast mode transmission position and is asked Message is sought, the position is left and carries the information that the node device leaves in request message, is left by receiving the position and is asked Asking other node devices of message to traverse the service end position in the location database of other node devices is the node The corresponding relationship of equipment, and deleting service end position from the location database of other node devices is the node device Corresponding relationship.
7. the method as described in claim 1, which is characterized in that the node device utilizes the second service of the second service Information is inquired after the location database of this node device, the method also includes:
If not recording the corresponding second service end position of the second service information, the section in the location database Point device sends position enquiring request message with broadcast mode, and the second service letter is carried in the position enquiring request message Breath, other node devices by receiving the position enquiring request message are being determined by this other node devices offer described second When the corresponding second service of information on services, the second service end position for carrying other node devices is returned to the node device The position enquiring response message set;The node device obtains the second service end position from the position enquiring response message It sets, and establishes connection with corresponding server-side using the second service end position.
8. a kind of node device, applied in the distributed system including multiple node devices, which is characterized in that each node device Equal maintenance position database, the location database are used to record information on services and service the corresponding relationship between end position, institute Node device is stated to specifically include:
Logging modle, for recording first service in the location database of the node device when providing first service Corresponding relationship between first service information and the first service end position of first service;
Sending module stores request message for sending position with broadcast mode, carries in the position storage request message Corresponding relationship between the first service information and the first service end position;By receiving the position storage request message Other node devices the first service information and described first is recorded in the location database of other node devices Service the corresponding relationship between end position;
Enquiry module for when needing using second service, determining the second service information of the second service, and utilizes institute The second service information for stating second service inquires the location database of the node device;
Processing module has the corresponding second service end position of the second service information for working as record in the location database When, then obtain the corresponding second service end position of the second service information from the location database, and utilize described the Two service end positions establish connection with corresponding server-side.
9. equipment as claimed in claim 8, which is characterized in that
The logging modle, be also used to the carrying second service information for receiving other node devices and being sent with broadcast mode with When the position of corresponding relationship between second service end position stores request message, then in the location database of the node device The middle corresponding relationship recorded between the second service information and the second service end position.
10. equipment as claimed in claim 8, which is characterized in that
The logging modle is also used to delete institute from location database when the node device no longer provides first service State the corresponding relationship between first service information and the first service end position;
The sending module is also used to send position deletion request message with broadcast mode, in the position deletion request message Carry the corresponding relationship between the first service information and the first service end position;It is asked by receiving the position deletion Other node devices of message are asked to delete the first service information and institute from the location database of other node devices State the corresponding relationship between first service end position.
11. equipment as claimed in claim 8, which is characterized in that
The logging modle is also used to when the first service provided is updated to third service by the node device, will be described The corresponding relationship between the first service information and the first service end position in the location database of node device, more The corresponding relationship between end position is newly serviced for the third information on services of the third service and the third of the third service;
The sending module is also used to send location update request message with broadcast mode, in the location update request message Carry the first service information before updating and the corresponding relationship and updated between the first service end position Corresponding relationship between the third information on services and third service end position;By receiving the location update request message Other node devices by the location database of other node devices the first service information and it is described first clothes Corresponding relationship between business end position is updated to the corresponding pass between the third information on services and third service end position System.
12. equipment as claimed in claim 8, which is characterized in that
The sending module is also used to when there is new node equipment to be added to the distributed system, with mode of unicast to described New node equipment sends position informing request message, carries what the node device provided in the position informing request message Corresponding relationship between the information on services of all services and the service end position of all services, is existed by the new node equipment The information on services of all services and the service end position of all services are recorded in the location database of the new node equipment Between corresponding relationship.
13. equipment as claimed in claim 8, which is characterized in that
The sending module is also used to when the node device leaves from the distributed system, sends position with broadcast mode It sets and leaves request message, the position is left and carries the information that the node device leaves in request message, the rheme by receiving It sets and leaves the service end position that other node devices of request message traverse in the location database of other node devices and be The corresponding relationship of the node device, and it is described for deleting service end position from the location database of other node devices The corresponding relationship of node device.
14. equipment as claimed in claim 8, which is characterized in that
The sending module is also used to inquire the section using the second service information of the second service in the enquiry module After the location database of point device, if not recording corresponding second clothes of the second service information in the location database Business end position then sends position enquiring request message with broadcast mode, carries described second in the position enquiring request message Information on services, other node devices by receiving the position enquiring request message are being determined by this other node devices offers institute When stating the corresponding second service of second service information, the position enquiring for carrying the second service end position of other node devices is returned Response message;
The processing module is also used to obtain the second service end position from the position enquiring response message, and utilizes The second service end position establishes connection with corresponding server-side.
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 CN104883389A (en) 2015-09-02
CN104883389B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110944036B (en) * 2019-10-23 2022-08-05 中国国家铁路集团有限公司 Distributed real-time data interaction method irrelevant to position

Citations (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
CN101345659A (en) * 2008-08-27 2009-01-14 杭州华三通信技术有限公司 Network terminal control method and network terminal control system
CN101917475A (en) * 2010-08-18 2010-12-15 天津理工大学 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
CN102262650A (en) * 2010-05-24 2011-11-30 微软公司 Linked databases
CN103888930A (en) * 2012-12-24 2014-06-25 华为技术有限公司 Service information acquisition method, providing method and equipment

Patent Citations (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
CN101345659A (en) * 2008-08-27 2009-01-14 杭州华三通信技术有限公司 Network terminal control method and network terminal control system
CN102262650A (en) * 2010-05-24 2011-11-30 微软公司 Linked databases
CN101917475A (en) * 2010-08-18 2010-12-15 天津理工大学 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
CN103888930A (en) * 2012-12-24 2014-06-25 华为技术有限公司 Service information acquisition method, providing method and equipment

Also Published As

Publication number Publication date
CN104883389A (en) 2015-09-02

Similar Documents

Publication Publication Date Title
US10621075B2 (en) Performance testing of a network segment between test appliances
CN110247784B (en) Method and device for determining network topology structure
US9998533B2 (en) P2P content caching system and method
CN105099761B (en) A kind of method and system of configuration information that managing client concentratedly
US20160087860A1 (en) Application topology based on network traffic
CN108055312A (en) Method for routing and its device and computer installation and its readable storage medium storing program for executing
CN101616029B (en) Method and system for realizing network topology discovery
CN102984223B (en) A kind of message method, the network equipment and system
EP3364627B1 (en) Adaptive session intelligence extender
CN107528751B (en) A kind of system and its management method of dynamic distribution Zabbix monitoring data
US20200068005A1 (en) Transferring files between computer nodes on different networks
CN108733821A (en) A kind of distribution of monitor video sectional drawing and methods of exhibiting and system
CN102158518B (en) Data transmission method in content distribution network (CDN), network node and system
CN104038917A (en) Method and device for terminal roaming authentication
CN103607476A (en) System and method for distributed multi-stage persistence of huge number of messages
CN105871591A (en) Method and device for distributing CDN (Content Delivery Network) addresses
CN111585786A (en) Realization of secret-free building method of big data cluster
CN104144223B (en) A kind of data capture method and device
CN113014681A (en) Network card binding method and device of multi-network card server, electronic equipment and storage medium
CN105592162A (en) Uploading method and system based on multi-type files
US11665078B1 (en) Discovery and tracing of external services
CN107959704B (en) Data processing method and home gateway
CN114666245A (en) IPv6 single stack support degree determining method of B/S system and related equipment
CN104883389B (en) A kind of acquisition methods and equipment servicing end position
EP3018883A1 (en) Login method and system for client unit

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
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.

GR01 Patent grant
GR01 Patent grant