Random Packet Generator

181 views
Skip to first unread message

Sampath

unread,
Mar 9, 2021, 12:14:36 AM3/9/21
to ns-3-users
Hi Everyone,

I have combined onOffApplication and this guide to build a simple random packet generator. It can set random distributions to the packet size and packet interval. 


Hope it will be useful and I am more than happy to get any feedback. 

Thank you.
Best regards,
Sampath

SMalta

unread,
May 3, 2021, 5:51:25 AM5/3/21
to ns-3-users
Hi Sampath,

Thank you for sharing your Code with the community.
I am using it on my research.

BR
Smalta

Doc Stone

unread,
May 7, 2021, 8:36:29 AM5/7/21
to ns-3-users
thank you very much bro for your contribution

Muhammad Haris

unread,
Jun 18, 2021, 1:34:05 AM6/18/21
to ns-3-users
Thank you so much for sharing the code, 

I am facing the error, the screenshot is attached, please help.
error.png

Sampath

unread,
Jun 20, 2021, 4:25:10 AM6/20/21
to ns-3-users
Hi there,

I am sorry I forgot to add the steps to update the wscript file. Please follow these steps. 

1. Go to ..../src/applications folder
2. You will find wscript file
3. Add the following 4 lines 

image.png

Let me know how it goes. 

Thanks,
Sampath 

Muhammad Haris

unread,
Jun 20, 2021, 1:40:48 PM6/20/21
to ns-3-...@googlegroups.com
Hi,

I checked         
'test/bulk-send-application-test-suite.cc' 
Screenshots are attached Please have a look. 

Thanks 



Mailtrack Sender notified by
Mailtrack 06/20/21, 10:38:25 PM

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/4ed2fde2-6635-4c79-a616-93a28318e6bfn%40googlegroups.com.
test.png
cmd.png

Sampath

unread,
Jun 21, 2021, 1:27:06 AM6/21/21
to ns-3-users
Hi,

You got to add the random-application.cc,  random-application.h, random-helper.cc, random-helper.h to the sources. 
You do not need to change the tests. 

Thanks,
Sampath

Reply all
Reply to author
Forward
0 new messages