CN111835586B - Method and system for testing network connectivity of server and switch - Google Patents
Method and system for testing network connectivity of server and switch Download PDFInfo
- Publication number
- CN111835586B CN111835586B CN202010570199.7A CN202010570199A CN111835586B CN 111835586 B CN111835586 B CN 111835586B CN 202010570199 A CN202010570199 A CN 202010570199A CN 111835586 B CN111835586 B CN 111835586B
- Authority
- CN
- China
- Prior art keywords
- pressure flow
- server
- connectivity
- test
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
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/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a method and a system for testing network connectivity of a server and a switch, which respectively carry out connectivity test aiming at a single machine scene and a multi-machine scene, complete the connectivity test of a network to be tested according to a pressure flow script by installing pressure flow software compatible with a domestic platform, adopt a CS (circuit switched) architecture and a unified management mode, reduce the time cost of repeated configuration, improve the network connectivity test efficiency, cover most of the existing test scenes, avoid the compatibility problem of the test software of the domestic platform in the single machine scene, benefit from the unified management of the CS architecture in the multi-scene, carry out planned batch test on the large scene of the multi-machine, uniformly output reports, reduce manual operation intervention, reduce the test time and have wide applicability and practical significance.
Description
Technical Field
The invention relates to the technical field of connectivity test, in particular to a method and a system for testing network connectivity of a server and a switch.
Background
With the development of informatization of domestic enterprises and government electronic government affairs, large and medium-sized enterprises and government organizations increasingly rely on information systems to perform business operations. Meanwhile, as the domestic wave tide advances continuously, the information service system migrates the existing line x86 platform server to the domestic CPU and the operating system server to continue to operate, so that new technical requirements emerge gradually. In the migration process, in order to ensure that the network topology of the existing operation environment server is unchanged, a universal alternative scheme uses a domestic CPU server to access the existing network to be connected with a switch, and in the implementation process of the scheme, in order to ensure the network topology connectivity, a network connectivity test of a newly-accessed domestic CPU server and the physically-connected switch is required.
At present, there are two main ways for performing network connectivity test on the x86 server and the switch: the first is a hardware pressure flow test, a BigTao-type hardware network test platform is used for connecting the inside and the outside of a switch, pressure flow is generated in three-layer and seven-layer network protocols, and flow receiving and analysis are carried out on a server or a Renix-type software operated at a pc terminal of the same network to form a network quality report; the second software pressure flow test uses netperf and jmeter software to generate virtual three-layer and seven-layer network protocol flow, uses response client or test service response at a server or pc terminal of the same network, and analyzes the network quality through pressure test records or client reports.
However, these two main approaches are not suitable for the test scenario of server and switch connectivity test of domestic CPUs and operating systems:
the hardware pressure flow mode is mainly used for testing the function and performance of the switch, and at least one pressure testing instrument and one flow receiving instrument are required to be additionally added into the network aiming at the test of the server and the switch in a single section of network. When the test network segment is distributed in a plurality of switch secondary networks, network hardware jumpers need to be frequently switched, the test scale is too large, and the test cost is higher.
The software pressure flow test is flexible and light, and is theoretically suitable for the test scenario, but the used software is open source software based on an x86 platform and is only suitable for single-point-to-single-point network test. The practical problems of abnormal function, complex large-scale use and configuration, long test process and the like exist when the system is used on a domestic CPU and an operating system server.
Disclosure of Invention
The invention aims to provide a method and a system for testing the network connectivity of a server and a switch, which aim to solve the problems of high testing cost and complex process of the connectivity test of the server and the switch in China in the prior art, reduce the testing cost and simplify the testing process.
In order to achieve the technical purpose, the invention provides a method for testing network connectivity of a server and a switch, which comprises the following operations:
for stand-alone connectivity testing:
deploying servers and corresponding LAN switches in a prescribed topology;
deploying pressure flow software on the single-machine server, configuring a pressure flow script according to an actual network, completing a network connectivity pressure flow test to be tested, and outputting a pressure test report;
for multi-machine connectivity testing:
deploying servers and corresponding LAN switches in a prescribed topology;
deploying pressure flow software on all servers, selecting one server as a pressure flow server, and using other servers as clients;
starting pressure flow software of a pressure flow server, using the local machine as a client, operating a pressure flow script set according to actual network configuration, and outputting a pressure measurement report after completing connectivity pressure flow test of a network to be tested;
and starting the pressure flow software of the pressure flow server, controlling other machines as clients, operating the pressure flow scripts set according to the actual network configuration, sequentially performing bidirectional pressure flow on the clients, and outputting a pressure measurement report by the pressure flow software server after completing the connectivity pressure flow test of the network to be tested.
Preferably, the medium-voltage streaming software in the stand-alone connectivity test is used as a server and a client to receive traffic in two directions.
Preferably, in the multi-machine connectivity test, when the network quality of the service end does not meet the standard, another server needs to be replaced as the pressure flow software service end.
The invention also provides a system for testing the network connectivity of the server and the switch, which comprises:
the stand-alone connectivity test module is used for testing stand-alone connectivity:
deploying servers and corresponding LAN switches in a prescribed topology;
deploying pressure flow software on the single-machine server, configuring a pressure flow script according to an actual network, completing a network connectivity pressure flow test to be tested, and outputting a pressure test report;
the multi-machine connectivity test module is used for testing the multi-machine connectivity:
deploying servers and corresponding LAN switches in a prescribed topology;
deploying pressure flow software on all servers, selecting one server as a pressure flow server, and using other servers as clients;
starting pressure flow software of a pressure flow server, using the local machine as a client, operating a pressure flow script set according to actual network configuration, and outputting a pressure measurement report after completing connectivity pressure flow test of a network to be tested;
and starting the pressure flow software of the pressure flow server, controlling other machines as clients, operating the pressure flow scripts set according to the actual network configuration, sequentially performing bidirectional pressure flow on the clients, and outputting a pressure measurement report by the pressure flow software server after completing the connectivity pressure flow test of the network to be tested.
Preferably, the medium-voltage streaming software in the stand-alone connectivity test is used as a server and a client to receive traffic in two directions.
Preferably, in the multi-machine connectivity test, when the network quality of the service end does not meet the standard, another server needs to be replaced as the pressure flow software service end.
The effect provided in the summary of the invention is only the effect of the embodiment, not all the effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
compared with the prior art, the method and the device respectively carry out connectivity test aiming at a single machine scene and a multi-machine scene, the connectivity test of the network to be tested is completed according to the pressure flow script by installing the pressure flow software compatible with the domestic platform, the CS architecture and the unified management mode are adopted, the time cost of repeated configuration is reduced, the network connectivity test efficiency is improved, in addition, the method and the device can cover most of the existing test scenes, the compatibility problem of the domestic platform test software is avoided under the single machine scene, the unified management of the CS architecture is benefited under the multi-scene, the planned batch test can be carried out on the multi-machine large scene, the report is output in a unified mode, the manual operation intervention is reduced, the test time is reduced, and the method and the device have wide applicability and practical significance.
Drawings
Fig. 1 is a flowchart of a method for testing network connectivity between a server and a switch provided in an embodiment of the present invention;
FIG. 2 is a schematic diagram of a single machine testing scenario for network connectivity test of a server and a switch provided in an embodiment of the present invention;
fig. 3 is a schematic diagram of a multi-machine test scenario for network connectivity test of a server and a switch provided in the embodiment of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
The following describes a method and a system for testing network connectivity of a server and a switch according to embodiments of the present invention in detail with reference to the accompanying drawings.
As shown in fig. 1, the present invention discloses a method for testing network connectivity of a server and a switch, wherein the method comprises the following operations:
for stand-alone connectivity testing:
deploying servers and corresponding LAN switches in a prescribed topology;
deploying pressure flow software on the single-machine server, configuring a pressure flow script according to an actual network, completing a network connectivity pressure flow test to be tested, and outputting a pressure test report;
for multi-machine connectivity testing:
deploying servers and corresponding LAN switches in a prescribed topology;
deploying pressure flow software on all servers, selecting one server as a pressure flow server, and using other servers as clients;
starting pressure flow software of a pressure flow server, using the local machine as a client, operating a pressure flow script set according to actual network configuration, and outputting a pressure measurement report after completing connectivity pressure flow test of a network to be tested;
and starting the pressure flow software of the pressure flow server, controlling other machines as clients, operating the pressure flow scripts set according to the actual network configuration, sequentially performing bidirectional pressure flow on the clients, and outputting a pressure measurement report by the pressure flow software server after completing the connectivity pressure flow test of the network to be tested.
The embodiment of the invention respectively tests in a single-computer connectivity test scene and a multi-computer connectivity test scene.
As shown in FIG. 2, for the stand-alone connectivity test, the test procedure is as follows:
deploying a domestic server and a LAN switch correspondingly connected with the domestic server in a network with a specified topology, and connecting the domestic server and the LAN switch with a network to be tested for physical connection;
the method comprises the following steps that a server press flow software which is compatible with a domestic platform and is provided with a specific version is deployed and installed on a stand-alone server, the software can be used as a server and a client to bidirectionally receive flow, and the server has management control and result collection functions on the client software; in a single machine scene, the pressure flow software is used as a server and a client;
starting server pressure flow software, operating a pressure flow script set according to actual network configuration, and outputting a pressure measurement report by the pressure flow software after completing connectivity pressure flow test of a network to be tested;
and analyzing the connectivity of the tested network according to the pressure measurement report, and taking the analyzed network connectivity as an evaluation basis of the network connectivity in the current scene.
As shown in fig. 3, for the multi-machine connectivity test, the test procedure is as follows:
deploying a domestic server and a LAN switch correspondingly connected with the domestic server in a network with a specified topology, and connecting the domestic server and the LAN switch with a network to be tested for physical connection;
installing server pressure flow software of a specific version compatible with a domestic platform on all servers, selecting one server as a pressure flow server, and using other machines as client clients;
starting pressure flow software of a pressure flow server, using the local machine as a client, operating a pressure flow script set according to actual network configuration, and outputting a pressure measurement report by the pressure flow software after completing connectivity pressure flow test of a network to be tested; ensuring that the network connection quality of the pressure flow server meets the network connectivity requirement, if the network quality of the server does not meet the standard, replacing another server as the pressure flow software server, and repeating the step;
starting pressure flow software of a pressure flow server, controlling other machines as client clients, operating pressure flow scripts set according to actual network configuration, sequentially performing bidirectional pressure flow on the client clients, and outputting a pressure measurement report by the pressure flow software server after completing connectivity pressure flow test of a network to be tested;
and analyzing the connectivity of the tested network according to the pressure measurement report, and taking the analyzed network connectivity as an evaluation basis of the network connectivity in the current scene.
The embodiment of the invention respectively carries out connectivity test aiming at a single machine scene and a multi-machine scene, completes the connectivity test of a network to be tested according to a pressure flow script by installing pressure flow software compatible with a domestic platform, adopts a CS (circuit switched) architecture and a unified management mode, reduces the time cost of repeated configuration, improves the network connectivity test efficiency, can cover most of the existing test scenes, avoids the compatibility problem of the domestic platform test software in the single machine scene, benefits from the unified management of the CS architecture in multiple scenes, can carry out planned batch test on the large scenes of multiple machines, uniformly outputs reports, reduces manual operation intervention, reduces the test time, and has wide applicability and practical significance.
The embodiment of the invention also discloses a system for testing the network connectivity of the server and the switch, which comprises the following steps:
the stand-alone connectivity test module is used for testing stand-alone connectivity:
deploying servers and corresponding LAN switches in a prescribed topology;
deploying pressure flow software on the single-machine server, configuring a pressure flow script according to an actual network, completing a network connectivity pressure flow test to be tested, and outputting a pressure test report;
the multi-machine connectivity test module is used for testing the multi-machine connectivity:
deploying servers and corresponding LAN switches in a prescribed topology;
deploying pressure flow software on all servers, selecting one server as a pressure flow server, and using other servers as clients;
starting pressure flow software of a pressure flow server, using the local machine as a client, operating a pressure flow script set according to actual network configuration, and outputting a pressure measurement report after completing connectivity pressure flow test of a network to be tested;
and starting the pressure flow software of the pressure flow server, controlling other machines as clients, operating the pressure flow scripts set according to the actual network configuration, sequentially performing bidirectional pressure flow on the clients, and outputting a pressure measurement report by the pressure flow software server after completing the connectivity pressure flow test of the network to be tested.
For single machine connectivity test, a domestic server and a LAN switch correspondingly connected with the domestic server are deployed in a network with a specified topology, and the network to be tested is connected with the LAN switch physically;
the method comprises the following steps that a server press flow software which is compatible with a domestic platform and is provided with a specific version is deployed and installed on a stand-alone server, the software can be used as a server and a client to bidirectionally receive flow, and the server has management control and result collection functions on the client software; in a single machine scene, the pressure flow software is used as a server and a client;
starting server pressure flow software, operating a pressure flow script set according to actual network configuration, and outputting a pressure measurement report by the pressure flow software after completing connectivity pressure flow test of a network to be tested;
and analyzing the connectivity of the tested network according to the pressure measurement report, and taking the analyzed network connectivity as an evaluation basis of the network connectivity in the current scene.
For multi-machine connectivity test, deploying a domestic server and a LAN switch correspondingly connected with the domestic server in a network with a specified topology, and connecting the domestic server and the LAN switch to be physically connected with a network to be tested;
installing server pressure flow software of a specific version compatible with a domestic platform on all servers, selecting one server as a pressure flow server, and using other machines as client clients;
starting pressure flow software of a pressure flow server, using the local machine as a client, operating a pressure flow script set according to actual network configuration, and outputting a pressure measurement report by the pressure flow software after completing connectivity pressure flow test of a network to be tested; ensuring that the network connection quality of the pressure flow server meets the network connectivity requirement, if the network quality of the server does not meet the standard, replacing another server as the pressure flow software server, and repeating the step;
starting pressure flow software of a pressure flow server, controlling other machines as client clients, operating pressure flow scripts set according to actual network configuration, sequentially performing bidirectional pressure flow on the client clients, and outputting a pressure measurement report by the pressure flow software server after completing connectivity pressure flow test of a network to be tested;
and analyzing the connectivity of the tested network according to the pressure measurement report, and taking the analyzed network connectivity as an evaluation basis of the network connectivity in the current scene.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (4)
1. A method for testing network connectivity of a server and a switch, the method comprising the operations of:
for stand-alone connectivity testing:
deploying servers and corresponding LAN switches in a prescribed topology;
deploying pressure flow software on the single-machine server, wherein the pressure flow software is used as a server and a client to bidirectionally receive flow, configuring a pressure flow script according to an actual network, completing a network connectivity pressure flow test to be tested, and outputting a pressure test report;
for multi-machine connectivity testing:
deploying servers and corresponding LAN switches in a prescribed topology;
deploying pressure flow software on all servers, selecting one server as a pressure flow server, and using other servers as clients;
starting pressure flow software of a pressure flow server, using the local machine as a client, operating a pressure flow script set according to actual network configuration, and outputting a pressure measurement report after completing connectivity pressure flow test of a network to be tested;
and starting the pressure flow software of the pressure flow server, controlling other machines as clients, operating the pressure flow scripts set according to the actual network configuration, sequentially performing bidirectional pressure flow on the clients, and outputting a pressure measurement report by the pressure flow software server after completing the connectivity pressure flow test of the network to be tested.
2. The method as claimed in claim 1, wherein when the network quality of the server side in the multi-machine connectivity test does not meet the standard, another server needs to be replaced as the streaming software server side.
3. A server and switch network connectivity test system, the system comprising:
the stand-alone connectivity test module is used for testing stand-alone connectivity:
deploying servers and corresponding LAN switches in a prescribed topology;
deploying pressure flow software on the single-machine server, wherein the pressure flow software is used as a server and a client to bidirectionally receive flow, configuring a pressure flow script according to an actual network, completing a network connectivity pressure flow test to be tested, and outputting a pressure test report;
the multi-machine connectivity test module is used for testing the multi-machine connectivity:
deploying servers and corresponding LAN switches in a prescribed topology;
deploying pressure flow software on all servers, selecting one server as a pressure flow server, and using other servers as clients;
starting pressure flow software of a pressure flow server, using the local machine as a client, operating a pressure flow script set according to actual network configuration, and outputting a pressure measurement report after completing connectivity pressure flow test of a network to be tested;
and starting the pressure flow software of the pressure flow server, controlling other machines as clients, operating the pressure flow scripts set according to the actual network configuration, sequentially performing bidirectional pressure flow on the clients, and outputting a pressure measurement report by the pressure flow software server after completing the connectivity pressure flow test of the network to be tested.
4. The system as claimed in claim 3, wherein when the network quality of the server side in the multi-machine connectivity test does not meet the standard, another server needs to be replaced as the press-flow software server side.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010570199.7A CN111835586B (en) | 2020-06-21 | 2020-06-21 | Method and system for testing network connectivity of server and switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010570199.7A CN111835586B (en) | 2020-06-21 | 2020-06-21 | Method and system for testing network connectivity of server and switch |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111835586A CN111835586A (en) | 2020-10-27 |
CN111835586B true CN111835586B (en) | 2021-11-09 |
Family
ID=72897924
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010570199.7A Active CN111835586B (en) | 2020-06-21 | 2020-06-21 | Method and system for testing network connectivity of server and switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111835586B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102413012A (en) * | 2011-11-21 | 2012-04-11 | 上海交通大学 | System for automatically analyzing computer network connectivity |
CN103186444A (en) * | 2013-04-15 | 2013-07-03 | 北京搜狐新时代信息技术有限公司 | Performance testing method, platform and machine |
CN104702449A (en) * | 2013-12-04 | 2015-06-10 | 鸿富锦精密工业(深圳)有限公司 | Connectivity test system and method |
CN107634871A (en) * | 2016-07-19 | 2018-01-26 | 北京金山云网络技术有限公司 | A kind of continuity testing method, apparatus and system |
-
2020
- 2020-06-21 CN CN202010570199.7A patent/CN111835586B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102413012A (en) * | 2011-11-21 | 2012-04-11 | 上海交通大学 | System for automatically analyzing computer network connectivity |
CN103186444A (en) * | 2013-04-15 | 2013-07-03 | 北京搜狐新时代信息技术有限公司 | Performance testing method, platform and machine |
CN104702449A (en) * | 2013-12-04 | 2015-06-10 | 鸿富锦精密工业(深圳)有限公司 | Connectivity test system and method |
CN107634871A (en) * | 2016-07-19 | 2018-01-26 | 北京金山云网络技术有限公司 | A kind of continuity testing method, apparatus and system |
Also Published As
Publication number | Publication date |
---|---|
CN111835586A (en) | 2020-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108768730B (en) | Method and device for operating intelligent network card | |
CN113630668B (en) | Equipment control method and device and storage medium | |
CN108234246B (en) | Method and system for multi-directionally testing network performance of server | |
CN103731663B (en) | The testing method of a kind of intelligent television and device | |
CN106776346B (en) | Test method and device of CCMTS (China center testing System) equipment | |
CN105868133A (en) | Remote and concentrated serial port management method for multi-node mainboard | |
CN112486809A (en) | Automatic testing method, system and equipment based on white box switch | |
CN102750143B (en) | Based on the DSP development approach that MATLAB com component calls | |
CN115858221A (en) | Management method and device of storage equipment, storage medium and electronic equipment | |
CN105721568A (en) | Remote debugging system, method and device | |
CN109660386A (en) | A kind of semiconductor memory aging testing system method for upgrading software | |
CN107181606B (en) | Method and apparatus for controlling network nodes | |
CN111835586B (en) | Method and system for testing network connectivity of server and switch | |
CN117169692A (en) | System, method, equipment and medium for parallel testing of radio frequency chips | |
CN109885420B (en) | PCIe link fault analysis method, BMC and storage medium | |
CN111752916B (en) | Data acquisition method and device, computer readable storage medium and electronic equipment | |
CN109446002B (en) | Jig plate, system and method for grabbing SATA hard disk by server | |
CN112463083B (en) | Remote collection method and system for information of substrate control manager | |
CN109032978A (en) | A kind of document transmission method based on BMC, device, equipment and medium | |
CN112379763B (en) | Method, system, equipment and medium for preventing electric leakage | |
US20050021310A1 (en) | System for testing network devices | |
CN113030702A (en) | Automatic test system and method for chip | |
KR20010055482A (en) | Converting Method of Managing Operation from service management system to Switching Command in a Integrated Network | |
US6922143B2 (en) | Serial bus type configuration recognition and alarm apparatus | |
CN104683178A (en) | Method and system for testing multiple DUTs (devices under test) with same IP (Internet Protocol) address |
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 |