1 / 10

Xin Bai

Network Simulator 2. Xin Bai. Synopsis. ns  (from  network simulator ) is a name for series of  discrete event network simulators, specifically  ns-1 ,  ns-2  and  ns-3 . All of them are discrete-event network simulator, primarily used in research and teaching. Scheme.

oleg-bass
Download Presentation

Xin Bai

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Network Simulator 2 Xin Bai

  2. Synopsis ns (from network simulator) is a name for series of  discrete event network simulators, specifically  ns-1, ns-2 and ns-3. All of them are discrete-event network simulator, primarily used in researchand teaching.

  3. Scheme In 1996-97, ns version 2 (ns-2) was initiated based on a refactoring. Use of Tcl was replaced by MIT's Object Tcl (OTcl), an object-oriented dialect of Tcl. The core of ns-2 is also written in C++, but the C++ simulation objects are linked to shadow objects in OTcl and variables can be linked between both language realms. Simulation scripts are written in the OTcl language, an extension of the Tcl scripting language. Presently, ns-2 consists of over 300,000 lines of source code, and there is probably a comparable amount of contributed code that is not integrated directly into the main distribution

  4. Two Languages: C++, OTcl • C++ • Most important and kernel part of the NS2 • To implement the kernel of the architecture of the • protocol designs • From the packet flow view, the processes run on • a single node • To change or “comment out” the existing protocols • running in NS2 • Details of your research scheme.

  5. Two Languages: C++, OTcl • Otcl • short for MIT Object Tcl • Used to build the network structure and topology • which is just the surface of your simulation • Easily to configure your network parameters • Not enough for research schemes and protocol • architecture adaption

  6. Comparison Existing core ns-2 capability Application: ping, vat, telnet, FTP, multicast FTP, HTTP, Probabilistic and trace-driven Traffic generators, web cache. Existing ns-3 On/Off Application, asynchronous Socket API, packet sockets.

  7. Comparison Existing core ns-2 capability Transport: TCP, UDP, SCTP, XCP TFRC, RAP, RTP. Multicast: PGM, SRM, RLM, PLM. Existing ns-3 UDP, TCP

  8. Comparison Existing core ns-2 capability Network: Unicast, IP, MobileIP, Generic dist, vector and link state, Multicast: SRM, generic centralized. Existing ns-3 IPv4, global, static routing Multicast: static routing

  9. Programming NS 2 FTP example.

  10. Thank You!

More Related