Tcp NS-3:创建瓶颈链接

Tcp NS-3:创建瓶颈链接,tcp,network-programming,simulation,topology,ns-3,Tcp,Network Programming,Simulation,Topology,Ns 3,我有一个客户端和一个服务器,都运行多路径TCP堆栈。在它们之间创建了多个点对点链接,我希望这些链接在到达服务器之前共享一个瓶颈链接。我看了,但情况没有我复杂 下面是运行MPTCP的代码。您能建议我如何进行更改以创建所需的拓扑吗。我对此有点困惑。非常感谢你的帮助 这是我的拓扑代码 NodeContainer nodes; nodes.Create(2); client = nodes.Get(0); server = nodes.Get(1); MpInternetStackHelper sta

我有一个客户端和一个服务器,都运行多路径TCP堆栈。在它们之间创建了多个点对点链接,我希望这些链接在到达服务器之前共享一个瓶颈链接。我看了,但情况没有我复杂

下面是运行MPTCP的代码。您能建议我如何进行更改以创建所需的拓扑吗。我对此有点困惑。非常感谢你的帮助

这是我的拓扑代码

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; i < 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);
}
节点容器节点;
节点。创建(2);
client=nodes.Get(0);
server=nodes.Get(1);
MpInternetStackHelper堆栈;
stack.Install(客户端);stack.Install(服务器);
向量ipv4Ints;
对于(int i=0;i