
技术领域technical field
本发明涉及无线传感网仿真技术领域,特别是涉及一种基于Web的无线传感网远程仿真系统。The invention relates to the technical field of wireless sensor network simulation, in particular to a web-based remote simulation system for wireless sensor networks.
背景技术Background technique
目前,无线传感网仿真平台种类较多功能各异,每个仿真平台的侧重点不同所采用的设计方法也不一样,例如面向对象设计和面向组件设计等,会影响仿真平台的执行效率、速度、扩展性、重用行和易用性等。At present, there are many types of wireless sensor network simulation platforms with different functions, and the design methods adopted by each simulation platform are different, such as object-oriented design and component-oriented design, etc., which will affect the execution efficiency of the simulation platform. Speed, scalability, row reuse, ease of use, etc.
每个仿真器都是某些性能方面比较突出,而在其他方面又相对比较薄弱。主流的仿真软件:NS-2对数据包级进行非常详细的仿真,接近于运行时的数据包数量,使得其无法进行大规模网络的仿真;OPNET建模工具是商业化的通信网络仿真平台,核心代码保密扩展性差但其更关注与网络的Qos性能评价;OMNeT++功能比较强大移植性好有大量的通信协议库但是只支持103规模的仿真;Shawn支持一般的高层算法及分布式协议,仿真规模可达105以上,但其缺乏底层的协议库支持可用性差。Every emulator is strong in some areas and relatively weak in others. Mainstream simulation software: NS-2 performs very detailed simulation on the data packet level, which is close to the number of data packets at runtime, making it impossible to simulate large-scale networks; OPNET modeling tool is a commercial communication network simulation platform, The core code has poor confidentiality and scalability, but it pays more attention to the QoS performance evaluation of the network; OMNeT++ has relatively powerful functions and good portability, and has a large number of communication protocol libraries, but only supports 103 scale simulation; Shawn supports general high-level algorithms and distributed protocols, simulation The scale can reach more than 105 , but it lacks the support of the underlying protocol library and has poor usability.
虽然已经出现了基于Web的仿真平台但提交的仿真实例还是通过人为的进行解析然后本地仿真,实时性差。Although a Web-based simulation platform has appeared, the submitted simulation examples are still analyzed manually and then simulated locally, and the real-time performance is poor.
无线传感网作为当下的研究热门多停留在理论上,仿真方法和仿真结果不具有通用性,权威性,阻碍了无线传感网标准化、工业化进程,所以需要一个综合性的仿真系统让研究人员专注研究问题本身而非工具。As a current research hotspot, wireless sensor networks mostly stay in theory. The simulation methods and simulation results are not universal and authoritative, which hinders the standardization and industrialization of wireless sensor networks. Therefore, a comprehensive simulation system is needed for researchers. Focus on the research problem itself rather than the tool.
发明内容Contents of the invention
本发明目的是为了解决现有无线传感网的仿真软件种类多侧重点各异存在兼容性、扩展性、重用性、难以部署的问题,提供一种基于Web的无线传感网远程仿真系统。The purpose of the present invention is to provide a web-based remote simulation system for wireless sensor networks in order to solve the problems of compatibility, scalability, reusability, and difficulty in deployment of existing wireless sensor network simulation software with multiple types and different emphases.
本发明解决其技术问题所采用的技术方案是:提供一种基于Web的无线传感网远程仿真系统,包括Web服务器、数据库服务器和仿真服务器,所述Web服务器以网页的形式向用户提供仿真任务、仿真系统参数和数据库查询入口,其中仿真任务的选择与仿真系统参数的配置用于生成具有指定格式的仿真实例文件;所述仿真服务器用于根据仿真实例文件执行仿真,并将执行结果提交到数据库服务器;所述数据库服务器用于保存所述仿真服务器的执行结果。The technical solution adopted by the present invention to solve its technical problems is: provide a remote simulation system for wireless sensor networks based on Web, including a Web server, a database server and a simulation server, and the Web server provides simulation tasks to users in the form of web pages , simulation system parameters and database query entry, wherein the selection of simulation tasks and the configuration of simulation system parameters are used to generate a simulation instance file with a specified format; the simulation server is used to perform simulation according to the simulation instance file, and submit the execution results to A database server; the database server is used to save the execution result of the simulation server.
所述Web服务器还用于解析仿真实例文件生成具有特定标示符的资源配置文件,并将所述资源配置文件同仿真实例文件一起提交到仿真服务器。The Web server is also used to parse the simulation instance file to generate a resource configuration file with a specific identifier, and submit the resource configuration file together with the simulation instance file to the simulation server.
所述仿真服务器利用虚拟化技术构建虚拟资源池,根据资源配置文件动态地组织异构资源,构建满足不同仿真实例文件需求的环境。The simulation server uses virtualization technology to build a virtual resource pool, dynamically organizes heterogeneous resources according to resource configuration files, and builds an environment that meets the requirements of different simulation instance files.
所述数据库服务器还用于按仿真实例文件的类型分类保存仿真结果,如果该仿真实例文件的类型第一次出现则自动创建关于该仿真实例文件的类型的索引,以后相关的仿真结果都保存于此索引下。Described database server is also used for storing simulation result by the type classification of simulation example file, if the type of this simulation example file appears for the first time then automatically creates the index about the type of this simulation example file, afterward related simulation results are all preserved in under this index.
所述Web服务器还用于提供数据库查询索引,通过HTTP远程提交到Web服务器,Web服务器将用户提交的查询信息转交到数据库服务器。The web server is also used to provide database query index, which is remotely submitted to the web server through HTTP, and the web server transfers the query information submitted by the user to the database server.
所述数据库服务器还用于将结果返回到Web服务器,所述Web服务器以可视化网页形式向用户呈现结果。The database server is also used to return the result to the web server, and the web server presents the result to the user in the form of a visual web page.
所述Web服务器还用于接收仿真服务器回传的仿真结果,并呈现给用户。The web server is also used to receive the simulation result returned by the simulation server and present it to the user.
有益效果Beneficial effect
由于采用了上述的技术方案,本发明与现有技术相比,具有以下的优点和积极效果:本发明改变了传统的无线传感网仿真人机交互形式,采用Web技术对外提供统一接口隐藏了用户不关心的细节,降低了部署和使用门槛。本发明大大降低了执行仿真的硬件配置条件,只需要一个支持浏览器的联网终端就可以进行无线传感网仿真实验,其余的计算操作均交由服务器完成。本发明运用了虚拟化技术对服务器资源进行动态分配很大程度上提高了资源利用率。Due to the adoption of the above-mentioned technical scheme, the present invention has the following advantages and positive effects compared with the prior art: the present invention changes the traditional wireless sensor network simulation human-computer interaction form, and adopts Web technology to provide a unified interface to hide the The details that users don't care about lower the threshold for deployment and use. The invention greatly reduces the hardware configuration conditions for performing simulation, and only needs a browser-supported networked terminal to carry out wireless sensor network simulation experiments, and the rest of the calculation operations are completed by the server. The present invention utilizes the virtualization technology to dynamically allocate server resources and greatly improves resource utilization.
附图说明Description of drawings
图1是本发明的结构框图;Fig. 1 is a block diagram of the present invention;
图2是本发明中仿真服务器结构框图。Fig. 2 is a structural block diagram of the emulation server in the present invention.
具体实施方式Detailed ways
下面结合具体实施例,进一步阐述本发明。应理解,这些实施例仅用于说明本发明而不用于限制本发明的范围。此外应理解,在阅读了本发明讲授的内容之后,本领域技术人员可以对本发明作各种改动或修改,这些等价形式同样落于本申请所附权利要求书所限定的范围。Below in conjunction with specific embodiment, further illustrate the present invention. It should be understood that these examples are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the teachings of the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms also fall within the scope defined by the appended claims of the present application.
本发明的实施方式涉及一种基于Web的无线传感网远程仿真系统,本系统将无线传感网仿真技术与Web技术相结合改变了传统的无线传感网仿真的人机交互方式,采用Web技术对外提供统一接口隐藏了用户不关心的细节,降低了部署和使用门槛。The embodiment of the present invention relates to a web-based wireless sensor network remote simulation system. This system combines wireless sensor network simulation technology with Web technology to change the traditional human-computer interaction mode of wireless sensor network simulation. The technology provides a unified interface to the outside world, which hides the details that users don't care about, and lowers the barriers to deployment and use.
如图1所示基于Web的无线传感网远程仿真系统包括Web服务器、数据库服务器、仿真服务器,Web服务器以网页的形式向用户提供仿真任务、仿真系统参数和数据库查询入口,其中任务选择与系统参数配置用于生成具有指定格式的仿真实例文件,Web服务器负责对仿真实例进行解析生成具有特定标示符的资源配置文件;数据库服务器用于保存仿真服务器的执行结果,供用户查询;仿真服务器用于创建仿真实例运行的仿真环境,然后执行仿真实例,并将执行结果提交到数据库服务器保存。As shown in Figure 1, the Web-based wireless sensor network remote simulation system includes a Web server, a database server, and a simulation server. The Web server provides users with simulation tasks, simulation system parameters, and database query entries in the form of web pages. The task selection is related to the system The parameter configuration is used to generate a simulation instance file with a specified format, and the Web server is responsible for parsing the simulation instance to generate a resource configuration file with a specific identifier; the database server is used to save the execution results of the simulation server for users to query; the simulation server is used to Create a simulation environment for the simulation instance to run, then execute the simulation instance, and submit the execution result to the database server for storage.
其中,所述Web服务器还用于解析仿真实例文件生成具有特定标示符的资源配置文件,并将所述资源配置文件同仿真实例文件一起提交到仿真服务器。所述仿真服务器利用虚拟化技术构建虚拟资源池,根据资源配置文件动态地组织异构资源,构建满足不同仿真实例文件需求的环境。所述数据库服务器还用于按仿真实例文件的类型分类保存仿真结果,如果该仿真实例文件的类型第一次出现则自动创建关于该仿真实例文件的类型的索引,以后相关的仿真结果都保存于此索引下。所述Web服务器还用于提供数据库查询索引,通过HTTP远程提交到Web服务器,Web服务器将用户提交的查询信息转交到数据库服务器。所述数据库服务器还用于将结果返回到Web服务器,所述Web服务器以可视化网页形式向用户呈现结果。所述Web服务器还用于接收仿真服务器回传的仿真结果,并呈现给用户。Wherein, the web server is also used to parse the simulation instance file to generate a resource configuration file with a specific identifier, and submit the resource configuration file together with the simulation instance file to the simulation server. The simulation server uses virtualization technology to build a virtual resource pool, dynamically organizes heterogeneous resources according to resource configuration files, and builds an environment that meets the requirements of different simulation instance files. Described database server is also used for storing simulation result by the type classification of simulation example file, if the type of this simulation example file appears for the first time then automatically creates the index about the type of this simulation example file, afterward related simulation results are all preserved in under this index. The web server is also used to provide database query index, which is remotely submitted to the web server through HTTP, and the web server transfers the query information submitted by the user to the database server. The database server is also used to return the result to the web server, and the web server presents the result to the user in the form of a visual web page. The web server is also used to receive the simulation result returned by the simulation server and present it to the user.
如图2所示,仿真服务器由资源配置器和各个无线传感网仿真软件虚拟机组成。仿真实例的仿真环境创建由仿真服务器的资源配置器完成,资源配置器根据资源配置文件采用虚拟化技术动态调度虚拟资源池构建满足于指定仿真实例运行的仿真环境,如资源配置文件中显示仿真规模在103数量级并且侧重数据包级的仿真则资源配置器就会调度NS2环境虚拟机的资源;如资源配置文件中显示仿真规模在103数量级以上并且侧重无线传感网协议开发验证的仿真则资源配置器就会调度Shawn环境虚拟机的资源。当环境创建完成后则由被调度的虚拟机完成仿真实例,并将执行结果分别送往Web服务器和数据库服务器。As shown in Figure 2, the simulation server is composed of a resource configurator and various wireless sensor network simulation software virtual machines. The simulation environment of the simulation instance is created by the resource configurator of the simulation server. The resource configurator uses virtualization technology to dynamically schedule the virtual resource pool according to the resource configuration file to build a simulation environment that satisfies the operation of the specified simulation instance. For example, the simulation scale is displayed in the resource configuration file If the simulation scale is on the order of 103 and focuses on the data packet level, the resource configurator will schedule the resources of the virtual machine in the NS2 environment; if the resource configuration file shows that the simulation scale is above 103 and the simulation focuses on the development and verification of the wireless sensor network protocol, then The resource configurator will schedule the resources of the Shawn environment virtual machine. When the environment is created, the scheduled virtual machine completes the simulation instance, and sends the execution results to the Web server and the database server respectively.
本发明让用户进行无线传感网仿真实验室的所有操作都在网页上完成,包括仿真配置,任务选型,结果分析查询。释放了传统无线传感网仿真对计算机硬件配置的要求,只需要一个带有浏览器的联网终端就可以完成用户需要的仿真实验,不仅节约了资源成本的投入而且提高了研发效率。The invention allows users to complete all operations of the wireless sensor network simulation laboratory on the web page, including simulation configuration, task selection, and result analysis and query. It releases the requirements of traditional wireless sensor network simulation for computer hardware configuration, and only needs a networked terminal with a browser to complete the simulation experiments required by users, which not only saves resource cost investment but also improves research and development efficiency.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2013101289419ACN103257883A (en) | 2013-04-15 | 2013-04-15 | Web based wireless sensing network remote stimulation system |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2013101289419ACN103257883A (en) | 2013-04-15 | 2013-04-15 | Web based wireless sensing network remote stimulation system |
| Publication Number | Publication Date |
|---|---|
| CN103257883Atrue CN103257883A (en) | 2013-08-21 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2013101289419APendingCN103257883A (en) | 2013-04-15 | 2013-04-15 | Web based wireless sensing network remote stimulation system |
| Country | Link |
|---|---|
| CN (1) | CN103257883A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104572244A (en)* | 2013-10-16 | 2015-04-29 | 西克股份公司 | Method for device simulation |
| CN104750928A (en)* | 2015-03-30 | 2015-07-01 | 东南大学 | Online simulation method based on B/S network structure mode |
| CN107393371A (en)* | 2017-08-03 | 2017-11-24 | 东华大学 | A kind of remote microcontroller virtual experimental system |
| CN110827599A (en)* | 2019-10-25 | 2020-02-21 | 武汉索瑞威科技有限公司 | Virtual simulation system based on internet webpage |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090100352A1 (en)* | 2007-10-15 | 2009-04-16 | Yunwu Huang | Method and apparatus for bridging real-world web applications and 3d virtual worlds |
| CN102523249A (en)* | 2011-11-24 | 2012-06-27 | 哈尔滨工业大学 | Distributed long-distance simulation system and simulation method based on Web |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090100352A1 (en)* | 2007-10-15 | 2009-04-16 | Yunwu Huang | Method and apparatus for bridging real-world web applications and 3d virtual worlds |
| CN102523249A (en)* | 2011-11-24 | 2012-06-27 | 哈尔滨工业大学 | Distributed long-distance simulation system and simulation method based on Web |
| Title |
|---|
| JAMES BYRNE等: "A review of Web-based simulation and supporting tools", 《SIMULATION MODELLING PRACTICE AND THEORY》* |
| 李传文 等: "WSNSnSim:一种无线传感网络仿真平台的研究与实现", 《小型微型计算机系统》* |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104572244A (en)* | 2013-10-16 | 2015-04-29 | 西克股份公司 | Method for device simulation |
| CN104750928A (en)* | 2015-03-30 | 2015-07-01 | 东南大学 | Online simulation method based on B/S network structure mode |
| CN107393371A (en)* | 2017-08-03 | 2017-11-24 | 东华大学 | A kind of remote microcontroller virtual experimental system |
| CN110827599A (en)* | 2019-10-25 | 2020-02-21 | 武汉索瑞威科技有限公司 | Virtual simulation system based on internet webpage |
| Publication | Publication Date | Title |
|---|---|---|
| CN104331640B (en) | Project concluding report analysis system and method based on biological cloud platform | |
| Sotiriadis et al. | Towards simulating the internet of things | |
| US10977076B2 (en) | Method and apparatus for processing a heterogeneous cluster-oriented task | |
| CN107766344B (en) | Template rendering method and device and browser | |
| Malhotra et al. | Study and comparison of CloudSim simulators in the cloud computing | |
| Luo et al. | Study on multi-view model for cloud manufacturing | |
| CN103257883A (en) | Web based wireless sensing network remote stimulation system | |
| WO2013159586A1 (en) | Distributed simulation data processing method and device | |
| RU2014131897A (en) | METHODS AND SYSTEMS FOR SEARCHING APPLICATIONS | |
| CN109474467A (en) | Network automatically management method, device, storage medium and electronic equipment | |
| CN104010045B (en) | The method that mobile node based on cloud platform performs task | |
| CN104536745B (en) | Task amending method and task modification device | |
| CN105824647A (en) | Form page generating method and device | |
| CN108629456A (en) | Read method, device, terminal device and the readable storage medium storing program for executing of public transport data | |
| CN103714208A (en) | Method for conducting modeling through coordination of structural models and behavior models of scenario-driven CPS system | |
| CN103544357A (en) | Method and device for achieving ANSYS calculation tasks | |
| CN104239630B (en) | A kind of emulation dispatch system of supportive test design | |
| CN114764330A (en) | Data blood margin analysis method and device, electronic equipment and computer readable storage medium | |
| CN108021607A (en) | A kind of wireless city Audit data off-line analysis method based on big data platform | |
| CN103543986B (en) | The implementation method and device of the calculating task of CFX | |
| CN105242913A (en) | YYUC-PHP (Professional Hypertext Preprocessor) frame | |
| CN113656952B (en) | Modeling tool for cloud edge computing environment | |
| CN104090813A (en) | Analysis modeling method for CPU (central processing unit) usage of virtual machines in cloud data center | |
| CN115357333A (en) | Large-scale topology arrangement management system facing virtual network | |
| Padhy et al. | An Architecture for Automatic Deployment of Brown Dog Services at Scale into Diverse Computing Infrastructures |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20130821 | |
| RJ01 | Rejection of invention patent application after publication |