Generating GOOSE traffic of IEC 61850 with NS3

332 views
Skip to first unread message

ES SALHI Afaf

unread,
Mar 2, 2016, 5:14:10 AM3/2/16
to ns-3-users
Dear ns-3-users,

Im a new user of NS3 simulator. So in my internship context, I want to create a switched ethernet with for example 2 nodes. And then, I want to generate a GOOSE and send it. (GOOSE  is the Payload of the frame which represent an alarm message: this is more explained in the IEC 61850 standard).

So my question is: is there any example of Switched Eth networks in NS3? and how can I access to the frames and define my own paload field?

Thanks in advance :)

Best regards.

Afaf Es-salhi

Tommaso Pecorella

unread,
Mar 2, 2016, 9:40:27 AM3/2/16
to ns-3-users
Hi,

switched ethernet is possible by using a node with bridged interfaces, and there's a work in progress to make it more realistic. Another possibility is to use the Click module, check its examples.
About how to write your own payload, you can use directly the NetDevice Send and specify your own payload. Although not exactly Ethernet, you should take a look at the CsmaNetDevice.

Cheers,

T.

ES SALHI Afaf

unread,
Mar 3, 2016, 8:07:41 AM3/3/16
to ns-3-users
Hi Tommaso Pecorella,

Thank you for you answer :)

I trying to understand the csmaNetDevice model (y)

Cheers,
Afaf

ES SALHI Afaf

unread,
Mar 5, 2016, 9:34:05 AM3/5/16
to ns-3-users
Hi Tommaso,

Please do you have any idea if NS3 supports 802.1q?

Tommaso Pecorella

unread,
Mar 5, 2016, 1:56:33 PM3/5/16
to ns-3-users
Hi,

as far as I know no. However there's a work in progress for a new Ethernet module. I don't know about that one.

Cheers,

T.

ES SALHI Afaf

unread,
Mar 7, 2016, 3:34:27 AM3/7/16
to ns-3-users
Hi Tommaso,

The standard 802.1Q adds a field to the Ethernet header which represents the priority of the packet. There is 3 bits for this, so we have 8 levels of priority.
In the case of my project, i want to simulate for example a network with 2 nodes that can be related by a switch. So all my nodes must support the principe of priority.

I don't know if it's possible on NS3.

In the last mail, you told me to check the click module. So i found this link: https://github.com/kohoumas/click-ns3/blob/master/elements/ethernet/ethervlanencap.hh
They say that this type of device support VLAN: "EtherVLANEncap(ETHERTYPE, SRC, DST, VLAN_TCI [, VLAN_PCP, I<keywords>])"

What do you think?

Thank you Tommaso :)
Have a good day !

Afaf























Le mercredi 2 mars 2016 11:14:10 UTC+1, ES SALHI Afaf a écrit :

Tommaso Pecorella

unread,
Mar 7, 2016, 7:17:58 AM3/7/16
to ns-3-users
Hi,

from a quick check, the ns-3 Ethernet header doesn't seems to be supporting the Q extension, but I could be wrong.
It shouldn't be too hard to add it to the NetDevice (or to a specific sub-layer), but right now it's not used in ns-3.
Anyway, it's a good thing to be added.

Cheers,

T.
Reply all
Reply to author
Forward
0 new messages