Time driving and event driven combination drive are based in Simulation on Wireless Communication System
Method
Technical field
The invention belongs to communication technique field, the driving method being related in a kind of system integration project is specially wirelessly communicated
Time driving and event driven hybrid driving method are based in system emulation.
Background technique
The emulation mode of wireless communication system is broadly divided into two kinds: link level simulation and system integration project.System integration project
There are two types of the methods of mainstream altogether: STATIC SIMULATION and dynamic simulation.
STATIC SIMULATION, also referred to as snapshot.A certain number of snapshots are carried out by the scene to mobile radio system to grab
It claps, an ideal system equalization point is established to the snapshot captured each time, by the performance for statisticalling analyze whole system.It is united
The number that average precision depends primarily on candid photograph is counted, number is very little, and confidence level will reduce if captured, however if captures
Number is too many, can greatly increase the complexity of emulation.
Dynamic system simulation method then considers the real-time change of the motor behavior of multi-user and network service under multiple cells
Change, needs constantly to collect the measured value of user side or network side, the Service Quality Metrics of various businesses are counted with this, it can
To provide complete capacity and covering analyzing, but operand is larger, and emulation cycle is longer, it is therefore necessary to carry out simplification and examine
Consider, under normal circumstances, the modeling method of dynamical system can be divided into two classes: time driving type and event driven.
The dynamic simulation of time driving type carrys out more new data as unit of time step, each time step is as one
Reference point, system it is each emulation reference point update user motion state, calculate user reception power, assessment cell to
The service quality at family adjusts power level and update customer service etc. according to QoS demand.
Event driven dynamic simulation is using a network snapshots as reference, the event to be driven such as in certain period of time
Generation, it reflects quality of service by the mobility and business procedure of analog subscriber.It is emulated compared to time driving type, thing
The time sampling frequency of the driving emulation of part wants lower, relatively low to the simulation accuracy of business procedure.
Existing overwhelming majority wireless communication system grade emulation platform is all using single time driven manner or event
The system integration project of driving method, similar LTE-A cellular topology has apparent temporal characteristics, is suitble to the side using time driving
Formula, and similar WALN system emulation is then not suitable for time driving, regular time sample frequency can not embody the spy of WALN
Point, at this time event-driven just compares and is suitble to him.Time driving and event-driven are then used in mixed way by the present invention, in heterogeneous network
The characteristics of different type network is sufficiently adapted in system integration project is promoted while reducing time sampling frequency to business procedure
Simulation accuracy.
As shown in Figure 1, time driving method is to divide different operations according to constant duration, whenever operating pointer arrives
A defined time point is reached, driving engine accordingly starts to execute operation, in this case can be with the increase of sample frequency
And increase the accuracy of emulation;Event-driven method is quite different, and the condition of each event triggering is different, whenever the touching of event
Clockwork spring part, which is triggered, drives engine that can then start to execute the event, as long as so we will emulation split into different events, and
To every kind of event defined attribute, executed according to the timestamp of event, in this case there is no need to pass through as time driving
Sample frequency is adjusted to control simulation process, greatly reduces the complexity of emulation.
Summary of the invention
Aiming at the problems existing in the prior art, the present invention, which provides, is based on time driving and thing in Simulation on Wireless Communication System
The hybrid driving method of part driving, sample frequency is low, and simulation nicety and simulation efficiency are high.
The present invention is to be achieved through the following technical solutions:
It is based on time driving and event driven hybrid driving method in Simulation on Wireless Communication System, includes the following steps,
Step 1, in Simulation on Wireless Communication System duration, a regular time step-length is set as time frame;It will be whole
A Simulation on Wireless Communication System duration is divided into several time frames, emulates using the finish time of each time frame as one
Reference point successively updates User Status in each emulation reference point;
Step 2, list of thing in corresponding time frame and each is obtained according to the primary event set in each time frame
The corresponding timestamp of event;The list of thing each event being arranged into according to the timestamp attribute of itself in corresponding time frame
In;
Step 3, the driving engine started in Simulation on Wireless Communication System is successively executed according to the sequencing of time frame
The event in list of thing in each time frame, the post-simulation knot until all events in the last one time frame are finished
Beam.
Preferably, several LTE-A Cellular Networks in Simulation on Wireless Communication System can be traversed in step 1, in time step
Whole non-repetitive driving events in WALN network in the time slot TTI and Simulation on Wireless Communication System of network.
Preferably, in step 1, the User Status includes motion state, channel status, customer service, the reality of user
When service quality and corresponding power level to user of user information, cell.
Preferably, in step 2, the event column in corresponding time frame is obtained according to the primary event set in each time frame
When table, specifically comprise the following steps,
Step 2.1, the primary event set in time frame and End Event are aligned in list of thing;
Step 2.2, the new events other events in addition to End Event generated are arranged according to the timestamp of new events
Into list of thing, the list of thing in corresponding time frame is obtained.
Further, the event that the same time executes in list of thing is arranged according to the sequence of first in first out.
Compared with prior art, the invention has the following beneficial technical effects:
The present invention first determines one and biggish adopts by the way that time driving and event-driven are combined realization combination drive
Sample interval, that is, etc. time spans time frame, it is ensured that each time frame has similar feature and can be by different event groups
At formation is combined with time driving feature and list of thing event-driven feature and as unit of time frame, in this way can be same
Shi Tixian time driving and event driven advantage, not only reduce sample frequency, also improve the accuracy and emulation of emulation
Efficiency.
Further, combination drive particularly suitable heterogeneous network being made of heterogeneous networks in system integration project, can
Different network systems perfect combination is got up, the requirement of performance simulation is reached.
Detailed description of the invention
Fig. 1 is combination drive described in present example and time driving in the prior art and event driven original substantially
Manage comparison diagram.
Fig. 2 is that event driven list of thing described in present example forms block diagram.
Fig. 3 is the flow chart of hybrid driving method described in present example.
Fig. 4 is event action flow chart in a time frame described in present example.
Specific embodiment
Below with reference to specific embodiment, the present invention is described in further detail, it is described be explanation of the invention and
It is not to limit.
Lower event driver is introduced first, and event driver is completed entirely to emulate stream by way of constantly handling event
Journey, Fig. 2 are the formation block diagrams of list of thing in event driver.The main comprising modules packet of event driver (Simulator)
It includes the definition of event (Event), generate (MakeEvent), insertion (Insert), scheduling (Schedule) and processing
(Process).The main division of labor of each module is as follows: Event is mainly responsible for the basic definition of event, and MakeEvent uses a large amount of
Template meta-programming, realize event and operation binding, and return event for be inserted into function call;Calendar is as event
Collector is responsible for event ordering and storage;Event scheduler is given processor and is executed after taking out the event in list of thing;Place
It manages device to operate the specific response of event, often to arrive implementation phase and just determine completely.In this way by completing system emulation process
The definition of middle different event generates, and is inserted into queue, dispatches and executes different response operations, the combination of final multiple events is complete
At the system emulation process being achieved that under event-driven.
The present invention is made below in conjunction with attached drawing and the lte-a system grade emulation platform embodiment of our exploitations further detailed
Thin description, as shown in Figure 3, comprising the following steps:
1) network topology configures, and configuration includes two steps: selection scene, generation user distribution and corresponding scene information are gone forward side by side
Row systematic parameter configuration sets simulation parameter;
2) time frame of entire Simulation on Wireless Communication System is divided;
3) list of thing and each event in corresponding time frame are obtained according to the primary event set in each time frame
Corresponding timestamp;Each event is arranged into the list of thing in corresponding time frame according to the timestamp attribute of itself;
4) start the driving engine in Simulation on Wireless Communication System, according to the sequencing of time frame, successively execute each
The event in list of thing in time frame, until all events in the last one time frame are finished, post-simulation terminates.
Further, each time frame uses event driver in step 3, and core is the event scheduling in event driver
Device safeguards a chained list in scheduler, and the inside maintains the time that the event for being hopeful to complete and the event will occur, and
And in chronological sequence sequence arranges.The event that the same time executes is arranged according to the sequence of first in first out (FIFO).
For lte-a system, as shown in figure 4, by the simulation flow of entire lte-a system by 3 defined large-scale events
Combination execute to complete, this 3 events are respectively as follows: user's update event, and time frame action event, data statistics event, this 3
A event can be sequentially completed respectively operation in list of thing until in scheduler list of thing according to the timestamp of each event
Until event.
Location updating event includes the update of customer position information, corresponding base station information, channel information, it is every a timing
Between interval update user location, so that it is determined that:
(1) user's mobility model updates (direction, rate);
(2) state of activation controls;
(3) base station matching updates (being related to base station handover operation);
(4) channel information (large and small scale decline, shadow fading) is determined.
Time frame action event, it mainly completes the operation during a time frame, is divided into base station end circulation and user terminal
Recycle two parts.Base station end circulation carries out pretreatment operation before end of link transmits first, it mainly carries out transmitting terminal
Then HARQ processing carries out pretreatment operation before base station end is transmitted, it includes resource allocation, user's scheduling, AMC and power point
Match, finally carry out the processing of link protocol stack transmitting terminal, it generates transmission block and HARQ is handled to transmitting terminal.User terminal recycles first
It calculates and counting user performance in this time transmission, the information of reading transmission block and channel calculates Signal to Interference plus Noise Ratio and simultaneously completes link
Mapping finally carries out the processing of link protocol stack receiving end, restores transmission data.