CN103391328B - Data interaction method and device based on distributed system as well as distributed system - Google Patents

Data interaction method and device based on distributed system as well as distributed system Download PDF

Info

Publication number
CN103391328B
CN103391328B CN201310344174.5A CN201310344174A CN103391328B CN 103391328 B CN103391328 B CN 103391328B CN 201310344174 A CN201310344174 A CN 201310344174A CN 103391328 B CN103391328 B CN 103391328B
Authority
CN
China
Prior art keywords
mark
end module
module
distributed
distributed elements
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
CN201310344174.5A
Other languages
Chinese (zh)
Other versions
CN103391328A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201310344174.5A priority Critical patent/CN103391328B/en
Publication of CN103391328A publication Critical patent/CN103391328A/en
Application granted granted Critical
Publication of CN103391328B publication Critical patent/CN103391328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a data interaction method and device based on a distributed system as well as the distributed system, relates to the technical field of communication transmission, can solve the problem of mistakenly communication caused by the change of a corresponding relationship of an identification and a module in a communication process, and improves the communication efficiency among distributed parts. The technical scheme is as follows: announce information from any other distributed part is received, and a first identification and a second identification of an opposite terminal module of any other distributed part are acquired from the announce information; according to the first identification of the opposite terminal module, a second identification of a home terminal module corresponding to the opposite terminal module is determined, and an identification conversion table corresponding to the second identification of the opposite terminal module and the second identification of the home terminal module is established; and by means of the identification conversion table, after data message information sent by an opposite terminal module of any other distributed part is received, the information is delivered to a corresponding home terminal module for processing. The data interaction method and the device are applicable to data interaction of parts in the distributed system.

Description

A kind of data interactive method based on distributed system, device and distributed system
Technical field
The present invention relates to communication transmission technology field, more particularly, to a kind of data interactive method based on distributed system, Device and distributed system.
Background technology
Include multiple distributed elements in a distributed system, in each distributed elements, comprise multiple modules, and Each module has the mark of oneself.In prior art, typically to module adopt Digital ID method, but distributed During system upgrade, often increase new module or delete original unnecessary module, this may result in Digital ID and sends out Changing is so that Digital ID is changed with the corresponding relation of module, thus closing according to the communication of the intermodule of Digital ID System also can change therewith, but but can not make corresponding modification in practical communication, thus leading to the information of mistake to communicate.
At present, it is likely to result in error communications in order to solve the problems, such as Digital ID after distributed system upgrading, existing Technology adopts character string identification as module id.Character string identification has more preferable readability, due to character string identification itself The fixing characteristic with module corresponding relation, character string identification can occur with increasing of module, disappear with the deletion of module Lose.When distributed system is upgraded, the corresponding relation between character string identification and module will not change, it is to avoid communicated Because mark changes, with the corresponding relation of module, the error communications causing in journey.
But the length of character string identification is longer, the byte number of occupancy is far longer than the length of Digital ID.Pass in message Defeated and parsing during, character string identification can take a large amount of storage resources and computing resource as module id, reduces distribution Communication efficiency between formula part.
Content of the invention
Embodiments of the invention provide a kind of data interactive method based on distributed system, device and distributed system, It can be avoided that because mark changes, with the corresponding relation of module, the error communications problem causing in communication process, improving distributed portion Communication efficiency between part.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that:
A kind of data interactive method based on distributed system, including:
Receive from arbitrary other distributed elements advertised information, and obtain from described advertised information described arbitrary its The first mark and the second mark to end module in its distributed elements;
According to described the first mark to end module, determine the second mark with described this end module corresponding to end module Know, set up the described mark conversion table corresponding with the second mark of described end module to the second mark of end module;
Using described mark conversion table, end module is sent out from described arbitrary other the described of distributed elements receiving After the data message information sent, give described this corresponding end module and processed.
A kind of data interaction device based on distributed system, including:
Coffret unit, for receiving advertised information or data message information from arbitrary other distributed elements, when from After described arbitrary other distributed elements receive advertised information, give list item administrative unit and process, when from arbitrary other distributions After formula part receives data message information, give data receipt unit and process;
List item administrative unit, for receiving after the advertised information of arbitrary other distributed elements, from described notice The first mark and the second mark to end module in described arbitrary other distributed elements is obtained in information
Know, according to described to the first of end module the mark, determine the with described this end module corresponding to end module Two marks, set up the described mark conversion table corresponding with the second mark of described end module to the second mark of end module;
Data receipt unit, for using described mark conversion table, receiving from described arbitrary other distributed portions After the described data message information to end module transmission of part, give described this corresponding end module and processed.
A kind of distributed system, described system includes at least two distributed elements, and described distributed elements include owning The described data interaction device based on distributed system.
A kind of data interactive method based on distributed system provided in an embodiment of the present invention, device and distributed system, Character string identification and corresponding Digital ID can be applied on the module of distributed elements simultaneously, due to word shared by Digital ID Section digit is less, and in communication, the storage resources taking and computing resource are all less, so in communication by number relatively low for expense The mark that sign is known as data transfer uses;Again because the stability that has of character string identification itself so as to module it Between relation fix, so when distributed system carries out upgrading, the operation such as safeguards, manages, using character string identification as module Mark use.Compared with the prior art scheme using Digital ID or character string identification, the scheme that the present invention provides, Ensure that distributed elements module has stability, it is to avoid in communication process, the corresponding relation change because of mark and module causes Error communications problem.Simultaneously, it is to avoid using the problem that the expense caused by character string identification is larger during communication, also improve point Communication efficiency between cloth part.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below by use required in embodiment Accompanying drawing be briefly described it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, can also be obtained other attached according to these accompanying drawings Figure.
Fig. 1 is a kind of configuration diagram of distributed system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of data interactive method based on distributed system provided in an embodiment of the present invention;
Fig. 3 is the illustration figure of mark conversion table provided in an embodiment of the present invention;
Fig. 4 is the illustration figure of mark conversion table provided in an embodiment of the present invention;
Fig. 5 is the illustration figure of mark conversion table provided in an embodiment of the present invention;
Fig. 6 is the flow chart of another kind of data interactive method based on distributed system provided in an embodiment of the present invention;
Fig. 7 is the illustration figure of mark management table provided in an embodiment of the present invention;
Fig. 8 is the illustration figure of mark management table provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation of data interaction device based on distributed system provided in an embodiment of the present invention;
Figure 10 is a kind of structural representation of distributed system provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is all other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
Technical scheme provided in an embodiment of the present invention can apply to distributed system, as shown in figure 1, in distributed system In comprise several distributed elements, again comprise several modules in each distributed elements, each module has respective Mark.The upgrading of distributed system, maintenance, management and the communication wherein between distributed elements are all the marks by using module Know to carry out.In the present embodiment, can be using character string identification as the first mark, by the use of Digital ID as the second mark Know, the first mark and second mark all marks as module use, when being communicated between distributed elements, using second Mark is Digital ID;When distributed system executes the functions such as upgrading, maintenance, management, the use of the first mark is character string mark Know.First mark one module of unique mark in a distributed system(I.e. the first mark of the equal modules of different distributions formula part Sensible same), second mark one module of unique mark in distributed elements.For example:Distributed elements can be board, Such as board 1 comprises 3 modules, their character string identification be followed successively by communicating moduleA, Communicating moduleB, communicating moduleC, corresponding Digital ID is followed successively by 1,2,3;Board 2 wraps Containing 3 modules, their character string identification be followed successively by communicating moduleA, communicating moduleC, Communicating moduleD, corresponding Digital ID is followed successively by 1,2,3;Board 3 includes 4 modules, their character string Mark be followed successively by communicating moduleA, communicating moduleB, communicating moduleC, Communicating moduleD, corresponding Digital ID is followed successively by 1,2,3,4;When one of board and another board When being communicated, using the Digital ID of module, such as:In communicating moduleA in board 1 and board 2 Communicating moduleA is communicated, and sets communicating moduleA in board 1 as this end module, plate Communicating moduleA in card 2 is that because Digital ID accounts for, byte digit is few, and expense is low to end module, so This end module and to the Digital ID 1 during transmission data, using this end module between end module and the numeral to end module Mark 1;Due to the readable strong of character string identification and have stability, thus when larger switch or router upgrade, maintenance, During management, using the character string identification of module, such as:When larger switch or router upgrade, board 1 uses the word of module Symbol string mark communicating moduleA, communicating moduleB, communicating moduleC, plate Card 2 use the character string identification communicating moduleA of module, communicating moduleC, Communicating moduleD, board 3 use module character string identification communicating moduleA, communicating moduleB、communicating moduleC、communicating moduleD.
Embodiments provide a kind of data interactive method based on distributed system, as shown in Fig. 2 the method can To include:
101, receive the advertised information from arbitrary other distributed elements, and obtain described appointing from described advertised information The first mark and the second mark to end module in one other distributed elements.
Wherein, first it is designated character string identification, second is designated Digital ID.
Wherein, first mark one module of unique mark in affiliated distributed system, the second mark is in the distribution being located One module of unique mark in formula part.In whole distributed system, the second mark of the module in different parts can phase With, but in distributed elements, the second mark of each module is different.For example:Distributed system comprises distributed portion Part 1 and distributed elements 2, distributed elements 1 include 3 modules, and their the second mark is 1,2,3 successively;Distributed elements 2 Including 3 modules, their the second mark is 1,2,3 successively.In same distributed elements, the second mark of disparate modules Difference, but in a distributed system, the second mark of disparate modules can be identical.Specifically, in the present embodiment, permissible By the form of mark+the second mark of distributed elements, labelling modules in a distributed system.
102, according to described to the first of end module the mark, determine the with described this end module corresponding to end module Two marks, set up the described mark conversion table corresponding with the second mark of described end module to the second mark of end module.
Wherein, to end module and this end module being corresponding thereto can be the module that can be in communication with each other, or Congener module;Optionally, can also be same module, such as this reality to end module and this end module corresponding thereto Apply example and apply in the distributed system simulated in virtual machine, same hardware device can be by the mode mould such as time division multiplex Intend the module in different distributed elements.So it is identical with the first mark of corresponding end module to end module.
Wherein, mark conversion table includes the second mark to the second mark of end module and this end module corresponding thereto Between corresponding relation, for example:Distributed system comprises 3 distributed elements, respectively distributed elements 1, distributed elements 2 With distributed elements 3, distributed elements 1 include modules A, module B, module C and module D, corresponding second mark of these modules It is followed successively by 1,2,3,4;Distributed elements 2 include modules A, module B, module D and module E, corresponding second mark of these modules It is followed successively by 1,2,3,4;Wherein distributed elements 2 are connected with distributed elements 1, then the mark conversion table obtaining is as shown in Figure 3.
Wherein, the list item in mark conversion table dynamically can be set up when being attached with arbitrary other distributed elements. The mark conversion table set up between different distributions formula part can be different, for example:Distributed elements 1 include modules A, module B, mould Block C and module D, corresponding second mark of these modules is followed successively by 1,2,3,4;Distributed elements 2 include modules A, module B, mould Block D and module E, corresponding second mark of these modules is followed successively by 1,2,3,4, and distributed elements 3 include modules A, module C, mould Block D and module E, corresponding second mark of these modules is followed successively by 1,2,3,4, when distributed elements 1 are connected with distributed elements 2 When, set up and obtain identifying conversion table 1;When distributed elements 1 are connected with distributed elements 3, obtain identifying conversion table 2, mark Conversion table 1 and mark conversion table 2 can be as shown in Figure 4.Optionally, different distributions formula part is connected and sets up the mark that obtains and turn Changing table can be identical, for example:Distributed elements 1 include modules A, module B, module C and module D, these modules corresponding second Mark is followed successively by 1,2,3,4;Distributed elements 2 include modules A, module B, module C and module D, these modules corresponding second Mark is followed successively by 1,2,3,4, and distributed elements 3 include modules A, module B, module C and module D, these modules corresponding second Mark is followed successively by 1,2,3,4, when distributed elements 1 are connected with distributed elements 2, obtains identifying conversion table 1;When distributed portion When part 1 is connected with distributed elements 3, sets up and obtain identifying conversion table 2, mark conversion table 1 and mark conversion table 2 can be as Fig. 5 Shown.Different distributions formula part is connected and sets up the connection pass identifying between the corresponding different distributions formula part of conversion table obtaining System.
Wherein, if not including the second mark to end module and this end module corresponding thereto in mark conversion table Corresponding relation between second mark, can add in mark conversion table need to the second of end module the mark and with its phase The corresponding relation of the second mark of corresponding end module is so that flow process below can be normally carried out.For example:To end module it is Module D, it second is designated 4, and its corresponding end module is module D, and second is designated 4, and two modules are same kind of module, Due to not having the second mark 4 to end module in need in mark conversion table, so when setting up mark conversion table, to mark Add second mark 4 of this end module and the corresponding relation of the second mark 4 to end module in conversion table.
103, using described mark conversion table, receiving the described opposite end mould from described arbitrary other distributed elements After the data message information that block sends, give described this corresponding end module and processed.
Wherein, the distributed elements that this end module is located can be using second mark of this end module in mark conversion table The corresponding relation data message transmission information of the second mark to end module corresponding thereto.
Wherein, for arbitrary other distributed elements, this distributed elements can also utilize and arbitrary other distributed portions The mark conversion table set up between part, to the described opposite end module transfer data message information of arbitrary other distributed elements.
A kind of data interactive method based on distributed system provided in an embodiment of the present invention, device and distributed system, Character string identification and corresponding Digital ID can be applied on the module of distributed elements simultaneously, due to word shared by Digital ID Section digit is less, and in communication, the storage resources taking and computing resource are all less, so in communication by number relatively low for expense The mark that sign is known as data transfer uses;Again because the stability that has of character string identification itself so as to module it Between relation fix, so when distributed system carries out upgrading, the operation such as safeguards, manages, using character string identification as module Mark use.Compared with the prior art scheme using Digital ID or character string identification, the scheme that the present invention provides, Ensure that distributed elements module has stability, it is to avoid in communication process, the corresponding relation change because of mark and module causes Error communications problem.Simultaneously, it is to avoid using the problem that the expense caused by character string identification is larger during communication, also improve point Communication efficiency between cloth part.
On the basis of method as shown in Figure 2, the present embodiment provides a kind of data based on distributed system again and hands over Mutually method, as shown in fig. 6, include:
201, each of described distributed system distributed elements are managed in locally created mark in initialization respectively Reason table.
Wherein, mark management table includes the first mark of each module in this distributed elements and the corresponding pass of the second mark System, the first mark of known module or the second mark in distributed elements, can be in this distributed elements Find in mark management table.For example:Distributed elements comprise 4 modules, and its first mark is respectively modules A, module B, mould Block C, module D, its second mark is respectively 1,2,3,4, then its mark management table is as shown in Figure 7.In distributed system upgrading, dimension When shield and management, the module in distributed elements has and increases accordingly, is deleted or modified, now, note in mark management table The information of record also can accordingly update, for example:Add module E on the basis of Fig. 7, removing module B, module D is changed into module X The mark management table of distributed elements afterwards is as shown in Figure 8.And the mark management table after updating can also be in distributed system Other distributed elements are issued.
202, receive the advertised information from arbitrary other distributed elements, and obtain described appointing from described advertised information The first mark and the second mark to end module in one other distributed elements.
203, according to described to the first of end module the mark, search in local mark management table with described to end module The second corresponding mark of first mark, sets up the second mark phase of described the second mark to end module and described end module Corresponding mark conversion table.
Wherein, identical with first mark of this corresponding end module to the first mark of end module, that is, to end module First mark can be identical or part identical with first mark of this corresponding end module, also may be used To be corresponding.For example:In distributed elements 1, the first of this end module is designated modules A, opposite end mould in distributed elements 2 First mark of block is also modules A, and this two modules A are same kind of module.Again for example:This end module in distributed elements 1 First is designated a component models A, is designated two component models A in distributed elements 2 to the first of end module, and the of two modules One identification division is identical, and two modules are same kind of module.
Wherein, described mark conversion table is set up with described arbitrary other distributed elements for index.Distributed elements also have The mark of oneself, the mark of distributed elements, for distinguishing each distributed elements in distributed system, same When can also by distributed elements mark and module second mark reasonable combination distinguish in different distributions formula part not Same module, distributed elements mark can be the slot number of machine frame, IP address of this distributed elements etc..
Wherein, if according to the local mark management identifying to the first of end module in this end module place distributed elements Do not find in table this end module first mark then it represents that locally do not have can with to corresponding end module of end module.
204, receive the data message information that end module is sent in described arbitrary other distributed elements.
205, extract described the second mark to end module from the described data message information to end module transmission.
206, table search is managed by described mark conversion table and described mark according to described the second mark to end module Corresponding first mark.
Wherein, according to the second of end module the mark is searched in mark conversion table with the of this end module corresponding thereto Two marks, then first mark of this end module is searched in local mark management table by second mark of this end module.
207, the first mark according to finding determines this corresponding end module.
208, the described data message information to end module transmission is handed over to described corresponding local terminal resume module.
A kind of data interactive method based on distributed system provided in an embodiment of the present invention, can be in distributed elements Application character string identification and corresponding Digital ID in module, each distributed elements has mark management table, mark management In table, record is the character string identification of all modules and Digital ID in this distributed elements.One kind mark in known module When, at once can find another kind of mark of module, be easy to the real-time conversion that character string identification and Digital ID use.Due to Shared by Digital ID, byte digit is less, and in communication, the storage resources taking and computing resource are all less, so in communication, Digital ID relatively low for expense is used as the mark of data transfer;Again because of stablizing that character string identification itself has Property so as to the relation and module between is fixed, so when distributed system carries out upgrading, the operation such as safeguards, manages, by character String mark uses as the mark of module.Compared with the prior art scheme using Digital ID or character string identification, this The scheme that invention provides is it is ensured that distributed elements module has stability, it is to avoid right with module because of identifying in communication process The error communications problem that change causes should be related to.Simultaneously, it is to avoid larger using the expense caused by character string identification during communication Problem, also improve the communication efficiency between distributed elements.
Embodiments provide a kind of data interaction device 300 based on distributed system, as shown in figure 9, including:
Coffret unit 301, for receiving advertised information or data message information from arbitrary other distributed elements, when After described arbitrary other distributed elements receive advertised information, give list item administrative unit 302 and process, when from arbitrary other After distributed elements receive data message information, give data receipt unit 303 and process.
List item administrative unit 302, for receiving after the advertised information of arbitrary other distributed elements, from described logical The first mark and the second mark to end module in described arbitrary other distributed elements is obtained, according to described opposite end in announcement information First mark of module, determines and identifies with the second of described this end module corresponding to end module, set up described to end module The second mark identify corresponding mark conversion table with the second of described end module.
Optionally, list item administrative unit 302 is additionally operable in initialization in locally created mark management table.
Further, list item administrative unit 302 is additionally operable to according to the described arbitrary other obtaining from described advertised information Described in distributed elements to the first of end module the mark, search in local mark management table with described to end module the The second corresponding mark of one mark.
Wherein, first it is designated character string identification, second is designated Digital ID;First mark is in a distributed system only One one module of mark, the second mark one module of unique mark in the distributed elements being located;The first mark to end module Know identical with first mark of this corresponding end module.
Wherein, mark conversion table is set up with arbitrary other distributed elements for index.
Wherein, mark management table includes the first mark of locally each module and the corresponding relation of the second mark.
Data receipt unit 303, for using described mark conversion table, distributed from described arbitrary other receiving After the described data message information to end module transmission of part, give described this corresponding end module and processed.
Optionally, data receipt unit 303 is additionally operable to receive end module is sent out in described arbitrary other distributed elements The data message information sent, extracts described the second mark to end module from the described data message information to end module transmission Know, according to described, the second of end module mark is searched in described mark conversion table with corresponding first mark, according to finding The first mark determine corresponding this end module, the described data message information to end module transmission is handed over to described corresponding Local terminal resume module.
A kind of data interaction device based on distributed system provided in an embodiment of the present invention, can be in distributed elements Character string identification and corresponding Digital ID are applied on module simultaneously, because byte digit is less shared by Digital ID, in communication The storage resources of Shi Zhanyong and computing resource are all less, so in communication, Digital ID relatively low for expense is passed as data Defeated mark uses;And because the stability that character string identification itself has is so as to the relation and module between is fixed, When distributed system carries out upgrading, the operation such as safeguards, manages, character string identification is used as the mark of module.With existing Only compared using the scheme of Digital ID or character string identification in technology, the scheme that the present invention provides is it is ensured that distributed elements mould Block has stability, it is to avoid because mark changes, with the corresponding relation of module, the error communications problem causing in communication process.With When, it is to avoid using the problem that the expense caused by character string identification is larger during communication, also improve between distributed elements Communication efficiency.
The embodiment of the present invention additionally provides a kind of distributed system 400, including at least two distributed elements, as Figure 10 institute Show, each distributed elements includes:
Coffret unit 301, for receiving advertised information or data message information from arbitrary other distributed elements, when After described arbitrary other distributed elements receive advertised information, give list item administrative unit 302 and process, when from arbitrary other After distributed elements receive data message information, give data receipt unit 303 and process.
List item administrative unit 302, for receiving after the advertised information of arbitrary other distributed elements, from described logical The first mark and the second mark to end module in described arbitrary other distributed elements is obtained, according to described opposite end in announcement information First mark of module, determines and identifies with the second of described this end module corresponding to end module, set up described to end module The second mark identify corresponding mark conversion table with the second of described end module;It is additionally operable to locally building in initialization Day-mark knows management table;It is additionally operable to according to described right in the described arbitrary other distributed elements obtaining from described advertised information First mark of end module, searches second mark corresponding with described the first mark to end module in local mark management table Know.
Wherein, first it is designated character string identification, second is designated Digital ID;First mark is in a distributed system only One one module of mark, the second mark one module of unique mark in the distributed elements being located;The first mark to end module Know identical with first mark of this corresponding end module.
Wherein, mark conversion table is set up with arbitrary other distributed elements for index.
Wherein, mark management table includes the first mark of locally each module and the corresponding relation of the second mark.
Data receipt unit 303, for using described mark conversion table, distributed from described arbitrary other receiving After the described data message information to end module transmission of part, give described this corresponding end module and processed;Also use In receiving the data message information that end module is sent in described arbitrary other distributed elements, from described to end module transmission Data message information in extract described to the second of end module the mark, according to described the second mark to end module in described mark Know and in conversion table, search corresponding first mark, the first mark according to finding determines this corresponding end module, will be described The data message information that end module is sent is handed over to described corresponding local terminal resume module.
A kind of distributed system provided in an embodiment of the present invention, can apply character in the module of distributed elements simultaneously String mark and corresponding Digital ID, because shared by Digital ID, byte digit is less, in communication the storage resources that take and Computing resource is all less, so in communication, Digital ID relatively low for expense is used as the mark of data transfer;And because The stability that character string identification itself has so as to the relation and module between is fixed, so being risen in distributed system During the operations such as level, maintenance, management, character string identification is used as the mark of module.Only marked using numeral with prior art Know or the scheme of character string identification is compared, the scheme that the present invention provides is it is ensured that distributed elements module has stability, it is to avoid logical Because mark changes, with the corresponding relation of module, the error communications problem causing during letter.Simultaneously, it is to avoid adopt during communication The larger problem of expense caused by character string identification, also improves the communication efficiency between distributed elements.
Each embodiment in this specification is all described by the way of going forward one by one, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiments.Real especially for equipment For applying example, because it is substantially similar to embodiment of the method, so describing fairly simple, referring to embodiment of the method in place of correlation Part illustrate.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, it is permissible Instruct related hardware to complete by computer program, described program can be stored in a computer read/write memory medium In, this program is upon execution, it may include as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access Memory, RAM)Deng.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art the invention discloses technical scope in, the change or replacement that can readily occur in, all answer It is included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (7)

1. a kind of data interactive method based on distributed system is it is characterised in that include:
Receive the advertised information from arbitrary other distributed elements, and obtain described arbitrary other points from described advertised information The first mark and the second mark to end module in cloth part;
According to described the first mark to end module, determine the second mark with described this end module corresponding to end module, Set up the described mark conversion table corresponding with the second mark of described end module to the second mark of end module;
Using described mark conversion table, receive from described arbitrary other distributed elements described to end module transmission After data message information, give described this corresponding end module and processed;
Before the advertised information of arbitrary other distributed elements, methods described also includes for described reception:
Each of described distributed system distributed elements manage table in initialization in locally created mark respectively, described Mark management table includes the first mark of each module in this distributed elements and the corresponding relation of the second mark;
Described according to described to the first of end module the mark, determine and mark with the second of described this end module corresponding to end module Know, specifically include:
According to described the first mark to end module, search in local mark management table and described the first mark to end module The second corresponding mark, described the first mark to end module is identical with first mark of described this corresponding end module.
2. the data interactive method based on distributed system according to claim 1 is it is characterised in that described first identifies One module of unique mark in described distributed system, described second mark unique mark one in the distributed elements being located Individual module;And/or
Described first is designated character string identification, and described second is designated Digital ID;And/or
Described mark conversion table is set up with described arbitrary other distributed elements for index.
3. the data interactive method based on distributed system according to claim 2 it is characterised in that described using described Mark conversion table, is receiving the described data message information to end module transmission from described arbitrary other distributed elements Afterwards, give described this corresponding end module to be processed, specifically include:
Receive the data message information that end module is sent in described arbitrary other distributed elements;
Described the second mark to end module is extracted from the described data message information to end module transmission;
According to described to the second of end module the mark by described mark conversion table and described mark management table search corresponding the One mark;
The first mark according to finding determines this corresponding end module;
The described data message information to end module transmission is handed over to described corresponding local terminal resume module.
4. a kind of data interaction device based on distributed system is it is characterised in that include:
Coffret unit, for receiving advertised information or data message information from arbitrary other distributed elements, when from described After arbitrary other distributed elements receive advertised information, give list item administrative unit and process, when from arbitrary other distributed portions After part receives data message information, give data receipt unit and process;
List item administrative unit, for receiving after the advertised information of arbitrary other distributed elements, from described advertised information Middle obtain in described arbitrary other distributed elements to the first of end module the mark and the second mark, according to described to end module First mark, determines and identifies with the second of described this end module corresponding to end module, set up described to end module second The mark mark conversion table corresponding with the second mark of described end module;
Data receipt unit, for using described mark conversion table, receiving from described arbitrary other distributed elements After the described data message information to end module transmission, give described this corresponding end module and processed;
Described list item administrative unit, is additionally operable in initialization in locally created mark management table, described mark management table includes The locally corresponding relation of the first mark of each module and the second mark;
Described list item administrative unit, is additionally operable to according in the described arbitrary other distributed elements obtaining from described advertised information Described to the first of end module the mark, search in local mark management table with described identify to the first of end module corresponding Second mark;Described the first mark to end module is identical with first mark of described this corresponding end module.
5. the data interaction device based on distributed system according to claim 4 is it is characterised in that also include:
Described first mark one module of unique mark in described distributed system, described second mark is distributed be located One module of unique mark in part;And/or
Described first is designated character string identification, and described second is designated Digital ID;And/or
Described mark conversion table is set up with described arbitrary other distributed elements for index.
6. the data interaction device based on distributed system according to claim 5 is it is characterised in that also include:
Described data receipt unit, is additionally operable to receive the datagram that end module is sent in described arbitrary other distributed elements Civilian information, extracts described the second mark to end module, according to described from the described data message information to end module transmission Corresponding first mark is searched in described mark conversion table to the second mark of end module, according to the first mark finding really Fixed this corresponding end module, the described data message information to end module transmission is handed over to described corresponding this end module place Reason.
7. a kind of distributed system is it is characterised in that described system includes at least two distributed elements, described distributed elements Including the device as described in claim 4-6 any one.
CN201310344174.5A 2013-08-08 2013-08-08 Data interaction method and device based on distributed system as well as distributed system Active CN103391328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310344174.5A CN103391328B (en) 2013-08-08 2013-08-08 Data interaction method and device based on distributed system as well as distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310344174.5A CN103391328B (en) 2013-08-08 2013-08-08 Data interaction method and device based on distributed system as well as distributed system

Publications (2)

Publication Number Publication Date
CN103391328A CN103391328A (en) 2013-11-13
CN103391328B true CN103391328B (en) 2017-02-08

Family

ID=49535483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310344174.5A Active CN103391328B (en) 2013-08-08 2013-08-08 Data interaction method and device based on distributed system as well as distributed system

Country Status (1)

Country Link
CN (1) CN103391328B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111597777B (en) * 2020-05-15 2023-06-02 上海电机系统节能工程技术研究中心有限公司 Material data processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656650A (en) * 2009-09-17 2010-02-24 杭州华三通信技术有限公司 Method and main link device for realizing automatic configuration of Ethernet ring
CN102801820A (en) * 2012-08-10 2012-11-28 杭州华三通信技术有限公司 MAC address publishing method and device in EVI network
CN102970239A (en) * 2012-11-28 2013-03-13 福建星网锐捷网络有限公司 Flow processing method, flow processing device, router and flow processing system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025608B (en) * 2009-09-17 2013-03-20 中兴通讯股份有限公司 Communication method, data message forwarding method in communication process as well as communication nodes

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656650A (en) * 2009-09-17 2010-02-24 杭州华三通信技术有限公司 Method and main link device for realizing automatic configuration of Ethernet ring
CN102801820A (en) * 2012-08-10 2012-11-28 杭州华三通信技术有限公司 MAC address publishing method and device in EVI network
CN102970239A (en) * 2012-11-28 2013-03-13 福建星网锐捷网络有限公司 Flow processing method, flow processing device, router and flow processing system

Also Published As

Publication number Publication date
CN103391328A (en) 2013-11-13

Similar Documents

Publication Publication Date Title
CN102710814B (en) The control method of virtual machine IP address and device
CN106202028B (en) A kind of address information recognition methods and device
CN105391811A (en) DNS (domain name resolution) method, access method for application server, and terminal
CN105391568A (en) SDN (Software Defined Network) implementation method, device and system
CN102904977B (en) Network address allocation method, server and node
JP2008294717A (en) Virtual network structure method and network system
CN105430110A (en) Container configuration method and network transmission device of virtual network system
CN105574170A (en) Web page link opening method and terminal
CN110572365A (en) multi-protocol server management method, system, terminal device and storage medium
CN106464745A (en) Dns server, client and data synchronization method
CN103455363B (en) Command processing method, device and physical host of virtual machine
CN103024028A (en) Virtual machine IP (Internet Protocol) address detection system and method in cloud computing
CN102023843A (en) Function calling method and device as well as smart card
CN108270626A (en) A kind of method, apparatus, equipment and the readable storage medium storing program for executing of upgrade server firmware
CN103503413B (en) Method and device for transmitting network information
CN104915302B (en) Data transmission processing method and data link
CN103391328B (en) Data interaction method and device based on distributed system as well as distributed system
CN114650223A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN110502299A (en) It is a kind of for providing the method and apparatus of novel information
CN106411977A (en) Tab synchronization method, terminal, server and system
CN107547112A (en) Method, equipment and the system recovered to the channel between master-slave equipment
CN108255434A (en) Label management method, managing device and computer readable storage medium
CN106413001A (en) Flow control method and device of wireless network connection
CN103929378B (en) The communication link distribution of cross-domain data transmission and cross-domain data transmission method and system
CN113660123B (en) Virtual switch upgrading method, device, electronic equipment 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
C14 Grant of patent or utility model
GR01 Patent grant