Sorry for mailing again (because of wrong title)

Dear Users,


I tried to find out the solution for bi-directional UDP traffic simulation,
but I couldn't find it yet.

There are some answers on mailing list for this, but it didn't work for me.
http://mailman.isi.edu/pipermail/ns-users/2006-August/056888.html

http://mailman.isi.edu/pipermail/ns-users/2008-April/062783.html

How can I simulate bi-directional traffic like VoIP.

When I generate UDP traffic on both node like bellow (actually, not only
for UDP, all other agents have same problem),

------------------------------------------------
    set udp_(0) [new Agent/UDP]
    $udp_(0) set packetSize_ 100
    $udp_(0) set prio_ 7
    $ns attach-agent $node_(0) $udp_(0)
    set cbr_(0) [new Application/Traffic/CBR]
    $cbr_(0) attach-agent $udp_(0)
    $cbr_(0) set interval_ 10ms
    $cbr_(0) set packetSize_ 100
    set udpnull_(0) [new Agent/Null]
    $ns attach-agent $node_(1) $udpnull_(0)
    $ns connect $udp_(0) $udpnull_(0)
    $ns at $start "$cbr_(0) 0.000001"

    set udp_(1) [new Agent/UDP]
    $udp_(1) set packetSize_ 100
    $udp_(1) set prio_ 7
    $ns attach-agent $node_(1) $udp_(1)
    set cbr_(1) [new Application/Traffic/CBR]
    $cbr_(1) attach-agent $udp_(1)
    $cbr_(1) set interval_ 10ms
    $cbr_(1) set packetSize_ 100
    set udpnull_(1) [new Agent/Null]
    $ns attach-agent $node_(0) $udpnull_(1)
    $ns connect $udp_(1) $udpnull_(1)
    $ns at $start "$cbr_(1) 0.000011"

    Simply,
    Node_(0)-CBR0-UDP0 -----> Null0-Node_(1)
    Node_(0)-Null1 <----- UDP1-CBR1-Node_(1)
------------------------------------------------

I met a segmentation fault 

I look forward to your good solution.

For your information, my NS version is ns-2.30.

Thank you.




Reply via email to