Make new protocol from existing library

91 views
Skip to first unread message

TRUC PHUONG HOANG PHAM

unread,
Dec 21, 2016, 10:17:35 PM12/21/16
to ns-3-users
Hi all,

I need to input new protocol (Blockchain protocol) to NS-3 and doing some test.

I had the source code and library for Blockchain protocol.

And I also compile it to shared library.

So please show me how to attach and make it work with NS-3.
Could we can use direct execute code framework for solve it.

Thanks & Regards,

Phuong

Konstantinos

unread,
Dec 22, 2016, 5:34:07 AM12/22/16
to ns-3-users
Hi,

The manual explains how you can create a new module or extend an existing one

Using external libraries is also possible


Regards
K
Message has been deleted

TRUC PHUONG HOANG PHAM

unread,
Dec 22, 2016, 5:59:17 AM12/22/16
to ns-3-...@googlegroups.com
Hi Mr. Knostantinos,

In additional question, I don't know that NS-3 create a real virtual enviroment for each node( like VMWare, virtual box), or just logical set of cases.

Because my library contains real protocol and work on real machine ( each node is a machine follow Mac Address ).

So I don't know that Can I create a private network with Blockchain protocol by NS-3.

And could I can use direct code execution for load my shared library?

Thanks & Best Regards,

Phuong.

--
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 a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/UeMem5gOw84/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.



--
Hoang Pham Truc Phuong
Master in Quantitative & Computational Finance(QCF) 
Tel: 0908.624.115

TRUC PHUONG HOANG PHAM

unread,
Dec 22, 2016, 6:02:11 AM12/22/16
to ns-3-users
Hi Mr. Knostantinos,

In additional question, I don't know that NS-3 create a real virtual enviroment for each node( like VMWare, virtual box), or just logical set of cases.

Because my library contains real protocol and work on real machine ( each node is a machine follow Mac Address ).

So I don't know that Can I create a private network with Blockchain protocol by NS-3.

And could I can use direct code execution for load my shared library?

Thanks & Best Regards,

Phuong.

Vào 17:34:07 UTC+7 Thứ Năm, ngày 22 tháng 12 năm 2016, Konstantinos đã viết:

Konstantinos

unread,
Dec 22, 2016, 7:27:55 AM12/22/16
to ns-3-users
Hi,

No, ns-3 does not create real/virtual nodes. They are instances of the ns3::Node class.
I understand that the library is a 'real protocol', but that does not mean you can not use it with ns-3. If the only requirement is a MAC address, ns-3 can provide that.
You can also use DCE to run real Linux implementations of protocols/applications on ns-3 nodes.
It all depends on the library you have. 

Regards,
K

TRUC PHUONG HOANG PHAM

unread,
Dec 22, 2016, 10:01:12 PM12/22/16
to ns-3-users
Hi,

My library contain a real protocol.

It create a peer-to-peer network based on MacAdress.

So if ns-3 doesn't create a virtual enviroment, why can it call my library?

It means when i call my library, It will create a new peer-to-peer node in real machine, right?

So It means the first node will use the MacAdress of realmachine. And the second node can't create on the same real machine with the same MAC.

With ns3-dce, it will run my lib on real machine. So i also meet the same problem.

Please let me know how to solve and if you have any document or link to reference please let me know.

Thanks & Best Regards,

Phuong Hoang.

Vào 19:27:55 UTC+7 Thứ Năm, ngày 22 tháng 12 năm 2016, Konstantinos đã viết:
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages