NS-2 is a discrete event network simulator used to model computer networks. It includes implementations of many common network protocols like TCP and various routing protocols. NS-2 uses C++ for core functionality and OTcl as a front-end for configuration and scripting. It models networks as nodes connected by links, with agents running protocols at each node. Users write OTcl scripts to define network topologies and scenarios that are then simulated to produce trace files for analysis.
NS2 - the network simulator which is proved useful in studying the dynamic nature of communication networks. Simulation of wired as well as wireless network functions and protocols( e.g. routing algorithms, TCP, UDP ) can be done using NS2
Presentation by Mr. Vibin Chander, CEO, Shabari Software Solutions, CBE during the Faculty development Programm on NS2 organized by Department of Computer Science, Rathinam College of Arts and Computer Science (Autonomous), Eachanari, Coimbatore - 641021.
NS2 - the network simulator which is proved useful in studying the dynamic nature of communication networks. Simulation of wired as well as wireless network functions and protocols( e.g. routing algorithms, TCP, UDP ) can be done using NS2
Presentation by Mr. Vibin Chander, CEO, Shabari Software Solutions, CBE during the Faculty development Programm on NS2 organized by Department of Computer Science, Rathinam College of Arts and Computer Science (Autonomous), Eachanari, Coimbatore - 641021.
Network simulator 2 :
Object-oriented, discrete event driven network simulator
It was normally used in wired & wireless protocol
Written in C++ and OTcl
Presentation of Mr.Vibin Chander, CEO, Shabari Software Solutions, CBE. Delivered during the Faculty development Program on NS2 organized by Department of Computer Science, Rathinam College of Arts and Science (Autonomous), Eachanari, Coimbatore - 641021.
Один из основных мотивов добавления в Java 8 лямбда-выражений — упростить написание многопоточных программ. На примере несложной вычислительной задачи я покажу эволюцию средств Java для многопоточности. Начнём с Java Threads, а закончим лямбда-выражениями и Stream API. Ну и в результате посмотрим, что и как вышло.
Один из основных мотивов добавления в Java 8 лямбда-выражений — упростить написание многопоточных программ. На примере несложной вычислительной задачи я покажу эволюцию средств Java для многопоточности. Начнём с Java Threads, а закончим лямбда-выражениями и Stream API. Ну и в результате посмотрим, что и как вышло.
Network simulator 2 :
Object-oriented, discrete event driven network simulator
It was normally used in wired & wireless protocol
Written in C++ and OTcl
Presentation of Mr.Vibin Chander, CEO, Shabari Software Solutions, CBE. Delivered during the Faculty development Program on NS2 organized by Department of Computer Science, Rathinam College of Arts and Science (Autonomous), Eachanari, Coimbatore - 641021.
Один из основных мотивов добавления в Java 8 лямбда-выражений — упростить написание многопоточных программ. На примере несложной вычислительной задачи я покажу эволюцию средств Java для многопоточности. Начнём с Java Threads, а закончим лямбда-выражениями и Stream API. Ну и в результате посмотрим, что и как вышло.
Один из основных мотивов добавления в Java 8 лямбда-выражений — упростить написание многопоточных программ. На примере несложной вычислительной задачи я покажу эволюцию средств Java для многопоточности. Начнём с Java Threads, а закончим лямбда-выражениями и Stream API. Ну и в результате посмотрим, что и как вышло.
The lecture by Bjoern Doebel for Summer Systems School'12.
IPC mechanisms and memory management in Fiasco.OC and L4Re
SSS'12 - Education event, organized by ksys labs[1] in 2012, for students interested in system software development and information security.
1. http://ksyslabs.org/
Webinar: General Technical Overview of MongoDBMongoDB
MongoDB is the leading open-source, document database. In this webinar we'll dive into the technical details of MongoDB by first mapping it from relational concepts. Next we'll discuss an example data model and associated query functionality using commands pulled straight from the MongoDB shell. Finally, we'll delve into some of the deployment functionality provided by MongoDB including solutions for data redundancy, node failover and auto-sharding.
In the past, much effort has been invested in high performance kernel tracing tools, but now focus in the tracing community seems to be shifting over to efficient user space application tracing. By providing joint kernel and user space tracing, developers can have deeper insights in their applications latencies. This presentation covers the ongoing efforts within the LTTng project to enhance system-wide tracing at the user space level. It discusses instrumentation sources such as Tracepoints, Uprobes, and SystemTAP SDT providers, along with their integration with LTTng. A brief overview of the latest and upcoming features of the user space tracer is presented. It also discusses ongoing efforts in the area of trace format and control protocol standardisation. Finally, our presentation includes challenging glibc-related issues encountered during LTTng-UST development, opening the discussion on how to improve and collaborate on user-space instrumentation.
The targeted audience is user space and kernel developers, those interested in tracing infrastructure, shared system libraries, and application instrumentation.
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Honest Reviews of Tim Han LMA Course Program.pptxtimhan337
Personal development courses are widely available today, with each one promising life-changing outcomes. Tim Han’s Life Mastery Achievers (LMA) Course has drawn a lot of interest. In addition to offering my frank assessment of Success Insider’s LMA Course, this piece examines the course’s effects via a variety of Tim Han LMA course reviews and Success Insider comments.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
1. OVERVIEW OF NS-2
Discrete Event Simulator
Packet level
Modeling Network protocols
Collection of Various protocols at multiple layers
TCP(reno, tahoe, vegas, sack)
MAC(802.11, 802.3, TDMA)
Ad-hoc Routing (DSDV, DSR, AODV, TORA)
Sensor Network (diffusion, gaf)
Multicast protocols, Satellite protocols, and many others
1
2. NS-2 : COMPONENTS
NS– Simulator
NAM – Network AniMator
visual demonstration of NS output
Preprocessing
Handwritten TCL or
Topology generator
Post analysis
Trace analysis using Perl/TCL/AWK/MATLAB
2
3. USER’S PERSPECTIVE
From the user’s perspective, NS−2 is an OTcl
interpreter that takes an OTcl script as input and
produces a trace file as output.
3
4. DISCRETE EVENT SIMULATOR
ns-2 is an discrete event driven simulation
Physical activities are translated to events
Events are queued and processed in the order of their
scheduled occurrences
Time progresses as the events are processed
Time: 1.5 sec Time: 1.7 sec
1 2
Time: 2.0 sec Time: 1.8 sec
4
6. EVENT SCHEDULER
Non-Real time schedulers
Implementations : List , Heap , Calender
Calender is default
Real time schedulers
Used for emulation for direct interaction with real
NT.
Basic use of an event scheduler:
schedule simulation events, such as when to start an
FTP application, when to finish a simulation, or for
simulation scenario generation prior to a simulation
run.
6
7. NS-2 ENVIRONMENT
Simulation 1 2
Scenario
set ns_ [new Simulator]
Tcl Script set node_(0) [$ns_ node]
set node_(1) [$ns_ node]
class MobileNode : public Node
{
C++ friend class PositionHandler;
public:
Implementation MobileNode();
•
•
} 7
8. TCL INTERPRETER WITH EXTENTS
Event ns-2
Scheduler
tclcl
Component
Network
otcl
tcl8.0
otcl: Object-oriented support
tclcl: C++ and otcl linkage
Discrete event scheduler
Data network (the Internet) components 8
9. NS-2 Directory Structure
sim
tcl8.0 tk8.0 otcl Tcl ns-2 nam-1
tcl code C++ code
tcl ...
example
ex test lib ...
validation test tcl code core
9
10. NODE ARCHITECTURE
Node
Agent
Classifier
Local
Agent
Classifier
Node entry point
Agent
Port
Classifiers: packet demultiplexers.
Addr
Link Link Link
10
Agents are either protocol endpoints or related
objects that generate/fill-in packet fields.
11. PacketsPACKET STRUCTURE
(events)
packet
next_
Size
determined accessdata( ) - packet size
at
simulation
bits( )
Size - timestamp
config time determined at cmn header
compile time - type
Size - UID
determined at tcp header
compile time - interface label
Size
determined at ip header
compile time
Size
determined at trace header
compile time
11
12. Links
Links: keeps track of “from” and “to” node objects.
blocked
Link
entry Enq Trace Queue Deq Trace Delay TTL Rcv Trace
point
Drop head Drp Trace
12
13. N1 N2
Node Node
Classifier
Classifier
Local Local
Agent Agent
Classifier
Classifier
Application Application
Port Port
Addr Addr
Link
Link
Enq Trace Queue Deq Trace Delay TTL Rcv Trace
Drop head Drp Trace
13
14. NS-2 : C++ / OTCL
NS-2 Code contains two sets of languages, namely C++
and OTcl.
C++ is used for the creation of objects
because of speed and efficiency.
OTcl is used as a front-end to setup the
simulator, configure objects and
schedule events because of its ease of
use.
14
15. Why two languages? (Tcl & C++)
C++: Detailed protocol simulations require
systems programming language
byte manipulation, packet processing, algorithm
implementation
Run time speed is important
Turn around time (run simulation, find bug, fix
bug, recompile, re-run) is slower
Tcl: Simulation of slightly varying parameters
or configurations
quickly exploring a number of scenarios
iteration time (change the model and re-run) is
more important 15
16. Tcl or C++?
Tcl
Simple Configuration, Setup, Scenario
If it’s something that can be done without
modifying existing Tcl module.
C++
Anything that requires processing each
packet
Needs to change behavior of existing
module
16
17. NS-2 Directory Structure
sim
tcl8.0 tk8.0 otcl Tcl ns-2 nam-1
tcl code C++ code
tcl ...
example
ex test lib ...
validation test tcl code core
17
18. Making Changes in C++ Space
Existing code
recompile
Addition
change Makefile and recompile
18
19. Making Changes in otcl Space
Existing code
recompile
source
Addition
source
change Makefile (NS_TCL_LIB), tcl/ns-
lib.tcl (source) and recompile
19
21. CODE FOR SIMPLE TOPOLOGY
Creating a Simulator Object
set ns [new Simulator]
Setting up files for trace & NAM
set trace_nam [open out.nam w]
set trace_all [open all.tr w]
Tracing files using their commands
$ns namtrace-all $trace_nam
$ns trace-all $trace_all
21
22. CODE FOR SIMPLE TOPOLOGY
Closing trace file and starting NAM
proc finish { } {
global ns trace_nam trace_all
$ns flush-trace
close $trace_nam
close $trace_all
exec nam out.nam &
exit 0 }
22
23. CODE FOR SIMPLE TOPOLOGY
Creating LINK & NODE topology
Creating NODES
set n1 [$ns node]
set n2 [$ns node]
set n3 [$ns node]
set n4 [$ns node]
set r1 [$ns node]
set r2 [$ns node]
23
24. CODE FOR SIMPLE TOPOLOGY
Creating LINKS
$ns duplex-link $N1 $R1 2Mb 5ms DropTail
set DuplexLink0 [$ns link $N1 $R1]
$ns duplex-link $N2 $R1 2Mb 5ms DropTail
set DuplexLink1 [$ns link $N2 $R1]
$ns duplex-link $R1 $R2 1Mb 10ms DropTail
set DuplexLink2 [$ns link $R1 $R2]
$ns duplex-link $R2 $N3 2Mb 5ms DropTail
set DuplexLink3 [$ns link $R2 $N3]
$ns duplex-link $R2 $N4 2Mb 5ms DropTail
set DuplexLink4 [$ns link $R2 $N4]
24
This section talks about the discrete event schedulers of NS. As described in the Overview section, the main users of an event scheduler are network components that simulate packet-handling delay or that need timers. Figure shows each network object using an event scheduler. Note that a network object that issues an event is the one who handles the event later at scheduled time. Also note that the data path between network objects is different from the event path. Actually, packets are handed from one network object to another using send(Packet* p) {target_->recv(p)}; method of the sender and recv(Packet*, Handler* h = 0) method of the receiver