INET Routing Table XML Files for IPv6

629 views
Skip to first unread message

Claymore

unread,
Sep 16, 2012, 7:36:16 PM9/16/12
to omn...@googlegroups.com
Can anyone post here, a XML Routing Table configuration file example, with interfaces configuration for IPv6 ? The documentation of INET has no information about IPv6 configuration.

Thanks!

Francesco Palumbo

unread,
Oct 8, 2012, 4:26:54 PM10/8/12
to omn...@googlegroups.com
if you've found a few examples you can share it please?

Carlos Ferreira

unread,
Oct 9, 2012, 6:32:52 AM10/9/12
to omn...@googlegroups.com
Well, I never made any kind of testing but it was told to me that this would work:

In the ned File:
standardHost6: StandardHost6 {
            @display("p=172,325");
            numPingApps = 1;
            interfaceTable.displayAddresses = true;
            routingTable = xmldoc("standardHost6.xml");
        }

In the standardHost6.xml file:
<routingTable>
  <interface name="eth0">
    <inetAddr>"fe80::511:29:22b5:ebb"</inetAddr>
  </interface>
</routingTable>


I  hope it helps :)

--
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp
 
 
 



--

Carlos Miguel Ferreira
Researcher at Telecommunications Institute
Aveiro - Portugal
Work E-mail - c...@av.it.pt
University of Aveiro E-mail -> c...@ua.pt
MSN Contact -> carlosmf.pt@gmail.com
Skype & GTalk -> carlosmf.pt@gmail.com

Eric Gamess

unread,
Oct 14, 2012, 1:02:57 PM10/14/12
to omn...@googlegroups.com
Hello all,

Yes, I also saw a lot of messages in the group that say it should work.
It did not for me. I am using OMNet++ 4.2 and INET 2.0
I am trying to do a simple network with 2 hosts, that is, no router.
The network is depicted bellow. A UDP data traffic sends datagrams from host1 to host2.

        host1-------------------------------host2
        2001::1/64                        2001::2/64

So, I did the following NED, host1.xml, and host2.xml files. When I run it, host1 never get it global unicast address (2001::1/64). Same as host2 (no global unicast address). The hosts get a link-local address, and the UDP datagrams are sent using link-local addresses. Anybody have an idea how to get global unicast addresses to work???

The syntax of the XML files are not documented!!!

Thank you.

Eric.

-------------------------- Begin of NED file --------------------------------
import inet.nodes.ipv6.StandardHost6;
import inet.nodes.ethernet.Eth100M;


network MyNetwork
{
submodules:
   host1: StandardHost6
   {
   parameters:
      @display("p=100,100;i=device/pc2");
      routingTable = xmldoc("host1.xml");

      numUdpApps = 1;
      udpApp[0].typename = "UDPBasicApp";
      udpApp[0].messageLength = 1024 B;
      udpApp[0].sendInterval = 1.0 s;
      udpApp[0].destPort = 8001;
      udpApp[0].destAddresses = "host2";
      udpApp[0].startTime = 30.0 s;

   gates:
      ethg[1];
   }

   host2: StandardHost6
   {
   parameters:
      @display("p=700,100;i=device/pc2");
      routingTable = xmldoc("host2.xml");

      numUdpApps = 1;
      udpApp[0].typename = "UDPSink";
      udpApp[0].localPort = 8001;

   gates:
      ethg[1];
   }

connections:
   host1.ethg[0] <--> Eth100M <--> host2.ethg[0];
}
---------------------- End of NED file --------------------------


---------------------- Begin of host1.xml -------------------------
<routingTable>
  <interface name="eth0">
    <inetAddr>"2001::1"</inetAddr>
  </interface>
</routingTable>
---------------------- End of host1.xml ---------------------------


---------------------- Begin of host2.xml -------------------------
<routingTable>
  <interface name="eth0">
    <inetAddr>"2001::2"</inetAddr>
  </interface>
</routingTable>
---------------------- End of host2.xml ---------------------------

Carlos Ferreira

unread,
Oct 17, 2012, 8:57:31 AM10/17/12
to omn...@googlegroups.com
Yes I also had that same problem :S :S
Despite I believe that omnet++ is a great simulation platform, the lack of documentation in the standard and INET modules is disappointing...
Since (for now) i'm only interested in Wi-fi ad-hoc networks with focus in layer 2, for now this is not a problem.

I hope you have better luck!


--
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp
 
 
 
Reply all
Reply to author
Forward
0 new messages