Supercharge Your Innovation With Domain-Expert AI Agents!

An NS3 and MATLAB integrated joint simulation interface method based on a TCP protocol

A co-simulation and protocol technology, applied in design optimization/simulation, special data processing applications, instruments, etc., can solve problems such as inability to communicate with network simulation

Active Publication Date: 2019-04-09
ZHEJIANG UNIV OF TECH
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

MATLAB has accurate physical models and powerful functions, and supports matrix operations of complex algorithms, but even using the truetime software package still cannot achieve more accurate simulations for some communication networks

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • An NS3 and MATLAB integrated joint simulation interface method based on a TCP protocol
  • An NS3 and MATLAB integrated joint simulation interface method based on a TCP protocol
  • An NS3 and MATLAB integrated joint simulation interface method based on a TCP protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] In order to test the effectiveness of the co-simulation interface, we wrote a NS3 simulation script program, used the new simulator class ExternallyDrivenSim and the supporting application program class in the script, and defined the network topology of the two nodes. A new UDP client and UDP server are installed on the two nodes. The simulated scenario is to periodically send data packets with the externallyDrivenSim attribute simulation cycle step g_SimulationStep between the two nodes, and also simulate the scenario where a node sends data packets aperiodically and randomly, and set the simulation in the script The total duration of the simulation cycle is 20 seconds, the simulation cycle step g_SimulationStep is 200 milliseconds, and the size of the sent data packet is set through the application assistant class. The notification structure sent by the MATLAB client contains the trigger signal of the sending data packet of these two nodes. The structure contains an...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an NS3 and MATLAB integrated joint simulation interface method based on a TCP protocol. The method comprises the steps that firstly, running environments of two kinds of simulation software are set up in a linux operation system, a Ubulntu operation system is selected, MATLAB simulation software and NS3 simulation software are installed, and configuration is conducted on NS3 in Eclipse; An interactive interface between two simulation software is established through a TCP protocol, a new socket is created in programs written by MATLAB and NS3, and the MATLAB serves as aclient side, and the NS3 serves as a server, so that the sockets of the MATLAB and the NS3 are used in different steps. And then, the NS3 default simulator is improved, a new simulator class ExerniallyDrivenSim is created through inheritance, and corresponding functions are added and modified. And finally, the UDP application program class and the assistant class of the NS3 are improved, and a newUDP application program class and a new assistant class areinerited and created, so that the new UDP application program class and the new assistant class can be effectively matched with a new simulator to simulate related scenes.

Description

technical field [0001] The invention relates to a method for writing a specific co-simulation interface for two different simulation software, NS3 and MATLAB, so that the two can interact to a certain extent. Background technique [0002] A networked control system (NCS) is a control system consisting of a system to be controlled and actuators, sensors, and controllers whose operations are coordinated through a communication network, so NCS contains a coupled control and communication perspective. NCS's use of a multipurpose shared network to connect spatially distributed elements results in a flexible architecture and often reduces installation and maintenance costs. As a result, NCS has found applications in a wide range of fields such as industrial control systems and unmanned aerial vehicles (UAVs). [0003] However, the existing simulation software is concentrated on the control system or communication network, and the simulation of NCS is also based on the redevelopme...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/50H04L29/06
CPCH04L69/162G06F30/20Y02P90/02
Inventor 赵云波顾慧卿苏艺帆韩康
Owner ZHEJIANG UNIV OF TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More