CN108848007A - A kind of test method and device storing collaborative share maximum number of connections - Google Patents
A kind of test method and device storing collaborative share maximum number of connections Download PDFInfo
- Publication number
- CN108848007A CN108848007A CN201810990165.6A CN201810990165A CN108848007A CN 108848007 A CN108848007 A CN 108848007A CN 201810990165 A CN201810990165 A CN 201810990165A CN 108848007 A CN108848007 A CN 108848007A
- Authority
- CN
- China
- Prior art keywords
- client
- storage equipment
- response message
- counter
- carry
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0882—Utilisation of link capacity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
-
- 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/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols 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]
Abstract
The embodiment of the present application discloses the test method and device of a kind of test storage collaborative share maximum number of connections,Storage collaborative share maximum number of connections is obtained using automated testing method,Specially,Testing service device sends test instruction to client,To drive client to be communicated with storage equipment,Simultaneously,Testing service device according to the response message that client is sent judge client whether with storage equipment normal communication,When client and storage equipment can be with normal communications,Show that the shared connection number of current storage devices does not reach maximum number of connections also,Then counter adds 1,Identical test is carried out to next client to be connected,Until certain client cannot be communicated with storage equipment,Show that the shared connection number for storing equipment reaches maximum number of connections,Then export the numerical value of nonce counter,The numerical value is the shared maximum number of connections for storing equipment,To improve the accuracy of testing efficiency and test result.
Description
Technical field
This application involves field of computer technology, and in particular to a kind of test method for storing collaborative share maximum number of connections
And device.
Background technique
Network attached storage (Network Attached Storage, NAS) is a kind of storage being carried on network
Technology, can by Network File System (Network File System, NFS), file transmit etc. agreements be network in not
With clients providing data memory space.Under normal conditions, the storage equipment that will provide NAS function is known as NAS storage.
NAS storage has the characteristics that large capacity, high availability and good scalability.
Wherein, it is that the network file of the comparison mainstream that NAS storage is supported shares agreement that NFS is shared, so that the visitor in network
Network resources locating is realized by TCP/IP in family end, so that local client can pellucidly be read and write in NAS storage
File.In practical applications, a NAS storage can connect multiple client simultaneously, so that multiple client can be shared
All data in same catalogue.However, the quantity that each NAS stores connected client is limited, when more than present count
When amount, extra client can not share the data in NAS storage, wherein the maximum number for connecting client is known as NAS storage
The NFS of equipment shares maximum number of connections.
Currently, it is manually dispose client that the NFS for commonly testing a NAS storage equipment, which shares the method for connection number,
The shared connection of NFS is carried out for each client of deployment, so that it is determined that the maximum connection that the NFS that NAS stores equipment out shares
Number.When the NFS with NAS storage equipment, which shares connection number, constantly to be increased, manual test becomes infeasible.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of test method and device for storing collaborative share maximum number of connections,
To realize the shared connection maximum number of NFS for obtaining NAS storage equipment using automated testing method, testing efficiency is improved.
To solve the above problems, technical solution provided by the embodiments of the present application is as follows:
The embodiment of the present application in a first aspect, provide it is a kind of store collaborative share maximum number of connections test method, it is described
It storing equipment and supports network attached storage function, counter is initialized as 0, it is applied in testing service device, the method includes:
For any one client, test command is sent to the client;The test instruction is described for driving
Client is communicated with the storage equipment;
The response message that the client is sent is received, and judges that the client whether can according to the response message
With the storage equipment normal communication;
If so, the counter is carried out to add 1, aforesaid operations are carried out to next client;The counter is used for
Count the client terminal quantity that current storage devices establish shared connection;
If not, exporting the numerical value of presently described counter.
Optionally, the test command includes carry order and data writing commands, and described send to the client is surveyed
Examination order specifically includes:
Carry order is sent to the client, so that the client and the storage equipment establish shared connection;
The carry response message that the client is sent is received, and the client is judged according to the carry response message
Whether carry is successful;
After client carry success, data writing commands are sent to the client, so that the client
Write operation is carried out to the storage equipment;
The write-in response message that the client is sent is received, and the client is judged according to said write response message
Whether write-in is successful;
When the client data is written successfully, the counter is carried out to add 1, next client be carried out above-mentioned
Operation, until exporting presently described counter when client carry failure or client data write-in failure
Numerical value.
Optionally, the test, which instructs, further includes:Data read command;
After the client is written successfully, the data read command is sent to the client, so that the visitor
Data are read from the storage equipment in family end;
The reading response message that the client is sent is received, and the client is judged according to the reading response message
Whether reading is successful;
When the client is read successfully, the counter is carried out to add 1, above-mentioned behaviour is carried out to next client
Make, until exporting the numerical value of presently described counter when client carry failure or the client read failure.
Optionally, the testing service device is communicated with the client by safety shell protocol SSH.
Optionally, the testing service device is Linux testing service device, and the client is linuxn client.
The embodiment of the present application second aspect provides a kind of test device for storing collaborative share maximum number of connections, described
It stores equipment and supports network attached storage function, counter is initialized as 0, is applied in testing service device, described device includes:
Transmission unit sends test command to the client for being directed to any one client;The test instruction
For driving the client to be communicated with the storage equipment;
Receiving unit, for receiving the response message for stating client transmission;
Judging unit, for judging whether the client can be normal with the storage equipment according to the response message
Communication;
Computing unit is that the client can be normal with the storage equipment for the judging result when the judging unit
When communication, the counter is carried out to add 1, and returns to the transmission unit and send the test instruction to next client;
The counter is used to count the client terminal quantity that current storage devices establish shared connection;
Output unit is that the client cannot be with the storage equipment just for the judging result when the judging unit
When normal open is believed, the numerical value of presently described counter is exported.
Optionally, the test command includes carry order and data writing commands;
The transmission unit, be specifically used for the client send carry order so that the client with it is described
It stores equipment and establishes shared connection;
The receiving unit, the carry response message sent specifically for receiving the client;
The judging unit, specifically for judging the client according to the carry response message, whether carry is successful;
The transmission unit is also used to after client carry success, sends data write-in life to the client
It enables, so that the client carries out write operation to the storage equipment;
The receiving unit is also used to receive the write-in response message of client transmission;
The judging unit, specifically for judging whether the client is written success according to said write response message;
The computing unit is that the client data is written successfully specifically for the judging result when the judging unit
When, the counter is carried out to add 1, and return to the transmission unit and send the mounting instructions to next client;
The output unit, for when the judging unit judging result be the client data write-in failure or
When the client carry fails, the numerical value of presently described counter is exported.
Optionally, the test command further includes:Data read command;
The transmission unit is also used to after the client is written successfully, is sent the data to the client and is read
Order is taken, so that the client reads data from the storage equipment;
The receiving unit is also used to receive the reading response message that the client is sent;
The judging unit, specifically for judging whether the client reads success according to the reading response message;
The computing unit is that the client data is read successfully specifically for the judging result when the judging unit
When, the counter is carried out to add 1, and return to the transmission unit and send the mounting instructions to next client;
The output unit, for when the judging unit judging result be the client data read failure or
When the client carry fails, the numerical value of presently described counter is exported.
Optionally, the testing service device is communicated with the client by safety shell protocol SSH.
Optionally, the testing service device is Linux testing service device, and the client is linuxn client.
It can be seen that the embodiment of the present application has the advantages that:
In the embodiment of the present application, for client to be connected, testing service device sends test instruction to client, to drive
Dynamic client is communicated with storage equipment, and according to the response message of client transmission judge the client whether can with deposit
Equipment normal communication is stored up, if can show that the shared connection number of current storage devices does not reach maximum connection also with normal communication
Number, then counter adds 1, carries out identical test to next client to be connected, until certain client and storage equipment are not
It can communicate, show that the shared connection number for storing equipment reaches maximum number of connections, then export the numerical value of nonce counter, which is
To store the shared maximum number of connections of equipment, to realize the shared maximum number of connections of automatic test storage equipment, save big
Time and human cost are measured, testing efficiency is improved.
Detailed description of the invention
Fig. 1 is the block schematic illustration of exemplary application scene provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of test method for storing collaborative share maximum number of connections provided by the embodiments of the present application;
Fig. 3 is the process of the test method of another storage collaborative share maximum number of connections provided by the embodiments of the present application
Figure;
Fig. 4 is a kind of test device structure chart for storing collaborative share maximum number of connections provided by the embodiments of the present application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real
Mode is applied to be described in further detail the embodiment of the present application.
The technical solution of the application for ease of understanding is below first illustrated the background technique of the application.
Inventor to obtain NAS storage equipment NFS share maximum number of connections technique study in find, traditional side
Method needs a large amount of clients of tester's manual configuration, and is tested one by one client by tester, to obtain client
The result of communication at end and NAS storage equipment, so that the NFS for obtaining NAS storage equipment shares maximum number of connections.However, NAS is stored
Equipment constantly extends, and the shared maximum number of connections of the NFS provided is also increasing, the method meeting of manually dispose and test client
A large amount of time and human cost are wasted, efficiency is very low, and manual testing will lead to test result inaccuracy.
Based on this, the embodiment of the present application a kind of test method and device of test storage collaborative share maximum number of connections, benefit
Storage collaborative share maximum number of connections is obtained with automated testing method, is tested specifically, testing service device is sent to client
Instruction, to drive client to be communicated with storage equipment, meanwhile, testing service device is sentenced according to the response message that client is sent
Whether disconnected client shows currently stored with storage equipment normal communication when client can be with normal communication with storage equipment
The shared connection number of equipment does not reach maximum number of connections also, then counter adds 1, carries out to next client to be connected identical
Test, until certain client with storage equipment cannot communicate, show storage equipment shared connection number reach maximum number of connections,
The numerical value of nonce counter is then exported, which is the shared maximum number of connections for storing equipment, to improve testing efficiency
And the accuracy of test result.
Referring to Fig. 1, which is the block schematic illustration of exemplary application scene provided by the embodiments of the present application, wherein this Shen
Please embodiment provide storage collaborative share maximum number of connections test method application testing service device 10 in.
In practical applications, testing service device 10 sends test instruction to client 20, so that client 20 and storage
Equipment 30 is communicated, and testing service device 10 judges client 20 and storage equipment 30 according to the response message that client 20 is sent
Whether normal communication carries out same operation to other clients if it is, counter is made to add 1;If it is not, then output meter
The numerical value of number device.
It will be understood by those skilled in the art that block schematic illustration shown in FIG. 1 is only that presently filed embodiment can be
An example being wherein achieved.The scope of application of embodiment of the present invention is not limited by any aspect of the frame.
It should be noted that testing service device 10 can be existing, researching and developing or future in the embodiment of the present application
One example of the equipment of application services research and development, that information recommendation can be provided a user.It is also to be noted that the application
Client 20 in embodiment can be it is existing, researching and developing or in the future research and development, can be by any type of wired
And/or it is wirelessly connected (for example, Wi-Fi, LAN, honeycomb, coaxial cable etc.) and realizes and testing service device 10 and storage equipment 30
Interactive any user equipment, including but not limited to:Existing, researching and developing or research and development in the future smart phones, non intelligent
Mobile phone, tablet computer, laptop PC, desktop personal computer, minicomputer, medium-size computer, large-scale meter
Calculation machine etc..In addition, storage equipment 30 can be it is existing, researching and developing or in the future research and development, information can be provided a user
One example of the equipment of storage, presently filed embodiment are unrestricted in this regard.
In addition, it is necessary to explanation, test method provided by the embodiments of the present application can also be applied to client or deposit
Equipment is stored up, when test method is applied to client, by the client executing above method;When test method is applied to storage equipment
When, the above method is executed by storage equipment, counts the quantity of the client itself connected.
The method of the shared maximum connection of test storage equipment provided by the present application for ease of understanding, below in conjunction with attached drawing
It is illustrated.
Referring to fig. 2, which is a kind of test method of storage collaborative share maximum connection provided by the embodiments of the present application,
In, storage equipment supports network attached storage function, and counter is initialized as 0, and this method is applied in testing service device, can be with
Including:
S201:For any one client, test command is sent to client.
In the present embodiment, for the client that will be stored equipment with NAS and establish the shared connection of NFS, testing service device to
Client sends test instruction, so that client tests instruction based on the received establishes shared connection with NAS storage equipment, and
Carry out data communication.Wherein, test instruction is for driving the client to be communicated with the storage equipment.
It should be noted that testing service device, before sending test to client, the two needs to establish communication connection,
When specific implementation, testing service device and client can establish communication link by safety shell protocol (Secure Shell, SSH)
It connects, so that testing service device sends test instruction to client by SSH agreement.
S202:Receive the response message that client is sent.
S203:And according to response message judge client whether can with storage equipment normal communication, if so, execute
S20:4;If not, executing S205.
In the present embodiment, when the test instruction that client is sent according to testing service device is communicated with NAS storage equipment
When, the communication request that NAS storage equipment is sent according to client sends response message to client, and client disappears the response
Breath is transmitted to testing service device, and the response message is for indicating whether client can communicate with NAS storage equipment.Therefore, when
When testing service device receives the response message of client transmission, judge that client and NAS store equipment according to the response message
Whether communication is successful, if communicated successfully, executes S204;If communication failure, S205 is executed.
S204:Counter is carried out to add 1, aforesaid operations are carried out to next client.
When client and NAS storage equipment can be with normal communications, show that client can store equipment with NAS and establish
The shared connection of NFS, while also indicating that NFS shares connection number and is not up to maximum number of connections, then counter is added 1, then to next
The operation of client executing S201-S203, judges whether next client can store equipment with NAS and establish the shared company of NFS
It connects and is communicated.Wherein, counter is used to count the client terminal quantity that current storage devices establish shared connection
S205:Export the numerical value of presently described counter.
When client and NAS storage equipment communication failure, show that the NFS of NAS storage equipment shares connection number and reaches most
Big connection number, for additionally wanting to set up the client of the shared connection of NFS, due to failing to store equipment with NAS, to establish NFS shared
Connection then can not store equipment with NAS and be communicated, then at this point, the numerical value of output nonce counter, which is that NAS is deposited
The NFS for storing up equipment shares maximum number of connections.
By method provided by the embodiments of the present application, for client to be connected, testing service device is sent to client
Test instruction to drive client to be communicated with storage equipment, and judges the client according to the response message that client is sent
End whether can with storage equipment normal communication, if with normal communication, can show the shared connection number of current storage devices also
Maximum number of connections is not reached, then counter adds 1, identical test is carried out to next client to be connected, until certain client
End cannot be communicated with storage equipment, shown that the shared connection number for storing equipment reaches maximum number of connections, then exported nonce counter
Numerical value, which is the shared maximum number of connections for storing equipment, thus realize automatic test storage equipment it is shared most
Big connection number saves plenty of time and human cost, improves testing efficiency.
In a kind of possible implementation of the embodiment of the present application, testing service device can be Linux testing service device,
It when test method described in specific execution Fig. 1, can be realized by using Shell script, which operates in Linux survey
It tries in server, and is interacted by SSH agreement with linuxn client.
In practical applications, test instruction may include mounting instructions and writing commands, so that client is according to carry
The NFS share directory of NAS storage equipment is mounted to client by instruction, so that client be allow to carry out NFS share directory
Write operation.About testing service device to client send mounting instructions and writing commands test obtain storage equipment it is shared most
The specific implementation of big connection number, is illustrated this method below in conjunction with attached drawing.
Referring to Fig. 3, which is the test side of another storage collaborative share maximum number of connections provided by the embodiments of the present application
The flow chart of method, wherein storage equipment supports network attached storage function, and counter is initialized as 0, and this method is applied to test
In server, may include:
S301:Carry order is sent to client, so that client and storage equipment establish shared connection.
In the present embodiment, after testing service device, which establishes SSH with client, to be connect, mounting instructions are sent to client
Mount, so that the NFS share directory of NAS storage equipment is mounted to local client by client, so that client can
To be operated to NFS share directory.
S302:The carry response message that client is sent is received, and judges whether client hangs according to carry response message
It carries successfully.
In the present embodiment, when client carries out carry according to NFS share directory of the carry order to NAS storage equipment,
Carry response message can be sent to client according to carry result, which may include the field of carry result,
Testing service device can judge client according to carry result field, and whether carry is successful, if so, executing S303;If not,
Execute S306.
S303:After the success of client carry, data writing commands are sent to client, so that client sets storage
It is standby to carry out write operation.
In the present embodiment, after the success of client carry, testing service device sends data write instruction to client, so that
It obtains client and carries out data write operation in the NFS share directory of NAS storage equipment, to realize the shared of data resource.
In specific implementation, testing service device sends dd order to client, shares mesh according to NFS of the dd order to carry by client
Record carries out write operation.
S304:The write-in response message that client is sent is received, and judges whether client is write according to write-in response message
Enter success.
In the present embodiment, when the NFS share directory that NAS storage is set is written in writing commands to client based on the received
After operation, write-in response message is sent to testing service device, which may include the field that result is written, test
Server can judge whether client is written success according to write-in result field, if so, executing S305;If not, executing
S306。
S305:When client data is written successfully, counter is carried out to add 1, above-mentioned behaviour is carried out to next client
Make.
When client can carry out write operation to NFS share directory, show that the NFS of current NAS storage equipment is shared
Connection number may be not up to maximum number of connections, then counter is added 1, the operation of S301-S305 be carried out to next client, directly
It is written and fails to client data, execute S306, export the numerical value of nonce counter, which is the NFS of NAS storage equipment
Shared maximum number of connections.
S306:Export the numerical value of nonce counter.
In addition, test instruction can also include data read command, when client is write in some possible implementations
After entering successfully, testing service device sends data read command to client, so that client reads data from storage equipment;
The reading response message that client is sent is received, and judges whether client reads success according to the reading response message;Work as visitor
Family end is read successfully, and counter is carried out plus 1, carries out aforesaid operations to next client, until the failure of client carry or
When client reads failure, the numerical value of nonce counter is exported.
In the present embodiment, after client is written successfully, testing service device sends data read command to client, so that
It obtains client and reads data from the NFS share directory of NAS storage equipment, while client sends to read to testing service device and ring
Message is answered, which may include the field for reading result, and testing service device can be sentenced according to result field is read
Whether disconnected client reads success, successfully shows that the shared connection number of NFS of current NAS storage equipment may when client is read
Counter is then added 1 by not up to maximum number of connections, above-mentioned same operation is carried out to next client, until client data
Failure, the numerical value of output counter are read in carry failure.
It, can be to client after testing service device and client progress SSH connection by method provided by the embodiments of the present application
Whether end sends carry order, writing commands and reading order, connected with detecting client and being successfully established NFS with storage equipment and share
It connects, when client can not carry out normal communication with storage equipment, shows that the NFS for storing equipment shares connection number and reaches maximum
Value, thus obtain storage equipment shared connection maximum number, it is seen then that by automated testing method can save the plenty of time and
Human cost improves testing efficiency.
Based on above method embodiment, present invention also provides a kind of test dresses for storing collaborative share maximum number of connections
It sets, below in conjunction with attached drawing to the device to being illustrated.
Referring to fig. 4, which is a kind of test device for storing collaborative share maximum number of connections provided by the embodiments of the present application
Structure chart, as shown in figure 4, the storage equipment supports network attached storage function, counter is initialized as 0, is applied to test
In server, described device includes:
Transmission unit 401 sends test command to the client for being directed to any one client;The test
Instruction is for driving the client to be communicated with the storage equipment;
Receiving unit 402, for receiving the response message for stating client transmission;
Judging unit 403, for judging whether the client can be with the storage equipment according to the response message
Normal communication;
Computing unit 404 is that the client can be with the storage equipment for the judging result when the judging unit
When normal communication, the counter is carried out to add 1, and returns to the transmission unit and refer to next client transmission test
It enables;The counter is used to count the client terminal quantity that current storage devices establish shared connection.
Output unit 405 is that the client cannot be set with the storage for the judging result when the judging unit
When standby normal communication, the numerical value of presently described counter is exported.
Optionally, the test command includes carry order and data writing commands;
The transmission unit, be specifically used for the client send carry order so that the client with it is described
It stores equipment and establishes shared connection;
The receiving unit, the carry response message sent specifically for receiving the client;
The judging unit, specifically for judging the client according to the carry response message, whether carry is successful;
The transmission unit is also used to after client carry success, sends data write-in life to the client
It enables, so that the client carries out write operation to the storage equipment;
The receiving unit is also used to receive the write-in response message of client transmission;
The judging unit, specifically for judging whether the client is written success according to said write response message;
The computing unit is that the client data is written successfully specifically for the judging result when the judging unit
When, the counter is carried out to add 1, and return to the transmission unit and send the mounting instructions to next client;
The output unit, for when the judging unit judging result be the client data write-in failure or
When the client carry fails, the numerical value of presently described counter is exported.
Optionally, the test command further includes:Data read command;
The transmission unit is also used to after the client is written successfully, is sent the data to the client and is read
Order is taken, so that the client reads data from the storage equipment;
The receiving unit is also used to receive the reading response message that the client is sent;
The judging unit, specifically for judging whether the client reads success according to the reading response message;
The computing unit is that the client data is read successfully specifically for the judging result when the judging unit
When, the counter is carried out to add 1, and return to the transmission unit and send the mounting instructions to next client;
The output unit, for when the judging unit judging result be the client data read failure or
When the client carry fails, the numerical value of presently described counter is exported.
Optionally, the testing service device is communicated with the client by safety shell protocol.
Optionally, the testing service device is Linux testing service device, and the client is linuxn client.
It should be noted that the realization of each unit or module may refer to the reality of Fig. 1 and Fig. 2 the method in the present embodiment
Existing, details are not described herein for the present embodiment.
In the embodiment of the present application, for client to be connected, testing service device sends test instruction to client, to drive
Dynamic client is communicated with storage equipment, and according to the response message of client transmission judge the client whether can with deposit
Equipment normal communication is stored up, if can show that the shared connection number of current storage devices does not reach maximum connection also with normal communication
Number, then counter adds 1, carries out identical test to next client to be connected, until certain client and storage equipment are not
It can communicate, show that the shared connection number for storing equipment reaches maximum number of connections, then export the numerical value of nonce counter, which is
To store the shared maximum number of connections of equipment, to realize the shared maximum number of connections of automatic test storage equipment, save big
Time and human cost are measured, testing efficiency is improved.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment emphasis is said
Bright is the difference from other embodiments, and the same or similar parts in each embodiment may refer to each other.For reality
For applying system or device disclosed in example, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, phase
Place is closed referring to method part illustration.
It should be appreciated that in this application, " at least one (item) " refers to one or more, and " multiple " refer to two or two
More than a."and/or" indicates may exist three kinds of relationships, for example, " A and/or B " for describing the incidence relation of affiliated partner
It can indicate:A is only existed, B is only existed and exists simultaneously tri- kinds of situations of A and B, wherein A, B can be odd number or plural number.Word
Symbol "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or"." at least one of following (a) " or its similar expression, refers to
Any combination in these, any combination including individual event (a) or complex item (a).At least one of for example, in a, b or c
(a) can indicate:A, b, c, " a and b ", " a and c ", " b and c ", or " a and b and c ", wherein a, b, c can be individually, can also
To be multiple.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one
Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation
There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain
Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (10)
1. a kind of test method for storing collaborative share maximum number of connections, which is characterized in that the storage equipment supports network attached
Adding store function, counter is initialized as 0, it is applied in testing service device, the method includes:
For any one client, test command is sent to the client;The test instruction is for driving the client
End is communicated with the storage equipment;
The response message that the client is sent is received, and judges whether the client can be with institute according to the response message
State storage equipment normal communication;
If so, the counter is carried out to add 1, aforesaid operations are carried out to next client;The counter is for counting
Current storage devices establish the client terminal quantity of shared connection;
If not, exporting the numerical value of presently described counter.
2. the method according to claim 1, wherein the test command includes carry order and data write-in life
It enables, it is described to be specifically included to client transmission test command:
Carry order is sent to the client, so that the client and the storage equipment establish shared connection;
The carry response message that the client is sent is received, and whether the client is judged according to the carry response message
Carry success;
After client carry success, data writing commands are sent to the client, so that the client is to institute
It states storage equipment and carries out write operation;
The write-in response message that the client is sent is received, and whether the client is judged according to said write response message
It is written successfully;
When the client data is written successfully, the counter is carried out to add 1, above-mentioned behaviour is carried out to next client
Make, until exporting the number of presently described counter when client carry failure or client data write-in failure
Value.
3. according to the method described in claim 2, it is characterized in that, test instruction further includes:Data read command;
After the client is written successfully, the data read command is sent to the client, so that the client
Data are read from the storage equipment;
The reading response message that the client is sent is received, and whether the client is judged according to the reading response message
It reads successfully;
When the client is read successfully, the counter is carried out to add 1, aforesaid operations is carried out to next client, directly
When reading failure to client carry failure or the client, the numerical value of presently described counter is exported.
4. the method according to claim 1, wherein the testing service device and the client are outer by safety
Shell agreement SSH is communicated.
5. method according to any one of claims 1 to 4, which is characterized in that the testing service device is Linux test clothes
Business device, the client are linuxn client.
6. a kind of test device for storing collaborative share maximum number of connections, which is characterized in that the storage equipment supports network attached
Add store function, counter is initialized as 0, is applied in testing service device, described device includes:
Transmission unit sends test command to the client for being directed to any one client;The test instruction is used for
The client is driven to be communicated with the storage equipment;
Receiving unit, for receiving the response message for stating client transmission;
Judging unit, for judging whether the client can be with the positive normal open of the storage equipment according to the response message
Letter;
Computing unit is that the client can be with the storage equipment normal communication for the judging result when the judging unit
When, the counter is carried out to add 1, and return to the transmission unit and send the test instruction to next client;It is described
Counter is used to count the client terminal quantity that current storage devices establish shared connection;
Output unit is that the client cannot be with the positive normal open of the storage equipment for the judging result when the judging unit
When letter, the numerical value of presently described counter is exported.
7. device according to claim 6, which is characterized in that the test command includes carry order and data write-in life
It enables;
The transmission unit is specifically used for sending carry order to the client, so that the client and the storage
Equipment establishes shared connection;
The receiving unit, the carry response message sent specifically for receiving the client;
The judging unit, specifically for judging the client according to the carry response message, whether carry is successful;
The transmission unit is also used to send data writing commands to the client after client carry success, with
So that the client carries out write operation to the storage equipment;
The receiving unit is also used to receive the write-in response message of client transmission;
The judging unit, specifically for judging whether the client is written success according to said write response message;
The computing unit, specifically for when the judging result of the judging unit be the client data be written successfully when,
The counter is carried out to add 1, and returns to the transmission unit and sends the mounting instructions to next client;
The output unit fails for the judging result when the judging unit for client data write-in or described
When client carry fails, the numerical value of presently described counter is exported.
8. device according to claim 7, which is characterized in that the test command further includes:Data read command;
The transmission unit is also used to after the client is written successfully, sends the reading data life to the client
It enables, so that the client reads data from the storage equipment;
The receiving unit is also used to receive the reading response message that the client is sent;
The judging unit, specifically for judging whether the client reads success according to the reading response message;
The computing unit, specifically for when the judging result of the judging unit be the client data read successfully when,
The counter is carried out to add 1, and returns to the transmission unit and sends the mounting instructions to next client;
The output unit fails for the judging result when the judging unit for client data reading or described
When client carry fails, the numerical value of presently described counter is exported.
9. device according to claim 6, which is characterized in that the testing service device and the client are outer by safety
Shell agreement SSH is communicated.
10. according to the described in any item devices of claim 6 to 9, which is characterized in that the testing service device is Linux test
Server, the client are linuxn client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810990165.6A CN108848007A (en) | 2018-08-28 | 2018-08-28 | A kind of test method and device storing collaborative share maximum number of connections |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810990165.6A CN108848007A (en) | 2018-08-28 | 2018-08-28 | A kind of test method and device storing collaborative share maximum number of connections |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108848007A true CN108848007A (en) | 2018-11-20 |
Family
ID=64189133
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810990165.6A Pending CN108848007A (en) | 2018-08-28 | 2018-08-28 | A kind of test method and device storing collaborative share maximum number of connections |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108848007A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111309700A (en) * | 2020-02-14 | 2020-06-19 | 苏州浪潮智能科技有限公司 | Control method and system for multi-sharing directory tree |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1744535A (en) * | 2005-10-14 | 2006-03-08 | 中国移动通信集团公司 | WAP gateway performance test method |
CN101232410A (en) * | 2005-10-14 | 2008-07-30 | 中国移动通信集团公司 | System and method for testing WAP gateway performance |
CN101917307A (en) * | 2010-08-24 | 2010-12-15 | 北京星网锐捷网络技术有限公司 | System, method and test device for testing maximum number of PPP connection |
CN102035697A (en) * | 2010-12-31 | 2011-04-27 | 中国电子科技集团公司第十五研究所 | Concurrent connections performance testing system and method for file system |
CN102204192A (en) * | 2011-05-26 | 2011-09-28 | 华为技术有限公司 | A method for mounting network attachment storage nas device and a digital media player dmp |
US8214523B2 (en) * | 2004-06-22 | 2012-07-03 | Hewlett-Packard Development Company, L.P. | Interconnection fabric connection |
CN103490945A (en) * | 2013-08-09 | 2014-01-01 | 上海斐讯数据通信技术有限公司 | Method for detecting maximum telnet user quantity |
CN103517328A (en) * | 2012-06-21 | 2014-01-15 | 索尼公司 | Information processing apparatuses, information processing system and information processing method |
CN104125597A (en) * | 2014-08-04 | 2014-10-29 | 上海大亚科技有限公司 | System and method for realizing integration testing of wireless throughput of network devices |
CN104378788A (en) * | 2014-12-11 | 2015-02-25 | 上海斐讯数据通信技术有限公司 | Method and system for testing wireless network access facility |
CN105446862A (en) * | 2015-11-20 | 2016-03-30 | 深圳市迪菲特科技股份有限公司 | System and method for testing IO performance of storage equipment |
KR20170105946A (en) * | 2016-03-11 | 2017-09-20 | 건국대학교 산학협력단 | Network connected storage device, network connected storage system including the same, method for detecting expansion of storage node of the network connected storge device and method for detecting expansion of storage medium of the network connected storage device |
CN108287789A (en) * | 2017-12-29 | 2018-07-17 | 五八有限公司 | Batch-automated test method, device and electronic equipment |
-
2018
- 2018-08-28 CN CN201810990165.6A patent/CN108848007A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8214523B2 (en) * | 2004-06-22 | 2012-07-03 | Hewlett-Packard Development Company, L.P. | Interconnection fabric connection |
CN101232410A (en) * | 2005-10-14 | 2008-07-30 | 中国移动通信集团公司 | System and method for testing WAP gateway performance |
CN1744535A (en) * | 2005-10-14 | 2006-03-08 | 中国移动通信集团公司 | WAP gateway performance test method |
CN101917307A (en) * | 2010-08-24 | 2010-12-15 | 北京星网锐捷网络技术有限公司 | System, method and test device for testing maximum number of PPP connection |
CN102035697A (en) * | 2010-12-31 | 2011-04-27 | 中国电子科技集团公司第十五研究所 | Concurrent connections performance testing system and method for file system |
CN102204192A (en) * | 2011-05-26 | 2011-09-28 | 华为技术有限公司 | A method for mounting network attachment storage nas device and a digital media player dmp |
CN103517328A (en) * | 2012-06-21 | 2014-01-15 | 索尼公司 | Information processing apparatuses, information processing system and information processing method |
CN103490945A (en) * | 2013-08-09 | 2014-01-01 | 上海斐讯数据通信技术有限公司 | Method for detecting maximum telnet user quantity |
CN104125597A (en) * | 2014-08-04 | 2014-10-29 | 上海大亚科技有限公司 | System and method for realizing integration testing of wireless throughput of network devices |
CN104378788A (en) * | 2014-12-11 | 2015-02-25 | 上海斐讯数据通信技术有限公司 | Method and system for testing wireless network access facility |
CN105446862A (en) * | 2015-11-20 | 2016-03-30 | 深圳市迪菲特科技股份有限公司 | System and method for testing IO performance of storage equipment |
KR20170105946A (en) * | 2016-03-11 | 2017-09-20 | 건국대학교 산학협력단 | Network connected storage device, network connected storage system including the same, method for detecting expansion of storage node of the network connected storge device and method for detecting expansion of storage medium of the network connected storage device |
CN108287789A (en) * | 2017-12-29 | 2018-07-17 | 五八有限公司 | Batch-automated test method, device and electronic equipment |
Non-Patent Citations (1)
Title |
---|
四川省单片机与嵌入式系统专委会主编,: "《中国西部嵌入式系统与单片机技术论坛2005学术年会论文集》", 30 November 2005 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111309700A (en) * | 2020-02-14 | 2020-06-19 | 苏州浪潮智能科技有限公司 | Control method and system for multi-sharing directory tree |
CN111309700B (en) * | 2020-02-14 | 2022-11-29 | 苏州浪潮智能科技有限公司 | Control method and system for multi-sharing directory tree |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109101381A (en) | Configuration file update method, system, electronic equipment and storage medium | |
US8935576B2 (en) | Automated cabling process for a complex environment | |
CN109871320A (en) | A kind of data processing method, device, application server and storage medium | |
CN101707632A (en) | Method for dynamically monitoring performance of server cluster and alarming real-timely | |
CN109151028A (en) | A kind of distributed memory system disaster recovery method and device | |
CN106357449A (en) | zedis distributed type buffer method | |
CN104602227A (en) | Network-adaptive mobile application data loading method | |
CN107070752B (en) | Testing method and testing system for long connection capacity | |
CN114363144B (en) | Fault information association reporting method and related equipment for distributed system | |
CN105897947A (en) | Network access method and device for mobile terminal | |
CN103516851B (en) | A kind of wireless product cloud test platform system | |
KR20200034022A (en) | Monitoring system and method of cloud environment | |
CN111641521A (en) | Ambari-based method for deploying big data clusters on cloud | |
CN103490978A (en) | Terminal, server and message monitoring method | |
CN109542754A (en) | The cut-in method of mobile device, the adjustment method of application program, device and system | |
CN103581240B (en) | Download method, user equipment and the application server of application program | |
CN108848007A (en) | A kind of test method and device storing collaborative share maximum number of connections | |
CN115705190A (en) | Method and device for determining dependence degree | |
CN109600278A (en) | A kind of data communications method, device, equipment and medium | |
CN109102153A (en) | A kind of identity management method and device | |
CN110380902B (en) | Topological relation generation method and device, electronic equipment and storage medium | |
CN106375324A (en) | Network communication system and method based on TCP/IP communication protocol | |
CN109542338A (en) | A kind of realization distributed memory system interior joint consistency on messaging method and device | |
CN114327823A (en) | Method, system, terminal and storage medium for calling resources of micro-service cluster | |
CN103236954A (en) | Web service evaluation system in mobile network |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181120 |
|
RJ01 | Rejection of invention patent application after publication |