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 encoder_interface got a frame from the encoder. Similarly for the decoder. I created a decoder_interface class was a subclass of Application that received frames, noted the time, converted ns-2 time to real-time, and sent frames to the decoder via a socket according to real time. (Basic playout-buffering.) The codec_frame was a subclass of class AppData. For full-duplex connections, you can attach one encoder_interface application and one decoder_interface application to each of the end-points. -Samarth.
lekkie omotayo <[EMAIL PROTECTED]> wrote: Sup guyz, I need to write a new Traffic generator(VoIP) on the existing CBR. I need to change stuffs like the VoIP payload size = 24 bytes IP header = 20 bytes RTP Header = 12 bytes UDP Header = 8 bytes IP Packet Size 64 bytes Time Interval = 20 ms I will like to the traffic to be two, that when node 0 initiates the traffic node receives and node 2 shld also be able to send traffics to node 0 during the same session. Some like a duplex voice conversation. I need to know the classes to create, the ones to extend, the OTcl objects to create and extend, and also how to link the two together. Thanks --------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.