Re: [ns] Extending CBR to VoIP

2006-07-05 Thread Samarth Shah
I added a real ITU-T codec to the ns-2 simulator to do this. I created a "encoder_interface" class as a subclass of class Application. I connected the encoder_interface class to the encoder using a socket. Every 20ms, the encoder_interface timer (subclass of TimerHandler) went off and the enco

[ns] Elliott-Gilbert TwoState Markov error model

2006-02-04 Thread Samarth Shah
Hi, I am trying to simulate an Elliott-Gilbert two-state error model in 802.11 in which the ratio of the time spent in good vs. bad states is 10:1. I am using the following tcl code: proc tserr {} { set rvgood [new RandomVariable/Exponential] $rvgood set avg_ 10.0 set rvbad [new Rand

[ns] Asymmetric uplink/downlink packet loss?

2006-02-07 Thread Samarth Shah
Hi, I'm simulating a wired-cum-wireless scenario. I'm attaching a loss model to all the wireless nodes (including the base-station) by adding the line "-IncomingErrProc my_err_proc" to the node-config. Now, I have 3 uplink and 3 downlink CBR flows with very small packet sizes (30B).