├── .nedfolders ├── src ├── trabalho3 ├── MDR-Trabalho-3 ├── package.ned └── Makefile ├── .gitignore ├── README.md ├── simulations ├── run ├── .tkenvrc ├── General.anf ├── server_cfg.xml ├── internetCloud.xml ├── omnetppUDP.ini ├── browser_cfg.xml ├── package.ned └── omnetpp.ini ├── .settings └── org.eclipse.ltk.core.refactoring.prefs ├── .oppbuildspec ├── Makefile ├── Makefile.vc ├── .project └── .cproject /.nedfolders: -------------------------------------------------------------------------------- 1 | simulations 2 | src 3 | -------------------------------------------------------------------------------- /src/trabalho3: -------------------------------------------------------------------------------- 1 | ../out/gcc-debug/src/trabalho3 -------------------------------------------------------------------------------- /src/MDR-Trabalho-3: -------------------------------------------------------------------------------- 1 | ../out/gcc-debug/src/MDR-Trabalho-3 -------------------------------------------------------------------------------- /src/package.ned: -------------------------------------------------------------------------------- 1 | package trabalho3; 2 | 3 | @license(LGPL); -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | out/ 2 | simulations/results/ 3 | simulations/.tkenv.rc 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Instruções 2 | 3 | OMNET++ project, set it up yourself 4 | -------------------------------------------------------------------------------- /simulations/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd `dirname $0` 3 | ../src/trabalho3 -n .:../src $* 4 | # for shared lib, use: opp_run -l ../src/trabalho3 -n .:../src $* 5 | -------------------------------------------------------------------------------- /.settings/org.eclipse.ltk.core.refactoring.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false 3 | -------------------------------------------------------------------------------- /simulations/.tkenvrc: -------------------------------------------------------------------------------- 1 | # Partial OMNeT++/Tkenv config file -- see $HOME/.tkenvrc as well 2 | config default-configname {} 3 | config default-runnumber {} 4 | 5 | -------------------------------------------------------------------------------- /.oppbuildspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /simulations/General.anf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | all: checkmakefiles 2 | cd src && $(MAKE) 3 | 4 | clean: checkmakefiles 5 | cd src && $(MAKE) clean 6 | 7 | cleanall: checkmakefiles 8 | cd src && $(MAKE) MODE=release clean 9 | cd src && $(MAKE) MODE=debug clean 10 | rm -f src/Makefile 11 | 12 | makefiles: 13 | cd src && opp_makemake -f --deep 14 | 15 | checkmakefiles: 16 | @if [ ! -f src/Makefile ]; then \ 17 | echo; \ 18 | echo '======================================================================='; \ 19 | echo 'src/Makefile does not exist. Please use "make makefiles" to generate it!'; \ 20 | echo '======================================================================='; \ 21 | echo; \ 22 | exit 1; \ 23 | fi 24 | -------------------------------------------------------------------------------- /Makefile.vc: -------------------------------------------------------------------------------- 1 | all: checkmakefiles 2 | cd src && $(MAKE) -f Makefile.vc 3 | 4 | clean: checkmakefiles 5 | cd src && $(MAKE) -f Makefile.vc clean 6 | 7 | cleanall: checkmakefiles 8 | cd src && $(MAKE) -f Makefile.vc MODE=release clean 9 | cd src && $(MAKE) -f Makefile.vc MODE=debug clean 10 | 11 | makefiles: 12 | cd src && call opp_nmakemake -f --deep 13 | 14 | checkmakefiles: 15 | @if not exist src\Makefile.vc ( \ 16 | echo. && \ 17 | echo ============================================================================ && \ 18 | echo src/Makefile.vc does not exist. Please use the following command to generate it: && \ 19 | echo nmake -f Makefile.vc makefiles && \ 20 | echo ============================================================================ && \ 21 | echo. && \ 22 | exit 1 ) 23 | -------------------------------------------------------------------------------- /simulations/server_cfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | trabalho3 4 | 5 | 6 | inet 7 | 8 | 9 | 10 | org.omnetpp.cdt.MakefileBuilder 11 | 12 | 13 | 14 | 15 | org.omnetpp.scave.builder.vectorfileindexer 16 | 17 | 18 | 19 | 20 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 21 | clean,full,incremental, 22 | 23 | 24 | 25 | 26 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 27 | full,incremental, 28 | 29 | 30 | 31 | 32 | 33 | org.eclipse.cdt.core.cnature 34 | org.eclipse.cdt.core.ccnature 35 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 36 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 37 | org.omnetpp.main.omnetppnature 38 | 39 | 40 | -------------------------------------------------------------------------------- /simulations/internetCloud.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /simulations/omnetppUDP.ini: -------------------------------------------------------------------------------- 1 | [General] 2 | print-undisposed=false 3 | network = Trabalho3 4 | record-eventlog = false 5 | sim-time-limit = 50s 6 | **.numHosts = 15 #${N=5..30 step 5} 7 | repeat=5 8 | seed-set = ${repetition} 9 | 10 | **.constraintAreaMinX = 0m 11 | **.constraintAreaMinY = 0m 12 | **.constraintAreaMinZ = 0m 13 | **.constraintAreaMaxX = 400m 14 | **.constraintAreaMaxY = 150m 15 | **.constraintAreaMaxZ = 0m 16 | 17 | **.hostNor[*].numUdpApps = 2 18 | **.hostSul[*].numUdpApps = 2 19 | **.dhcpServer.numUdpApps = 1 20 | 21 | 22 | ##### DHCP ############# 23 | 24 | **.hostNor[*].udpApp[0].typename = "DHCPClient" 25 | **.hostNor[*].numPingApps = 1 26 | **.hostNor[*].pingApp[0].destAddr = "dhcpServer" 27 | **.hostNor[*].pingApp[0].startTime = 3s 28 | 29 | 30 | **.hostSul[*].udpApp[0].typename = "DHCPClient" 31 | **.hostSul[*].numPingApps = 1 32 | **.hostSul[*].pingApp[0].destAddr = "dhcpServer" 33 | **.hostSul[*].pingApp[0].startTime = 3s 34 | 35 | 36 | 37 | **.dhcpServer.udpApp[0].typename = "DHCPServer" 38 | **.dhcpServer.udpApp[0].subnetMask = "255.255.255.0" 39 | **.dhcpServer.udpApp[0].ipAddressStart = "192.168.0.10" 40 | **.dhcpServer.udpApp[0].maxNumClients = 100 41 | **.dhcpServer.udpApp[0].gateway = "192.168.0.1" 42 | **.dhcpServer.udpApp[0].dns = "192.168.0.1" 43 | **.dhcpServer.udpApp[0].leaseTime = 100s 44 | 45 | ##################################### 46 | 47 | **.voipServer.udpApp[0].typename = "SimpleVoIPReceiver" 48 | **.voipServer.udpApp[0].localPort = 2000 49 | 50 | **.hostNor[*].udpApp[1].typename = "SimpleVoIPSender" 51 | **.hostNor[*].udpApp[1].destPort = 2000 52 | **.hostNor[*].udpApp[1].destAddress = "voipServer" 53 | **.hostNor[*].udpApp[1].startTime = 10s 54 | **.hostNor[*].udpApp[1].stopTime = 40s 55 | 56 | **.hostSul[*].udpApp[1].typename = "SimpleVoIPSender" 57 | **.hostSul[*].udpApp[1].destPort = 2000 58 | **.hostSul[*].udpApp[1].destAddress = "voipServer" 59 | **.hostSul[*].udpApp[1].startTime = 10s 60 | **.hostSul[*].udpApp[1].stopTime = 40s 61 | 62 | ####### OTHER SETTINGS ############### 63 | **.wlan*.bitrate = 6Mbps # ${TX=6,11, 27, 54}Mbps 64 | 65 | **.mac.address = "auto" 66 | #**.mac.maxQueueSize = 14 67 | #**.mac.rtsThresholdBytes = 3000B 68 | #**.wlan[*].mac.retryLimit = 7 69 | #**.wlan[*].mac.cwMinData = 7 70 | 71 | #**.radio.transmitterPower = 2.0mW 72 | **.radio.carrierFrequency = ${HZ=2.4, 5}GHz 73 | 74 | ###################################### 75 | -------------------------------------------------------------------------------- /simulations/browser_cfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /simulations/package.ned: -------------------------------------------------------------------------------- 1 | package trabalho3.simulations; 2 | 3 | @license(LGPL); 4 | 5 | import inet.nodes.ethernet.Eth100G; 6 | import inet.nodes.ethernet.Eth100M; 7 | import inet.applications.dhcp.DHCPServer; 8 | import inet.networklayer.autorouting.ipv4.IPv4NetworkConfigurator; 9 | import inet.nodes.bgp.BGPRouter; 10 | import inet.nodes.ethernet.EtherHost; 11 | import inet.nodes.ethernet.EtherSwitch; 12 | import inet.nodes.inet.Router; 13 | import inet.nodes.inet.StandardHost; 14 | import inet.nodes.inet.WirelessHost; 15 | import inet.nodes.internetcloud.InternetCloud; 16 | import inet.nodes.ospfv2.OSPFRouter; 17 | import inet.nodes.wireless.AccessPoint; 18 | import inet.world.radio.ChannelControl; 19 | 20 | network Trabalho3 21 | { 22 | parameters: 23 | int numHosts; 24 | int numAPs = 1; 25 | @display("bgb=829,412"); 26 | submodules: 27 | hostNor[numHosts]: WirelessHost { 28 | @display("r=,,#707070;p=100,10"); 29 | } 30 | hostSul[numHosts]: WirelessHost { 31 | @display("r=,,#707070;p=100,110"); 32 | } 33 | apNor[numAPs]: AccessPoint { 34 | @display("p=150,10;r=50,,#707070"); 35 | 36 | } 37 | apSul[numAPs]: AccessPoint { 38 | @display("p=150,110;r=50,,#707070"); 39 | 40 | } 41 | configurator: IPv4NetworkConfigurator { 42 | config = xml(""); 43 | @display("p=517,32"); 44 | } 45 | router: Router { 46 | @display("p=567,193"); 47 | } 48 | socialNetwork: StandardHost { 49 | @display("p=756,319"); 50 | } 51 | multimediaServer: StandardHost { 52 | @display("p=756,82"); 53 | } 54 | voipServer: StandardHost { 55 | @display("p=756,193"); 56 | } 57 | dhcpServer: StandardHost { 58 | @display("p=434,110"); 59 | } 60 | channelControl: ChannelControl { 61 | @display("p=414,31"); 62 | numChannels = 3; 63 | } 64 | switch: EtherSwitch { 65 | @display("p=434,192"); 66 | } 67 | infoServer: StandardHost { 68 | @display("p=434,307"); 69 | } 70 | 71 | connections: 72 | router.ethg++ <--> Eth100M <--> switch.ethg++; 73 | router.ethg++ <--> Eth100G <--> socialNetwork.ethg++; 74 | router.ethg++ <--> Eth100G <--> voipServer.ethg++; 75 | router.ethg++ <--> Eth100G <--> multimediaServer.ethg++; 76 | 77 | for i=0..numAPs-1 { 78 | switch.ethg++ <--> Eth100M <--> apNor[i].ethg++; 79 | } 80 | for i=0..numAPs-1 { 81 | switch.ethg++ <--> Eth100M <--> apSul[i].ethg++; 82 | } 83 | dhcpServer.ethg++ <--> Eth100M <--> switch.ethg++; 84 | infoServer.ethg++ <--> Eth100M <--> switch.ethg++; 85 | } 86 | -------------------------------------------------------------------------------- /src/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # OMNeT++/OMNEST Makefile for MDR-Trabalho-3 3 | # 4 | # This file was generated with the command: 5 | # opp_makemake -f --deep -L../../inet/out/$$\(CONFIGNAME\)/src -linet -DINET_IMPORT -KINET_PROJ=../../inet 6 | # 7 | 8 | # Name of target to be created (-o option) 9 | TARGET = MDR-Trabalho-3$(EXE_SUFFIX) 10 | 11 | # User interface (uncomment one) (-u option) 12 | USERIF_LIBS = $(ALL_ENV_LIBS) # that is, $(TKENV_LIBS) $(CMDENV_LIBS) 13 | #USERIF_LIBS = $(CMDENV_LIBS) 14 | #USERIF_LIBS = $(TKENV_LIBS) 15 | 16 | # C++ include paths (with -I) 17 | INCLUDE_PATH = -I. 18 | 19 | # Additional object and library files to link with 20 | EXTRA_OBJS = 21 | 22 | # Additional libraries (-L, -l options) 23 | LIBS = -L../../inet/out/$(CONFIGNAME)/src -linet 24 | LIBS += -Wl,-rpath,`abspath ../../inet/out/$(CONFIGNAME)/src` 25 | 26 | # Output directory 27 | PROJECT_OUTPUT_DIR = ../out 28 | PROJECTRELATIVE_PATH = src 29 | O = $(PROJECT_OUTPUT_DIR)/$(CONFIGNAME)/$(PROJECTRELATIVE_PATH) 30 | 31 | # Object files for local .cc and .msg files 32 | OBJS = 33 | 34 | # Message files 35 | MSGFILES = 36 | 37 | # Other makefile variables (-K) 38 | INET_PROJ=../../inet 39 | 40 | #------------------------------------------------------------------------------ 41 | 42 | # Pull in OMNeT++ configuration (Makefile.inc or configuser.vc) 43 | 44 | ifneq ("$(OMNETPP_CONFIGFILE)","") 45 | CONFIGFILE = $(OMNETPP_CONFIGFILE) 46 | else 47 | ifneq ("$(OMNETPP_ROOT)","") 48 | CONFIGFILE = $(OMNETPP_ROOT)/Makefile.inc 49 | else 50 | CONFIGFILE = $(shell opp_configfilepath) 51 | endif 52 | endif 53 | 54 | ifeq ("$(wildcard $(CONFIGFILE))","") 55 | $(error Config file '$(CONFIGFILE)' does not exist -- add the OMNeT++ bin directory to the path so that opp_configfilepath can be found, or set the OMNETPP_CONFIGFILE variable to point to Makefile.inc) 56 | endif 57 | 58 | include $(CONFIGFILE) 59 | 60 | # Simulation kernel and user interface libraries 61 | OMNETPP_LIB_SUBDIR = $(OMNETPP_LIB_DIR)/$(TOOLCHAIN_NAME) 62 | OMNETPP_LIBS = -L"$(OMNETPP_LIB_SUBDIR)" -L"$(OMNETPP_LIB_DIR)" -loppmain$D $(USERIF_LIBS) $(KERNEL_LIBS) $(SYS_LIBS) 63 | 64 | COPTS = $(CFLAGS) -DINET_IMPORT $(INCLUDE_PATH) -I$(OMNETPP_INCL_DIR) 65 | MSGCOPTS = $(INCLUDE_PATH) 66 | 67 | # we want to recompile everything if COPTS changes, 68 | # so we store COPTS into $COPTS_FILE and have object 69 | # files depend on it (except when "make depend" was called) 70 | COPTS_FILE = $O/.last-copts 71 | ifneq ($(MAKECMDGOALS),depend) 72 | ifneq ("$(COPTS)","$(shell cat $(COPTS_FILE) 2>/dev/null || echo '')") 73 | $(shell $(MKPATH) "$O" && echo "$(COPTS)" >$(COPTS_FILE)) 74 | endif 75 | endif 76 | 77 | #------------------------------------------------------------------------------ 78 | # User-supplied makefile fragment(s) 79 | # >>> 80 | # <<< 81 | #------------------------------------------------------------------------------ 82 | 83 | # Main target 84 | all: $O/$(TARGET) 85 | $(Q)$(LN) $O/$(TARGET) . 86 | 87 | $O/$(TARGET): $(OBJS) $(wildcard $(EXTRA_OBJS)) Makefile 88 | @$(MKPATH) $O 89 | @echo Creating executable: $@ 90 | $(Q)$(CXX) $(LDFLAGS) -o $O/$(TARGET) $(OBJS) $(EXTRA_OBJS) $(AS_NEEDED_OFF) $(WHOLE_ARCHIVE_ON) $(LIBS) $(WHOLE_ARCHIVE_OFF) $(OMNETPP_LIBS) 91 | 92 | .PHONY: all clean cleanall depend msgheaders 93 | 94 | .SUFFIXES: .cc 95 | 96 | $O/%.o: %.cc $(COPTS_FILE) 97 | @$(MKPATH) $(dir $@) 98 | $(qecho) "$<" 99 | $(Q)$(CXX) -c $(CXXFLAGS) $(COPTS) -o $@ $< 100 | 101 | %_m.cc %_m.h: %.msg 102 | $(qecho) MSGC: $< 103 | $(Q)$(MSGC) -s _m.cc $(MSGCOPTS) $? 104 | 105 | msgheaders: $(MSGFILES:.msg=_m.h) 106 | 107 | clean: 108 | $(qecho) Cleaning... 109 | $(Q)-rm -rf $O 110 | $(Q)-rm -f MDR-Trabalho-3 MDR-Trabalho-3.exe libMDR-Trabalho-3.so libMDR-Trabalho-3.a libMDR-Trabalho-3.dll libMDR-Trabalho-3.dylib 111 | $(Q)-rm -f ./*_m.cc ./*_m.h 112 | 113 | cleanall: clean 114 | $(Q)-rm -rf $(PROJECT_OUTPUT_DIR) 115 | 116 | depend: 117 | $(qecho) Creating dependencies... 118 | $(Q)$(MAKEDEPEND) $(INCLUDE_PATH) -f Makefile -P\$$O/ -- $(MSG_CC_FILES) ./*.cc 119 | 120 | # DO NOT DELETE THIS LINE -- make depend depends on it. 121 | 122 | -------------------------------------------------------------------------------- /simulations/omnetpp.ini: -------------------------------------------------------------------------------- 1 | [General] 2 | print-undisposed=false 3 | network = Trabalho3 4 | record-eventlog = false 5 | sim-time-limit = 60s 6 | **.numHosts = 15 # ${N=5..30 step 5} 7 | repeat=5 8 | seed-set = ${repetition} 9 | 10 | **.constraintAreaMinX = 0m 11 | **.constraintAreaMinY = 0m 12 | **.constraintAreaMinZ = 0m 13 | **.constraintAreaMaxX = 400m 14 | **.constraintAreaMaxY = 150m 15 | **.constraintAreaMaxZ = 0m 16 | 17 | **.hostNor[*].numUdpApps = 3 18 | **.hostNor[*].numTcpApps = 1 19 | **.hostSul[*].numUdpApps = 3 20 | **.hostSul[*].numTcpApps = 1 21 | **.dhcpServer.numUdpApps = 1 22 | **.infoServer.numTcpApps = 1 23 | **.socialNetwork.numTcpApps = 0 24 | **.multimediaServer.numUdpApps = 1 25 | 26 | 27 | ##### DHCP ############# 28 | 29 | **.hostNor[*].udpApp[0].typename = "DHCPClient" 30 | **.hostNor[*].numPingApps = 1 31 | **.hostNor[*].pingApp[0].destAddr = "dhcpServer" 32 | **.hostNor[*].pingApp[0].startTime = 3s 33 | 34 | 35 | **.hostSul[*].udpApp[0].typename = "DHCPClient" 36 | **.hostSul[*].numPingApps = 1 37 | **.hostSul[*].pingApp[0].destAddr = "dhcpServer" 38 | **.hostSul[*].pingApp[0].startTime = 3s 39 | 40 | 41 | 42 | **.dhcpServer.udpApp[0].typename = "DHCPServer" 43 | **.dhcpServer.udpApp[0].subnetMask = "255.255.255.0" 44 | **.dhcpServer.udpApp[0].ipAddressStart = "192.168.0.10" 45 | **.dhcpServer.udpApp[0].maxNumClients = 100 46 | **.dhcpServer.udpApp[0].gateway = "192.168.0.1" 47 | **.dhcpServer.udpApp[0].dns = "192.168.0.1" 48 | **.dhcpServer.udpApp[0].leaseTime = 100s 49 | 50 | ##################################### 51 | 52 | 53 | ############## HTML app ############# 54 | 55 | #**.hostNor[*].tcpApp[1].typename = "HttpBrowser" 56 | #**.hostNor[*].tcpApp[1].config = xmldoc("browser_cfg.xml","//user-profile[@id='normal']") 57 | #**.hostNor[*].tcpApp[1].activationTime = 5.0s 58 | 59 | #**.hostNor[*].tcpApp[1].localAddress = "" 60 | #**.hostNor[*].tcpApp[1].localPort = -1 61 | #**.hostNor[*].tcpApp[1].connectAddress = "srv" 62 | #**.hostNor[*].tcpApp[1].connectPort = 80 63 | 64 | #**.hostNor[*].tcpApp[1].startTime = exponential(5s) 65 | #**.hostNor[*].tcpApp[1].numRequestsPerSession = 1 66 | #**.hostNor[*].tcpApp[1].requestLength = truncnormal(350B,20B) 67 | #**.hostNor[*].tcpApp[1].replyLength = exponential(2000B) 68 | #**.hostNor[*].tcpApp[1].thinkTime = truncnormal(2s,3s) 69 | #**.hostNor[*].tcpApp[1].idleInterval = truncnormal(3600s,1200s) 70 | #**.hostNor[*].tcpApp[1].reconnectInterval = 30s 71 | 72 | 73 | #**.hostSul[*].tcpApp[1].typename = "HttpBrowser" 74 | #**.hostSul[*].tcpApp[1].config = xmldoc("browser_cfg.xml","//user-profile[@id='normal']") 75 | #**.hostSul[*].tcpApp[1].activationTime = 5.0s 76 | 77 | #**.hostSul[*].tcpApp[1].localAddress = "" 78 | #**.hostSul[*].tcpApp[1].localPort = -1 79 | #**.hostSul[*].tcpApp[1].connectAddress = "srv" 80 | #**.hostSul[*].tcpApp[1].connectPort = 80 81 | # 82 | #**.hostSul[*].tcpApp[1].startTime = exponential(5s) 83 | #**.hostSul[*].tcpApp[1].numRequestsPerSession = 1 84 | #**.hostSul[*].tcpApp[1].requestLength = truncnormal(350B,20B) 85 | #**.hostSul[*].tcpApp[1].replyLength = exponential(2000B) 86 | #**.hostSul[*].tcpApp[1].thinkTime = truncnormal(2s,3s) 87 | #**.hostSul[*].tcpApp[1].idleInterval = truncnormal(3600s,1200s) 88 | #**.hostSul[*].tcpApp[1].reconnectInterval = 30s 89 | 90 | #**.socialNetwork.tcpApp[0].typename = "HttpServer" 91 | #**.socialNetwork.tcpApp[0].localAddress = "" 92 | #**.socialNetwork.tcpApp[0].localPort = 80 93 | #**.socialNetwork.tcpApp[0].replyDelay = 0 94 | 95 | 96 | #**.socialNetwork.tcpApp[0].typename = "HttpServer" 97 | #**.socialNetwork.tcpApp[0].hostName = "www.single.org" 98 | #**.socialNetwork.tcpApp[0].config = xmldoc("server_cfg.xml","//server-profile[@id='normal']") 99 | #**.socialNetwork.tcpApp[0].activationTime = 5.0s 100 | 101 | ###################################### 102 | 103 | ############## tcp APP ################### 104 | 105 | **.infoServer.tcpApp[0].typename = "TCPSinkApp" 106 | 107 | #Tcp Clients 108 | 109 | **.hostNor[*].tcpApp[0].typename = "TCPSessionApp" 110 | **.hostNor[*].tcpApp[0].active = true 111 | **.hostNor[*].tcpApp[0].connectAddress = "infoServer" 112 | **.hostNor[*].tcpApp[0].connectPort = 1000 113 | **.hostNor[*].tcpApp[0].tOpen = 10s 114 | **.hostNor[*].tcpApp[0].tSend = 0 115 | **.hostNor[*].tcpApp[0].sendBytes = 10KiB 116 | **.hostNor[*].tcpApp[0].tClose = 30s 117 | 118 | #Tcp Clients 119 | 120 | **.hostSul[*].tcpApp[0].typename = "TCPSessionApp" 121 | **.hostSul[*].tcpApp[0].active = true 122 | **.hostSul[*].tcpApp[0].connectAddress = "infoServer" 123 | **.hostSul[*].tcpApp[0].connectPort = 1000 124 | **.hostSul[*].tcpApp[0].tOpen = 15s 125 | **.hostSul[*].tcpApp[0].tSend = 0 126 | **.hostSul[*].tcpApp[0].sendBytes = 10KiB 127 | **.hostSul[*].tcpApp[0].tClose = 35s 128 | 129 | #**.tcpApp[*].localAddress = "" 130 | #**.tcpApp[*].localPort = -1 131 | #**.tcpApp[*].sendScript = "" 132 | 133 | ###################################### 134 | 135 | ############## UDP APP ############# 136 | 137 | **.multimediaServer.udpApp[0].typename = "UDPVideoStreamSvr" 138 | **.multimediaServer.udpApp[0].videoSize = 1MiB 139 | **.multimediaServer.udpApp[0].localPort = 3088 140 | **.multimediaServer.udpApp[0].sendInterval = 10ms 141 | **.multimediaServer.udpApp[0].packetLen = 1000B 142 | 143 | # UDp Clients 144 | **.hostNor[*].udpApp[1].typename = "UDPVideoStreamCli" 145 | **.hostNor[*].udpApp[1].serverAddress = "multimediaServer" 146 | **.hostNor[*].udpApp[1].localPort = 9999 147 | **.hostNor[*].udpApp[1].serverPort = 3088 148 | **.hostNor[*].udpApp[1].startTime = 12s 149 | 150 | **.hostSul[*].udpApp[1].typename = "UDPVideoStreamCli" 151 | **.hostSul[*].udpApp[1].serverAddress = "multimediaServer" 152 | **.hostSul[*].udpApp[1].localPort = 9999 153 | **.hostSul[*].udpApp[1].serverPort = 3088 154 | **.hostSul[*].udpApp[1].startTime = 10s 155 | 156 | ###################################### 157 | 158 | 159 | ############### VoIP ################ 160 | 161 | **.voipServer.udpApp[2].typename = "SimpleVoIPReceiver" 162 | **.voipServer.udpApp[2].localPort = 2000 163 | 164 | **.hostNor[*].udpApp[2].typename = "SimpleVoIPSender" 165 | **.hostNor[*].udpApp[2].destPort = 2000 166 | **.hostNor[*].udpApp[2].destAddress = "voipServer" 167 | **.hostNor[*].udpApp[2].startTime = 30s 168 | **.hostNor[*].udpApp[2].stopTime = 55s 169 | 170 | **.hostSul[*].udpApp[2].typename = "SimpleVoIPSender" 171 | **.hostSul[*].udpApp[2].destPort = 2000 172 | **.hostSul[*].udpApp[2].destAddress = "voipServer" 173 | **.hostSul[*].udpApp[2].startTime = 25s 174 | **.hostSul[*].udpApp[2].stopTime = 50s 175 | 176 | ###################################### 177 | 178 | 179 | ####### OTHER SETTINGS ############### 180 | **.wlan*.bitrate = 6Mbps 181 | 182 | **.mac.address = "auto" 183 | #**.mac.maxQueueSize = 14 184 | #**.mac.rtsThresholdBytes = 3000B 185 | #**.wlan[*].mac.retryLimit = 7 186 | #**.wlan[*].mac.cwMinData = 7 187 | 188 | #**.radio.transmitterPower = 2.0mW 189 | **.radio.carrierFrequency = ${HZ=2.4, 5}GHz #5GHz 190 | 191 | 192 | # tcp settings 193 | **.tcp.mss = 1024 194 | **.tcp.advertisedWindow = 14336 # 14*mss 195 | **.tcp.tcpAlgorithmClass = "TCPReno" 196 | **.tcp.recordStats = true 197 | **.tcpApp[*].dataTransferMode = "object" 198 | 199 | # NIC configuration 200 | #**.ppp[*].queueType = "DropTailQueue" # in routers 201 | #**.ppp[*].queue.frameCapacity = 10 # in routers 202 | 203 | ###################################### 204 | -------------------------------------------------------------------------------- /.cproject: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | --------------------------------------------------------------------------------