CN116056126A - Simulation test method, simulation test device, computer equipment and computer readable storage medium - Google Patents

Simulation test method, simulation test device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN116056126A
CN116056126A CN202211638613.9A CN202211638613A CN116056126A CN 116056126 A CN116056126 A CN 116056126A CN 202211638613 A CN202211638613 A CN 202211638613A CN 116056126 A CN116056126 A CN 116056126A
Authority
CN
China
Prior art keywords
simulation
message
verification
access control
control layer
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
CN202211638613.9A
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.)
Zeku Technology Shanghai Corp Ltd
Original Assignee
Zeku Technology Shanghai Corp 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 Zeku Technology Shanghai Corp Ltd filed Critical Zeku Technology Shanghai Corp Ltd
Priority to CN202211638613.9A priority Critical patent/CN116056126A/en
Publication of CN116056126A publication Critical patent/CN116056126A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic

Abstract

The application relates to a simulation test method, a simulation test device, computer equipment and a computer readable storage medium. The simulation test method is applied to a test system, and the test system comprises a simulation router and a simulation medium access control layer; the method comprises the following steps: sending a verification message through the simulation router; the verification message comprises first verification information; receiving a verification message through the simulation medium access control layer, and processing the received verification message to obtain second verification information; determining a simulation test result according to the first verification information and the second verification information; and the simulation test result indicates whether the function of the simulation medium access control layer is normal. The method can solve the problem that the traditional wireless communication protocol verification method is limited in use scene.

Description

Simulation test method, simulation test device, computer equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of wireless communications technologies, and in particular, to a simulation test method, a simulation test device, a computer device, and a computer readable storage medium.
Background
With the development of wireless communication technology, terminals using the wireless communication technology are becoming more and more widespread. In general, to ensure that the wireless communication protocol matches the hardware configuration of the terminal, the hardware configuration of the terminal needs to be verified.
In the conventional technology, a common verification method is to perform wireless communication by using an existing terminal and a wireless router, so as to verify the hardware configuration of the terminal. However, since the protocols of the wireless communication technologies are continuously updated, the conventional verification method is difficult to apply to the latest wireless communication protocols, so that the use of the conventional verification method is limited.
Disclosure of Invention
The embodiment of the application provides a simulation test method, a simulation test device, computer equipment and a computer readable storage medium, which solve the problem that the use scene of the traditional wireless communication protocol verification method is limited.
In a first aspect, an embodiment of the present application provides a simulation test method, where the simulation test method is applied to a test system, where the test system includes a simulation router and a simulation medium access control layer; the method comprises the following steps:
sending a verification message through the simulation router; the verification message comprises first verification information;
receiving a verification message through the simulation medium access control layer, and processing the received verification message to obtain second verification information;
determining a simulation test result according to the first verification information and the second verification information; and the simulation test result indicates whether the function of the simulation medium access control layer is normal.
In a second aspect, an embodiment of the present application provides a simulation test apparatus, where the simulation test apparatus is applied to a test system, and the test system includes a simulation router and a simulation medium access control layer; the device comprises:
the sending module is used for sending the verification message through the simulation router; the verification message comprises first verification information;
the processing module is used for receiving the verification message through the simulation medium access control layer and processing the received verification message to obtain second verification information;
the test module is used for determining a simulation test result according to the first verification information and the second verification information; and the simulation test result indicates whether the function of the simulation medium access control layer is normal.
In a third aspect, an embodiment of the present application provides a computer device, where a test system is integrated on the computer device, the test system includes a simulation router and a simulation medium access control layer; the computer device comprises a memory and a processor, wherein the memory stores a computer program which, when executed by the processor, causes the processor to perform the steps of the simulation test method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method according to the first aspect.
The simulation test method, the device, the computer equipment and the computer readable storage medium are applied to a test system, the test system comprises a simulation router and a simulation medium access control layer, the simulation router can send a verification message comprising first verification information, the simulation medium access control layer can receive the verification message and process the received verification message to obtain second verification information, so that a simulation test result which indicates whether the function of the simulation medium access control layer is normal can be determined according to the first verification information and the second verification information, compared with the method in the prior art that the function of the simulation medium access control layer is verified by utilizing the existing terminal and the wireless router, the simulation router and the simulation medium access control layer are not limited by the functions of hardware equipment, the application prospect is wider, the simulation router and the simulation medium access control layer can verify different wireless communication protocols, the simulation test method can be applied to the latest wireless communication protocol, and the application prospect of the wireless communication protocol verification is expanded.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a diagram of an application environment for a simulation test method in one embodiment;
FIG. 2 is a flow chart of a simulation test method in one embodiment;
FIG. 3 is a flow chart of a simulation test method in another embodiment;
FIG. 4 is a flow chart of a simulation test method in another embodiment;
FIG. 5 is a flow chart of a simulation test method in another embodiment;
FIG. 6 is a block diagram of a simulation test apparatus in one embodiment;
FIG. 7 is a block diagram of a simulation test apparatus in another embodiment;
FIG. 8 is a block diagram of a simulation test apparatus in another embodiment;
FIG. 9 is a block diagram of a simulation test apparatus in another embodiment;
FIG. 10 is a block diagram of a simulation test apparatus in another embodiment;
FIG. 11 is a schematic diagram of the internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The simulation test method provided by the embodiment of the application can be applied to a test system shown in fig. 1. The test system comprises a main control module, a simulation medium access control layer and a simulation router, wherein the main control module is mainly used for configuration management of the simulation router, management of interfaces, management of integrated tests and the like, the configuration management of the simulation router is mainly used for managing configuration information (such as MAC addresses, IP addresses and the like) required by the simulation router and configuration information required by the simulation medium access control layer during simulation, the configuration information of the simulation router and the simulation medium access control layer can be dynamically modified, and the simulation router and the simulation medium access control layer can acquire relevant configuration information in real time; the management of the interface comprises an NS-3 interface management module and a WIFI-DRIVE instruction management interface, wherein the NS-3 interface management module can manage and control a simulation switch of the simulation router through a main control module, and acquire message information received by the simulation router, the state of the current simulation router and the like through a custom simulation interface; the WIFI-DRIVE instruction management interface mainly converts the WIFI-DRIVE instruction into an instruction which can be identified by the simulation medium access control layer, and sends the instruction to the simulation medium access control layer, and receives a message returned by the simulation medium access control layer to analyze and judge feedback.
The simulation medium access control layer simulates the operation of a medium access control layer in a wireless communication protocol, acquires upper-layer messages or instructions through a simulated PCIE (latest bus and interface standard) interface, generates corresponding message messages, and sends the messages to a simulation router through a bottom-layer message transceiver module to complete a business process needing verification. In the test system, the function codes of the whole medium access control layer are operated by simulating operation of an embedded operating system freeRTOS in a Linux operating system and simulating operation of a main thread (including initialization, initial memory address allocation, register address allocation, interrupt message processing and the like) of a medium access control layer of a wireless communication protocol in the operating system, and the function codes simulate the operation process of the medium access control layer in a real chip, receive instructions and return messages through a WIFI-DRIVE instruction management interface and send and receive messages through a message forwarding interface of the simulated medium access control layer. The simulation media access control layer message forwarding interface simulates the media access control layer bottom layer message receiving and transmitting hardware, reads the message to be transmitted by the media access control layer from the appointed memory, encapsulates the message according to rules, transmits the message to the message receiving and transmitting module of the wireless router through SOCKET communication, analyzes the received message, and then uploads the message to the simulation media access control layer to complete the simulation of the bottom layer message receiving and transmitting, and in addition, can also receive the message at the wireless router side through a SOCKET SERVER port.
The emulation router can adopt a network emulator NS-3 with discrete events, and can simulate the wireless router of a specified type by modifying an internal interface or a field of the NS-3, automatically send broadcast messages and receive related request messages. According to the test system, an NS-3 simulation platform can be used in a Linux operation system, a router node is simulated according to relevant configuration information in configuration management, a broadcast message is automatically generated, a request message is automatically analyzed, and the wireless connection process of the terminal and the router is completed.
In one embodiment, as shown in fig. 2, there is provided a simulation test method applied to the test system shown in fig. 1, the test system including a simulation router and a simulation medium access control layer, the method being applied to a computer device for illustration, the method including the steps of:
s201, sending a verification message through a simulation router; the authentication message includes first authentication information.
The emulation router can be a network emulator NS-3 of discrete events, and the network emulator NS-3 of discrete events can simulate a wireless router of a specified type by modifying an internal interface or a field of the network emulator NS-3 of discrete events, and automatically send a request message related to broadcast message reception. In this embodiment, the authentication message including the first authentication information may be sent through the emulation router. It should be noted that, the first verification information in this embodiment is information for verifying the function of the emulated media access control layer in the test system. Taking the example that the embodiment is the function verification of the wireless local area network (Wireless Fidelity, wi-Fi) medium access control layer developed according to the latest Wi-Fi alliance protocol standard, the first verification information may be verification information for verifying whether the emulated medium access control layer can adapt to the latest Wi-Fi protocol, and the first verification information may be, for example, the name of the latest Wi-Fi protocol. Optionally, in this embodiment, the verification message may be sent through any channel of the emulation router, or may be sent through a channel specified in the configuration information of the emulation router, which is not limited herein. Optionally, the emulation router may encrypt the verification message and then send the verification message, or may directly send the verification message.
S202, receiving the verification message through the simulation medium access control layer, and processing the received verification message to obtain second verification information.
In this embodiment, the simulation medium access control layer may simulate the running process of the medium access control layer in the real chip. Alternatively, in this embodiment, the embedded operating system frertos may be simulated in the Linux operating system, and the emulated media access control layer may be simulated in the embedded operating system frertos.
It can be understood that, in this embodiment, the verification message received by the emulation medium access control layer may be the verification message sent by the emulation router, or may be another verification message, and in this embodiment, the verification message received by the emulation medium access control layer is not limited. Optionally, in this embodiment, after the emulation medium access control layer receives the verification message, the emulation medium access control layer may parse the received verification message to obtain the second verification information, or may parse the received verification message by the emulation medium access control layer to obtain the parsing information corresponding to the verification message, and then send the parsing information to other modules of the test system, and process the parsing information by other modules of the emulation test system to obtain the second verification information. Alternatively, the second authentication information in this embodiment may be the same as the first authentication information described above, or may be different from the first authentication information described above.
S203, determining a simulation test result according to the first verification information and the second verification information; the simulation test result indicates whether the function of the simulation medium access control layer is normal.
The simulation test result may indicate whether the function of the simulation medium access control layer is normal, that is, whether the function of the simulation medium access control layer is valid or not, and whether the simulation medium access control layer is adapted to the adopted wireless communication protocol or not. Alternatively, in this embodiment, the first verification information and the second verification information may be compared, and the simulation test result may be determined according to the comparison result. It can be understood that if the determined simulation test result indicates that the function of the simulation medium access control layer is normal, it can be explained that the function of the simulation medium access control layer is effective and is adapted to the adopted wireless communication protocol; if the determined simulation test result indicates that the function of the simulation medium access control layer is abnormal, the simulation medium access control layer can be indicated to be invalid and is not suitable for the adopted wireless communication protocol.
In the simulation test method, the simulation router can send the verification message comprising the first verification information, the simulation medium access control layer can receive the verification message and process the received verification message to obtain the second verification information, so that the simulation test result which indicates whether the function of the simulation medium access control layer is normal can be determined according to the first verification information and the second verification information.
The detailed process of receiving the verification message by the simulation medium access control layer and processing the received verification message to obtain the second verification information will be described in this embodiment. In one embodiment, as shown in fig. 3, S202 includes:
s301, receiving a verification message through a message forwarding interface of the simulation medium access control layer, and storing the received verification message into a preset memory.
In this embodiment, the emulation medium access control layer may include a packet forwarding interface, and the emulation medium access control layer may receive, through the packet forwarding interface, a verification packet sent by the emulation router. In addition, a memory for storing the verification message can be preset in the simulation medium access control layer, and when the message forwarding interface receives the verification message, the received verification message can be stored in the memory preset in the simulation medium access control layer.
S302, the received verification message is read from the memory, and the received verification message is processed to obtain second verification information.
Optionally, in this embodiment, the emulation medium access control layer may read the received verification message from the memory according to a first-in first-out principle, and further process the read received verification message to obtain the second verification information.
Optionally, in this embodiment, the second verification information may be obtained by processing the received verification message by the emulation media access control layer itself, or, as an optional implementation manner, the test system may further include an emulation main control module, and the second verification information may be obtained by processing the received verification message by the emulation main control module. These two methods of acquiring the second authentication information will be described in detail below:
first kind: the step S302 includes: and analyzing the received verification message by using a preset analysis function to obtain second verification information.
Optionally, in this embodiment, after the emulation medium access control layer reads the received verification message from the memory, the emulation medium access control layer may parse the received verification message by using a preset parsing function to obtain the second verification information. For example, assuming that the verification message received by the emulation medium access control layer is a beacon message, the emulation medium access control layer may parse the received verification message by using a beacon message parsing function to obtain the second verification information.
Second kind: the test system further includes a simulation main control module, and the step S302 includes:
step A: and analyzing the received verification message by using a preset analysis function to obtain an analyzed message.
Optionally, in this embodiment, after the emulation medium access control layer reads the received verification message from the memory, the emulation medium access control layer may parse the received verification message by using a preset parsing function to obtain a parsed message. It should be noted that, in the embodiment of the present application, the function of the emulation medium access control layer is tested, and the function of the emulation medium access control layer is mainly to analyze the received message, in the embodiment of the present application, according to the first verification information included in the sent verification message and the second verification information analyzed by the emulation medium access control layer, the function of the emulation medium access control layer is tested, so in the embodiment of the present application, the emulation medium access control layer analyzes the received verification message, and the obtained analyzed message may include the second verification information and attribute information of the wireless communication protocol, etc.
And (B) step (B): and packaging the parsed message by adopting a preset message format to obtain a new message.
In this embodiment, the emulation medium access control layer may encapsulate the parsed packet with a preset message format, and encapsulate the parsed packet into a new packet with a specific format.
Step C: and sending a new message through the simulation medium access control layer.
Optionally, in this embodiment, the obtained new message may be sent to the emulation host module through a message forwarding interface of the emulation medium access control layer.
Step D: and receiving the new message through the simulation main control module, and analyzing the new message to obtain second verification information.
Optionally, in this embodiment, after the emulation main control module receives the new message, the new message may be parsed according to a format of the new message, and the second verification information may be obtained from the new message.
In this embodiment, the message forwarding interface of the emulation medium access control layer is capable of receiving the verification message, so that the received verification message can be stored in a preset memory of the emulation medium access control layer, the received verification message is read from the preset memory of the emulation medium access control layer, and further the received verification message can be processed, and since the process of processing the received verification message is simpler, the second verification information can be obtained more quickly, so that the efficiency of determining the emulation test result according to the first verification information and the second verification information is improved; in addition, the test cost of the medium access control layer function is reduced through the verification process compared with the test in the hardware device.
In the above scenario of sending the verification message through the emulation router, the emulation router needs to be started first to send the verification message through the emulation router. In one embodiment, as shown in fig. 4, the method further includes:
s401, configuring configuration information of the simulation router according to the first verification information.
Optionally, in this embodiment, the configuration information of the emulated router may include information such as an address of a medium access control layer of the emulated router, communication channel information of the emulated router, an encryption type of the emulated router, and a wireless communication protocol supported by the emulated router. Illustratively, in this embodiment, assuming that the first verification information is a network name of the wireless communication protocol, the configuration information of the configured emulated router may include the network name of the wireless communication protocol, an address of a medium access control layer of the emulated router, communication channel information of the emulated router, an encryption type of the emulated router, a wireless communication protocol supported by the emulated router, and so on. It can be understood that after the configuration information of the simulation router is configured according to the first verification information, the obtained simulation router is the simulation router of the configured information.
S402, calling a simulation control interface to start a simulation router.
Optionally, in this embodiment, the emulation router includes an emulation control interface, and the configured emulation router may be started by calling the emulation control interface, so that the emulation router is in an operation state, and after the emulation router is started, the verification message is sent by using the started emulation router.
In this embodiment, the process of configuring the configuration information of the emulation router according to the first verification information is simpler, and the configuration information of the emulation router can be configured quickly, so that the emulation control interface of the emulation router can be called quickly to start the emulation router, and the verification message is sent by using the started emulation router.
In the scenario of sending the verification message through the simulation router, the verification message may be sent through a simulation channel corresponding to the communication channel information in the configuration information of the simulation router. In one embodiment, the configuration information includes communication channel information, and the step S201 includes: and sending the verification message through a simulation channel corresponding to the communication channel information.
The simulation channel refers to a transmission medium through which the verification message passes from the simulation router to the simulation medium access control layer. Optionally, in this embodiment, according to the communication channel information in the configuration information of the emulation router, an emulation channel corresponding to the communication channel information may be determined, and then the verification message is sent through the emulation channel corresponding to the communication channel information, so as to ensure accurate sending of the verification message.
In this embodiment, because the configuration information of the emulation router includes the communication channel information, the verification message can be sent through the emulation channel corresponding to the communication channel information in the configuration information of the emulation router, thereby ensuring that the emulation router accurately sends the verification message and improving the accuracy of the verification message sent by the emulation router.
The present embodiment will explain a detailed procedure of determining a simulation test result simulating a function of a medium access control layer based on the first authentication information and the second authentication information. In one embodiment, as shown in fig. 5, S203 above includes:
s501, if the first verification information is consistent with the second verification information, determining that the simulation test result is that the simulation medium access control layer is normal in function.
It will be appreciated that the first verification information is identical to the second verification information in this embodiment, and each character of the first verification information may be identical to each character of the second verification information. In this embodiment, if the first verification information is consistent with the second verification information parsed by the emulation medium access control layer, it is indicated that the emulation medium access control layer can parse the received verification message, and the emulation medium access control layer is adapted to the adopted wireless communication protocol, and it can be determined that the test result of the emulation medium access control layer is that the function of the emulation medium access control layer is normal.
S502, if the first verification information is inconsistent with the second verification information, determining that the simulation test result is abnormal function of the simulation medium access control layer.
It will be appreciated that in this embodiment, the first verification information is inconsistent with the second verification information, and any character of the first verification information may be different from any character of the second verification information. In this embodiment, if the first verification information is inconsistent with the second verification information analyzed by the emulation medium access control layer, it is indicated that the emulation medium access control layer cannot analyze the received verification message, and the emulation medium access control layer is not adapted to the adopted wireless communication protocol, and it may be determined that the test result of the emulation medium access control layer is abnormal in function of the emulation medium access control layer.
In this embodiment, by comparing whether the first verification information and the second verification information are always the same, the process of determining the simulation test result of the simulation medium access control layer is simpler, and the calculation amount is smaller, so that the simulation test result of the simulation medium access control layer can be rapidly determined according to the first verification information and the second verification information, and the efficiency of determining the simulation medium access control layer is improved.
For facilitating understanding of those skilled in the art, the following describes in detail a simulation test method provided in the present disclosure, where the method is applied to a test system, the test system includes a simulation router, a simulation medium access control layer, and a simulation master control module, and the method may include:
s1, configuring configuration information of the simulation router according to the first verification information.
S2, calling a simulation control interface to start a simulation router.
S3, sending a verification message through a simulation channel corresponding to the communication channel information in the configuration information; the authentication message includes first authentication information.
S4, receiving the verification message through a message forwarding interface of the simulation medium access control layer, and analyzing the received verification message by utilizing a preset analysis function to obtain an analyzed message.
S5, packaging the parsed message by adopting a preset message format to obtain a new message.
S6, sending a new message through the simulation medium access control layer.
S7, receiving a new message through the simulation main control module, and analyzing the new message to obtain second verification information.
And S8, if the first verification information is consistent with the second verification information, determining that the simulation test result is that the simulation medium access control layer is normal in function.
And S9, if the first verification information is inconsistent with the second verification information, determining that the simulation test result is abnormal function of the simulation medium access control layer.
It should be noted that, for the description of the above steps, reference may be made to the description related to the above embodiments, and the effects thereof are similar, which is not repeated herein.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a simulation test device for realizing the simulation test method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation of one or more embodiments of the simulation test device provided below may refer to the limitation of the simulation test method described above, and will not be repeated here.
In one embodiment, as shown in fig. 6, there is provided a simulation test apparatus applied to a test system including a simulation router and a simulation medium access control layer, the simulation test apparatus comprising: a transmitting module 10, a processing module 11 and a testing module 12, wherein:
a sending module 10, configured to send a verification message through the emulation router; the authentication message includes first authentication information.
The processing module 11 is configured to receive the verification message through the emulation media access control layer, and process the received verification message to obtain second verification information.
A test module 12 for determining a simulation test result according to the first verification information and the second verification information; the simulation test result indicates whether the function of the simulation medium access control layer is normal.
The simulation test device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
On the basis of the above embodiment, as shown in fig. 7, optionally, the above processing module 11 includes: a saving unit 111 and a processing unit 112, wherein:
the storage unit 111 is configured to receive the verification message through the message forwarding interface of the emulation media access control layer, and store the received verification message into a preset memory.
And the processing unit 112 is configured to read the received verification message from the memory, and process the received verification message to obtain second verification information.
The simulation test device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
Based on the foregoing embodiment, optionally, the processing unit 112 is configured to parse the received verification message by using a preset parsing function to obtain second verification information.
The simulation test device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
Based on the above embodiment, optionally, the test system further includes a simulation main control module, and the processing unit 112 is configured to parse the received verification message by using a preset parsing function to obtain a parsed message; packaging the parsed message by adopting a preset message format to obtain a new message; sending a new message through the simulation medium access control layer; and receiving the new message through the simulation main control module, and analyzing the new message to obtain second verification information.
The simulation test device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
Optionally, as shown in fig. 8, the apparatus further includes: a configuration module 13 and a start-up module 14, wherein:
a configuration module 13, configured to configure configuration information of the emulation router according to the first verification information.
The starting module 14 is used for calling the simulation control interface to start the simulation router.
The simulation test device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
On the basis of the above embodiment, optionally, as shown in fig. 9, the configuration information includes communication channel information, and the transmitting module 10 includes: a transmitting unit 101 in which:
and the sending unit 101 is configured to send the verification message through the emulation channel corresponding to the communication channel information.
The simulation test device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
Based on the above embodiment, optionally, as shown in fig. 10, the test module 12 includes: a first determination unit 121 and a second determination unit 122, wherein:
the first determining unit 121 is configured to determine that the simulation test result is that the function of the simulation medium access control layer is normal if the first verification information is consistent with the second verification information.
The second determining unit 122 is configured to determine that the simulation test result is a functional abnormality of the simulation medium access control layer if the first verification information is inconsistent with the second verification information.
The simulation test device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
The modules in the simulation test apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, on which a test system is integrated, the test system including an emulated router and an emulated media access control layer, the computer device may be a server, and an internal structure diagram of the computer device may be as shown in fig. 11. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing the verification message. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a simulation test method.
It will be appreciated by those skilled in the art that the structure shown in fig. 11 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
Embodiments of the present application also provide a computer-readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of a simulation test method.
Embodiments of the present application also provide a computer program product containing instructions that, when run on a computer, cause the computer to perform a simulation test method.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (11)

1. The simulation test method is characterized by being applied to a test system, wherein the test system comprises a simulation router and a simulation medium access control layer; the method comprises the following steps:
sending a verification message through the simulation router; the verification message comprises first verification information;
receiving a verification message through the simulation medium access control layer, and processing the received verification message to obtain second verification information;
determining a simulation test result according to the first verification information and the second verification information; and the simulation test result indicates whether the function of the simulation medium access control layer is normal.
2. The method according to claim 1, wherein the receiving, by the emulation medium access control layer, the authentication message and processing the received authentication message to obtain the second authentication information, includes:
receiving a verification message through a message forwarding interface of the simulation medium access control layer, and storing the received verification message into a preset memory;
and reading the received verification message from the memory, and processing the received verification message to obtain the second verification information.
3. The method according to claim 2, wherein the processing the received verification message to obtain the second verification information includes:
and analyzing the received verification message by using a preset analysis function to obtain the second verification information.
4. The method of claim 2, wherein the test system further comprises a simulation master control module, and the processing the received verification message to obtain the second verification information comprises:
analyzing the received verification message by using a preset analysis function to obtain an analyzed message;
packaging the parsed message by adopting a preset message format to obtain a new message;
sending the new message through the simulation medium access control layer;
and receiving the new message through the simulation main control module, and analyzing the new message to obtain the second verification information.
5. The method according to any one of claims 1-4, further comprising:
configuring configuration information of the simulation router according to the first verification information;
and calling a simulation control interface to start the simulation router.
6. The method of claim 5, wherein the configuration information includes communication channel information, and wherein the sending, by the emulated router, the authentication message comprises:
and sending the verification message through a simulation channel corresponding to the communication channel information.
7. The method of claim 1, wherein determining a simulation test result based on the first verification information and the second verification information comprises:
if the first verification information is consistent with the second verification information, determining that the simulation test result is that the simulation medium access control layer is normal in function;
and if the first verification information is inconsistent with the second verification information, determining that the simulation test result is abnormal in function of the simulation medium access control layer.
8. The simulation test device is characterized by being applied to a test system, wherein the test system comprises a simulation router and a simulation medium access control layer; the device comprises:
the sending module is used for sending the verification message through the simulation router; the verification message comprises first verification information;
the processing module is used for receiving the verification message through the simulation medium access control layer and processing the received verification message to obtain second verification information;
the test module is used for determining a simulation test result according to the first verification information and the second verification information; and the simulation test result indicates whether the function of the simulation medium access control layer is normal.
9. A computer device having a test system integrated thereon, the test system comprising a simulated router and a simulated media access control layer; the computer device comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the computer program, when executed by the processor, causes the processor to perform the steps of the simulation test method according to any of claims 1 to 7.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202211638613.9A 2022-12-20 2022-12-20 Simulation test method, simulation test device, computer equipment and computer readable storage medium Pending CN116056126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211638613.9A CN116056126A (en) 2022-12-20 2022-12-20 Simulation test method, simulation test device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211638613.9A CN116056126A (en) 2022-12-20 2022-12-20 Simulation test method, simulation test device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116056126A true CN116056126A (en) 2023-05-02

Family

ID=86119131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211638613.9A Pending CN116056126A (en) 2022-12-20 2022-12-20 Simulation test method, simulation test device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116056126A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116796673A (en) * 2023-08-22 2023-09-22 北京芯驰半导体科技有限公司 Test method, test device, electronic equipment and storage medium
CN117369906A (en) * 2023-12-07 2024-01-09 成都市楠菲微电子有限公司 Pcie verification platform, method and device, storage medium and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116796673A (en) * 2023-08-22 2023-09-22 北京芯驰半导体科技有限公司 Test method, test device, electronic equipment and storage medium
CN116796673B (en) * 2023-08-22 2023-11-28 北京芯驰半导体科技有限公司 Test method, test device, electronic equipment and storage medium
CN117369906A (en) * 2023-12-07 2024-01-09 成都市楠菲微电子有限公司 Pcie verification platform, method and device, storage medium and electronic equipment
CN117369906B (en) * 2023-12-07 2024-02-09 成都市楠菲微电子有限公司 Pcie verification platform, method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN116056126A (en) Simulation test method, simulation test device, computer equipment and computer readable storage medium
CN111262759B (en) Internet of things platform testing method, device, equipment and storage medium
RU2430409C2 (en) Method of measuring coverage in interconnection structural condition
WO2020048453A1 (en) Network element management method and apparatus, system and storage medium
CN108401037A (en) User terminal and the binding method of equipment, device and system
CN108459850B (en) Method, device and system for generating test script
CN106921578A (en) The generation method and device of a kind of forwarding-table item
CN106878199A (en) The collocation method and device of a kind of access information
CN111263377B (en) Network configuration method, device, equipment and system and distribution network testing method and system
CN111475376A (en) Method and device for processing test data, computer equipment and storage medium
KR102210289B1 (en) Hardware management communication protocol
CN114157461A (en) Industrial control protocol data stream processing method, device, equipment and storage medium
CN113596017A (en) Protocol analysis method, device, soft gateway and storage medium
CN104639390A (en) Method and device for testing system
CN110876155B (en) Simulation system and method for wireless mesh network
CN116743619A (en) Network service testing method, device, equipment and storage medium
WO2023124314A1 (en) Micro-service test method and system for hybrid cpu architecture device, and related apparatus
CN114598680B (en) Domain name management method, device and storage medium
CN113535578B (en) CTS test method, CTS test device and CTS test equipment
WO2021128936A1 (en) Message processing method and apparatus
CN115509917A (en) Method, system, equipment and storage medium for verifying encryption and decryption algorithm
CN114218011A (en) Test simulation method and device, terminal equipment and storage medium
CN113626295A (en) Pressure measurement data processing method and system and computer readable storage medium
CN112527453A (en) Virtualization information simulation system, method and computer-readable storage medium
CN112737872B (en) ARINC664P7 end system cross-network testing system and method

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