[ns] How to perform actual data transmission in NS2?
Teerawat Issariyakul
teerawat at ece.ubc.ca
Tue Oct 21 21:18:28 PDT 2008
Dear Ying,
In fact, NS2 can transmit actual data. But NS2 does not usually transfer
the entire file because it does not have to. What NS2 does is to specify
the file size and simulation the time that the time that the entire file
is received (of course there are details that I omit to say here).
You may use C++ class AppDataType and/or AppData (see file
~ns/common/ns-process.h,cc) to store the entire file. There is a string
which can be used to store anything you want.
For the information about classifier, please refer to chapter 8 of the
book from Springer:
T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator
NS2", Springer 2008.
Here is the link:
http://www.springer.com/engineering/signals/book/978-0-387-71759-3
You might also find the following slide useful:
http://www.ece.ubc.ca/~teerawat/NS2.htm<http://www.ece.ubc.ca/%7Eteerawat/NS2.htm>
Best,
Teerawat
On 10/21/2008, "Zhang Shangying" <shangyingzh at gmail.com> wrote:
>
>Hi everyone,
>
> Someone told me that original NS2 can't perform any actual data
>transmission,i.e., transmitting a text file from a source to a sink. Is it
>ture? If the latest NS2 still can't do so, does anyone have a suggestion on
>how to extend NS2 to do so?
> Thanks in advance!
>
> Best regards
>
> Ying
>
More information about the Ns-users
mailing list