NED File src/common/channels.ned

Name Type Description
simple_ethernetline channel

Ethernet channel for SimpleUnderlay

simple_ethernetline_lossy channel

Ethernet channel with packet loss for SimpleUnderlay

simple_dsl channel

DSL channel for SimpleUnderlay

simple_dsl_lossy channel

DSL channel with packet loss for SimpleUnderlay

simple_dialup_56k channel

56k modem channel for SimpleUnderlay

inet_fiberline channel

Fiberline channel for InetUnderlay

inet_ethernetline channel

Ethernet channel for InetUnderlay

inet_ethernetline_lossy channel

Ethernet channel with packet loss for InetUnderlay

inet_dsl channel

DSL channel for InetUnderlay

inet_dsl_lossy channel

DSL channel with packet loss for InetUnderlay

inet_dialup_56k channel

56k modem channel for InetUnderlay

Source code:

package oversim.common;

// Ethernet channel for SimpleUnderlay
channel simple_ethernetline extends ned.DatarateChannel
{
    parameters:
        delay = 0ms;
        datarate = 10Mbps;
}

// Ethernet channel with packet loss for SimpleUnderlay
channel simple_ethernetline_lossy extends ned.DatarateChannel
{
    parameters:
        delay = 0ms;
        datarate = 10Mbps;
        ber = 1e-5;
}

// DSL channel for SimpleUnderlay
channel simple_dsl extends ned.DatarateChannel
{
    parameters:
        delay = 20ms;
        datarate = 1Mbps;
}

// DSL channel with packet loss for SimpleUnderlay
channel simple_dsl_lossy extends ned.DatarateChannel
{
    parameters:
        delay = 20ms;
        datarate = 1Mbps;
        ber = 1e-5;
}

// 56k modem channel for SimpleUnderlay
channel simple_dialup_56k extends ned.DatarateChannel
{
    parameters:
        delay = 0ms;
        datarate = 56kbps;
}

// Fiberline channel for InetUnderlay
channel inet_fiberline extends ned.DatarateChannel
{
    parameters:
        delay = 1ms;
        datarate = 10Gbps;
}

// Ethernet channel for InetUnderlay
channel inet_ethernetline extends ned.DatarateChannel
{
    parameters:
        delay = 10ms;
        datarate = 10Mbps;
}

// Ethernet channel with packet loss for InetUnderlay
channel inet_ethernetline_lossy extends ned.DatarateChannel
{
    parameters:
        delay = 10ms;
        datarate = 10Mbps;
        ber = 1e-5;
}

// DSL channel for InetUnderlay
channel inet_dsl extends ned.DatarateChannel
{
    parameters:
        delay = 30ms;
        datarate = 1Mbps;
}

// DSL channel with packet loss for InetUnderlay
channel inet_dsl_lossy extends ned.DatarateChannel
{
    parameters:
        delay = 30ms;
        datarate = 1Mbps;
        ber = 1e-5;
}

// 56k modem channel for InetUnderlay
channel inet_dialup_56k extends ned.DatarateChannel
{
    parameters:
        delay = 220ms;
        datarate = 56kbps;
}