相关函数有EableAscii()和EnableAsciiAll(),支持这两个函数的有 ns3::YansWifiPhyHelper  PointToPoint  InternetStackHelper  EmuHelper  CsmaHelper  MobilityHelper
    trace文件是都支持的,采用的ASCII。需要加头文件fstream
     std::ofstream ascii;
     ascii.open ("p2p.tr");
     PointToPointHelper::EnableAsciiAll(ascii);
跟pcap文件是一样的。也是支持node、netDevice。