GithubHelp home page GithubHelp logo

ns3-helperscripts's Introduction

ns3 Shared Resource by Adil Alsuhaim

This git repository contains ns3 resources that I share publicly. The content is as follows:

  1. CheatSheet A PDF document containing tips & tricks to use in ns3
  2. examples ns3 program examples.
  3. ns3helpers Scripts written in Python that makes running & debugging ns3 programs easier.

CheatSheet

I created a PDF document in LaTeX that contains tips & tricks on using ns3. I discuss many ns3 topics including TraceSource, Attributes, creating modules and using packet tags.

ns3 Examples

Under the examples directory we have ns3 project directories that you can run by copying them to your ns3's scratch directory. The examples were designed for ns-3.30.1

NS3 Helper Scripts

  • You can find scripts I use to help me run my ns3 simulations in the directory ns3helpers

  • There's a README.md under that directory with information on how to use the scripts.

ns3-helperscripts's People

Contributors

addola avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ns3-helperscripts's Issues

Trouble compiling and missing license

Interesting repo :)

I tried to include runy your NS3-HelperScripts/examples/MobilityExample/custom-mobility-model.cc, but I am missing the #include "ns3/console-color.h" which is not part of the ns-3 repo.

Moreover, your repo is missing a license file...maybe you can add one ;) e.g. CC-BY-4.0 License or whatever...

Some questions about unicast

First of all, thank you for your contribution, it helped me a lot!

For unicast, I have the following two questions:

  1. Why do I still receive drop and rx messages between other nodes when I use unicast?

  2. Is there any relevance for TxInfo for broadcast and unicast?

here are my broadcast and unicast codes (I'm checked they all have the right conditions to run) :

if(json_object["castMethod"].asString() == "broadcast"){
Mac48Address brocast_mac = Mac48Address::GetBroadcast();
Simulator::Schedule(Seconds(scheduleTime), &WaveNetDevice::SendX, wd, p, brocast_mac, protocol, tx);
} else if(json_object["castMethod"].asString() == "unicast") {
Ptr d2 = DynamicCast(ds.Get(json_object["receiverId"].asInt()));
Mac48Address unicast_mac = Mac48Address::ConvertFrom (d2->GetAddress());
TxInfo tx_u;
Simulator::Schedule(Seconds(scheduleTime), &WaveNetDevice::SendX, wd, p, unicast_mac, protocol, tx_u);
}

thanks!

question about wave-test.cc

Hi, I'm running wave-test.cc. I would really aprreciate if you could reply.
Why node 1 and node 2 have same source MAC address? Like follows:

/NodeList/1/DeviceList/0/$ns3::WaveNetDevice/PhyEntities/0/MonitorSnifferRx
Size=288 Freq=5890 Mode=OfdmRate6MbpsBW10MHz Signal=-34.6468 Noise=-96.9763
Destination MAC : ff:ff:ff:ff:ff:ff Source MAC : 00:00:00:00:00:08
/NodeList/2/DeviceList/0/$ns3::WaveNetDevice/PhyEntities/0/MonitorSnifferRx
Size=288 Freq=5890 Mode=OfdmRate6MbpsBW10MHz Signal=-45.1314 Noise=-96.9763
Destination MAC : ff:ff:ff:ff:ff:ff Source MAC : 00:00:00:00:00:08

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.