NS3-00- learning materials

NS3 official website common learning sector

  • the Tutorial-3-ns : ns-3 introductory tutorial, including a basic introduction, software installation, and other core concepts;
  • Manual-ns-3 : ns-3 manual describing ns-3 overall software architecture, and other core modules;
  • ns-3-model-library: ns-3 model library, the specific details described in each module ns-3;
  • API Documentation: Documentation using Doxygen of ns-3 API documentation, including all modules, source files, class and its members, is reading and writing ns-3 code is indispensable information;
  • ns-3 Wikipedia: Document can find a lot of details not mentioned, is very useful;
  • FAQ: possible to find answers to common questions;
  • ns-3 mailing lists: you can ask ns 3-related issues (read the front page guide to ask), where ns-3-users Google Group forum have a lot of answers to frequently asked questions, very useful;
  • ns-3 Presentations: report ns-3 developers and users do
  • ns-3 Videos: ns-3 related videos;
    1. C ++ learning : http://www.cplusplus.com/doc/tutorial/
    2. C language using Tcp / IP sockets : HTTP: // cs. baylor.edu/~donahoo/practical/CSockets/
    3.Logging
    4.ASCII Trace:
AsciiTraceHelper ascii;
pointToPoint.EnableAsciiAll (ascii.CreateFileStream ("myfirst.tr"));

+: Occurred on device queue enqueue operation;
-: dequeue operations occur on the device queue;
D: discard the packet, usually because the queue is full;
R & lt: network device receives a data packet.

5.PACAP track

pointToPoint.EnablePcapAll ("myfirst");

Read using tcpdump output

$ tcpdump -nn -tt -r myfirst-0-0.pcap

6.WireShark learning: https://www.wireshark.org/#learnWS

Discrete event network simulator ns-3 using a number of reasons, including the implementation of studies are difficult to perform or difficult to implement in a practical system to study the behavior of the system can be reproduced in a highly controlled environment and how the network is working. In this simulator, each event is associated with its execution time, and simulation is performed in time sequence by performing simulation time event. Events may lead to arrange future events (for example, a timer might rearrange themselves as the next time interval expires).

Unfinished: Second.cc packet analysis: https://www.nsnam.org/docs/release/3.30/tutorial/singlehtml/index.html#ascii-tracing

Network common terms

  • Node

    With Internet terms, a computing device connected to a network called the host, sometimes called end system. Since ns-3 network simulator, instead of the Internet simulator, so we deliberately do not use the word "host" because it is closely related to the Internet and its protocols. Instead, we use a more general term, other simulators also from graph theory also uses the term - node.

In ns-3, the basic computer device abstraction called nodes, various functions may be added thereto a computer such as application things, a protocol stack and a peripheral card or the like and its associated drivers to enable a computer to perform useful work. Node described by the Node class in C ++, a variety of methods for managing a network simulator assembly indicated.

  • Application

    In ns3 the user program to be simulated are abstracted as applied, with the Application type described, various methods of managing user-level application simulation. A time to start generating the data communication parameters and stops at a certain point in time is optional

  • Channel

Typically the media stream through the data network referred to as the channel, in substantially the abstract concept of a communication subnetwork will ns3 called channel, described by class Channel, a subnet object and the management communications nodes connected to them various methods.

Channel model instance:

  1. CsmaChannel: implement carrier sense multiple access media communication subnet, and Ethernet have similar functions
  2. PointToPointChannel
  3. Wi-fiChannel
  • Device

    Corresponds to the sum of the hardware devices and software device drivers, network card, described by NetDevice classes, various methods for managing other nodes and connecting channel of the object. Common examples of network equipment: CsmaNetDevice, PointToPointDevice, Wi-FiNetDevice

  • Topology Helpers

    "Topology Builder" Such a helper class, has been achieved inside the connection device to a network node, to whom the channel and configure an IP address, protocol stack configuration node, the number of discrete steps to integrate into a simple and easy operation.

Guess you like

Origin www.cnblogs.com/lyszyl/p/12077903.html