[ns] Where can i get the implementation source code of DBTMA protocol running in ns2?

2006-08-24 Thread mhxin

Hi,everybody:
 i want to run some simulations, the MAC protocol is DBTMA.
 But i couldn't find the implementation source code of this protocol in the 
Internet.
 who can tell me where can i get it?
 thanks a lot for your help!

My email is: [EMAIL PROTECTED]
   HongLiang Ma from BeiJing
 2006.08.14
 
 
 






[ns] need help with 802.11b and g in NS2

2006-08-24 Thread Hugo Torres G

Hi, I'm really interested in finding information about wireless networks
simulation in NS2, I need some help. I'm from Ecuador and I'm doing a
simulation project using The Network Simulator (NS2) version 2.29.3, and I
have to simulate 802.11 library and I've been practicing by doing simple
exercises with the NS2 tutorial, but this tutorial only covers the 802.11
standard. What do I need to add in my tcl script to make 802.11b and g
networks, please help me with this.
 
Hugo Torres Gillade
Electronics and Telecommunications Engineering Student


Re: [ns] Recording the time a flow monitor exceeds a specific value

2006-08-24 Thread Pedro Fortuna

If by "flow monitor" you mean the LossMonitor Agent, then the answer
is no. That Agent pretty much just only detects and counts packet
losses. But if you look at the code, it will see that it is farly
trivial to change and implement what you need.
You set a threshold value and register the last time the nlost_
crossed the value. Then register the time using two time counters:
double bellowThreshold_;
double above Threshold_;

Seems trivial...
Good Luck,

Pedro Fortuna
INESC Porto

On 8/25/06, Nicholas Loulloudes <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Is there any way in NS2 i can record the time the value of nlost_ of a
> specific flow monitor  exceeds a certain value?
>
> Thank you.
>
> --
> Nicholas Loulloudes
>
> Postgraduate at Communication Networks and Software.
>
> BSc in Computer Science.
>


-- 
Cumprimentos,
Pedro Fortuna



[ns] Recording the time a flow monitor exceeds a specific value

2006-08-24 Thread Nicholas Loulloudes

Hello,

Is there any way in NS2 i can record the time the value of nlost_ of a
specific flow monitor  exceeds a certain value?

Thank you.

-- 
Nicholas Loulloudes

Postgraduate at Communication Networks and Software.

BSc in Computer Science.


[ns] Help: scheduler going backwards in time...problem

2006-08-24 Thread xuminglu

Hello:
   I made some modification on gpsr routing protocol and trying to do 
some simulation on cbr traffic. When I run the tcl script, an error 
occured like this:
ns: scheduler going backwards in time from from 20.05 to 0.00

  Actually I manipulated the GPSR packet and do triangle routing. Each 
path use standard gpsr. I was wondering if it is related that the 
packet is somehow changed(but I didn't change it, all I do is to change 
the source and destination address)?

Does anybody has experience on this error?


Thanks
robin 



[ns] Access to Agents

2006-08-24 Thread Jana Henniger

Hello,

is it possible in C++ to access the agents of a node 
when I have the node ID or rather the name of the nodeobejct(e.g. o_14)???
- Or to find out which Agents belong to my node?

jana
-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit!
"Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl



[ns] Fwd: how to realize this scenario in ns2 - is it possble ?

2006-08-24 Thread krekora

Hello
I have to realize a simple simulation using ns2. The topography of the 
network is presented on the picture below . First question is whether it 
is possible with ns2 ?

n1  n2 n3
|
|
   n4

I have to realize a simulation in which:
n1 - client
n2 - router
n3 - node with one aplication
n4 - node with second application

The scenario of simulation is that:
1. n1 send a request for data from n3
2. Router with firewall check if the information can be passed
3 n3 sends back data to  n1
4. n1 send request to n3
5 n3 request data form n4
6 n4 sends back data to n3
7 n3 sends back data to n1

Short description:
It is something like talking between application. I would like to use 
fulltcp agent and write agent which base on fulltcp agent. And then 
create application and protocol which realize this scenario.

Maybe someone realize similar task, i will be gracefull for any advice. 
And most of all i would like to know whether it is possible in ns2 and 
how to start. (I readed documentation about creating new protocols and 
agent but i do not know how overload fulltcp agent)

Best regards
Przemyslaw Krekora 

--
Zostan Chlopakiem Lata! >>> http://link.interia.pl/f1998



[ns] Access to Agents

2006-08-24 Thread Jana Henniger

Hello,

is it possible in C++ to access the agents of a node 
when I have the node ID or rather the name of the nodeobejct(e.g. o_14)???
- Or to find out which Agents belong to my node?

jana

-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit!
"Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl



[ns] ns2 energy model with hierarchical addressing

2006-08-24 Thread ABDULAZIZ BARNAWI

Hi All,

I tried simulating (using ns2.29) an infrastructure wireless LAN (hierarchical 
addressing is used) with energy model enabled, however, no trace is produced 
for energy consumption. The problem, I guess, is that the if statement "if 
(thisnode)" in the trace file is always false. 

"thisnode" is defined as  Node* thisnode = Node::get_node_by_address(src_). 

Is there any reason why this is happening.

Thanks,

A. Barnawi


[ns] tracefile unknown address (source and destination, flow ID, packet number)

2006-08-24 Thread lekkie omotayo

 This is the result from my trace file. The source ID field is a lil clear
but the destination ID, source address, destinaton address, flow ID, packet
number is not clear, can anybody explain to me why it is displayin these?



s 1.7 _5_ AGT --- 10 tcp 40 [0 0 0 0] --- [4194305:0 6144:0 32
0] [0 0] 0 0

s 1.7 _6_ AGT --- 11 tcp 40 [0 0 0 0] --- [4194306:0 6144:1 32
0] [0 0] 0 0

s 1.7 _7_ AGT --- 12 tcp 40 [0 0 0 0] --- [4194307:0 6144:2 32
0] [0 0] 0 0

s 1.7 _8_ AGT --- 13 tcp 40 [0 0 0 0] --- [4194308:0 6144:3 32
0] [0 0] 0 0

s 1.7 _9_ AGT --- 14 tcp 40 [0 0 0 0] --- [4194309:0 6144:4 32
0] [0 0] 0 0

s 1.7 _10_ AGT --- 15 tcp 40 [0 0 0 0] --- [4194310:0 6144:5 32
0] [0 0] 0 0

s 1.7 _11_ AGT --- 16 tcp 40 [0 0 0 0] --- [4194311:0 6144:6 32
0] [0 0] 0 0

s 1.7 _12_ AGT --- 17 tcp 40 [0 0 0 0] --- [4194312:0 6144:7 32
0] [0 0] 0 0

s 1.7 _13_ AGT --- 18 tcp 40 [0 0 0 0] --- [4194313:0 6144:8 32
0] [0 0] 0 0

s 1.7 _14_ AGT --- 19 tcp 40 [0 0 0 0] --- [4194314:0 6144:9 32
0] [0 0] 0 0

+ 1.716896 4 0 tcp 60 --- 0 1.0.8.0 0.3.0.7 0 17

- 1.716896 4 0 tcp 60 --- 0 1.0.8.0 0.3.0.7 0 17

r 1.718901 4 0 tcp 60 --- 0 1.0.8.0 0.3.0.7 0 17

+ 1.718901 0 3 tcp 60 --- 0 1.0.8.0 0.3.0.7 0 17

- 1.718901 0 3 tcp 60 --- 0 1.0.8.0 0.3.0.7 0 17

+ 1.718954 4 0 tcp 60 --- 0 1.0.7.0 0.3.0.6 0 16

- 1.718954 4 0 tcp 60 --- 0 1.0.7.0 0.3.0.6 0 16

r 1.720905 0 3 tcp 60 --- 0 1.0.8.0 0.3.0.7 0 17

+ 1.720905 3 0 ack 40 --- 0 0.3.0.7 1.0.8.0 0 21

- 1.720905 3 0 ack 40 --- 0 0.3.0.7 1.0.8.0 0 21

r 1.720959 4 0 tcp 60 --- 0 1.0.7.0 0.3.0.6 0 16

+ 1.720959 0 3 tcp 60 --- 0 1.0.7.0 0.3.0.6 0 16

- 1.720959 0 3 tcp 60 --- 0 1.0.7.0 0.3.0.6 0 16

r 1.722909 3 0 ack 40 --- 0 0.3.0.7 1.0.8.0 0 21

+ 1.722909 0 4 ack 40 --- 0 0.3.0.7 1.0.8.0 0 21

- 1.722909 0 4 ack 40 --- 0 0.3.0.7 1.0.8.0 0 21

r 1.722964 0 3 tcp 60 --- 0 1.0.7.0 0.3.0.6 0 16

+ 1.722964 3 0 ack 40 --- 0 0.3.0.6 1.0.7.0 0 22

- 1.722964 3 0 ack 40 --- 0 0.3.0.6 1.0.7.0 0 22

r 1.724912 0 4 ack 40 --- 0 0.3.0.7 1.0.8.0 0 21

r 1.724967 3 0 ack 40 --- 0 0.3.0.6 1.0.7.0 0 22

+ 1.724967 0 4 ack 40 --- 0 0.3.0.6 1.0.7.0 0 22

- 1.724967 0 4 ack 40 --- 0 0.3.0.6 1.0.7.0 0 22

r 1.72697 0 4 ack 40 --- 0 0.3.0.6 1.0.7.0 0 22

+ 1.727879 4 0 tcp 60 --- 0 1.0.5.0 0.3.0.4 0 14

- 1.727879 4 0 tcp 60 --- 0 1.0.5.0 0.3.0.4 0 14

r 1.729884 4 0 tcp 60 --- 0 1.0.5.0 0.3.0.4 0 14

+ 1.729884 0 3 tcp 60 --- 0 1.0.5.0 0.3.0.4 0 14

- 1.729884 0 3 tcp 60 --- 0 1.0.5.0 0.3.0.4 0 14

+ 1.731798 4 0 tcp 60 --- 0 1.0.1.0 0.3.0.0 0 10

- 1.731798 4 0 tcp 60 --- 0 1.0.1.0 0.3.0.0 0 10

r 1.731889 0 3 tcp 60 --- 0 1.0.5.0 0.3.0.4 0 14

+ 1.731889 3 0 ack 40 --- 0 0.3.0.4 1.0.5.0 0 23

- 1.731889 3 0 ack 40 --- 0 0.3.0.4 1.0.5.0 0 23

r 1.733636158 _12_ AGT --- 21 ack 40 [13a 8 0 800] --- [6144:7 4194312:0
29 4194312] [0 0] 1 0

s 1.733636158 _12_ AGT --- 24 tcp 1040 [0 0 0 0] --- [4194312:0 6144:7
32 0] [1 0] 0 0

s 1.733636158 _12_ AGT --- 25 tcp 1040 [0 0 0 0] --- [4194312:0 6144:7
32 0] [2 0] 0 0


Re: [ns] Need 802.11e Implementation For NS2

2006-08-24 Thread Kye Sang Lee

Hamid,

I know one site:
http://www.tkn.tu-berlin.de/research/802.11e_ns2/
Try it for the basic access. Their code contains the RTS/CTS mode. However,
they said that they did not test RTS/CTS mode. It looks to me that the
RTS/CTS mode seems not working. Refer to my mail one up above on the
archive.

Best Regards,
Kye Sang Lee

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of hamid reza
> Sent: Thursday, August 24, 2006 8:06 PM
> To: ns-users@ISI.EDU
> Subject: [ns] Need 802.11e Implementation For NS2
> 
> 
> Dear All,
> We knew that real package of NS 2.27 didnt support
> 802.11e Protocol.
> Do you have a link for a good package that implemented
> 
> 802.11e For NS2?
> 
> Best Regards
> Hamid Reza
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com



[ns] Implementation new TCP agent .... please help

2006-08-24 Thread krekora

Hello i would like to create new tcp agents. Exactly I would like to 
create tcp agent and application for tcp. I read the documentation for 
ns2 and tutorials and i don't know how to start. My task is to do 
something like "Add New Application and Agent" from "ns by ecample" 
tutorial (http://nile.wpi.edu/NS/) but for tcp-full agent. Please help me.

For any links or files i will be very gracefull
Przemysław Krekora

--
Zostan Dziewczyna Lata! >>> http://link.interia.pl/f1997



Re: [ns] What's wrong with this code?

2006-08-24 Thread Filippos Kolovos

-
It has several errors, which you can spot in the code that I send you, which
should work.
I also have included a simple trace output for you, so that you will be able
to see the packets that were actually
sent between the 2 agents.

As I understand from the code, you are trying to connect both-way 2 agents
(FullTCP) and send packets between them.
The error message that you are getting is caused by the "start" and later
the "send" methods that you are using in your code since:

  1.) You are executing the "start" and/or the "send" methods "naked",
meaning that you do not specify a specific time point
   (i.e. $ns at 0.1 "$client_app start", or $ns at 1.2 "$client_app send
100").

  2.) You are not "running" the simulator from within your script at all

This error message means that there is no target defined for the application
that is trying to send the packet, or in other words,
the simulator has not yet actually created the target addresses of the
nodes, since you did not run it. You have to issue AT THE END of your
script, the command $ns run, to actually start the simulator and just before
that command a "finish" command (a procedure) that will actually stop the
simulator at a specific point in (the simulated) time.

In the code below which works, I also include some potentialy helpful
comments.
Just copy+paste the code to a tcl file and run it. Then examine the
traces.tr file to see the packets that your applications have sent
to each other.

#**

# finish proc executed at the end

proc finish {} {
global tf

close $tf
exit 0
}

set ns [new Simulator]

set client [$ns node]
set server [$ns node]

set tf [open traces.tr w]
$ns trace-all $tf

$ns duplex-link $client $server 10Mb 10ms DropTail
$ns duplex-link-op $client $server queuePos 0.5

set client_tcp [new Agent/TCP/FullTcp]
set server_tcp [new Agent/TCP/FullTcp]

#Why do you keep that list?
lappend agents_(source) $client_tcp $server_tcp

#You have to put both of them in listening state in order to have a
bi-directional send-packet flow
#meaning for both applications to send to each other application packets
beyond the acknowledgements

$server_tcp listen
$client_tcp listen

$ns attach-agent $client $client_tcp
$ns attach-agent $server $server_tcp

#You have to connect them only once - The opposite direction is redundant
$ns connect $client_tcp $server_tcp

#You do not need to connect to the opposite direction - erase that line
#$ns connect $server_tcp $client_tcp

#You can also try the Application/FTP subclass if you like.

set client_app [new Application]
$client_app attach-agent $client_tcp

set server_app [new Application]
$server_app attach-agent $server_tcp

#You do not need these as well since you are just sending a single packet -
Nevertheless, with the class Application
#the start method does not do anything. You can go and use the send method
directly. You can use the FTP subclass
#to use the start method, but not concurrently with the send methods below -
either one or the other.

#$ns at 0.0 "$client_app start"
#$ns at 0.1 "$server_app start"

#Just send the packet at the specified time
$ns at 1.0 "$client_app send 100"
$ns at 1.5 "$server_app send 300

#Schedule the finish time
$ns at 3.0 "finish"

#Run (begin) the simulator

$ns run

Hope that I have helped

Regards,

-Fk

On 8/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> -- Forwarded message --
> From: "임인택 (Intaek Lim)" <[EMAIL PROTECTED]>
> To: ns-users@ISI.EDU
> Date: Wed, 23 Aug 2006 11:39:44 +0900
> Subject: [ns] What's wrong with this code?
> Hello, I just wrote simple tcl script for ns but it did not work.
>
> -
>
> set ns [new Simulator]
>
> set client [$ns node]
> set server [$ns node]
>
> $ns duplex-link $client $server 10Mb 10ms DropTail
> $ns duplex-link-op $client $server queuePos 0.5
>
> set client_tcp [new Agent/TCP/FullTcp]
> set server_tcp [new Agent/TCP/FullTcp]
> lappend agents_(source) $client_tcp $server_tcp
>
> $server_tcp listen
>
> $ns attach-agent $client $client_tcp
> $ns attach-agent $server $server_tcp
>
> $ns connect $client_tcp $server_tcp
> $ns connect $server_tcp $client_tcp
>
> set client_app [new Application]
> $client_app attach-agent $client_tcp
>
> set server_app [new Application]
> $server_app attach-agent $server_tcp
>
> $client_app start
> $server_app start
>
> $client_app send 100
>
> _
>
>
> When I run this script, I get an error like below:
>
>
> --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
> _o12: no target for slot -1
> _o12 type: Classifier/Hash/Dest
> content dump:
> classifier _o12
> 0 offset
> 0 shift
> 2147483647 mask
> 1 slots
> slot 0: _o30 (Classifier/Port)
> -1 default
> -- Finished standard no-slot{} default handler --
>
>
>
> Please tell me what should I do.
>
>
> thanks.
>
>
>


-- 
Filippos N Kolovos

Software Systems Analyst & Engineer
M.Sc. (Eng.) in Data Communications

Automation & Netw

[ns] Need 802.11e Implementation For NS2

2006-08-24 Thread hamid reza

Dear All,
We knew that real package of NS 2.27 didnt support
802.11e Protocol. 
Do you have a link for a good package that implemented

802.11e For NS2?

Best Regards
Hamid Reza

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



[ns] how to handle wireless trace files

2006-08-24 Thread marry roselin

Hi All
   
  I am new to NS. I am working with Mobile IP concept. I am using new wireless 
trace file fromat. In this trace file how can i find the predicall transmission 
of beacons and ad's to the mobile nodes from the Agents(HA &FA). where i can 
find the defination for this.
   
  If any one could help me then i will be very thankful
   
  Regards from
  Roselin
  University of Madras
  chennai-India


-
 Here's a new way to find what you're looking for - Yahoo! Answers 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW


[ns] TKN 802.11e RTS/CTS not working ... need help

2006-08-24 Thread Kye Sang Lee

Dear ns users;

 

When the RTS/CTS is enabled, the following trace is obtained;

 

s 10.110075000 _1_ MAC  --- 0 RTS 44 [239e 0 1 0]
r 10.110427170 _0_ MAC  --- 0 RTS 44 [239e 0 1 0]
s 10.110437170 _0_ MAC  --- 0 CTS 38 [2264 1 0 0]
D 10.110741339 _1_ MAC  STA 0 CTS 38 [2264 1 0 0]
s 10.110995000 _1_ MAC  --- 0 RTS 44 [239e 0 1 0]
D 10.111347170 _0_ MAC  BSY 0 RTS 44 [239e 0 1 0]
s 10.112115000 _1_ MAC  --- 0 RTS 44 [239e 0 1 0]
D 10.112467170 _0_ MAC  BSY 0 RTS 44 [239e 0 1 0]
s 10.114015000 _1_ MAC  --- 0 RTS 44 [239e 0 1 0]
D 10.114367170 _0_ MAC  BSY 0 RTS 44 [239e 0 1 0]
s 10.115915000 _1_ MAC  --- 0 RTS 44 [239e 0 1 0]
D 10.116267170 _0_ MAC  BSY 0 RTS 44 [239e 0 1 0]
D 10.116585000 _1_ MAC  RET 0 RTS 44 [239e 0 1 0]
D 10.116585000 _1_ MAC  --- 6 cbr 1060 [13a 0 1 0] --- [1:1 0:1 32 0]
[0] 0 0

 

After I read the code in the file Mac802_11e.cc, I found that other
priorities than priority 0 are not supported. RTS does not convey the
priority information, and the responding node always reply with a priority-0
CTS. Therefore, I guess that the initiating node having a packet with
priority 1, 2, or 3 will have the wrong state (STA in the above trace). The
successive RTS's retransmitted by the initiator are all discarded by the
responder which is waiting DATA packet.

 

I know that TKN group said that they did not test the RTS/CTS mechanism. Is
there anybody who had this experience? Any comments, patch or help will be
appreciated very much. Thank you for reading.

 

K. Lee

[EMAIL PROTECTED]