Software simulation method, system and device for TDMA ad hoc network and medium

By uniformly managing network node attributes and control interfaces in TDMA ad hoc network simulation, using message pools and matrix to maintain network node connectivity, the problems of high computing power demand, limited flexibility, low channel simulation efficiency and high cost in TDMA ad hoc network simulation are solved, and efficient and flexible large-scale node simulation is achieved.

CN119583541APending Publication Date: 2025-03-07THE 20TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY GROUP CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411558113.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

In the TDMA ad hoc network simulation method, there are problems such as high computing power demand, limited flexibility, low channel simulation efficiency and high cost.

Method used

By creating network node classes, time processing classes, channel simulation classes and scenario classes in the software design environment, unifying network node attributes and control interfaces, using message pools and matrix methods to maintain connectivity between network nodes, and reducing repeated operations of channel simulation.

Benefits of technology

The computing power and hardware requirements for multi-network node simulation are reduced, simulation efficiency and flexibility are improved, costs are reduced, and large-scale node simulation is realized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583541A_ABST
    Figure CN119583541A_ABST
Patent Text Reader

Abstract

The invention provides a software simulation method, system and device for a TDMA ad hoc network and a medium, and the method comprises the steps: in a software design environment, creating a network node class which is used as a basic model of each node in the network and is used for defining the attributes and behaviors of the network nodes; creating a time processing class which is used for completing integration of a multi-network node time division feature table and unified time division feature processing, and controlling a network node sending process; creating a channel simulation class, the channel simulation class being used for simulating characteristics of a channel, including interference characteristics and a communication relationship between network nodes; and a scene class is created, and the scene class serves as a template of a simulation scene and is used for coupling the network node class, the inter-processing class and the channel simulation class and carrying out instantiation simulation. According to the method and the device, repeated operation in channel simulation can be effectively reduced, and the computing power demand, the hardware demand and the scheme cost are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication network simulation, and in particular to a software simulation method, system, equipment and medium for a TDMA self-organizing network. Background Art

[0002] As a random access self-organizing network based on the Time Division Multiple Access (TDMA) mechanism, the main feature of TDMA self-organizing network is that it can support a large number of member nodes, and these nodes can form a multi-hop communication network without fixed infrastructure. It realizes effective communication between multiple nodes through time division multiplexing technology, which is particularly suitable for communication scenarios that require high reliability and flexibility in special communication fields.

[0003] In the design and application of TDMA ad hoc networks, how to effectively verify the communication scheme and perform network performance analysis is a key link. Ad hoc network devices usually contain multiple hardware modules, which not only makes the construction and deployment of the verification environment complicated and costly, but also because the number of network nodes is limited by hardware resources, it is difficult to flexibly adjust the simulation scheme and realize large-scale node simulation.

[0004] In the related technologies, the research on TDMA self-organizing network simulation focuses on software simulation, and its design scheme focuses on network protocols and other related functions. It is mainly based on simulation schemes based on special network simulation software such as OPNET and Omnet++, focusing on algorithm simulation of network protocols, and focusing on the verification of networking protocols; however, in the direction of engineering application, the interface openness of special simulation software is insufficient, and the application direction is relatively narrow. In order to overcome the limitations of special network simulation software, winPcap and Ethernet are used to replace the RF transmission part, and multi-network port computers are used for networking control, and open application open interfaces are open. Its characteristics are that multiple computers run multiple network nodes respectively, and the central switch simulates the TDMA RF networking environment for network simulation.

[0005] Among them, the networking nodes are regarded as a single entity, so deploying multiple networking nodes on a single machine will encounter the problem of insufficient computing power; therefore, the relevant technology adopts the networking node separation technology to separate the networking nodes and the network simulation service. A single network node uses a single machine, and the simulation service document performs channel connectivity simulation calculations. The overall connection uses Ethernet and switches to perform simulation message transmission. Although it alleviates the problem of insufficient computing power to a certain extent, it also brings limitations such as high cost, complex physical connection, and limited simulation scale. Summary of the invention

[0006] The present invention provides a software simulation method, system, device and medium for a TDMA self-organizing network, which solves the problems of high computing power requirement, limited flexibility, low channel simulation efficiency and high cost in the TDMA self-organizing network simulation method in the related art.

[0007] In order to achieve the above objectives, this application adopts the following technical solutions:

[0008] In a first aspect, a software simulation method for a TDMA ad hoc network is provided, comprising:

[0009] Creating a network node class in a software design environment, wherein the network node class is used as a basic model of each node in the network and is used to define properties and behaviors of the network node;

[0010] Creating a time processing class in the software design environment, the time processing class is used to complete the integration of time-division feature tables of multiple network nodes and unified time-division feature processing, and control the network node sending process;

[0011] Creating a channel simulation class in the software design environment, wherein the channel simulation class is used to simulate characteristics of a channel, including interference characteristics and a connection relationship between network nodes;

[0012] A scenario class is created in the software design environment. The scenario class serves as a template for a simulation scenario and is used to couple the network node class, the inter-processing class and the channel simulation class and perform instantiation simulation.

[0013] In a first possible implementation of the first aspect, the network node class includes: node network attributes, a node network group waiting to send queue, a node network group receiving queue, a network node attribute initialization and control method, a channel receiving message processing method, and a channel sending message processing method;

[0014] The time processing class includes: time allocation table, network message processing queue, time division feature initialization and control method, unified time division feature processing method, time transmission processing method;

[0015] The channel message sending processing method sends a message by calling the transmission time processing method; the channel message receiving processing method processes the received message by calling the channel sending method;

[0016] The channel simulation class includes: basic channel attributes, channel message queue, network node connection matrix, channel attribute and connection matrix update method, channel message processing method, and channel data recording method.

[0017] Based on the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the node network attribute includes a time-division characteristic attribute;

[0018] The time allocation table is used to record the time-division characteristics of all nodes in the network, with a single time as a unit. Each time contains several network characteristics of the time, and each characteristic content includes: time sequence number, network sequence number, transmission mode and node number list;

[0019] The time-division feature initialization and control method obtains the time-division feature of the network node itself after the network node completes the initialization of its own attributes, and integrates the member time-division feature with the total table, including:

[0020] At each moment, the time attribute is obtained, the network sequence number is clarified, and the transmission mode at the moment is queried. If it is different from the master table, the initial time-division feature allocation is abnormal, an alarm is issued, and the moment is marked as an error time slot and prohibited from use; if it is the same as the master table, the corresponding network node number is inserted into the master table network node number list.

[0021] Based on the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the unified time-division feature processing method includes:

[0022] Use loop query to check whether the current time has arrived;

[0023] If the time arrives, determine the node that needs to send the message at the time according to the time allocation table and generate an execution member list;

[0024] According to the time allocation table, if it is a fixed transmission mode, the transmission preprocessing is performed, that is, based on the generated message to be sent, according to the network to which the message is to be sent, the message enters the channel message queue, and is sorted according to the message priority, waiting for the channel simulation process to process;

[0025] If it is not the fixed transmission mode, the message is extracted from the channel message queue for transmission preprocessing, and if there is no message in the channel message queue, the processing is terminated.

[0026] Based on the first possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the basic channel attribute includes a description of interference characteristics, which is used for performing relevant model operations in the channel attribute and the Unicom matrix update method;

[0027] The node network group waiting queue, the node network group receiving queue, and the channel message queue are queues for storing message content and simulation frame headers. The simulation frame header includes attributes required to support the simulation process, including: geographical parameters of the network node sending time, frequency characteristics of the network node sending time, and the network node sending time;

[0028] The network node connection matrix is ​​a description of the real-time connection relationship of network nodes. The horizontal and vertical axes of the matrix are network node identity numbers, and the values ​​are the connection probability values ​​of two network nodes under the last normal message.

[0029] The channel attribute and connection matrix updating method comprises:

[0030] Update the interference situation of the channel according to the input;

[0031] Update the connectivity matrix between network nodes.

[0032] Based on the first possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the channel message processing method includes:

[0033] Check the status of the channel message queue, if there is no message, wait for a set time before checking again; if there is a message, extract the message from the channel message queue and obtain the corresponding network node information to be received;

[0034] Determine the number of messages in the network queue at the current moment. If there is only one message in the network queue at this moment, it is a normal sending process; if the number of messages is greater than 1, the collision frame message is processed according to the pre-set processing mechanism;

[0035] Determine whether the message to be sent is a normal message; if it is a normal message, calculate the connectivity of the network, and update the network node connection matrix according to the channel attribute and the connection matrix update method;

[0036] If the message to be sent is not a normal message, the network node connectivity matrix is ​​directly obtained according to the sending and receiving network nodes. If the connectivity is not connected, the message is discarded. If the connectivity is connected, it is determined whether to continue processing the message according to the conditions set in the networking solution. If the conditions are not met, the process ends.

[0037] If the conditions are met, the message is received and processed; the processing process includes extracting the message content, forwarding the message to an external interface, and ending after the processing is completed.

[0038] Based on the first possible implementation method of the first aspect, in a sixth possible implementation method of the first aspect, the scenario class singletonizes the time processing class and the channel simulation class; and performs the unified time-division feature processing method in the singleton of the time processing class; and performs the channel message processing method in the singleton of the channel simulation class.

[0039] In a second aspect, a software simulation system for a TDMA ad hoc network is provided, comprising:

[0040] A network node class module, used to create a network node class in a software design environment, wherein the network node class is used as a basic model of each node in the network and is used to define the properties and behaviors of the network node;

[0041] A time processing class module, used to create a time processing class in the software design environment, wherein the time processing class is used to complete the integration of time-division feature tables of multiple network nodes and the unified time-division feature processing, and control the network node sending process;

[0042] A channel simulation class module, used to create a channel simulation class in the software design environment, wherein the channel simulation class is used to simulate channel characteristics, including interference characteristics and connectivity between network nodes;

[0043] The scenario class module is used to create a scenario class in the software design environment. The scenario class serves as a template for the simulation scenario and is used to couple the network node class, the inter-processing class and the channel simulation class and perform instantiation simulation.

[0044] According to a third aspect, an electronic device is provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the software simulation method for a TDMA self-organizing network as described in the first aspect.

[0045] According to a fourth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the software simulation method of the TDMA ad hoc network described in the first aspect are implemented.

[0046] Based on the simulation of the networking system, the present application integrates the time-division characteristics of the nodes within the network and the nodes temporarily added to the self-organizing network, so that all the nodes within the network use the same time-division characteristic processing process, and uniformly manage the network node attributes and control interfaces. At the same time, in the channel connectivity simulation, the message pool and matrix method are used to maintain the connectivity between network nodes, reduce repeated calculations in the channel simulation, and greatly reduce the computing power and hardware requirements for the simulation of multiple network nodes.

[0047] Specifically, the present application first unifies the management of the attributes, protocol interfaces and time characteristics of each node, improves the efficiency of time characteristic calculation, and reduces the extra communication overhead in the non-simulation process. Secondly, on the basis of completing the integration of time characteristic information, the time-division process of each network node's independent calculation is removed, and a unified time-division calculation process is used, so that the nodes that do not participate in the networking communication at each moment are in a dormant state, thereby greatly reducing the computing power demand and realizing a single process to deploy a large number of network nodes. Therefore, compared with the existing distributed simulation room, the present application has a significant improvement in cost, deployment simplicity, and simulation scale. It has the advantages of simple deployment, low hardware cost, flexible adjustment of simulation schemes, and realization of large-scale node simulation, and solves the high cost of simulation equipment, difficult deployment of simulation environment, and difficult verification of networking schemes of multiple networking nodes encountered in the development of TDMA self-organizing network system engineering. It is a high-quality solution for network simulation needs in laboratories, teaching scenarios, and engineering verification scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A schematic flow chart of a software simulation method for a TDMA ad hoc network provided in an embodiment of the present application;

[0049] Figure 2 A schematic flow chart of a unified time-division feature processing method provided in an embodiment of the present application;

[0050] Figure 3 A schematic flow chart of a channel message processing method provided in an embodiment of the present application;

[0051] Figure 4 A structural block diagram of a software simulation system for a TDMA ad hoc network provided in an embodiment of the present application;

[0052] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined purpose, the technical solutions in the embodiments of the present application are clearly described. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present application.

[0054] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0055] The description of the method flow in the specification of the present application and the steps of the flowchart in the drawings of the present specification do not have to be strictly executed according to the step numbers, and the method steps can be executed in a different order. Moreover, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.

[0056] The following is a detailed description of the software simulation method, system, device and medium of the TDMA ad hoc network provided in the embodiments of the present application in conjunction with the accompanying drawings and preferred embodiments.

[0057] Aiming at the problems of strong hardware dependence, high computing power requirements, limited flexibility, low channel simulation efficiency and high cost in TDMA self-organizing network simulation methods in related technologies. The present application proposes a decoupled hardware device, a simulation method for TDMA self-organizing communication network with networking and communication system simulation as the core purpose. On the basis of simulating the networking system, the present application integrates the time-division characteristics of the nodes in the network and the nodes temporarily added to the self-organizing network, so that all nodes in the network use the same time-division characteristic processing process, and uniformly manages the network node attributes and control interfaces. At the same time, in the channel connectivity simulation, the message pool and matrix method are used to maintain the connectivity between network nodes, reduce repeated operations in channel simulation, and reduce the computing power and hardware requirements for multi-network node simulation.

[0058] See also Figure 1 , the present application embodiment provides a software simulation method for a TDMA ad hoc network, such as Figure 1 As shown, the simulation method of the embodiment of the present application includes the following steps:

[0059] Step S1, creating a network node class in a software design environment. The network node class is used as a basic model of each node in the network and is used to define the properties and behaviors of the network node.

[0060] In the specific implementation, a network node class (Member) is created in the software design environment. The base class should contain the following basic elements: node network attributes, node network group waiting queue, node network group receiving queue. The base class should contain the following basic methods: network node attribute initialization and control method, channel receiving message processing method, channel sending message processing method. Specifically:

[0061] The above node network properties are initialized when the network node class is instantiated, and must include but are not limited to the following:

[0062] In-network identity number: a parameter that specifies the uniqueness of a network node.

[0063] Online status: The judgment result of the network online rules in the network plan.

[0064] Network responsibility: A parameter describing the network responsibilities in an ad hoc network.

[0065] Geographic parameters: Parameters that describe the geographical attributes of network nodes.

[0066] Frequency characteristics: Describes the characteristic parameters required for TDMA network solution testing.

[0067] Time-division characteristic attributes: Time-division characteristic attributes obtained by network node members during the process of participating in the self-organizing network.

[0068] The node network group waiting queue and the node network group receiving queue are storage queues for storing the message content and simulation frame header received / sent by the network node from the time-division network. The message content is the message content in the network solution, and the simulation frame header is the attribute required to support the simulation process, which must include but is not limited to:

[0069] Geographical parameters of the network node at the time of sending: used for simulation control of participating channels.

[0070] Frequency characteristics of network nodes at the time of transmission: used to participate in the simulation control of the channel.

[0071] Network node sending time: used for data recording and analysis.

[0072] The above-mentioned network node attribute initialization and control method includes an attribute initialization method and an attribute control method. The attribute initialization method is used to initialize the attributes of the node, and it is necessary to complete the creation of the basic elements in the class and to complete the initialization of the element content in the node network attributes; the attribute control method is used when the node receives a new message, and updates the specific attributes of the node according to the message content. It is a response to the channel receiving message processing method, that is, when the simulation scheme requires, the node network attributes are modified using the network identity number to realize the simulation scheme deduction process. At the same time, according to the requirements of the network scheme, the member attributes are modified in the message receiving stage.

[0073] The above-mentioned channel receiving message processing method and channel sending message processing method are the message processing methods for the network node to send / receive the channel, wherein the operation subject of the channel sending message processing method is the transmission time processing method in the time processing class MsgTime (see below), and the operation subject of the channel receiving message processing method is the channel sending method in the channel simulation class MsgPool (see below). The channel sending message processing method sends the message by calling the transmission time processing method in the MsgTime class. The channel receiving message processing method processes the received message by calling the channel sending method in the MsgPool class.

[0074] Step S2, creating a time processing class in the software design environment, the time processing class is used to complete the integration of time-division feature tables of multiple network nodes and unified time-division feature processing, and control the network node sending process.

[0075] In the specific implementation, a time processing class (MsgTime) is created in the software design environment. This class should have the following basic elements: time allocation table, network message processing queue. This class should have the following basic methods: time-division feature initialization and control method, unified time-division feature processing method, and time transmission processing method.

[0076] The above time allocation table records the time-division characteristics of all nodes in the network. It is a unified control table of the node's time characteristics in the simulation system. The thread singleton of the time processing class will use this table as a basis to control the sending process of each network node at each moment. The table takes a single moment as a unit, and each moment contains several network characteristics of the moment. The content of each characteristic must include but is not limited to:

[0077] Time sequence number: the sequential position in the total time.

[0078] Network serial number: The serial number of this network feature.

[0079] Transmission method: Specify the specific transmission method of the network moment.

[0080] Node number list: A list of node numbers participating in this network.

[0081] The above-mentioned network message processing queue has the function of caching the messages to be sent on the network at that moment and performing relevant processing at a later moment.

[0082] The above time-division feature initialization and control method needs to complete the initialization and subsequent control and modification of the time allocation table. After the network node completes the initialization of its own attributes, the network node's own time-division features are obtained, and the member time-division features are integrated with the master table. The integration method is as follows: obtain the time attributes at each moment, clarify the network sequence number, query the time transmission mode, if it is different from the master table, the initial time-division feature allocation is abnormal, an alarm is issued, and the moment is marked as an error time slot prohibited from use; if it is the same as the master table, the network node number is inserted into the master table network node number list.

[0083] The above unified time-division feature processing method is a simulation embodiment of the use of the time allocation table and the time-division feature in this simulation scheme. Figure 2 The unified time-division feature processing method is the MsgTime_run process running method, which specifically includes:

[0084] Step S101, using a loop query to check whether the current time has arrived;

[0085] Step S102: if the time has arrived, determine the node that needs to send the message at that time according to the time allocation table and generate an execution member list;

[0086] Step S103, according to the time allocation table, if it is a fixed transmission mode, perform transmission preprocessing, that is: based on the message to be sent, enter the channel message queue according to the network to which the message is to be sent, and sort it according to the message priority, waiting for the channel simulation process to process.

[0087] Step S104: if it is not a fixed transmission mode, extract the message from the channel message queue for transmission preprocessing. If there is no message in the channel message queue, the processing ends.

[0088] The above-mentioned time transmission processing method is independently designed according to the simulation scheme. Its call is controlled by the above-mentioned unified time-division feature processing method, that is, when the network time arrives, the transmission mode is determined, and the corresponding method is called accordingly, and finally the processing completion message enters the channel entry queue in the subsequent step 3, and the subsequent steps are executed.

[0089] Step S3, creating a channel simulation class in the software design environment, the channel simulation class is used to simulate the characteristics of the channel, including interference characteristics and the connection relationship between network nodes.

[0090] In the specific implementation, a channel simulation class (MsgPool) is created in the software design environment. This class should have the following basic elements: basic channel attributes, channel message queue, network node connection matrix. This class should have the following basic methods: channel attribute and connection matrix update method, channel message processing method, channel data recording method.

[0091] The above basic channel attributes contain the description of the interference characteristics contained in the channel in the simulation scheme, and are used for related model operations in the subsequent channel attribute and communication matrix update methods.

[0092] The above channel message queue is a message cache queue that can be received by other members after the network node member completes the corresponding transmission operation. Its header format is consistent with the message header format of the node network group waiting to send queue and the node network group receiving queue in the network node class Member.

[0093] The above network node connection matrix is ​​a description of the real-time connection relationship of network nodes. The horizontal and vertical axes of the matrix are network node identity numbers, and the values ​​are the connection probability values ​​of two network nodes under the previous normal message, in units of (%).

[0094] The above-mentioned channel attribute and connection matrix updating method includes two parts. The first part is to process the control channel attribute process, and update the interference condition of the channel according to the input, that is, to control the channel factors such as the interference condition of the channel using input control methods such as the interface; the second part is to update the connection relationship matrix between network nodes, and obtain the latest connection relationship value of the two network nodes according to the latest normal message in the channel transmission process, and then update the connection matrix.

[0095] The above channel message processing method is the main operation method of the singleton process MsgPool. Its work content is to perform channel reachability related processing on the messages finally generated by the MsgTime singleton process and entering the channel message queue. Figure 3 The channel message processing method is the processing method of the MsgPool_run process, which specifically includes:

[0096] Step S301, check the status of the channel message queue. If there is no message, wait for a set time before checking again; if there is a message, extract the message from the channel message queue and obtain the corresponding network node information to be received.

[0097] Step S302, determine the number of messages in the network queue at the current moment. If there is only one message in the network queue at the current moment, it is a normal sending process; if the number of messages is greater than 1, the collision frame message is processed according to the preset processing mechanism.

[0098] Step S303, determining whether the message to be sent is a normal message; if it is a normal message, calculating the connectivity of the network, and updating the network node connection matrix according to the channel attributes and the connection matrix update method.

[0099] Step S304, if the message to be sent is not a normal message, the network node connectivity matrix is ​​directly obtained according to the sending and receiving network nodes. If the connectivity is not connected, the message is discarded. If the connectivity is connected, it is determined whether to continue processing the message according to the conditions set in the networking solution. If the conditions are not met, the process ends.

[0100] Step S305, if the conditions are met, the message is received and processed. The abstract subject of the processing process is the receiving network node, which first obtains the network node and then executes the processing process. The processing process includes extracting the message content and forwarding the message to the external interface. The two processes are executed according to the simulation scheme settings. The process ends after completion.

[0101] The above channel data recording method records the message flow results in the MsgPool process. After the message is processed in the MsgPool process, the processing result and the message itself are recorded in a record file, and the statistical result is updated at the same time.

[0102] Step S4, creating a scenario class in the software design environment, the scenario class is used as a template for the simulation scenario, and is used to couple the network node class, the inter-processing class and the channel simulation class and perform instantiation simulation.

[0103] In the specific implementation, create a scene class (NetScene) in the software design environment. This class should have the following basic elements: scene basic attributes, and should also singletonize the time processing class MsgTime and the channel simulation class MsgPool, and create the process MsgTime_run in the singleton of the time processing class MsgTime, and the process MsgPool_run in the singleton of the channel simulation class MsgPool. This class should have the following basic methods: net node creation method.

[0104] The above basic scene attributes include but are not limited to:

[0105] Scene sequence number: The sequence number of the scene creation.

[0106] Scene node list: List of network nodes in the scene.

[0107] Scenario network attributes: Descriptive data of the scenario in the simulation plan.

[0108] Create a process msgtime_run in the singleton of the time processing class MsgTime, which runs the steps of the unified time-division feature processing method; create a process msgpool_run in the singleton of the channel simulation class MsgPool, which runs the steps of the channel message processing method; and complete the creation of the singletons in the above order.

[0109] The above network node control method is a method for completing the registration of network nodes in the scene, creating and deleting network nodes according to the operation trigger, that is, instantiating and de-instantiating the network member class Member respectively, and then performing corresponding operations on the network node list in the scene basic properties.

[0110] Based on the above technical solution, this application integrates the time-division characteristics of nodes within the network and nodes temporarily added to the self-organizing network on the basis of simulating the networking system, so that all nodes within the network use the same time-division characteristic processing process, and uniformly manage network node attributes and control interfaces. At the same time, in the channel connectivity simulation, the message pool and matrix method are used to maintain the connectivity between network nodes, reduce repeated calculations in the channel simulation, and greatly reduce the computing power and hardware requirements for multi-network node simulation.

[0111] Specifically, the present application first unifies the management of the attributes, protocol interfaces and time characteristics of each node, improves the efficiency of time characteristic calculation, and reduces the extra communication overhead in the non-simulation process. Secondly, on the basis of completing the integration of time characteristic information, the time-division process of each network node's independent calculation is removed, and a unified time-division calculation process is used, so that the nodes that do not participate in the networking communication at each moment are in a dormant state, thereby greatly reducing the computing power demand and realizing a single process to deploy a large number of network nodes. Therefore, compared with the existing distributed simulation room, the present application has a significant improvement in cost, deployment simplicity, and simulation scale. It has the advantages of simple deployment, low hardware cost, flexible adjustment of simulation schemes, and realization of large-scale node simulation, and solves the high cost of simulation equipment, difficult deployment of simulation environment, and difficult verification of networking schemes of multiple networking nodes encountered in the development of TDMA self-organizing network system engineering. It is a high-quality solution for network simulation needs in laboratories, teaching scenarios, and engineering verification scenarios.

[0112] See also Figure 4 , corresponding to the above-mentioned TDMA ad hoc network software simulation method embodiment, the present application embodiment provides a TDMA ad hoc network software simulation system, the simulation system comprising:

[0113] A network node class module 1001 is used to create a network node class in a software design environment. The network node class is used as a basic model of each node in the network and is used to define the properties and behaviors of the network node.

[0114] The time processing class module 1002 is used to create a time processing class in the software design environment, and the time processing class is used to complete the integration of time-division feature tables of multiple network nodes and the unified time-division feature processing, and control the network node sending process;

[0115] A channel simulation class module 1003, used to create a channel simulation class in the software design environment, wherein the channel simulation class is used to simulate channel characteristics, including interference characteristics and connectivity between network nodes;

[0116] The scenario class module 1004 is used to create a scenario class in the software design environment. The scenario class serves as a template for a simulation scenario and is used to couple the network node class, the inter-processing class and the channel simulation class and perform instantiation simulation.

[0117] The above-mentioned recommendation device based on hypergraph and multi-behavior contrast learning implements the steps and various processes of the above-mentioned TDMA self-organizing network software simulation method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0118] See also Figure 5 , corresponding to the above-mentioned TDMA self-organizing network software simulation method embodiment, the embodiment of the present application provides an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the above-mentioned TDMA self-organizing network software simulation method embodiment and the various processes of the embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0119] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0120] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.

[0121] Corresponding to the above-mentioned TDMA self-organizing network software simulation method embodiment, the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by the processor, the steps of the above-mentioned TDMA self-organizing network software simulation method embodiment and the various processes of the embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0122] The processor is the processor in the electronic device described in the above embodiment of the present application. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0123] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0124] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0125] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A software simulation method for a TDMA ad hoc network, characterized in that: include: Creating a network node class in a software design environment, wherein the network node class is used as a basic model of each node in the network and is used to define properties and behaviors of the network node; Creating a time processing class in the software design environment, the time processing class is used to complete the integration of time-division feature tables of multiple network nodes and unified time-division feature processing, and control the network node sending process; Creating a channel simulation class in the software design environment, wherein the channel simulation class is used to simulate characteristics of a channel, including interference characteristics and a connection relationship between network nodes; A scenario class is created in the software design environment. The scenario class serves as a template for a simulation scenario and is used to couple the network node class, the inter-processing class and the channel simulation class and perform instantiation simulation.

2. The software simulation method for a TDMA ad hoc network according to claim 1, characterized in that: The network node class includes: node network attributes, node network group waiting to send queue, node network group receiving queue, network node attribute initialization and control method, channel receiving message processing method, channel sending message processing method; The time processing class includes: time allocation table, network message processing queue, time division feature initialization and control method, unified time division feature processing method, time transmission processing method; The channel message sending processing method sends a message by calling the transmission time processing method; the channel message receiving processing method processes the received message by calling the channel sending method; The channel simulation class includes: basic channel attributes, channel message queue, network node connection matrix, channel attribute and connection matrix update method, channel message processing method, and channel data recording method.

3. The software simulation method for a TDMA ad hoc network according to claim 2, characterized in that: Node network attributes include time-division characteristic attributes; The time allocation table is used to record the time-division characteristics of all nodes in the network, with a single time as a unit. Each time contains several network characteristics of the time, and each characteristic content includes: time sequence number, network sequence number, transmission mode and node number list; The time-division feature initialization and control method obtains the time-division feature of the network node itself after the network node completes the initialization of its own attributes, and integrates the member time-division feature with the total table, including: At each moment, the time attribute is obtained, the network sequence number is clarified, and the transmission mode at the moment is queried. If it is different from the master table, the initial time-division feature allocation is abnormal, an alarm is issued, and the moment is marked as an error time slot and prohibited from use; if it is the same as the master table, the corresponding network node number is inserted into the master table network node number list.

4. The software simulation method for a TDMA ad hoc network according to claim 2, characterized in that: The unified time-division feature processing method comprises: Use loop query to check whether the current time has arrived; If the time arrives, determine the node that needs to send the message at the time according to the time allocation table and generate an execution member list; According to the time allocation table, if it is a fixed transmission mode, the transmission preprocessing is performed, that is, based on the generated message to be sent, according to the network to which the message is to be sent, the message enters the channel message queue, and is sorted according to the message priority, waiting for the channel simulation process to process; If it is not the fixed transmission mode, the message is extracted from the channel message queue for transmission preprocessing, and if there is no message in the channel message queue, the processing is terminated.

5. The software simulation method for TDMA ad hoc network according to claim 2, characterized in that: The basic channel attributes contain a description of interference characteristics, which are used for performing relevant model operations in the channel attributes and the communication matrix update method; The node network group waiting queue, the node network group receiving queue, and the channel message queue are queues for storing message content and simulation frame headers. The simulation frame header includes attributes required to support the simulation process, including: geographical parameters of the network node sending time, frequency characteristics of the network node sending time, and the network node sending time; The network node connection matrix is ​​a description of the real-time connection relationship of network nodes. The horizontal and vertical axes of the matrix are network node identity numbers, and the values ​​are the connection probability values ​​of two network nodes under the last normal message. The channel attribute and connection matrix updating method comprises: Update the interference situation of the channel according to the input; Update the connectivity matrix between network nodes.

6. The software simulation method for TDMA ad hoc network according to claim 2, characterized in that: The channel message processing method comprises: Check the status of the channel message queue, if there is no message, wait for a set time before checking again; if there is a message, extract the message from the channel message queue and obtain the corresponding network node information to be received; Determine the number of messages in the network queue at the current moment. If there is only one message in the network queue at this moment, it is a normal sending process; if the number of messages is greater than 1, the collision frame message is processed according to the pre-set processing mechanism; Determine whether the message to be sent is a normal message; if it is a normal message, calculate the connectivity of the network, and update the network node connection matrix according to the channel attribute and the connection matrix update method; If the message to be sent is not a normal message, the network node connectivity matrix is ​​directly obtained according to the sending and receiving network nodes. If the connectivity is not connected, the message is discarded. If the connectivity is connected, it is determined whether to continue processing the message according to the conditions set in the networking solution. If the conditions are not met, the process ends. If the conditions are met, the message is received and processed; the processing process includes extracting the message content, forwarding the message to an external interface, and ending after the processing is completed.

7. The software simulation method for TDMA ad hoc network according to claim 2, characterized in that: The scenario class singletonizes the time processing class and the channel simulation class; and performs the unified time-division feature processing method in the singleton of the time processing class; and performs the channel message processing method in the singleton of the channel simulation class.

8. A software simulation system for TDMA ad hoc networks, characterized in that: include: A network node class module, used to create a network node class in a software design environment, wherein the network node class is used as a basic model of each node in the network and is used to define the properties and behaviors of the network node; A time processing class module, used to create a time processing class in the software design environment, wherein the time processing class is used to complete the integration of time-division feature tables of multiple network nodes and the unified time-division feature processing, and control the network node sending process; A channel simulation class module, used to create a channel simulation class in the software design environment, wherein the channel simulation class is used to simulate channel characteristics, including interference characteristics and connectivity between network nodes; The scenario class module is used to create a scenario class in the software design environment. The scenario class serves as a template for the simulation scenario and is used to couple the network node class, the inter-processing class and the channel simulation class and perform instantiation simulation.

9. An electronic device, characterized in that: The electronic device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the software simulation method for a TDMA ad hoc network as claimed in any one of claims 1 to 7.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the software simulation method of the TDMA ad hoc network as claimed in any one of claims 1 to 7 are implemented.