FC bus type fault injection instrument

文档序号:1172676 发布日期:2020-09-18 浏览:15次 中文

阅读说明:本技术 Fc总线式故障注入仪 (FC bus type fault injection instrument ) 是由 田兴龙 谢思明 张彬彬 于 2020-06-15 设计创作,主要内容包括:本发明公开了FC总线式故障注入仪,用于解决现有的FC总线测试方法无法对FC总线中捕获的链路数据进行修改替换、删除、插入以及延时操作后发回至链路,且测试效率低的问题;包括机箱平台、主控制器单元、FC光纤接口通信A通道单元和FC光纤接口通信B通道单元;本发明将FC总线式故障注入仪串入光纤总线式通信链路中,监控FC链路中的数据,设置特定原语或帧内容为触发条件,将捕获的链路数据进行修改替换、删除、插入以及延时操作后发回至链路,实现链路数据故障注入功能;用户可使用该产品搭建网络测试环境,实现对光纤总线通信链路进行各种故障信息注入,以验证通信系统中各节点设备的可靠性和稳定性。(The invention discloses an FC bus type fault injection instrument which is used for solving the problems that the existing FC bus test method cannot modify, replace, delete, insert and delay the link data captured in an FC bus and then sends the link data back to a link, and the test efficiency is low; the system comprises a case platform, a main controller unit, an FC optical fiber interface communication A channel unit and an FC optical fiber interface communication B channel unit; the invention connects FC bus type fault injection instrument into fiber bus type communication link, monitors data in FC link, sets specific primitive or frame content as trigger condition, sends back captured link data to link after modification, deletion, insertion and delay operation, realizes link data fault injection function; a user can use the product to set up a network test environment, and various fault information injection is carried out on the optical fiber bus communication link, so that the reliability and stability of each node device in the communication system are verified.)

The FC bus type fault injection instrument is characterized by comprising a case platform, a main controller unit, an FC optical fiber interface communication A channel unit and an FC optical fiber interface communication B channel unit;

the main controller unit is in communication connection with the FC optical fiber interface communication A channel unit through a PCIe bus; the FC optical fiber interface communication A channel unit is in communication connection with the FC optical fiber interface communication B channel unit through a PCIe bus; ONU ports are arranged at one ends of the FC optical fiber interface communication A channel unit and the FC optical fiber interface communication B channel unit, and OLT ports are arranged at the other ends of the FC optical fiber interface communication A channel unit and the FC optical fiber interface communication B channel unit;

the ONU port is in communication connection with the NC node, and the OLT port is in communication connection with the NT1 node and the NT2 node respectively; the ONU port and the OLT port are used for receiving, sending and processing data; an FC optical fiber interface communication A channel unit and an FC optical fiber interface communication B channel unit are connected in series to an FC bus communication link;

the method comprises the steps that a main controller unit obtains operation configuration parameter information of a user upper computer, when OLT ports and ONU ports on an FC optical fiber interface communication A channel unit and an FC optical fiber interface communication B channel unit receive data, data capture is carried out by taking primitive and frame as units, matching comparison is carried out on the captured unit data and a fault injection configuration register list of the OLT port and the ONU port when the captured unit data and the fault injection configuration register list are captured, when the captured unit data and the fault injection configuration register list are consistent with a set of configuration information matching results in the list, fault injection related operation is carried out on the captured data according to the fault injection information configuration corresponding to the set of matching contents, and modified FC bus data are generated and sent to an FC bus link; and when the captured data is not consistent with the list matching data, performing transparent forwarding operation, namely directly sending the captured FC bus data to the communication link.

2. The FC bus fault injector of claim 1, wherein the main controller unit is communicatively coupled to the host computer via an RJ45 interface.

3. The FC bus type fault injector of claim 1, wherein an equipment power supply module, an internal bus PXIE interface interconnection backplane and a human-computer interaction module are installed inside the chassis platform; the human-computer interaction module comprises a keyboard, a touch panel and a display screen; the equipment power supply module, the internal bus PXIE interface interconnection bottom plate and the man-machine interaction module are in communication connection with the main controller unit.

4. The FC bus type fault injection instrument according to claim 1, wherein the upper computer is configured to set a fault injection matching trigger condition and fault injection content data by a user, issue a management function, send the management function to the main controller unit, and receive fault injection real-time status information fed back by the main controller unit and update a fault injection interface status and display; the fault injection matching triggering conditions comprise primitive matching, partial frame matching and full frame matching;

each group in the primitive matching supports 32bit primitives to be matched bit by bit;

all fields of a frame header in the partial frame matching can be selected as matching conditions, SOF and EOF are matching conditions, and meanwhile, a frame data area is matched with data with specified length from any initial position; where the starting position and length are in bytes.

5. The FC bus type fault injection instrument according to claim 1, wherein the relevant operations of fault injection include bus primitive fault injection, FC frame full frame fault injection and bus FC frame length fault injection;

the bus primitive fault injection is only carried out when the primitives are matched, and the injection content is the primitives or other 32-bit data; the injection form comprises modification and insertion; the modification includes a replacement function; the insertion comprises a front insertion and a rear insertion;

fault injection of the whole FC frame is only carried out when a part of frames are matched with the whole frames, and the injection form comprises modification, deletion and insertion; the modification comprises the function of replacing the whole frame, all fields of the frame head can be selected to be modified, SOF and EOF can be selected to be modified, and meanwhile, data with specified length can be modified from any initial position, and the initial position and length bytes are units; after the frame content is modified, the 32-bit CRC software sets whether to regenerate or not; deleting the matched frame; the insertion comprises front insertion and rear insertion, and the frame format of the inserted frame is a frame format conforming to the protocol or a frame format completely not conforming to the protocol; the inserted frame is a matched frame or a copy matching frame;

the injection frame form of the bus FC frame length fault injection comprises an ultra-long frame and an ultra-short frame, and the injection form comprises modification and amendment.

6. The FC bus type fault injection instrument according to claim 1, wherein the communication protocols of the FC fiber interface communication A-channel unit and the FC fiber interface communication B-channel unit comprise FC-AE-1553 and MIL-STD-1553B protocols.

7. The FC bus type fault injection instrument according to claim 1, wherein the FC optical fiber interface communication a-channel unit and the FC optical fiber interface communication B-channel unit further include an optical module therein; the main controller unit also comprises a control unit for controlling the light modules to be turned on, turned off individually and turned off alternately.

Technical Field

The invention relates to the technical field of FC bus fault injection, in particular to an FC bus type fault injection instrument.

Background

FC is a high-speed serial transmission bus proposed by the X3T11 group of the American standardization Commission in 1988, solves the technical bottleneck encountered by parallel bus SCSI, and can map more FC-4 upper layer protocols under the same large protocol platform framework. The FC has the advantages of being dual in channel and network, high in bandwidth, reliability and stability, resistant to electromagnetic interference and the like, capable of providing very stable and reliable optical fiber connection, easy to construct large-scale data transmission and communication networks, and supporting bandwidth connection rates of 1x, 2x, 4x and 8x, and the bandwidth is continuously expanded along with continuous development of the technology so as to meet technical performance requirements of higher bandwidth data transmission. In practical applications, however, bus testing is indispensable to ensure high reliability of the bus system.

The existing FC bus test method cannot modify, replace, delete, insert and delay the link data captured in the FC bus and then sends the link data back to the link, and the test efficiency is low.

Disclosure of Invention

The invention aims to solve the problems that the existing FC bus test method cannot modify, replace, delete, insert and delay the link data captured in the FC bus and then sends the link data back to the link, and the test efficiency is low.

The purpose of the invention can be realized by the following technical scheme: the FC bus type fault injection instrument comprises a case platform, a main controller unit, an FC optical fiber interface communication A channel unit and an FC optical fiber interface communication B channel unit;

the main controller unit is in communication connection with the FC optical fiber interface communication A channel unit through a PCIe bus; the FC optical fiber interface communication A channel unit is in communication connection with the FC optical fiber interface communication B channel unit through a PCIe bus; ONU ports are arranged at one ends of the FC optical fiber interface communication A channel unit and the FC optical fiber interface communication B channel unit, and OLT ports are arranged at the other ends of the FC optical fiber interface communication A channel unit and the FC optical fiber interface communication B channel unit;

the ONU port is in communication connection with the NC node, and the OLT port is in communication connection with the NT1 node and the NT2 node respectively; the ONU port and the OLT port are used for receiving, sending and processing data; an FC optical fiber interface communication A channel unit and an FC optical fiber interface communication B channel unit are connected in series to an FC bus communication link;

the method comprises the steps that a main controller unit obtains operation configuration parameter information of a user upper computer, when OLT ports and ONU ports on an FC optical fiber interface communication A channel unit and an FC optical fiber interface communication B channel unit receive data, data capture is carried out by taking primitive and frame as units, matching comparison is carried out on the captured unit data and a fault injection configuration register list of the OLT port and the ONU port when the captured unit data and the fault injection configuration register list are captured, when the captured unit data and the fault injection configuration register list are consistent with a set of configuration information matching results in the list, fault injection related operation is carried out on the captured data according to the fault injection information configuration corresponding to the set of matching contents, and modified FC bus data are generated and sent to an FC bus link; and when the captured data is not consistent with the list matching data, performing transparent forwarding operation, namely directly sending the captured FC bus data to the communication link.

Preferably, the main controller unit is in communication connection with the upper computer through an RJ45 interface.

Preferably, an equipment power supply module, an internal bus PXIE interface interconnection bottom plate and a man-machine interaction module are installed in the case platform; the human-computer interaction module comprises a keyboard, a touch panel and a display screen; the equipment power supply module, the internal bus PXIE interface interconnection bottom plate and the man-machine interaction module are in communication connection with the main controller unit.

Preferably, the upper computer is used for setting a fault injection matching triggering condition and fault injection content data and issuing a management function by a user, sending the fault injection matching triggering condition and the fault injection content data to the main controller unit, and receiving fault injection real-time state information fed back by the main controller unit, updating the state of a fault injection interface and displaying the state; the fault injection matching triggering conditions comprise primitive matching, partial frame matching and full frame matching;

each group in the primitive matching supports 32bit primitives to be matched bit by bit;

all fields of a frame header in the partial frame matching can be selected as matching conditions, SOF and EOF are matching conditions, and meanwhile, a frame data area is matched with data with specified length from any initial position; where the starting position and length are in bytes.

Preferably, the related operations of fault injection include bus primitive fault injection, FC frame full frame fault injection and bus FC frame length fault injection;

the bus primitive fault injection is only carried out when the primitives are matched, and the injection content is the primitives or other 32-bit data; the injection form comprises modification and insertion; the modification includes a replacement function; the insertion comprises a front insertion and a rear insertion;

fault injection of the whole FC frame is only carried out when a part of frames are matched with the whole frames, and the injection form comprises modification, deletion and insertion; the modification comprises the function of replacing the whole frame, all fields of the frame head can be selected to be modified, SOF and EOF can be selected to be modified, and meanwhile, data with specified length can be modified from any initial position, and the initial position and length bytes are units; after the frame content is modified, the 32-bit CRC software sets whether to regenerate or not; deleting the matched frame; the insertion comprises front insertion and rear insertion, and the frame format of the inserted frame is a frame format conforming to the protocol or a frame format completely not conforming to the protocol; the inserted frame is a matched frame or a copy matching frame;

the injection frame form of the bus FC frame length fault injection comprises an ultra-long frame and an ultra-short frame, and the injection form comprises modification and amendment.

Preferably, the communication protocols of the FC fiber interface communication A-channel unit and the FC fiber interface communication B-channel unit include two protocols, namely FC-AE-1553 and MIL-STD-1553B.

Preferably, the FC optical fiber interface communication a channel unit and the FC optical fiber interface communication B channel unit further include an optical module therein; the main controller unit also comprises a control unit for controlling the light modules to be turned on, turned off individually and turned off alternately.

Compared with the prior art, the invention has the beneficial effects that: the FC bus type fault injection instrument is connected into an optical fiber bus type communication link in series, data in the FC link is monitored, specific primitive or frame content is set as a trigger condition, and the captured link data is sent back to the link after modification, replacement, deletion, insertion and delay operation are carried out, so that the link data fault injection function is realized; a user can use the product to build a network test environment, and various fault information injection is carried out on the optical fiber bus communication link, so that the reliability, the stability and the robustness of each node device in the communication system are verified.

Drawings

In order to facilitate understanding for those skilled in the art, the present invention will be further described with reference to the accompanying drawings.

FIG. 1 is a schematic diagram of a FC bus fault injection instrument hardware framework and a device tandem bus optical fiber communication link according to the present invention;

FIG. 2 is a flow chart of the process of receiving data by the OLT port on the FC fiber interface communication A-channel unit according to the present invention;

FIG. 3 is a flow chart of the process of receiving data by an ONU port on an FC fiber interface communication A-channel unit according to the present invention;

FIG. 4 is a flow chart of the process of receiving data by the OLT port on the FC fiber interface communication B-channel unit according to the present invention;

fig. 5 is a flow chart of the processing of receiving data by an ONU port on an FC fiber interface communication B-channel unit according to the present invention.

Detailed Description

The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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.

Referring to fig. 1-5, the FC bus type fault injection instrument includes a chassis platform, a main controller unit, an FC optical fiber interface communication a channel unit and an FC optical fiber interface communication B channel unit;

the main controller unit provides a Win7-64 bit operating system platform to run FC bus protocol fault injection software;

the main controller unit is in communication connection with the FC optical fiber interface communication A channel unit through a PCIe bus; the FC optical fiber interface communication A channel unit is in communication connection with the FC optical fiber interface communication B channel unit through a PCIe bus; ONU ports are arranged at one ends of the FC optical fiber interface communication A channel unit and the FC optical fiber interface communication B channel unit, and OLT ports are arranged at the other ends of the FC optical fiber interface communication A channel unit and the FC optical fiber interface communication B channel unit;

the ONU port is in communication connection with the NC node, and the OLT port is in communication connection with the NT1 node and the NT2 node respectively; the ONU port and the OLT port are used for receiving, sending and processing data; an FC optical fiber interface communication A channel unit and an FC optical fiber interface communication B channel unit are connected in series to an FC bus communication link;

the main controller unit obtains the operation configuration parameter information of a user upper computer, when an OLT port and an ONU port on an FC optical fiber interface communication A channel unit and an FC optical fiber interface communication B channel unit receive data, data capture is carried out by taking primitive and frame as a unit, each captured unit data and a fault injection configuration register list of the OLT port and the ONU port are matched and compared, when the data are consistent with a group of configuration information matching results in the list, the captured data are configured according to the fault injection information corresponding to the group of matching contents, relevant operation of fault injection is carried out on the captured data, and modified FC bus data are generated and sent to an FC bus link; and when the captured data is not consistent with the list matching data, performing transparent forwarding operation, namely directly sending the captured FC bus data to the communication link.

The main controller unit is in communication connection with the upper computer through an RJ45 interface;

an equipment power supply module, an internal bus PXIE interface interconnection bottom plate and a man-machine interaction module are arranged in the case platform; the human-computer interaction module comprises a keyboard, a touch panel and a display screen; the equipment power supply module, the internal bus PXIE interface interconnection bottom plate and the man-machine interaction module are in communication connection with the main controller unit.

The upper computer is used for setting fault injection matching triggering conditions and fault injection content data and issuing management functions by a user, sending the fault injection matching triggering conditions and the fault injection content data to the main controller unit, and receiving fault injection real-time state information fed back by the main controller unit, updating the state of a fault injection interface and displaying the state; the fault injection matching triggering conditions comprise primitive matching, partial frame matching and full frame matching;

primitive matching: each group supports 32bit primitive bit-by-bit matching;

partial frame matching: all fields of the frame header can be selected as matching conditions, SOF and EOF can be selected as matching conditions, meanwhile, the frame data area can be matched with data with specified length from any initial position, and the initial position and the length are in bytes;

full frame matching is supported;

supporting multiple fault injection modes

Bus primitive fault injection is supported, injection is carried out only when the primitives are matched, and error injection contents can be the primitives or other 32-bit data; the injection form comprises: modify (including replace function), insert (support pre-insert and post-insert), no delete function;

the FC frame whole-frame fault injection is supported (fault injection is only carried out when partial frames are matched with the full frames), and the injection form comprises the following steps: modifying, deleting and inserting;

and (4) modifying functions: the method comprises the steps of replacing the whole frame, wherein all fields of a frame header can be selected to be modified, SOF and EOF can be selected to be modified, and meanwhile, data with specified length can be modified from any starting position, and the starting position and length bytes are units; after the frame content is modified, the 32-bit CRC can be set by software to be regenerated or not;

and (4) deleting function: deleting the matched frames;

the insertion function: the frame format of the inserted frame can be configured into a frame format conforming to the protocol or a frame format not conforming to the protocol completely; the frame capable of supporting insertion is a matched frame (a matched frame is copied as an insertion frame), and the continuous insertion time is configurable and is not less than 4 times.

The method comprises the following steps of fault injection of the length of a bus FC frame, wherein the injection frame form comprises the following steps: ultra-long frames (maximum support to 4KB), ultra-short frames (no more than 32B and no less than 4B); the injection form comprises: inserting (supporting front inserting and back inserting), modifying (modifying the frame length, the length can be set to 4B-4kB, and the length unit is 4B);

the communication protocols of the FC optical fiber interface communication A channel unit and the FC optical fiber interface communication B channel unit comprise FC-AE-1553 and MIL-STD-1553B protocols; the format description of the MIL-STD-1553B protocol is as follows:

Figure BDA0002539717820000071

the MIL-STD-1553B protocol format field R _ CTRL is used for indicating the type of the current message word, 0xF6 indicates that BC sends one command word, 0xF7 indicates that BC sends two command words, and 0xF8 indicates that RT sends;

the FC optical fiber interface communication A channel unit and the FC optical fiber interface communication B channel unit also comprise optical modules; the main controller unit also comprises a control unit for controlling the light module to be opened, independently closed and alternately closed, and the switching time can be configured at will;

the alternate turn off sequence is: the time duration of the optical module of the single FC optical fiber interface communication A channel unit is T1; the optical modules of the FC optical fiber interface communication A channel unit and the FC optical fiber interface communication B channel unit are simultaneously opened for time T2; the module time duration T1 of the FC fiber interface communication B channel unit is independently closed; the optical modules of the FC optical fiber interface communication A channel unit and the FC optical fiber interface communication B channel unit are simultaneously closed for time duration T2; and returning to repeat execution.

T1 and T2 can be set, the time precision can be set to 1ms, and the value range can be set to 0-600000ms (10min)

The invention realizes the control function of the Ethernet remote interface; 2 paths of independent equipment support mutual hot standby mode to work simultaneously; each 1 channel of FC channel supports fault injection of bidirectional communication data; the statistics of relevant parameter in the fault injection process shows the function, such as fault injection condition matching times and injection execution times, etc. global statistics information; the fault injection delay time is low, and is 300us at most and 2us at least; the FC frame fault injection frequency can be set, and multiple configurations can be supported; the fault injection times of the FC primitive can be set, and multiple configurations can be supported; the matching injection ratio times can be set.

When the invention is used, the FC bus type fault injection instrument is connected into the optical fiber bus type communication link in series, the data in the FC link is monitored, the specific primitive or frame content is set as a trigger condition, and the captured link data is sent back to the link after modification, replacement, deletion, insertion and delay operation, thereby realizing the link data fault injection function. A user can use the product to build a network test environment, and various fault information injection is carried out on the optical fiber bus communication link, so that the reliability, the stability and the robustness of each node device in the communication system are verified.

The preferred embodiments of the invention disclosed above are intended to be illustrative only. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种光传送网评价方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!