[Click] ping with ns3click

Ruben Merz ruben at net.t-labs.tu-berlin.de
Tue Jul 24 15:20:04 EDT 2012


Hi Joerg,

Come over to ns-developers at isi.edu, as this seems to be an ns-3 issue. 
Btw, do you have an ns-3 simulation script I can use to reproduce the 
problem ?

R

On 7/24/12 20:40 , Jörg Kaiser wrote:
> Hi,
>
> I'm using ns3 with the ns3click integration. When I try to use ns3's
> ping-application, it will noch work with a ClickInternetStack but only
> with a regular one. Other applications like a udp-server/client setup
> work fine with both.
>
> --------------------------------
> this DOES NOT work
>
>       V4PingHelper ping (Ipv4Address ("172.16.1.2"));
>         ping.SetAttribute ("Verbose", BooleanValue (true));
>       ApplicationContainer p = ping.Install (wifiNodes.Get (0));
>
> ERROR:
> assert failed. cond="socketFactory != 0",
> file=../src/network/model/socket.cc, line=62
>
>
>
> this DOES work
>
>         uint16_t port = 4000;
>         UdpServerHelper server (port);
>         ApplicationContainer apps = server.Install (wifiNodes.Get(0));
>         apps.Start (Seconds (1.0));
>         apps.Stop (Seconds (10.0));
>
> ------------------------------
>
> I could narrow down the problem a little bit:
>
>
> in V4ping.cc:
>
>        m_socket = Socket::CreateSocket (GetNode (), TypeId::LookupByName
> ("ns3::Ipv4RawSocketFactory"));
>
> this fails as the node seems to be unable to create a IPv4RawSocket.
>
>
>
> in udp-server.cc:
>
>       TypeId tid = TypeId::LookupByName ("ns3::UdpSocketFactory");
>         m_socket = Socket::CreateSocket (GetNode (), tid);
>
>
> exactly the same, but he can create an UdpSocket.
>
>
>
>
>
> Did anybody solve this problem? Thanks for helping me!!!
>
>
> Joerg
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>




More information about the click mailing list