CN112968800A - Switch batch test method, system and equipment based on Loongson platform - Google Patents
Switch batch test method, system and equipment based on Loongson platform Download PDFInfo
- Publication number
- CN112968800A CN112968800A CN202110195828.7A CN202110195828A CN112968800A CN 112968800 A CN112968800 A CN 112968800A CN 202110195828 A CN202110195828 A CN 202110195828A CN 112968800 A CN112968800 A CN 112968800A
- Authority
- CN
- China
- Prior art keywords
- test
- switch
- server
- tested
- 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.)
- Pending
Links
- 238000010998 test method Methods 0.000 title claims abstract description 12
- 238000012360 testing method Methods 0.000 claims abstract description 201
- 230000006870 function Effects 0.000 claims description 10
- 238000000034 method Methods 0.000 abstract description 7
- 238000003745 diagnosis Methods 0.000 abstract description 4
- 230000008569 process Effects 0.000 abstract description 2
- 238000009434 installation Methods 0.000 abstract 1
- 238000013522 software testing Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000011990 functional testing Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
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/06—Generation of reports
- H04L43/065—Generation of reports related to network devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- 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/02—Capturing of monitoring data
- H04L43/022—Capturing of monitoring data by sampling
-
- 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/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a switch batch test method, system and equipment based on a Loongson platform, and relates to the technical field of switch test. The method comprises the steps of firstly configuring a test server and a network switch, and distributing IP to a switch to be tested through the network switch; then compiling a test file and a test OS, and uploading the compiled file to a corresponding directory of a test server; and then starting the switch to be tested, wherein the switch to be tested automatically Ping leads to the test server, downloads a corresponding test file from a corresponding directory of the test server, and starts testing from the test OS. The problem that this scheme does not support PXE function to current godson platform switch, can only pass through artifical installation test system test has realized the online diagnosis test function of domestic switch, and test OS can be updated on the server, has greatly improved efficiency of software testing, and the testing process need not rely on the storage device of the switch that awaits measuring, and the flexibility ratio is high, and the commonality is strong, has improved the productivity greatly.
Description
Technical Field
The embodiment of the invention relates to the technical field of switch testing, in particular to a switch batch testing method, system and device based on a Loongson platform.
Background
With the large background of current information technology, switches are becoming increasingly important to the national information industry. At present, the mainstream switch in the market is generally a foreign brand, and the research and development test significance of the domestic switch is important in order to ensure the national information safety. The current domestic switch generally adopts an ARM platform or a Loongson platform, and has the defects that the utilization rate of the platform is low, and the platform cannot be adapted to a test method of most X86 platforms on the market.
With the rapid development of various industry fields, the demand of domestic switches is increasing, the number of functional test items of the switches is increasing, and the test requirements are stricter and stricter. Because the domestic switch based on the Loongson platform does not support the PXE function and can not realize batch test through the PXE function, the current method for testing the domestic switch based on the Loongson platform by a factory is generally as follows: the tester first manually installs the test system on the tester via the external storage device, and then the tester performs the test locally. According to the testing method, because each machine needs a tester to manually install the testing system, the testing efficiency is low, a large amount of external storage equipment needs to be occupied, a large amount of human resources are wasted, the iterative updating of the testing system is extremely complicated, all systems of the external storage equipment need to be updated every time the system is updated, the capacity of the switch is greatly limited, and the current testing requirements on the domestic Loongson platform switch cannot be met.
Disclosure of Invention
The embodiment of the invention provides a switch batch testing method, system and device based on a Loongson platform, which avoids the complexity of manually installing a testing system, reduces the testing time, does not need to depend on storage equipment of a switch to be tested, and has high use flexibility and strong universality.
In order to achieve the purpose, the invention discloses the following technical scheme:
the invention provides a switch batch testing method based on a Loongson platform, which comprises the following steps:
configuring a test server and a network switch, and distributing IP to the switch to be tested through the network switch;
compiling a test file and a test OS, and then uploading the compiled file to a corresponding directory of a test server;
and starting the switch to be tested, automatically Ping the switch to be tested to the test server, downloading the corresponding test file from the corresponding directory of the test server, and starting the test from the test OS.
Based on the above solution, further, the configuring the test server and the network switch includes the following steps:
configuring two network ports for a test server, wherein one network port is connected with an external network, and the other network port is connected with a network switch;
connecting the network switch with a switch to be tested;
and configuring the tftp and dhcp functions of the test server, and setting the intranet network port IP of the test server as a fixed value.
Further, before writing the test file and testing the OS, the method further includes the following steps:
and the PMON firmware of the switch to be tested is perfected, so that the switch to be tested can automatically ping the intranet network port IP of the test server after acquiring the IP distributed by the network switch, and a required test file is downloaded from a specific directory of the server to be tested through the tftp service.
Further, the writing of the test file and the test OS, and then uploading the written file to a corresponding directory of the test server, includes the following steps:
compiling a test file and a test OS;
importing the compiling file into a corresponding directory of a test server through a server external network port;
and setting the test image of the OS according to the requirement.
Preferably, the intranet network port IP of the test server is set to 10.0.0.10, and the test network segment may be set to, for example: 10.0.10.1-10.0.255.254, the IP address can be automatically allocated to the network port of the network switch.
The invention provides a switch batch test system based on the Loongson platform, which comprises a test server, a network switch and a switch to be tested;
the test server is used for storing the written test file and the test OS;
the network switch is used for distributing IP to the switch to be tested;
the switch to be tested is used for downloading the corresponding test file from the corresponding directory of the test server and starting the test OS for performing the function test.
Based on the system, further, the test server is configured with two network ports, one network port is connected with an external network, and the test file and the test OS are uploaded to the test server through the external network port; the other port is connected to the network switch and allocates IP to the network switch through DHCP.
Furthermore, the switch to be tested is configured with a perfect PMON, after the switch to be tested obtains the IP distributed by the network switch, the switch to be tested can automatically ping the IP of the intranet network port of the test server, and download the required test file from the specific directory of the server to be tested through the tftp service.
In addition, the invention also provides a switch batch test device based on the Loongson platform, which comprises: at least one processor, and at least one memory communicatively coupled to the processor;
the memory stores program instructions executable on the processor;
the processor calls the program instructions to execute the steps of the Loongson platform-based switch batch test method.
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:
the switch batch testing method based on the Loongson platform comprises the steps of firstly configuring a testing server and a network switch, and distributing IP to a switch to be tested through the network switch; then compiling a test file and a test OS, and uploading the compiled file to a corresponding directory of a test server; and then starting the switch to be tested, wherein the switch to be tested automatically Ping leads to the test server, downloads a corresponding test file from a corresponding directory of the test server, and starts testing from the test OS. The method of the embodiment aims at the problem that the current Loongson platform switch does not support the PXE function and can only be tested by manually installing the test system, the online diagnosis test function of the domestic switch is realized, the test OS can be updated on the server, the test efficiency is greatly improved, the test process does not need to depend on the storage equipment of the switch to be tested, the use flexibility is high, the universality is strong, the mass test can be completed, and the productivity is greatly improved.
The switch batch test system and the switch batch test equipment based on the Loongson platform can realize the switch batch test method based on the Loongson platform and achieve the technical effects.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flow chart of a switch batch testing method based on a Loongson platform according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a switch batch test system based on a Loongson platform according to an embodiment of the present application;
fig. 3 is a working schematic diagram of a switch batch test system based on a Loongson platform according to an embodiment of the present application.
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.
Fig. 1 shows a schematic flow chart of a switch batch testing method based on a Loongson platform according to an embodiment of the present invention.
Referring to fig. 1, the method of the present embodiment includes the following steps:
s1, configuring a test server and a network switch, and distributing IP to the switch to be tested through the network switch;
specifically, in this step, the configuring the test server and the network switch includes the following steps:
configuring two network ports for a test server, wherein one network port is connected with an external network so as to facilitate a tester to update a corresponding test system and a corresponding file through the network port, and the other network port is connected with a network switch;
connecting the network switch with a switch to be tested;
configuring tftp and dhcp functions of a test server, building a test network, setting an intranet network port IP of the test server to be a fixed value 10.0.0.10, and setting a test network segment as follows: 10.0.10.1-10.0.255.254, the IP address can be automatically allocated to the network port of the network switch.
S2, perfecting PMON firmware of the switch to be tested;
in this step, the PMON firmware of the switch to be tested is completed, so that the switch to be tested can automatically ping through the intranet network port IP10.0.0.10 of the test server after acquiring the IP allocated by the network switch, and download the required test file from the specific directory of the server to be tested to the memory address of the switch to be tested through the tftp service.
S3, compiling a test file and a test OS, and then uploading the compiled file to a corresponding directory of a test server;
preferably, in this step, writing the test file and the test OS, and then uploading the written file to a corresponding directory of the test server, may be implemented by the following steps:
writing a test file config _ default and a test OS image;
the testing file config _ default and the testing OS image are led into a tftpboost/tftp _ cfg directory and a tftpboost/tftp _ cfg/OS _ image directory of a testing server through a port of an external network of the server;
and setting the test image of the OS according to the requirement.
And S4, starting the switch to be tested, automatically Ping the switch to be tested to the test server, downloading the corresponding test file from the corresponding directory of the test server, and starting the test from the test OS.
Specifically, in this step, after the switch to be tested is started, the IP allocated by the network switch is used to automatically Ping the intranet port 10.0.0.10 of the test server, and after Ping is completed, the config _ default file of the tftpboot/tftp _ cfg directory is automatically downloaded from the test server, the OS of the config _ default directory is identified, then the corresponding test image is downloaded to the local memory address, and then the PMON identifies the address and automatically performs the functional diagnosis test from the start of the test image.
In the switch batch testing method based on the Loongson platform, the testing system does not need to be installed manually, the storage equipment of the switch to be tested does not need to be relied on, the on-line diagnosis and test of the switch are realized, the problems that the existing manual testing method is complicated in steps, inconvenient in system updating, incapable of performing batch testing and the like are solved, the testing time can be greatly reduced, and the testing efficiency and the testing capacity are improved.
Fig. 2 is a schematic structural diagram of a switch batch test system based on a Loongson platform according to an embodiment of the present invention; fig. 3 shows a working principle diagram of a switch batch testing system based on a Loongson platform.
Referring to fig. 2 and 3, the test system of the present embodiment includes a test server 1, a network switch 2, and a switch 3 to be tested;
the test server 1 is used for storing the written test file and the test OS;
the network switch 2 is used for distributing IP to the switch to be tested;
the switch 3 to be tested is used for downloading the corresponding test files from the corresponding directories of the test server and starting the test OS for function test.
Specifically, as shown in fig. 2, the test server 1 is configured with two network ports, one network port is connected to an external network, and a test file and a test OS are uploaded to the test server through the external network port; the other network port is connected with the network switch, and IP is distributed to the network switch through DHCP.
Further, the switch 3 to be tested is configured with a perfect PMON, and after the switch 3 to be tested obtains the IP allocated by the network switch 2, the switch 3 to be tested can automatically ping the IP of the intranet network port of the test server, and download the required test file from the specific directory of the server to be tested through the tftp service.
Based on the same inventive concept, the embodiment of the present application further provides a switch batch test device based on the Loongson platform, where the device includes: at least one processor, and at least one memory communicatively coupled to the processor;
the memory stores program instructions executable on the processor;
the processor calls the program instruction to execute the steps of the switch batch test method based on the Loongson platform in the embodiment.
The switch batch test system and the test equipment based on the Loongson platform, which are provided by the embodiment of the application, may refer to the switch batch test method based on the Loongson platform provided by the embodiment described above, and are not described herein again.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and it will be apparent to those skilled in the art that any modification, improvement and equivalent substitution made without departing from the principle of the present invention are included in the protection scope of the present invention.
Claims (9)
1. A switch batch test method based on a Loongson platform is characterized by comprising the following steps:
configuring a test server and a network switch, and distributing IP to the switch to be tested through the network switch;
compiling a test file and a test OS, and then uploading the compiled file to a corresponding directory of a test server;
and starting the switch to be tested, automatically Ping the switch to be tested to the test server, downloading the corresponding test file from the corresponding directory of the test server, and starting the test from the test OS.
2. The switch batch test method based on the Loongson platform as claimed in claim 1, wherein the configuration test server and the network switch comprise the following steps:
configuring two network ports for a test server, wherein one network port is connected with an external network, and the other network port is connected with a network switch;
connecting the network switch with a switch to be tested;
and configuring the tftp and dhcp functions of the test server, and setting the intranet network port IP of the test server as a fixed value.
3. The switch batch test method based on the Loongson platform as claimed in claim 2, further comprising the following steps before writing the test file and testing the OS:
and the PMON firmware of the switch to be tested is perfected, so that the switch to be tested can automatically ping the intranet network port IP of the test server after acquiring the IP distributed by the network switch, and a required test file is downloaded from a specific directory of the server to be tested through the tftp service.
4. The switch batch testing method based on the Loongson platform as claimed in claim 3, wherein the writing of the test file and the test OS, and then the uploading of the written file to the corresponding directory of the test server, comprises the following steps:
compiling a test file and a test OS;
importing the compiling file into a corresponding directory of a test server through a server external network port;
and setting the test image of the OS according to the requirement.
5. The switch batch testing method based on the Loongson platform as claimed in claim 2, wherein an intranet network port IP of the test server is set to 10.0.0.10.
6. A switch batch test system based on a Loongson platform is characterized by comprising a test server, a network switch and a switch to be tested;
the test server is used for storing the written test file and the test OS;
the network switch is used for distributing IP to the switch to be tested;
the switch to be tested is used for downloading the corresponding test file from the corresponding directory of the test server and starting the test OS for performing the function test.
7. The switch batch test system based on the Loongson platform as claimed in claim 6, wherein the test server is configured with two network ports, one network port is connected with an external network, and the test file and the test OS are uploaded to the test server through the external network port; the other port is connected to the network switch and allocates IP to the network switch through DHCP.
8. The Loongson platform-based switch batch test system according to claim 6, wherein the switch to be tested is configured with a perfect PMON, and after acquiring the IP allocated by the network switch, the switch to be tested can automatically ping the IP of the intranet network port of the test server and download the required test files from the specific directory of the server to be tested through the tftp service.
9. The utility model provides a switch batch test equipment based on godson platform which characterized in that includes: at least one processor, and at least one memory communicatively coupled to the processor;
the memory stores program instructions executable on the processor;
the processor invoking the program instructions is capable of performing the steps of the Loongson platform based switch batch test method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110195828.7A CN112968800A (en) | 2021-02-20 | 2021-02-20 | Switch batch test method, system and equipment based on Loongson platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110195828.7A CN112968800A (en) | 2021-02-20 | 2021-02-20 | Switch batch test method, system and equipment based on Loongson platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112968800A true CN112968800A (en) | 2021-06-15 |
Family
ID=76285399
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110195828.7A Pending CN112968800A (en) | 2021-02-20 | 2021-02-20 | Switch batch test method, system and equipment based on Loongson platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112968800A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114584499A (en) * | 2022-02-11 | 2022-06-03 | 苏州浪潮智能科技有限公司 | Switch production line testing method, system, terminal and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107888459A (en) * | 2017-12-13 | 2018-04-06 | 北京卓越信通电子股份有限公司 | A kind of industrial switch automatic test platform and method of testing |
CN109587004A (en) * | 2018-12-19 | 2019-04-05 | 深圳市菲菱科思通信技术股份有限公司 | Interchanger automated performance testing device and method |
CN110011877A (en) * | 2019-04-24 | 2019-07-12 | 苏州浪潮智能科技有限公司 | A kind of switch test method and apparatus |
CN111414285A (en) * | 2020-02-21 | 2020-07-14 | 苏州浪潮智能科技有限公司 | Test method, test device and test equipment for starting function of server system |
CN111857685A (en) * | 2020-07-16 | 2020-10-30 | 武汉秒开网络科技有限公司 | Method and system for self-service software customization and remote automatic test |
CN111934953A (en) * | 2020-08-07 | 2020-11-13 | 北京计算机技术及应用研究所 | Batch testing method based on domestic processor computer platform |
-
2021
- 2021-02-20 CN CN202110195828.7A patent/CN112968800A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107888459A (en) * | 2017-12-13 | 2018-04-06 | 北京卓越信通电子股份有限公司 | A kind of industrial switch automatic test platform and method of testing |
CN109587004A (en) * | 2018-12-19 | 2019-04-05 | 深圳市菲菱科思通信技术股份有限公司 | Interchanger automated performance testing device and method |
CN110011877A (en) * | 2019-04-24 | 2019-07-12 | 苏州浪潮智能科技有限公司 | A kind of switch test method and apparatus |
CN111414285A (en) * | 2020-02-21 | 2020-07-14 | 苏州浪潮智能科技有限公司 | Test method, test device and test equipment for starting function of server system |
CN111857685A (en) * | 2020-07-16 | 2020-10-30 | 武汉秒开网络科技有限公司 | Method and system for self-service software customization and remote automatic test |
CN111934953A (en) * | 2020-08-07 | 2020-11-13 | 北京计算机技术及应用研究所 | Batch testing method based on domestic processor computer platform |
Non-Patent Citations (2)
Title |
---|
常甫: "OpenFlow交换机的远程配置与管理系统设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
张雯雯,许天予,章玥,郑孝遥: "SDN数据平面软件一致性测试用例生成方法", 《软件学报》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114584499A (en) * | 2022-02-11 | 2022-06-03 | 苏州浪潮智能科技有限公司 | Switch production line testing method, system, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220276854A1 (en) | Application Deployment Method, Apparatus, and System | |
CN106911729B (en) | Remote installation method of operating system suitable for domestic processor | |
CN107943496A (en) | A kind of device and method of whole machine cabinet server batch updating firmware | |
CN106371881B (en) | Method and system for updating program version in server | |
CN105955742A (en) | BIOS refreshing method, service system and BIOS refreshing system | |
CN108874437B (en) | Online cloud updating method for android application program | |
CN107483243A (en) | A kind of automatic deployment method and equipment of OpenStack platforms | |
CN112968800A (en) | Switch batch test method, system and equipment based on Loongson platform | |
CN111158712A (en) | Vehicle-mounted Tbox upgrading method, device, equipment and storage medium | |
CN113849228A (en) | Operating system batch deployment method, system, terminal and storage medium | |
CN110971689A (en) | System installation method, device, system, equipment and storage medium | |
CN102882907A (en) | Client configuration system and method | |
CN112948008B (en) | Method for managing physical bare machine based on Ironic | |
CN111367735B (en) | Test method and system based on server to be tested and Wuban diagram operating system | |
CN111769966B (en) | Clone upgrading method, system and application | |
CN112631669A (en) | Method, device, computer equipment and medium for starting embedded system | |
CN114448788B (en) | Method, system, equipment and medium for installing switch system | |
CN110413311A (en) | ' In System Reconfiguration Method and server | |
CN111475347B (en) | Method, device, equipment and medium for supporting hot plug and unplug function of camera | |
CN106506276A (en) | A kind of information detecting method for server | |
CN106201546B (en) | Full-scale formatting method and system for large disks in linux system installation processes | |
CN111061602A (en) | Server pressure testing system and method | |
CN111694578A (en) | Method and device for acquiring system installation package based on WinSW | |
CN114116033B (en) | Method and device for modifying server configuration | |
CN110780943B (en) | Method and system for unifying firmware of slave equipment |
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: 20210615 |
|
RJ01 | Rejection of invention patent application after publication |