tcp - NS-3: Create a Bottleneck Link -
i have client , server, both running multipath tcp stack. multiple point point links created between them, want links share bottleneck link before reaching server. looked here, situation less complex mine.
below code runs mptcp. suggest how should make changes create required topology. bit confused on this. lot help.
here code topology have.
nodecontainer nodes; nodes.create(2); client = nodes.get(0); server = nodes.get(1); mpinternetstackhelper stack; stack.install(client); stack.install(server); vector<ipv4interfacecontainer> ipv4ints; for(int i=0; < sf; i++) { pointtopointhelper p2plink; p2plink.setdeviceattribute ("datarate", stringvalue("5mbps")); p2plink.setchannelattribute("delay", stringvalue("100ms")); netdevicecontainer netdevices; netdevices = p2plink.install(nodes); std::stringstream netaddr; netaddr << "10.1." << (i+1) << ".0"; string str = netaddr.str(); ipv4addresshelper ipv4addr; ipv4addr.setbase(str.c_str(), "255.255.255.0"); ipv4interfacecontainer interface = ipv4addr.assign(netdevices); ipv4ints.insert(ipv4ints.end(), interface); }
Comments
Post a Comment