CN116614430A - Multi-channel communication synchronous test method - Google Patents

Multi-channel communication synchronous test method Download PDF

Info

Publication number
CN116614430A
CN116614430A CN202310893473.8A CN202310893473A CN116614430A CN 116614430 A CN116614430 A CN 116614430A CN 202310893473 A CN202310893473 A CN 202310893473A CN 116614430 A CN116614430 A CN 116614430A
Authority
CN
China
Prior art keywords
channel communication
communication
communication line
synchronous
mapping
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
CN202310893473.8A
Other languages
Chinese (zh)
Other versions
CN116614430B (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.)
Guangdong Guangyu Technology Development Co Ltd
Original Assignee
Guangdong Guangyu Technology Development 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 Guangdong Guangyu Technology Development Co Ltd filed Critical Guangdong Guangyu Technology Development Co Ltd
Priority to CN202310893473.8A priority Critical patent/CN116614430B/en
Publication of CN116614430A publication Critical patent/CN116614430A/en
Application granted granted Critical
Publication of CN116614430B publication Critical patent/CN116614430B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to the field of communication test, in particular to a multi-channel communication synchronous test method, which comprises the following steps: s1, acquiring a real-time state of a multichannel communication line; s2, establishing fixed synchronous mapping by utilizing the real-time state of the multichannel communication line at the same moment; s3, forward testing is carried out by utilizing the fixed synchronous mapping to obtain a forward testing result of the multi-channel communication; s4, performing reverse verification by using the multi-channel communication forward test result to obtain a multi-channel communication reverse verification result; s5, obtaining a multi-channel communication synchronous test result according to the multi-channel communication forward test result and the multi-channel communication reverse verification result, establishing unique line content mapping, gradually testing in the test process, gradually self-checking, providing a solution while finding problems, setting two independent lines for re-checking, and stably outputting the test result for the same line to be tested, wherein the repeated self-checking provides high accuracy and stability of the test result.

Description

Multi-channel communication synchronous test method
Technical Field
The application relates to the field of communication test, in particular to a multi-channel communication synchronous test method.
Background
In actual multi-channel communication, because the communication lines are complex and the ports are more likely to cause line confusion, and meanwhile, the communication test of the multi-channel line needs to be comprehensively considered in a targeted manner on the ports, the connection among the ports and the smoothness of the lines, the conventional test flow is fixed, the thought is fixed, the combination with the test line cannot be realized, and meanwhile, the singleness of single test is difficult to improve.
Disclosure of Invention
Aiming at the defects of the prior art, the application provides a multi-channel communication synchronous test method, which tests with the actual set of multi-channel communication lines and comprehensively considers the safety, smoothness and stability of the lines under various reasons.
In order to achieve the above object, the present application provides a method for testing synchronization of multi-channel communication, comprising:
s1, acquiring a real-time state of a multichannel communication line;
s2, establishing fixed synchronous mapping by utilizing the real-time state of the multichannel communication line at the same moment;
s3, forward testing is carried out by utilizing the fixed synchronous mapping to obtain a forward testing result of the multi-channel communication;
s4, performing reverse verification by using the multi-channel communication forward test result to obtain a multi-channel communication reverse verification result;
s5, obtaining a multi-channel communication synchronous test result according to the multi-channel communication forward test result and the multi-channel communication reverse verification result.
Preferably, the acquiring the real-time status of the multichannel communication line includes:
s1-1, judging whether asynchronous communication exists in the multichannel communication line, if so, executing S1-2, otherwise, judging that the real-time states of the multichannel communication line are synchronous states;
s1-2, judging whether the multichannel communication lines are all asynchronous communication, if so, the real-time states of the multichannel communication lines are all asynchronous states, otherwise, the real-time states of the multichannel communication lines are mixed states;
wherein the mixed state is that synchronous communication and asynchronous communication coexist.
Further, the establishing the fixed synchronization map by using the real-time state of the multi-channel communication line at the same time includes:
s2-1, judging whether the real-time state of the multi-channel communication line is synchronous communication or not when the real-time state of the multi-channel communication line is a single state, if so, establishing a fixed synchronous mapping according to the real-time state of the multi-channel communication line and the corresponding moment, otherwise, establishing the fixed synchronous mapping according to the real-time state of the multi-channel communication line;
s2-2, when the real-time state of the multichannel communication line is not a single state, establishing a fixed synchronous mapping by utilizing synchronous communication and asynchronous communication in the real-time state of the multichannel communication line at the same moment;
wherein, the single state is the real-time state of the multichannel communication line, and the real-time state is only synchronous communication or asynchronous communication.
Further, establishing the fixed synchronization map according to the real-time status of the multichannel communication line includes:
respectively acquiring a request time, a request data packet, a response time and a response data packet corresponding to asynchronous communication in a real-time state of a multichannel communication line;
when the request time corresponds to the response time, judging whether the request data packet corresponding to the request time corresponds to the response data packet corresponding to the response time, if so, establishing a fixed synchronous mapping by using the port address corresponding to the request data packet and the port address corresponding to the response data packet, otherwise, discarding the processing.
Further, the establishing the fixed synchronous mapping by using synchronous communication and asynchronous communication in the real-time state of the multichannel communication line at the same time includes:
s2-2-1, judging whether the address of an initial request port corresponding to synchronous communication and the address of an initial request port corresponding to asynchronous communication in the real-time state of the multichannel communication line are the same, if yes, executing S2-2-2, otherwise, executing S2-2-3;
s2-2-2, judging whether the synchronous communication corresponding termination response port address and the asynchronous communication corresponding termination response port address are the same in the real-time state of the multichannel communication line, if so, establishing a cross synchronous mapping as a fixed synchronous mapping by using the synchronous communication corresponding initial request port address and the asynchronous communication corresponding termination response port address, otherwise, executing S2-2-3;
s2-2-3, establishing a cyclic synchronous mapping as a fixed synchronous mapping by utilizing the synchronous communication line, the asynchronous communication line and a multi-channel communication protocol;
the initial request port address is a port address corresponding to a multi-channel communication starting request, and the termination request port address is a port address corresponding to a final response of multi-channel communication.
Further, performing the forward test by using the fixed synchronization map to obtain a forward test result of the multi-channel communication includes:
s3-1, when a forward test is started, using the current moment as the initial moment of the forward test;
s3-2, judging whether a transit node exists in the multichannel communication line corresponding to the fixed synchronous mapping, if yes, executing S3-3, otherwise, executing S3-4;
s3-3, judging whether data transfer exists after the forward test initial time of the transfer node, if so, executing S3-4 after obtaining a transfer sampling label by using the transfer node, otherwise, directly executing S3-4;
s3-4, utilizing the current moment as a forward test cut-off moment, and carrying out data acquisition according to the type of the mapping element in the fixed synchronous mapping corresponding to the forward test initial moment to establish forward test cut-off moment mapping;
s3-5, judging whether a transit sampling label exists after the forward test cut-off time, if so, mapping the transit sampling label and the forward test cut-off time to obtain a multichannel communication forward test result, otherwise, executing S3-6;
s3-6, judging whether the fixed synchronous mapping corresponding to the forward test initial time is consistent with the forward test cut-off time mapping, if so, passing the forward test result of the multichannel communication, otherwise, executing S3-7;
s3-7, judging whether a multi-channel communication line at the current moment has a transit node or not, if so, returning to the S3-3, otherwise, judging that the multi-channel communication forward test result does not pass;
the forward test communication direction is that a transmitting end points to a receiving end in a multichannel communication line, the transfer node is a non-transmitting end or a receiving end, and the transfer sampling label comprises a transmitting end address and a receiving end address corresponding to the transfer node.
Further, the mapping the transit sampling tag and the forward test deadline to obtain the forward test result of the multi-channel communication includes:
s3-5-1, judging whether the forward test deadline mapping is a subset of a fixed synchronous mapping, if so, executing S3-5-2, otherwise, judging that the forward test result of the multi-channel communication is not passed;
s3-5-2, judging whether the transit sampling label is a subset of the fixed synchronous mapping, if so, passing the forward test result of the multichannel communication, and otherwise, returning to S3-2.
Further, performing reverse verification by using the forward test result of the multi-channel communication to obtain a reverse verification result of the multi-channel communication includes:
s4-1, judging whether the multi-channel communication forward test result is passed, if so, executing S4-2, otherwise, directly executing S4-5;
s4-2, acquiring a port address corresponding to the response data packet in the multichannel communication line as a multichannel communication reverse test characteristic address;
s4-3, judging whether response moments corresponding to the reverse test feature addresses of the multi-channel communication are all corresponding to each other, if so, executing S4-4, otherwise, executing test self-checking processing;
s4-4, judging whether corresponding response data packets of the multi-channel communication reverse test feature address both have corresponding request data packets, if so, passing the multi-channel communication reverse verification result, and if not, performing test self-checking processing;
s4-5, utilizing all response data packets corresponding to the multi-channel communication forward test result as a reverse addressing characteristic;
s4-6, acquiring a corresponding request data packet according to the reverse addressing characteristics to serve as a reverse addressing end point data packet;
s4-7, judging whether the port address corresponding to the reverse addressing end point data packet is completely corresponding to the request port address in the fixed synchronous mapping, if so, determining that the multi-channel communication reverse verification result is passed, and if not, determining that the multi-channel communication reverse verification result is not passed.
Further, the performing test self-checking process includes:
respectively establishing a virtual forward multi-channel communication line and a virtual reverse multi-channel communication line according to the multi-channel communication line;
acquiring a fixed synchronous mirror image mapping in the virtual forward multi-channel communication line according to the corresponding fixed synchronous mapping of the multi-channel communication line;
and judging whether the fixed synchronous mirror image mapping has a corresponding relation on the virtual reverse multi-channel communication line, if so, returning to the S3-1 after the test self-checking processing result is normal, and otherwise, returning to the S1.
The virtual forward multi-channel communication line is identical to the multi-channel communication line, and the data transmission direction of the virtual reverse multi-channel communication line is opposite to that of the virtual forward multi-channel communication line.
Preferably, obtaining the multi-channel communication synchronization test result according to the multi-channel communication forward test result and the multi-channel communication reverse verification result includes:
judging whether the forward test result of the multi-channel communication and the reverse verification result of the multi-channel communication are both passing or not, if so, the synchronous test result of the multi-channel communication is passing, otherwise, the synchronous test result of the multi-channel communication is not passing.
Compared with the closest prior art, the application has the following beneficial effects:
the method combines the preparation stage and the test step in the actual communication line and the test process, considers the real-time state of the actual communication line, simultaneously considers the difference of synchronous communication and asynchronous communication, establishes unique line content mapping, provides a good basis for the subsequent test step, and provides a solution when the problem is found by gradual test and gradual self-test in the test process, and after the problem is found, two independent lines are set for rechecking, and the test thought is closed in a circulating way, so that the test result is stably output for the same line to be tested, and the high accuracy and the stability of the test result are provided by repeated self-checking.
Drawings
Fig. 1 is a flowchart of a multi-channel communication synchronization test method provided by the application.
Detailed Description
The following describes the embodiments of the present application in further detail with reference to the drawings.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Example 1: the application provides a multi-channel communication synchronous test method, as shown in figure 1, comprising the following steps:
s1, acquiring a real-time state of a multichannel communication line;
s2, establishing fixed synchronous mapping by utilizing the real-time state of the multichannel communication line at the same moment;
s3, forward testing is carried out by utilizing the fixed synchronous mapping to obtain a forward testing result of the multi-channel communication;
s4, performing reverse verification by using the multi-channel communication forward test result to obtain a multi-channel communication reverse verification result;
s5, obtaining a multi-channel communication synchronous test result according to the multi-channel communication forward test result and the multi-channel communication reverse verification result.
S1 specifically comprises:
s1-1, judging whether asynchronous communication exists in the multichannel communication line, if so, executing S1-2, otherwise, judging that the real-time states of the multichannel communication line are synchronous states;
s1-2, judging whether the multichannel communication lines are all asynchronous communication, if so, the real-time states of the multichannel communication lines are all asynchronous states, otherwise, the real-time states of the multichannel communication lines are mixed states;
wherein the mixed state is that synchronous communication and asynchronous communication coexist.
S2 specifically comprises:
s2-1, judging whether the real-time state of the multi-channel communication line is synchronous communication or not when the real-time state of the multi-channel communication line is a single state, if so, establishing a fixed synchronous mapping according to the real-time state of the multi-channel communication line and the corresponding moment, otherwise, establishing the fixed synchronous mapping according to the real-time state of the multi-channel communication line;
s2-2, when the real-time state of the multichannel communication line is not a single state, establishing a fixed synchronous mapping by utilizing synchronous communication and asynchronous communication in the real-time state of the multichannel communication line at the same moment;
wherein, the single state is the real-time state of the multichannel communication line, and the real-time state is only synchronous communication or asynchronous communication.
S2-1 specifically comprises:
s2-1-1, respectively acquiring a request time, a request data packet, a response time and a response data packet corresponding to asynchronous communication in a real-time state of a multichannel communication line;
s2-1-2, when the request time corresponds to the response time, judging whether the request data packet corresponding to the request time corresponds to the response data packet corresponding to the response time, if yes, establishing a fixed synchronous mapping by using the port address corresponding to the request data packet and the port address corresponding to the response data packet, otherwise, discarding the processing.
S2-2 specifically comprises:
s2-2-1, judging whether the address of an initial request port corresponding to synchronous communication and the address of an initial request port corresponding to asynchronous communication in the real-time state of the multichannel communication line are the same, if yes, executing S2-2-2, otherwise, executing S2-2-3;
s2-2-2, judging whether the synchronous communication corresponding termination response port address and the asynchronous communication corresponding termination response port address are the same in the real-time state of the multichannel communication line, if so, establishing a cross synchronous mapping as a fixed synchronous mapping by using the synchronous communication corresponding initial request port address and the asynchronous communication corresponding termination response port address, otherwise, executing S2-2-3;
s2-2-3, establishing a cyclic synchronous mapping as a fixed synchronous mapping by utilizing the synchronous communication line, the asynchronous communication line and a multi-channel communication protocol;
the initial request port address is a port address corresponding to a multi-channel communication starting request, and the termination request port address is a port address corresponding to a final response of multi-channel communication.
S3 specifically comprises:
s3-1, when a forward test is started, using the current moment as the initial moment of the forward test;
s3-2, judging whether a transit node exists in the multichannel communication line corresponding to the fixed synchronous mapping, if yes, executing S3-3, otherwise, executing S3-4;
s3-3, judging whether data transfer exists after the forward test initial time of the transfer node, if so, executing S3-4 after obtaining a transfer sampling label by using the transfer node, otherwise, directly executing S3-4;
s3-4, utilizing the current moment as a forward test cut-off moment, and carrying out data acquisition according to the type of the mapping element in the fixed synchronous mapping corresponding to the forward test initial moment to establish forward test cut-off moment mapping;
s3-5, judging whether a transit sampling label exists after the forward test cut-off time, if so, mapping the transit sampling label and the forward test cut-off time to obtain a multichannel communication forward test result, otherwise, executing S3-6;
s3-6, judging whether the fixed synchronous mapping corresponding to the forward test initial time is consistent with the forward test cut-off time mapping, if so, passing the forward test result of the multichannel communication, otherwise, executing S3-7;
s3-7, judging whether a multi-channel communication line at the current moment has a transit node or not, if so, returning to the S3-3, otherwise, judging that the multi-channel communication forward test result does not pass;
the forward test communication direction is that a transmitting end points to a receiving end in a multichannel communication line, the transfer node is a non-transmitting end or a receiving end, and the transfer sampling label comprises a transmitting end address and a receiving end address corresponding to the transfer node.
S3-5 specifically comprises:
s3-5-1, judging whether the forward test deadline mapping is a subset of a fixed synchronous mapping, if so, executing S3-5-2, otherwise, judging that the forward test result of the multi-channel communication is not passed;
s3-5-2, judging whether the transit sampling label is a subset of the fixed synchronous mapping, if so, passing the forward test result of the multichannel communication, and otherwise, returning to S3-2.
S4 specifically comprises the following steps:
s4-1, judging whether the multi-channel communication forward test result is passed, if so, executing S4-2, otherwise, directly executing S4-5;
s4-2, acquiring a port address corresponding to the response data packet in the multichannel communication line as a multichannel communication reverse test characteristic address;
s4-3, judging whether response moments corresponding to the reverse test feature addresses of the multi-channel communication are all corresponding to each other, if so, executing S4-4, otherwise, executing test self-checking processing;
s4-4, judging whether corresponding response data packets of the multi-channel communication reverse test feature address both have corresponding request data packets, if so, passing the multi-channel communication reverse verification result, and if not, performing test self-checking processing;
s4-5, utilizing all response data packets corresponding to the multi-channel communication forward test result as a reverse addressing characteristic;
s4-6, acquiring a corresponding request data packet according to the reverse addressing characteristics to serve as a reverse addressing end point data packet;
s4-7, judging whether the port address corresponding to the reverse addressing end point data packet is completely corresponding to the request port address in the fixed synchronous mapping, if so, determining that the multi-channel communication reverse verification result is passed, and if not, determining that the multi-channel communication reverse verification result is not passed.
In this embodiment, in the multi-channel communication synchronization test method, response time in S4-3 is defined as that the sequence of response time is correct, and adjacent response time corresponds to each other.
In S4-3 and S4-4, the performing test self-checking process includes:
respectively establishing a virtual forward multi-channel communication line and a virtual reverse multi-channel communication line according to the multi-channel communication line;
acquiring a fixed synchronous mirror image mapping in the virtual forward multi-channel communication line according to the corresponding fixed synchronous mapping of the multi-channel communication line;
and judging whether the fixed synchronous mirror image mapping has a corresponding relation on the virtual reverse multi-channel communication line, if so, returning to the S3-1 after the test self-checking processing result is normal, and otherwise, returning to the S1.
The virtual forward multi-channel communication line is identical to the multi-channel communication line, and the data transmission direction of the virtual reverse multi-channel communication line is opposite to that of the virtual forward multi-channel communication line.
In this embodiment, in the method for testing synchronization of multi-channel communication, the fixed synchronization mirror image is established according to data or addresses corresponding to elements in the fixed synchronization mirror image.
S5 specifically comprises the following steps:
s5-1, judging whether the forward test result of the multi-channel communication and the reverse verification result of the multi-channel communication are both passing or not, if so, the synchronous test result of the multi-channel communication is passing, otherwise, the synchronous test result of the multi-channel communication is not passing.
In this embodiment, a method for testing synchronization of multi-channel communication includes a description of "correspondence" in the scheme, including, but not limited to, correspondence between a request and a response, correspondence between an address and data, and the like.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
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.
Finally, it should be noted that: the above embodiments are only for illustrating the technical aspects of the present application and not for limiting the same, and although the present application has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the application without departing from the spirit and scope of the application, which is intended to be covered by the claims.

Claims (10)

1. A method for testing synchronization of multi-channel communications, comprising:
s1, acquiring a real-time state of a multichannel communication line;
s2, establishing fixed synchronous mapping by utilizing the real-time state of the multichannel communication line at the same moment;
s3, forward testing is carried out by utilizing the fixed synchronous mapping to obtain a forward testing result of the multi-channel communication;
s4, performing reverse verification by using the multi-channel communication forward test result to obtain a multi-channel communication reverse verification result;
s5, obtaining a multi-channel communication synchronous test result according to the multi-channel communication forward test result and the multi-channel communication reverse verification result.
2. The method for synchronously testing the multi-channel communication according to claim 1, wherein the step of obtaining the real-time status of the multi-channel communication line comprises:
s1-1, judging whether asynchronous communication exists in the multichannel communication line, if so, executing S1-2, otherwise, judging that the real-time states of the multichannel communication line are synchronous states;
s1-2, judging whether the multichannel communication lines are all asynchronous communication, if so, the real-time states of the multichannel communication lines are all asynchronous states, otherwise, the real-time states of the multichannel communication lines are mixed states;
wherein the mixed state is that synchronous communication and asynchronous communication coexist.
3. The method for testing synchronization of multi-channel communication according to claim 2, wherein said establishing a fixed synchronization map using real-time status of the multi-channel communication line at the same time comprises:
s2-1, judging whether the real-time state of the multi-channel communication line is synchronous communication or not when the real-time state of the multi-channel communication line is a single state, if so, establishing a fixed synchronous mapping according to the real-time state of the multi-channel communication line and the corresponding moment, otherwise, establishing the fixed synchronous mapping according to the real-time state of the multi-channel communication line;
s2-2, when the real-time state of the multichannel communication line is not a single state, establishing a fixed synchronous mapping by utilizing synchronous communication and asynchronous communication in the real-time state of the multichannel communication line at the same moment;
wherein, the single state is the real-time state of the multichannel communication line, and the real-time state is only synchronous communication or asynchronous communication.
4. A method of testing synchronization of a multi-channel communication as claimed in claim 3, wherein establishing a fixed synchronization map based on the real-time status of the multi-channel communication line comprises:
respectively acquiring a request time, a request data packet, a response time and a response data packet corresponding to asynchronous communication in a real-time state of a multichannel communication line;
when the request time corresponds to the response time, judging whether the request data packet corresponding to the request time corresponds to the response data packet corresponding to the response time, if so, establishing a fixed synchronous mapping by using the port address corresponding to the request data packet and the port address corresponding to the response data packet, otherwise, discarding the processing.
5. A method for synchronously testing multi-channel communication according to claim 3, wherein said establishing a fixed synchronous map by synchronous communication and asynchronous communication in real-time state of the multi-channel communication line at the same time comprises:
s2-2-1, judging whether the address of an initial request port corresponding to synchronous communication and the address of an initial request port corresponding to asynchronous communication in the real-time state of the multichannel communication line are the same, if yes, executing S2-2-2, otherwise, executing S2-2-3;
s2-2-2, judging whether the synchronous communication corresponding termination response port address and the asynchronous communication corresponding termination response port address are the same in the real-time state of the multichannel communication line, if so, establishing a cross synchronous mapping as a fixed synchronous mapping by using the synchronous communication corresponding initial request port address and the asynchronous communication corresponding termination response port address, otherwise, executing S2-2-3;
s2-2-3, establishing a cyclic synchronous mapping as a fixed synchronous mapping by utilizing the synchronous communication line, the asynchronous communication line and a multi-channel communication protocol;
the initial request port address is a port address corresponding to a multi-channel communication starting request, and the termination request port address is a port address corresponding to a final response of multi-channel communication.
6. The method of claim 5, wherein performing a forward test using the fixed synchronization map to obtain a forward test result for the multi-channel communication comprises:
s3-1, when a forward test is started, using the current moment as the initial moment of the forward test;
s3-2, judging whether a transit node exists in the multichannel communication line corresponding to the fixed synchronous mapping, if yes, executing S3-3, otherwise, executing S3-4;
s3-3, judging whether data transfer exists after the forward test initial time of the transfer node, if so, executing S3-4 after obtaining a transfer sampling label by using the transfer node, otherwise, directly executing S3-4;
s3-4, utilizing the current moment as a forward test cut-off moment, and carrying out data acquisition according to the type of the mapping element in the fixed synchronous mapping corresponding to the forward test initial moment to establish forward test cut-off moment mapping;
s3-5, judging whether a transit sampling label exists after the forward test cut-off time, if so, mapping the transit sampling label and the forward test cut-off time to obtain a multichannel communication forward test result, otherwise, executing S3-6;
s3-6, judging whether the fixed synchronous mapping corresponding to the forward test initial time is consistent with the forward test cut-off time mapping, if so, passing the forward test result of the multichannel communication, otherwise, executing S3-7;
s3-7, judging whether a multi-channel communication line at the current moment has a transit node or not, if so, returning to the S3-3, otherwise, judging that the multi-channel communication forward test result does not pass;
the forward test communication direction is that a transmitting end points to a receiving end in a multichannel communication line, the transfer node is a non-transmitting end or a receiving end, and the transfer sampling label comprises a transmitting end address and a receiving end address corresponding to the transfer node.
7. The method of claim 6, wherein the mapping the forward test result by using the transit sampling tag and the forward test deadline comprises:
s3-5-1, judging whether the forward test deadline mapping is a subset of a fixed synchronous mapping, if so, executing S3-5-2, otherwise, judging that the forward test result of the multi-channel communication is not passed;
s3-5-2, judging whether the transit sampling label is a subset of the fixed synchronous mapping, if so, passing the forward test result of the multichannel communication, and otherwise, returning to S3-2.
8. The method of claim 6, wherein performing reverse verification using the forward test result of the multi-channel communication to obtain a reverse verification result of the multi-channel communication comprises:
s4-1, judging whether the multi-channel communication forward test result is passed, if so, executing S4-2, otherwise, directly executing S4-5;
s4-2, acquiring a port address corresponding to the response data packet in the multichannel communication line as a multichannel communication reverse test characteristic address;
s4-3, judging whether response moments corresponding to the reverse test feature addresses of the multi-channel communication are all corresponding to each other, if so, executing S4-4, otherwise, executing test self-checking processing;
s4-4, judging whether corresponding response data packets of the multi-channel communication reverse test feature address both have corresponding request data packets, if so, passing the multi-channel communication reverse verification result, and if not, performing test self-checking processing;
s4-5, utilizing all response data packets corresponding to the multi-channel communication forward test result as a reverse addressing characteristic;
s4-6, acquiring a corresponding request data packet according to the reverse addressing characteristics to serve as a reverse addressing end point data packet;
s4-7, judging whether the port address corresponding to the reverse addressing end point data packet is completely corresponding to the request port address in the fixed synchronous mapping, if so, determining that the multi-channel communication reverse verification result is passed, and if not, determining that the multi-channel communication reverse verification result is not passed.
9. The method for synchronously testing the multi-channel communication according to claim 8, wherein the performing the test self-checking process comprises:
respectively establishing a virtual forward multi-channel communication line and a virtual reverse multi-channel communication line according to the multi-channel communication line;
acquiring a fixed synchronous mirror image mapping in the virtual forward multi-channel communication line according to the corresponding fixed synchronous mapping of the multi-channel communication line;
judging whether the fixed synchronous mirror image mapping has a corresponding relation on the virtual reverse multi-channel communication line, if so, returning to the S3-1 after the test self-checking processing result is normal, otherwise, returning to the S1;
the virtual forward multi-channel communication line is identical to the multi-channel communication line, and the data transmission direction of the virtual reverse multi-channel communication line is opposite to that of the virtual forward multi-channel communication line.
10. The method of claim 1, wherein obtaining the multi-channel communication synchronization test result according to the multi-channel communication forward test result and the multi-channel communication reverse verification result comprises:
judging whether the forward test result of the multi-channel communication and the reverse verification result of the multi-channel communication are both passing or not, if so, the synchronous test result of the multi-channel communication is passing, otherwise, the synchronous test result of the multi-channel communication is not passing.
CN202310893473.8A 2023-07-20 2023-07-20 Multi-channel communication synchronous test method Active CN116614430B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310893473.8A CN116614430B (en) 2023-07-20 2023-07-20 Multi-channel communication synchronous test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310893473.8A CN116614430B (en) 2023-07-20 2023-07-20 Multi-channel communication synchronous test method

Publications (2)

Publication Number Publication Date
CN116614430A true CN116614430A (en) 2023-08-18
CN116614430B CN116614430B (en) 2023-10-31

Family

ID=87682253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310893473.8A Active CN116614430B (en) 2023-07-20 2023-07-20 Multi-channel communication synchronous test method

Country Status (1)

Country Link
CN (1) CN116614430B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117061485A (en) * 2023-10-12 2023-11-14 广东广宇科技发展有限公司 Communication line verification method for dynamic IP
CN117278439A (en) * 2023-11-23 2023-12-22 广东广宇科技发展有限公司 Communication quick verification method based on compression algorithm

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9041813B1 (en) * 2014-02-14 2015-05-26 Maxim Integrated Products, Inc. Multiple camera synchronization system
CN112054938A (en) * 2020-08-31 2020-12-08 天津津航计算技术研究所 BM software universal test method of 1553B bus
CN113259152A (en) * 2021-04-19 2021-08-13 北京奇艺世纪科技有限公司 Network diagnosis method, network diagnosis device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9041813B1 (en) * 2014-02-14 2015-05-26 Maxim Integrated Products, Inc. Multiple camera synchronization system
CN112054938A (en) * 2020-08-31 2020-12-08 天津津航计算技术研究所 BM software universal test method of 1553B bus
CN113259152A (en) * 2021-04-19 2021-08-13 北京奇艺世纪科技有限公司 Network diagnosis method, network diagnosis device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王浩;刘文怡;韩志军;: "多通道同步数据采集与处理系统的设计与实现", 通信技术, no. 01 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117061485A (en) * 2023-10-12 2023-11-14 广东广宇科技发展有限公司 Communication line verification method for dynamic IP
CN117061485B (en) * 2023-10-12 2024-02-09 广东广宇科技发展有限公司 Communication line verification method for dynamic IP
CN117278439A (en) * 2023-11-23 2023-12-22 广东广宇科技发展有限公司 Communication quick verification method based on compression algorithm
CN117278439B (en) * 2023-11-23 2024-02-09 广东广宇科技发展有限公司 Communication quick verification method based on compression algorithm

Also Published As

Publication number Publication date
CN116614430B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN116614430B (en) Multi-channel communication synchronous test method
KR0150526B1 (en) Apparatus and method for testing multiport protocol
CN107104897A (en) Data transmission method and system based on path
CN108256295B (en) Device for detecting gene fusion
CN113765718B (en) QUIC protocol-oriented test topology construction method and device
US20130231888A1 (en) Test apparatus and test module
CN114363217A (en) RFC2544 throughput performance test method, system, equipment and medium
US20070283041A1 (en) System and method for recognizing offloaded packets
CN116723056B (en) Multichannel communication verification method based on http protocol
US20060069544A1 (en) Network emulator architecture
CN107733743A (en) Realize the method and system that industry ethernet data are tested automatically
CN104683243A (en) Data processing method, device and system
CA2194848C (en) Condition handling using script interpreters
CN116436540A (en) LED display screen receiving card testing method and device, testing card and storage medium
CN107579871B (en) Method and system for generating distributed test script based on model detection
US9223670B2 (en) Test apparatus and test module
CN113726499B (en) Digital sampling data high-speed interpolation synchronization method and system
CN116132357A (en) Test information determining method, device and computer readable storage medium
CN104683178B (en) A kind of test method and system of the more DUT of identical IP address
Cisco Configuring the PA-2CE1
CN117614880B (en) Communication line real-time monitoring method based on dynamic array
CN111061623B (en) Method, device, middle server, storage medium and system for debugging program
CN113722235A (en) Automatic testing method and device
CN113031569A (en) Monitoring method, system, terminal and medium of nuclear fusion control system
CN112527453A (en) Virtualization information simulation system, method and computer-readable storage medium

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
GR01 Patent grant
GR01 Patent grant