CN111143172A - Method and system for testing stability of server under network congestion - Google Patents

Method and system for testing stability of server under network congestion Download PDF

Info

Publication number
CN111143172A
CN111143172A CN201911423239.9A CN201911423239A CN111143172A CN 111143172 A CN111143172 A CN 111143172A CN 201911423239 A CN201911423239 A CN 201911423239A CN 111143172 A CN111143172 A CN 111143172A
Authority
CN
China
Prior art keywords
server
client
network congestion
stability
pressure test
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.)
Withdrawn
Application number
CN201911423239.9A
Other languages
Chinese (zh)
Inventor
潘霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911423239.9A priority Critical patent/CN111143172A/en
Publication of CN111143172A publication Critical patent/CN111143172A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a method and a system for checking the stability of a server under network congestion, wherein the method comprises the following steps: s1, building a network environment, connecting two servers through a switch, and designating a server side and a client side in the two servers; s2, simulating network congestion, and pressurizing the network; and S3, the server side server simulates the actual service type to carry out pressure test on the client side server, and the stability of the server side server and the client side server is verified. The method and the system for testing the stability of the servers under the network congestion realize the stability test of the servers in the same network, and perform the pressure test of the servers under the same network under the system by simulating the network congestion, thereby achieving the purpose of testing the stability of the cluster servers under the same network and improving the quality of products.

Description

Method and system for testing stability of server under network congestion
Technical Field
The invention belongs to the technical field of server testing, and particularly relates to a method and a system for testing the stability of a server under network congestion.
Background
With the increasing requirements of the internet on servers, the technology is updated more and more quickly, and the requirements of informatization services and increasingly strong cloud computing services on the stability of the servers and other devices are increasing. However, in the prior art, the stability requirement of the server in a single machine state is mainly focused, the server is managed in a cluster mode through the switch at present, the test is mainly focused on the stability of the network, and the stability of the server in the same network under the cluster management is only ignored, namely the test of the stability of the server in a network congestion state is lacked.
Therefore, it is very necessary to provide a method and a system for checking the stability of a server under network congestion to overcome the above-mentioned drawbacks in the prior art.
Disclosure of Invention
The invention provides a method and a system for testing the stability of a server under network congestion, aiming at the defects that in the prior art, the stability of the server under a single server state and the stability of a centralized network are tested, but the stability of the server under the same network under cluster management is not tested.
In a first aspect, the present invention provides a method for checking server stability under network congestion, which includes the following steps:
s1, building a network environment, connecting two servers through a switch, and designating a server side and a client side in the two servers;
s2, simulating network congestion, and pressurizing the network;
and S3, the server side server simulates the actual service type to carry out pressure test on the client side server, and the stability of the server side server and the client side server is verified.
Further, the step S2 specifically includes the following steps:
s21, interconnecting a server and a client server through ssh;
and S22, the server side simulates network congestion through an iperf pressure test tool and performs pressure test on the client side server.
Further, the step S2 specifically includes the following steps:
s21, interconnecting a server and a client server through ssh;
and S22, the client server simulates network congestion through an iperf pressure test tool and performs pressure test on the server.
Further, the step S3 specifically includes the following steps:
s31, judging the service type;
when the service type is a service scene in which the access amount of the hard disk exceeds the access amount threshold, the step S32 is performed;
when the service type is a service scenario in which the memory utilization rate exceeds the utilization rate threshold, step S33 is entered;
s32, simulating a service scene exceeding an access amount threshold by the server side server, and remotely carrying out hard disk read pressure test on the client side server; proceeding to step S34;
s33, simulating a service scene exceeding a utilization rate threshold value by the server side server, and remotely testing the memory pressure of the client side server;
s34, the server remotely restarts and shuts down the client server, and the function of releasing system resources by the client server is tested;
and S35, judging whether the server stability test passes under the network congestion. The data access amount of the client server is large, and the pressure test needs to be carried out on the hard disk read by the client server through a dd tool; if the client server has a high requirement on the memory/CPU for animation processing or 3D processing, the server is required to remotely perform the memory/CPU pressure test on the client server through an intel tool PTU.
Further, the step S35 specifically includes the following steps:
s351, judging whether the hard disk reading pressure test or the memory pressure test of the server-side server to the client-side server passes or not;
s352, judging whether the function test of the server for releasing the system resources of the client server is passed or not;
s353, when the server side server passes the function test of releasing system resources of the pressure test machine of the client side server, the server temperature qualitative test under network congestion passes;
otherwise, the server stability test fails under network congestion.
In a second aspect, the present invention provides a system for checking server stability under network congestion, which comprises
The network environment building module is used for building a network environment, connecting the two servers through a switch and designating a server side and a client side in the two servers;
the network congestion simulation module is used for simulating network congestion and pressurizing a network;
and the stability testing module is used for simulating the actual service type through the server-side server to perform pressure testing on the client-side server and verifying the stability of the server-side server and the client-side server.
Further, the network congestion simulation module comprises:
the login setting unit is used for interconnecting the server and the client server through ssh;
and the network congestion simulation unit is used for setting the server to simulate network congestion through an iperf pressure test tool and carrying out pressure test on the client server.
Further, the network congestion simulation module comprises:
the login setting unit is used for interconnecting the server and the client server through ssh;
and the network congestion simulation unit is used for setting the client server to simulate network congestion through an iperf pressure test tool and carrying out pressure test on the server.
Further, the stability testing module includes:
a service type judging unit, configured to judge a service type;
the hard disk high-access volume service scene simulation unit is used for setting a server to simulate a service scene exceeding an access volume threshold value when the service type is a service scene in which the hard disk access volume exceeds the access volume threshold value, and remotely performing hard disk read pressure test on a client server;
the memory high-utilization-rate service scene simulation unit is used for setting a server-side server to simulate a service scene exceeding a utilization rate threshold value when the service type is a service scene in which the memory utilization rate exceeds the utilization rate threshold value, and remotely testing the memory pressure of the client-side server;
the system resource releasing function verifying unit is used for setting the server to remotely restart and shut down the client server and testing the function of releasing the system resources by the client server;
and the stability judging unit is used for judging whether the server stability test passes under the network congestion.
Further, the stability determination unit includes:
the pressure test judging subunit is used for judging whether the hard disk read pressure test or the memory pressure test of the server-side server to the client-side server passes or not;
a release system resource function verifying subunit, configured to determine whether the server passes the test for releasing the system resource function by the client server;
the stability judging subunit is used for judging that the server stability test under the network congestion passes when the server passes the function test of the system resource released by the pressure test machine of the client server; otherwise, judging that the server temperature qualitative test fails under the network congestion.
The beneficial effect of the invention is that,
the method and the system for testing the stability of the servers under the network congestion realize the stability test of the servers in the same network, and perform the pressure test of the servers under the same network under the system by simulating the network congestion, thereby achieving the purpose of testing the stability of the cluster servers under the same network and improving the quality of products.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a first schematic flow chart of the method of the present invention;
FIG. 2 is a second schematic flow chart of the method of the present invention;
FIG. 3 is a schematic diagram of the system of the present invention;
in the figure, 1-a network environment building module; 2-network congestion simulation module; 2.1-login setting unit; 2.2-network congestion simulation unit; 3-a stability test module; 3.1-service type judging unit; 3.2-hard disk high access volume service scene simulation unit; 3.3-a memory high utilization rate service scene simulation unit; 3.4-release system resource function verification unit; 3.5-stability determination Unit.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
as shown in fig. 1, the present invention provides a method for checking server stability under network congestion, which includes the following steps:
s1, building a network environment, connecting two servers through a switch, and designating a server side and a client side in the two servers;
s2, simulating network congestion, and pressurizing the network;
and S3, the server side server simulates the actual service type to carry out pressure test on the client side server, and the stability of the server side server and the client side server is verified.
Example 2:
as shown in fig. 2, the present invention provides a method for checking server stability under network congestion, which includes the following steps:
s1, building a network environment, connecting two servers through a switch, and designating a server side and a client side in the two servers;
s2, simulating network congestion, and pressurizing the network; the method comprises the following specific steps:
s21, interconnecting a server and a client server through ssh;
s22, simulating network congestion by the server through an iperf pressure test tool, and carrying out pressure test on the client server;
s3, the server side server simulates the actual service type to carry out pressure test on the client side server, and the stability of the server side server and the client side server is verified; the method comprises the following specific steps:
s31, judging the service type;
when the service type is a service scene in which the access amount of the hard disk exceeds the access amount threshold, the step S32 is performed;
when the service type is a service scenario in which the memory utilization rate exceeds the utilization rate threshold, step S33 is entered;
s32, simulating a service scene exceeding an access amount threshold by the server side server, and remotely carrying out hard disk read pressure test on the client side server; proceeding to step S34;
s33, simulating a service scene exceeding a utilization rate threshold value by the server side server, and remotely testing the memory pressure of the client side server;
s34, the server remotely restarts and shuts down the client server, and the function of releasing system resources by the client server is tested;
s35, judging whether the server stability test passes under network congestion; the method comprises the following specific steps:
s351, judging whether the hard disk reading pressure test or the memory pressure test of the server-side server to the client-side server passes or not;
s352, judging whether the function test of the server for releasing the system resources of the client server is passed or not;
s353, when the server side server passes the function test of the system resource released by the pressure test machine of the client side server, the server stability test under the network congestion passes;
otherwise, the server stability test fails under network congestion.
Example 3:
the invention provides a method for testing the stability of a server under network congestion, which comprises the following steps:
s1, building a network environment, connecting two servers through a switch, and designating a server side and a client side in the two servers;
s2, simulating network congestion, and pressurizing the network; the method comprises the following specific steps:
s21, interconnecting a server and a client server through ssh;
s22, simulating network congestion by the server through an iperf pressure test tool, and carrying out pressure test on the client server;
s3, the server side server simulates the actual service type to carry out pressure test on the client side server, and the stability of the server side server and the client side server is verified; the method comprises the following specific steps:
s31, judging the service type;
when the service type is a service scene in which the access amount of the hard disk exceeds the access amount threshold, the step S32 is performed;
when the service type is a service scenario in which the memory utilization rate exceeds the utilization rate threshold, step S33 is entered;
s32, simulating a service scene exceeding an access amount threshold by the server side server, and remotely carrying out hard disk read pressure test on the client side server; proceeding to step S34;
s33, simulating a service scene exceeding a utilization rate threshold value by the server side server, and remotely testing the memory pressure of the client side server;
s34, the server remotely restarts and shuts down the client server, and the function of releasing system resources by the client server is tested;
s35, judging whether the server stability test passes under network congestion; the method comprises the following specific steps:
s351, judging whether the hard disk reading pressure test or the memory pressure test of the server-side server to the client-side server passes or not;
s352, judging whether the function test of the server for releasing the system resources of the client server is passed or not;
s353, when the server side server passes the function test of the system resource released by the pressure test machine of the client side server, the server stability test under the network congestion passes;
otherwise, the server stability test fails under network congestion.
Example 4:
as shown in FIG. 3, the present invention provides a system for checking the stability of a server under network congestion, which comprises
The network environment building module 1 is used for building a network environment, connecting the two servers through a switch, and designating a server side and a client side in the two servers;
the network congestion simulation module 2 is used for simulating network congestion and pressurizing a network; the network congestion simulation module 2 includes:
the login setting unit 2.1 is used for interconnecting the server and the client server through ssh;
the network congestion simulation unit 2.2 is used for setting the server to simulate network congestion through an iperf pressure test tool and carrying out pressure test on the client server; or, the system is used for setting the client server to simulate network congestion through an iperf pressure test tool and carrying out pressure test on the server;
the stability testing module 3 is used for simulating the actual service type through the server-side server to perform pressure testing on the client-side server and verifying the stability of the server-side server and the client-side server; the stability test module 3 includes:
a service type judging unit 3.1, configured to judge a service type;
the hard disk high-access volume service scene simulation unit 3.2 is used for setting a server to simulate a service scene exceeding an access volume threshold when the service type is a service scene in which the hard disk access volume exceeds the access volume threshold, and remotely performing hard disk read pressure test on a client server;
the memory high utilization rate service scene simulation unit 3.3 is used for setting the service end server to simulate the service scene exceeding the utilization rate threshold value when the service type is the service scene of which the memory utilization rate exceeds the utilization rate threshold value, and remotely testing the memory pressure of the client end server;
a release system resource function verification unit 3.4, configured to set the server to remotely restart and shut down the client server, and test a function of the client server releasing system resources;
the stability judging unit 3.5 is used for judging whether the server stability test passes under the network congestion;
the stability determination unit 3.5 includes:
the pressure test judging subunit is used for judging whether the hard disk read pressure test or the memory pressure test of the server-side server to the client-side server passes or not;
a release system resource function verifying subunit, configured to determine whether the server passes the test for releasing the system resource function by the client server;
the stability judging subunit is used for judging that the server stability test under the network congestion passes when the server passes the function test of the system resource released by the pressure test machine of the client server; otherwise, judging that the server stability test fails under the network congestion.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A method for checking the stability of a server under network congestion is characterized by comprising the following steps:
s1, building a network environment, connecting two servers through a switch, and designating a server side and a client side in the two servers;
s2, simulating network congestion, and pressurizing the network;
and S3, the server side server simulates the actual service type to carry out pressure test on the client side server, and the stability of the server side server and the client side server is verified.
2. The method for checking the stability of the server under the network congestion as claimed in claim 1, wherein the step S2 specifically comprises the following steps:
s21, interconnecting a server and a client server through ssh;
and S22, the server side simulates network congestion through an iperf pressure test tool and performs pressure test on the client side server.
3. The method for checking the stability of the server under the network congestion as claimed in claim 1, wherein the step S2 specifically comprises the following steps:
s21, interconnecting a server and a client server through ssh;
and S22, the client server simulates network congestion through an iperf pressure test tool and performs pressure test on the server.
4. The method for checking the stability of the server under the network congestion as claimed in claim 1, wherein the step S3 specifically comprises the following steps:
s31, judging the service type;
when the service type is a service scene in which the access amount of the hard disk exceeds the access amount threshold, the step S32 is performed;
when the service type is a service scenario in which the memory utilization rate exceeds the utilization rate threshold, step S33 is entered;
s32, simulating a service scene exceeding an access amount threshold by the server side server, and remotely carrying out hard disk read pressure test on the client side server; proceeding to step S34;
s33, simulating a service scene exceeding a utilization rate threshold value by the server side server, and remotely testing the memory pressure of the client side server;
s34, the server remotely restarts and shuts down the client server, and the function of releasing system resources by the client server is tested;
and S35, judging whether the server stability test passes under the network congestion.
5. The method for checking the stability of the server under the network congestion as claimed in claim 4, wherein the step S35 comprises the following steps:
s351, judging whether the hard disk reading pressure test or the memory pressure test of the server-side server to the client-side server passes or not;
s352, judging whether the function test of the server for releasing the system resources of the client server is passed or not;
s353, when the server side server passes the function test of the system resource released by the pressure test machine of the client side server, the server stability test under the network congestion passes;
otherwise, the server stability test fails under network congestion.
6. A system for checking the stability of server under network congestion is characterized by comprising
The network environment building module (1) is used for building a network environment, connecting the two servers through a switch and designating a server side and a client side in the two servers;
the network congestion simulation module (2) is used for simulating network congestion and pressurizing a network;
and the stability testing module (3) is used for simulating the actual service type through the server-side server to perform pressure testing on the client-side server and verifying the stability of the server-side server and the client-side server.
7. The server stability checking system under network congestion according to claim 6, wherein the network congestion simulation module (2) comprises:
the login setting unit (2.1) is used for interconnecting the server and the client server through ssh;
and the network congestion simulation unit (2.2) is used for setting the server to simulate network congestion through an iperf pressure test tool and carrying out pressure test on the client server.
8. The server stability checking system under network congestion according to claim 6, wherein the network congestion simulation module (2) comprises:
the login setting unit (2.1) is used for interconnecting the server and the client server through ssh;
and the network congestion simulation unit (2.2) is used for setting the client server to simulate network congestion through an iperf pressure test tool and carrying out pressure test on the server.
9. The server stability checking system under network congestion according to claim 6, wherein the stability testing module (3) comprises:
a service type judging unit (3.1) for judging the service type;
the hard disk high-access volume service scene simulation unit (3.2) is used for setting a server to simulate a service scene exceeding an access volume threshold value when the service type is a service scene in which the hard disk access volume exceeds the access volume threshold value, and remotely performing hard disk read pressure test on a client server;
the memory high-utilization-rate service scene simulation unit (3.3) is used for setting a service end server to simulate a service scene exceeding a utilization rate threshold value when the service type is a service scene of which the memory utilization rate exceeds the utilization rate threshold value, and remotely testing the memory pressure of the client end server;
a release system resource function verification unit (3.4) for setting the server to remotely restart and shut down the client server and testing the function of the client server for releasing the system resource;
and the stability judging unit (3.5) is used for judging whether the server stability test passes under the network congestion.
10. The server stability checking system under network congestion according to claim 9, wherein the stability determining unit (3.5) comprises:
the pressure test judging subunit is used for judging whether the hard disk read pressure test or the memory pressure test of the server-side server to the client-side server passes or not;
a release system resource function verifying subunit, configured to determine whether the server passes the test for releasing the system resource function by the client server;
the stability judging subunit is used for judging that the server stability test under the network congestion passes when the server passes the function test of the system resource released by the pressure test machine of the client server; otherwise, judging that the server stability test fails under the network congestion.
CN201911423239.9A 2019-12-31 2019-12-31 Method and system for testing stability of server under network congestion Withdrawn CN111143172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911423239.9A CN111143172A (en) 2019-12-31 2019-12-31 Method and system for testing stability of server under network congestion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911423239.9A CN111143172A (en) 2019-12-31 2019-12-31 Method and system for testing stability of server under network congestion

Publications (1)

Publication Number Publication Date
CN111143172A true CN111143172A (en) 2020-05-12

Family

ID=70523078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911423239.9A Withdrawn CN111143172A (en) 2019-12-31 2019-12-31 Method and system for testing stability of server under network congestion

Country Status (1)

Country Link
CN (1) CN111143172A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116405412A (en) * 2023-02-24 2023-07-07 中电金信软件有限公司 Method and system for verifying validity of server cluster

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116405412A (en) * 2023-02-24 2023-07-07 中电金信软件有限公司 Method and system for verifying validity of server cluster
CN116405412B (en) * 2023-02-24 2024-05-03 中电金信数字科技集团有限公司 Method and system for verifying cluster effectiveness of simulation server based on chaotic engineering faults

Similar Documents

Publication Publication Date Title
US11088953B2 (en) Systems and methods for load balancing
AU2018208685A1 (en) Method and system for automated system migration
WO2017181591A1 (en) Testing method and system
CN108829581B (en) Application program testing method and device, computer equipment and storage medium
CN108632213A (en) Facility information processing method and processing device
CN109600280B (en) Pressure testing system, method, device and computer readable storage medium
CN109309596B (en) Pressure testing method and device and server
CN109254922A (en) A kind of automated testing method and device of server B MC Redfish function
CN111159000A (en) Server performance test method, device, equipment and storage medium
CN111694743A (en) Service system detection method and device
Cohen et al. Introducing new deformable surfaces to segment 3D images
CN111143172A (en) Method and system for testing stability of server under network congestion
Berger et al. Does my bft protocol implementation scale?
CN111352778A (en) Network simulation processing method and device, electronic equipment and storage medium
CN108696713B (en) Code stream safety test method, device and test equipment
CN106060048A (en) Network resource access method and network resource access device
WO2021223104A1 (en) System testing method and apparatus
CN110932879B (en) Network performance test method, data processing device and storage medium
CN107423107B (en) Construction method of mobile distributed data center
CN111930548B (en) Fault simulation system for multi-cluster distributed service
CN112994976A (en) Gateway testing method and device, electronic equipment and storage medium
CN113014443B (en) Method and system for testing whether CDN (content delivery network) resources hit cache
CN113064777A (en) Method and device for testing data acquisition service
CN113094272A (en) Application testing method and device, electronic equipment and computer readable medium
CN109639528A (en) A kind of test method and device of log receptivity

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200512