CN106790420B - A kind of more session channel method for building up and system - Google Patents
A kind of more session channel method for building up and system Download PDFInfo
- Publication number
- CN106790420B CN106790420B CN201611093738.2A CN201611093738A CN106790420B CN 106790420 B CN106790420 B CN 106790420B CN 201611093738 A CN201611093738 A CN 201611093738A CN 106790420 B CN106790420 B CN 106790420B
- Authority
- CN
- China
- Prior art keywords
- node
- network interface
- interface card
- client
- session
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Abstract
The embodiment of the present invention provides a kind of more session channel method for building up and system, it is related to the communications field, to solve in the prior art since node network interface card quantity limits, the low problem of the handling capacity of caused node and the bandwidth of client network transmission, comprising: source node receives the first query messages that client is sent;Source node sends the network interface card information at least one network interface card that each node includes to client;Destination node establishes request according to the connection that client is sent, the session channel between destination node and client is established by target network interface card, destination node is the node where target network interface card, and target network interface card is the network interface card that the network interface card information at least one network interface card that client includes is selected from least one network interface card that each node includes according to each node.The embodiment of the present invention is applied to group system interior joint failover scene.
Description
Technical field
The present embodiments relate to the communications field more particularly to a kind of more session channel method for building up and systems.
Background technique
SMB (Server Message Block, service message block) agreement (for example, SMB3.0 agreement) is mainly used for counting
Shared file, printer, serial ports etc. between calculation machine.SMB typical case networking is as shown in Figure 1a.
MutilChannel (more session channels) characteristic is the characteristic that SMB3.0 agreement newly increases, and is passed through
MutilChannel characteristic can be established by multiple TCP connections simultaneously between client and multiple network interface cards of a node
Session channel, client and the business of the node are not interrupted under the Single NIC fault scenes in mono- node of Lai Shixian.Specifically such as
Under: as shown in Figure 1 b, a network interface card 1011 of client 101 (including multiple network interface cards, for example, network interface card 1011 and network interface card 1012) is logical
After a network interface card 1031 for crossing interchanger 102 and node 103 establishes TCP connection link setup and creates session success, a meeting is formed
Talking path (session channel 105 in such as Fig. 1 b) carries out service interaction;Then client 101 is sent to node 103 for inquiring
The instruction message of the related network interface card information of node 103, the response message that 101 receiving node 103 of client is sent, in the response message
Including available network interface card informations all on node 103;Client 101 passes through other network interface cards (for example, network interface card 1012) and section thereon
Creation when putting the network interface card informations that 103 feed back and establish new TCP connection, and establishing TCP connection based on network interface card 1011 and network interface card 1031
The ID of session re-start after certification passes through, form new session channel, as in Fig. 1 c network interface card 1012 and network interface card 1032 it
Between the session channel 106 that is formed.
But since the practical capacity of single network interface card is limited, the bandwidth of node and client network transmission is handled up
Amount can be limited to the network interface card quantity of node, i.e., if the network interface card quantity for establishing the node of connection with client is fewer, can transmit
Extreme bandwidth it is also fewer.
Summary of the invention
The embodiment of the present invention provides a kind of more session channel method for building up and system, to solve in the prior art due to list
The network interface card quantity of a node limits, the low problem of the handling capacity of the bandwidth of caused node and client network transmission.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, the embodiment of the present invention provides a kind of more session channel method for building up, this method is applied to group system
In, which includes client and at least two nodes, wherein each node includes at least one at least two nodes
A network interface card, method provided in an embodiment of the present invention include: that the source node that is used to indicate of source node reception client transmission is inquired often
First query messages of the network interface card information at least one network interface card that a node includes;Source node be at least two nodes in client
Hold the node communicated;The network interface card information at least one network interface card that each node includes is stored in source node;Source node to
Client sends the network interface card information at least one network interface card that each node includes;Destination node is built according to the connection that client is sent
Vertical request establishes the session channel between destination node and client by target network interface card, and destination node is target network interface card place
Node, target network interface card is that the network interface card information of client at least one network interface card for including includes according to each node from each node
At least one network interface card in the network interface card that selects.
The embodiment of the present invention provides a kind of more session channel method for building up, receives being used for for client transmission by source node
Indicate that source node inquires the first query messages of the network interface card information at least one network interface card that each node includes;Source node is at least
The node communicated in two nodes with client;The net at least one network interface card that each node includes is stored in source node
Card information;Source node sends the network interface card information at least one network interface card that each node includes to client;Destination node is according to visitor
Request is established in the connection that family end is sent, and establishes the session channel between destination node and client, target section by target network interface card
Point is the node where target network interface card, and target network interface card is that the network interface card at least one network interface card that client includes is believed according to each node
Cease the network interface card selected from least one network interface card that each node includes.Since the practical capacity of single network interface card is limited, so such as
Fruit network interface card quantity is fewer, and the session channel quantity established between client and node is also fewer, client and group system it
Between the extreme bandwidth that can transmit it is also fewer;Conversely, network interface card is more, the total bandwidth that can be provided is more, therefore, client
It, can be with multiple nodes in group system (for example, source is saved when using the business of MutilChannel characteristic access collection group
Point and destination node) between establish session channel, such as establish the session channel between source node and the network interface card of client, establish
Network transfer between group system and client can be improved in session channel between target network interface card and client NIC in this way
Wide handling capacity.If source node failure simultaneously, client can be chosen normal node (for example, destination node), and according to target
The session channel established between the target network interface card of node carries out business transmission, to guarantee the industry between client and group system
Business continues not interrupt, and greatly improves the performance of whole system external.
With reference to first aspect, in the first possible implementation of the first aspect, it is sent in source node to client
Before the network interface card information at least one network interface card that each node includes, method provided in an embodiment of the present invention includes: that source node connects
Receive the network interface card letter at least one network interface card for including including the node that each node in group system in addition to source node is sent
First broadcast message of breath;Except source is saved in the network interface card information and group system of at least one network interface card that source node is included by source node
The network interface card information at least one network interface card that each node except point includes is stored in source node.In this way when source node receives
Client send the first query messages when, can in time into client feedback group system each node network interface card information with
It is selected for client.
With reference to first aspect or the first possible implementation of first aspect, second in first aspect are possible
In implementation, it includes user name and user password that request is established in above-mentioned connection;The company that destination node is sent according to client
Foundation request is connect, the session channel between destination node and client is established by target network interface card, comprising: destination node is to client
The user name sent and user password is held to be verified;Determining that user name matches with preset user name, and user password with
After preset user password matching, destination node is established the session between destination node and client by target network interface card and is led to
Road.By establishing the session channel between destination node and client, in this way when source node failure, client can according to
The session channel and group system established between destination node carry out business transmission, so that business transmission is not interrupted.
With reference to first aspect to second of possible implementation of first aspect, the third in first aspect is possible
In implementation, it includes session identification and flag bit in request that connection, which is established, which is used for the first meeting of unique identification
Information is talked about, which generates when being the session channel established between source node and client, and flag bit is for referring to
Show to the re-authentication for establishing session channel between source node and client;The first inquiry that client is sent is received in source node
Before message, method provided in an embodiment of the present invention further include: source node sends session identification to client;Correspondingly, target
After node establishes the session channel between destination node and client by target network interface card, method provided in an embodiment of the present invention
Include: that destination node parses session identification, determines the mark for generating the source node of the first session information;Destination node to
Source node sends the first request message, to obtain the first session information indicated by session identification from source node;Destination node root
According to flag bit, the second session channel and the first session information are bound, the second session channel is that destination node passes through target network interface card
Session channel between the destination node and client of foundation.In this manner it is achieved that the first session information and multiple session channels
Between mapping, pressed from both sides and carried out by the same file in the corresponding multiple session channels of the first session information and node when client
When access, the same TREE information is just generated, can business not interrupted.
With reference to first aspect to the third possible implementation of first aspect, the 4th kind in first aspect is possible
In implementation, after source node sends the network interface card information at least one network interface card that each node includes to client, this hair
The method that bright embodiment provides further include: source node sends the handle mark for being used for unique identification file handle information to client
Know;For source node by file handle information back-up to first node, first node is corresponding with source node at least two nodes
Node;Correspondingly, request is established in the connection sent in destination node according to client, by target network interface card establish destination node and
After session channel between client, method provided in an embodiment of the present invention further include: in source node failure, destination node
The first data access request for carrying the handle mark for unique identification file handle information that client is sent is received to disappear
Breath;Destination node identifies according to the handle and obtains file handle information.In this way when source node failure, destination node can root
The file handle information of the file destination of client request access is got according to the first data access request message of client, and
Normal read operation or write operation are carried out to file destination according to this document handle information so that client and group system it
Between business (read data manipulation/data writing operation) will not because of source node failure and interrupt.
With reference to first aspect to the 4th kind of possible implementation of first aspect, the 5th kind in first aspect is possible
In implementation, handle mark includes generating the mark of the node of file handle information;Destination node is identified according to handle and is obtained
File handle information, comprising: destination node identifies whether preserve file handle information in local search according to handle;Work as target
Node determine it is local then destination node parses handle mark when not saving file handle information, determine and generate handle mark
Know the source node of indicated file handle information;When determining source node failure, destination node obtains sentence from first node
The indicated file handle information of handle mark.
Any one possible implementation into the 4th kind of possible implementation of first aspect with reference to first aspect,
In the fifth possible implementation of the first aspect, before source node sends file handle information to first node, this
The method that inventive embodiments provide further include: source node determines the corresponding first node of source node from least two nodes, leads to
Cross and determine for storing the first node of backup file handle information, can make in source node failure, first node according to
The handle mark that client is sent provides file handle information.
Any one possible implementation into the 5th kind of possible implementation of first aspect with reference to first aspect,
In the sixth possible implementation of the first aspect, source node determines source node corresponding first from least two nodes
Node, comprising: source node obtains the nodal information of remaining node at least two nodes in addition to source node;According at least two
The nodal information of remaining node in a node in addition to source node determines the according to preset rules from least one node
The mark of one node;First node is determined according to the mark of first node.
Second aspect, the embodiment of the present invention provide a kind of more session channel methods, and this method is applied in group system, should
Group system includes client and at least two nodes, wherein client includes at least two network interface cards, and each node includes extremely
A few network interface card, method provided in an embodiment of the present invention include: client to source node transmission be used to indicate source node inquire to
First query messages of the network interface card information at least one network interface card that each node includes in few two nodes;Client receives source section
What point was sent includes the first response message of the network interface card information at least one network interface card that each node includes at least two nodes;
Client sends connection to interchanger by target network interface card and establishes request, so that interchanger establishes connection according to target network interface card
Request is forwarded to the destination node where target network interface card, so that destination node is established between client by target network interface card
Session channel.
In conjunction with second aspect, in the first possible implementation of the second aspect, above-mentioned connection is established in request and is wrapped
Include user name and user password.
In conjunction with the possible implementation of the first of second aspect or second aspect, second in second aspect is possible
In implementation, client receives the session identification for the first session information of unique identification that source node is sent, wherein source section
Point is the node communicated at least two nodes with client.
In conjunction with second aspect to second aspect second of possible implementation in any one possible implementation,
In the third possible implementation of the second aspect, connection foundation is sent to interchanger by target network interface card in client to ask
After asking, method provided in an embodiment of the present invention further include: after the determining service disconnection between source node of client, client
The first data access request for sending to destination node and carrying and identifying for the handle of unique identification file handle information is held to disappear
Breath.
The third aspect, the embodiment of the present invention provide a kind of group system, which includes client, at least two sections
Point, wherein client includes at least two network interface cards, and each node includes at least one network interface card, client at least two nodes
At least two network interface cards be used to establish session channel at least one network interface card of each node, wherein source node is for receiving visitor
The first inquiry for being used to indicate the network interface card information that source node inquires at least one network interface card that each node includes of family end transmission disappears
Breath;Source node is the node communicated at least two nodes with client;Each node is stored in source node includes
The network interface card information of at least one network interface card;And the network interface card letter for sending at least one network interface card that each node includes to client
Breath;Request is established in the connection that destination node is used to be sent according to client, establishes destination node and the visitor by target network interface card
Session channel between the end of family, destination node are the node where target network interface card, and target network interface card is client according to each node
Including at least one network interface card the network interface card that is selected from least one network interface card that each node includes of network interface card information.
In conjunction with the third aspect, in the first possible implementation of the third aspect, source node is also used to: receiving cluster
The first broadcast message that each node in system in addition to source node is sent;First broadcast message includes that the node includes
The network interface card information of at least one network interface card;And the network interface card information and group system of at least one network interface card for including by source node
In the network interface card information of each node in addition to source node at least one network interface card for including be stored in source node.
In conjunction in the possible implementation of the first of the third aspect or the third aspect, second in the third aspect may
Implementation in, it includes user name and user password in request that above-mentioned connection, which is established, and destination node is specifically used for: to client
The user name sent and user password is held to be verified;And for determining that user name matches with preset user name, and use
After family password is matched with preset user password, it is logical that the session between destination node and client is established by target network interface card
Road.
In second of possible implementation in conjunction with the third aspect to the third aspect, the third in the third aspect may
Implementation in, it further includes session identification and flag bit in request that above-mentioned connection, which is established, and session identification is used for unique identification
First session information, first session information are to generate when establishing the session channel established between source node and client;Mark
Will position is used to indicate to the session channel re-authentication established between source node and client;Source node is also used to client
Send session identification;Destination node is also used to: being parsed to session identification, is determined the source node for generating the first session information
Mark;And for sending the first request message to source node, to obtain the first session indicated by session identification from source node
Information carries session identification in the first request message;And it is used for according to flag bit, by the second session channel and the first session
Information binding, the second session channel are that destination node is logical by the session between the target network interface card destination node established and client
Road.
In the third possible implementation in conjunction with the third aspect to the third aspect, in the 4th kind of possibility of the third aspect
Implementation in, destination node is also used to: receive client send carry for unique identification file handle information
First data access request message of handle mark;And file handle information is obtained for identifying according to handle.
In the 4th kind of possible implementation in conjunction with the third aspect to the third aspect, in the 5th kind of possibility of the third aspect
Implementation in, destination node is specifically used for: identifying in local search whether preserve file handle information according to handle;With
And for when destination node determines and do not save file handle information in destination node, then destination node to solve handle mark
Analysis determines the source node for generating the indicated file handle information of handle mark;And for when determining source node failure, mesh
Mark node obtains the indicated file handle information of handle mark from the corresponding first node of source node.
In the 5th kind of possible implementation in conjunction with the third aspect to the third aspect, in the 6th kind of possibility of the third aspect
Implementation in, source node is also used to: to client send for unique identification file handle information handle identify;And
For sending file handle information to first node.
In the 5th kind of possible implementation in conjunction with the third aspect to the third aspect, in the 6th kind of possibility of the third aspect
Implementation in, source node also particularly useful for: obtain the node of remaining node in addition to source node at least two nodes
Information;And for the nodal information according to remaining node at least two nodes in addition to source node, according to preset rules,
The mark of first node is determined from least one node;And for determining first node according to the mark of first node.
Fourth aspect, the embodiment of the present invention provide a kind of client, and the client application is in group system, group system
It further include at least two nodes, wherein client includes at least two network interface cards, and each node includes at least one network interface card, client
At least two network interface cards at end are used to establish session channel at least one network interface card of each node, wherein client is used for source
Node, which is sent, is used to indicate the first query messages that source node inquires the nodal information of each node at least two nodes;Client
End receives the network interface card information at least one network interface card that each node that source node is sent includes;Client passes through target network interface card to friendship
Request is established in transmission connection of changing planes, and is forwarded to where target network interface card so that connection is established request according to target network interface card by interchanger
Destination node.
In conjunction with fourth aspect, in the first possible implementation of the fourth aspect, above-mentioned connection is established in request and is wrapped
Include user name and user password.
In conjunction with the possible implementation of the first of fourth aspect or fourth aspect, second in fourth aspect is possible
In implementation, client is used to receive the session identification for the first session information of unique identification of source node transmission, wherein
Source node is the node communicated at least two nodes with client.
In conjunction with fourth aspect to fourth aspect second of possible implementation in any one possible implementation,
In the third possible implementation of the fourth aspect, connection foundation is sent to interchanger by target network interface card in client to ask
After asking, client provided in an embodiment of the present invention is also used to: after the service disconnection between determination and source node, to target section
Point sends the first data access request message for carrying the handle mark for unique identification file handle information.
5th aspect, the embodiment of the present invention provide a kind of source node, which is applied in group system, the source node
Include: the first receiving unit, for receive client transmission be used to indicate source node inquire each node include to
First query messages of the network interface card information of a few network interface card;First transmission unit, for including to each node of client transmission
At least one network interface card network interface card information.
In conjunction with the 5th aspect, in the first possible implementation of the 5th aspect, source provided in an embodiment of the present invention
Node further include: the second receiving unit, first for receiving each node transmission in group system in addition to source node are wide
Message is broadcast, the first broadcast message includes the network interface card information at least one network interface card that the node includes;Storage unit is used for source
Each node in the network interface card information and group system of at least one network interface card that node includes in addition to source node includes at least
The network interface card information of one network interface card is stored in source node.
In conjunction with the first possible implementation of the 5th aspect or the 5th aspect, second at the 5th aspect is possible
In implementation, source node provided in an embodiment of the present invention further include: determination unit, for determining source from least two nodes
The corresponding first node of node.
In conjunction with the 5th aspect to the 5th aspect second of possible implementation in any one possible implementation,
Determination unit in the third possible implementation of the 5th aspect, in the embodiment of the present invention, comprising: obtain module, use
In the nodal information for obtaining remaining node at least two nodes in addition to source node;First determining module, for according to extremely
The nodal information of remaining node in few two nodes in addition to source node, according to preset rules, from least two nodes really
Determine the mark of first node;Second determining module, for determining first node according to the mark of first node.
In conjunction with the 5th aspect to the 5th aspect the third possible implementation in any one possible implementation,
In the 4th kind of possible implementation of the 5th aspect, source node further includes the 4th transmission unit, for every to group system
A node sends the first broadcast message of the nodal information including source node;Second receiving unit, for receiving each node
Nodal information.
6th aspect, the embodiment of the present invention provide a kind of source node, which includes that processor, memory and communication are total
Line, the processor are connected with memory by communication bus, and the memory is for storing software program and module, the processor
For runs software program and module, thereby executing: the session for being used for the first session information of unique identification is sent to client
Mark;Receive the first query messages for being used to indicate source node and inquiring the nodal information of each node that client is sent;To visitor
Family end sends the first response message for including at least the nodal information of each node.
7th aspect, the embodiment of the present invention provide a kind of destination node, which includes: the first receiving unit, use
Request is established in receiving the connection that client is sent;Unit is established, request is established in the connection for sending according to client, is passed through
Target network interface card establishes the session channel between destination node and the client.
In conjunction with the first possible implementation of the 7th aspect or the 7th aspect, second at the 7th aspect is possible
In implementation, the second receiving unit, for receiving the first data access request for carrying handle mark of client transmission
Message, acquiring unit obtain the indicated file handle information of handle mark for identifying according to handle.
In conjunction with the 7th aspect to the 7th aspect second of possible implementation in any one possible implementation,
In the third possible implementation of the 7th aspect, acquiring unit, comprising: judgment module, for being existed according to handle mark
Whether local search preserves file handle information;First obtains module, stores for determining in destination node in judgment module
After having file handle information, file handle information is obtained from the memory of destination node;First parsing module, for judging
Module determines in destination node there is no after file handle information, parses to handle mark, determines and generate handle mark
The source node of indicated file handle information;Module is obtained, for when determining source node failure, destination node is from first segment
The indicated file handle information of handle mark is obtained in point, first node is section corresponding with source node at least two nodes
Point.
In conjunction with the 7th aspect to the 7th aspect the third possible implementation in any one possible implementation,
In the 4th kind of possible implementation of the 7th aspect, it includes user name and user password that request is established in connection, is established single
Member, comprising: verification unit, user name and user password for sending to client verify, and establish module, for true
Determine user name to match with preset user name, and after user password is matched with preset user password, is built by target network interface card
Session channel between vertical destination node and client.
In conjunction with the 7th aspect to the 7th aspect the 4th kind of possible implementation in any one possible implementation,
In the 5th kind of possible implementation of the 7th aspect, it includes session identification and flag bit, the meeting in request that connection, which is established,
Words mark is used for the first session information of unique identification, which is that the session established between source node and client is led to
It is generated when road, which is used to indicate to the re-authentication for establishing session channel between source node and client;Target section
Point further include: resolution unit determines the mark for generating the source node of the first session information for parsing to session identification;
Transmission unit, for sending the first request message to source node, to obtain the first session indicated by session identification from source node
Information;Map unit, for according to flag bit, the second session channel and the first session information to be bound, the second session channel is
Destination node passes through the session channel between the target network interface card destination node established and client.
Eighth aspect, the embodiment of the present invention provide a kind of destination node, comprising: processor, memory and communication bus, it should
Processor is connected with memory by communication bus, and for storing software program and module, which is used for the memory
Runs software program and module, thereby executing: request is established in the connection for being sent according to client, is built by target network interface card
Session channel between vertical destination node and client.
9th aspect, the embodiment of the present invention provide a kind of node, comprising: the first receiving unit, for receiving source node hair
The file handle information sent, storage unit, for by file handle information preservation in the memory of first node.
In conjunction with the 9th aspect, in the first possible implementation of the 9th aspect, first node further include: second connects
Unit is received, for receiving the first request message for carrying unique identification file handle information of destination node transmission, this first
Request message is used to indicate first node and sends file handle information to destination node;Transmission unit, for being sent out to destination node
Send file handle information.
Tenth aspect, the embodiment of the present invention provide a kind of node, including processor, memory and communication bus, the processing
Device is connected with memory by communication bus, and the memory is for storing software program and module, and the processor is for running
Software program and module, thereby executing: the file handle information that source node sends is received, and by file handle information preservation
In the memory of first node.
Tenth on the one hand, and the embodiment of the present invention provides a kind of client, which includes: the first transmission unit, is used for
The first query messages for being used to indicate source node and inquiring the nodal information of each node at least two nodes are sent to source node,
The source node is the node communicated at least two nodes with client, receiving unit, for receiving source node transmission
The network interface card information at least one network interface card that each node includes and the second transmission unit, for passing through target network interface card to exchange
Machine sends connection and establishes request, is forwarded to where target network interface card so that connection is established request according to target network interface card by interchanger
Destination node.
On the one hand in conjunction with the tenth, in the first possible implementation of the tenth one side, which further includes the
Three transmission units, the first data access request for carrying unique identification file handle information to destination node transmission disappear
Breath.
12nd aspect, the embodiment of the present invention provide a kind of client, which includes processor, memory and communication
Bus, the processor are connected with memory by communication bus, and the memory is for storing software program and module, the processing
Device is used for runs software program and module, thereby executing: source node, which is used to indicate, to source node transmission inquires at least two sections
First query messages of the nodal information of each node in point, source node are to be communicated at least two nodes with client
Node;The network interface card information at least one network interface card that each node for receiving source node transmission includes;And for passing through mesh
It marks network interface card and sends connection foundation request to interchanger, so that connection is established request according to target network interface card by interchanger is forwarded to mesh
Mark the destination node where network interface card.
13rd aspect, the embodiment of the present invention provides a kind of group system, the group system include client, source node with
And destination node, wherein source node is using any one in the 4th kind of possible implementation of the 5th aspect to the 5th aspect
Source node described in source node described in implementation or the 6th aspect, destination node use as in terms of the 7th to the 7th
Destination node or eighth described in any one possible implementation in the third possible implementation of aspect
Destination node described in face.
In conjunction with the 13rd aspect, in the first possible implementation of the 13rd aspect, the embodiment of the present invention is provided
Group system further include: first node, the first node are used such as the first possible reality in terms of the 9th or in terms of the 9th
Node described in node described in existing mode or the tenth aspect.
Fourteenth aspect, the embodiment of the invention provides a kind of computer storage mediums, for being stored as first aspect institute
Computer software instructions used in more session channel method for building up of description, it includes for executing the described collection of the 9th aspect
Program designed by group's system.
15th aspect, the embodiment of the invention provides a kind of computer storage mediums, for being stored as second aspect institute
Computer software instructions used in more session channel method for building up of description, it includes for executing the described collection of the 9th aspect
Program designed by group's system.
Detailed description of the invention
Fig. 1 a is the SMB typical case networking structure schematic diagram provided in the prior art;
Fig. 1 b establishes the structural schematic diagram one of session channel between the client provided in the prior art and node;
Fig. 1 c establishes the structural schematic diagram two of session channel between the client provided in the prior art and node;
Fig. 2 a is a kind of structural schematic diagram one of group system provided in an embodiment of the present invention;
Fig. 2 b is a kind of structural schematic diagram two of group system provided in an embodiment of the present invention;
Fig. 2 c is a kind of structural schematic diagram three of group system provided in an embodiment of the present invention;
Fig. 2 d is cluster management module (InfoEqualizer) working timing figure provided in an embodiment of the present invention;
Fig. 2 e is the hardware structural diagram of server provided in an embodiment of the present invention;
Fig. 2 f is the hardware structural diagram of client provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram one of more session channel method for building up provided in an embodiment of the present invention;
Fig. 4 a is the structural schematic diagram of the session identification of the first session information provided in an embodiment of the present invention;
Fig. 4 b is the more session channel structural schematic diagrams established in group system provided in an embodiment of the present invention;
Fig. 5 is a kind of flow diagram two of more session channel method for building up provided in an embodiment of the present invention;
Fig. 6 is a kind of flow diagram three of more session channel method for building up provided in an embodiment of the present invention;
Fig. 7 a is the structural schematic diagram of circular relation view provided in an embodiment of the present invention;
Fig. 7 b is the timing diagram of backup file handle information provided in an embodiment of the present invention;
Fig. 7 c is the timing diagram of backup TREE information provided in an embodiment of the present invention;
Fig. 8 a is a kind of flow diagram four of more session channel method for building up provided in an embodiment of the present invention;
Fig. 8 b is the structural schematic diagram of handle provided in an embodiment of the present invention mark;
Fig. 9 a is a kind of structural schematic diagram four of group system provided in an embodiment of the present invention;
Fig. 9 b is a kind of flow diagram five of more session channel method for building up provided in an embodiment of the present invention;
Fig. 9 c is the timing diagram one that destination node provided in an embodiment of the present invention obtains file handle information;
Fig. 9 d is the timing diagram two that destination node provided in an embodiment of the present invention obtains file handle information;
Figure 10 a is the structural schematic diagram of source node provided in an embodiment of the present invention;
Figure 10 b is the integrated morphology schematic diagram of source node provided in an embodiment of the present invention;
Figure 10 c is the hardware structural diagram of source node provided in an embodiment of the present invention;
Figure 11 a is the structural schematic diagram of destination node provided in an embodiment of the present invention;
Figure 11 b is the integrated morphology schematic diagram of destination node provided in an embodiment of the present invention;
Figure 11 c is the hardware structural diagram of destination node provided in an embodiment of the present invention;
Figure 12 a is the structural schematic diagram of node provided in an embodiment of the present invention;
Figure 12 b is the integrated morphology schematic diagram of node provided in an embodiment of the present invention;
Figure 12 c is the hardware structural diagram of node provided in an embodiment of the present invention;
Figure 13 a is the structural schematic diagram of client provided in an embodiment of the present invention;
Figure 13 b is the integrated morphology schematic diagram of client provided in an embodiment of the present invention;
Figure 13 c is the hardware structural diagram of client provided in an embodiment of the present invention.
Specific embodiment
For the ease of clearly describing the technical solution of the embodiment of the present invention, in an embodiment of the present invention, use " the
One ", the printed words such as " second " distinguish function and the essentially identical identical entry of effect or similar item, and those skilled in the art can
To understand that the printed words such as " first ", " second " are not defined quantity and execution order.
It is the scene figure that session channel is established between one kind common client and node referring to Fig. 1 b and Fig. 1 c, Fig. 1 b,
For example, as shown in Figure 1 b client 101 network interface card 1011 and by being established between interchanger 102 and a network interface card of node 103
Session channel 105, then as illustrated in figure 1 c, another network interface card 1012 of client 101 are another by interchanger and node 103
Session channel 105 is established between one network interface card 1032, in actual use, client 101 can pass through session channel
105 and session channel 106 communicated respectively with node 103.Due to, the practical capacity of single network interface card is limited, therefore, node and
The handling capacity of the bandwidth of client network transmission can be limited to the network interface card quantity of node, i.e., if establishing the section of connection with client
The network interface card quantity of point is fewer, and the extreme bandwidth that can be transmitted is also fewer, and therefore, individual node needs to have two in the prior art
A or more than two network interface cards, to the more demanding of node, such client could form more than two between the node
Session channel, so that the extreme bandwidth of transmission is promoted, meanwhile, in the scheme that the prior art provides, when 103 failure of node,
The session channel 105 and session channel 106 established between client 101 and node 103 will disconnect, so that 101 He of client
Communication disruption between node 103.The embodiment of the present invention by the session channel established between client and different node so that
Even if when the node failure communicated with client, client can also be carried out by the session channel established with other nodes
Communication, meanwhile, as long as each node has one or more network interface card in scheme provided in an embodiment of the present invention, it can
Realize the foundation of more session channels, therefore lower to the hardware requirement of node.
The embodiment of the present invention provides a kind of group system, which supports that SMB3.0 agreement, SMB3.0 agreement can be with
Multiple servers group is built into a cluster, all nodes provide file-sharing service to client inside cluster.In cluster
It is shared that 0 downtime may be implemented in the case of node failure, and can be with fast failure recovery.As shown in Figure 2 a, Fig. 2 a is shown
It can be used for realizing a kind of group system of more session channel method for building up provided in an embodiment of the present invention.As shown in Figure 2 a, should
Group system includes one or more clients, (client 201 as shown in Figure 2 a) and at least two nodes (such as Fig. 2 a
Shown in node 202, node 203 and node 204), pass through between the one or more client and at least two nodes
Interchanger 205 is attached.Wherein, each client includes that (network interface card is also known as at least two network interface cards in one or more clients
For network adapter or or network interface card, English name: Network Interface Card, referred to as: NIC), for example,
Client 201 includes network interface card 2011 and network interface card 2012, and each node includes at least one network interface card (for example, node 202 includes net
Card 2021 and network interface card 2022, node 203 include network interface card 2031 and network interface card 2032, and node 204 includes network interface card 2041 and net
Card is 2042).The resource of one or more client request access is stored at least two node.One or more clients
At least one network interface card by each node at least two nodes of at least two network interface cards between establish session channel to visit
Ask the resource stored at least two nodes.Although in fig. 2 a, only client 201 is illustrated as between at least two nodes
It is communicated, but in other embodiments, there may be two or more clients to access from least two nodes
Resource.In embodiments, client 201 can be accessed according to SMB3.0 agreement at least two nodes or at least two nodes
Communication.Three nodes (node 202, node 203 and node 204) is illustrated only in fig. 2 a, but it is understood that this hair
The group system that bright embodiment provides can also include three or more nodes.
It should be noted that in the embodiment of the present invention in one or more clients any one client a network interface card
A session channel can be established with a network interface card of a node, such as the network interface card 2011 and node 202 of client 201 in Fig. 2 a
Network interface card 2021 between establish session channel 1, between the network interface card 2012 of client 201 and the network interface card 2022 of node 202 establish meeting
Talking path 2.A network interface card of any one client can be with the different nets in the same node in one or more clients
Card establishes session channel respectively, and as shown in Figure 2 b, the network interface card 2021 in the network interface card 2011 and node 202 of client 201 is built
Vertical session channel 1, while the network interface card 2022 in the network interface card 2011 and node 202 establishes session channel 3;One or more clients
In a network interface card of any one client can establish session channel with the network interface card in different nodes, as shown in Figure 2 c, visitor
Network interface card 2031 in one network interface card 2012 and node 203 at family end 201 establishes session channel 4, while the network interface card of the client 201
2012 and node 204 in network interface card 2041 establish session channel 5.
It is the more session channel characteristics for realizing SMB3.0 agreement in the embodiment of the present invention, it is each in one or more clients
Each node in client and at least two nodes requires to support SMB3.0 agreement, and therefore, illustratively, the present invention is real
The client for applying example offer can support the operation of Windows Server 2012 or 2012 or more Windows Server
8 operating system of system or Windows, Mac system, certainly, remaining supports that the client of SMB3.0 agreement is also that can be used as this
The client that inventive embodiments provide, any one node are the storage system for storing manufacturer and providing, which needs to prop up
Hold SMB3.0 agreement.Meanwhile it is preferably that same specification (can be for not that any one client and any one node, which need muti-piece,
Same brand) network interface card, for example, can all be Gigabit Ethernet or be all ten thousand Broadcoms (for example, 10Gbe) etc., it is, of course, also possible to all
Using with RDMA (Remote Direct Memory Access, remote direct data access) function 10,000,000,000 fusion cards or
Infiniband card.
It is provided with cluster management module in the embodiment of the present invention at least two nodes on each node
(InfoEqualizer), for example, as shown in Fig. 2 a, 2b or 2c, cluster management module 2023 on node 202, on node 203
Cluster management module 2033 and node 204 on cluster management module 2043, the cluster management module on each node uses
The relevant information of all nodes in real-time update group system, the network interface card information including each node is (for example, network interface card IP, net
Card rate etc.) and each node mark (node serial number, for example, node 202), node state etc..
The InfoEqualizer module of each node inquires the cluster management module after group system initializes successfully
The nodal information of place node, then by the back-end network of group system (for example, the rear end network interface card above each node, after
End switch, rear end cable, each node pass through other nodes in back-end network and group system and communicate) it is broadcast to cluster system
Each node in system after the InfoEqualizer module of other nodes receives broadcast message, records received broadcast letter
The nodal information of the number of entrained node and the node in breath.
Since the function of each cluster management module is all the same, the embodiment of the present invention is existing only with the collection on node 202
The function of the cluster management module is illustrated for group's management module 2023.Illustratively, as shown in Figure 2 d, in group system
It initializes and successfully (belongs to a functional module in group system due to InfoEqualizer module, at the beginning of group system
In beginningization process, same InfoEqualizer module can also be initialised) after, node 202, node 203 and node 204 divide
The broadcast message including itself network interface card information is sent (for example, node 202 is sent out to node 203 and node 204 to group system
The broadcast message for carrying 202 network interface card information of node is sent, while node 203 also sends in group system and carries node 203
The broadcast message of network interface card information, node 204 also send the broadcast message for carrying 204 network interface card information of node in group system),
Node 202 in the broadcast message for receiving the network interface card information for carrying node 203 respectively that node 203 and node 204 are sent and
After the broadcast message of the network interface card information of node 204, by the network interface card of the network interface card information of received node 203 and node 204
Information is stored in section according to preset rules (for example, corresponding relationship between the mark and the network interface card information of the node of each node)
In the InfoEqualizer module 2023 of point 202, similarly, section is stored in the InfoEqualizer module 2033 of node 203
202 network interface card information and the network interface card information of node 204 are put, is stored with node in the InfoEqualizer module 2043 of node 204
202 network interface card information and the network interface card information of node 203.
It should be noted that the InfoEqualizer module of each node can also store the section of oneself place node simultaneously
Point information, wherein nodal information includes network interface card information.
Wherein, any one node as described in Fig. 2 a is referred to as server, which is can
To provide the network equipment of service for client 201, for example, node 202, node 203 and node 204, which can be, has service
The computer etc. of device function.Since the hardware configuration of each server is identical, the embodiment of the present invention is first introduced by taking node 203 as an example
The hardware structure of each node in group system shown in Fig. 2 a, e, node 203 include memory 20311, processor referring to fig. 2
20312, system bus 20313, power supply module 20314, input output interface 20315, communication component 20316 and one or
Multiple network interface cards 20317 etc..Wherein, memory 20311 can be used for storing data, software program and module, and main includes storage
Program area and storage data area, storing program area can application program needed for storage program area, at least one function etc., storage
Data field can memory node 203 use created data etc..Processor 20312 is stored in memory by operation or execution
Software program and/or module in 20311, and the data being stored in memory 20311 are called, execute each of node 203
Kind function and processing data.System bus 20313 includes address bus, data/address bus, control bus, is used for transmission data and refers to
It enables;Power supply module 20314 is used to provide power supply for the various components of node 203;Input output interface 20315 be processor
Interface is provided between 20312 and peripheral interface module;Communication component 2036 between node 203 and other equipment for being had
The communication of line or wireless mode.One or more network interface cards 20317 are used to form session channel between node 203 and client,
So as to transmission services, it is all kinds of that in a communications system, node 203, which carries the key tasks such as the storage, forwarding, publication of data,
Based on important composition indispensable in client/server (C/S) mode or browser/server (B/S) mode network
Part.
One or more clients 201 provide local service as the object serviced in group system for client, the visitor
Family end may include one or more terminal, if the terminal can support foregoing description WINDOWS operating system and
Mac system, f, the terminal may include: memory 20111, processor 20112, input unit 20114, show referring to fig. 2
Show the components such as unit 20115, power supply 20116 and one or more network interface cards 20113.Wherein, memory 20111 can be used for storing
Data, software program and module, mainly include storing program area and storage data area, and storing program area can store operation system
Application program needed for system, at least one function etc..Power supply module 20116 is used to provide power supply for the various components of client;
Input unit 20114 is used for the operational order to client input user;One or more network interface cards 20113 are used in node 203
Network interface card and client between form session channel, so as to transmission services.
Based on the description above, as shown in figure 3, the embodiment of the present invention provides a kind of more session channel method for building up, the party
Method is applied in group system as shown in Figure 2 a, which includes client and at least two nodes, wherein the visitor
Family end includes at least two network interface cards, and each node includes at least one network interface card at least two node, and the embodiment of the present invention mentions
Supply more session channel method for building up include:
S301, client send the first TCP (Transmission Control Protocol, transmission control to source node
Agreement) link setup request, wherein source node is the node communicated with client.
S302, source node are requested according to above-mentioned first TCP link setup, generate the first TCP connection information.
S303, client send the first negotiation request message to source node, which is used to indicate source
Protocol version when node selection client and source node are communicated.
Illustratively, the protocol version when client in the embodiment of the present invention and source node are communicated is SMB3.0
Agreement.
S304, source node determine agreement version when client and source node are communicated according to the first negotiation request message
This number.
S305, client send the first certification message to source node, which includes the user name of client,
Group belonging to user SID (secure identifier, Security Identifiers), user password and user.
S306, source node generate the first session information (session) according to the first certification message.
Wherein, it is carried in first session information user security identifiers (SID, Security Identifiers),
User name, user's domain name, subscriber group information and first passage information belonging to user.
Specifically, first session information is the user name and user that source node carries in determining the first certification message
What the information such as password generated when all meeting the requirements, with the session channel of first session information after the generation of the first session information
Also it will generate, i.e. the first session channel, and include the TCP connection information of first session channel, first meeting in the session channel
The session identification and first key key1 of session information bound in talking path.
By MutilChannel characteristic, client can be raw from different network interface cards respectively by multiple TCP connections simultaneously
At the first session channel about above-mentioned first session information, to form more session channels, while a client can be simultaneously
Multiple Shared Folders are accessed, client accesses the information relevant with this Shared Folders generated when each Shared Folders i.e.
Referred to as TREE information, under the scene of multichannel, although client realizes business access, session by different nodes
Information and session channel are one-to-many relationships, i.e., therefore a session information can work as client to a session channel is coped with
When being accessed by different session channels, if the session information of these session channels is identical, client is logical by these sessions
Road accesses the same Shared Folders, will generate the same TREE information.And if it is multiple Shared Folders are accessed, it will
Generate multiple TREE information.
S307, source node send the session identification for being used for unique identification first session information to client.
Illustratively, which can be the session id of the first session information.
Exemplary, the session id of the first session information in the embodiment of the present invention can be using structure as shown in fig. 4 a.
Wherein, the digit of the session id of first session information is 64bit (bit), the specific 64bit=22bit (random number)+
32bit (sequence number)+10bit (node identification).
ID=22bit (random number)+32bit (sequence number)+10bit (section of each TREE information in the embodiment of the present invention
Point identification).
Wherein, node identification refers to the mark that the node of the first session information is generated with client.
Wherein, a session channel refers to client by building between a network interface card and a network interface card of any one node
The channel for being used for transmission business generated after vertical session information.Illustratively, S301- through the above steps of the embodiment of the present invention
S307 forms a session channel between a network interface card of client and a network interface card of source node, in conjunction with Fig. 2 a, is such as scheming
In 4b, a session channel 10 is formed between the network interface card 2011 of client 201 and the network interface card 2021 of source node 202, the session is logical
Road 10 is for carrying out service interaction between client 201 and source node 202.
S308, client send the first query messages to source node, which is used to indicate source node inquiry
The network interface card information at least one network interface card that each node includes;Source node is to be communicated at least two nodes with client
Node;The network interface card information at least one network interface card that each node includes is stored in source node.
S309, source node receive the first query messages that client is sent.
Specifically, can be obtained from the cluster management module of source node after source node receives the first query messages
Take the network interface card information at least one network interface card that each node includes in group system.
Illustratively, source node can obtain at least one that each node includes from the InfoEqualizer module of itself
The network interface card information of a network interface card, for example, network interface card quantity, the MAC (Media of node identification and network interface card rate, network interface card where network interface card
Access Control or Medium Access Control, media access control, or be physical address, hardware address)
Address, IP address, network card status.
S310, source node send the network interface card information at least one network interface card for including including each node to client.
A network interface card is arbitrarily selected in the network interface card information at least one network interface card that each node of S311, client includes.
It illustratively, include the network interface card 2021 of node 202 in the network interface card information at least one network interface card that each node includes
With the network interface card of the network interface card information of network interface card 2022, the network interface card information of the network interface card 2031 of node 203 and network interface card 2032 and node 204
2041 and network interface card 2042 network interface card information, client arbitrarily selects a network interface card from the network interface card that the network interface card information indicates, for example,
Network interface card 2031, due to including the mark of node where the network interface card 2031 in the network interface card information of the network interface card 2031, client
After selecting a network interface card, it can know that it needs to re-establish the mark of the destination node of connection.
It should be noted that if having been set up between a network interface card A of client and a network interface card A ' of source node
One session information, then a session channel is just formed between a network interface card A of client and a network interface card A ' of source node,
Therefore, client can send the first query messages to source node by the session channel formed between network interface card and network interface card A ', with
Obtain group system in each node network interface card information, client obtain group system in each node network interface card information it
Afterwards, on the one hand, if there is also other network interface cards except inter nic A ' in source node, for example, network interface card B ', then client can also be from
The network interface card (for example, network interface card B ') in source node except inter nic A ' is selected in group system in the network interface card information of each network interface card
Session channel is established, at this point it is possible to remaining network interface card at least two network interface cards of client except inter nic A be established, for example, net
Block session channel (wherein, mode for establishing session channel specifically: client is to source between the B and network interface card B ' of source node
The network interface card B ' of node sends new TCP link setup request, and the mark based on the first session information is authenticated, after certification passes through
Just new session channel is formed between network interface card B and network interface card B ', client can be by between new session channel and source node
Access business, while bigger network throughput being externally provided), to form more session channels between client and source node.
In this way, any one network interface card is abnormal in the network interface card A of client and the network interface card A ' of source node, alternatively, the network interface card A of client and source
When TCP link setup between the network interface card A ' of node interrupts, client can be by forming between network interface card B and the network interface card B ' of source node
Session channel continues to carry out business transmission between source node, to prevent service disconnection.
In addition, being merely able to carry out in individual node in the more session channels formed between above-mentioned client and source node
The operational sustainability of net card failure scene, for example, if any one network interface card is different in the network interface card A of the client and network interface card A ' of source node
When TCP link setup often or between the network interface card A of client and the network interface card A ' of source node interrupts, client is saved by network interface card B and source
The session channel formed between the network interface card B ' of point continues to carry out business transmission between source node, still, when source node failure,
Business between client and source node can interrupt.Meanwhile only rely on source node and node (for example, source node) it
Between form more session channels, so that the handling capacity between client and group system still is limited to the network interface card number of node
Amount.
Based on the above issues, the business transmission in order to prevent after source node failure, between client and group system
It interrupts, it is preferred that client selects the network interface card except source node to build from the network interface card information of each network interface card in the embodiment of the present invention
Vertical session channel, accordingly even when in source node failure, the client also business in accessible group system, while client
Handling capacity between group system is not limited to the quantity of the network interface card of source node.
Exemplary, client can select network interface card 2042 from the network interface card information of each network interface card, then pass through the network interface card
2042 send the request of TCP link setup to interchanger.
S312, client by its selected network interface card to interchanger send TCP link setup request so that interchanger according to
The network interface card determines the destination node where the network interface card, and TCP link setup request is sent to destination node;The destination node is extremely
Any one node in few two nodes in addition to source node.
S313, determining between destination node after the success of TCP link setup in client, client sends to destination node and connects
Establish request.
Wherein, the connection establish request in carry user name, user password, the first session information session identification and
Flag bit, which, which is used to indicate the destination node connection, which establishes request, is the re-authentication to the first session information or removes
The certification request that remaining client except above-mentioned client is initiated.
S314, destination node receive the connection that client is sent and establish request.
Request is established in the connection that S315, destination node are sent according to client, by target network interface card establish destination node and
Session channel between client.
Specifically, user name, the user password, the first session information that request also carries client request are established in the connection
Session identification and flag bit (also known as: bond flag bit).Firstly, session identification of the destination node according to the first session information
It obtains the first session information and (when source node failure, first in first node is backed up from acquisition source node in first node
Session information), and by the first session information storage to destination node, then destination node asks the first certification that client is sent
It asks the username and password carried in message to be verified, the second session for carrying the second secret key Key2 is generated after upchecking
Channel, then destination node determines that first authentication request message is the re-authentication to new session channel according to bond flag bit
Remaining client except request or above-mentioned client re-establishes session channel, if again to new session channel
Certification request then binds second session channel and the first session information, so that first session information corresponding two
A session channel, i.e. the first session channel and the second session channel, in this way when client passes through the first session channel and the second meeting
Talking path accesses the same Shared Folders, will generate the same TREE information.And if it is accessing multiple Shared Folders,
Multiple TREE information will be generated.
Wherein, when TREE information refers to client and accesses using user name that some is shared, storage it is relevant
Information, including Share Permissions, shared name, overlapping trees etc..The TREE information relevant information exclusive for a share directory, packet
Contain this and shares the relevant file handle information of following multiple file destinations.
S308-S309 forms one between client and a network interface card of source node to the embodiment of the present invention through the above steps
A more session channels, as formed more than one between the network interface card 2012 of the client 201 in Fig. 4 b and the network interface card 2042 of source node 204
Session channel 20, more session channels 20 are for carrying out service interaction between client 201 and source node 204.
The embodiment of the present invention provides a kind of more session channel method for building up, receives being used for for client transmission by source node
Indicate that source node inquires the first query messages of the network interface card information at least one network interface card that each node includes;Source node is at least
The node communicated in two nodes with client;The net at least one network interface card that each node includes is stored in source node
Card information;Source node sends the network interface card information at least one network interface card that each node includes to client;Destination node is according to visitor
Request is established in the connection that family end is sent, and establishes the session channel between destination node and client, target section by target network interface card
Point is the node where target network interface card, and target network interface card is that the network interface card at least one network interface card that client includes is believed according to each node
Cease the network interface card selected from least one network interface card that each node includes.Since the practical capacity of single network interface card is limited, so such as
Fruit network interface card quantity is fewer, and the session channel quantity established between client and node is also fewer, client and group system it
Between the extreme bandwidth that can transmit it is also fewer;Conversely, network interface card is more, the total bandwidth that can be provided is more, therefore, client
It, can be with multiple nodes in group system (for example, source is saved when using the business of MutilChannel characteristic access collection group
Point and destination node) between establish session channel, such as establish the session channel between source node and the network interface card of client, establish
Network transfer between group system and client can be improved in session channel between target network interface card and client NIC in this way
Wide handling capacity.If source node failure simultaneously, client can be chosen normal node (for example, destination node), and according to target
The session channel established between the target network interface card of node carries out business transmission, to guarantee the industry between client and group system
Business continues not interrupt, and greatly improves the performance of whole system external.
It should be noted that the embodiment of the present invention can be permitted in the network interface card quantity of client by the above method
In the case of, session channel can be being formed between the network interface card of a node in each network interface card and group system of client,
A session channel can be formed between a network interface card of client and a network interface card of source node, in the another two of client
Other session channels are formed between network interface card and two network interface cards of destination node.
Optionally, before step S309, method provided in an embodiment of the present invention further include:
S309-1, source node receive the first broadcast message that each node in group system in addition to source node is sent;
First broadcast message includes the network interface card information at least one network interface card that node includes.
Source node is removed in the network interface card information and group system of at least one network interface card that source node is included by S309-2, source node
Except the network interface card information of each node at least one network interface card for including be stored in source node.
Optionally, as shown in figure 5, before step S308, method provided in an embodiment of the present invention further include:
S316, source node send the sentence for obtaining file handle (File Handle, file handle) information to client
Handle mark.
Handle in the embodiment of the present invention be identified as it is any can with the mark of unique identification this document handle information, for example,
The ID or IP of this document handle information.The embodiment of the present invention is to this without limiting.
Wherein, node generates filename, file category when opening file according to the access request of client in memory
The information of property, file permission and file path, referred to as file handle information.When restoring again, due to not needing to open text
Part, therefore read write command is sent, file handle information is directly found according to mark.
In file I/O, data are read from a file, application program first has to call operation system function and transmits
Filename, and a path to this document is selected to open this document.The function fetches a serial number, i.e. file handle
(file handle) information, this document handle are unique basis of characterization for open file.One piece is read from file
Data, application program need to call function ReadFile, and by the address of file handle in memory and the byte number to be copied
Send operating system to.This document is closed after completion task, then through calling system function.Text in the embodiment of the present invention
Part handle information refers to node by open to the file destination under target shared file the/information that generates of read/write.
S317, source node send file handle information to first node;The first node is source section at least two nodes
The corresponding node of point.
Wherein, the first node in the embodiment of the present invention can be above-mentioned destination node, or except destination node it
Remaining outer node.
Optionally, as shown in fig. 6, further including S318 before step S317 in the embodiment of the present invention:
S318, source node determine the corresponding first node of source node from least two nodes.
Exemplary, the step S318 in the embodiment of the present invention can be accomplished by the following way:
S3181, source node obtain the nodal information of remaining node at least two nodes in addition to source node.
For example, source node obtains the node serial number of each node at least two nodes in addition to source node.
S3182, source node are according to the nodal information of remaining node at least two nodes in addition to source node, according to pre-
If regular, first node is determined from remaining node at least two nodes in addition to source node.
Illustratively, every in multiprocessing system of the node 202 according to the acquisition of cluster management module 2023 on the node 202
The nodal information of a node is (for example, cluster management module 2023 obtains the nodal information of node 203, cluster management module 2023
The nodal information of node 204 is obtained, cluster management module 2023 obtains the nodal information of node 205).
Illustratively, the embodiment of the present invention illustrates so that cluster management module 2023 obtains the nodal information of node 203 as an example:
Then node 202 is according to preset rules (for example, consistency hash algorithm or preset node cycle) from least two nodes
First node (for example, node 203) of the node as source node is selected in remaining node in addition to source node, then,
Node 202, by the file handle information back-up of above-mentioned generation to node 203, then returns to file handle information by back-end network
Handle identify to client.
The embodiment of the present invention determines the mode of the corresponding first node of source node not to source node from least two nodes
It is defined.
It further include node relationships view in the embodiment of the present invention, which can store on each node,
Also it can store in group system, or be stored in outside group system, for storing each node in the node relationships view
Corresponding first node, so that each node can determine the node corresponding first by accessing the node relationships view
Node.Illustratively, as shown in Figure 7a, the node relationships view can be circular relation view, node 202, node 203 and
Node 204, four nodes one ring-shaped counter relationships of formation, node 202- > node 203- > node 204- > node 202, i.e.,
Node 202 is by All Files handle information back-up to node 203, and node 203 is by All Files handle information back-up to node
On 204, and so on, details are not described herein for the embodiment of the present invention.
It is shown in Fig. 7 b and backup is provided between each node and the backup node of oneself provided in the embodiment of the present invention
The timing diagram of file handle information, in actual use, a group system can have multiple nodes and client, this hair
Bright embodiment only illustrates by taking a client and three nodes as an example, illustratively, as shown in Figure 7b, first client to
NODE1 sends opening file request and (carries the session information generated between the mark and client and NODE1 of TREE information
Mark), the opening file request that NODE1 is sent according to client generates file handle information, then NODE1 in NODE1
By the corresponding backup node NODE2 of node relationships view query NODE1, then by this document handle information to its backup node
NODE2 is sent, and NODE2 backs up this document handle information in its memory, sends the text of NODE1 after backup to NODE1
The successful message of part handle information back-up, meanwhile, NODE1 sends the handle mark of file handle information to client, so that
Client is written and read the file handle information in NODE1 according to handle mark;Similarly, client sends to NODE3 and opens
File request, then NODE3 generates file handle information according to the opening file request in NODE3, then inquires the NODE3
Backup node, when the backup node for determining the NODE3 is NODE1, the file handle information that then will be generated in NODE3
It backs up in NODE1, then NODE1 returns to the successful message of file handle information back-up to NODE3, and NODE3 is sent out to client
The handle of file handle information is sent to identify, client can be identified according to the handle and be carried out to the file handle information in NODE3
Access.Similarly, file handle information generated for NODE2, the process for then backing up file handle information and NODE1 with
NODE3 is identical, and details are not described herein for the embodiment of the present invention.
It should be noted that the present invention is also backed up to TREE information in embodiment, specific each node pair
TREE information backup may refer to Fig. 7 c, and as shown in Figure 7 c, client is sending opening Shared Folders request to NODE1,
TREE information is then generated in its memory after NODE1 receives Shared Folders request, and inquires the backup node of NODE1
NODE2, and the TREE information backed up is sent to NODE2, the mark of TREE information is then sent to client again, works as client in this way
End is when requesting access to the file destination in NODE1, carried in the opening file request sent TREE information mark and
The mark of the session information generated between client and NODE1 when file destination in client request accessed node, needs to lead to
It crosses TREE information and determines Shared Folders where this document, can realize the access to file destination in this way.Similarly, for
NODE2 and NODE3 generates TREE information, and the process for then backing up TREE information is identical with NODE1, the embodiment of the present invention
Details are not described herein.
Optionally, as shown in Figure 8 a, the embodiment of the present invention further includes step S319-S323 before step S316:
S319, client send the first access request message to source node, and first access request message is for accessing mesh
Mark Shared Folders.
Wherein, targeted shared folder refers to that node is that some folder path of itself configures a shared name, visitor
When family end accesses the node by network using SMB agreement, the file that can be shown, the title of file is exactly to configure
Shared name.Targeted shared folder essence, which is equivalent to, is provided as client passes through network access node own files path one
A entrance.
By taking two Windows systems as an example, one of Windows system is client, another Windows system is
Node.Node wishes the file destination that client is able to access that below node local disk, illustratively, the file destination
Path be D: A B C.txt.Wherein, D is the disk on node, configures one altogether for file B in this way on node
It enjoys, entitled SHARE (shared) _ B.When client is accessed by network in this way, it is seen that be a SHARE_B target
Shared Folders can see file destination C.txt after then double-clicking into the targeted shared folder of this SHARE_B.
S320, source node open targeted shared folder according to first access request message, and generate TREE information.
S321, source node send the mark of above-mentioned TREE information to client.
The mark of TREE information is used for the unique identification TREE information in the embodiment of the present invention.Illustratively, which believes
The mark of breath can be the ID of the TREE information.
S322, client send the second access request message to source node, and second access request message is for accessing mesh
Mark file.
Optionally, the session identification or TREE letter of above-mentioned first session information are carried in second access request message
The mark of breath.
S323, source node generate the file handle information of file destination according to opening file destination.
File handle information in the embodiment of the present invention is identified as 64bit, specifically, as shown in Figure 8 b, this document sentence
The structure of the mark of handle information includes random number 22bit, sequence number 32bit and node identification 10bit.
Wherein, node identification refers to the file handle letter generated according to the second data access request message that client is sent
The mark of the node of breath, for example, the number of source node.
Optionally, before step S310, method provided in an embodiment of the present invention further includes step S324 and step S325:
Remaining node of S324, source node at least two nodes in addition to source node sends the first broadcast message, should
First broadcast message includes the nodal information of source node.
Illustratively, it includes source node that remaining node of the source node at least two nodes in addition to source node, which is sent,
The nodal information of network interface card information (for example, network interface card rate, network interface card IP) and node state.
S325, source node receive the node for the node that each node at least two nodes in addition to source node is sent
Information.
In source node failure, group system framework as illustrated in fig. 9, due to source node failure, source node is (i.e.
Node 202 in Fig. 9 a) in all network interface cards and client at least two network interface cards between the session channel established all interrupt,
But since the network interface card of client 201 also has session with destination node (i.e. node 204 in Fig. 9 a) foundation in group system
Channel, i.e. the foundation of network interface card 2041 of the network interface card 2011 and node 204 of client 201 has session channel 901, client in Fig. 9 a
The foundation of network interface card 2042 of 201 network interface card 2012 and node 204 has session channel 902, and therefore, client 201 can also pass through meeting
Talking path 901 and 902 is communicated with node 204, to carry out reading data manipulation/data writing operation to file handle information.With
Under will be discussed in detail in source node failure in conjunction with Fig. 9 b- Fig. 9 d, the switching flow of group system interior nodes.(dotted line in Fig. 9 a
The session channel established between the network interface card 2011 of client and the network interface card of any one node in group system is indicated, in Fig. 9 a
Solid line indicates the session channel established between the network interface card of any one node in the network interface card 2012 and group system of client).
Optionally, as shown in figure 9b, after the step s 315, method provided in an embodiment of the present invention further include:
S326, client send the first data access request message, the first data access request message to destination node
In carry unique identification file handle information handle mark and TREE message identification.
Wherein, the first data access request is including reading data command or writing data command.
S327, destination node receive the first data access request message that client is sent.
The handle mark that S328, destination node are carried according to the first data access request message obtains file handle information.
S329, destination node are executed according to file handle information reads data manipulation or data writing operation.
Since the destination node in the embodiment of the present invention is likely to be the first node of source node, it is possible to not be source node
First node, when destination node is the first node of source node and when destination node is not the first node of source node, mesh
The mode difference that node obtains file handle information is marked, therefore, is illustrated below in conjunction with details:
On the one hand, when destination node is the first node of source node, i.e., file handle information is stored in destination node.
Therefore, as is shown in fig. 9 c, step S328 can specifically be accomplished by the following way:
S3281A: destination node directly acquires file handle information according to handle mark from the memory of destination node.
On the other hand, when destination node is not the first node of source node, i.e., there is no storage file handle in source node
Information.
Therefore, as shown in figure 9d, step S328 can specifically be accomplished by the following way:
S3281B, destination node parse handle mark, determine the mark for being stored with the source node of file handle information
Know.
By above content, the indicated text of handle mark is generated it is recognised that carrying in handle mark in conjunction with Fig. 8 b
The mark of the node of part handle information, therefore, destination node can determine generation file by parsing to handle mark
The mark of the source node of handle information.
S3282B, destination node send the request of inquiry file handle information to source node, and this document handle information is asked
Handle mark is carried in asking
When determining source node failure, destination node determines the corresponding first node of source node for S3283B, destination node, should
First node, which is used to be identified according to the handle of client, provides file handle information.
Wherein, destination node determines that the mode of the corresponding first node of source node can be obtained from relational view, this hair
Bright embodiment is to this without limiting.
Exemplary, destination node can determine in the following manner source node failure:
After destination node sends the first request message to source node, if not receiving the source node within a preset time
The response message of transmission, then destination node determines source node failure.
Exemplary, destination node can determine the corresponding first segment of source node in the following manner in the embodiment of the present invention
Point:
Destination node determines the corresponding first node of source node from node relationships view.
S3284B, destination node obtain file handle information from first node.
S3285B, destination node carry out write/read data to file according to file handle information.
Step S3284B can specifically be accomplished by the following way:
S3284B1, destination node send the first request message to first node, which is used to indicate first
Node returns to file handle information.
Specifically, should include the handle mark of file handle information in first request message.
S3284B2, destination node receive the first response message that first node is sent, and carry in first response message
File handle information.
Optionally, it includes user name and user password, the step S315 tool in the embodiment of the present invention that request is established in connection
Body can be accomplished by the following way:
The user name and user password that S3151, destination node send client verify.
S3152, determining that user name matches with preset user name, and user password matches it with preset user password
Afterwards, destination node establishes the session channel between destination node and client by target network interface card.
Specifically, it includes session identification and flag bit in request that connection, which is established, session identification is used for unique identification first
Session information, the first session information generate when being the session channel established between the source node and the client, mark
Position is used to indicate to the re-authentication for establishing session channel between the source node and the client;After the step s 315,
Method provided in an embodiment of the present invention further include:
S316, destination node parse session identification, determine the mark for generating the source node of the first session information.
Specifically, due to including the number for generating the node of the session information in the session identification, destination node is logical
Cross the mark for being parsed to the session identification and can determine source node.
S317, destination node send the first request message to source node, to obtain indicated by session identification from source node
First session information.
S318, destination node are bound the second session channel and the first session information, described second according to the flag bit
Session channel is that the destination node passes through the meeting between the target network interface card destination node established and the client
Talking path.
Exemplary, client selects any network interface card (if network interface card of Node3) to re-initiate the request of TCP link setup, link setup at
After function, client initiates the request of re-authentication session to Node3 by carrying original ID with the session of Node1 foundation.
The node serial number for including in the session id that Node3 is carried by client identifies that the origin node of this session is Node1, then
Relevant session information is copied above Node1 by back-end network, same session information is created above out in Node3, weight
New authen session process is completed, and more session channel successes are established.
It is above-mentioned that mainly scheme provided in an embodiment of the present invention is described from the angle of interaction between each network element.It can
With understanding, in order to realize the above functions, it comprises hold for each network element, such as source node, destination node, first node etc.
The corresponding hardware configuration of each function of row and/or software module.Those skilled in the art should be readily appreciated that, in conjunction with herein
Disclosed in embodiment description each exemplary unit and algorithm steps, the present invention can be soft with hardware or hardware and computer
The combining form of part is realized.Some functions is executed in a manner of hardware or computer software driving hardware actually, is depended on
In the specific application and design constraint of technical solution.Professional technician can carry out using difference each specific application
Method realizes described function, but such implementation should not be considered as beyond the scope of the present invention.
The embodiment of the present invention can carry out function to source node, destination node and first node etc. according to above method example
The division of module, for example, each functional module of each function division can be corresponded to, it can also be by two or more functions
It is integrated in a processing module.Above-mentioned integrated module both can take the form of hardware realization, can also use software function
The form of energy module is realized.It should be noted that be to the division of module in the embodiment of the present invention it is schematical, it is only a kind of
Logical function partition, there may be another division manner in actual implementation.
In the case where each function division of use correspondence each functional module, Figure 10 a shows institute in above-described embodiment
A kind of possible structural schematic diagram for the source node being related to, source node 100 include: that the first receiving unit 101 and first is sent
Unit 102, the first receiving unit 101 is for supporting source node to execute the process S309 in Fig. 3;Process S309 in Fig. 5;Fig. 6
In S309, the S309 in Fig. 8 a and Fig. 9 b;First transmission unit 102 for supporting source node to execute the process S310 in Fig. 3,
Process S310 in Fig. 5;The process S310 in process S310 and Fig. 8 a and Fig. 9 b in Fig. 6.Wherein, the above method is implemented
All related contents for each step that example is related to can quote the function description of corresponding function module, and details are not described herein.
Using integrated unit, Figure 10 b shows one kind of source node involved in above-described embodiment
Possible structural schematic diagram.Source node 100 includes: processing module 1002 and communication module 1003.Processing module 1002 for pair
The movement of source node 100 carries out control management, for example, the process that processing module 1002 is used to that source node 100 to be supported to execute in Fig. 3
S302, S304, S306 and S309, S302, S304, S306 and S309 in Fig. 5;Process S302, S304 in Fig. 6,
S306, S309 and S316, the process S302, S304, S306, S309 in Fig. 8 a, S318, S320 and S323, in Fig. 9 b
Process S302, S304, S306, S309, S318, S320 and S323, and/or other mistakes for techniques described herein
Journey.Communication module 1002 is used to support the communication of source node 100 Yu other network entities, (for example, client, destination node, the
One node etc.), communication module 1003 is used to that source node 100 to be supported to execute such as the process S307 and process S310 in Fig. 3;Fig. 5
In process S307, S310, S316 and process S307, S310, S316 and process S317, Fig. 8 a in process S317, Fig. 6
In process S307, S310, S316 and process S317.Source node 100 can also include memory module 1001, be used for storage source
The program code and data of node 100.
Wherein, processing module 1002 can be processor or controller, such as can be central processing unit (Central
Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP),
Specific integrated circuit (Application-Specific Integrated Circuit, ASIC), field programmable gate array
It is (Field Programmable Gate Array, FPGA) or other programmable logic device, transistor logic, hard
Part component or any combination thereof.It may be implemented or execute to combine and various illustratively patrol described in the disclosure of invention
Collect box, module and circuit.The processor is also possible to realize the combination of computing function, such as includes one or more micro- places
Manage device combination, DSP and the combination of microprocessor etc..Communication module 1003 can be transceiver, transmission circuit or communication interface
1013 etc..Memory module 1001 can be memory.
When processing module 1002 is processor 1012, communication module 1003 is communication interface 1013, and memory module 1001 is
When memory, source node involved in the embodiment of the present invention can be source node shown in Figure 10 c.
Refering to fig. 1 shown in 0c, the source node 100 include: processor 1012, communication interface 1013, memory 1011 and
Bus 1014.Wherein, communication interface 1013, processor 1012 and memory 1011 are connected with each other by bus 1014;Bus
1014 can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or extension work
Industry normal structure (Extended Industry Standard Architecture, EISA) bus etc..The bus can divide
For address bus, data/address bus, control bus etc..Only to be indicated with a thick line in Figure 10 c convenient for indicating, it is not intended that
Only a bus or a type of bus.
In the case where each function division of use correspondence each functional module, Figure 11 a shows institute in above-described embodiment
A kind of possible structural schematic diagram for the destination node being related to, destination node 11 include: the first receiving unit 110, and are established
Unit 111.First receiving unit 110 is schemed for supporting destination node to execute the process S314 in process S314, Fig. 5 in Fig. 3
The process S314 in process S314 and Fig. 9 b in process S314, Fig. 8 a in 6;Unit 111 is established for supporting target section
Point executes the process S315 in Fig. 3, process S315 and figure in the process S315 in the process S315 in Fig. 5, Fig. 6, Fig. 8 a
Process S315 in 9b.Wherein, all related contents for each step that above method embodiment is related to can quote correspondence
The function of functional module describes, and details are not described herein.
Using integrated unit, Figure 11 b shows one of destination node involved in above-described embodiment
The possible structural schematic diagram of kind.Destination node 11 includes: processing module 1102 and communication module 1103.Processing module 1102 is used for
Control management is carried out to the movement of destination node, for example, processing module 1102 is for supporting destination node to execute the process in Fig. 3
Process S314 in process S314 and S315 in process S314 and S315 in S314 and S315, Fig. 5, Fig. 6, Fig. 8 a and
S314 and S315, S327 and process S327, S328 and S329 in S328 and Fig. 9 c in S315 and Fig. 9 b, and/or use
In other processes of techniques described herein.Communication module 1103 is used to support the logical of destination node and other network entities
Letter, for example, with it is logical between functional module or network entity shown in Fig. 3, Fig. 5, Fig. 6, Fig. 8 a and Fig. 9 a, Fig. 9 b and Fig. 9 c
Letter, for example, client, source node and first node.Destination node can also include memory module 1101, be used for storage source section
The program code and data of point.
Wherein, processing module 1102 can be processor or controller, such as can be central processing unit (Central
Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP),
Specific integrated circuit (Application-Specific Integrated Circuit, ASIC), field programmable gate array
It is (Field Programmable Gate Array, FPGA) or other programmable logic device, transistor logic, hard
Part component or any combination thereof.It may be implemented or execute to combine and various illustratively patrol described in the disclosure of invention
Collect box, module and circuit.The processor is also possible to realize the combination of computing function, such as includes one or more micro- places
Manage device combination, DSP and the combination of microprocessor etc..Communication module 1103 can be transceiver, transmission circuit or communication interface
1113 etc..Memory module 1101 can be memory.
When processing module 1102 is processor, communication module 1103 is communication interface 1113, and memory module 1101 is storage
When device, destination node involved in the embodiment of the present invention can be destination node shown in Figure 11 c.
Refering to fig. 1 shown in 1c, the destination node 11 include: processor 1112, communication interface 1113, memory 1111 and
Bus 1114.Wherein, communication interface 1113, processor 1112 and memory 1111 are connected with each other by bus 1114;Bus
1114 can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or extension work
Industry normal structure (Extended Industry Standard Architecture, EISA) bus etc..The bus can divide
For address bus, data/address bus, control bus etc..Only to be indicated with a thick line in Figure 11 c convenient for indicating, it is not intended that
Only a bus or a type of bus.
In the case where each function division of use correspondence each functional module, Figure 12 a shows institute in above-described embodiment
A kind of possible structural schematic diagram for the node being related to, node include: the first receiving unit 1201, storage unit 1202.First
For supporting first node to execute the process S329 in Fig. 9 b, storage unit 1202 executes receiving unit 1201 for supporting node
Process S330 in Fig. 9 b.Wherein, it is right that all related contents for each step that above method embodiment is related to can be quoted
The function of functional module is answered to describe, details are not described herein.
Using integrated unit, one kind that Figure 12 b shows node involved in above-described embodiment can
The structural schematic diagram of energy.Node 120 includes: processing module 1212 and communication module 1213.Processing module 1212 is used for node
120 movement carries out control management, for example, processing module 1212 for supporting node execute process S330 in Fig. 9 b and
S331;And/or other processes for techniques described herein.Communication module 1213 is for supporting node 120 and other nets
The communication of network entity, for example, with the communication shown in Fig. 8 a and Fig. 9 b between functional module or network entity (for example, target
Node and source node), communication module 1213 receives the first broadcast message for supporting node 120 and receives file handle information
And receive the first request message.Node 120 can also include memory module 1211, the program code for memory node 120
And data.
Wherein, processing module 1212 can be processor or controller, such as can be central processing unit (Central
Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP),
Specific integrated circuit (Application-Specific Integrated Circuit, ASIC), field programmable gate array
It is (Field Programmable Gate Array, FPGA) or other programmable logic device, transistor logic, hard
Part component or any combination thereof.It may be implemented or execute to combine and various illustratively patrol described in the disclosure of invention
Collect box, module and circuit.The processor is also possible to realize the combination of computing function, such as includes one or more micro- places
Manage device combination, DSP and the combination of microprocessor etc..Communication module 1213 can be transceiver, transmission circuit or communication interface
12002 etc..Memory module 1211 can be memory.
When processing module 1212 is processor, communication module 1213 is communication interface 12002, and memory module 1211 is storage
When device, node involved in the embodiment of the present invention can be node shown in Figure 12 c.
Refering to fig. 1 shown in 2c, the node 120 include: processor 12001, communication interface 12002, memory 12003 and
Bus 12004.Wherein, communication interface 12002, processor 12001 and memory 12003 are connected with each other by bus 12004;
Bus 12004 can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or
Expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The bus
Address bus, data/address bus, control bus etc. can be divided into.Only to be indicated with a thick line in Figure 12 c, but simultaneously convenient for indicating
Only a bus or a type of bus are not indicated.
In the case where each function division of use correspondence each functional module, Figure 13 a shows institute in above-described embodiment
A kind of possible structural schematic diagram for the client being related to, client include: the first transmission unit 130, receiving unit 131 and
Second transmission unit 132.First transmission unit 130 be used to support S308 in process S308, Fig. 5 in client executing Fig. 3,
The S308 in S308 and Fig. 9 b in S308 in Fig. 6, Fig. 8 a, receiving unit 131 is for supporting client to receive source node hair
The first response message sent, the second transmission unit, for supporting the process in process S312, Fig. 5 in client executing Fig. 3
The process S312 in process S312 and Fig. 9 b in process S312, Fig. 8 a in S312, Fig. 6.Wherein, above method embodiment
All related contents for each step being related to can quote the function description of corresponding function module, and details are not described herein.
Using integrated unit, Figure 13 b shows one kind of client involved in above-described embodiment
Possible structural schematic diagram.Client 130 includes: processing module 1302 and communication module 1303.Processing module 1302 for pair
The movement of client 130 carries out control management, for example, the process that processing module 1302 is used to that client 130 to be supported to execute in Fig. 3
S301, S303, S305, S308, S311, S312 and S313, process S301, S303, S305, S308, S311 in Fig. 5,
Process in process S301, S303, S305, S308, S311, S312 and S313 in S312 and S313, Fig. 6, Fig. 8 a
S301, S303, S305, S308, S311, S312 and S313, process S301, S303, S305, S308, S311 in Fig. 9 b,
S312, S313 and S326;And/or other processes for techniques described herein.Communication module 1303 is for supporting visitor
The communication at family end 130 and other network entities, for example, with shown in Fig. 8 a and Fig. 9 b between functional module or network entity
It communicates (for example, destination node and source node).Client 130 can also include memory module 1301, for storing client 130
Program code and data.
Wherein, processing module 1302 can be processor or controller, such as can be central processing unit (Central
Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP),
Specific integrated circuit (Application-Specific Integrated Circuit, ASIC), field programmable gate array
It is (Field Programmable Gate Array, FPGA) or other programmable logic device, transistor logic, hard
Part component or any combination thereof.It may be implemented or execute to combine and various illustratively patrol described in the disclosure of invention
Collect box, module and circuit.The processor is also possible to realize the combination of computing function, such as includes one or more micro- places
Manage device combination, DSP and the combination of microprocessor etc..Communication module 1303 can be transceiver, transmission circuit or communication interface
1312 etc..Memory module 1301 can be memory.
When processing module 1302 is processor, communication module 1303 is communication interface 1312, and memory module 1301 is storage
When device, node involved in the embodiment of the present invention can be node shown in Figure 13 c.
Refering to fig. 1 shown in 3c, the client 130 include: processor 1311, communication interface 1312, memory 1313 and
Bus 1314.Wherein, communication interface 1312, processor 1311 and memory 1313 are connected with each other by bus 1314;Bus
1314 can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or extension work
Industry normal structure (Extended Industry Standard Architecture, EISA) bus etc..The bus can divide
For address bus, data/address bus, control bus etc..Only to be indicated with a thick line in Figure 13 c convenient for indicating, it is not intended that
Only a bus or a type of bus.
The embodiment of the present invention provides a kind of group system, and each component part in the client 130 specifically may refer to
Shown in Fig. 2 a, including source node, node and destination node, wherein destination node uses node as shown in figures 11a-11c,
Source node uses the node as shown in Figure 10 a-10c, and node uses the node as shown in Figure 12 a-12c, and client is using figure
Client shown in 13a-13c.
The embodiment of the invention provides a kind of computer storage mediums, for being stored as more sessions described in first aspect
Computer software instructions used in passage method, it includes programs designed by the group system for executing the 7th aspect.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function
The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds
Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above
Energy.The specific work process of the system, apparatus, and unit of foregoing description, can be with reference to corresponding in preceding method embodiment
Journey, details are not described herein.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (8)
1. a kind of more session channel method for building up, which is characterized in that the method is applied in group system, the group system
Including client and at least two nodes, wherein each node includes at least one network interface card, institute at least two node
The method of stating includes:
Source node receives the first query messages that the client is sent;First query messages are used to indicate the source node
Inquire the network interface card information at least one network interface card that each node includes;The source node be at least two node in
The node that the client is communicated;The net at least one network interface card that each node includes is stored in the source node
Card information;
The source node sends the network interface card information at least one network interface card that each node includes to the client;
Destination node establishes request according to the connection that the client is sent, and establishes the destination node and institute by target network interface card
The session channel between client is stated, the destination node is the node where the target network interface card, and the target network interface card is institute
State at least one that the network interface card information of at least one network interface card that client includes according to each node includes from each node
Network interface card other than the source node selected in network interface card.
2. the method according to claim 1, wherein sending each node to the client in the source node
Including at least one network interface card network interface card information before, which comprises
The source node receives the first broadcast message of the transmission of each node in the group system in addition to the source node;
First broadcast message includes the network interface card information at least one network interface card that the node includes;
Except described in the network interface card information at least one network interface card that the source node is included by the source node and the group system
The network interface card information at least one network interface card that each node except source node includes is stored in the source node.
3. method according to claim 1 or 2, which is characterized in that it includes user name and use that request is established in the connection
Family password;
The destination node establishes request according to the connection that the client is sent, and establishes the destination node by target network interface card
Session channel between the client, comprising:
The user name and user password that the destination node sends the client verify;
Determining that user name matches with preset user name, and after the user password is matched with preset user password, institute
State the session channel that destination node is established by the target network interface card between the destination node and the client.
4. according to the method described in claim 3, it is characterized in that, it includes session identification and mark in request that the connection, which is established,
Will position, the session identification be used for the first session information of unique identification, first session information be establish the source node and
Generated when session channel between the client, the flag bit be used to indicate to the source node and the client it
Between establish the re-authentication of session channel;
Before the first query messages that the source node receives that the client is sent, the method also includes:
The source node sends session identification to the client;
Correspondingly, the destination node establishes the session between the destination node and the client by the target network interface card
After channel, which comprises
The destination node parses the session identification, determines the mark for generating the source node of first session information
Know;
The destination node sends the first request message to the source node, to obtain the session identification institute from the source node
The first session information indicated;
The destination node is bound the second session channel and first session information, described second according to the flag bit
Session channel is that the destination node passes through the meeting between the target network interface card destination node established and the client
Talking path.
5. a kind of group system, which is characterized in that the group system includes client and at least two nodes, wherein institute
Stating each node at least two nodes includes at least one network interface card, and the client includes at least one network interface card, wherein
Source node is used to receive the first query messages that the client is sent;First query messages are used to indicate the source
The network interface card information at least one network interface card that each node includes described in querying node;The source node is at least two node
In the node that is communicated with the client;At least one network interface card that each node includes is stored in the source node
Network interface card information;And the network interface card information for sending at least one network interface card that each node includes to the client;
Request is established in the connection that destination node is used to be sent according to the client, establishes the destination node by target network interface card
Session channel between the client, the destination node are the node where the target network interface card, the target network interface card
The network interface card information at least one network interface card for including according to each node for the client from each node include at least
Network interface card other than the source node selected in one network interface card.
6. group system according to claim 5, which is characterized in that the source node is also used to: receiving the cluster system
The first broadcast message that each node in system in addition to the source node is sent;First broadcast message includes the node
Including at least one network interface card network interface card information;And the network interface card information of at least one network interface card for including by the source node
And the network interface card information of at least one network interface card that includes of each node in the group system in addition to the source node is stored in
In the source node.
7. group system according to claim 5 or 6, which is characterized in that the connection establish request include user name with
And user password;
The destination node is specifically used for: the user name and user password send to the client verifies;And it is used for
It is determining that user name matches with preset user name, and after the user password is matched with preset user password, is passing through institute
State the session channel that target network interface card is established between the destination node and the client.
8. group system according to claim 7, which is characterized in that the connection is established in request include session identification with
And flag bit, the session identification be used for the first session information of unique identification, first session information be establish source node and
It is generated when the session channel established between the client;The flag bit is used to indicate to the source node and the client
The session channel re-authentication established between end;
The source node is also used to send session identification to the client;
Correspondingly, the destination node is also used to: being parsed to the session identification, determine and generate first session information
Source node mark;And for sending the first request message to the source node, to obtain the meeting from the source node
Words identify the first indicated session information, carry session identification in the first request message;And for according to the mark
Position, the second session channel and first session information are bound, and second session channel passes through institute for the destination node
State the session channel between the destination node and the client of target network interface card foundation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611093738.2A CN106790420B (en) | 2016-11-30 | 2016-11-30 | A kind of more session channel method for building up and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611093738.2A CN106790420B (en) | 2016-11-30 | 2016-11-30 | A kind of more session channel method for building up and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106790420A CN106790420A (en) | 2017-05-31 |
CN106790420B true CN106790420B (en) | 2019-11-26 |
Family
ID=58882756
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611093738.2A Active CN106790420B (en) | 2016-11-30 | 2016-11-30 | A kind of more session channel method for building up and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106790420B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10447586B2 (en) * | 2017-06-01 | 2019-10-15 | Zte Corporation | Defect detection in IP/MPLS network tunnels |
CN110445826B (en) * | 2018-05-04 | 2021-11-30 | 阿里巴巴集团控股有限公司 | Session information acquisition method, device and server |
CN108848195A (en) * | 2018-09-04 | 2018-11-20 | 山东浪潮云投信息科技有限公司 | A kind of method that cross-platform long-range connection carries out more network card bindings |
CN110493340B (en) * | 2019-08-21 | 2023-08-04 | 北京小米移动软件有限公司 | Session method and device in distributed system |
CN111262868B (en) * | 2020-01-17 | 2021-04-06 | 中国科学院计算技术研究所 | Message sending method and receiving method based on intelligent network card |
CN111360269B (en) * | 2020-04-03 | 2022-05-06 | 浙江蓝天知识产权运营管理有限公司 | Multi-stage nanostructure reinforced laminated nickel-based composite material and preparation method thereof |
CN111901386B (en) * | 2020-06-30 | 2023-05-09 | 广东浪潮大数据研究有限公司 | Method, system, equipment and readable storage medium for processing remote files |
CN112469139B (en) * | 2020-12-02 | 2023-04-28 | 中国联合网络通信集团有限公司 | Network channel establishment system and method |
CN112506955B (en) * | 2020-12-10 | 2021-09-21 | 星环信息科技(上海)股份有限公司 | Query processing method, computer equipment and storage medium |
CN114968545A (en) * | 2021-02-24 | 2022-08-30 | 华为技术有限公司 | Network card, computing device and method for acquiring data |
CN113098857B (en) * | 2021-03-29 | 2022-06-28 | 西安微电子技术研究所 | Multi-channel communication method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571756A (en) * | 2010-12-06 | 2012-07-11 | 微软公司 | Multichannel connections in file system sessions |
CN102739411A (en) * | 2011-03-29 | 2012-10-17 | 微软公司 | Providing a witness service |
CN104125303A (en) * | 2014-08-12 | 2014-10-29 | 北京奇虎科技有限公司 | Data read-and-write requesting method, client end and data read-and-write requesting system |
CN105359105A (en) * | 2013-05-29 | 2016-02-24 | 微软技术许可有限责任公司 | Efficient programmatic memory access over network file access protocols |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9888064B2 (en) * | 2015-02-11 | 2018-02-06 | International Business Machines Corporation | Load-balancing input/output requests in clustered storage systems |
-
2016
- 2016-11-30 CN CN201611093738.2A patent/CN106790420B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571756A (en) * | 2010-12-06 | 2012-07-11 | 微软公司 | Multichannel connections in file system sessions |
CN102739411A (en) * | 2011-03-29 | 2012-10-17 | 微软公司 | Providing a witness service |
CN105359105A (en) * | 2013-05-29 | 2016-02-24 | 微软技术许可有限责任公司 | Efficient programmatic memory access over network file access protocols |
CN104125303A (en) * | 2014-08-12 | 2014-10-29 | 北京奇虎科技有限公司 | Data read-and-write requesting method, client end and data read-and-write requesting system |
Also Published As
Publication number | Publication date |
---|---|
CN106790420A (en) | 2017-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106790420B (en) | A kind of more session channel method for building up and system | |
CN108551464B (en) | Connection establishment and data transmission method, device and system of hybrid cloud | |
JP6452181B2 (en) | Load balancing internet protocol security tunnel | |
CN1578215B (en) | System and method for automatic negotiation of a security protocol | |
CN113364735B (en) | Data cross-link access control method, system, equipment and terminal under multi-link scene | |
CN110059055B (en) | File storage and reading method and device based on distributed private cloud | |
CN107800603B (en) | Intranet user accesses the method and storage medium of headend equipment based on VPN | |
CN110166414B (en) | Communication method, device and system | |
CN113472817B (en) | Gateway access method and device for large-scale IPSec and electronic equipment | |
CN106230870B (en) | Proprietary protocol document transmission system and method | |
CN102845123A (en) | Virtual private cloud connection method and tunnel proxy server | |
CN104662839B (en) | The link identification in multiple domains | |
CN110324227A (en) | Data transmission method and vpn server in a kind of vpn server | |
US20150127837A1 (en) | Relay apparatus and data transfer method | |
EP3229413A1 (en) | Cross-domain cooperative method, cooperative device and control device for network as a service business | |
CN106797384A (en) | Same endpoints in cluster are routed requests to different agreements | |
CN109495477A (en) | A kind of authentication method, equipment and system | |
CN103401751B (en) | Internet safety protocol tunnel establishing method and device | |
JP6393475B2 (en) | Communication adapter device, communication system, tunnel communication method, and program | |
CN111030914B (en) | Data transmission method and data transmission system | |
CN110430478B (en) | Networking communication method, device, terminal equipment and storage medium | |
CN106209680A (en) | Information processor and method | |
TW201818699A (en) | Data transmission method, equipment, device and system | |
CN114186213B (en) | Data transmission method, device, equipment and medium based on federal learning | |
CN106060155B (en) | The method and device of P2P resource-sharing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |