The content of the invention
It is an object of the present invention to be directed to the problems referred to above, propose that a kind of agriculture Internet of Things cloud communication system performance emulation is flat
Platform, to realize that network cost is low, system load is little and dispose the little advantage of difficulty.
For achieving the above object, the technical solution used in the present invention is:A kind of agriculture Internet of Things cloud communication system performance is imitated
True platform, including channel management module, and base station system, host node and the sensing being connected with the channel management module respectively
Device node, wherein:
The base station system, for the server system for representing GPRS base stations and WLAN base stations and connect by public network,
Effective packet is passed to into channel management module;
The host node, for monitoring MS master-slave network and access network IEEE 802.11 and GPRS;Host node is received
From node data and compress, be integrated into and authority data bag and then base station system passed to by GPRS or WLAN;
The sensor node, for as data source, the generation data in cycle, data by the form formulated, Jing master-
Send from sensor network, then received by host node;
The channel management module, for unifying management and control base station system, host node and sensor node.In OMNeT++,
ChannelControl (channel management) module is the core of mobile network's structure, and it is according to the distance between node and node
Physical characteristics, it is dynamic among the nodes to set up or break connection.Comprising positional information and mobile message, and which node needs
The information such as transmission and communication.ChannelControl (channel management) module uses a fixed value or according to SNR thresholding meters
This value is calculated, network is subdivided into into several quadrants with the length of interference range then.Due to each single node listing only
Respective quadrant is stored in, ChannelControl (channel management) modules are according to the company between corresponding list update node
Connect, without traveling through all of node.
Further, the base station system, including the service system application layer for being sequentially connected to the channel management module
With wlan network module.
Further, the base station system, including the service system application layer for being sequentially connected to the channel management module
With GPRS network module.
Further, the base station system, also including the mobility manager being connected with service system application layer respectively and
Event prompt device.
Further, the host node, including host node application layer, and be connected with the channel management module respectively
GPRS mobile stations, 802.11 access point of WLAN mobile stations and IEEE;802.11 access point of the GPRS mobile stations and IEEE, point
It is not connected with host node application layer.Mobile device module, i.e. host node, realize that the data between sensor and server network turn
Send out.Internal protocol structure is as shown in Figure 3.Protocol module includes the application layer of the superiors, realize the integration to sensing data with
Forwarding.Then transmission network includes GPRS, WLAN two parts.Wlan network, including conversion layer and access point network interface card and upper one section
Middle Sensor section is similar to;Difference is the host node when sensor node transmits data to host node by wlan network
In WLAN access point modes, when host node transmits data to server by wlan network, host node is moved in WLAN
Platform pattern.GPRS networks, represent data by mobile communications network, the process transmitted in the form of GPRS flows.Host node
The role of mobile station is in the gprs networks.
Further, the host node, also including being connected to the GPRS mobile stations, WLAN mobile stations and IEEE
Message sorter between 802.11 access points and channel management module;And/or,
The host node, also including the conversion being connected between 802.11 access point of the host node application layer and IEEE
Module;And/or,
The host node, also including the mobility manager and event prompt being connected with the host node application layer respectively
Device.
Further, the sensor node, including sensor node application layer, is connected with the channel management module
802.11 access points of IEEE, and the conversion being connected between 802.11 access point of the sensor node application layer and IEEE
Module.Sensor node application layer is to produce data.Using 802.11 protocol conversion layers of-IEEE.It is the net by formulating
Network agreement sends data, needs to change data form, to adapt to the requirement of transmission network.Need to adapt to WLAN networks
Will, IP address and port numbers are specified to data.Transmission network network interface card.Using the 802.11 network infrastructure moulds of IEEE of standard
Formula is used as bearer network.Host node is WLAN accessing points.Data are transmitted along protocol stack.
Further, the sensor node, also including the mobility being connected with the sensor node application layer respectively
Manager and event prompt device.
Further, 802.11 access points of the IEEE, including IEEE, 802.11 network interface card.
The agriculture Internet of Things cloud communication system performance emulation platform of various embodiments of the present invention, due to mainly including channel management
Module, and base station system, host node and the sensor node being connected with channel management module respectively;Can be by soft in emulation
Network protocol processes are rebuild in part, checking and the performance estimation to objective network is realized;Such that it is able to overcome net in prior art
Network high cost, the defect that system load is big and deployment difficulty is big, to realize that network cost is low, system load is little and deployment difficulty is little
Advantage.
Other features and advantages of the present invention will be illustrated in the following description, also, partly be become from description
Obtain it is clear that or being understood by implementing the present invention.
Below by drawings and Examples, technical scheme is described in further detail.
Specific embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described herein
Apply example and be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Lack the deficiency of the measurement in index to solve existing scheme and practice, the present invention is using OMNeT++ to agricultural
The totality and various pieces of Internet of Things is emulated.The emulation, can be repeated several times execution with the procotol of simulating reality.It is logical
Cross emulation, obtain performance parameter of the procotol under different configuration conditions, such as message delay, packet loss, the bit error rate,
The information such as channel utilization.Can be with modifying agreements process or optimization network configuration according to these data.
According to embodiments of the present invention, as Figure 1-Figure 4, there is provided a kind of agriculture Internet of Things cloud communication system performance emulation
Platform, by network protocol processes are rebuild in simulation software, realizes checking and performance estimation to objective network;It is verified
Data are reached to be weighed;Performance estimation is by the data of objective network are average, maximum end-to-end delay and network channel utilization rate weighing apparatus
Amount.
The agriculture Internet of Things cloud communication system performance emulation platform of the present embodiment, including channel management module, and respectively
Base station system, host node and the sensor node being connected with channel management module, wherein:Base station system, for representing GPRS bases
Stand and WLAN base stations and the server system connected by public network, effective packet is passed to into channel management module;It is main
Node, for monitoring MS master-slave network and access network IEEE 802.11 and GPRS;Host node is received from node data and is pressed
Contract, be integrated into authority data bag and then base station system is passed to by GPRS or WLAN;Sensor node, for as data
Source, the generation data in cycle, form of the data by formulation, Jing MS master-slave sensor network send, and are then received by host node;
Channel management module, for unifying management and control base station system, host node and sensor node.
Wherein, above-mentioned base station system, including the service system application layer and WLAN nets that are sequentially connected to channel management module
Network module.And/or, base station system, including the service system application layer and GPRS network mould that are sequentially connected to channel management module
Block.
In the above-described embodiments, base station system, also including the mobility manager being connected with service system application layer respectively
With event prompt device.
Above-mentioned host node, including host node application layer, and be connected with channel management module respectively GPRS mobile stations,
802.11 access point of WLAN mobile stations and IEEE;802.11 access point of GPRS mobile stations and IEEE, respectively with host node application
Layer connection.Host node, also including being connected to GPRS mobile stations, WLAN mobile stations and 802.11 access points of IEEE and channel
Message sorter between management module;And/or, host node is also connect with IEEE 802.11 including being connected to host node application layer
Modular converter between access point;And/or, host node, also including the mobility manager being connected with host node application layer respectively and
Event prompt device.
The sensor node, including sensor node application layer, the IEEE 802.11 being connected with channel management module are connect
Access point, and the modular converter being connected between 802.11 access point of sensor node application layer and IEEE.Sensor node,
Also include mobility manager and the event prompt device being connected with sensor node application layer respectively.
In the above-described embodiments, 802.11 access points of IEEE, including IEEE, 802.11 network interface card.
The agriculture Internet of Things cloud communication system performance emulation platform of above-described embodiment, is included in simulation software and rebuilds sensing
The submodules such as device node, host node and base station system, construct fusion Sensor Network GPRS/WLAN remotely cover, heterogeneous network hang down
Vertical cut is changed and configures the application scenarios of multiple Sensor Networks;By changing parameter configuration and different application scene simulation, one is obtained
Performance parameter of the individual procotol under different configuration conditions, so as to modifying agreements process or optimization network configuration.The agriculture thing
Networking cloud communication system performance emulation platform, in terms of mainly including following three:
(1) merge Sensor Network GPRS/WLAN remotely to cover
This function shows as network simulation and is made up of two kinds of procotols of GPRS and WLAN, and data are first in transmitting procedure
After experienced both networks.Sensor network and GPRS/WLAN network skills are tested by the detailed process for realizing data exchange
The feasibility of art.
(2) heterogeneous network Vertical Handover
This function is shown as two kinds of procotols of GPRS and WLAN and is combined by LAN-wide area net mode.Data exist
The vertical handover procedure between two kinds of networks is realized during host node is forwarded.This mistake has been rebuild in analogue system
Journey.
(3) Sensor Network application scenarios
This function shows as application scenarios various for sensor network, including greenhouse-environment, land for growing field crops environment, cold chain fortune
Defeated process, production and processing.In emulation platform, sensor node is randomly dispersed in the place of specified size;Node has one
Fixed translational speed.By the configuration combination for changing emulation, the rings such as booth, land for growing field crops and cold chain transportation, production and processing can be simulated
Border.
The agriculture Internet of Things cloud communication system performance emulation platform of above-described embodiment, solves the skill adopted by its technical problem
Art scheme is:
In order to the performance of design system is tested by network simulation, layering Internet of Things framework is realized in OMNeT++ softwares.
OMNeT++ interfaces are as illustrated, the abstract module structure at the interface is Fig. 1.This network is made up of three parts:
(1) several sensor nodes.Sensor node is used as data source, the generation data in cycle.Data are by formulation
Form, Jing MS master-slave sensor network send, and are then received by host node.
The OMNeT++ internal modules system of sensor node as shown in Fig. 2 the left side is software interface sectional drawing in figure, the right
It is to illustrate icon.Node includes several agreements and software system module.Protocol module constitutes protocol stack from top to bottom:1. apply
Layer(app).To produce data.2. 802.11 protocol conversion layers of-IEEE are applied(ethnetwlayer).It is by formulating
Procotol sends data, needs to change data form, to adapt to the requirement of transmission network.It is adaptation WLAN in figure
Network needs, and specifies IP address and port numbers to data.3. transmission network network interface card(stationwifinic).Mark used in Fig. 2
Accurate 802.11 network infrastructure patterns of IEEE are used as bearer network.Host node is WLAN accessing points.Data are along agreement
Stack is transmitted;The air frame of wireless link is forwarded by global control module cc.Control depends on mobility module
mobility.The module can arrange node coordinate, translational speed, direction, accelerate and run into the reversion side behind the edge of place
To.
(2) several host nodes.Host node is while listening for MS master-slave network and access network.Here it is IEEE respectively
802.11 and GPRS.Host node is received from node data and is compressed, is integrated into authority data bag and then passed by GPRS or WLAN
Pass base station system.
Mobile device module, i.e. host node, realize the data forwarding between sensor and server network.Internal agreement is tied
Structure is as shown in Figure 3.Protocol module includes application layer app of the superiors, realizes the integration to sensing data with forwarding.Then pass
Defeated network includes GPRS and WLAN two parts.Message sorter multiRadio is responsible for connecing two sets of network mappings to one in the air
In mouthful.Wlan network, including conversion layer ethnetwlayer and access point network interface card wifiapnic and Sensor section in upper one section
It is similar;Difference is that host node is in WLAN access point modes.GPRS network, represents data by mobile radio communication
Network, the process transmitted in the form of GPRS flows.Host node role in the gprs networks in mobile station.Corresponding agreement mould
Block is in mobile3gnic.
(3) base station system.The server system for representing GPRS and WLAN base stations and being connected by wide area network.Here it is
For the sake of simplification, the public wide area network being located using server, an and application layer reality being reduced on GPRS agreements are eliminated
Body.
Base station network module, as shown in figure 4, the server for representing GPRS base stations and WLAN base stations and being connected by public network
System.Technical solution of the present invention simplifies the less common network protocol of the degree of association, directly makes base station network by effective data
Bag passes to the data analysis module app equivalent to server process program.Other modules in subsystem in addition to application layer
Have been described before, be not repeated.
In the diagram, mobile management module(mobility), for updating the position coordinateses of device node.Due to only
Physical equipment just needs to update coordinate, therefore each equipment has a mobility module;The module can be used as autonomous device
Mark.Need not be connected with inside modules submodule.
Event prompt device(Noti cationBoard)Module, for the related module of the activation when network occurs event.
Due to the restriction of OMNeT++ simulation frames, main time-triggered protocol function handleMessage () function is only receiving message
When trigger.Other kinds of event, such as signal conflict, channel status switch to busy or free time etc., need a kind of mechanism to touch
Send out response process.This trigger mechanism is by event prompt device(Noti cationBoard)Module is realized, equivalent to design pattern
In event sniffer.Prompting apparatuss module is included in INeT storehouses.Module represents all of information with an enumeration type
Type.All of equipment has the prompting apparatuss module of oneself;All prompting apparatuss share subscription list.When a known event occurs
When, prompting apparatuss can be triggered.According to shared module list, the receiver function of all of event subscription person can be called.The mould
Block receiver module external event, it is not necessary to be connected with inside modules submodule.
In the system protocol stack system shown in Fig. 1, data from the beginning of the application layer protocol of sensor node, through forwarding
Reach the application layer entity of base station system.Radio communication therein is realized by channel management module forwarding.Shown in the figure
In emulation module, internet of things application layer is voluntarily write.IEEE 802.11 is using the standard downloaded in OMNeT++ official websites
Existing code in the INET of module library.GPRS does not have ready-made version, and a more easy emulator version has been write in the system,
It is embodied as the function that host node provides channel access and management radio resource allocation.
What technical solution of the present invention can reach has the technical effect that:It is imitative by changing parameter configuration and different application scene
Very, performance parameter of the procotol under different configuration conditions, such as message delay, packet loss, the bit error rate, channel are obtained
The information such as utilization rate.Can be with modifying agreements process or optimization network configuration according to these data.
For example, simulated program can be run on a computer, using 10.10 operating systems of Ubuntu, OMNeT++
4.1 simulated program.OMNeT++ 4.1 has carried Eclipse IDE, needs JAVA JDK 7u1 32.Make inside emulation platform
With 20110225 version of INET module librarys.
JAVA JDK, OMNeT++ softwares are installed successively.
The Eclipse development environments that OMNeT++ is carried are opened, working directory is then selected, is imported INET and AgriSafe
Project.
Compiling all items.Select the Profile Up under AgriSafe/simulation catalogues.
After setting above-mentioned general configuration parameter, change respectively number of nodes, place size and node application layer transmission frequency,
After data packet length and channel quantity, observation end-to-end delay, the situation of change of channel utilization.
The Cmdenv interfaces of OMNeT++ can be used, is run by Script controlling batch.Using command mode, call
The opp_runall instruments that program is carried, batch operation emulation, using No. run and configuration file specifying:
system "opp_runall -j2 ./AgriSafe -l ../inet/src/inet -u Cmdenv -f
../simulation/ scenarios /${simRun}.ini -r 15..17 -c $config"。
In sum, the agriculture Internet of Things cloud communication system performance emulation platform of the various embodiments described above of the present invention, it is main to wrap
Include and the submodules such as sensor node, host node and base station system are rebuild in simulation software, construct fusion Sensor Network GPRS/
WLAN is remotely covered, heterogeneous network Vertical Handover and configure the application scenarios of multiple Sensor Networks.By change parameter configuration and
Different application scene simulation, obtains performance parameter of the procotol under different configuration conditions, so as to modifying agreements process
Or optimization network configuration.The agriculture Internet of Things cloud communication system performance emulation platform, it is possible to resolve existing scheme and practice lack finger
The deficiency of the measurement put on, can investigate the advantage of the performance of each part in terms of system.
Finally it should be noted that:The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to,
Although being described in detail to the present invention with reference to the foregoing embodiments, for a person skilled in the art, which still may be used
To modify to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic.
All any modification, equivalent substitution and improvements within the spirit and principles in the present invention, made etc., should be included in the present invention's
Within protection domain.