|
Hi dear Helpers, I have two problems: First, i want to write in my network that each computer sends performance data to the server and the server forwards the values to the central server. Please how can i implement it in inet-->bulktransfer? Second, i've built my own network of "inet -> bulktransfer. But the problem is: the central server (zserver) built by my network send and receive any messages. What have i done wrong please? Below You can see my ned file and my ini file. I also send them as attachments to this e-mail. Thank you very much in advance for your help. Sincerely, Roger Danja Ned file: import inet.networklayer.autorouting.FlatNetworkConfigurator; import inet.nodes.inet.Router; import inet.nodes.inet.StandardHost; import ned.DatarateChannel;
network netzwerk2 { types: channel C extends DatarateChannel { datarate = 100Mbps; delay = 100ms; } submodules: client1: StandardHost { parameters: @display("p=131,67;i=device/pc3"); } client2: StandardHost { parameters: @display("p=337,67;i=device/pc3"); } client3: StandardHost { parameters: @display("p=337,247;i=device/pc3"); } server: StandardHost { parameters: @display("p=131,247;i=device/pc2"); } zserver: StandardHost { parameters: @display("p=234,247;i=device/pc2");
} router: Router { parameters: @display("p=239,156"); } configurator: FlatNetworkConfigurator { parameters: @display("p=62,119"); } connections: client1.pppg++ <--> C <--> router.pppg++; client2.pppg++ <--> C <--> router.pppg++; client3.pppg++ <--> C <--> router.pppg++; server.pppg++ <--> C <--> router.pppg++; zserver.pppg++ <--> C <--> router.pppg++; server.pppg++ <--> C <--> zserver.pppg++; }
Ini file: [Config inet_inet] description = "inet_TCP <---> inet_TCP" # setting TCP stack implementation **.server*.tcpType = "TCP" **.zserver*.tcpType = "TCP" **.client*.tcpType = "TCP"
[Config inet_old_inet_old] description = "TCP_old <---> TCP_old" # setting TCP stack implementation **.server*.tcpType = "TCP_old" **.zserver*.tcpType = "TCP_old" **.client*.tcpType = "TCP_old"
[Config nsc_nsc] description = "NSC_TCP <---> NSC_TCP" # setting TCP stack implementation **.tcpType = "TCP_NSC"
[Config nsc_inet] description = "NSC_TCP <---> inet_TCP" # setting TCP stack implementation **.server*.tcpType = "TCP_NSC" **.zserver*.tcpType = "TCP_NSC" **.client*.tcpType = "TCP"
[Config inet_nsc] description = "inet_TCP <---> NSC_TCP" # setting TCP stack implementation **.server*.tcpType = "TCP" **.zserver*.tcpType = "TCP" **.client*.tcpType = "TCP_NSC"
[General] network = netzwerk2 total-stack = 14MB tkenv-plugin-path = ../../../etc/plugins #debug-on-errors = true #record-eventlog = true
# tcp apps **.numTcpApps = 1 **.client*.tcpAppType = "TCPSessionApp" **.client*.tcpApp[0].active = true **.client*.tcpApp[0].address = "" **.client*.tcpApp[0].port = -1 **.client*.tcpApp[0].connectAddress = "server" **.client*.tcpApp[0].connectPort = 1000 **.client*.tcpApp[0].tOpen = 1.0s **.client*.tcpApp[0].tSend = 1.1s **.client*.tcpApp[0].sendBytes = 100MB **.client*.tcpApp[0].sendScript = "" **.client*.tcpApp[0].tClose = 0
#**.server*.tcpAppType="TCPSinkApp" **.server*.tcpAppType = "TCPEchoApp" **.server*.tcpApp[0].address = "" **.server*.tcpApp[0].port = 1000 **.server*.tcpApp[0].echoFactor = 2.0 **.server*.tcpApp[0].echoDelay = 0
#**.zserver*.tcpAppType="TCPSinkApp" **.zserver*.tcpAppType = "TCPEchoApp" **.zserver*.tcpApp[0].address = "" **.zserver*.tcpApp[0].port = 1000 **.zserver*.tcpApp[0].echoFactor = 2.0 **.zserver*.tcpApp[0].echoDelay = 0
# tcp settings #**.tcp.sendQueueClass = "TCPVirtualDataSendQueue" #**.tcp.receiveQueueClass = "TCPVirtualDataRcvQueue"
# NIC configuration **.ppp[*].queueType = "DropTailQueue" # in routers **.ppp[*].queue.frameCapacity = 10 # in routers Attachments: Image of my
network, my ned file and my
ini file
|