NED File examples/inet/kidsnw1/KIDSNw1.ned

Name Type Description
KIDSNw1 network (no description)

Source code:

//
// Copyright (C) 2000 Institut fuer Telematik, Universitaet Karlsruhe
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//




package inet.examples.inet.kidsnw1;

import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
import inet.node.inet.Router;
import inet.node.inet.StandardHost;
import ned.DatarateChannel;


network KIDSNw1
{
    types:
        channel ethernet extends DatarateChannel
        {
            delay = normal(0.00015s, 0.00005s);
            datarate = 10Mbps;
        }
        channel fiberrouterline extends DatarateChannel
        {
            delay = normal(0.000001s, 0.0000001s);
            datarate = 512Mbps;
        }
    submodules:
        host1: StandardHost {
            parameters:
                @display("p=101,307,row;i=device/pc2");
        }
        host2: StandardHost {
            parameters:
                @display("p=202,307,row;i=device/pc2");
        }
        host3: StandardHost {
            parameters:
                @display("p=368,307,row;i=device/pc2");
        }
        // First Hop Router
        fhrouter1: Router {
            parameters:
                @display("p=154,222,row,130");
        }
        fhrouter2: Router {
            parameters:
                @display("p=358,222,row,130");
        }
        // InteriorRouter
        irouter: Router {
            parameters:
                @display("p=167,142");
        }
        // Border Gateway Router
        bgrouter3: Router {
            parameters:
                @display("p=193,70,row");
        }
        bgrouter4: Router {
            parameters:
                @display("p=329,101,row");
        }
        configurator: IPv4NetworkConfigurator {
            parameters:
                @display("p=93,22");
        }
    connections:
        // host connections
        host1.pppg++ <--> ethernet <--> fhrouter1.pppg++;
        host2.pppg++ <--> ethernet <--> fhrouter1.pppg++;
        host3.pppg++ <--> ethernet <--> fhrouter2.pppg++;

        // router connections
        fhrouter1.pppg++ <--> fiberrouterline <--> irouter.pppg++;
        irouter.pppg++ <--> fiberrouterline <--> bgrouter3.pppg++;
        bgrouter3.pppg++ <--> fiberrouterline <--> bgrouter4.pppg++;
        bgrouter4.pppg++ <--> fiberrouterline <--> fhrouter2.pppg++;
}