文件名称:scenery3.cc
文件大小:6KB
文件格式:CC
更新时间:2023-08-16 12:23:21
throughput
NS3仿真实现,TCP协议下应用层吞吐量计算,实现Ipv4FlowClassifier::FiveTuple t = classifier->FindFlow (i->first); cout << "Flow " << i->first - staNodes << " (" << t.sourceAddress << " -> " << t.destinationAddress << ")\n"; cout << " Tx Packets: " << i->second.txPackets << "\n"; << " Mbps\n" cout << " Throughput: " << i->second.rxBytes * 8.0/duration / 1000 / 1000 << " Mbps\n";