CN112702116A - System time consumption testing method, device, equipment and readable storage medium - Google Patents

System time consumption testing method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN112702116A
CN112702116A CN202011453134.0A CN202011453134A CN112702116A CN 112702116 A CN112702116 A CN 112702116A CN 202011453134 A CN202011453134 A CN 202011453134A CN 112702116 A CN112702116 A CN 112702116A
Authority
CN
China
Prior art keywords
input
output
signal
time
optical fiber
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
Application number
CN202011453134.0A
Other languages
Chinese (zh)
Other versions
CN112702116B (en
Inventor
顾焕峰
周游
周虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shengli Finacial Software Development Hangzhou Co ltd
Original Assignee
Shengli Finacial Software Development Hangzhou Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shengli Finacial Software Development Hangzhou Co ltd filed Critical Shengli Finacial Software Development Hangzhou Co ltd
Priority to CN202011453134.0A priority Critical patent/CN112702116B/en
Publication of CN112702116A publication Critical patent/CN112702116A/en
Application granted granted Critical
Publication of CN112702116B publication Critical patent/CN112702116B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/077Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using a supervisory or additional signal
    • H04B10/0775Performance monitoring and measurement of transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

The invention discloses a method for testing the time consumption of a system, which can realize accurate time consumption test by copying an optical fiber signal entering and exiting a system to be tested and almost having no time difference between the optical fiber signal entering the system to be tested and the copied optical fiber signal; when the source data optical fiber signal is copied, the source data basically has no influence, so that the influence on the actual operation of the system to be tested is avoided, and the real time-consuming measurement of the system can be realized; and because data receiving and processing are all executed by equipment running outside the system to be tested, the measurement environment has no influence on the resources of the system to be tested, accurate test on the actual running state of the system to be tested can be realized, and meanwhile, as long as the network input and output of the system to be tested is in an optical fiber access mode, the method can be adopted for measurement, and accurate test of different systems to be tested can be realized. The invention also discloses a system time consumption testing device, a system and a readable storage medium, and has corresponding technical effects.

Description

System time consumption testing method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of system testing technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for testing system time consumption.
Background
In high speed programmed systems, testing of the delay/speed of each module of the system has been an important method of evaluating the performance of each module in a programmed transaction system. The accurate speed test can accurately reflect the time consumption of each module of the system and provide an accurate optimization direction for the optimization and debugging of the system.
At present, due to the development of software and hardware technologies, the system time consumption of a programming system has already entered the single digit microsecond (microsecond) or even nanosecond (nanosecond) level, such as a programming trading system of financial security products, in which a market forwarding system can already achieve the time consumption approaching 100 nanoseconds.
Because the processing time of entering and exiting a subsystem/module in a programming/quantification system is one of the most important system performance indexes, the time-consuming measurement of the system is often carried out by repeatedly adopting various means in the process of development and use, and therefore how to carry out high-precision and interference-free measurement is always an important subject in the field.
For a developer of a programming system, the developer can use software to obtain a relatively accurate time stamp inside the system, record the time stamp in a critical path point to be measured, and analyze and count the recorded time stamp by matching with a proper data deriving and counting mode to obtain measurement data.
Because the time consumption of the whole system is very small, the performance consumption brought by the software testing process can not be ignored, and the CPU/memory resource of the system is additionally consumed to execute the corresponding function, the performance of the system can be obviously influenced, namely, the measurement method influences the measurement object, the measurement result can not accurately reflect the performance of the measurement object, and the detection accuracy is low; moreover, when the time of the system entering/exiting on a subsystem/module network layer is measured, the time stamp required by the method must be the time stamp of the same reference system (such as the same server), but different conditions exist when software enters the network segments of the system to be measured and exits from the system, the time stamps recorded by the system entering and exiting systems are not in the same absolute time axis, and the time stamp difference under different reference systems is large, so that the processing time consumption of the system can not be reflected; moreover, once the system needs to be modified, it is highly likely to affect the measurement codes themselves, requiring synchronous modification; in addition, as shown in fig. 1, a schematic diagram of a conventional software processing time consumption testing method is implemented, and it can be seen that the time consumption measurement performed by software only can be implemented by performing time consumption measurement on a system application layer, and two-way traversing time of four layers, namely a network hardware layer, a hardware driver layer, a system kernel layer, and a system protocol stack, cannot be counted, and accurate measurement of the overall processing time consumption of a system to be tested cannot be implemented.
In summary, how to implement accurate measurement of the overall time consumption of the system while avoiding much influence on the operation of the system to be tested, and reduce the cost of time consumption test modification of the system under system change is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a readable storage medium for testing the time consumption of a system, which can realize accurate measurement of the whole time consumption of the system while avoiding more influence on the self operation of the system to be tested, and reduce the time consumption test modification cost of the system under the condition of system change.
In order to solve the technical problems, the invention provides the following technical scheme:
respectively copying optical fiber signals of an input system and an output system to be tested to obtain an input optical fiber signal and an output optical fiber signal;
determining an input test signal and an output test signal corresponding to the input test signal;
identifying the input test signal in the input fiber optic signal;
if the input test signal is identified in the input optical fiber signal, recording input time;
identifying the output test signal in the output fiber optic signal;
if the output test signal is detected in the output optical fiber signal, recording output time;
and calculating the processing time consumption according to the time difference between the input time and the output time.
Optionally, the determining an input test signal and an output test signal corresponding to the input test signal includes:
determining data processing logic of the system to be tested;
determining an input test signal;
and performing data processing on the input test signal according to the data processing logic, and taking a signal obtained by the data processing as the output test signal.
The application also provides a system time-consuming testing device, including:
the optical signal replication unit is used for respectively replicating the optical fiber signals of the input and output system to be tested to obtain input optical fiber signals and output optical fiber signals;
the test signal determining unit is used for determining an input test signal and an output test signal corresponding to the input test signal;
an input identification unit for identifying the input test signal in the input optical fiber signal;
the input recording unit is used for recording input time if the input test signal is identified in the input optical fiber signal;
an output identification unit for identifying the output test signal in the output fiber signal;
the output recording unit is used for recording output time if the output test signal is detected in the output optical fiber signal;
and the time consumption calculating unit is used for calculating the processing time consumption according to the time difference between the input time and the output time.
The present application further provides a system time-consuming testing system, comprising: the optical signal replication device is connected with an optical fiber interface of the delay measurement timing device;
the optical signal replication equipment is used for respectively replicating optical fiber signals of an input system and an output system to be tested, and connecting a circuit of the input optical fiber signals and a circuit of the output optical fiber signals obtained by replication to the time delay measurement timing equipment;
the delay measurement timing device is used for determining an input test signal and an output test signal corresponding to the input test signal; identifying the input test signal in the input fiber optic signal; if the input test signal is identified in the input optical fiber signal, recording input time; identifying the output test signal in the output fiber optic signal; if the output test signal is detected in the output optical fiber signal, recording output time; and calculating the processing time consumption according to the time difference between the input time and the output time.
Optionally, the optical signal replication device is: a passive optical splitter.
Optionally, the passive optical splitter is: 2-path light splitting passive light splitter.
Optionally, the delay measurement timing device includes: a time recording device and a data processing device;
wherein the time keeping device is configured to identify the input test signal in the input fiber optic signal; if the input test signal is identified in the input optical fiber signal, recording input time; identifying the output test signal in the output fiber optic signal; if the output test signal is detected in the output optical fiber signal, recording output time;
the data processing equipment is used for determining an input test signal and an output test signal corresponding to the input test signal; and calculating the time consumed by the system processing according to the time difference between the input time and the output time.
Optionally, the time recording device is: and the circuit for inputting the optical fiber signal and the circuit for outputting the optical fiber signal of the optical signal replication equipment are connected into the optical fiber slot of the FPGA board card.
Optionally, the FPGA board card has a ten-thousand-million optical fiber slot, and the line for inputting the optical fiber signal and the line for outputting the optical fiber signal of the optical signal replication device are connected to the ten-thousand-million optical fiber slot.
The application also provides a readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the above-described method for time-consuming testing of a system.
According to the method provided by the embodiment of the invention, almost no time difference exists between the optical fiber signal entering the system to be tested and the copied optical fiber signal through the copied optical fiber signal entering and exiting the system to be tested, so that accurate time-consuming test can be realized for the detection of the copied optical fiber signal; when the source data optical fiber signal is copied, the source data is basically not influenced, namely the input optical fiber signal and the output optical fiber signal of the system to be tested are basically not influenced, so that the influence on the actual operation of the system to be tested is avoided, and the real and time-consuming accurate measurement of the system can be realized; the time-consuming tests such as data receiving, analysis and identification are all executed by equipment running outside the system to be tested, so that the measurement environment has no influence on the resources of the system to be tested, the accurate test on the actual running state of the system to be tested can be realized, and meanwhile, as long as the network input/output of the system to be tested is in an optical fiber access mode, the method can be adopted for measurement no matter how the operating system, the network card type and the network access mode type of the system to be tested are, so that the application range of the test method provided by the application is wide, and the accurate test of different systems to be tested can be realized; in addition, in the method.
Correspondingly, the embodiment of the invention also provides a system time-consuming testing device, equipment and a readable storage medium corresponding to the system time-consuming testing method, which have the technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or technical solutions in related arts, the drawings used in the description of the embodiments or related arts will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a conventional software processing time-consuming test method;
FIG. 2 is a flowchart illustrating an exemplary method for testing a system time consumption according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a system under test according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a system time-consuming testing apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a system time-consuming test system according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating physical connections of a system time-consuming test system according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a method for testing the time consumption of the system, which can realize the accurate measurement of the whole time consumption of the system while avoiding more influence on the self operation of the system to be tested, and reduce the cost for testing and modifying the time consumption of the system under the condition of system change.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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. 2, fig. 2 is a flowchart illustrating a method for testing a system time consumption according to an embodiment of the present invention, the method including the following steps:
s101, copying optical fiber signals of an input system and an output system to be tested respectively to obtain an input optical fiber signal and an output optical fiber signal;
the system to be tested is a system which needs to perform a time-consuming test of system operation processing, and the system type and the system function of the system to be tested are not limited in this embodiment, for example, the system to be tested may be a financial security trading system, a financial market forwarding system, or the like, and the system to be tested may be determined according to the requirements of actual use and test optimization.
In the embodiment, at least one path of light is copied for the incoming and outgoing optical fiber signals of the system to be measured, and the optical fiber signals entering the system to be measured and the copied optical fiber signals have almost no time difference, so that the generated delay can be considered as 0, and therefore, the accurate time-consuming test can be realized for the detection of the copied optical fiber signals; and when the source data optical fiber signal is copied, the source data basically has no influence, namely the input optical fiber signal and the output optical fiber signal of the system to be tested basically have no influence, so that the influence on the actual operation of the system to be tested is avoided, and the real and time-consuming accurate measurement of the system can be realized.
In addition, in this embodiment, the (duplicated) in-out optical fiber signals of the system to be tested are directly tested, and the in-out optical fiber signals pass through the connection layer and the protocol layer of the system to be tested except the application layer, as shown in fig. 3, which is a test diagram of the system to be tested.
It should be noted that, in this embodiment, the device and the component for implementing the optical fiber signal copying are not limited, and may include an optical splitter, and the like, and the device capable of implementing the above function may be selected according to the actual device function.
S102, determining an input test signal and an output test signal corresponding to the input test signal;
generally, the length and processing difficulty of the input test signal should not be too large, otherwise, the test process will occupy more resources of the system, and may adversely affect the normal service operation of the system itself. Signals with shorter data lengths may generally be selected.
The output test signal is an output signal of the input test signal after the operation processing of the system to be tested, and the implementation manner of determining the output test signal is not limited in this embodiment, and the output test signal may be determined according to characteristics of the test system, such as data output time characteristics, output format characteristics, and data processing characteristics, or the input test signal may be input to the system to be tested to obtain an actual output signal as the output test signal. For example, the time interval of the system to be tested for outputting data according to each input data is large, and the output data corresponding to the data to be tested can be obtained from time one to one; for another example, the process of determining the input test signal and the output test signal corresponding to the input test signal may specifically include the following steps: determining data processing logic of a system to be tested; determining an input test signal; and carrying out data processing on the input test signal according to the data processing logic, and taking a signal obtained by the data processing as an output test signal. The data processing logic of the test system is determined, corresponding configuration is carried out in the execution main body, after the data to be detected are determined, data processing is carried out through the execution main body, and the output test signal corresponding to the input test signal is determined.
In this embodiment, only the implementation manners of determining the output data corresponding to the data to be detected are taken as examples, and other implementation manners can refer to the description of this embodiment and are not described herein again.
S103, identifying an input test signal in the input optical fiber signal;
after the input test signal and the output test signal are respectively determined, signal identification can be performed on the input optical fiber signal and the output optical fiber signal of the system to be tested (obtained by copying), the obtained input optical fiber signal is used as target data, identification detection is performed on data in the input optical fiber signal according to the target data, and if the target data is obtained through detection, the input test signal can be judged to be detected. The specific signal identification process and implementation manner may refer to the introduction of related technologies, and may be implemented by means of feature identification, signal matching, and the like, which are not described herein again.
In this embodiment, the execution sequence of step S103 and step S105 is not limited, step S103 may be executed first, or both steps may be executed simultaneously, and in fig. 2 provided in this embodiment, the parallel execution is taken as an example, and the output signal is generally later than the input signal, so that step S105 may be triggered at the start time no earlier than step S103, so as to avoid the consumption of useless power.
S104, if the input test signal is identified in the input optical fiber signal, recording the input time;
if an input test signal is identified in the input fiber signal, the time is recorded as the input time.
S105, identifying an output test signal in the output optical fiber signal;
and taking the determined output test signal as target data, performing matching detection on the output optical fiber signal of the system to be tested (obtained by copying) according to the target data, and judging that the input test signal is identified in the input optical fiber signal if the target data is detected. The step S103 can be referred to for implementation of this step, and details are not repeated here.
S106, if an output test signal is detected in the output optical fiber signal, recording output time;
if an output test signal is detected in the output fiber signal, the time is recorded as the output time.
And S107, calculating the processing time consumption according to the time difference between the input time and the output time.
Specifically, after the time for inputting the system to be tested (i.e., the input time) and the time for outputting the system to be tested (i.e., the output time) are obtained, an implementation process in the system time consumption calculation is specifically performed according to the input time and the output time, which is not limited in this embodiment, and a time difference between the input time and the output time may be directly used as the system time consumption, or a further accurate calculation of the system time consumption may be performed based on the time difference, which may refer to an implementation manner in the related art, and is not described herein again.
The output format of the time-consuming calculation output result can be compatible with the common network data packet format in the market at present, and the original content of the output file can be directly checked by third-party software such as wireshark and the like. The analysis tool which is self-contained and can be adapted to various service data can be used for obtaining the final result and the statistical data at one time, the format is not limited in the embodiment, and the corresponding setting can be carried out according to the actual use requirement.
According to the technical scheme provided by the embodiment of the invention, through the copied optical fiber signal entering and exiting the system to be tested, the time difference between the optical fiber signal entering the system to be tested and the copied optical fiber signal is almost eliminated, so that the accurate time-consuming test can be realized for the detection of the copied optical fiber signal; when the source data optical fiber signal is copied, the source data is basically not influenced, namely the input optical fiber signal and the output optical fiber signal of the system to be tested are basically not influenced, so that the influence on the actual operation of the system to be tested is avoided, and the real and time-consuming accurate measurement of the system can be realized; the time-consuming tests such as data receiving, analysis and identification and the like are all executed by equipment running outside the system to be tested, so that the measurement environment has no influence on the resources of the system to be tested, the accurate test on the actual running state of the system to be tested can be realized, and meanwhile, as long as the network input and output of the system to be tested is in an optical fiber access mode, the method can be adopted for measurement no matter how the operating system, the network card type and the network access mode (optical fiber direct connection and access switch) of the system to be tested are, so that the application range of the test method provided by the application is wide, and the accurate test of different systems to be tested can be realized; in addition, in the method.
Corresponding to the above method embodiments, the embodiments of the present invention further provide a system time-consuming testing apparatus, and the system time-consuming testing apparatus described below and the system time-consuming testing method described above may be referred to in correspondence.
Referring to fig. 4, the apparatus includes the following modules:
the optical signal replication unit 110 is mainly configured to replicate optical fiber signals of an input and output system to be tested, respectively, to obtain an input optical fiber signal and an output optical fiber signal;
the test signal determining unit 120 is mainly configured to determine an input test signal and an output test signal corresponding to the input test signal;
the input identifying unit 130 is mainly used for identifying an input test signal in an input optical fiber signal;
the input recording unit 140 is mainly used for recording input time if an input test signal is identified in the input optical fiber signal;
the output identification unit 150 is mainly used for identifying an output test signal in the output optical fiber signal;
the output recording unit 160 is mainly used for recording the output time if the output test signal is detected in the output optical fiber signal;
the time-consuming calculating unit 170 is mainly used for calculating the processing time-consuming according to the time difference between the input time and the output time.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a system time-consuming test system, and a system time-consuming test system described below and a system time-consuming test method described above may be referred to correspondingly.
Referring to fig. 5, the system time consumption testing system mainly includes: an optical signal reproducing device and a time delay measuring and timing device.
The optical signal replication equipment is connected with an optical fiber interface of the delay measurement timing equipment;
the optical signal replication equipment is mainly used for respectively replicating optical fiber signals of an input system and an output system to be tested, and connecting a circuit of the input optical fiber signals and a circuit of the output optical fiber signals obtained by replication to the time delay measurement timing equipment;
the delay measurement timing equipment is mainly used for determining an input test signal and an output test signal corresponding to the input test signal; identifying an input test signal in an input fiber signal; if the input test signal is identified in the input optical fiber signal, recording the input time; identifying an output test signal in the output fiber signal; if an output test signal is detected in the output optical fiber signal, recording output time; and calculating the processing time consumption according to the time difference between the input time and the output time.
In this embodiment, the selection of the specific device type and model of the optical signal replication device and the delay measurement timing device is not limited, and for the sake of better understanding, the connection mode of several devices is described below.
Wherein, optical signal replication equipment specifically can select for use passive optical splitter, and the accurate quick duplication of optical signal can be realized to passive optical splitter, and the connected mode is simple simultaneously, certainly, can also select for use other equipment that can realize optical signal replication except passive optical splitter, for example active optical splitter etc. only introduces for selecting for use passive optical splitter in this embodiment, and the connected mode that other equipment corresponds all can refer to the introduction of this embodiment, and it is no longer repeated here.
A passive optical splitter (also called an optical fiber coupler) is selected to split each path of light into one part of network incoming and outgoing optical signals to be measured, namely, the network incoming and outgoing optical signals are respectively copied.
The number of copies is not limited in this embodiment, and one path of signal input to the system to be tested may be copied, that is, one path of signal input to the system to be tested corresponds to one path of copied signal, or multiple paths of signal input to the system to be tested corresponds to multiple paths of copied signals.
The delay measurement timing device may specifically include two parts, namely a time recording device and a data processing device.
The time recording equipment is mainly used for identifying an input test signal in an input optical fiber signal; if the input test signal is identified in the input optical fiber signal, recording the input time; identifying an output test signal in the output fiber signal; if an output test signal is detected in the output optical fiber signal, recording output time;
the data processing equipment is used for determining an input test signal and an output test signal corresponding to the input test signal; and calculating the processing time consumption of the system according to the time difference between the input time and the output time.
By separating the time record and the data processing equipment, the special equipment with higher precision can be respectively called to realize the time record and the data processing equipment, so that the precision of the time-consuming test of the system is guaranteed.
A time recording device such as an FPGA board card, a circuit for inputting optical fiber signals and a circuit for outputting optical fiber signals of an optical signal copying device are connected into an optical fiber slot of the FPGA board card.
The FPGA system can use 4 nanoseconds as precision recording time stamp, the FPGA can be internally provided with a set of system for receiving the optical data and using 4 nanoseconds as time stamp dotting, data filtering, data analyzing and result outputting of the precision, the time stamp recording is accurate, and the rapid signal identification and detection can be realized, so that a foundation is laid for obtaining the accurate input time and output time. Meanwhile, the grabbing and landing processing of the multipath light-divided data sources is realized by outputting the time stamps by referring to the FPGA board card time, so that the uniformity of the time stamps is ensured.
Generally, in order to ensure high data transmission efficiency of a current system to be tested, a network access interface of the system to be tested adopts a gigabit optical fiber network port and corresponding optical fibers and optical modules to ensure the implementation of high-speed programming, and in order to ensure the continuation of high-speed transmission, an FPGA board card with a gigabit optical fiber slot can be specifically selected, and accordingly, a line for inputting an optical fiber signal and a line for outputting the optical fiber signal of an optical signal replication device are accessed to the gigabit optical fiber slot. Generally, at most 4 paths of optical fibers can be accessed to one FPGA card, and any two slots, such as the slot No. 1 and the slot No. 2, can be accessed to one FPGA card, and in this embodiment, only 2 paths of optical fibers are taken as an example, and 3 paths and 4 paths of optical fibers are divided by analogy, and then accessed to the ports FPGA3 and No. 4.
For deepening understanding, a specific system time-consuming test system device connection and cooperation working condition is introduced here, as shown in fig. 6, a physical wiring schematic diagram of the system time-consuming test system is shown, an optical fiber interface switch a, a system to be tested and an optical fiber interface switch B form three parts of work operation of the system to be tested, the optical fiber interface switch a is connected to an input optical fiber network port of the system to be tested through a two-way optical fiber to provide input optical fiber signals for the system to be tested, and an output optical fiber network port of the system to be tested is connected to an optical fiber long-distance switch B through two-way optical fibers to realize transmission of output optical fiber signals.
The optical signal replication device specifically selects a passive optical splitter (also called a passive optical splitter), which is respectively connected to an input optical fiber interface and an output optical fiber interface of a system to be tested to realize the replication of an input optical fiber signal and an output optical fiber signal, two optical fiber signals are obtained after passing through the passive optical splitter, one optical fiber signal is transmitted to the system to be tested, the other optical fiber signal is transmitted to a delay measurement timing device, one optical fiber output signal is transmitted to an optical fiber interface switch B, the other optical fiber output signal is connected to the other ten-gigabit optical fiber slot of an FPGA board card, two signals connected to the FPGA board card respectively determine input time and output time through a signal identification and time recording program arranged in the FPGA board card, and then the signals in the delay measurement timing system in the delay measurement timing device are analyzed, and obtaining a time-consuming test result of the system.
It should be noted that, in the subsequent steps of receiving and landing the data lines of the input optical fiber signal and the output optical fiber signal after light splitting, the optical fiber may be connected to the network port of the common gigabit network card, and then the data capture and analysis tool of software network such as tcpdump is used to capture, analyze, output and the like the data.
In this way, even if the computing resources of the machine where the gigabit network card and the software network data capture tool are located are sufficient, the gigabit network card can be well processed without affecting the system to be tested, only the gigabit network card has 2 optical ports, and if 4 paths of optical components are needed to capture data, at least 2 gigabit optical network cards are needed to implement the method.
In this embodiment, only the connection and cooperative working modes of the devices in the system are described as an example, and specific implementation under selection of other device types can refer to the above description, which is not described herein again.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a readable storage medium, and a readable storage medium described below and a system time-consuming testing method described above may be referred to in correspondence.
A readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for testing the system time consumption of the above method embodiments.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

Claims (10)

1. A method for time-consuming testing of a system, comprising:
respectively copying optical fiber signals of an input system and an output system to be tested to obtain an input optical fiber signal and an output optical fiber signal;
determining an input test signal and an output test signal corresponding to the input test signal;
identifying the input test signal in the input fiber optic signal;
if the input test signal is identified in the input optical fiber signal, recording input time;
identifying the output test signal in the output fiber optic signal;
if the output test signal is detected in the output optical fiber signal, recording output time;
and calculating the processing time consumption according to the time difference between the input time and the output time.
2. The method for testing system elapsed time according to claim 1, wherein the determining an input test signal and an output test signal corresponding to the input test signal comprises:
determining data processing logic of the system to be tested;
determining an input test signal;
and performing data processing on the input test signal according to the data processing logic, and taking a signal obtained by the data processing as the output test signal.
3. A system time consuming test apparatus, comprising:
the optical signal replication unit is used for respectively replicating the optical fiber signals of the input and output system to be tested to obtain input optical fiber signals and output optical fiber signals;
the test signal determining unit is used for determining an input test signal and an output test signal corresponding to the input test signal;
an input identification unit for identifying the input test signal in the input optical fiber signal;
the input recording unit is used for recording input time if the input test signal is identified in the input optical fiber signal;
an output identification unit for identifying the output test signal in the output fiber signal;
the output recording unit is used for recording output time if the output test signal is detected in the output optical fiber signal;
and the time consumption calculating unit is used for calculating the processing time consumption according to the time difference between the input time and the output time.
4. A system time consuming test system, comprising: the optical signal replication device is connected with an optical fiber interface of the delay measurement timing device;
the optical signal replication equipment is used for respectively replicating optical fiber signals of an input system and an output system to be tested, and connecting a circuit of the input optical fiber signals and a circuit of the output optical fiber signals obtained by replication to the time delay measurement timing equipment;
the delay measurement timing device is used for determining an input test signal and an output test signal corresponding to the input test signal; identifying the input test signal in the input fiber optic signal; if the input test signal is identified in the input optical fiber signal, recording input time; identifying the output test signal in the output fiber optic signal; if the output test signal is detected in the output optical fiber signal, recording output time; and calculating the processing time consumption according to the time difference between the input time and the output time.
5. The system elapsed time test system of claim 4, wherein the optical signal replication device is: a passive optical splitter.
6. The system elapsed time test system of claim 5, wherein the passive optical splitter is: 2-path light splitting passive light splitter.
7. The system elapsed time test system of claim 4, wherein the delay measurement timing device comprises: a time recording device and a data processing device;
wherein the time keeping device is configured to identify the input test signal in the input fiber optic signal; if the input test signal is identified in the input optical fiber signal, recording input time; identifying the output test signal in the output fiber optic signal; if the output test signal is detected in the output optical fiber signal, recording output time;
the data processing equipment is used for determining an input test signal and an output test signal corresponding to the input test signal; and calculating the time consumed by the system processing according to the time difference between the input time and the output time.
8. The system elapsed time test system of claim 7, wherein the time recording device is: and the circuit for inputting the optical fiber signal and the circuit for outputting the optical fiber signal of the optical signal replication equipment are connected into the optical fiber slot of the FPGA board card.
9. The system time consumption testing system of claim 8, wherein the FPGA board has a ten-gigabit fiber slot, and the lines for the input fiber signals and the lines for the output fiber signals of the optical signal replication device are connected to the ten-gigabit fiber slot.
10. A readable storage medium, having stored thereon a computer program for implementing the steps of the method for time-consuming testing of a system according to claim 1 or 2 when executed by a processor.
CN202011453134.0A 2020-12-11 2020-12-11 System time consumption testing method, device, equipment and readable storage medium Active CN112702116B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011453134.0A CN112702116B (en) 2020-12-11 2020-12-11 System time consumption testing method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011453134.0A CN112702116B (en) 2020-12-11 2020-12-11 System time consumption testing method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112702116A true CN112702116A (en) 2021-04-23
CN112702116B CN112702116B (en) 2022-05-10

Family

ID=75508798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011453134.0A Active CN112702116B (en) 2020-12-11 2020-12-11 System time consumption testing method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112702116B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115766521A (en) * 2022-12-02 2023-03-07 中科亿海微电子科技(苏州)有限公司 Full-link delay measurement method and system based on FPGA

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621713A (en) * 2008-06-30 2010-01-06 华为技术有限公司 Method for calculating synchronous time of passive optical network, system and optical network equipment
CN102158334A (en) * 2011-01-28 2011-08-17 北京视博云科技有限公司 Internet protocol quadrature amplitude modulation (IPQAM) equipment delay detection method and device
CN103812553A (en) * 2014-02-18 2014-05-21 上海交通大学 Method for calibrating time-delay asymmetry of high-accuracy optical fibre bidirectional time comparison devices
CN103888320A (en) * 2014-04-14 2014-06-25 北京四方继保自动化股份有限公司 Switch device and method for measuring transmission delay through FPGA
CN106612141A (en) * 2016-12-20 2017-05-03 北京旋极信息技术股份有限公司 Optical fiber channel protocol general simulation testing card and data interaction method thereof
CN110798682A (en) * 2019-11-28 2020-02-14 湖南金翎箭信息技术有限公司 Time delay test system
CN110858811A (en) * 2018-08-24 2020-03-03 华为技术有限公司 Method for measuring time delay and network equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621713A (en) * 2008-06-30 2010-01-06 华为技术有限公司 Method for calculating synchronous time of passive optical network, system and optical network equipment
CN102158334A (en) * 2011-01-28 2011-08-17 北京视博云科技有限公司 Internet protocol quadrature amplitude modulation (IPQAM) equipment delay detection method and device
CN103812553A (en) * 2014-02-18 2014-05-21 上海交通大学 Method for calibrating time-delay asymmetry of high-accuracy optical fibre bidirectional time comparison devices
CN103888320A (en) * 2014-04-14 2014-06-25 北京四方继保自动化股份有限公司 Switch device and method for measuring transmission delay through FPGA
CN106612141A (en) * 2016-12-20 2017-05-03 北京旋极信息技术股份有限公司 Optical fiber channel protocol general simulation testing card and data interaction method thereof
CN110858811A (en) * 2018-08-24 2020-03-03 华为技术有限公司 Method for measuring time delay and network equipment
CN110798682A (en) * 2019-11-28 2020-02-14 湖南金翎箭信息技术有限公司 Time delay test system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115766521A (en) * 2022-12-02 2023-03-07 中科亿海微电子科技(苏州)有限公司 Full-link delay measurement method and system based on FPGA

Also Published As

Publication number Publication date
CN112702116B (en) 2022-05-10

Similar Documents

Publication Publication Date Title
TWI759423B (en) Automated test equipment, automated test equipment (ate) apparatus and method of capturing and reporting communications information for failure analysis
KR20190131445A (en) Traffic capture and debugging tools for identifying root causes of device failure during automated testing
CN108984389B (en) Application program testing method and terminal equipment
CN108092854B (en) Test method and device for train-level Ethernet equipment based on IEC61375 protocol
EP2590081A2 (en) Method, computer program, and information processing apparatus for analyzing performance of computer system
WO2017000424A1 (en) Protocol detection method and apparatus
CN104615477A (en) Cycle-accurate replay and debugging of running fpga systems
KR102153978B1 (en) Method of testing multiple data packet signal transceivers concurrently
CN103870627A (en) Design and simulation system, device and method
CN112702116B (en) System time consumption testing method, device, equipment and readable storage medium
CN102012444A (en) Oscilloscope and method for testing serial bus signal by using same
CN114414255A (en) Automatic driving test method and system based on CAN message period monitoring
CN117076337B (en) Data transmission method and device, electronic equipment and readable storage medium
CN108776723B (en) Test system self-checking adapter connection line generation method, device, equipment and storage medium
CN103902590B (en) Premises automation method of testing and its device
CN112685316A (en) Code execution path acquisition method and device, computer equipment and storage medium
CN115840686A (en) Server performance test method and device, electronic equipment and storage medium
CN112865860B (en) Calibration method and device for trillion passive optical network BOB equipment
CN113868137A (en) Method, device and system for processing buried point data and server
Kim et al. Design for testability of protocols based on formal specifications
CN104021059A (en) System and method for generating test signal for sequence of event
CN109857665A (en) A kind of test execution method and device of test case
CN113704035B (en) Time delay detection method and device and related equipment
CN117370214B (en) Program debugging method and device of controller and storage medium
CN107122275A (en) It is a kind of to check the device and method that RMT tests information

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310000 Room 403, floor 4, No. 3766, South Ring Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Shengli Anyuan Technology (Hangzhou) Co.,Ltd.

Address before: Room 403, 4th floor, 3766 Nanhuan Road, Binjiang District, Hangzhou City, Zhejiang Province 310051

Applicant before: SHENGLI FINACIAL SOFTWARE DEVELOPMENT (HANGZHOU) CO.,LTD.

GR01 Patent grant
GR01 Patent grant