CN110808878A - Automatic updating test method based on redundant network topology - Google Patents
Automatic updating test method based on redundant network topology Download PDFInfo
- Publication number
- CN110808878A CN110808878A CN201911054588.8A CN201911054588A CN110808878A CN 110808878 A CN110808878 A CN 110808878A CN 201911054588 A CN201911054588 A CN 201911054588A CN 110808878 A CN110808878 A CN 110808878A
- Authority
- CN
- China
- Prior art keywords
- network
- logic
- boards
- board
- logic board
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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/50—Testing arrangements
-
- 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/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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Stored Programmes (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to an automatic updating test method based on redundant network topology, which comprises the following steps: the method comprises the following steps: checking the correctness of the connection state acquired by the logic board; step two: after the connection state is verified to be correct, when the final download channel is decided by comprehensively judging the connection states of all logic boards and communication boards, all input traversal combination values are set to simulate different network scenes, and meanwhile, software is circulated to enter a network logic selection module; step three: different network connection states are actually deployed, and all logic boards can download latest software and data through established network channels and communication boards and are updated successfully. Compared with the prior art, the method has the advantages of automatically obtaining the test result, improving the test efficiency and the like.
Description
Technical Field
The invention relates to a subway signal system, in particular to an automatic updating test method based on redundant network topology.
Background
With the development of intellectualization, after a subway signal system is put into operation, software and data upgrading is changed from manual field replacement to remote control automatic upgrading. Generally, when the system stops external service, the bottom layer security platform is responsible for acquiring a file package to be updated from the maintenance server, replacing currently used software and data, and running in the latest version after automatic restart.
The security platform is composed of two subsystems in charge of main operation and a communication board in charge of external communication, and is shown in fig. 1. The two systems are hot standby redundancy and are composed of a plurality of logic boards, and the communication boards are also redundant. The logic board receives the update command, detects the network connection state with the communication board, integrates the network connection conditions of all the logic boards to decide to download the network and the communication board, then the communication board initiates a request to the server, and distributes the obtained file packet to the component to be updated through the specified network. After receiving the update command, all logic boards need to interact with the network connection state of the communication board, not only support the version update with normal network connection, but also when both networks are available, in order to reduce the network load and avoid the inconsistency of the update file packages obtained by both networks, a single network is selected for downloading, and when the available networks of all logic boards are not overlapped, the double networks are selected for matching use.
The physical network connection state of the logic board and the communication board has four conditions that 2 connections are disconnected and one or 2 connections are connected respectively. Assuming that the number of the logic boards is N, there are 4N combinations of communication states with the logic boards, and it is not feasible to perform a deployment test for each case, and it is not feasible to select a case where coverage is insufficient.
Disclosure of Invention
The present invention aims to overcome the defects of the prior art and provide an automatic updating test method based on redundant network topology.
The purpose of the invention can be realized by the following technical scheme:
an automatic updating test method based on redundant network topology comprises the following steps:
the method comprises the following steps: checking the correctness of the connection state acquired by the logic board;
step two: after the connection state is verified to be correct, when the final download channel is decided by comprehensively judging the connection states of all logic boards and communication boards, all input traversal combination values are set to simulate different network scenes, and meanwhile, software is circulated to enter a network logic selection module;
step three: different network connection states are actually deployed, and all logic boards can download latest software and data through established network channels and communication boards and are updated successfully.
Preferably, the correctness of the connection state acquired by the inspection logic board specifically includes:
firstly, each logic board is connected with any 1 network of the communication boards through actual network deployment, then the logic board is connected with two networks, and finally the logic board is disconnected with both networks, so that the correctness of the connection state acquired by the logic board is checked.
Preferably, the comprehensively determining the connection states of all the logic boards and the communication board specifically includes:
the connection state of the logic board and each communication board is assumed to be Si, wherein Si takes values of [ A (both disconnected), B (only connected with the network 1), C (only connected with the network 2) and D (both the network 1 and the network 2 are in connection state) ], and all logic board state values are arranged into S1 to SN according to the positive sequence of A < B < C < D;
if S1 equals a, the expected result is no network available regardless of the values of the other logic board state values;
if S1 is equal to B, then check S2 to SN if there is C, if so, the expected result is that networks 1 and 2 are used together, otherwise, the result is that only network 1 is available;
if S1 is equal to C, the state values of other logic boards take the values of C or D or C and D, and the expected results are that only the network 2 is available;
the remaining case is S1 equal to D, the preset result is that both networks are available.
Preferably, step two requires that all combinations are input in a loop, and the actual operation result is compared with the expected result in a consistent manner.
Preferably, the logic board does not notify the communication board to download the software package as long as checking the scene, considering that no network is available, cannot update.
Preferably, for a scenario where one network is available, two networks are available, and both networks are used in a mixed manner, whether the system is updated successfully is checked.
Compared with the prior art, the invention has the following advantages:
1. all combinations can be covered, different state values are set through software, and each combination is circularly traversed.
2. The downloading network channels required to be selected in different combinations are preset, then the actual operation result is compared with the expected value, the test result is automatically obtained, and the test efficiency is improved.
Drawings
FIG. 1 is a diagram of an automatic update network topology for a redundant security platform of the present invention;
FIG. 2 is a graph of expected results of different combinations of network states according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
The invention abandons the whole process from receiving the updating command, selecting the downloading network to finishing the updating as a whole for testing, and carrying out staged verification on the updating function.
Firstly, deploying any 1 network connection between each logic board and a communication board through an actual network, connecting the logic board and two networks, disconnecting the logic board and the two networks, and checking the correctness of the connection state acquired by the logic board;
and step two, after the connection state is verified to be correct, when the final download channel is decided by comprehensively judging the connection states of all the logic boards and the communication boards, setting all input traversal combination values to simulate different network scenes, and simultaneously, circularly entering a network logic selection module by software.
The connection state of the logic board and each communication board is assumed to be Si, wherein Si takes values of [ A (both disconnected), B (only connected with the network 1), C (only connected with the network 2) and D (both the network 1 and the network 2 are in connection state) ], and all logic board state values are arranged into S1 to SN according to the positive sequence of A < B < C < D. If S1 equals a, the expected result is no network available regardless of the values of the other logic board state values; if S1 is equal to B, then check S2 to SN if there is C, if so, the expected result is that networks 1 and 2 are used together, otherwise, the result is that only network 1 is available; if S1 is equal to C, the state values of other logic boards take the values of C or D or C and D, and the expected results are that only the network 2 is available; the remaining case is S1 equal to D, the preset result is that both networks are available, as shown in fig. 2.
All combinations are input in a loop, and the actual operation result is compared with the expected result in a consistency mode.
And step three, different network connection states are actually deployed, and all logic boards can download latest software and data through established network channels and communication boards and are updated successfully. Considering that the network cannot be updated when no network is available, the logic board does not inform the communication board to download the software package as long as the scene is checked; for one network to be available, two networks to be available, and a scenario in which both networks are mixed to be used, it is checked whether the system is updated successfully.
The implementation case of the invention is a 2-by-2-out-of-2 safety platform, the system comprises 4 logic boards (MPU) and 2 communication boards (CMU), only the logic boards update software, the communication boards do not relate to version updating, and the implementation process is described by taking the platform as an example.
SETP 1: and verifying whether the connection state with the two CMU networks acquired by the four MPUs is correct or not through actual scene deployment. There are 4 network connection states: 0 (disconnected from 2 CMUs), 1 (connected to CMU1 only), 2 (connected to CMU2 only), and 3 (connected to 2 CMUs all). In consideration of system limitations (the two networks of one MPU can not be disconnected at the same time), each MPU needs to traverse 4 state values, and also the state values of the four MPUs are prevented from being adhered to each other, and a deployment connection combination scene is shown in the table.
SETP 2: and when each MPU acquires the connection state of all the board cards, circularly setting each MPU to acquire the connection state of all the MPUs and the CMU, traversing the network channels and the CMUs selected under the combination of 256(4 x 4), and comparing the network channels and the CMUs with expected values to automatically obtain a test result. The network connection states of the four MPUs in each combination are arranged in order from small to large, and the expected results are as follows:
if the first state value is 0, namely the connection state of at least one MPU and 2 CMUs is disconnected, the expected result is that no network is available;
if the first state value is 1, namely at least one MPU is in a connected state with the CMU1 network and in a disconnected state with the CMU2 network, and the network state values of other 3 MPUs can be 1,2 and 3, then the three state values are checked, if 2 exists, the result is expected to be that the network 1 and the network 2 are used in a mixed way, and if not, the result is expected to be that the network 1 is used;
if the first state value is 2, namely at least one MPU is in a connection state with the CMU2 network, and is in a disconnection state with the CMU1 network, and the other 3 state values may have 2 and 3, the expected result is to use the network 2;
if the first state value is 3 and the other 3 state values are only possible to be 3, then the expected result is that both networks are available, using one of them.
SETP3:
Different network connection scenes are deployed, and software and data updating results of 4 MPUs are verified.
Scene 1:
through a scene in which the network 1 and the network 2 are both in a network connection state, it is checked whether software and data of 4 MPUs are successfully updated using one of the networks
Scene 2:
the network 2 is disconnected, a scene only using the network 1 is deployed, and the software and data of 4 MPUs are checked to be successfully updated
Scene 3:
the network 1 is recovered, a scene which is only available to the network 2 is deployed, and the software and data of 4 MPUs are checked to be successfully updated
Scene 4:
the deployment network 1 and the network 2 are cooperatively used, the selection combination is shown in table 2, and the MPUs respectively use the network 1 and the network 2.
Each of the above scenarios also ensures that the system is restarted and then runs with the latest version. Both STEP1 and STEP3 are deployment real scenarios that can be merged together for testing.
TABLE 1
Logic board 1 | Logic board 2 | Logic board 3 | Logic board 4 |
0 | 1 | 1 | 1 |
1 | 0 | 1 | 1 |
2 | 2 | 0 | 2 |
2 | 2 | 2 | 0 |
3 | 3 | 3 | 3 |
TABLE 2
Logic board 1 | Logic board 2 | Logic board 3 | Logic board 4 |
1 | 2 | 2 | 1 |
2 | 1 | 1 | 2 |
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (6)
1. An automatic updating test method based on redundant network topology is characterized by comprising the following steps:
the method comprises the following steps: checking the correctness of the connection state acquired by the logic board;
step two: after the connection state is verified to be correct, when the final download channel is decided by comprehensively judging the connection states of all logic boards and communication boards, all input traversal combination values are set to simulate different network scenes, and meanwhile, software is circulated to enter a network logic selection module;
step three: different network connection states are actually deployed, and all logic boards can download latest software and data through established network channels and communication boards and are updated successfully.
2. The method according to claim 1, wherein the checking of the correctness of the connection status collected by the logic board specifically comprises:
firstly, each logic board is connected with any 1 network of the communication boards through actual network deployment, then the logic board is connected with two networks, and finally the logic board is disconnected with both networks, so that the correctness of the connection state acquired by the logic board is checked.
3. The automatic update testing method based on the redundant network topology according to claim 1, wherein the comprehensively determining the connection states of all logic boards and communication boards specifically comprises:
the connection state of the logic board and each communication board is assumed to be Si, wherein Si takes values of [ A (both disconnected), B (only connected with the network 1), C (only connected with the network 2) and D (both the network 1 and the network 2 are in connection state) ], and all logic board state values are arranged into S1 to SN according to the positive sequence of A < B < C < D;
if S1 equals a, the expected result is no network available regardless of the values of the other logic board state values;
if S1 is equal to B, then check S2 to SN if there is C, if so, the expected result is that networks 1 and 2 are used together, otherwise, the result is that only network 1 is available;
if S1 is equal to C, the state values of other logic boards take the values of C or D or C and D, and the expected results are that only the network 2 is available;
the remaining case is S1 equal to D, the preset result is that both networks are available.
4. The method according to claim 1, wherein the second step requires inputting all combinations in a loop, and comparing the actual operation result with the expected result.
5. The method of claim 1, wherein the logic board does not notify the communication board to download the software package when checking that no network is available, considering that the network cannot be updated.
6. The method of claim 1, wherein the scenarios of availability of one network, availability of two networks, and mixed usage of two networks are checked to see if the system is updated successfully.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911054588.8A CN110808878B (en) | 2019-10-31 | 2019-10-31 | Automatic updating test method based on redundant network topology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911054588.8A CN110808878B (en) | 2019-10-31 | 2019-10-31 | Automatic updating test method based on redundant network topology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110808878A true CN110808878A (en) | 2020-02-18 |
CN110808878B CN110808878B (en) | 2022-08-16 |
Family
ID=69489919
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911054588.8A Active CN110808878B (en) | 2019-10-31 | 2019-10-31 | Automatic updating test method based on redundant network topology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110808878B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113467808A (en) * | 2021-07-12 | 2021-10-01 | 卡斯柯信号有限公司 | Redundant network-based trackside safety platform automatic upgrading method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1404671A (en) * | 2000-02-25 | 2003-03-19 | 霍尼韦尔国际公司 | Multiple network fault tolerance via redundant network control |
US20080141239A1 (en) * | 2003-12-22 | 2008-06-12 | Telefonaktiebolaget Lm Ericsson (Publ) | Downloading and Upgrading Terminal Software Over the Air of a Wireless Device |
CN101944986A (en) * | 2009-07-09 | 2011-01-12 | 南京南瑞继保电气有限公司 | Double network hot standby method |
CN104092732A (en) * | 2014-06-20 | 2014-10-08 | 裴兆欣 | Intelligent terminal software updating method and device |
CN109753295A (en) * | 2018-12-19 | 2019-05-14 | 卡斯柯信号有限公司 | A kind of online updating method for trackside security platform |
CN109800197A (en) * | 2018-12-19 | 2019-05-24 | 卡斯柯信号有限公司 | A kind of communication board hot-plug method for trackside security platform |
-
2019
- 2019-10-31 CN CN201911054588.8A patent/CN110808878B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1404671A (en) * | 2000-02-25 | 2003-03-19 | 霍尼韦尔国际公司 | Multiple network fault tolerance via redundant network control |
US20080141239A1 (en) * | 2003-12-22 | 2008-06-12 | Telefonaktiebolaget Lm Ericsson (Publ) | Downloading and Upgrading Terminal Software Over the Air of a Wireless Device |
CN101944986A (en) * | 2009-07-09 | 2011-01-12 | 南京南瑞继保电气有限公司 | Double network hot standby method |
CN104092732A (en) * | 2014-06-20 | 2014-10-08 | 裴兆欣 | Intelligent terminal software updating method and device |
CN109753295A (en) * | 2018-12-19 | 2019-05-14 | 卡斯柯信号有限公司 | A kind of online updating method for trackside security platform |
CN109800197A (en) * | 2018-12-19 | 2019-05-24 | 卡斯柯信号有限公司 | A kind of communication board hot-plug method for trackside security platform |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113467808A (en) * | 2021-07-12 | 2021-10-01 | 卡斯柯信号有限公司 | Redundant network-based trackside safety platform automatic upgrading method and system |
CN113467808B (en) * | 2021-07-12 | 2022-07-26 | 卡斯柯信号有限公司 | Redundant network-based trackside safety platform automatic upgrading method and system |
Also Published As
Publication number | Publication date |
---|---|
CN110808878B (en) | 2022-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5008814A (en) | Method and apparatus for updating system software for a plurality of data processing units in a communication network | |
CN110209405B (en) | Automatic upgrading method and device for distributed system | |
US8125900B2 (en) | Network equipment management device, network equipment management method, network equipment, and program used therein | |
US7151985B2 (en) | System and method for exchanging programs in aircraft computers | |
WO2005073845A2 (en) | Use loader for signaling the system software update service | |
CN101478446A (en) | Network appliance version loading method, apparatus and system | |
CN110808878B (en) | Automatic updating test method based on redundant network topology | |
CN103347048A (en) | Automatic updating method of urban railway traffic signal system | |
CN110275721A (en) | Multi-gang air conditioner and its upgrade method, update device and air-conditioning equipment | |
CN113127023B (en) | Service upgrading method, device and system | |
CN101266566B (en) | Multi- test scene automatic dispatch system and method | |
CN110198222B (en) | Plug-and-play test method and test master station for power distribution automation terminal | |
CN106919426A (en) | A kind of method of multipath server FPGA version synchronizations | |
CN111949553B (en) | Rule engine-based scene case testing method and device | |
EP4060514A1 (en) | Distributed database system and data disaster backup drilling method | |
CN113238864A (en) | Python-based MongoDB cluster deployment method and system | |
CN112506664A (en) | Electronic electrical architecture of software-defined satellite, computing resource scheduling method and electronic equipment | |
CN115543589A (en) | Calling method, system, equipment and storage medium for backup of satellite subsystem | |
CN115550164A (en) | Method and system for one-key installation and management of single-node big data assembly | |
US20180167269A1 (en) | Multiple site rolling upgrade protocol | |
CN113672521A (en) | Program testing method and device and electronic equipment | |
CN105722113B (en) | Constraint rule configuration method and corresponding device | |
CN110347609B (en) | Method and device for testing blockchain software | |
CN112558990A (en) | Maintenance and upgrading method and system for vehicle-mounted safety computer | |
JP2004326287A (en) | Program remote updating system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |