ns3
hddong97
这个作者很懒,什么都没留下…
展开
-
ns3安装 + eclipse
1、下载 https://www.nsnam.org/releases/ns-3-29/download/,解压2、build ,先放两个供参考: 官方教程是这个https://www.nsnam.org/docs/release/3.29/tutorial/singlehtml/index.html#building-ns3 还有前人的 https://ww...原创 2019-01-01 12:33:43 · 3512 阅读 · 3 评论 -
ns3 coding style
先给官方链接一个 https://www.nsnam.org/develop/contributing-code/coding-style1、缩进为2个空格,不用tab2、命名方式 函数、方法和类型:驼峰式。 变量命名与驼峰式有下些许不同。例:变量 user name应该被写成userName,使用时:"UserName userName;"可以知道UUserNam...翻译 2019-01-01 16:54:43 · 155 阅读 · 0 评论 -
ns3——DSR Routing model 译
https://www.nsnam.org/docs/models/html/dsr.htmlDSR Routing 动态源路由(DSR)协议是专为移动节点的多跳无线自组网设计的一种反应式路由协议。DSR Routing Overview这个模块实现了动态源路由协议。实现基于 RFC 4728 ,对该标准进行一些扩展和修改。DSR 按需操作。因此在路由请求包(RREQ)...翻译 2019-01-28 22:26:37 · 1291 阅读 · 0 评论 -
ns3—— sixth.cc 大概理解
sixth.cc 总的来说就是下面这么个结构,目的:node0 要向 node1 发送TCP消息。 node 0 node 1+----------------+ +----------------+| ns-3 TCP | | ns-3 TCP |+----------------+ +-------...原创 2019-02-25 16:35:04 · 1139 阅读 · 0 评论 -
ns3——YansWifi 小例子
仅供下次看着方便#include <sstream>#include "ns3/core-module.h"#include "ns3/network-module.h"#include "ns3/applications-module.h"#include "ns3/mobility-module.h"#include "ns3/config-store-module...原创 2019-03-07 22:04:46 · 1911 阅读 · 1 评论 -
ns3 RawSocket 和 UdpSocket 的例子
RawSocket 和 UdpSocket 是一样的#include <iostream>#include <string>#include "ns3/core-module.h"#include "ns3/network-module.h"#include "ns3/internet-module.h"#include "ns3/applications...原创 2019-03-07 22:15:14 · 1224 阅读 · 1 评论 -
ns3 TcpSocket 例子
接上一篇RawSocket和 UdpSocket的例子TcpSocket#include <iostream>#include <string>#include "ns3/core-module.h"#include "ns3/network-module.h"#include "ns3/internet-module.h"#include "ns3/...原创 2019-03-07 22:28:27 · 2911 阅读 · 2 评论