cannot attach SCTP agent to multiface node
amal kammoun <[email protected]> Mon, 13 Jun 2016 15:38:03 +0100
| Newsgroups | gmane.network.simulator.isi |
|---|---|
| Message-ID | <CADisGu4pK0s2f5SUsPTfUh5kxcdWAeZ9Szt4j0yAG3hgK1Mbyg@mail.gmail.com> |
Hello!
In my scenario, I have two networks: WiMAX and WLAN. A multiface mobile
node will move between those two networks.
The multiface mobile will send a CBR traffic.
I want to attach the *SCTP *agent to the CBR traffic. But I got
"segmentation fault (core dumped) "
The following code represents the initiation of the sctp protocol, the cbr
traffic and what I did to establish the communication:
Agent/MIHUser/IFMNGMT/MIPV6/Handover/Handover1 set debug_ 1
set handover [new Agent/MIHUser/IFMNGMT/MIPV6/Handover/Handover1]
set stcpvideo_ [new Agent/SCTP]
$stcpvideo_ set fid_ 0
set cbrvideo_ [new Application/Traffic/CBR]
$cbrvideo_ set packetSize_ 1000 ;# 1500
$cbrvideo_ set interval_ 0.1
$cbrvideo_ attach-agent $stcpvideo_
set nullvideo_ [new Agent/Null]
set stcpvideo_2 [new Agent/SCTP]
$stcpvideo_2 set fid_ 1
set cbrvideo_2 [new Application/Traffic/CBR]
$cbrvideo_2 set packetSize_ 1000 ;# 1500
$cbrvideo_2 set interval_ 0.1
$cbrvideo_2 attach-agent $stcpvideo_2
set nullvideo_2 [new Agent/Null]
$ns attach-agent $router0 $stcpvideo_
$multiFaceNode_($j) attach-agent $nullvideo_ $iface2_($j)
$ns attach-agent $router0 $nullvideo_2
$multiFaceNode_($j) attach-agent $stcpvideo_2 $iface2_($j)
$multiFaceNode_($j) connect-agent $stcpvideo_ $stcpvideo_2
$iface2_($j)
$handover add-flow $stcpvideo_2 $nullvideo_2 $iface2_($j) 2
$handover add-flow $nullvideo_ $stcpvideo_ $iface2_($j) 1
Thank you!
Regards.