Re: [ns] [NS-ANS] Re: help regarding ARQ

2011-04-12 Thread amareswararao k

Thank you very much for the replay
But I want to implement to wireless model I am using 802.11 as mac protocol
If you have any idea please replay



From: "Teerawat@UBC" 
To: amareswararao k 
Cc: "ns-users@isi.edu" 
Sent: Tuesday, 12 April 2011 7:46 AM
Subject: Re: [NS-ANS] Re: [ns]  help regarding ARQ

HI,

If you are interested in implementing ARQ in NS2, please read

http://www.ns2ultimate.com/post/1539258323/arq-module-program-update

Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http://www.t-issariyakul.blogspot.com
http://www.ece.ubc.ca/~teerawat



On Apr 11, 2011, at 11:52 PM, amareswararao k wrote:

> 
> could any one please give me a suggestion about link layer ARQ
> or any website
> 


Re: [ns] help regarding ARQ

2011-04-11 Thread amareswararao k

could any one please help me how to use LL/Arq for wireless nodes
any suggestion is appreciated



From: amareswararao k 
To: "ns-users@isi.edu" 
Sent: Monday, 11 April 2011 10:22 PM
Subject: [ns]  help regarding ARQ


[ns] help regarding ARQ

2011-04-11 Thread amareswararao k

could any one please give me a suggestion about link layer ARQ
or any website


[ns] how to drop lowest priority packets

2011-04-05 Thread amareswararao k

Hi all,
I want to drop lowest priority packets.
But I don't know which queue to use to do that operation 
please replay me urgent 
Thanks in advance


[ns] help regarding error model

2011-04-04 Thread amareswararao k

Hi everybody,
I want to add busty wireless losses to wireless channel .
I am using two state Markov model as below

#Make wireless link error model for random packet drop : two states markoverror 
model没有用到
proc TwoStateMarkovErr {} {
global loss_rate
set tmp0 [new ErrorModel/Uniform 0 pkt]
set tmp1 [new ErrorModel/Uniform 1 pkt]
# Array of states (error models)
set m_states [list $tmp0 $tmp1]
# Durations for each of the states, tmp, tmp1 and tmp2, respectively
set m_periods [list 0.05 0.05]
# Transition state model matrix
set m_transmx { {0.8 0.2} {0.8 0.2} }
set m_trunit pkt
# Use time-based transition
set m_sttype time
set m_nstates 2
set m_nstart [lindex $m_states 0]
set em [new ErrorModel/MultiState $m_states $m_periods $m_transmx \
$m_trunit $m_sttype $m_nstates $m_nstart]
return $em
}
But i don't know exactly what it does and i am not getting any packet loss also.
please help me to get wireless busty losses.
Any suggestion is appreciated.

[ns] stack error while using TFRC sink

2011-03-18 Thread amareswararao k

Hi all,
i am getting following error when i am using  [new Agent/TFRCSink]


*** stack smashing detected ***: ns terminated
=== Backtrace: =
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0x754de8]
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0x754da0]
ns(_ZN8CMUTrace10nam_formatEP6Packeti+0xbc0)[0x82a84b8]
ns(_ZN8CMUTrace6formatEP6PacketPKc+0x6b)[0x82a852f]
ns(_ZN8CMUTrace4recvEP6PacketP7Handler+0x71)[0x82a8853]
ns(_ZN5Agent4sendEP6PacketP7Handler+0x2c)[0x81c2364]
ns(_ZN13TfrcSinkAgent7sendpktEd+0x19a)[0x83080ce]
ns(_ZN13TfrcSinkAgent7nextpktEd+0x24)[0x8307ed2]
ns(_ZN13TfrcSinkAgent4recvEP6PacketP7Handler+0x897)[0x8307c71]
ns(_ZN9Connector4sendEP6PacketP7Handler+0x2c)[0x81b89dc]
ns(_ZN8CMUTrace4recvEP6PacketP7Handler+0xb9)[0x82a889b]
ns(_ZN10Classifier4recvEP6PacketP7Handler+0x55)[0x81bc20f]
ns(_ZN10Classifier4recvEP6PacketP7Handler+0x55)[0x81bc20f]
ns(_ZN10Classifier4recvEP6PacketP7Handler+0x55)[0x81bc20f]
ns(_ZN10Classifier4recvEP6PacketP7Handler+0x55)[0x81bc20f]
ns(_ZN14HierClassifier4recvEP6PacketP7Handler+0x30)[0x831d02c]
ns(_ZN8NsObject6handleEP5Event+0x27)[0x81b3ecb]
ns(_ZN9Scheduler8dispatchEP5Eventd+0x95)[0x81b0c5b]
ns(_ZN9Scheduler3runEv+0x2c)[0x81b0b8e]
ns(_ZN9Scheduler7commandEiPKPKc+0x6b)[0x81b0d3d]
ns(_ZN8TclClass12dispatch_cmdEPvP10Tcl_InterpiPPKc+0x32)[0x83dc05e]
ns[0x83e1ea7]
ns(TclInvokeStringCommand+0x6e)[0x83e494e]
ns(TclEvalObjvInternal+0x35b)[0x83e665b]
ns[0x8412baa]
ns(TclCompEvalObj+0xdd)[0x841717d]
ns[0x8412a43]
ns(TclCompEvalObj+0xdd)[0x841717d]
ns(TclObjInterpProc+0x2a7)[0x84413a7]
ns(TclProcInterpProc+0x80)[0x8441860]
ns[0x83e20cf]
ns(TclInvokeStringCommand+0x6e)[0x83e494e]
ns(TclEvalObjvInternal+0x35b)[0x83e665b]
ns[0x8412baa]
ns(TclCompEvalObj+0xdd)[0x841717d]
ns(TclObjInterpProc+0x2a7)[0x84413a7]
ns(TclProcInterpProc+0x80)[0x8441860]
ns[0x83e1ea7]
ns(TclInvokeStringCommand+0x6e)[0x83e494e]
ns(TclEvalObjvInternal+0x35b)[0x83e665b]
ns(Tcl_EvalEx+0x4fc)[0x83e72fc]
ns(Tcl_FSEvalFile+0x243)[0x84304a3]
ns(Tcl_Main+0x357)[0x8433b37]
ns(nslibmain+0x20)[0x83db0bc]
ns(main+0x1b)[0x83db22f]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x68ab56]
ns[0x81aa361]
=== Memory map: 
0011-00112000 r-xp  08:05 1106019    /usr/lib/libXau.so.6.0.0
00112000-00113000 r--p 1000 08:05 1106019    /usr/lib/libXau.so.6.0.0
00113000-00114000 rw-p 2000 08:05 1106019    /usr/lib/libXau.so.6.0.0
0011b000-0011d000 r-xp  08:05 1123562    
/lib/tls/i686/cmov/libdl-2.10.1.so
0011d000-0011e000 r--p 1000 08:05 1123562    
/lib/tls/i686/cmov/libdl-2.10.1.so
0011e000-0011f000 rw-p 2000 08:05 1123562    
/lib/tls/i686/cmov/libdl-2.10.1.so
0011f000-0013b000 r-xp  08:05 1107051    /usr/lib/libxcb.so.1.1.0
0013b000-0013c000 r--p 0001c000 08:05 1107051    /usr/lib/libxcb.so.1.1.0
0013c000-0013d000 rw-p 0001d000 08:05 1107051    /usr/lib/libxcb.so.1.1.0
00388000-004b2000 r-xp  08:05 1106013    /usr/lib/libX11.so.6.2.0
004b2000-004b3000 ---p 0012a000 08:05 1106013    /usr/lib/libX11.so.6.2.0
004b3000-004b4000 r--p 0012a000 08:05 1106013    /usr/lib/libX11.so.6.2.0
004b4000-004b6000 rw-p 0012b000 08:05 1106013    /usr/lib/libX11.so.6.2.0
004b6000-004b7000 rw-p  00:00 0 
004d7000-004ea000 r-xp  08:05 1123567    
/lib/tls/i686/cmov/libnsl-2.10.1.so
004ea000-004eb000 r--p 00012000 08:05 1123567    
/lib/tls/i686/cmov/libnsl-2.10.1.so
004eb000-004ec000 rw-p 00013000 08:05 1123567    
/lib/tls/i686/cmov/libnsl-2.10.1.so
004ec000-004ee000 rw-p  00:00 0 
005b4000-005d8000 r-xp  08:05 1123564    
/lib/tls/i686/cmov/libm-2.10.1.so
005d8000-005d9000 r--p 00023000 08:05 1123564    
/lib/tls/i686/cmov/libm-2.10.1.so
005d9000-005da000 rw-p 00024000 08:05 1123564    
/lib/tls/i686/cmov/libm-2.10.1.so
005fa000-005fe000 r-xp  08:05 1106030    /usr/lib/libXdmcp.so.6.0.0
005fe000-005ff000 rw-p 3000 08:05 1106030    /usr/lib/libXdmcp.so.6.0.0
00674000-007b2000 r-xp  08:05 1123556    
/lib/tls/i686/cmov/libc-2.10.1.so
007b2000-007b4000 r--p 0013e000 08:05 1123556    
/lib/tls/i686/cmov/libc-2.10.1.so
007b4000-007b5000 rw-p 0014 08:05 1123556    
/lib/tls/i686/cmov/libc-2.10.1.so
007b5000-007b8000 rw-p  00:00 0 
00926000-00934000 r-xp  08:05 1106032    /usr/lib/libXext.so.6.4.0
00934000-00935000 r--p d000 08:05 1106032    /usr/lib/libXext.so.6.4.0
00935000-00936000 rw-p e000 08:05 1106032    /usr/lib/libXext.so.6.4.0
00b55000-00b56000 r-xp  00:00 0          [vdso]
00c48000-00d2e000 r-xp  08:05 1109340    /usr/lib/libstdc++.so.6.0.13
00d2e000-00d32000 r--p 000e6000 08:05 1109340    /usr/lib/libstdc++.so.6.0.13
00d32000-00d33000 rw-p 000ea000 08:05 1109340    /usr/lib/libstdc++.so.6.0.13
00d33000-00d3a000 rw-p  00:00 0 
00d65000-00d8 r-xp  08:05 1119479    /lib/ld-2.10.1.so
00d8-00d81000 r--p 0001a000 08:05 1119479    /lib/ld-2.10.1.so
00d81000-00d82000 rw-p 0001b000 08:05 1119479    /lib/ld-2.10.1.so
00f96000-00fb2000 r-xp  08:05

[ns] help example tcl program for RTP and RTCP

2011-03-15 Thread amareswararao k

hi all,
 could any any one please give me a tcl program which uses RTP (sender) and 
RTCP (receiver) .
i am using ns 2.34
thanks in advance



[ns] how to set distance of coverage of base station

2011-03-13 Thread amareswararao k


hi all,
could u please tell me how to set distance of coverage of a base station. 
thanks in advance



[ns] how to set distance of coverage of base station and its position

2011-03-13 Thread amareswararao k

hi all,
 when i am trying to set the positions of base station using below
# Create HA and FA
# Position (fixed) for base-station nodes (HA & FA).
set HA [$ns_ node 1.0.0]
$HA random-motion 0
$HA set X_ [expr $opt(x)/2-50]
$HA set Y_ [expr $opt(y)/2-50]
$HA set Z_ 0.

set FA [$ns_ node 2.0.0]

$FA random-motion 0
$ns_ at 0.0 "$HA label HA"
$ns_ at 0.0 "$FA label FA"

$FA set X_ [expr $opt(x)/2+50]
$FA set Y_ [expr $opt(y)/2-50]
$FA set Z_ 0.

 but in nam, only FA base station is at the specified location HA position is 
varying if link delay changes .
 i don't know how it is happening so please help me to set the positions of 
base stations  
thanks in advance 



[ns] how to find energy consumed to transfer from src to dst for each packet

2011-03-02 Thread amareswararao k

hi all,
 I am working on energy efficient wireless network. i want to know how much 
energy consumed for each packet in the entire path.
i don't know how to implement it. i have already spent so much time.

any help is appreciated. 

thanks in advance.