CN117061390A - Software testing method for optical fiber communication delay - Google Patents

Software testing method for optical fiber communication delay Download PDF

Info

Publication number
CN117061390A
CN117061390A CN202311112112.1A CN202311112112A CN117061390A CN 117061390 A CN117061390 A CN 117061390A CN 202311112112 A CN202311112112 A CN 202311112112A CN 117061390 A CN117061390 A CN 117061390A
Authority
CN
China
Prior art keywords
communication
terminal
optical fiber
delay
loop
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311112112.1A
Other languages
Chinese (zh)
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.)
707th Research Institute of CSIC
Original Assignee
707th Research Institute of CSIC
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 707th Research Institute of CSIC filed Critical 707th Research Institute of CSIC
Priority to CN202311112112.1A priority Critical patent/CN117061390A/en
Publication of CN117061390A publication Critical patent/CN117061390A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages

Abstract

The application relates to a software testing method for optical fiber communication delay, which comprises the following steps: step 1, measuring single communication time by means of a us-level auxiliary clock through a loop communication method; step 2, calculating the time of continuous loop communication for a plurality of times by means of the system clock count of ms level and the auxiliary clock count of us level, and calculating the average communication time by combining the loop times; and step 3, sampling and testing the optical fiber loop communication time at different moments to acquire fluctuation of optical fiber communication delay, and sequentially evaluating the communication delay stability of the optical fiber communication delay. The application can accurately measure the minimum time delay of optical fiber communication by using the high-precision auxiliary clock in a software mode under the condition of not setting a hardware measurement point, and provides a feasible implementation scheme for communication design and acceptance of low-delay application scenes.

Description

Software testing method for optical fiber communication delay
Technical Field
The application belongs to the technical field of optical fiber communication, and relates to a software testing method of communication delay, in particular to a software testing method of optical fiber communication delay.
Background
Optical fiber communication is applied to many scenes with high-speed communication requirements due to the characteristics of high communication speed and high bandwidth. However, because the optical fiber communication has no unified hardware standard, driving standard and underlying protocol standard, the communication delay has great uncertainty, and in some scenes, it cannot be determined whether the performance requirement of high-speed communication can be met, and the delay condition of the optical fiber communication needs to be measured specifically.
And because the terminal equipment of the optical fiber communication is far away, the condition of setting a hardware measurement point is not necessarily provided, and the existing optical fiber communication delay measurement method can only measure the statistical average value of the optical fiber communication delay, and cannot accurately measure the instantaneous delay.
No prior art documents identical or similar to the present application were found upon retrieval.
Disclosure of Invention
The application aims to overcome the defects of the prior art, and provides a software testing method for optical fiber communication delay, which can measure the delay condition of optical fiber communication in multiple aspects through the software method.
The application solves the practical problems by adopting the following technical scheme:
a software testing method for optical fiber communication delay comprises the following steps:
step 1, measuring single communication time by means of a us-level auxiliary clock through a loop communication method;
step 2, calculating the time of continuous loop communication for a plurality of times by means of the system clock count of ms level and the auxiliary clock count of us level, and calculating the average communication time by combining the loop times;
and step 3, sampling and testing the optical fiber loop communication time at different moments to acquire fluctuation of optical fiber communication delay, and sequentially evaluating the communication delay stability of the optical fiber communication delay.
Moreover, the specific steps of the step 1 include:
1) The terminal A initializes a us-level auxiliary clock as a metering reference for measuring communication time;
2) Before initiating optical fiber communication, the terminal A acquires a current auxiliary clock count startstartstarttime;
3) The terminal A sends an optical fiber message to the terminal B;
4) After receiving the optical fiber message, the terminal B immediately sends the optical fiber message to the terminal B;
5) After the terminal A acquires the optical fiber message sent by the terminal B, the terminal A immediately acquires the current auxiliary clock count endStampTime;
6) Terminal A obtains auxiliary clock count frequency freStamp;
7) The single fiber communication loop back time is calculated by (endStampTime-startStampTme)/fresta.
Moreover, the specific steps of the step 2 include:
1) The terminal A initializes a ms-level system clock and a us-level auxiliary clock as measurement references for measuring communication time;
2) Before initiating optical fiber communication, the terminal A acquires a current system clock count startSysTime and a current auxiliary clock count startStampTime;
3) Judging whether the loop communication is completed for N times;
4) If not, carrying out loop communication of terminal A- > terminal B- > terminal A' once, and then carrying out judgment of 3);
5) If the loop communication is completed for N times, the terminal A acquires an auxiliary clock count endStampTime and an auxiliary clock count frequency freStamp at the current moment, and acquires a system clock count endSysTime and a system clock count freSys;
6) The average loop time for single fiber communication was calculated by ((endSysTime-startSysTme)/freSys)/1+ ((endStampTime-startStampTme)/fresTAmp)% 1.
Moreover, the specific steps of the step 3 include:
1) The terminal A initializes a ms-level system clock as a measurement reference for measuring communication time;
2) Before initiating optical fiber communication, the terminal A acquires a current auxiliary clock count startstartstarttime;
3) Judging whether the loop communication is completed for N times;
4) If not, carrying out loop communication of the terminal A- > terminal B- > terminal A once after randomly delaying for a period of time, obtaining time-consuming delay [ n ] of the loop communication, and then carrying out judgment of the step 3);
5) If the loop communication is completed for N times, the instantaneous delay of each message is counted through delay, and the lowest instantaneous delay value, the maximum fluctuation amplitude and the delay discrete condition are calculated in sequence.
The application has the advantages and beneficial effects that:
the application provides a software testing method for optical fiber communication delay, which can accurately measure the minimum optical fiber communication delay by using a high-precision auxiliary clock in a software mode under the condition of not setting a hardware measuring point and provides a feasible implementation scheme for communication design and acceptance of a low-delay application scene.
Drawings
FIG. 1 is a schematic diagram of a delay test of optical fiber communication according to the present application
FIG. 2 is a single communication time measurement flow chart of the present application;
FIG. 3 is a flow chart of the average communication time measurement of the present application;
fig. 4 is a communication time stability measurement flow chart of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the application.
The application forms a communication loop through two terminal devices of a communication link, and measures the average delay and delay fluctuation of optical fiber communication through software by a method of multi-group loopback test, as shown in figure 1.
Most hardware environments may provide a system clock count on the ms level at the VxWorks operating system or the linux operating system, and an auxiliary clock may provide an auxiliary clock count on the us level. Relatively accurate software time can be obtained using the system clock and the auxiliary clock in combination.
The software testing method for the optical fiber communication delay, as shown in fig. 2 to 4, comprises the following steps:
step 1, measuring single communication time by means of a us-level auxiliary clock through a loop communication method;
the specific steps of the step 1 comprise:
1) The terminal A initializes a us-level auxiliary clock as a metering reference for measuring communication time;
2) Before initiating optical fiber communication, the terminal A acquires a current auxiliary clock count startstartstarttime;
3) The terminal A sends an optical fiber message to the terminal B;
4) After receiving the optical fiber message, the terminal B immediately sends the optical fiber message to the terminal B;
5) After the terminal A acquires the optical fiber message sent by the terminal B, the terminal A immediately acquires the current auxiliary clock count endStampTime;
6) Terminal A obtains auxiliary clock count frequency freStamp;
7) The single fiber communication loop back time is calculated by (endStampTime-startStampTme)/fresta.
Step 2, calculating the time of continuous loop communication for a plurality of times by means of the system clock count of ms level and the auxiliary clock count of us level, and calculating the average communication time by combining the loop times;
the specific steps of the step 2 include:
1) The terminal A initializes a ms-level system clock and a us-level auxiliary clock as measurement references for measuring communication time;
2) Before initiating optical fiber communication, the terminal A acquires a current system clock count startSysTime and a current auxiliary clock count startStampTime;
3) Judging whether the loop communication is completed for N times;
4) If not, carrying out loop communication of terminal A- > terminal B- > terminal A' once, and then carrying out judgment of 3);
5) If the loop communication is completed for N times, the terminal A acquires an auxiliary clock count endStampTime and an auxiliary clock count frequency freStamp at the current moment, and acquires a system clock count endSysTime and a system clock count freSys;
6) The average loop time for single fiber communication was calculated by ((endSysTime-startSysTme)/freSys)/1+ ((endStampTime-startStampTme)/fresTAmp)% 1.
And step 3, sampling and testing the optical fiber loop communication time at different moments to acquire fluctuation of optical fiber communication delay, and sequentially evaluating the communication delay stability of the optical fiber communication delay.
The specific steps of the step 3 include:
1) The terminal A initializes a ms-level system clock as a measurement reference for measuring communication time;
2) Before initiating optical fiber communication, the terminal A acquires a current auxiliary clock count startstartstarttime;
3) Judging whether the loop communication is completed for N times;
4) If not, carrying out loop communication of the terminal A- > terminal B- > terminal A once after randomly delaying for a period of time, obtaining time-consuming delay [ n ] of the loop communication, and then carrying out judgment of the step 3);
5) If the loop communication is completed for N times, the instantaneous delay of each message is counted through delay, and the lowest instantaneous delay value, the maximum fluctuation amplitude and the delay discrete condition are calculated in sequence.
Therefore, the application can accurately measure the minimum time delay of the optical fiber communication by utilizing the high-precision auxiliary clock in a software mode under the condition of not setting a hardware measurement point, and provides a feasible implementation scheme for communication design and acceptance of low-delay application scenes.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (4)

1. A software testing method for optical fiber communication delay is characterized in that: the method comprises the following steps:
step 1, measuring single communication time by means of a us-level auxiliary clock through a loop communication method;
step 2, calculating the time of continuous loop communication for a plurality of times by means of the system clock count of ms level and the auxiliary clock count of us level, and calculating the average communication time by combining the loop times;
and step 3, sampling and testing the optical fiber loop communication time at different moments to acquire fluctuation of optical fiber communication delay, and sequentially evaluating the communication delay stability of the optical fiber communication delay.
2. The method for testing the software of the optical fiber communication delay according to claim 1, wherein the method comprises the following steps: the specific steps of the step 1 comprise:
1) The terminal A initializes a us-level auxiliary clock as a metering reference for measuring communication time;
2) Before initiating optical fiber communication, the terminal A acquires a current auxiliary clock count startstartstarttime;
3) The terminal A sends an optical fiber message to the terminal B;
4) After receiving the optical fiber message, the terminal B immediately sends the optical fiber message to the terminal B;
5) After the terminal A acquires the optical fiber message sent by the terminal B, the terminal A immediately acquires the current auxiliary clock count endStampTime;
6) Terminal A obtains auxiliary clock count frequency freStamp;
7) The single fiber communication loop back time is calculated by (endStampTime-startStampTme)/fresta.
3. The method for testing the software of the optical fiber communication delay according to claim 1, wherein the method comprises the following steps: the specific steps of the step 2 include:
1) The terminal A initializes a ms-level system clock and a us-level auxiliary clock as measurement references for measuring communication time;
2) Before initiating optical fiber communication, the terminal A acquires a current system clock count startSysTime and a current auxiliary clock count startStampTime;
3) Judging whether the loop communication is completed for N times;
4) If not, carrying out loop communication of terminal A- > terminal B- > terminal A' once, and then carrying out judgment of 3);
5) If the loop communication is completed for N times, the terminal A acquires an auxiliary clock count endStampTime and an auxiliary clock count frequency freStamp at the current moment, and acquires a system clock count endSysTime and a system clock count freSys;
6) By passing through
The average loop time for single fiber communication was calculated as (((endSysTime-startSysTme)/freSys)/1+ ((endStampTime-startStampTme)/fresTAmp)% 1.
4. The method for testing the software of the optical fiber communication delay according to claim 1, wherein the method comprises the following steps: the specific steps of the step 3 include:
1) The terminal A initializes a ms-level system clock as a measurement reference for measuring communication time;
2) Before initiating optical fiber communication, the terminal A acquires a current auxiliary clock count startstartstarttime;
3) Judging whether the loop communication is completed for N times;
4) If not, carrying out loop communication of the terminal A- > terminal B- > terminal A once after randomly delaying for a period of time, obtaining time-consuming delay [ n ] of the loop communication, and then carrying out judgment of the step 3);
5) If the loop communication is completed for N times, the instantaneous delay of each message is counted through delay, and the lowest instantaneous delay value, the maximum fluctuation amplitude and the delay discrete condition are calculated in sequence.
CN202311112112.1A 2023-08-31 2023-08-31 Software testing method for optical fiber communication delay Pending CN117061390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311112112.1A CN117061390A (en) 2023-08-31 2023-08-31 Software testing method for optical fiber communication delay

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311112112.1A CN117061390A (en) 2023-08-31 2023-08-31 Software testing method for optical fiber communication delay

Publications (1)

Publication Number Publication Date
CN117061390A true CN117061390A (en) 2023-11-14

Family

ID=88660822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311112112.1A Pending CN117061390A (en) 2023-08-31 2023-08-31 Software testing method for optical fiber communication delay

Country Status (1)

Country Link
CN (1) CN117061390A (en)

Similar Documents

Publication Publication Date Title
US11774472B2 (en) Transformer area identification method and method for constructing transformer area line topology
EP4294072A3 (en) Methods and apparatuses for signal transmission, signal measurement reporting, and positioning
CN109375151B (en) Monitoring channel scheduling method and device for electric energy meter metering error on-line monitoring technology
EP3106989B1 (en) Method for determining an amount of available resources ensuring a quality user experience
CN109194533B (en) Evaluation method and device for data transmission delay
CN106851341A (en) Method and mobile terminal for measuring Internet video delivery quality
CN106888060A (en) The anti-interference method of testing and system of wireless communication module
CN104717670B (en) A kind of measure of the quality of service method, apparatus and system
CN116366497A (en) Big data-based Internet of things card time sequence anomaly detection system
CN106209492B (en) A kind of error-code testing method and system of backboard
CN117061390A (en) Software testing method for optical fiber communication delay
MX2022003097A (en) Measurement reporting method and apparatus.
CN114490290A (en) Method and system for improving pressure testing efficiency
CN111064507A (en) Method and device for detecting length of optical fiber link and terminal equipment
CN106918731A (en) A kind of digital oscilloscope and its signal frequency measuring method
CN104601260B (en) A kind of method and system of test receiver sensitivity
CN106932746B (en) Electronic current transformer performance test system and method
CN105785206B (en) A kind of the passband test macro and its method of multichannel frequency converter
CN110896547B (en) Positioning method and device for NB-IOT network problem
CN113992280A (en) Insertion loss calibration device of broadband channel production and measurement clamp and working method thereof
CN113156180B (en) Waveform parameter adjusting method and device and readable storage medium
CN114583837B (en) Distributed high-frequency synchronous sampling data transmission method, device and medium for power distribution network
CN106856624A (en) WIFI equipment and its method for synchronizing time
CN113992551B (en) Information reporting method and device
CN115934450B (en) Method and device for detecting data transmission quality, storage medium and electronic device

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