Network Http10Servers

Package: inet.examples.httptools.socket.tenserverssocket
File: examples/httptools/socket/tenserverssocket/tenservers.ned

10-nodes test scenario for sockets.

The scenario consists of a number of clients and 10 servers connected to two routers. The routers are connected with a single link.

IPv4NetworkConfigurator HttpController Router Router StandardHost StandardHost StandardHost StandardHost StandardHost StandardHost StandardHost StandardHost StandardHost StandardHost StandardHost

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Parameters:

Name Type Default value Description
numclients double 10

Properties:

Name Value Description
isNetwork
display bgb=939,624

Unassigned submodule parameters:

Name Type Default value Description
configurator.minLinkWeight double 1E-3
configurator.config xml xml("")

XML configuration parameters for IP address assignment and adding manual routes

configurator.assignAddresses bool true

assign IP addresses to all interfaces in the network

configurator.assignDisjunctSubnetAddresses bool true

avoid using the same address prefix and netmask on different links when assigning IP addresses to interfaces

configurator.addStaticRoutes bool true

add static routes to the routing tables of all nodes to route to all destination interfaces (only where applicable; turn off when config file contains manual routes)

configurator.addDefaultRoutes bool true

add default routes if all routes from a source node go through the same gateway (used only if addStaticRoutes is true)

configurator.addSubnetRoutes bool true

add subnet routes instead of destination interface routes (only where applicable; used only if addStaticRoutes is true)

configurator.optimizeRoutes bool true

optimize routing tables by merging routes, the resulting routing table might route more packets than the original (used only if addStaticRoutes is true)

configurator.dumpTopology bool false

print extracted network topology to the module output

configurator.dumpLinks bool false

print recognized network links to the module output

configurator.dumpAddresses bool false

print assigned IP addresses for all interfaces to the module output

configurator.dumpRoutes bool false

print configured and optimized routing tables for all nodes to the module output

configurator.dumpConfig string ""

write configuration into the given config file that can be fed back to speed up subsequent runs (network configurations)

controller.events string ""

Popularity modification events defintion file.

controller.eventsSection string ""

Section within the popularity modification file, if one is defined.

controller.config xml

XML configuration file.

router_c.status.initialStatus string "UP"

TODO @signal, @statistic

router_c.routingTable.forwarding bool
router_c.routingTable.multicastForwarding bool
router_c.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

router_c.pcapRecorder.verbose bool false

whether to log packets on the module output

router_c.pcapRecorder.pcapFile string ""

the PCAP file to be written

router_c.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

router_c.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

router_c.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

router_c.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

router_c.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

router_c.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

router_c.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

router_c.lo0.lo.mtu int 4470B
router_c.bgp.interfaceTableModule string

The path to the InterfaceTable module

router_c.bgp.routingTableModule string
router_c.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
router_c.bgp.dataTransferMode string
router_s.status.initialStatus string "UP"

TODO @signal, @statistic

router_s.routingTable.forwarding bool
router_s.routingTable.multicastForwarding bool
router_s.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

router_s.pcapRecorder.verbose bool false

whether to log packets on the module output

router_s.pcapRecorder.pcapFile string ""

the PCAP file to be written

router_s.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

router_s.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

router_s.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

router_s.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

router_s.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

router_s.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

router_s.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

router_s.lo0.lo.mtu int 4470B
router_s.bgp.interfaceTableModule string

The path to the InterfaceTable module

router_s.bgp.routingTableModule string
router_s.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
router_s.bgp.dataTransferMode string
client.status.initialStatus string "UP"

TODO @signal, @statistic

client.routingTable.forwarding bool
client.routingTable.multicastForwarding bool
client.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

client.pcapRecorder.verbose bool false

whether to log packets on the module output

client.pcapRecorder.pcapFile string ""

the PCAP file to be written

client.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

client.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

client.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

client.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

client.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

client.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

client.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

client.lo0.lo.mtu int 4470B
server1.status.initialStatus string "UP"

TODO @signal, @statistic

server1.routingTable.forwarding bool
server1.routingTable.multicastForwarding bool
server1.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

server1.pcapRecorder.verbose bool false

whether to log packets on the module output

server1.pcapRecorder.pcapFile string ""

the PCAP file to be written

server1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

server1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

server1.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

server1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

server1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

server1.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

server1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

server1.lo0.lo.mtu int 4470B
server2.status.initialStatus string "UP"

TODO @signal, @statistic

server2.routingTable.forwarding bool
server2.routingTable.multicastForwarding bool
server2.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

server2.pcapRecorder.verbose bool false

whether to log packets on the module output

server2.pcapRecorder.pcapFile string ""

the PCAP file to be written

server2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

server2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

server2.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

server2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

server2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

server2.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

server2.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

server2.lo0.lo.mtu int 4470B
server3.status.initialStatus string "UP"

TODO @signal, @statistic

server3.routingTable.forwarding bool
server3.routingTable.multicastForwarding bool
server3.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

server3.pcapRecorder.verbose bool false

whether to log packets on the module output

server3.pcapRecorder.pcapFile string ""

the PCAP file to be written

server3.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

server3.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

server3.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

server3.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

server3.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

server3.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

server3.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

server3.lo0.lo.mtu int 4470B
server4.status.initialStatus string "UP"

TODO @signal, @statistic

server4.routingTable.forwarding bool
server4.routingTable.multicastForwarding bool
server4.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

server4.pcapRecorder.verbose bool false

whether to log packets on the module output

server4.pcapRecorder.pcapFile string ""

the PCAP file to be written

server4.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

server4.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

server4.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

server4.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

server4.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

server4.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

server4.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

server4.lo0.lo.mtu int 4470B
server5.status.initialStatus string "UP"

TODO @signal, @statistic

server5.routingTable.forwarding bool
server5.routingTable.multicastForwarding bool
server5.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

server5.pcapRecorder.verbose bool false

whether to log packets on the module output

server5.pcapRecorder.pcapFile string ""

the PCAP file to be written

server5.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

server5.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

server5.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

server5.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

server5.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

server5.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

server5.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

server5.lo0.lo.mtu int 4470B
server6.status.initialStatus string "UP"

TODO @signal, @statistic

server6.routingTable.forwarding bool
server6.routingTable.multicastForwarding bool
server6.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

server6.pcapRecorder.verbose bool false

whether to log packets on the module output

server6.pcapRecorder.pcapFile string ""

the PCAP file to be written

server6.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

server6.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

server6.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

server6.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

server6.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

server6.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

server6.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

server6.lo0.lo.mtu int 4470B
server7.status.initialStatus string "UP"

TODO @signal, @statistic

server7.routingTable.forwarding bool
server7.routingTable.multicastForwarding bool
server7.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

server7.pcapRecorder.verbose bool false

whether to log packets on the module output

server7.pcapRecorder.pcapFile string ""

the PCAP file to be written

server7.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

server7.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

server7.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

server7.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

server7.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

server7.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

server7.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

server7.lo0.lo.mtu int 4470B
server8.status.initialStatus string "UP"

TODO @signal, @statistic

server8.routingTable.forwarding bool
server8.routingTable.multicastForwarding bool
server8.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

server8.pcapRecorder.verbose bool false

whether to log packets on the module output

server8.pcapRecorder.pcapFile string ""

the PCAP file to be written

server8.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

server8.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

server8.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

server8.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

server8.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

server8.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

server8.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

server8.lo0.lo.mtu int 4470B
server9.status.initialStatus string "UP"

TODO @signal, @statistic

server9.routingTable.forwarding bool
server9.routingTable.multicastForwarding bool
server9.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

server9.pcapRecorder.verbose bool false

whether to log packets on the module output

server9.pcapRecorder.pcapFile string ""

the PCAP file to be written

server9.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

server9.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

server9.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

server9.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

server9.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

server9.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

server9.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

server9.lo0.lo.mtu int 4470B
server10.status.initialStatus string "UP"

TODO @signal, @statistic

server10.routingTable.forwarding bool
server10.routingTable.multicastForwarding bool
server10.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

server10.pcapRecorder.verbose bool false

whether to log packets on the module output

server10.pcapRecorder.pcapFile string ""

the PCAP file to be written

server10.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

server10.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

server10.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

server10.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

server10.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

server10.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

server10.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

server10.lo0.lo.mtu int 4470B

Source code:

//
// 10-nodes test scenario for sockets.
//
// The scenario consists of a number of clients and 10 servers connected to two routers. The routers are connected
// with a single link.
//
network Http10Servers
{
    parameters:
        double numclients @prompt("Number of clients") = default(10);
        @display("bgb=939,624");
    submodules:
        configurator: IPv4NetworkConfigurator {
            parameters:
                //                moduleTypes = "Router StandardHost";
                //                nonIPModuleTypes = "";
                @display("p=58,79;i=block/cogwheel");
        }
        controller: HttpController {
            parameters:
                @display("p=62,156;i=block/cogwheel");
        }
        router_c: Router {
            parameters:
                @display("p=492,424;i=abstract/router_l");
        }
        router_s: Router {
            parameters:
                @display("p=492,320;i=abstract/router_l");
        }
        client[numclients]: StandardHost {
            parameters:
                @display("i=device/laptop_l");
        }
        server1: StandardHost {
            parameters:
                @display("p=191,316;i=device/server_l");
        }
        server2: StandardHost {
            parameters:
                @display("p=231,220;i=device/server_l");
        }
        server3: StandardHost {
            parameters:
                @display("p=278,140;i=device/server_l");
        }
        server4: StandardHost {
            parameters:
                @display("p=355,92;i=device/server_l");
        }
        server5: StandardHost {
            parameters:
                @display("p=452,60;i=device/server_l");
        }
        server6: StandardHost {
            parameters:
                @display("p=549,60;i=device/server_l");
        }
        server7: StandardHost {
            parameters:
                @display("p=660,84;i=device/server_l");
        }
        server8: StandardHost {
            parameters:
                @display("p=734,148;i=device/server_l");
        }
        server9: StandardHost {
            parameters:
                @display("p=772,228;i=device/server_l");
        }
        server10: StandardHost {
            parameters:
                @display("p=797,324;i=device/server_l");
        }
    connections allowunconnected:
        server1.ethg++ <--> ethernetline <--> router_s.ethg++;
        server2.ethg++ <--> ethernetline <--> router_s.ethg++;
        server3.ethg++ <--> ethernetline <--> router_s.ethg++;
        server4.ethg++ <--> ethernetline <--> router_s.ethg++;
        server5.ethg++ <--> ethernetline <--> router_s.ethg++;
        server6.ethg++ <--> ethernetline <--> router_s.ethg++;
        server7.ethg++ <--> ethernetline <--> router_s.ethg++;
        server8.ethg++ <--> ethernetline <--> router_s.ethg++;
        server9.ethg++ <--> ethernetline <--> router_s.ethg++;
        server10.ethg++ <--> ethernetline <--> router_s.ethg++;
        for i=0..numclients-1 {
            client[i].ethg++ <--> ethernetline <--> router_c.ethg++;
        }
        router_s.ethg++ <--> ethernetline <--> router_c.ethg++;

}