Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.protocols.tcp-ip    |    TCP and IP network protocols.    |    14,669 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 14,153 of 14,669    |
|    malakbena4@gmail.com to All    |
|    Ping Example    |
|    18 Feb 15 02:44:34    |
   
   Hi all,   
      
   I'm still new in OMNeT++, please someone can help me;   
   I'm triying to simulate a simple ping test between two StandardHosts,   
      
   there is my file.ned:   
      
   import inet.nodes.inet.StandardHost;   
   import ned.DatarateChannel;   
   import inet.networklayer.autorouting.ipv4.FlatNetworkConfigurator;   
      
   network connexionPing   
   {   
    types:   
      
    channel ethernetline extends DatarateChannel   
    {   
    delay = 0.1us;   
    datarate = 10Mbps;   
    }   
    submodules:   
    standardHost2: StandardHost {   
    @display("p=111,43");   
    }   
    standardHost1: StandardHost {   
    @display("p=309,43");   
    }   
    flatNetworkConfigurator: FlatNetworkConfigurator {   
    @display("p=215,108");   
    networkAddress = default("192.168.1.0");   
    netmask = default("255.255.255.0");   
    }   
    connections:   
    standardHost1.ethg++ <--> ethernetline <--> standardHost2.ethg++;   
   }   
      
   and the simulation stopped at Event #5 :   
      
   ** Event #1 t=0 connexionPing.standardHost2.networkLayer.ip, on   
   `RegisterProtocol'   
   ** Event #2 t=0 connexionPing.standardHost1.networkLayer.ip, on   
   `RegisterProtocol'   
   ** Event #3 t=0 connexionPing.standardHost2.networkLayer.ip, on   
   `RegisterProtocol'   
   ** Event #4 t=0 connexionPing.standardHost1.networkLayer.ip, on   
   `RegisterProtocol'   
    No more events -- simulation ended at event #5, t=0.   
   ** Calling finish() methods of modules   
      
   Could you help me where should I initialize the process   
   Thanks in advance.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca