CN103095656A - Equal communication method, communication nodes and equal communication system - Google Patents

Equal communication method, communication nodes and equal communication system Download PDF

Info

Publication number
CN103095656A
CN103095656A CN2011103429091A CN201110342909A CN103095656A CN 103095656 A CN103095656 A CN 103095656A CN 2011103429091 A CN2011103429091 A CN 2011103429091A CN 201110342909 A CN201110342909 A CN 201110342909A CN 103095656 A CN103095656 A CN 103095656A
Authority
CN
China
Prior art keywords
communication
node
communication node
same name
encapsulated
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.)
Pending
Application number
CN2011103429091A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN2011103429091A priority Critical patent/CN103095656A/en
Publication of CN103095656A publication Critical patent/CN103095656A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides an equal communication method, communication nodes and an equal communication system. The equal communication method includes the following steps. A communication target is arranged on at least one communication node in a sealed mode. Conversation connection is automatically set up among communication targets which share the same name and arranged on different communication nodes in a sealed mode. With the equal communication method, the communication nodes and the equal communication system, a complicated equal communication interaction process can be done inside the communication targets and a programmatic interface which is simple, easy to use and isolated from service can be supplied to an application program.

Description

A kind of peer-to-peer communications method, communication node and peer communication system
Technical field
The present invention relates to a kind of communication technical field, relate in particular to a kind of peer-to-peer communications method, communication node and peer communication system.
Background technology
At present the communication software platform can only provide the communication function between basic two communication nodes, for example: the Socket(socket) DLL (dynamic link library).Peer-to-peer communications based on so a plurality of communication node interactive communications of communication software platform construction also needs highly difficult exploitation.
In addition, the peer-to-peer communications that prior art provides is all to be held together with concrete business, such as, reciprocity file distributing, reciprocity Media Stream is used.
Conversation-based communication middleware DCOM(Microsoft Distributed Component Object Model, DCOM) and CORBA(Common Object Request Broker Architecture, CORBA), both when the visitor of the implementor of business or business is positioned on different communication nodes, the access mechanism of abstract general service out.Although OO method has been used in reciprocity distributed service access, the entity of session encapsulation is generally supplemental characteristic and the control operation of business, and the communication interaction between node still uses traditional method.
In the peer communication system of prior art, communication between communication node only only limits to two service interactions between communication node, if application program need to realize the service interaction between a plurality of communication nodes, need to use two service interaction mechanism between communication node to go combination to build, the development amount is huge, and difficulty is higher.
In addition, it is effectively fixing that the prerequisite that communicates between existing communication node is based on communication node, but in peer-to-peer communications is used, the communication node that participates in same business operation is often to change, therefore how to communicate between the communication node of dynamic change, existing communication mechanism also can't solve.
Summary of the invention
The present invention is directed to the deficiencies in the prior art, a kind of peer-to-peer communications method, communication node and peer communication system are provided, can complete the peer-to-peer communications reciprocal process of complexity in the inside of communication object, can provide to application program and be simple and easy to use, be independent of the DLL (dynamic link library) of business.
A kind of peer-to-peer communications method provided by the invention comprises:
Encapsulate communication object at least one communication node;
Automatically set up session connection between the communication object of the same name that encapsulates on the different communication node.
Wherein, describedly encapsulate communication object at least one communication node, comprise at least with lower a kind of:
On at least one communication node, communication node is encapsulated as node object;
On at least one communication node, two or more communication node members is encapsulated as the communication set object;
On at least one communication node, the service interaction that carries out between communication node is encapsulated as the service communication object.
Wherein, be encapsulated as on described different communication node and automatically set up session connection between communication object of the same name, comprising:
Be encapsulated as on the different communication node and automatically set up session connection between node object of the same name; Or
Be encapsulated as on the different communication node between communication set object of the same name and automatically set up session connection; Or
Be encapsulated as on the different communication node between service communication object of the same name and automatically set up session connection.
Wherein, be encapsulated as on described different communication node and automatically set up session connection between node object of the same name, comprising:
When on a communication node, another communication node being encapsulated as the object session, automatically set up session connection between the node object of the same name that encapsulates on the node object of this encapsulation and another communication node.
Wherein, be encapsulated as on the different communication node between communication set object of the same name and automatically set up session connection, comprising:
When the communication node member in member's list of the communication set object that encapsulates on to a communication node modifies, in the communication set object of the same name that the member's list automatic synchronization after this communication set object is modified encapsulates to communication node corresponding to its communication node member; Or
When node object of the communication set object association that encapsulates on a communication node during as member's references object, this communication node adds in member's list of the communication set object of the same name that encapsulates on another communication node corresponding to the node object of its communication set object association automatically, and member's list of the communication set object of the same name that encapsulates on another communication node corresponding to the described node object of this its association of communication set object automatic synchronization.
Wherein, be encapsulated as on the different communication node between service communication object of the same name and automatically set up session connection, comprising:
When the service communication object association node object that encapsulates on a communication node, automatically set up session connection between the service communication object of the same name on this service communication object another communication node corresponding with associated node object;
When the service communication object association communication set object that encapsulates on a communication node, be encapsulated as between service communication object of the same name on the corresponding communication node of communication node member in member's list of this service communication object and this communication set object and automatically set up session connection.
Wherein, the service communication object that encapsulates on a communication node is carried out distributed operation, the service communication object of the same name that encapsulates on other communication nodes receives corresponding distributed operation.
The present invention also provides a kind of communication node, comprising:
The communication object package module is used for encapsulating communication object on communication node; Concrete being used for is encapsulated as node object with communication node; And/or two or more communication node members is encapsulated as the communication set object; And/or the service interaction that carries out between communication node is encapsulated as the service communication object;
Module is set up in session connection, be used for and the communication object of the same name of other communication nodes encapsulation between automatically set up session connection.
Wherein, module is set up in described session connection, comprising:
The node object linkage unit, be used for and other communication nodes on be encapsulated as and automatically set up session connection between node object of the same name;
Communication set object linkage unit, be used for and other communication nodes on be encapsulated as between communication set object of the same name and automatically set up session connection;
Service communication object linkage unit, be used for and other communication nodes on be encapsulated as between service communication object of the same name and automatically set up session connection.
The present invention also provides a kind of peer communication system, comprising:
A plurality of communication nodes are packaged with communication object at least one communication node in described a plurality of communication nodes, automatically set up session connection between the communication object of the same name that encapsulates on the different communication node.
Implement peer-to-peer communications method provided by the invention and communication node and peer communication system, can complete the peer-to-peer communications reciprocal process of complexity in the inside of communication object, can provide to application program and be simple and easy to use, be independent of the DLL (dynamic link library) of business.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or description of the Prior Art, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of peer-to-peer communications embodiment of the method one provided by the invention;
Fig. 2 is the schematic flow sheet of peer-to-peer communications embodiment of the method two provided by the invention;
Fig. 3 encapsulates the schematic diagram of node object on communication node in the present invention;
Fig. 4 is encapsulated as the schematic diagram of automatically setting up session connection between node object of the same name in the present invention;
Fig. 5 encapsulates the schematic diagram of communication set object on communication node in the present invention;
Fig. 6 is encapsulated as the schematic diagram of automatically setting up session connection between communication set object of the same name in the present invention;
Fig. 7 encapsulates the schematic diagram of business communication object on communication node in the present invention;
Fig. 8 sets up the schematic diagram of session connection automatically between the service communication object of the same name that encapsulates in the present invention;
Fig. 9 is the structural representation of communication node embodiment one provided by the invention;
Figure 10 is the structural representation of communication node embodiment two provided by the invention;
Figure 11 is the structural representation of peer communication system provided by the invention.
Embodiment
The invention provides a kind of peer-to-peer communications method and communication mechanism corresponding to peer communication system, it has encapsulated the reciprocity service interaction between a plurality of communication nodes, automatically complete complicated reciprocity service interaction, DLL (dynamic link library) is simple, can all adapt to automatically the variation of peer-to-peer communications node, can help application program to complete more easily peer-to-peer communications between a plurality of communication nodes.
Referring to Fig. 1, be the schematic flow sheet of peer-to-peer communications embodiment of the method one provided by the invention.
The peer-to-peer communications method that the embodiment of the present invention one provides comprises:
Step 100 encapsulates communication object at least one communication node.
Wherein, describedly encapsulate communication object at least one communication node, comprise at least with lower a kind of:
On at least one communication node, communication node is encapsulated as node object;
On at least one communication node, two or more communication node members is encapsulated as the communication set object; This communication set object comprises member's list, and that record in this member's list is the communication node member of its encapsulation.
On at least one communication node, the service interaction that carries out between communication node is encapsulated as the service communication object.
The modes of above-mentioned three kinds of encapsulation communication objects are not distinguished sequencing, and a kind of encapsulation in only need to doing above-mentioned encapsulation on a certain communication node or a plurality of communication node gets final product; Each communication node has the overall situation unique title or sign, and has respectively a mailing address that is made of IP address and port numbers.
The node object of above-mentioned encapsulation, communication set object, service communication object are referred to as communication object, and this node object, communication set object, service communication object all have title; The node object that encapsulates on the different communication node, the communication set object, the service communication object can have identical title; The set that is positioned at the communication object of the same name that encapsulates on the different communication node is called one " multicast session ".
Step 101 is encapsulated as on the different communication node and automatically carries out peer-to-peer communications between communication object of the same name.
Concrete, be packaged with above-mentioned node object on the different communication node, perhaps communication set object, perhaps the service communication object, if be packaged with node object of the same name on different communication nodes, can set up session connection between this node object automatically; If perhaps be packaged with communication set object of the same name on different communication nodes, can set up automatically session connection between this communication set object; Perhaps be packaged with service communication object of the same name on different communication nodes, can set up automatically session connection between this service communication object.
Implement the embodiment of the present invention one, because having encapsulated, it comprises node object, the communication set object, the service communication object is at interior communication object, complete the inside of the communication object that the peer-to-peer communications between communication node can encapsulate on communication node alternately automatically, therefore can provide the DLL (dynamic link library) of the business of being independent of to application program.Simultaneously, the dynamic change of communication node can synchronization association to other communication nodes that encapsulated communication object of the same name with it, therefore, can realize the peer-to-peer communications between a plurality of communication nodes of dynamic change.
Referring to Fig. 2, be the schematic flow sheet of peer-to-peer communications embodiment of the method two provided by the invention.
In the present embodiment, automatically carry out peer-to-peer communications between the communication object of the same name that encapsulates on the different communication node, comprising:
Be encapsulated as on the different communication node and automatically set up session connection between node object of the same name; Or
Be encapsulated as on the different communication node between communication set object of the same name and automatically set up session connection; Or
Be encapsulated as on the different communication node between service communication object of the same name and automatically set up session connection.
Need to prove, because encapsulation node object, communication set object, service communication object do not have sequencing, therefore follow-uply set up session connection between node object of the same name or communication set object or service communication object and also there is no sequencing being packaged with.
Below will illustrate and encapsulate node object on communication node, the communication set object after the service communication object, is set up the process of session connection between communication node.Below describing is a kind of execution mode, does not limit the sequencing of its step with this.
If in embodiments of the present invention, communication node A and communication node B and communication node C have the overall situation unique title or sign, and communication node A has a mailing address that is made of IP address and port; Communication node B has a mailing address that is made of IP address and port; Communication node C has a mailing address that is made of IP address and port.
The peer-to-peer communications method that the embodiment of the present invention two provides comprises:
Step 200 encapsulates node object at least one communication node.
Concrete, as shown in Figure 3, encapsulate node object on communication node A and B and C; At first need to prove, will itself be encapsulated as a node object to I haven't seen you for ages on each communication node.
Particularly, the node object that encapsulates on communication node A comprises: node object NodeA(is also self object NodeA); The node object that encapsulates on communication node B comprises: node object NodeB(is also self object NodeB); Being packaged with node object NodeC(on communication node C is also self object NodeC);
Step 201 is encapsulated as and automatically sets up session connection between node object of the same name.
Particularly, as shown in Figure 4: encapsulation node object NodeB on communication node A, and also encapsulated node object NodeB on communication node B, communication node A and communication node B are and are packaged with node object NodeB of the same name, so the node object NodeB on communication node A is automatic and communication node B self object NodeB sets up session connection.In like manner, encapsulation node object NodeC on communication node A, this node object NodeC automatically and communication node C self object NodeC set up session connection; Also same process for communication node B and communication node C.
Step 202, encapsulation communication set object at least one communication node;
Concrete, as shown in Figure 5: be packaged with respectively communication set object Group0 on communication node A and communication node B and communication node C.
Step 203 is set up session connection between the communication set object of the same name that encapsulates on the different communication node automatically.
Concrete, as shown in Figure 6: add NodeB and two communication node members of NodeC in the member's list to the Group0 of communication node A encapsulation, the Group0 on communication node A sets up session connection with communication node B and the upper Group0 that encapsulates of communication node C automatically.
Step 204, encapsulation business communication object at least one communication node;
What need at first explanation is that this service communication object comprises the transmission of messages object, file transfer session, audio transmission session, video transport session, the service communication objects such as the shared session of blank.
And this service communication object can related above-mentioned node object or communication set object.
By way of example, as shown in Figure 7: be packaged with respectively service communication object Data0 on communication node A and communication node B and communication node C; On communication node A, this communication set object Data0 association communication set object Group0.
Step 205 is set up session connection between the service communication object of the same name that encapsulates on the different communication node automatically.
Particularly, when the service communication object association node object that encapsulates on a communication node, automatically set up session connection between the service communication object of the same name on this service communication object another communication node corresponding with associated node object.
When the service communication object association communication set object that encapsulates on a communication node, be encapsulated as between service communication object of the same name on communication node corresponding to the communication node member in member's list of this service communication object and this communication set object and automatically set up session connection.
Concrete, referring to Fig. 8: the related communication set object of the transmission of messages object Data0 of communication node A Group0, member's list of this communication set object Group0 comprises member NodeA, member NodeB, during member NodeC, set up session connection between the transmission of messages object Data0 of the transmission of messages object Data0 of communication node A encapsulation and communication node B and the upper encapsulation of communication node C.This is the equal of multi-multipoint peer-to-peer communications.
In another kind of execution mode, the transmission of messages object Data0 of communication node A can associated nodes object NodeB or NodeC, sets up session connection between the transmission of messages object Data0 of the transmission of messages object Data0 of communication node A encapsulation and communication node B or the upper encapsulation of communication node C.This is the equal of that any is to the peer-to-peer communications of a bit.
Need to prove, automatically share the communication set object of the other side's encapsulation between the described different communication node that is packaged with node object of the same name or communication set object or service communication object, two kinds of patterns are arranged, a kind of is manual mode, and a kind of is automatic mode;
Manual mode is specially:
When the communication node member in member's list of the communication set object that encapsulates on to a communication node modifies, in the communication set object of the same name that the member's list automatic synchronization after this communication set object is modified encapsulates to communication node corresponding to other communication nodes member.
For example: all created the communication set object that name is called Group0 on A, B, three communication nodes of C, when the communication set object Group0 on communication node A adds member NodeB and member NodeC as the communication node member, in the Group0 of this member's list automatic synchronization on communication node B and the communication node C.
Automatic mode is specially:
When communication set object association one node object that encapsulates on a communication node as the member during with reference to the member, this communication node adds in member's list of the communication set object of the same name that encapsulates on another communication node corresponding to the node object of its communication set object association automatically, and member's list of the communication set object of the same name that encapsulates on another communication node corresponding to this its related node object of communication set object automatic synchronization.
For example: when the related node object B of communication set object Group0 on communication node A as its member with reference to the time, member's list of the communication set object Group0 of the same name of the upper encapsulation of communication node B that the associated node object B of the Group0 automatic synchronization on communication node A is corresponding, namely the original communication node member of the Group0 on communication node B understands in member's list of the Group0 of automatic synchronization to the communication node A; And communication node A automatic powder adding is added in the member's list of the Group0 on communication node B.When the communication node member of the Group0 on communication node B changes, can automatic synchronization Group0 to the communication node A.When the Group0 on communication node A cancelled associated nodes object NodeB, communication node A deleted the member's list of the Group0 from communication node B automatically.
By the difference of above-mentioned service communication object association communication set object or node object, and the communication set object can be adjusted the scope of multicast session at any time dynamically for communication node member's the control that adds or leave.
Further, peer-to-peer communications method provided by the invention is carried out distributed operation to the service communication object that encapsulates on a communication node, and the service communication object of the same name that encapsulates on other communication nodes receives corresponding distributed operation.
For example: set up communication connection between to the service communication object (being specially transmission of messages object Data0) on communication node A, communication node B, three communication nodes of communication node C, the operation of the transmission message of Data0 being carried out on communication node therein all can receive this message on two other communication node.
Implement peer-to-peer communications method provided by the invention, it is a bit to a bit, a bit to multiple spot, multi-multipoint peer-to-peer communications session all encapsulates, can carry out peer-to-peer communications between communication object of the same name, can complete the peer-to-peer communications reciprocal process of complexity in the inside of communication object, can provide to application program and be simple and easy to use, be independent of the DLL (dynamic link library) of business.
Referring to Fig. 9, be the structural representation of communication node embodiment one provided by the invention.
Communication node embodiment one provided by the invention comprises:
Communication object package module 10 is used for encapsulating communication object on communication node;
Specifically comprise: communication node is encapsulated as node object; And/or two or more communication node members is encapsulated as the communication set object; And/or the service interaction that carries out between communication node is encapsulated as the service communication object;
Module 11 is set up in session connection, be used for and the communication object of the same name of other communication nodes encapsulation between automatically set up session connection.
Need to prove, the modes of described communication object package module 10 carries out above-mentioned three kinds of encapsulation communication objects are not distinguished sequencing, and a kind of encapsulation in only need to doing above-mentioned encapsulation on a certain communication node or a plurality of communication node gets final product.
Communication node provided by the invention has the overall situation unique title or sign, and has respectively a mailing address that is made of IP address and port numbers.
The node object of above-mentioned encapsulation, communication set object, service communication object are referred to as communication object, and this node object, communication set object, service communication object all have title; The node object that encapsulates on the different communication node, the communication set object, the service communication object can have identical title.
Encapsulate above-mentioned node object on communication node by communication object package module 10, perhaps communication set object, perhaps service communication object, if this communication node and other communication nodes are packaged with node object of the same name, this communication node is set up between module 11 and other communication nodes by session connection and can be set up automatically session connection; Perhaps this communication node and other communication nodes are packaged with communication set object of the same name, and this communication node is set up by session connection and can be set up automatically session between module 11 and other communication nodes even; Perhaps this communication node and other communication nodes are packaged with service communication object of the same name, and this communication node is set up between module 11 and other communication nodes by session connection and can be set up automatically session connection.
Implement the embodiment one of communication node provided by the invention, comprise node object owing to having encapsulated on this communication node, the communication set object, the service communication object is at interior communication object, complete the inside of the communication object that the peer-to-peer communications between communication node can encapsulate on communication node alternately automatically, therefore can provide the DLL (dynamic link library) of the business of being independent of to application program.Simultaneously, the dynamic change of communication node can synchronization association to other communication nodes that encapsulated communication object of the same name with it, therefore, can realize the peer-to-peer communications between a plurality of communication nodes of dynamic change.
Referring to Figure 10, be the structural representation of the embodiment two of communication node provided by the invention.
The present embodiment is set up detailed communication object package module 10 and session connection the concrete structure of module 11.
Described communication object package module 10 specifically comprises:
Node object encapsulation unit 100 is used for communication node is encapsulated as node object;
Communication set object encapsulation unit 101 is used for two or more communication node members is encapsulated as the communication set object; The communication set object of these communication set object encapsulation unit 101 encapsulation comprises member's list, and that record in this member's list is the communication node member of its encapsulation.
Service communication object encapsulation unit 102 is used for the service interaction that carries out between communication node is encapsulated as the service communication object;
Described session connection is set up module 11 and is comprised:
Node object linkage unit 110, be used for and other communication nodes on be encapsulated as and automatically set up session connection between node object of the same name;
Communication set object linkage unit 111, be used for and other communication nodes on be encapsulated as between communication set object of the same name and automatically set up session connection;
Service communication object linkage unit 112, be used for and other communication nodes on be encapsulated as between service communication object of the same name and automatically set up session connection.
Need to prove, do not have sequencing because the unit of communication object package module 10 encapsulates respectively node object, communication set object, service communication object, the unit that module 11 is set up in session connection is set up session connection between node object of the same name or communication set object or service communication object and also be there is no sequencing being packaged with.
Referring to Figure 11, be the structural representation of peer communication system provided by the invention.
The peer communication system that the present embodiment provides comprises:
A plurality of communication nodes are packaged with communication object at least one communication node in described a plurality of communication nodes, automatically carry out peer-to-peer communications between the communication object of the same name that encapsulates on the different communication node.
As shown in figure 11, in specific implementation, communication node can be client 1, client 2, client 3, can also be perhaps server 4.Carry out peer-to-peer communications between client and client, also can carry out peer-to-peer communications between client and server.The peer-to-peer communications method of carrying out between them is concrete as previous embodiment, and the concrete function of its communication node and structure are as described in the embodiment of aforementioned communication node.
Below will illustrate the encapsulation node object of each communication node of peer communication system provided by the invention, the communication set object after the service communication object, is set up the specific implementation of session connection between communication node.
Need to prove, below describing is a kind of execution mode, does not limit a plurality of communication node encapsulation communication objects of peer communication system provided by the invention and the sequencing of understanding downlink connection between communication object of the same name with this.
If in embodiments of the present invention, peer communication system comprises communication node A and communication node B and communication node C, and they have the overall situation unique title or sign separately, and communication node A has a mailing address that is made of IP address and port; Communication node B has a mailing address that is made of IP address and port; Communication node C has a mailing address that is made of IP address and port.
Communication node A and communication node B and communication node C are a kind of embodiments of the communication node in the peer communication system that provides of the embodiment of the present invention, and it comprises that respectively communication object package module 10 and session connection set up module 11.
Concrete, as shown in Figure 3, communication node A and B and C node object encapsulation unit 100 separately encapsulates node object respectively on communication node A and B and C; At first need to prove, will itself be encapsulated as a node object to I haven't seen you for ages on each communication node.
Particularly, as shown in Figure 3, the node session node object that the node object encapsulation unit 100 of communication node A encapsulates on communication node A comprises: node object NodeA(is also self object NodeA); The node object that the node object encapsulation unit 100 of communication node B encapsulates on communication node B comprises: the node object encapsulation unit 100 node object NodeB(of communication node C are also self object NodeB); Being packaged with node object NodeC(on communication node C is also self object NodeC);
Communication node A and communication node B and communication node C node object connection is separately set up unit 110 and mutually automatically set up session connection between node object of the same name.
Particularly, as shown in Figure 4:
After encapsulation node object NodeB on communication node A, owing to also having encapsulated node object NodeB on communication node B, communication node A and communication node B are and are packaged with node object NodeB of the same name.
Therefore the node object of communication node A connect set up unit 110 with the node object NodeB on communication node A automatically and communication node B self object NodeB set up session connection.In like manner, encapsulation node object NodeC on communication node A, the node object of communication node A connect set up unit 110 with this node object NodeC automatically and communication node C self object NodeC set up session connection; Also same process for communication node B and communication node C.
Communication node A, communication node B and communication node C communication set object encapsulation unit 101 separately is encapsulation communication set object on communication node A, communication node B and communication node C respectively.
Concrete, as shown in Figure 5:
Communication node A and communication node B and communication node C communication set object encapsulation unit 101 separately is packaged with communication set object Group0 respectively on communication node A and communication node B and communication node C.
Communication node A and communication node B and communication node C communication set object connection is separately set up unit 111 and is mutually automatically set up session connection between communication set object of the same name.
Concrete, as shown in Figure 6:
Communication set object encapsulation unit 101 to communication node A adds NodeB and two communication node members of NodeC at the Group0 of communication node A encapsulation, and the communication set object of communication node A connects and sets up unit 111 Group0 of the upper encapsulation of communication node A is set up session connection with communication node B and the upper Group0 that encapsulates of communication node C automatically.
Communication node A, communication node B and communication node C service communication object encapsulation unit 102 separately is encapsulation business communication object on communication node A, communication node B and communication node C respectively.
What need at first explanation is that this service communication object comprises the transmission of messages object, file transfer session, audio transmission session, video transport session, the service communication objects such as the shared session of blank.
And this service communication object can related above-mentioned node object or communication set object.
By way of example, as shown in Figure 7:
Communication node A, communication node B and communication node C service communication object encapsulation unit 102 separately is packaged with respectively service communication object Data0 on communication node A and communication node B and communication node C; On communication node A, this communication set object Data0 association communication set object Group0.
Communication node A and communication node B and communication node C service communication object connection is separately set up unit 112 and is mutually automatically set up session connection between service communication object of the same name.
Particularly, when the service communication object association node object that encapsulates on a communication node, automatically set up session connection between the service communication object of the same name on this service communication object another communication node corresponding with associated node object;
When the service communication object association communication set object that encapsulates on a communication node, be encapsulated as between service communication object of the same name on communication node corresponding to communication node member in member's list of this service communication object and this communication set object and automatically set up session connection.
Concrete, referring to Fig. 8:
The related communication set object of the transmission of messages object Data0 of communication node A Group0, member's list of this communication set object Group0 comprises member NodeA, member NodeB, during member NodeC, set up session connection between the transmission of messages object Data0 of the transmission of messages object Data0 of communication node A encapsulation and communication node B and the upper encapsulation of communication node C.This is the equal of multi-multipoint peer-to-peer communications.
In another kind of execution mode, the transmission of messages object Data0 of communication node A can associated nodes object NodeB or NodeC, sets up session connection between the transmission of messages object Data0 of the transmission of messages object Data0 of communication node A encapsulation and communication node B or the upper encapsulation of communication node C.This is the equal of that any is to the peer-to-peer communications of a bit.
Need to prove, automatically share the communication set object of the other side's encapsulation between the described different communication node that is packaged with node object of the same name or communication set object or service communication object, two kinds of patterns are arranged, a kind of is manual mode, and a kind of is automatic mode;
Manual mode is specially:
When the communication node member in member's list of the communication set object that encapsulates on to a communication node modifies, in the communication set object of the same name that the member's list automatic synchronization after this communication set object is modified encapsulates to communication node corresponding to other communication nodes member.
For example: all created the communication set object that name is called Group0 on A, B, three communication nodes of C, when the communication set object Group0 on communication node A adds member NodeB and member NodeC as the communication node member, in the Group0 of this member's list automatic synchronization on communication node B and the communication node C.
Automatic mode is specially:
When communication set object association one node object that encapsulates on a communication node as the member during with reference to the member, this communication node adds in member's list of the communication set object of the same name that encapsulates on another communication node corresponding to the node object of its communication set object association automatically, and member's list of the communication set object of the same name that encapsulates on another communication node corresponding to this its related node object of communication set object automatic synchronization.
For example: when the related node object B of communication set object Group0 on communication node A as its member with reference to the time, member's list of the communication set object Group0 of the same name of the upper encapsulation of communication node B that the associated node object B of the Group0 automatic synchronization on communication node A is corresponding, namely the original communication node member of the Group0 on communication node B understands in member's list of the Group0 of automatic synchronization to the communication node A; And communication node A automatic powder adding is added in the member's list of the Group0 on communication node B.When the communication node member of the Group0 on communication node B changes, can automatic synchronization Group0 to the communication node A.When the Group0 on communication node A cancelled associated nodes object NodeB, communication node A deleted the member's list of the Group0 from communication node B automatically.
By the difference of above-mentioned service communication object association communication set object or node object, and the communication set object can be adjusted the scope of multi-point object at any time dynamically for communication node member's the control that adds or leave.
Further, peer-to-peer communications method provided by the invention is carried out distributed operation to the service communication object that encapsulates on a communication node, and the service communication object of the same name that encapsulates on other communication nodes receives corresponding distributed operation.
For example: set up communication connection between to the service communication object (being specially transmission of messages object Data0) on communication node A, communication node B, three communication nodes of communication node C, the operation of the transmission message of Data0 being carried out on communication node therein all can receive this message on two other communication node.
Implement communication node provided by the invention, it is a bit to a bit, a bit to multiple spot, multi-multipoint peer-to-peer communications object all encapsulates, can carry out peer-to-peer communications between communication object of the same name, can complete the peer-to-peer communications reciprocal process of complexity in the inside of communication object, can provide to application program and be simple and easy to use, be independent of the DLL (dynamic link library) of business.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (10)

1. a peer-to-peer communications method, is characterized in that, comprising:
Encapsulate communication object at least one communication node;
Automatically set up session connection between the communication object of the same name that encapsulates on the different communication node.
2. peer-to-peer communications method as claimed in claim 1, is characterized in that, describedly encapsulates communication object at least one communication node, comprises at least with lower a kind of:
On at least one communication node, communication node is encapsulated as node object;
On at least one communication node, two or more communication node members is encapsulated as the communication set object;
On at least one communication node, the service interaction that carries out between communication node is encapsulated as the service communication object.
3. peer-to-peer communications method as claimed in claim 2, is characterized in that, is encapsulated as on described different communication node and automatically sets up session connection between communication object of the same name, comprising:
Be encapsulated as on the different communication node and automatically set up session connection between node object of the same name; Or
Be encapsulated as on the different communication node between communication set object of the same name and automatically set up session connection; Or
Be encapsulated as on the different communication node between service communication object of the same name and automatically set up session connection.
4. peer-to-peer communications method as claimed in claim 3, is characterized in that, is encapsulated as on described different communication node and automatically sets up session connection between node object of the same name, comprising:
When on a communication node, another communication node being encapsulated as the object session, automatically set up session connection between the node object of the same name that encapsulates on the node object of this encapsulation and another communication node.
5. peer-to-peer communications method as claimed in claim 3, is characterized in that, is encapsulated as on the different communication node between communication set object of the same name and automatically sets up session connection, comprising:
When the communication node member in member's list of the communication set object that encapsulates on to a communication node modifies, in the communication set object of the same name that the member's list automatic synchronization after this communication set object is modified encapsulates to communication node corresponding to its communication node member; Or
When node object of the communication set object association that encapsulates on a communication node during as member's references object, this communication node adds in member's list of the communication set object of the same name that encapsulates on another communication node corresponding to the node object of its communication set object association automatically, and member's list of the communication set object of the same name that encapsulates on another communication node corresponding to the described node object of this its association of communication set object automatic synchronization.
6. peer-to-peer communications method as claimed in claim 3, is characterized in that, is encapsulated as on the different communication node between service communication object of the same name and automatically sets up session connection, comprising:
When the service communication object association node object that encapsulates on a communication node, automatically set up session connection between the service communication object of the same name on this service communication object another communication node corresponding with associated node object;
When the service communication object association communication set object that encapsulates on a communication node, be encapsulated as between service communication object of the same name on the corresponding communication node of communication node member in member's list of this service communication object and this communication set object and automatically set up session connection.
7. as claim 4 or 5 or 6 described peer-to-peer communications methods, it is characterized in that, the service communication object that encapsulates on a communication node is carried out distributed operation, and the service communication object of the same name that encapsulates on other communication nodes receives corresponding distributed operation.
8. a communication node, is characterized in that, comprising:
The communication object package module is used for encapsulating communication object on communication node; Concrete being used for is encapsulated as node object with communication node; And/or two or more communication node members is encapsulated as the communication set object; And/or the service interaction that carries out between communication node is encapsulated as the service communication object;
Module is set up in session connection, be used for and the communication object of the same name of other communication nodes encapsulation between automatically set up session connection.
9. communication node as claimed in claim 8, is characterized in that, module is set up in described session connection, comprising:
The node object linkage unit, be used for and other communication nodes on be encapsulated as and automatically set up session connection between node object of the same name;
Communication set object linkage unit, be used for and other communication nodes on be encapsulated as between communication set object of the same name and automatically set up session connection;
Service communication object linkage unit, be used for and other communication nodes on be encapsulated as between service communication object of the same name and automatically set up session connection.
10. a peer communication system, is characterized in that, comprising:
A plurality of communication nodes are packaged with communication object at least one communication node in described a plurality of communication nodes, automatically set up session connection between the communication object of the same name that encapsulates on the different communication node.
CN2011103429091A 2011-11-03 2011-11-03 Equal communication method, communication nodes and equal communication system Pending CN103095656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103429091A CN103095656A (en) 2011-11-03 2011-11-03 Equal communication method, communication nodes and equal communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103429091A CN103095656A (en) 2011-11-03 2011-11-03 Equal communication method, communication nodes and equal communication system

Publications (1)

Publication Number Publication Date
CN103095656A true CN103095656A (en) 2013-05-08

Family

ID=48207797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103429091A Pending CN103095656A (en) 2011-11-03 2011-11-03 Equal communication method, communication nodes and equal communication system

Country Status (1)

Country Link
CN (1) CN103095656A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554066A (en) * 2015-12-04 2016-05-04 上海斐讯数据通信技术有限公司 Communication service container in distributed system and communication method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047582A (en) * 2006-03-31 2007-10-03 联想(北京)有限公司 Method for setting communication link in radio coordinate network
CN101079755A (en) * 2007-07-03 2007-11-28 中兴通讯股份有限公司 Configuration method of network element management system
CN101141742A (en) * 2007-10-12 2008-03-12 中兴通讯股份有限公司 Application communication method of terminal
CN101217565A (en) * 2008-01-04 2008-07-09 华中科技大学 A network organization method of classification retrieval in peer-to-peer network video sharing system
CN101309186A (en) * 2008-06-23 2008-11-19 南京大学 Design method of expandable general purpose type P2P network simulator
CN101495986A (en) * 2005-07-12 2009-07-29 微软公司 Account synchronization for common identity in an unmanaged network
EP2163071A2 (en) * 2007-07-10 2010-03-17 Thomson Licensing Method for automatically determining a group of pairs located close to another pair in a communication network and associated server, analysis device and communication device
EP2359636A1 (en) * 2008-11-24 2011-08-24 QUALCOMM Incorporated Air interface selection between nodes in peer-to-peer/ad-hoc networks

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101495986A (en) * 2005-07-12 2009-07-29 微软公司 Account synchronization for common identity in an unmanaged network
CN101047582A (en) * 2006-03-31 2007-10-03 联想(北京)有限公司 Method for setting communication link in radio coordinate network
CN101079755A (en) * 2007-07-03 2007-11-28 中兴通讯股份有限公司 Configuration method of network element management system
EP2163071A2 (en) * 2007-07-10 2010-03-17 Thomson Licensing Method for automatically determining a group of pairs located close to another pair in a communication network and associated server, analysis device and communication device
CN101141742A (en) * 2007-10-12 2008-03-12 中兴通讯股份有限公司 Application communication method of terminal
CN101217565A (en) * 2008-01-04 2008-07-09 华中科技大学 A network organization method of classification retrieval in peer-to-peer network video sharing system
CN101309186A (en) * 2008-06-23 2008-11-19 南京大学 Design method of expandable general purpose type P2P network simulator
EP2359636A1 (en) * 2008-11-24 2011-08-24 QUALCOMM Incorporated Air interface selection between nodes in peer-to-peer/ad-hoc networks

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554066A (en) * 2015-12-04 2016-05-04 上海斐讯数据通信技术有限公司 Communication service container in distributed system and communication method
CN105554066B (en) * 2015-12-04 2018-09-28 上海斐讯数据通信技术有限公司 Communication service container and communication means in a kind of distributed system

Similar Documents

Publication Publication Date Title
US6678735B1 (en) Method and apparatus for a sip client manager
EP3396899B1 (en) System and method of multi-media conferencing between universal plug and play (upnp) enabled telephony devices and wireless area network (wan) devices
WO2020207091A1 (en) Management client, and device monitoring system and method
CN105320440B (en) Information processing method, device and system
CN102546194B (en) Display data processing method, system and server
CN103312528B (en) A kind of heartbeat message sending method and user terminal
CN104363407B (en) A kind of video conferencing system means of communication and related device
CN105281921A (en) Method and device enabling virtual desktop to realize multicast
CN102629939B (en) Electric power enterprise service bus realization method and device
CN101072158A (en) Method for releasing and processing virtual circuit information and supplier edge device
CN105227418A (en) Data channel establishing method and communication equipment
Garcia et al. Kurento: the Swiss army knife of WebRTC media servers
CN108600294A (en) A kind of cloud terminal screen shared system and method
CN103095656A (en) Equal communication method, communication nodes and equal communication system
CN102970236B (en) A kind of multicast distribution tree switching method and apparatus
US11444843B2 (en) Simulating a system of computing systems
Lim et al. Rapid development of distributed applications using high-level communication support
CN109873817A (en) A kind of method and apparatus of one-to-one access network
CN113742424A (en) Natural resource integrated cross-network dynamic form data synchronization method based on RPA
CN104635661A (en) Data transmission device and data transmission method
CN102137101A (en) Embedded Linux system data transmission method based on SCTP (Stream Control Transmission Protocol) and system thereof
CN101510901A (en) Communication method, communication apparatus and system between distributed equipment
Rumsey Audio over IP: A guide from the summit through the jungle
Foulkes et al. Network neutral control over quality of service networks
CN117440446B (en) Data transmission method and device based on data distribution service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130508