Communication simulation method, device, program product, storage medium and electronic device
By running base stations and terminal processes on the same electronic device, simulating the physical layer and through shared memory interaction, respectively, solved the efficiency problem of existing simulation software under high -profile performance requirements, and achieved efficient millimeter wave system simulation.
Patent Information
- Application Number
- CN202411556063.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-11-04
AI Technical Summary
Existing communication simulation software is relatively low in operation efficiency, especially when simulating millimeter wave systems with high scheduling performance requirements, it cannot be effectively simulated.
By running the base station process and terminal process on the same electronic device, simulate the physical layer of the base station and the terminal, and to interact with the shared memory, and support the protocol stack function without realizing the real physical layer.
It improves the operating efficiency of the simulation system, is particularly suitable for the simulation of millimeter wave systems, reduces data copying during message interaction, and saves memory space.
Smart Images

Figure CN119136237B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication simulation method, device, program product, storage medium and electronic device. Background Art
[0002] Millimeter wave communication refers to the technology of using electromagnetic waves with a frequency between 30GHz and 300GHz for communication. Compared with traditional wireless communication technology, millimeter wave communication has a higher frequency and a shorter wavelength, which can achieve higher data transmission rates. Millimeter wave communication is also an important part of 5G communication technology and has been widely used in satellite communications and other fields.
[0003] In order to build a wireless communication system, it is necessary to test the protocol stack functions on the base station and the terminal extensively. However, when developing the protocol stack functions, the physical layer hardware of the base station and the terminal may not have been determined, resulting in the inability to test the protocol stack. As a solution, simulation software can be used to simulate the real physical layer, so that the upper layer protocol stack functions can be tested even if the physical layer is not implemented. However, the current operating efficiency of such simulation software is relatively low, and it cannot effectively simulate wireless communication systems such as millimeter wave systems that have high scheduling performance requirements. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a communication simulation method, device, program product, storage medium and electronic device to improve at least some of the above-mentioned technical problems.
[0005] To achieve the above objectives, this application provides the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a communication simulation method, comprising: using a base station process to run a simulated physical layer on the base station side; and using a terminal process to run a simulated physical layer on the terminal side; wherein the base station and the terminal belong to the same wireless communication system, the base station process and the terminal process are different processes on the same electronic device, the simulated physical layer on the base station side is a simulation of the physical layer on the base station side, and the simulated physical layer on the terminal side is a simulation of the physical layer on the terminal side, and the simulated physical layer on the base station side and the simulated physical layer on the terminal side exchange messages through the shared memory of the electronic device.
[0007] In the above method, the physical layer of the base station and the physical layer of the terminal are simulated respectively by the base station process and the terminal process, and the physical layer messages can be exchanged between the two, so as to support the testing of the functions of the base station protocol stack and the terminal protocol stack when the real physical layer is not implemented. The advantages of using this method for physical layer simulation are: first, using two different processes to simulate the physical layer behaviors of the base station and the terminal respectively, which conforms to the characteristics that the real base station and the terminal are physically independent of each other; second, the base station process and the terminal process run on the same electronic device, so that the message interaction can be completed in a relatively short time, which is conducive to improving the operation efficiency of the simulation system; third, the base station process and the terminal process complete the message interaction through shared memory, which can significantly reduce the data copying in the message interaction process, which is also conducive to improving the operation efficiency of the simulation system. Therefore, this method is particularly suitable for simulating millimeter wave systems with high scheduling performance requirements, but it can also improve the system operation efficiency when simulating non-millimeter wave systems.
[0008] In an implementation method of the first aspect, the shared memory includes multiple shared memory blocks, and each shared memory block corresponds to index information. The simulated physical layer on the base station side and the simulated physical layer on the terminal side perform message interaction through the shared memory of the electronic device, including: the simulated physical layer on the base station side and the simulated physical layer on the terminal side write the message to be sent into the shared memory block, and send the index information of the shared memory block to the simulated physical layer on the other end; the simulated physical layer on the other end searches for the shared memory block storing the message from the shared memory based on the index information, and reads the message from it for processing.
[0009] In the above implementation method, the simulated physical layer on the base station side and the simulated layer on the terminal side do not copy the message body when interacting with each other, but only pass the index information of the shared memory block where the message is written, thereby significantly improving the efficiency of message interaction, which in turn is beneficial to improving the operating efficiency of the simulation system while saving memory space.
[0010] In an implementation of the first aspect, the method further includes: creating a shared memory pool using the base station process or the terminal process, and allocating index information to the shared memory blocks in the shared memory pool; wherein the shared memory pool includes multiple shared memory blocks, and the base station side simulated physical layer and the terminal side simulated physical layer apply for shared memory blocks from the shared memory pool for sending messages.
[0011] In the above implementation, a shared memory pool is created first, and then a shared memory block is allocated from the shared memory pool, thereby avoiding frequent memory allocation and release operations, which is beneficial to improving memory usage efficiency and reducing the generation of memory fragmentation.
[0012] In an implementation of the first aspect, the shared memory pool includes a shared memory pool for uplink messages and a shared memory pool for downlink messages; wherein the uplink message refers to a message sent by the simulated physical layer on the terminal side to the simulated physical layer on the base station side, and the downlink message refers to a message sent by the simulated physical layer on the base station side to the simulated physical layer on the terminal side.
[0013] In the above implementation, a shared memory pool is set for each uplink and downlink message. On the one hand, it avoids excessive number of memory pools (for example, a shared memory pool is set for each physical layer channel), so that the use of memory is controlled within a reasonable range. On the other hand, it avoids excessive conflicts in the use of memory (for example, a shared memory pool is set for all physical layer channels). In short, this implementation achieves a good balance between reducing memory overhead and reducing mutual exclusion of memory use.
[0014] In an implementation manner of the first aspect, the shared memory pool uses a circular queue to allocate and release the shared memory blocks.
[0015] In the above implementation, the shared memory blocks in the shared memory pool are managed using the data structure of the circular queue, which is beneficial to improving the utilization rate of the shared memory.
[0016] In an implementation manner of the first aspect, the method further includes: using a timer to generate an interrupt signal with a transmission time interval (Transmission Time Interval, TTI for short) of the wireless communication system as a period, and sending the interrupt signal to the simulated physical layer on the base station side and the simulated physical layer on the terminal side, triggering the update of the interrupt counters in the simulated physical layer on the base station side and the simulated physical layer on the terminal side to simulate the passage of time in the base station and the terminal.
[0017] In the above implementation, by setting a timer, the time lapse simulation of TTI granularity is realized, and the simulation of time is also the basis for realizing a series of other simulations.
[0018] In an implementation manner of the first aspect, the wireless communication system is a satellite communication system, the terminal side simulated physical layer is connected to the terminal side protocol stack, and the method also includes: the terminal side protocol stack obtains satellite position information and terminal position information; wherein the satellite position information is obtained from historical ephemeris data or a satellite movement model, and the terminal position information is a fixed position, or is obtained from historical terminal position data or a terminal movement model, the satellite movement model is a model that characterizes the change of satellite position over time, and the terminal movement model is a model that characterizes the change of terminal position over time; the terminal side protocol stack calculates the delay information of the channel according to the satellite position information and the terminal position information at a set time, calculates the control timing of the terminal side simulated physical layer according to the delay information, and sends the control timing to the terminal side simulated physical layer; the terminal side simulated physical layer performs timing adjustment according to the control timing to simulate the delay characteristics of the channel.
[0019] In the above implementation, the delay characteristics of the channel are supported to be simulated, so that the simulation system can better simulate the real satellite communication system and improve its use value.
[0020] In an implementation manner of the first aspect, the wireless communication system is a satellite communication system, the terminal side simulated physical layer is connected to the terminal side protocol stack, and the method also includes: the terminal side protocol stack obtains satellite position information and terminal position information; wherein the satellite position information is obtained from historical ephemeris data or a satellite movement model, and the terminal position information is a fixed position, or is obtained from historical terminal position data or a terminal movement model, the satellite movement model is a model that characterizes the change of satellite position over time, and the terminal movement model is a model that characterizes the change of terminal position over time; the terminal side protocol stack calculates the time deviation and / or frequency deviation information of the channel according to the satellite position information and the terminal position information at a set time, and sends the time deviation and / or frequency deviation information to the terminal side simulated physical layer; the terminal side simulated physical layer performs time deviation and / or frequency deviation processing according to the time deviation and / or frequency deviation to simulate the time deviation and / or frequency deviation characteristics of the channel.
[0021] In the above implementation, the simulation of the time deviation and / or frequency deviation characteristics of the channel is supported, so that the simulation system can better simulate the real satellite communication system and improve its use value.
[0022] In an implementation of the first aspect, the simulated physical layer on the base station side is connected to the protocol stack on the base station side, and the simulated physical layer on the terminal side is connected to the protocol stack on the terminal side. The method also includes: the simulated physical layer on the base station side and the simulated physical layer on the terminal side respectively receive requests for link interruption, and initiate link interruption behavior at a random time thereafter; wherein, the link interruption behavior means that the simulated physical layer on the base station side and the simulated physical layer on the terminal side no longer send messages to the simulated physical layer on the other end, and report a link failure message to the protocol stack to which they are connected, so as to trigger the wireless link failure processing flow of the protocol stack.
[0023] In the above implementation, the simulation of the physical link interruption situation is supported, so that the simulation system can better simulate the real wireless communication system and improve its use value.
[0024] In an implementation of the first aspect, the method also includes: creating a data recording task; when the simulated physical layer on the base station side and the simulated physical layer on the terminal side send a message to the simulated physical layer on the other end, sending a copy of the message to the data recording task at the same time, so that the data recording task saves the message to the log; responding to a log playback request, querying and displaying the corresponding message from the log according to the log playback request.
[0025] In the above implementation, each time a physical layer message is sent, a copy of the message is bypassed to the data recording task, so that all physical layer messages in the simulation system are saved in the form of logs, which is convenient for subsequent analysis.
[0026] In an implementation of the first aspect, the simulated physical layer on the base station side is connected to the protocol stack on the base station side, and the simulated physical layer on the terminal side is connected to the protocol stack on the terminal side. The method also includes: in the process of message interaction, the simulated physical layer on the base station side and the simulated physical layer on the terminal side randomly generate error indications according to a first error packet ratio, and report the error indications to the protocol stack to which they are connected to trigger the error packet processing process of the protocol stack.
[0027] In the above implementation, the simulation of packet loss or packet error is supported, so that the simulation system can better simulate the real wireless communication system and improve its use value.
[0028] In an implementation of the first aspect, the simulated physical layer on the base station side is connected to the protocol stack on the base station side, and the method also includes: in the process of message interaction, the simulated physical layer on the base station side determines the uplink channel quality data according to the uplink channel quality change model, and reports the uplink channel quality data to the protocol stack on the base station side to trigger the processing flow of the uplink channel quality data by the protocol stack on the base station side; wherein the uplink channel quality change model is a model that characterizes the change of uplink channel quality over time.
[0029] In the above implementation, the simulation of the change of uplink channel quality is supported, so that the simulation system can better simulate the real wireless communication system and improve its use value.
[0030] In an implementation of the first aspect, the simulated physical layer on the base station side is connected to the protocol stack on the base station side, and the simulated physical layer on the terminal side is connected to the protocol stack on the terminal side. The method also includes: the simulated physical layer on the terminal side determines the downlink channel quality data according to the downlink channel quality change model, and reports the downlink channel quality data to the protocol stack on the terminal side; wherein the downlink channel quality change model is a model that characterizes the change of downlink channel quality over time; the protocol stack on the terminal side sends the downlink channel quality data to the protocol stack on the base station side through a specified protocol to trigger the processing flow of the downlink channel quality data by the protocol stack on the base station side.
[0031] In the above implementation, the simulation of the change of the downlink channel quality is supported, so that the simulation system can better simulate the real wireless communication system and improve its use value.
[0032] In an implementation of the first aspect, the simulated physical layer on the base station side is connected to the protocol stack on the base station side, and the method also includes: the simulated physical layer on the base station side obtains channel quality data, and the channel quality data includes downlink channel quality data and / or uplink channel quality data; the simulated physical layer on the base station side determines a second error packet ratio based on the channel quality data using an error packet probability prediction model, randomly generates an error indication according to the second error packet ratio, and reports the error indication to the protocol stack on the base station side to trigger the error packet processing process of the protocol stack on the base station side; wherein the error packet probability prediction model is a model that characterizes the relationship between channel quality and error packet probability.
[0033] In the above implementation, it supports simulating packet loss or packet error caused by channel quality changes, so that the simulation system can better simulate the real wireless communication system and improve its use value.
[0034] In an implementation of the first aspect, the terminal side simulated physical layer is connected to the terminal side protocol stack, and the method also includes: in the process of message interaction, the terminal side simulated physical layer randomly discards the uplink physical downlink control channel (Physical DownlinkControl Channel, PDCCH for short) control message and / or downlink PDCCH control message received from the base station side simulated physical layer according to a first packet loss ratio, so that the terminal side protocol stack cannot obtain information corresponding to the discarded PDCCH control message, thereby causing a PDCCH demodulation error.
[0035] In the above implementation, the simulation of the PDCCH demodulation error is supported, so that the simulation system can better simulate the real wireless communication system and improve its use value.
[0036] In an implementation of the first aspect, the simulated physical layer on the base station side is connected to the protocol stack on the base station side, and the method also includes: in the process of message interaction, the simulated physical layer on the base station side randomly discards the uplink physical uplink control channel (Physical Uplink ControlChannel, PUCCH for short) control message received from the simulated physical layer on the terminal side according to a second packet loss ratio, so that the protocol stack on the base station side cannot obtain information corresponding to the discarded PUCCH control message, thereby causing a PUCCH demodulation error.
[0037] In the above implementation, the simulation of the PUCCH demodulation error is supported, so that the simulation system can better simulate the real wireless communication system and improve its use value.
[0038] In a second aspect, an embodiment of the present application provides a communication simulation device, comprising: a base station simulation module, which is used to run a simulated physical layer on the base station side using a base station process; and a terminal simulation module, which is used to run a simulated physical layer on the terminal side using a terminal process; wherein the base station and the terminal belong to the same wireless communication system, the base station process and the terminal process are different processes on the same electronic device, the simulated physical layer on the base station side is a simulation of the physical layer on the base station side, and the simulated physical layer on the terminal side is a simulation of the physical layer on the terminal side, and the simulated physical layer on the base station side and the simulated physical layer on the terminal side exchange messages through the shared memory of the electronic device.
[0039] In a third aspect, an embodiment of the present application provides a computer program product, including computer program instructions, which, when read and executed by a processor, execute the method provided by the first aspect or any one of the implementations of the first aspect.
[0040] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are read and executed by a processor, the method provided by the first aspect or any one of the implementations of the first aspect is executed.
[0041] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the memory stores computer program instructions, and when the computer program instructions are read and run by the processor, the method provided by the first aspect or any one of the implementations of the first aspect is executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 A wireless communication system that may be simulated by the communication simulation method provided in an embodiment of the present application is shown;
[0044] Figure 2 The following is a possible process of the communication simulation method provided in the embodiment of the present application;
[0045] Figure 3 The possible working principle of the communication simulation method provided by the embodiment of the present application is shown;
[0046] Figure 4 The functional modules that may be included in the communication simulation device provided in the embodiment of the present application are shown;
[0047] Figure 5 The figure shows the possible structure of the electronic device provided in the embodiments of the present application. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0049] The terms "comprises," "comprising," or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0050] The terms "first", "second", etc. are only used to distinguish one entity or operation from another entity or operation, and should not be understood as indicating or implying relative importance, nor should they be understood as requiring or implying any such actual relationship or order between these entities or operations.
[0051] The technology described in the embodiments of the present application can be applied to the simulation of wireless communication systems such as New Radio (NR) and Long Term Evolution (LTE), and can also be used for the simulation of communication systems such as Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access (OFDMA), Single-Carrier Frequency Division Multiple Access (SC-FDMA), and even communication systems that are still in the research stage, such as the simulation of 6G communication systems, etc. In the following text, for simplicity, the simulation of the 5G NR system is mainly used to illustrate the scheme of the present application, and the terms used are mainly the terms in the 5G NR system. When the scheme is applied to other communication systems, the relevant terms can be replaced by similar concepts in other systems.
[0052] Figure 1 A wireless communication system that may be simulated by the communication simulation method provided in the embodiment of the present application is shown. Figure 1 The wireless communication system 100 includes a terminal 110 and a base station 120, and the number of both can be multiple. It should be understood that the wireless communication system 100 may also include other components, such as core network equipment, but the communication simulation method provided in the embodiment of the present application mainly involves the simulation of the terminal 110 and the base station 120.
[0053] The terminal 110 may be a mobile phone, a tablet computer, a laptop computer, a personal computer, a personal digital assistant, a wearable device, a vehicle-mounted device, etc. The terminal 110 may be a fixed-position device or a movable device.
[0054] The base station 120 may be a ground base station and / or a satellite base station, that is, the wireless communication system 100 does not necessarily include both types of base stations at the same time. For example, a satellite communication system may include both types of base stations at the same time, while a ground millimeter wave system may only include ground base stations. It should be noted that in the field of communications, a base station may be referred to as a Node B (NB), an Evolved Node B (eNB), an access point, a Base Transceiver Station (BTS), a radio base station, a radio transceiver, a Basic Service Set (BSS), an Extended Service Set (ESS) or some other appropriate term in the field. As long as the same technical effect is achieved, the "base station" is not limited to a specific technical vocabulary.
[0055] The terminal 110 can access the base station 120, communicate with the base station 120, and then communicate with other terminals 110 through the base station 120 and possible core network devices, such as implementing voice calls, file transfers, etc. That is, the wireless communication system 100 can, but is not limited to, implementing communication between different terminals 110.
[0056] In the wireless communication system 100, one of the main tasks of the base station 120 is to schedule the access terminal 110, that is, to allocate and manage the wireless resources used by the terminal 110, where the wireless resources include time resources, frequency resources, etc. After the scheduling is completed, the terminal 110 will use the wireless resources allocated to it to communicate with the base station 120 uplink or downlink according to the scheduling result.
[0057] For the 5G NR system, the scheduling behavior is repeated with TTI as the period, and the base station 120 will schedule the terminal 110 connected to the base station 120 in each TTI. The possible values of TTI include 1ms, 0.5ms, 0.25ms, etc. A shorter TTI can provide faster scheduling response time, higher frequency reuse and more refined resource allocation, which helps to improve system capacity and throughput; a longer TTI can reduce scheduling overhead and the number of control signaling, which helps to reduce system complexity and power consumption. In the 5G NR system, the length of TTI is usually set to 1ms, but it also supports flexible configuration of the length of TTI. For example, in millimeter wave systems (such as some satellite communication systems), TTI can be configured to 0.125ms.
[0058] In order to build the wireless communication system 100, it is necessary to conduct extensive testing on the protocol stack functions on the base station 120 and the terminal 110, where the protocol stack refers to a series of internationally standardized protocol hierarchical structures followed by data transmission and signal processing. In the 5G NR system, the protocol stack can be divided from bottom to top into the physical layer, the medium access control (MAC) layer, the radio link control (RLC) layer, the packet data convergence protocol (PDCP) layer, etc. (the specific division of the user plane and control plane protocol stack is different, please refer to the prior art).
[0059] Among them, the physical layer mainly corresponds to the hardware of the device. Therefore, when explaining the embodiments of the present application, the physical layer is regarded as a separate layer, and the part above the physical layer corresponding to the software protocol is called a protocol stack. That is, on the base station 120 or the terminal 110, the lowest layer is the physical layer, which is respectively called the base station side physical layer and the terminal side physical layer. The base station side protocol stack is located above the base station side physical layer, which may include, for example, the base station side MAC layer, etc., and is connected to the base station side physical layer. The terminal side protocol stack is located above the terminal side physical layer, which may include, for example, the terminal side MAC layer, etc., and is connected to the terminal side physical layer.
[0060] In practice, when developing the protocol stack function, the hardware of the physical layer on the base station side and the physical layer on the terminal side may not be determined, resulting in the inability to directly test the upper-layer protocol stack. As a solution, simulation software can be used to simulate the real physical layer so that the upper-layer protocol stack function can be tested even if the physical layer is not implemented. However, the inventors have found that the current operating efficiency of such simulation software is relatively low, especially for wireless communication systems 100 such as millimeter wave systems that have high scheduling performance requirements (for example, TTI is configured to 0.125ms), which cannot be effectively simulated. It should be noted that although TTI is only the scheduling period of the wireless communication system 100, for the entire simulation software, the operating efficiency of each link may affect the scheduling performance of the system. Therefore, once a performance bottleneck occurs in a certain link, it is likely that the simulated system will not meet the design requirements in terms of scheduling performance.
[0061] In response to the above problems, the communication simulation method, device, program product and storage medium provided in the embodiments of the present application are intended to improve the operating efficiency of the simulation system so that it can effectively simulate wireless communication systems 100 such as millimeter wave systems that have high scheduling performance requirements.
[0062] Figure 2 The following shows a possible process of the communication simulation method provided in the embodiment of the present application. Figure 3 The possible working principle of the communication simulation method provided in the embodiment of the present application is shown. Figure 2 When the method in Figure 3 Elaborate. Figure 2 , the communication simulation method includes:
[0063] Step S210: using the base station process to run the base station side simulation physical layer.
[0064] Step S220: Utilize the terminal process to run the terminal-side simulation physical layer.
[0065] The base station in step S210 and the terminal in step S220 belong to the same wireless communication system, that is, the wireless communication system to be simulated, which can be, but is not limited to, Figure 1 A wireless communication system 100 in FIG.
[0066] The base station process and the terminal process are different processes on the same electronic device, which may be, but is not limited to, Figure 5 The electronic device 700, that is, the communication simulation method can be executed by the electronic device 700.
[0067] Among them, the simulated physical layer on the base station side is a simulation program for the physical layer on the base station side, and its program code is included in the base station process. Therefore, executing the base station process is to run the simulated physical layer on the base station side, that is, to simulate the behavior of the physical layer on the base station side; similarly, the simulated physical layer on the terminal side is a simulation program for the physical layer on the terminal side, and its program code is included in the terminal process. Therefore, executing the terminal process is to run the simulated physical layer on the terminal side, that is, to simulate the behavior of the physical layer on the terminal side.
[0068] The simulated physical layer on the base station side is connected to the protocol stack on the base station side. The protocol stack on the base station side can be the object to be functionally tested. For the protocol stack on the base station side, the simulated physical layer on the base station side behaves the same as the real physical layer, so that the protocol stack on the base station side does not perceive whether the physical layer is real, thus achieving the purpose of physical layer simulation. To achieve this purpose, the simulated physical layer on the base station side can simulate the following inputs and outputs of the physical layer on the base station side relative to the protocol stack on the base station side:
[0069] A. Input of the base station side protocol stack to the base station side physical layer (including but not limited to the following items):
[0070] (1) The base station side protocol stack configures the base station side physical layer;
[0071] (2) The base station side protocol stack sends physical downlink shared channel (PDSCH) control information to the base station side physical layer;
[0072] (3) PDCCH control information sent by the base station side protocol stack to the base station side physical layer;
[0073] (4) PUCCH control information sent by the base station side protocol stack to the base station side physical layer;
[0074] (5) The base station side protocol stack sends the physical uplink shared channel (PUSCH) control information to the base station side physical layer;
[0075] (6) The base station side protocol stack controls the sounding reference signal (SRS) sent by the base station side physical layer.
[0076] B. Output of the physical layer on the base station side to the protocol stack on the base station side (including but not limited to the following items):
[0077] (1) Configuration response of the physical layer on the base station side;
[0078] (2) Frame interruption information of the physical layer on the base station side;
[0079] (3) SRS measurement information of the physical layer at the base station side;
[0080] (4) PUSCH demodulation information of the physical layer on the base station side;
[0081] (5) PUCCH demodulation information of the physical layer on the base station side;
[0082] (6) Physical Random Access Channel (PRACH) demodulation information of the physical layer at the base station side.
[0083] The terminal-side simulated physical layer is connected to the terminal-side protocol stack. The terminal-side protocol stack can be the object to be functionally tested. For the terminal-side protocol stack, the terminal-side simulated physical layer behaves the same as the real physical layer, so that the terminal-side protocol stack does not perceive whether the physical layer is real, thus achieving the purpose of physical layer simulation. To achieve this goal, the terminal-side simulated physical layer can simulate the following inputs and outputs of the terminal-side physical layer relative to the terminal-side protocol stack:
[0084] C. Input of the terminal side protocol stack to the terminal side physical layer (including but not limited to the following items):
[0085] (1) The terminal side protocol stack configures and commands the terminal side physical layer;
[0086] (2) PRACH control information sent by the terminal side protocol stack to the terminal side physical layer;
[0087] (3) PUCCH control information sent by the terminal side protocol stack to the terminal side physical layer;
[0088] (4) PUSCH control information sent by the terminal side protocol stack to the terminal side physical layer;
[0089] (5) The terminal-side protocol stack sends SRS control information to the terminal-side physical layer.
[0090] D. Output of the terminal side physical layer to the terminal side protocol stack (including but not limited to the following items):
[0091] (1) Commands and configuration responses of the physical layer on the terminal side;
[0092] (2) Frame interruption information of the physical layer on the terminal side;
[0093] (3) Status report of the physical layer on the terminal side;
[0094] (4) Terminal-side physical layer Master Information Block (MIB) / System Information Block (SIB) / PDSCH message and corresponding cyclic redundancy check (CRC) information;
[0095] (5) PDCCH message of the physical layer on the terminal side.
[0096] The protocol stack on the base station side can be run by the base station process, or it can also be run by another process, as long as it can be connected to the simulated physical layer on the base station side; similarly, the protocol stack on the terminal side can be run by the terminal process, or it can also be run by another process, as long as it can be connected to the simulated physical layer on the terminal side. For example, refer to Figure 3 ,exist Figure 3 In the example, the base station side protocol stack 310 and the base station side simulated physical layer 320 are both run by the base station process 300, so that the base station process 300 can well simulate the complete functions of the base station, and the terminal side protocol stack 410 and the terminal side simulated physical layer 420 are both run by the terminal process 400, so that the terminal process 400 can well simulate the complete functions of the terminal. Within the same process, data exchange between the protocol stack and the simulated physical layer can be more convenient.
[0097] The base station process and the terminal process can also be regarded as a simulation system, which can also include other components, such as the timer mentioned later. If a base station process is used to simulate a base station (it can only simulate the physical layer of the base station, or it can also simulate the physical layer and protocol stack of the base station), and a terminal process is used to simulate a terminal (it can only simulate the physical layer of the terminal, or it can also simulate the physical layer and protocol stack of the terminal), then the simulation system can contain one or more base station processes and one or more terminal processes. Of course, it is not ruled out that a base station process is used to simulate multiple base stations, or a terminal process is used to simulate multiple terminals.
[0098] In addition to docking with their own protocol stacks, the simulated physical layer on the base station side and the simulated physical layer on the terminal side also need to exchange messages with the simulated physical layer on the other end. For the simulated physical layer on the base station side, the simulated physical layer on the terminal side is the simulated physical layer on the other end, and for the simulated physical layer on the terminal side, the simulated physical layer on the base station side is the simulated physical layer on the other end. For example, the simulated physical layer on the base station side can send a PDCCH message to the simulated physical layer on the terminal side, and the simulated physical layer on the terminal side can send a PUCCH message to the simulated physical layer on the base station side, and so on.
[0099] Since the simulated physical layer on the base station side and the simulated physical layer on the terminal side belong to different processes, the message interaction between the two belongs to cross-process communication. In the scheme of the present application, the shared memory on the electronic device where the base station process and the terminal process are located is used to implement this cross-process communication. The "sharing" here can be understood as sharing between the base station process and the terminal process. For example, the simulated physical layer on the base station side can apply for a piece of shared memory and write the message to be sent to the specified area in the shared memory. The simulated physical layer on the terminal side can read the message from the specified area in the shared memory and process it. Then the simulated physical layer on the base station side can release the applied shared memory, or continue to reserve it for writing new messages. Of course, this is just the simplest example, and more ways to use shared memory will be given later. Refer to Figure 3 The simulated physical layer 320 on the base station side and the simulated physical layer 420 on the terminal side can interact with each other via the shared memory 500 in physical layer messages.
[0100] The shared memory needs to be initialized before use. The initialization operation can be performed by the base station process or the terminal process. If the base station process performs the initialization, the base station process can be started first and then the terminal process. In this way, the terminal process can directly use the initialized shared memory after it is started. If the terminal process performs the initialization, the terminal process can be started first and then the base station process. In this way, the base station process can directly use the initialized shared memory after it is started. During the simulation process, the base station process and the terminal process need to be in the running state at the same time.
[0101] Brief summary Figure 2In the method, the physical layer of the base station and the physical layer of the terminal are simulated respectively by the base station process and the terminal process, and the physical layer messages can be exchanged between the two, so as to support the testing of the functions of the base station protocol stack and the terminal protocol stack when the real physical layer is not implemented. The advantages of using this method for physical layer simulation are: first, using two different processes to simulate the physical layer behaviors of the base station and the terminal respectively, which conforms to the characteristics that the real base station and the terminal are physically independent of each other; second, the base station process and the terminal process run on the same electronic device, so that the message interaction can be completed in a relatively short time, which is conducive to improving the operation efficiency of the simulation system; third, the base station process and the terminal process complete the message interaction through shared memory, which can significantly reduce the data copying in the message interaction process compared with the cross-process communication methods such as the Transmission Control Protocol (TCP), Remote Procedure Call (RPC), and pipelines, which is also conducive to improving the operation efficiency of the simulation system. Therefore, this method is particularly suitable for simulating millimeter wave systems with high scheduling performance requirements, but it can also improve the system operation efficiency when simulating non-millimeter wave systems.
[0102] Based on the above embodiment, optionally, the shared memory includes multiple shared memory blocks, and each shared memory block corresponds to index information. For example, the index information can be the number of the shared memory block, or the offset of the shared memory block relative to the starting address of the shared memory area, etc. At this time, the simulated physical layer on the base station side and the simulated physical layer on the terminal side can exchange messages in the following manner:
[0103] When the simulated physical layer on the base station side and the simulated physical layer on the terminal side need to send a message to the simulated physical layer on the other end, they write the message to be sent into the specified shared memory block, such as shared memory block No. 5, and send the index information of the shared memory block, such as number 5, to the simulated physical layer on the other end. After receiving the index information, the simulated physical layer on the other end can find the shared memory block storing the message from the shared memory based on the index information, and read the message from it for processing. For example, according to number 5, shared memory block No. 5 can be located from the shared memory, and the message can be read from it for processing. This process is as follows: Figure 3 shown.
[0104] Depending on the implementation method, one or more messages can be stored in a shared memory block. If multiple messages are stored, when exchanging messages, the simulated physical layer on the base station side and the simulated physical layer on the terminal side can not only send the index of the shared memory block where the message is located to the other physical layer, but also send the index information of the message within the shared memory block to the other physical layer, such as the offset within the block or the message number within the block, so that the other physical layer can accurately read a message.
[0105] There is no limit to the organization of physical layer messages. For example, they can be divided into a message header and a message body. The message header records the message length. The message body uses a tag-length-value (TLV) method to aggregate multiple messages, where the Tag is used to identify the type or name of the data item, such as the type or name of the message, and the Length is used to specify the length of the Value, such as the number of bytes, and the Value is used to store specific data content, such as the message content. Of course, this is only one way of organizing messages, aggregating several messages into a larger message. Other message organization methods can also be used, such as each message is independent and not aggregated.
[0106] In the above implementation, the simulated physical layer on the base station side and the simulated layer on the terminal side do not copy the message body when interacting with each other, but only pass the index information of the shared memory block where the message is written, thereby avoiding the generation of too many message copies. This significantly improves the efficiency of message interaction, which in turn helps to improve the operating efficiency of the simulation system while saving memory space.
[0107] Optionally, when messages are passed internally between the simulated physical layer on the base station side and the simulated physical layer on the terminal side, or when messages are passed between the simulated physical layer on the base station side and the simulated physical layer on the terminal side to their respective connected protocol stacks, only the index information of the shared memory block may be passed, and the technical effects produced can refer to the above description.
[0108] On the basis of the above embodiments, optionally, a base station process or a terminal process can be used to create a shared memory pool, and index information can be assigned to the shared memory blocks in the shared memory pool. For example, if the base station process is started first, the shared memory pool can be created by the base station process; if the terminal process is started first, the shared memory pool can be created by the terminal process; or the shared memory pool can be fixedly created by the base station process or the terminal process. The number of shared memory pools created can be one or more, and each shared memory pool includes multiple shared memory blocks. The simulated physical layer on the base station side and the simulated physical layer on the terminal side apply for shared memory blocks from the shared memory pool for sending messages. The process of sending messages has been described above. After sending the message, the shared memory block can be recycled into the shared memory pool, or it can be not recycled and continue to be used to send new messages.
[0109] Furthermore, there are different implementation methods for the number of shared memory pools created: for example, in the first implementation method, a shared memory pool is created for each physical channel between the simulated physical layer on the base station side and the simulated physical layer on the terminal side, which is specifically used to store messages of the corresponding physical channel; for another example, in the second implementation method, a common shared memory pool is created for all physical channels between the simulated physical layer on the base station side and the simulated physical layer on the terminal side, which is used to store messages of all physical channels; for another example, in the third implementation method, a common shared memory pool is created for all uplink physical channels to store uplink messages, that is, messages sent from the simulated physical layer on the terminal side to the simulated physical layer on the base station side, and a common shared memory pool is created for all downlink physical channels to store downlink messages, that is, messages sent from the simulated physical layer on the base station side to the simulated physical layer on the terminal side, and so on.
[0110] The first implementation method requires creating a larger number of shared memory pools and may use more memory space, but can reduce memory usage conflicts (for example, multiple processes or threads need to perform a large number of mutual exclusion operations when accessing a shared memory pool at the same time); the second implementation method requires creating the least number of shared memory pools and may use less memory space, but may increase memory usage conflicts; the third implementation method is between the first two implementation methods and achieves a better balance between reducing memory overhead and reducing memory usage mutual exclusion.
[0111] In short, creating a shared memory pool first and then allocating shared memory blocks from the shared memory pool avoids frequent memory allocation and release operations, which is conducive to improving memory usage efficiency and reducing memory fragmentation. It should be understood that it is also possible to not create a shared memory pool in advance and apply for shared memory when it is needed.
[0112] Based on the above embodiment, optionally, the shared memory pool may use a circular queue to allocate and release shared memory blocks, and each shared memory block in the shared memory pool may be regarded as an element in the circular queue. For example, the following steps may be followed:
[0113] a. When the shared memory pool is initialized, N consecutive (for example, 10,000) shared memory blocks are allocated according to a fixed maximum message size (for example, 64KB);
[0114] b. N shared memory blocks form a circular queue, which includes a public variable head representing the head position of the queue and a public variable rear representing the tail position of the queue;
[0115] c. When allocating a shared memory block, start allocating from the end of the queue, update the value of rear after allocation, and use mutual exclusion operations to ensure the atomicity of public variable operations;
[0116] e. When releasing a shared memory block, start from the head of the queue and update the value of the head after release. Mutual exclusion operation is used to ensure the atomicity of public variable operations. Note that the release here does not reclaim the memory space by the operating system, but only invalidates the messages in the shared memory block. The released shared memory block can be allocated again.
[0117] f. When the rear catches up with the head, the circular queue is full and the allocation fails.
[0118] In the above implementation, the shared memory blocks in the shared memory pool are managed using the data structure of the circular queue, which is conducive to improving the utilization of the shared memory. It should be understood that other data structures may also be used to implement the shared memory pool, such as arrays, linked lists, ordinary queues, etc.
[0119] In addition to the functional simulation of the physical layer introduced above (including simulation and message interaction with the protocol stack, and message interaction with the other end's physical layer), the simulation system can also implement one or more of the following functional simulations to better simulate the real wireless communication system and better implement the test of the protocol stack function.
[0120] (1) Time-lapse simulation
[0121] A timer is set in the simulation system. The timer can be subordinate to the base station process or the terminal process, and of course, it can also be implemented by a separate process. The timer generates an interrupt signal with the TTI (for example, 0.125ms) of the wireless communication system as a period, and sends the interrupt signal to the simulated physical layer on the base station side and the simulated physical layer on the terminal side to trigger the update of the interrupt counter in the simulated physical layer on the base station side and the simulated physical layer on the terminal side, so as to achieve the purpose of simulating the passage of time in the base station and the terminal. For example, each time the simulated physical layer receives an interrupt signal, it increases the corresponding interrupt counter by 1, indicating that one TTI has passed in the current time. The value of the interrupt counter can be carried in each message (including messages for interaction between the simulated physical layer and the protocol stack, messages within the simulated physical layer, and messages for interaction between the simulated physical layer on the base station side and the simulated physical layer on the terminal side), so that the time inside the entire simulation system is clear.
[0122] In function (1), by setting the timer, the time lapse simulation of TTI granularity is realized, and the simulation of time is also the basis for realizing a series of other simulations. Optionally, in some implementations, the simulation of time lapse can also be realized at a finer granularity, such as the granularity of TTI / 2, TTI / 4, or the granularity of a certain preset time unit.
[0123] (2) Channel delay simulation
[0124] Functions (2) and (3) are both aimed at the case where the wireless communication system is a satellite communication system. Satellite communication systems have complex channel characteristics such as large delay, large Doppler frequency shift, signal attenuation, and multipath effect. In addition, the dynamic changes in the satellite position also have complex effects on communication, making it difficult to simulate the channel characteristics of the satellite communication system. Functions (2) and (3) are the corresponding solutions.
[0125] It should be noted that in the following explanation, firstly, the satellites mentioned refer to the satellites in the satellite communication system to be simulated; secondly, the operations performed by the base station side protocol stack or the terminal side protocol stack mentioned can be understood as operations performed by a layer (for example, the MAC layer) or several layers in the protocol stack, allowing the protocol stack to be implemented in different ways.
[0126] Step 2.1: The terminal side protocol stack obtains satellite position information and terminal position information.
[0127] Satellite position information can be obtained from historical ephemeris data or satellite motion models. Ephemeris data describes the motion of satellites at different times (such as position, direction, speed, etc.), and historical ephemeris data can be obtained based on the motion records of real satellites; satellite motion models are models that characterize the change of satellite positions over time, for example, they can be obtained based on the orbits of real or non-real satellites. Whether it is historical ephemeris data or satellite motion models, the corresponding satellite position information can be obtained after a specific time is given, and function (1) just realizes the simulation of time, so it can give an accurate time.
[0128] Similarly, the terminal location information can be obtained from historical terminal location data or a terminal mobility model, wherein the terminal mobility model is a model that characterizes the change of the terminal location over time. In addition, the terminal location information can also be a fixed location, indicating that the terminal does not move.
[0129] Step 2.2: The terminal side protocol stack calculates the channel delay information according to the satellite position information and the terminal position information at the set time.
[0130] The channel delay information can be expressed in different ways, such as round trip time (RTT) or transmission delay. The set time can be regular or irregular. For example, the terminal side protocol stack can calculate the channel delay information every 10ms based on the current satellite position information and terminal position information.
[0131] Step 2.3: The terminal side protocol stack calculates the control timing of the terminal side simulated physical layer according to the delay information, and sends the control timing to the terminal side simulated physical layer.
[0132] Step 2.4: The terminal side simulates the physical layer to adjust the timing according to the control timing to simulate the delay characteristics of the channel.
[0133] The control timing on the terminal side can be understood as the order of operations to be performed by the simulated physical layer on the terminal side in each TTI, such as the timing and method of sending messages. The control timing is affected by the delay information. For example, if the transmission delay is one TTI, the simulated physical layer on the terminal side can send a message to the simulated physical layer on the base station side one TTI in advance (assuming that the transmission of messages through shared memory consumes almost no time), so that the message will arrive at the simulated physical layer on the base station side at the agreed time. In this way, it can be verified whether the calculated control timing is correct.
[0134] In function (2), the delay characteristics of the channel are supported for simulation, so that the simulation system can better simulate the real satellite communication system and improve its use value.
[0135] (3) Channel time deviation and / or frequency deviation simulation
[0136] Step 3.1: The terminal side protocol stack obtains satellite position information and terminal position information.
[0137] The satellite position information is obtained from historical ephemeris data or a satellite movement model, the terminal position information is a fixed position, or is obtained from historical terminal position data or a terminal movement model, the satellite movement model is a model that characterizes the change of the satellite position over time, and the terminal movement model is a model that characterizes the change of the terminal position over time. This step is similar to step 2.1 and will not be repeated.
[0138] Step 3.2: The terminal side protocol stack calculates the channel time deviation and / or frequency deviation information according to the satellite position information and the terminal position information at the set time, and sends the time deviation and / or frequency deviation information to the terminal side simulated physical layer.
[0139] Step 3.2 supports the calculation of the channel's time offset and / or frequency offset information. The specific information to be calculated depends on the simulation requirements. For example, if only the channel's time offset characteristics are simulated, only the channel's time offset information can be calculated; if both the channel's time offset and frequency offset characteristics are simulated, both the channel's time offset information and frequency offset information can be calculated.
[0140] Step 3.3: The terminal side simulates the physical layer to perform time deviation and / or frequency deviation processing according to the time deviation and / or frequency deviation to simulate the time deviation and / or frequency deviation characteristics of the channel.
[0141] The time offset processing may include time offset compensation, and the frequency offset processing may include frequency offset compensation. In this way, it can be verified whether the compensation effect of the time offset and / or frequency offset reaches the expectation.
[0142] In function (3), it supports simulating the time deviation and / or frequency deviation characteristics of the channel, so that the simulation system can better simulate the real satellite communication system and improve its use value.
[0143] (4) Link interruption simulation
[0144] The link to be simulated in function (4) may refer to a physical link between a base station and a terminal. Factors such as equipment failure, environmental impact, and external interference may cause the link to be interrupted.
[0145] Step 4.1: A request for generating a link interruption is input to the simulation system, and the request is received by the simulated physical layer on the base station side and the simulated physical layer on the terminal side respectively.
[0146] For example, a user may trigger a request for link interruption through an operation on a web page or a client interface, or a computer program may automatically trigger a request for link interruption. Alternatively, in some implementations, the request for link interruption may be generated by the simulation system itself, such as by a base station process, a terminal process, or other processes.
[0147] Step 4.2: The simulated physical layer on the base station side and the simulated physical layer on the terminal side initiate link interruption behavior at a random time after receiving the request.
[0148] Among them, the link interruption behavior for the simulated physical layer on the base station side means that it no longer sends messages to the simulated physical layer on the terminal side, and reports the link failure message to the protocol stack on the base station side; for the simulated physical layer on the terminal side, it means that it no longer sends messages to the simulated physical layer on the base station side, and reports the link failure message to the protocol stack on the terminal side. In this way, the wireless link failure processing flow of the protocol stack on the base station side and the protocol stack on the terminal side can be triggered, and the correctness of this processing flow can be verified.
[0149] In the above implementation, the simulation of physical link interruption is supported, so that the simulation system can better simulate the real wireless communication system and improve its use value. Furthermore, since the link interruption behavior in step 4.2 is initiated at a random time, it is more consistent with the suddenness and unpredictability of real link interruption.
[0150] (5) Packet loss and error packet injection
[0151] Functions (5) to (8) all fall within the scope of error injection. The so-called error injection mechanism is to artificially create some errors or abnormal conditions to simulate various errors or abnormalities that may occur in a real wireless communication system, so as to verify whether the system's handling mechanism for these errors or abnormalities is reasonable.
[0152] During the message interaction, the simulated physical layer on the base station side and the simulated physical layer on the terminal side randomly generate error indications according to the first error packet ratio, and report the error indications to the protocol stack connected to themselves to trigger the error packet processing flow of the protocol stack. In this way, it can be verified whether the error packet processing flow is correct.
[0153] The first error packet ratio may be a preset value in an interval (0, 1), the error indication may be a CRC error indication, and the randomly generated error indication is to simulate randomly generated error packets (packet loss may also be regarded as a case of error packets).
[0154] In function (5), it supports simulating packet loss or packet error, so that the simulation system can better simulate the real wireless communication system and improve its use value. Optionally, according to the needs, packet loss and packet error injection can also be performed only on one side (simulating the physical layer on the base station side or simulating the physical layer on the terminal side). The injection method is similar to the above and will not be repeated.
[0155] (6) Injection of channel quality changes
[0156] (6.1) For the uplink channel
[0157] During the message interaction, the base station simulates the physical layer to determine the uplink channel quality data according to the uplink channel quality change model, and reports the uplink channel quality data to the base station protocol stack to trigger the base station protocol stack to process the uplink channel quality data. In this way, it can be verified whether the processing flow of the uplink channel quality data is correct.
[0158] The uplink channel quality change model is a model that characterizes the uplink channel quality change over time. The input of the model includes the specified time, and the output includes uplink channel quality data. The uplink channel quality data may include data such as signal to interference plus noise ratio (SINR) and / or reference signal received power (RSRP). Different uplink channel quality change models may be set for different uplink channels. Of course, it is not ruled out that several different uplink channels share one uplink channel quality change model.
[0159] For example, if the uplink channel quality data is positively correlated with the signal strength of the signal in the uplink channel, the uplink channel quality change model may be used to output uplink channel quality data with a smaller value, thereby simulating the signal attenuation in the uplink channel.
[0160] The uplink channel quality change model may be a model constructed based on historical real uplink channel quality data, or may be a model constructed based on virtual (eg, manually specified) uplink channel quality data.
[0161] In function (6.1), it supports simulation of changes in uplink channel quality, so that the simulation system can better simulate the real wireless communication system and improve its use value.
[0162] (6.2) For the downlink channel
[0163] First, the terminal side simulates the physical layer to determine the downlink channel quality data according to the downlink channel quality change model, and reports the downlink channel quality data to the terminal side protocol stack. Among them, the downlink channel quality change model is a model that characterizes the change of downlink channel quality over time. The input of the model includes the specified time, and the output includes downlink channel quality data. The downlink channel quality data may include data such as Channel Quality Indication (CQI for short). Different downlink channel quality change models may be set for different downlink channels. Of course, it is not ruled out that several different downlink channels share a downlink channel quality change model.
[0164] For example, if the downlink channel quality data is positively correlated with the signal strength of the signal in the downlink channel, the downlink channel quality change model may be used to output downlink channel quality data with a smaller value, thereby simulating the signal attenuation in the downlink channel.
[0165] The downlink channel quality change model may be a model constructed based on historical real downlink channel quality data, or may be a model constructed based on virtual (eg, manually specified) downlink channel quality data.
[0166] Then, the terminal side protocol stack sends the downlink channel quality data to the base station side protocol stack through a specified protocol (referring to a certain protocol used in the protocol stack) (the sending process also needs to pass through the simulated physical layer) to trigger the base station side protocol stack to process the downlink channel quality data. In this way, it can be verified whether the processing flow of the downlink channel quality data is correct.
[0167] In function (6.2), it supports simulation of changes in downlink channel quality, so that the simulation system can better simulate the real wireless communication system and improve its use value.
[0168] (6.3) Packet loss and error injection based on channel quality
[0169] First, the base station simulates the physical layer to obtain channel quality data, where the channel quality data includes downlink channel quality data and / or uplink channel quality data, and the acquisition method can refer to functions (6.1) and (6.2).
[0170] Then, the base station simulates the physical layer based on the channel quality data and uses the error packet probability prediction model to determine the second error packet ratio, randomly generates an error indication according to the second error packet ratio, and reports the error indication to the base station protocol stack to trigger the error packet processing flow of the base station protocol stack. In this way, it can be verified whether the error packet processing flow is correct.
[0171] Among them, the error packet probability prediction model is a model that characterizes the relationship between channel quality and error packet probability. For example, in the simplest implementation, there is a direct mapping relationship between the two, that is, the channel quality data is input, and the model outputs the corresponding error packet probability, which is the second error packet ratio, or can be converted to the second error packet ratio. The second error packet ratio can be a preset value in an interval (0,1), the error indication can be a CRC error indication, and the random generation of error indication is to simulate the random generation of error packets (packet loss can also be regarded as a case of error packets).
[0172] The packet error probability prediction model may be a model constructed based on historical real channel quality data and packet error probability data, or may be a model constructed based on virtual (eg, manually specified) channel quality data and packet error probability data.
[0173] In function (6.3), it supports simulation of packet loss or packet error caused by changes in channel quality, so that the simulation system can better simulate the real wireless communication system and improve its use value.
[0174] It should be pointed out that both function (5) and function (6.3) involve the injection of packet loss and packet errors. The difference between the two is that function (5) is an unconditional injection and does not consider the causes of packet loss and packet errors, while function (6.3) is an injection related to channel quality. When the channel quality is different, the injection ratio is also different. Since the change of channel quality is an important cause of packet loss and packet errors in practice, the injection method of function (6.3) is highly targeted and flexible. When realizing the functions of the simulation system, function (5) and function (6.3) can be realized either.
[0175] (7) Injection of PDCCH demodulation errors
[0176] During the message interaction, the simulated physical layer on the terminal side randomly discards the uplink PDCCH control message and / or downlink PDCCH control message received from the simulated physical layer on the base station side according to the first packet loss ratio, wherein the first packet loss ratio can be a preset value in an interval (0,1). In this way, the protocol stack on the terminal side will not be able to obtain the information corresponding to the discarded PDCCH control message, such as downlink control information (DCI), resulting in a PDCCH demodulation error (e.g., a DCI loss problem), which in turn triggers the terminal side protocol stack's processing flow for the PDCCH demodulation error. In this way, the correctness of the processing flow for the PDCCH demodulation error can be verified.
[0177] In the above implementation, the simulation of the PDCCH demodulation error is supported, so that the simulation system can better simulate the real wireless communication system and improve its use value.
[0178] (8) Injection of PUCCH demodulation errors
[0179] During the message interaction, the simulated physical layer on the base station side randomly discards the uplink PUCCH control message received from the simulated physical layer on the terminal side according to the second packet loss ratio, where the second packet loss ratio can be a preset value in the interval (0,1). In this way, the protocol stack on the base station side will not be able to obtain the information corresponding to the discarded PUCCH control message, resulting in a PUCCH demodulation error, which in turn triggers the processing flow of the protocol stack on the base station side for the PUCCH demodulation error. In this way, the correctness of the processing flow of the PUCCH demodulation error can be verified.
[0180] In the above implementation, the simulation of the PUCCH demodulation error is supported, so that the simulation system can better simulate the real wireless communication system and improve its use value.
[0181] Based on the above embodiment, the simulation system can optionally implement a log playback function, and the specific method is as follows:
[0182] The simulation system creates a data logging task, which can be a separate process or subordinate to the base station process or the terminal process, and is mainly used for message logging. For example, when the simulation system is initialized, a separate thread can be created by simulating the physical layer on the base station side to perform the data logging task.
[0183] When the simulated physical layer on the base station side and the simulated physical layer on the terminal side send a message to the simulated physical layer on the other end, a copy of the message is created and sent to the data logging task at the same time. The data logging task saves the received copy of the message in the log. Optionally, the message (or the copy of the message) may include a message header and a message body. The message header may record the message type, as well as the system frame number (SFN), time slot (SLOT), TTI and other information to which the message belongs. The message body may record the specific content of the message. Among them, SFN, SLOT and TTI can all be obtained based on the interrupt signal of the timer mentioned above. The log format here is not limited, for example, it can be a database table or file local or remote to the electronic device.
[0184] If the user needs to view the message, he can initiate a log playback request to the simulation system. The request can specify the time period or other information of the message to be viewed. For example, the user can initiate the request through the operation on the web page or client interface. The simulation system responds to the log playback request, queries the corresponding message from the log according to the request content and displays it. For example, it can display the message type, the SFN, SLOT, TTI to which the message belongs, and the message content. In this way, the user can perform further analysis based on the displayed message, such as fault cause analysis.
[0185] In the above implementation, by bypassing a copy of the message to the data recording task each time a physical layer message is sent, all physical layer messages in the simulation system are saved in the form of logs, which is convenient for subsequent analysis, conducive to log-based troubleshooting, and improves the stability of the simulation system.
[0186] Figure 4 The communication simulation device 600 provided in the embodiment of the present application may include functional modules. The communication simulation device 600 may be installed in a base station of a wireless communication system. Figure 4 , the communication simulation device 600 comprises:
[0187] The base station simulation module 610 is used to run the base station side simulation physical layer using the base station process;
[0188] The terminal emulation module 620 is used to run the terminal side emulation physical layer using the terminal process;
[0189] Among them, the base station and the terminal belong to the same wireless communication system, the base station process and the terminal process are different processes on the same electronic device, the simulated physical layer on the base station side is a simulation of the physical layer on the base station side, and the simulated physical layer on the terminal side is a simulation of the physical layer on the terminal side. The simulated physical layer on the base station side and the simulated physical layer on the terminal side exchange messages through the shared memory of the electronic device.
[0190] In one implementation of the communication simulation device 600, the shared memory includes multiple shared memory blocks, and each shared memory block corresponds to index information. The simulated physical layer on the base station side and the simulated physical layer on the terminal side perform message interaction through the shared memory of the electronic device, including: the simulated physical layer on the base station side and the simulated physical layer on the terminal side write the message to be sent into the shared memory block, and send the index information of the shared memory block to the simulated physical layer on the other end; the simulated physical layer on the other end searches for the shared memory block storing the message from the shared memory based on the index information, and reads the message from it for processing.
[0191] In one implementation of the communication simulation device 600, the base station simulation module 610 is also used to create a shared memory pool using the base station process and allocate index information to the shared memory blocks in the shared memory pool; or, the terminal simulation module 620 is also used to create a shared memory pool using the terminal process and allocate index information to the shared memory blocks in the shared memory pool; wherein the shared memory pool includes multiple shared memory blocks, and the base station side simulated physical layer and the terminal side simulated physical layer apply for shared memory blocks from the shared memory pool for sending messages.
[0192] In one implementation of the communication simulation device 600, the shared memory pool includes a shared memory pool for uplink messages and a shared memory pool for downlink messages; wherein the uplink message refers to a message sent by the simulated physical layer on the terminal side to the simulated physical layer on the base station side, and the downlink message refers to a message sent by the simulated physical layer on the base station side to the simulated physical layer on the terminal side.
[0193] In an implementation of the communication simulation device 600, the shared memory pool uses a circular queue to allocate and release the shared memory blocks.
[0194] In one implementation of the communication simulation device 600, the device also includes: a clock simulation module, which is used to use a timer to generate an interrupt signal with the TTI of the wireless communication system as a period, and send the interrupt signal to the simulated physical layer on the base station side and the simulated physical layer on the terminal side, triggering the interrupt counter update in the simulated physical layer on the base station side and the simulated physical layer on the terminal side to simulate the passage of time in the base station and the terminal.
[0195] In one implementation of the communication simulation device 600, the wireless communication system is a satellite communication system, the terminal simulation module 620 is also used to run the terminal side protocol stack, the terminal side simulated physical layer is connected to the terminal side protocol stack, and the terminal simulation module 620 is also used for the terminal side protocol stack to obtain satellite position information and terminal position information; wherein the satellite position information is obtained from historical ephemeris data or a satellite movement model, and the terminal position information is a fixed position, or is obtained from historical terminal position data or a terminal movement model, the satellite movement model is a model that characterizes the change of satellite position over time, and the terminal movement model is a model that characterizes the change of terminal position over time; the terminal side protocol stack calculates the delay information of the channel according to the satellite position information and the terminal position information at a set time, calculates the control timing of the terminal side simulated physical layer according to the delay information, and sends the control timing to the terminal side simulated physical layer; the terminal side simulated physical layer performs timing adjustment according to the control timing to simulate the delay characteristics of the channel.
[0196] In one implementation of the communication simulation device 600, the wireless communication system is a satellite communication system, the terminal simulation module 620 is also used to run the terminal side protocol stack, the terminal side simulation physical layer is connected to the terminal side protocol stack, and the terminal simulation module 620 is also used for the terminal side protocol stack to obtain satellite position information and terminal position information; wherein the satellite position information is obtained from historical ephemeris data or a satellite movement model, and the terminal position information is a fixed position, or is obtained from historical terminal position data or a terminal movement model, the satellite movement model is a model that characterizes the change of satellite position over time, and the terminal movement model is a model that characterizes the change of terminal position over time; the terminal side protocol stack calculates the time deviation and / or frequency deviation information of the channel according to the satellite position information and the terminal position information at a set time, and sends the time deviation and / or frequency deviation information to the terminal side simulation physical layer; the terminal side simulation physical layer performs time deviation and / or frequency deviation processing according to the time deviation and / or frequency deviation to simulate the time deviation and / or frequency deviation characteristics of the channel.
[0197] In one implementation of the communication simulation device 600, the base station simulation module 610 is also used to run the base station side protocol stack, and the base station side simulated physical layer is connected to the base station side protocol stack. The terminal simulation module 620 is also used to run the terminal side protocol stack, and the terminal side simulated physical layer is connected to the terminal side protocol stack. The base station side simulated physical layer and the terminal side simulated physical layer respectively receive requests for link interruption and initiate link interruption behavior at a random time thereafter; wherein, the link interruption behavior means that the base station side simulated physical layer and the terminal side simulated physical layer no longer send messages to the other end simulated physical layer, and report link failure messages to the protocol stack to which they are connected, so as to trigger the wireless link failure processing flow of the protocol stack.
[0198] In one implementation of the communication simulation device 600, the device also includes: a log playback module, used to create a data recording task; when the simulated physical layer on the base station side and the simulated physical layer on the terminal side send a message to the simulated physical layer on the other end, a copy of the message is simultaneously sent to the data recording task so that the data recording task saves the message to the log; the log playback module is also used to respond to a log playback request, query the corresponding message from the log according to the log playback request and display it.
[0199] In one implementation of the communication simulation device 600, the base station simulation module 610 is also used to run the base station side protocol stack, and the base station side simulated physical layer is connected to the base station side protocol stack. The terminal simulation module 620 is also used to run the terminal side protocol stack, and the terminal side simulated physical layer is connected to the terminal side protocol stack. During the message interaction process, the base station side simulated physical layer and the terminal side simulated physical layer randomly generate error indications according to the first error packet ratio, and report the error indications to the protocol stack connected to themselves to trigger the error packet processing process of the protocol stack.
[0200] In one implementation of the communication simulation device 600, the base station simulation module 610 is also used to run the base station side protocol stack, and the base station side simulated physical layer is connected to the base station side protocol stack. During the message interaction, the base station side simulated physical layer determines the uplink channel quality data according to the uplink channel quality change model, and reports the uplink channel quality data to the base station side protocol stack to trigger the base station side protocol stack to process the uplink channel quality data; wherein the uplink channel quality change model is a model that characterizes the change of uplink channel quality over time.
[0201] In one implementation of the communication simulation device 600, the base station simulation module 610 is also used to run the base station side protocol stack, and the base station side simulated physical layer is connected to the base station side protocol stack. The terminal simulation module 620 is also used to run the terminal side protocol stack, and the terminal side simulated physical layer is connected to the terminal side protocol stack. The terminal side simulated physical layer determines the downlink channel quality data according to the downlink channel quality change model, and reports the downlink channel quality data to the terminal side protocol stack; wherein the downlink channel quality change model is a model that characterizes the change of downlink channel quality over time; the terminal side protocol stack sends the downlink channel quality data to the base station side protocol stack through a specified protocol to trigger the base station side protocol stack to process the downlink channel quality data.
[0202] In one implementation of the communication simulation device 600, the base station simulation module 610 is also used to run the base station side protocol stack, and the base station side simulated physical layer is connected to the base station side protocol stack. The method also includes: the base station side simulated physical layer obtains channel quality data, and the channel quality data includes downlink channel quality data and / or uplink channel quality data; the base station side simulated physical layer determines a second error packet ratio based on the channel quality data using an error packet probability prediction model, randomly generates an error indication according to the second error packet ratio, and reports the error indication to the base station side protocol stack to trigger the error packet processing process of the base station side protocol stack; wherein the error packet probability prediction model is a model that characterizes the relationship between channel quality and error packet probability.
[0203] In one implementation of the communication simulation device 600, the terminal simulation module 620 is also used to run the terminal side protocol stack, and the terminal side simulated physical layer is connected to the terminal side protocol stack. During the message interaction process, the terminal side simulated physical layer randomly discards the uplink PDCCH control message and / or downlink PDCCH control message received from the base station side simulated physical layer according to the first packet loss ratio, so that the terminal side protocol stack cannot obtain the information corresponding to the discarded PDCCH control message, thereby causing a PDCCH demodulation error.
[0204] In one implementation of the communication simulation device 600, the base station simulation module 610 is also used to run the base station side protocol stack, and the base station side simulated physical layer is connected to the base station side protocol stack. During the message interaction process, the base station side simulated physical layer randomly discards the uplink PUCCH control message received from the terminal side simulated physical layer according to the second packet loss ratio, so that the base station side protocol stack cannot obtain the information corresponding to the discarded PUCCH control message, thereby causing a PUCCH demodulation error.
[0205] The communication simulation device 600 provided in the embodiment of the present application can be used to execute the communication simulation method provided in the embodiment of the present application. Its implementation principle and the technical effects produced have been introduced in the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding content in any of the aforementioned method embodiments.
[0206] Figure 5 FIG. 7 shows a possible structure of the electronic device 700 provided in an embodiment of the present application. Figure 5 The electronic device 700 includes: a processor 710, a memory 720 and a bus 730. The processor 710 and the memory 720 are interconnected and communicate with each other through the bus 730 and / or other forms of connection mechanisms (not shown).
[0207] The processor 710 includes one or more (only one is shown in the figure), which can be an integrated circuit chip with signal processing capabilities. The above-mentioned processor 710 can be a general-purpose processor, including a central processing unit (CPU), a micro control unit (MCU), a network processor (NP) or other conventional processors; it can also be a dedicated processor, including a graphics processor (GPU), a neural network processor (NPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. In addition, when there are multiple processors 710, some of them can be general-purpose processors and the other part can be dedicated processors.
[0208] The memory 720 includes one or more (only one is shown in the figure), which may be, but not limited to, a random access memory (Random Access Memory, referred to as RAM), a read only memory (Read Only Memory, referred to as ROM), a programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), an erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), an electrically erasable programmable read-only memory (Electric Erasable Programmable Read-Only Memory, referred to as EEPROM), etc. For the embodiment of the present application, the memory 720 includes a RAM used as a shared memory.
[0209] The processor 710 and other possible components may access, read and / or write data in the memory 720. In particular, one or more computer program instructions may be stored in the memory 720, and the processor 710 may read and execute these computer program instructions to implement the communication simulation method provided in the embodiment of the present application.
[0210] Understandably, Figure 5 The structure shown is for illustration only. The electronic device 700 may also include Figure 5 More or fewer components as shown, or with Figure 5 For example, the electronic device 700 may further include a communication unit for communicating with other electronic devices. Figure 5 The components shown in the figure can be implemented by hardware, software or a combination thereof. The electronic device 700 may be a physical device, such as a server, a PC, a laptop, etc., or a virtual device, such as a virtual machine, a virtualized container, etc. Moreover, the electronic device 700 is not limited to a single device, but may also be a combination of multiple devices or a cluster consisting of a large number of devices.
[0211] The present application also provides a computer-readable storage medium on which computer program instructions are stored. When these computer program instructions are read and executed by a processor, the communication simulation method provided by the present application is executed. For example, the computer-readable storage medium can be implemented as Figure 5 The memory 720, optical disk, USB flash disk, etc. in the electronic device 700.
[0212] The present application also provides a computer program product, which includes computer program instructions. When these computer program instructions are read and run by a processor, the communication simulation method provided by the present application is executed. For example, these computer program instructions can be stored in Figure 5 The data may be stored in the memory 720 in the electronic device 700, or in a USB flash drive, a mobile hard disk, or recorded on a CD, etc.
[0213] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A communication simulation method, characterized in that: include: Use the base station process to run the base station side simulation physical layer; as well as, Use the terminal process to run the terminal-side simulated physical layer; The base station and the terminal belong to the same wireless communication system, the base station process and the terminal process are different processes on the same electronic device, the simulated physical layer on the base station side is a simulation of the physical layer on the base station side, and the simulated physical layer on the terminal side is a simulation of the physical layer on the terminal side, and the simulated physical layer on the base station side and the simulated physical layer on the terminal side perform message interaction through the shared memory of the electronic device; The shared memory includes a plurality of shared memory blocks, and each shared memory block corresponds to index information, and the base station side simulated physical layer and the terminal side simulated physical layer perform message interaction through the shared memory of the electronic device, including: The simulated physical layer at the base station side and the simulated physical layer at the terminal side write the message to be sent into the shared memory block, and send the index information of the shared memory block to the simulated physical layer at the opposite end; The simulated physical layer of the opposite end searches the shared memory block storing the message based on the index information, and reads the message therefrom for processing; The method further comprises: A shared memory pool is created using the base station process or the terminal process, and index information is allocated to the shared memory blocks in the shared memory pool; wherein the shared memory pool includes multiple shared memory blocks, and the base station side simulated physical layer and the terminal side simulated physical layer apply for shared memory blocks from the shared memory pool for sending messages.
2. The communication simulation method according to claim 1, characterized in that: The shared memory pool includes a shared memory pool for uplink messages and a shared memory pool for downlink messages; wherein the uplink message refers to a message sent by the simulated physical layer on the terminal side to the simulated physical layer on the base station side, and the downlink message refers to a message sent by the simulated physical layer on the base station side to the simulated physical layer on the terminal side.
3. The communication simulation method according to claim 1, characterized in that: The shared memory pool uses a circular queue to allocate and release the shared memory blocks.
4. The communication simulation method according to any one of claims 1 to 3, characterized in that: The method further comprises: A timer is used to generate an interrupt signal with the TTI of the wireless communication system as a period, and the interrupt signal is sent to the simulated physical layer on the base station side and the simulated physical layer on the terminal side, triggering the update of the interrupt counters in the simulated physical layer on the base station side and the simulated physical layer on the terminal side to simulate the passage of time in the base station and the terminal.
5. The communication simulation method according to any one of claims 1 to 3, characterized in that: The wireless communication system is a satellite communication system, the terminal side simulates a physical layer and interfaces with a terminal side protocol stack, and the method further includes: The terminal side protocol stack acquires satellite position information and terminal position information; wherein the satellite position information is obtained from historical ephemeris data or a satellite movement model, the terminal position information is a fixed position, or is obtained from historical terminal position data or a terminal movement model, the satellite movement model is a model that characterizes changes in satellite position over time, and the terminal movement model is a model that characterizes changes in terminal position over time; The terminal side protocol stack calculates the delay information of the channel according to the satellite position information and the terminal position information at the set time, calculates the control timing of the terminal side simulated physical layer according to the delay information, and sends the control timing to the terminal side simulated physical layer; The terminal side simulated physical layer performs timing adjustment according to the control timing to simulate the delay characteristics of the channel.
6. The communication simulation method according to any one of claims 1 to 3, characterized in that: The wireless communication system is a satellite communication system, the terminal side simulates a physical layer and interfaces with a terminal side protocol stack, and the method further includes: The terminal side protocol stack acquires satellite position information and terminal position information; wherein the satellite position information is obtained from historical ephemeris data or a satellite movement model, the terminal position information is a fixed position, or is obtained from historical terminal position data or a terminal movement model, the satellite movement model is a model that characterizes changes in satellite position over time, and the terminal movement model is a model that characterizes changes in terminal position over time; The terminal side protocol stack calculates the time deviation and / or frequency deviation information of the channel according to the satellite position information and the terminal position information at the set time, and sends the time deviation and / or frequency deviation information to the terminal side analog physical layer; The terminal side simulated physical layer performs time deviation and / or frequency deviation processing according to the time deviation and / or frequency deviation to simulate the time deviation and / or frequency deviation characteristics of the channel.
7. The communication simulation method according to any one of claims 1 to 3, characterized in that: The base station side simulated physical layer is connected to the base station side protocol stack, and the terminal side simulated physical layer is connected to the terminal side protocol stack, and the method further includes: The simulated physical layer on the base station side and the simulated physical layer on the terminal side respectively receive requests for link interruption, and initiate link interruption behavior at a random time thereafter; wherein, the link interruption behavior means that the simulated physical layer on the base station side and the simulated physical layer on the terminal side no longer send messages to the simulated physical layer on the other end, and report a link failure message to the protocol stack connected to themselves, so as to trigger the wireless link failure processing flow of the protocol stack.
8. The communication simulation method according to any one of claims 1 to 3, characterized in that: The method further comprises: Create a data logging task; When the simulated physical layer at the base station side and the simulated physical layer at the terminal side send a message to the simulated physical layer at the other end, a copy of the message is simultaneously sent to the data recording task so that the data recording task saves the message into a log; In response to a log playback request, a corresponding message is queried from the log according to the log playback request and displayed.
9. The communication simulation method according to any one of claims 1 to 3, characterized in that: The base station side simulated physical layer is connected to the base station side protocol stack, and the terminal side simulated physical layer is connected to the terminal side protocol stack, and the method further includes: During the message interaction process, the simulated physical layer on the base station side and the simulated physical layer on the terminal side randomly generate error indications according to the first error packet ratio, and report the error indications to the protocol stack connected to themselves to trigger the error packet processing process of the protocol stack.
10. The communication simulation method according to any one of claims 1 to 3, characterized in that: The base station side simulates a physical layer and connects with the base station side protocol stack, and the method further includes: During the message interaction process, the base station side simulates the physical layer to determine the uplink channel quality data according to the uplink channel quality change model, and reports the uplink channel quality data to the base station side protocol stack to trigger the base station side protocol stack to process the uplink channel quality data; wherein the uplink channel quality change model is a model that characterizes the change of uplink channel quality over time.
11. The communication simulation method according to any one of claims 1 to 3, characterized in that: The base station side simulated physical layer is connected to the base station side protocol stack, and the terminal side simulated physical layer is connected to the terminal side protocol stack, and the method further includes: The terminal side simulated physical layer determines downlink channel quality data according to the downlink channel quality change model, and reports the downlink channel quality data to the terminal side protocol stack; wherein the downlink channel quality change model is a model that characterizes the change of downlink channel quality over time; The terminal side protocol stack sends the downlink channel quality data to the base station side protocol stack through a specified protocol to trigger the base station side protocol stack to process the downlink channel quality data.
12. The communication simulation method according to any one of claims 1 to 3, characterized in that: The base station side simulates a physical layer and connects with the base station side protocol stack, and the method further includes: The base station side simulates the physical layer to obtain channel quality data, where the channel quality data includes downlink channel quality data and / or uplink channel quality data; The simulated physical layer on the base station side determines a second packet error ratio based on the channel quality data using a packet error probability prediction model, randomly generates an error indication according to the second packet error ratio, and reports the error indication to the base station side protocol stack to trigger the packet error processing flow of the base station side protocol stack; wherein the packet error probability prediction model is a model that characterizes the relationship between channel quality and packet error probability.
13. The communication simulation method according to any one of claims 1 to 3, characterized in that: The terminal side simulates a physical layer and connects to the terminal side protocol stack, and the method further includes: During the message interaction process, the simulated physical layer on the terminal side randomly discards the uplink PDCCH control message and / or downlink PDCCH control message received from the simulated physical layer on the base station side according to the first packet loss ratio, so that the terminal side protocol stack cannot obtain the information corresponding to the discarded PDCCH control message, thereby causing a PDCCH demodulation error.
14. The communication simulation method according to any one of claims 1 to 3, characterized in that: The base station side simulates a physical layer and connects with the base station side protocol stack, and the method further includes: During the message interaction process, the simulated physical layer on the base station side randomly discards the uplink PUCCH control message received from the simulated physical layer on the terminal side according to the second packet loss ratio, so that the protocol stack on the base station side cannot obtain the information corresponding to the discarded PUCCH control message, thereby causing a PUCCH demodulation error.
15. A communication simulation device, characterized in that: include: A base station simulation module is used to use the base station process to run a simulated physical layer on the base station side; The terminal emulation module is used to use the terminal process to run the terminal side simulation physical layer; The base station and the terminal belong to the same wireless communication system, the base station process and the terminal process are different processes on the same electronic device, the simulated physical layer on the base station side is a simulation of the physical layer on the base station side, and the simulated physical layer on the terminal side is a simulation of the physical layer on the terminal side, and the simulated physical layer on the base station side and the simulated physical layer on the terminal side perform message interaction through the shared memory of the electronic device; The shared memory includes a plurality of shared memory blocks, and each shared memory block corresponds to index information. The simulated physical layer on the base station side and the simulated physical layer on the terminal side perform message interaction through the shared memory of the electronic device, including: the simulated physical layer on the base station side and the simulated physical layer on the terminal side write the message to be sent into the shared memory block, and send the index information of the shared memory block to the simulated physical layer on the opposite end; the simulated physical layer on the opposite end searches the shared memory for the shared memory block storing the message based on the index information, and reads the message therefrom for processing; The base station simulation module is also used to create a shared memory pool using the base station process and allocate index information to the shared memory blocks in the shared memory pool; or the terminal simulation module is also used to create a shared memory pool using the terminal process and allocate index information to the shared memory blocks in the shared memory pool; wherein the shared memory pool includes multiple shared memory blocks, and the base station side simulated physical layer and the terminal side simulated physical layer apply for shared memory blocks from the shared memory pool for sending messages.
16. A computer program product, characterized in that The method comprises computer program instructions, and when the computer program instructions are read and executed by a processor, the method according to any one of claims 1 to 14 is executed.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are read and executed by a processor, the method according to any one of claims 1 to 14 is executed.
18. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores computer program instructions, and when the computer program instructions are read and executed by the processor, the method according to any one of claims 1 to 14 is executed.
Citation Information
Patent Citations
Method for supporting WiMAX system test of analog baseband
CN101277503A
Multi-network card coordination communication method
CN101296157A