This question is from our friend Shujaat
In our course we have studied TCP Agent for one way transmission by
sender (which obey different congestion and error control
techniques)and sink(receiver). If we want to transmitt in two ways. Is
is possible to transmit in 2 ways in NS2?
If possible then how?
3 comments:
(Hasanain/106000) The category of TCP agent as two-way agent is an open and hot area of research in NS2 and is still under the development. The things are not finalize yet but one thing is clear that it must be symmetric in the sense that it represents both a sender and receiver. In this regard the proposed object for two-way agent is Agent/TCP/FullTcp, which will be a new addition to the suite of TCP agents in NS2. It differs from the existing agents in the following ways
-connections may be established and town down (SYN/FIN packets are exchanged)
-bidirectional data transfer is supported
-sequence numbers are in bytes rather than packets
As it is under development, so currently it is not possible to transmit in 2 ways in NS2 but in near future we can expect to do it
set tcp1 [new Agent/TCP/FullTcp]
set tcp2 [new Agent/TCP/FullTcp]
$ns attach-agent $n1 $tcp1
$ns attach-agent $n2 $tcp2
$ns connect $tcp1 $tcp2
$tcp2 listen
Using [new Agent/TCP/FullTcp] seems to be a lot easier, isnt' it?
Post a Comment