CN113612811A - Method, system, equipment and medium for client mounting in multiple channels - Google Patents

Method, system, equipment and medium for client mounting in multiple channels Download PDF

Info

Publication number
CN113612811A
CN113612811A CN202110682237.2A CN202110682237A CN113612811A CN 113612811 A CN113612811 A CN 113612811A CN 202110682237 A CN202110682237 A CN 202110682237A CN 113612811 A CN113612811 A CN 113612811A
Authority
CN
China
Prior art keywords
client
server
database
key value
vnn
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110682237.2A
Other languages
Chinese (zh)
Other versions
CN113612811B (en
Inventor
吴双艳
胡永刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202110682237.2A priority Critical patent/CN113612811B/en
Publication of CN113612811A publication Critical patent/CN113612811A/en
Application granted granted Critical
Publication of CN113612811B publication Critical patent/CN113612811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The invention discloses a method, a system, equipment and a storage medium for client mounting in multiple channels, wherein the method comprises the following steps: responding to a negotiation request sent by a client received by a server, and acquiring a global unique identifier of the client from the negotiation request; forming a sharing identifier by the global unique identifier and the IP address of the server, and converting the sharing identifier into a key value through a hash algorithm; judging whether records of the key values exist in a database or not; and responding to the record of the key value which does not exist in the database, writing the key value into the database, and establishing the connection between the server and the client to form mounting. The method and the device form the shared identification by the global unique identifier of the client and the IP address of the server, and convert the shared identification into the key value through the Hash algorithm, thereby reducing the probability of cluster access failure caused by the use of different servers in SMB service by the client.

Description

Method, system, equipment and medium for client mounting in multiple channels
Technical Field
The present invention relates to the field of distributed storage, and more particularly, to a method, system, computer device, and readable medium for client mount in multiple channels.
Background
In a distributed storage system, windows clients typically use samba services to access storage clusters. Samba will store the mount information of the client in the smbXsrv _ client _ global. The SmbXsrv _ client _ global. tdb database is a key _ value type key value pair, and mainly stores a key value converted by a client _ guid (client global unique identifier) of a client, node information of a service end providing service and the like. And when the client is disconnected within 10s, the server clears the mounting information from the database.
When the client accesses the storage cluster by using the samba service, the service end node queries whether the smbXsrv _ client _ global.tdb database of the service end node and the smbXsrv _ client _ global.tdb databases of other nodes in the cluster contain the mounting information of the client _ guid, and if not, the record is stored in the database of the node. If the value is not the same as the vnn value of the client mounting node, the mounting failure is caused because the vnn value of the request node is not consistent with the vnn value inquired in the database.
Disclosure of Invention
In view of this, an object of embodiments of the present invention is to provide a method, a system, a computer device, and a computer-readable storage medium for client mount in multiple channels, where a global unique identifier of a client and an IP address of a server form a shared identifier, the shared identifier is converted into a key value through a hash algorithm, if a new server is inconsistent with an original server, the key value is inconsistent, mount can be performed, and if the new server is consistent with the original server, a VNN value is the same, and mount can be performed as well, thereby reducing a probability of failure in accessing a cluster due to the client using different servers in an SMB service.
Based on the above object, an aspect of the embodiments of the present invention provides a method for client mount in multiple channels, including the following steps: responding to a negotiation request sent by a client received by a server, and acquiring a global unique identifier of the client from the negotiation request; forming a sharing identifier by the global unique identifier and the IP address of the server, and converting the sharing identifier into a key value through a hash algorithm; judging whether records of the key values exist in a database or not; and responding to the record of the key value which does not exist in the database, writing the key value into the database, and establishing the connection between the server and the client to form mounting.
In some embodiments, the method further comprises: and setting a VNN value according to the IP address of the server, and binding the VNN value with the key value.
In some embodiments, the method further comprises: responding to the record of the key assignment in the database, and judging whether the VNN value corresponding to the key assignment of this time is the same as the VNN value corresponding to the key assignment in the database; and responding to the VNN value corresponding to the key value of this time is the same as the VNN value corresponding to the key value in the database, and establishing connection between the server and the client to form mounting.
In some embodiments, the method further comprises: and in response to that the VNN value corresponding to the key value of this time is different from the VNN value corresponding to the key value in the database, notifying the client to send the negotiation request again after waiting for a preset time.
In some embodiments, the forming the globally unique identifier and the IP address of the server into a shared identifier includes: and converting the global unique identifier and the IP address of the server into binary numbers, and adding the two binary numbers after conversion to form a shared identifier.
In some embodiments, the establishing the connection between the server and the client to form the mount includes: and establishing a session between the server and the client, and establishing a connection tree based on the session.
In some embodiments, the method further comprises: and responding to the disconnection of the client side and the server side, and clearing the mounting information corresponding to the server side in a database.
In another aspect of the embodiments of the present invention, a system for client mount in multiple channels is provided, including: the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is configured to respond to a negotiation request sent by a client received by a server and acquire a global unique identifier of the client from the negotiation request; the conversion module is configured to combine the global unique identifier and the IP address of the server into a shared identifier, and convert the shared identifier into a key value through a hash algorithm; the judging module is configured to judge whether a record of the key value exists in a database; and the mounting module is configured to respond to the absence of the record of the key value in the database, write the key value into the database, and establish the connection between the server and the client to form mounting.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method as above.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: the sharing identification is formed by the global unique identifier of the client and the IP address of the server, the sharing identification is converted into the key value through the Hash algorithm, if the new server is inconsistent with the original server, the key value is inconsistent, mounting can be carried out, if the new server is consistent with the original server, the VNN value is the same, mounting can be carried out, and therefore the probability of cluster access failure caused by the fact that the client uses different servers in SMB service is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a method for client mount in multiple channels according to the present invention;
FIG. 2 is a schematic diagram of a hardware structure of an embodiment of a computer device mounted on a client in multiple channels according to the present invention;
FIG. 3 is a schematic diagram of an embodiment of a computer storage medium mounted on a client in multiple channels according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In a first aspect of the embodiments of the present invention, an embodiment of a method for client mount in multiple channels is provided. Fig. 1 is a schematic diagram illustrating an embodiment of a method for client mount in multiple channels according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, responding to a negotiation request sent by a client received by a server, and acquiring a global unique identifier of the client from the negotiation request;
s2, forming a sharing identification by the global unique identifier and the IP address of the server, and converting the sharing identification into a key value through a hash algorithm;
s3, judging whether a record of the key value exists in the database; and
s4, responding to the record of the key value not existing in the database, writing the key value into the database, and establishing the connection between the server and the client to form mounting.
SMB (Server Message Block) is a shared transmission protocol used between different network nodes, and provides shared service of resources such as files and printers for different computers in local area network. Samba: and the SMB protocol is realized and is used for providing the application of the shared service from the Linux server to the Windows client.
When the samba opens the multi-channel and cluster mode, when the client sends a negotiation request to the server, the request includes information such as client _ guid (client global unique identifier) of the client and SMB protocol version number supported by the client. The server side analyzes information such as client _ guid from a data packet of a nexation request of the client side, converts the client _ guid into a key (key) value through a hash algorithm, then searches whether a record containing the key value is contained in an smbXsrv _ client _ global.tdb database of the node and other nodes in the cluster, and if the record contains the key value, compares vnn information stored in the database with vnn of the node processing the nexation request to determine whether the record is consistent. If the two are not consistent, the service end returns a failure to the connection, which results in mounting failure.
The reason why the above problem occurs is that after the client mounts and disconnects for the first time, the time for the database to clear the mount information is 10 seconds, if the mount information of the last time is not cleared in the database, that is, the client uses smb mount again within 10 seconds (that is, the same client has the same client _ guid and the same key value converted by the hash algorithm), the same key value may cause mount failure, and if the IP (Internet Protocol ) of the server used for mounting for two times is different, that is, the different vnn of the two times of mount failure may also cause mount failure.
The invention provides a new mounting mode to solve the problem of mounting failure caused by the fact that a client mounts a node 2 and acquires data vnn from the node 1, which is different from the node, after the client mounts the node 1 and unloads the node and the database does not clear mounting information in the database in the node 1. The main idea of the embodiment of the invention is to combine the global unique identifier of the client with the IP address of the server, and convert the combination into a key value through a hash algorithm, and the specific steps are as follows:
responding to a negotiation request sent by a client received by a server, and acquiring a global unique identifier of the client from the negotiation request. When the samba opens the multi-channel and cluster mode, when the client sends a negotiation request to the server, the request includes information such as client _ guid (client global unique identifier) of the client and SMB protocol version number supported by the client. The server side analyzes information such as client _ guid from a data packet requested by the negotion of the client side.
And forming a shared identifier by the global unique identifier and the IP address of the server, and converting the shared identifier into a key value through a hash algorithm. The client _ guid is the identification of the client, and the client _ guids of different clients are different. When the client side is mounted, the client _ guid and the IP address of the service end node are combined into a shared identification, and the shared identification is converted into a key value through a hash algorithm and stored in the smbXsrv _ client _ global.
In some embodiments, the method further comprises: and setting a VNN value according to the IP address of the server, and binding the VNN value with the key value. Subsequently, when the same key value is generated by the new mount, whether the VNN value is the same or not needs to be judged, so that the VNN value needs to be bound with the key value, and the key value can be quickly determined when the corresponding key value is found subsequently.
In some embodiments, the forming the globally unique identifier and the IP address of the server into a shared identifier includes: and converting the global unique identifier and the IP address of the server into binary numbers, and adding the two binary numbers after conversion to form a shared identifier. The IP address may be converted into 1111 when the IP address is 1.1.1.1, or the global unique identifier of the client may be converted into a binary number by ASCII code, and then the binary number converted by the global unique identifier of the client and the binary number converted by the IP address of the server are added to form the shared identifier, or in some embodiments, the binary number converted by the IP address of the server may be directly added to the end of the binary number converted by the global unique identifier of the client, for example, the binary number converted by the IP address of the server is 1111, and the binary number converted by the global unique identifier of the client is 1011101, so that the combination is 10111011111.
And judging whether a record of the key value exists in a database. And responding to the condition that no record of the key value exists in the database, writing the key value into the database, and establishing the connection between the server and the client to form mounting.
In some embodiments, the method further comprises: responding to the record of the key assignment in the database, and judging whether the VNN value corresponding to the key assignment of this time is the same as the VNN value corresponding to the key assignment in the database; and responding to the VNN value corresponding to the key value of this time is the same as the VNN value corresponding to the key value in the database, and establishing connection between the server and the client to form mounting.
When the client unloads the mount, the connection information is not cleared in the database, and the ip of the server is replaced and mounted again, the new key value converted by the combination of the client _ guid and the ip of the server is different from the key value mounted last time, the mount information cannot be inquired in the database, and the database record is newly built according to the key value, namely, the mount can be carried out. If the same ip is used for the two mounts, the same key value is calculated for the two mounts, but if the service end ip matches, vnn for the two mounts match, and the mounts may be successful.
In some embodiments, the method further comprises: and in response to that the VNN value corresponding to the key value of this time is different from the VNN value corresponding to the key value in the database, notifying the client to send the negotiation request again after waiting for a preset time. If the VNN value corresponding to the key value of this time is different from the VNN value corresponding to the key value in the database, it is indicated that a problem may occur in a certain process, and the negotiation request may be sent again for mounting after waiting for a preset time.
In some embodiments, the establishing the connection between the server and the client to form the mount includes: and establishing a session between the server and the client, and establishing a connection tree based on the session. The client side uses the SMB protocol and the server side to mount the client side interactively, and the method comprises the following steps: in the negotiation process, the client and the server negotiate information such as version number using an SMB protocol, perform password verification in the session establishment process, perform connection establishment in the tree _ connect process, and the like.
In some embodiments, the method further comprises: and responding to the disconnection of the client side and the server side, and clearing the mounting information corresponding to the server side in a database. And when the client is disconnected from the server within 10 seconds, the mounting information corresponding to the server is cleared in the database.
The embodiment of the invention forms the shared identification by the global unique identifier of the client and the IP address of the server, converts the shared identification into the key value by the Hash algorithm, if the new server is inconsistent with the original server, the key value is inconsistent, the mounting can be carried out, if the new server is consistent with the original server, the VNN value is the same, the mounting can be carried out, and therefore, the probability of cluster access failure caused by the fact that the client uses different servers in SMB service is reduced.
It should be particularly noted that, the steps in the embodiments of the method for client mount in multiple channels can be mutually intersected, replaced, added, and deleted, so that these reasonable permutation and combination transformations as well as the method for client mount in multiple channels shall also belong to the scope of the present invention, and shall not limit the scope of the present invention to the embodiments.
In view of the above object, according to a second aspect of the embodiments of the present invention, there is provided a system for client mount in multiple channels, including: the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is configured to respond to a negotiation request sent by a client received by a server and acquire a global unique identifier of the client from the negotiation request; the conversion module is configured to combine the global unique identifier and the IP address of the server into a shared identifier, and convert the shared identifier into a key value through a hash algorithm; the judging module is configured to judge whether a record of the key value exists in a database; and the mounting module is configured to respond to the absence of the record of the key value in the database, write the key value into the database, and establish the connection between the server and the client to form mounting.
In some embodiments, the system further comprises a setup module configured to: and setting a VNN value according to the IP address of the server, and binding the VNN value with the key value.
In some embodiments, the system further comprises a second determining module configured to: responding to the record of the key assignment in the database, and judging whether the VNN value corresponding to the key assignment of this time is the same as the VNN value corresponding to the key assignment in the database; and responding to the VNN value corresponding to the key value of this time is the same as the VNN value corresponding to the key value in the database, and establishing connection between the server and the client to form mounting.
In some embodiments, the system further comprises a retransmission module configured to: and in response to that the VNN value corresponding to the key value of this time is different from the VNN value corresponding to the key value in the database, notifying the client to send the negotiation request again after waiting for a preset time.
In some embodiments, the conversion module is configured to: and converting the global unique identifier and the IP address of the server into binary numbers, and adding the two binary numbers after conversion to form a shared identifier.
In some embodiments, the mounting module is configured to: and establishing a session between the server and the client, and establishing a connection tree based on the session.
In some embodiments, the system further comprises a purge module configured to: and responding to the disconnection of the client side and the server side, and clearing the mounting information corresponding to the server side in a database.
The embodiment of the invention forms the shared identification by the global unique identifier of the client and the IP address of the server, converts the shared identification into the key value by the Hash algorithm, if the new server is inconsistent with the original server, the key value is inconsistent, the mounting can be carried out, if the new server is consistent with the original server, the VNN value is the same, the mounting can be carried out, and therefore, the probability of cluster access failure caused by the fact that the client uses different servers in SMB service is reduced.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, responding to a negotiation request sent by a client received by a server, and acquiring a global unique identifier of the client from the negotiation request; s2, forming a sharing identification by the global unique identifier and the IP address of the server, and converting the sharing identification into a key value through a hash algorithm; s3, judging whether a record of the key value exists in the database; and S4, responding to the record of the key value not existing in the database, writing the key value into the database, and establishing the connection between the server and the client to form mounting.
In some embodiments, the steps further comprise: and setting a VNN value according to the IP address of the server, and binding the VNN value with the key value.
In some embodiments, the steps further comprise: responding to the record of the key assignment in the database, and judging whether the VNN value corresponding to the key assignment of this time is the same as the VNN value corresponding to the key assignment in the database; and responding to the VNN value corresponding to the key value of this time is the same as the VNN value corresponding to the key value in the database, and establishing connection between the server and the client to form mounting.
In some embodiments, the steps further comprise: and in response to that the VNN value corresponding to the key value of this time is different from the VNN value corresponding to the key value in the database, notifying the client to send the negotiation request again after waiting for a preset time.
In some embodiments, the forming the globally unique identifier and the IP address of the server into a shared identifier includes: and converting the global unique identifier and the IP address of the server into binary numbers, and adding the two binary numbers after conversion to form a shared identifier.
In some embodiments, the establishing the connection between the server and the client to form the mount includes: and establishing a session between the server and the client, and establishing a connection tree based on the session.
The embodiment of the invention forms the shared identification by the global unique identifier of the client and the IP address of the server, converts the shared identification into the key value by the Hash algorithm, if the new server is inconsistent with the original server, the key value is inconsistent, the mounting can be carried out, if the new server is consistent with the original server, the VNN value is the same, the mounting can be carried out, and therefore, the probability of cluster access failure caused by the fact that the client uses different servers in SMB service is reduced.
In some embodiments, the steps further comprise: and responding to the disconnection of the client side and the server side, and clearing the mounting information corresponding to the server side in a database.
Fig. 2 is a schematic hardware structure diagram of an embodiment of the above computer device mounted on a client in multiple channels according to the present invention.
Taking the apparatus shown in fig. 2 as an example, the apparatus includes a processor 201 and a memory 202, and may further include: an input device 203 and an output device 204.
The processor 201, the memory 202, the input device 203 and the output device 204 may be connected by a bus or other means, and fig. 2 illustrates the connection by a bus as an example.
The memory 202, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for client mount in multiple channels in the embodiments of the present application. The processor 201 executes various functional applications of the server and data processing by running nonvolatile software programs, instructions and modules stored in the memory 202, that is, the method for client mount in multiple channels of the above-described method embodiment is implemented.
The memory 202 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the client mount method in multiple channels, and the like. Further, the memory 202 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 202 may optionally include memory located remotely from processor 201, which may be connected to local modules via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 203 may receive information such as a user name and a password that are input. The output device 204 may include a display device such as a display screen.
Program instructions/modules corresponding to one or more methods for client mount in multiple channels are stored in the memory 202, and when executed by the processor 201, perform the method for client mount in multiple channels in any of the above-described method embodiments.
Any embodiment of a computer device for performing the method for client mount in multiple channels described above may achieve the same or similar effects as any of the preceding method embodiments corresponding thereto.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs a method of client mount in multiple channels.
A method for client mounting in multiple channels comprises the following steps: responding to a negotiation request sent by a client received by a server, and acquiring a global unique identifier of the client from the negotiation request; forming a sharing identifier by the global unique identifier and the IP address of the server, and converting the sharing identifier into a key value through a hash algorithm; judging whether records of the key values exist in a database or not; and responding to the record of the key value which does not exist in the database, writing the key value into the database, and establishing the connection between the server and the client to form mounting.
In some embodiments, the method further comprises: and setting a VNN value according to the IP address of the server, and binding the VNN value with the key value.
In some embodiments, the method further comprises: responding to the record of the key assignment in the database, and judging whether the VNN value corresponding to the key assignment of this time is the same as the VNN value corresponding to the key assignment in the database; and responding to the VNN value corresponding to the key value of this time is the same as the VNN value corresponding to the key value in the database, and establishing connection between the server and the client to form mounting.
In some embodiments, the method further comprises: and in response to that the VNN value corresponding to the key value of this time is different from the VNN value corresponding to the key value in the database, notifying the client to send the negotiation request again after waiting for a preset time.
In some embodiments, the forming the globally unique identifier and the IP address of the server into a shared identifier includes: and converting the global unique identifier and the IP address of the server into binary numbers, and adding the two binary numbers after conversion to form a shared identifier.
In some embodiments, the establishing the connection between the server and the client to form the mount includes: and establishing a session between the server and the client, and establishing a connection tree based on the session.
In some embodiments, the method further comprises: and responding to the disconnection of the client side and the server side, and clearing the mounting information corresponding to the server side in a database.
FIG. 3 is a schematic diagram of an embodiment of the above-described client-mounted computer storage medium in multiple channels according to the present invention. Taking the computer storage medium as shown in fig. 3 as an example, the computer readable storage medium 3 stores a computer program 31 which, when executed by a processor, performs the method as described above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the method for client installation in multiple channels can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for client mount in multiple channels, comprising the steps of:
responding to a negotiation request sent by a client received by a server, and acquiring a global unique identifier of the client from the negotiation request;
forming a sharing identifier by the global unique identifier and the IP address of the server, and converting the sharing identifier into a key value through a hash algorithm;
judging whether records of the key values exist in a database or not; and
and responding to the condition that no record of the key value exists in the database, writing the key value into the database, and establishing the connection between the server and the client to form mounting.
2. The method of claim 1, further comprising:
and setting a VNN value according to the IP address of the server, and binding the VNN value with the key value.
3. The method of claim 2, further comprising:
responding to the record of the key assignment in the database, and judging whether the VNN value corresponding to the key assignment of this time is the same as the VNN value corresponding to the key assignment in the database; and
and in response to that the VNN value corresponding to the key value of this time is the same as the VNN value corresponding to the key value in the database, establishing connection between the server and the client to form mounting.
4. The method of claim 3, further comprising:
and in response to that the VNN value corresponding to the key value of this time is different from the VNN value corresponding to the key value in the database, notifying the client to send the negotiation request again after waiting for a preset time.
5. The method of claim 1, wherein the combining the globally unique identifier and the IP address of the server into a shared identifier comprises:
and converting the global unique identifier and the IP address of the server into binary numbers, and adding the two binary numbers after conversion to form a shared identifier.
6. The method of claim 1, wherein the establishing the connection between the server and the client to form a mount comprises:
and establishing a session between the server and the client, and establishing a connection tree based on the session.
7. The method of claim 1, further comprising:
and responding to the disconnection of the client side and the server side, and clearing the mounting information corresponding to the server side in a database.
8. A system for client mount in multiple channels, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is configured to respond to a negotiation request sent by a client received by a server and acquire a global unique identifier of the client from the negotiation request;
the conversion module is configured to combine the global unique identifier and the IP address of the server into a shared identifier, and convert the shared identifier into a key value through a hash algorithm;
the judging module is configured to judge whether a record of the key value exists in a database; and
and the mounting module is configured to respond to the absence of the record of the key value in the database, write the key value into the database, and establish the connection between the server and the client to form mounting.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202110682237.2A 2021-06-20 2021-06-20 Method, system, equipment and medium for client mounting in multiple channels Active CN113612811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110682237.2A CN113612811B (en) 2021-06-20 2021-06-20 Method, system, equipment and medium for client mounting in multiple channels

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110682237.2A CN113612811B (en) 2021-06-20 2021-06-20 Method, system, equipment and medium for client mounting in multiple channels

Publications (2)

Publication Number Publication Date
CN113612811A true CN113612811A (en) 2021-11-05
CN113612811B CN113612811B (en) 2023-04-07

Family

ID=78336602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110682237.2A Active CN113612811B (en) 2021-06-20 2021-06-20 Method, system, equipment and medium for client mounting in multiple channels

Country Status (1)

Country Link
CN (1) CN113612811B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114090522A (en) * 2022-01-17 2022-02-25 泰山信息科技有限公司 Electronic file identifier definition method, device and equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546510A (en) * 2012-07-13 2014-01-29 云联(北京)信息技术有限公司 Management system and management method on basis of cloud service
CN105701179A (en) * 2016-01-06 2016-06-22 南京斯坦德云科技股份有限公司 Windows access method of distributed file system based on UniWhale
CN106559392A (en) * 2015-09-28 2017-04-05 北京神州泰岳软件股份有限公司 A kind of file sharing method, device and system
CN108900607A (en) * 2018-06-28 2018-11-27 郑州云海信息技术有限公司 A kind of processing method, device and the server of SMB agreement request
CN109271264A (en) * 2018-08-30 2019-01-25 郑州云海信息技术有限公司 A kind of communication connection method for building up and device
US20190158353A1 (en) * 2006-09-25 2019-05-23 Weaved, Inc. Managing network connected devices
CN111339056A (en) * 2020-02-23 2020-06-26 苏州浪潮智能科技有限公司 Method and system for improving writing performance of Samba processing large file
CN111782318A (en) * 2020-06-16 2020-10-16 贵州省广播电视信息网络股份有限公司 Sharing access system and method for remotely mounting local disk to cloud desktop virtual machine
CN112217883A (en) * 2020-09-25 2021-01-12 苏州浪潮智能科技有限公司 Multi-channel construction method, device and system based on NFS protocol
WO2021088254A1 (en) * 2019-11-07 2021-05-14 苏州浪潮智能科技有限公司 Dual-stack access method, apparatus and device for user-mode network file system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190158353A1 (en) * 2006-09-25 2019-05-23 Weaved, Inc. Managing network connected devices
CN103546510A (en) * 2012-07-13 2014-01-29 云联(北京)信息技术有限公司 Management system and management method on basis of cloud service
CN106559392A (en) * 2015-09-28 2017-04-05 北京神州泰岳软件股份有限公司 A kind of file sharing method, device and system
CN105701179A (en) * 2016-01-06 2016-06-22 南京斯坦德云科技股份有限公司 Windows access method of distributed file system based on UniWhale
CN108900607A (en) * 2018-06-28 2018-11-27 郑州云海信息技术有限公司 A kind of processing method, device and the server of SMB agreement request
CN109271264A (en) * 2018-08-30 2019-01-25 郑州云海信息技术有限公司 A kind of communication connection method for building up and device
WO2021088254A1 (en) * 2019-11-07 2021-05-14 苏州浪潮智能科技有限公司 Dual-stack access method, apparatus and device for user-mode network file system
CN111339056A (en) * 2020-02-23 2020-06-26 苏州浪潮智能科技有限公司 Method and system for improving writing performance of Samba processing large file
CN111782318A (en) * 2020-06-16 2020-10-16 贵州省广播电视信息网络股份有限公司 Sharing access system and method for remotely mounting local disk to cloud desktop virtual machine
CN112217883A (en) * 2020-09-25 2021-01-12 苏州浪潮智能科技有限公司 Multi-channel construction method, device and system based on NFS protocol

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘晓瑞: "基于Samba服务器的多平台资源共享架构的实现", 《现代计算机(专业版)》 *
谭亮;吴晓;张凯龙;苏二峰;: "DeltaOS下的CAN总线驱动及多通道通信调度" *
赵大伟等: "Linux环境下Samba服务器的企业级应用", 《电脑知识与技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114090522A (en) * 2022-01-17 2022-02-25 泰山信息科技有限公司 Electronic file identifier definition method, device and equipment
CN114090522B (en) * 2022-01-17 2022-04-22 泰山信息科技有限公司 Electronic file identifier definition method, device and equipment

Also Published As

Publication number Publication date
CN113612811B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN111970315A (en) Method, device and system for pushing message
US7702917B2 (en) Data transfer using hyper-text transfer protocol (HTTP) query strings
CN111049884A (en) Distributed large file storage system and file uploading and downloading method
US20150237113A1 (en) Method and system for file transmission
CN108512821B (en) Data transmission method, device and system, network gate and transaction data storage method
RU2464722C2 (en) Method, device and system for distribution of messages
CN112261172B (en) Service addressing access method, device, system, equipment and medium
CN111885133A (en) Data processing method and device based on block chain and computer storage medium
CN111277481B (en) Method, device, equipment and storage medium for establishing VPN tunnel
CN104717314A (en) IP management method and system, client-side and server
CN113691646A (en) Domain name service resource access method, device, electronic equipment and medium
CN110909030B (en) Information processing method and server cluster
CN110311855B (en) User message processing method and device, electronic equipment and storage medium
CN113612811B (en) Method, system, equipment and medium for client mounting in multiple channels
CN113810349B (en) Data transmission method, device, computer equipment and storage medium
JP2003141002A (en) Url length conversion system and program
CN111224891B (en) Flow application identification system and method based on dynamic learning triples
CN111885190A (en) Service request processing method and system
CN111405018A (en) File transmission method and device, electronic equipment and storage medium
CN116684703A (en) Streaming media data transmission method and related equipment based on proximity service communication protocol
CN114650281B (en) File downloading method, device, equipment and storage medium based on complex network
WO2016177220A1 (en) Instant message information storage method and device
CN114615315A (en) Communication method, device, equipment and storage medium for online conversation
CN110474781B (en) Method and device for forwarding multicast data
CN103685367A (en) Offline download system and offline download method

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