- 博客(46)
- 资源 (4)
- 收藏
- 关注
转载 NS-3 Develop Tools
To download, manage the source code history, track the bugs, build, and review patches, we use many tools that were not developed for ns-3. If you are already familiar with them, the following list sh
2012-04-26 15:21:05
1474
转载 WHAT IS NS-3
ns-3 is a discrete-event network simulator, targeted primarily for research and educational use. ns-3 is free software, licensed under the GNU GPLv2 license, and is publicly available for research, de
2012-04-26 15:19:16
1249
转载 NS-3 Module overview
The ns-3 library is split across many modules organized under the Modules tab.aodvapplicationsbridgeclickconfig-storecorecsmacsma-layoutdsdvemuenergyflow-monitorinternetltemeshmobilitympinetanimne
2012-03-10 09:54:46
1390
转载 NS-3 Developers Overview
Many users of ns-3 focus on using existing models to conduct simulations. However, when the existing models lack a specific feature or when a new un-implemented model is needed, some ns-3 users turn t
2012-03-10 09:52:33
927
转载 为你的代码增加日志功能
可以通过几个宏调用日志组件给仿真增加新的日志功能。我们可以在scratch目录中的myfirst.cc中做。也许你还记得在脚本中我们已经定义过一个日志组件: NS_LOG_COMPONENT_DEFINE ("FirstScriptExample");我们已经了解了通过设置NS_LOG环境变量来给组件启用日志功能。我们可以给脚本增加一些日志功能。用来增加信息级别的日志消息的宏是N
2012-03-09 12:12:16
1272
原创 NS-3中Modules not built: click openflow
这不是安装错误。NS-3采用模块化的方式,需要什么组件,引用相关的组件头文件就行了。NS-3一般默认不安装click、openflow组件,因为很多人一般不用这两个组件。
2012-02-14 15:05:28
2358
1
转载 三种循环的流程图画法总结 [转]
转自: http://www.cnblogs.com/greenteaone/archive/2010/08/24/1807500.html C语言编程中常用的三种循环为for(;;),while 和 do-while。 1. for循环 for循环形式: for(表达式1;表达式2;表达式3) 流程图:
2012-02-14 14:58:17
6604
原创 NS-3中Ipv4Header说明
以下面为例来解释:ns3::Ipv4Header (tos 0x0 ttl 64 id 0 protocol 2 offset (bytes) 0 flags [none] length: 1220 192.168.1.1 > 192.168.1.4) Payload (size=1200)英文,全部格式 : http://en.wikipedia.org/wiki/IPv4
2011-12-08 10:29:55
1936
原创 NS-3中Config::Connect与Config::ConnectWithoutContext的区别
void ns3::Config::ConnectWithoutContext (std::string path,const CallbackBase &cb )This function will attempt to find all trace sources which match the input path and will then connect the inp
2011-12-08 10:02:20
3052
原创 NS-3中移动路径追踪
在NS-3中要实现移动路径追踪,首先应该想到MobilityModel移动模型,要实现追踪分析,就要用到trace sources.The list of all trace sources:http://www.nsnam.org/doxygen/group___trace_source_list.html在trace sources中找到MobilityModel,看到
2011-12-08 09:25:09
3877
1
原创 NS-3 中 Callback与MakeCallback的简单说明
Callback 与 MakeCallback是成对出现的。1. Callbackhttp://www.nsnam.org/doxygen/classns3_1_1_callback.html个人理解: Callback其实类似于“指向函数的指针"Callback模板类: Callback其中 R为Callback的返回类型,必选T1...T9是Callback的
2011-12-06 16:56:54
4583
1
转载 Assigned Internet Protocol Numbers
http://technet.microsoft.com/en-us/library/cc959827.aspxhttp://www.iana.org/assignments/protocol-numbers/protocol-numbers.xmlProtocol NumbersIn an IP header, the Protocol field i
2011-12-06 12:45:30
926
转载 cerr、clog、cout的区别
cout是输入内存缓冲区再到输出设备。cerr是直接到输出设备。clog是输入内存缓冲区但是不到输出设备。cerr与cout的主要区分就是,cout输出的信息可以重定向,而cerr只能输出到标准输出(显示器)上。 例如下面程序编译后生成test.exe // test.cpp #include i
2011-12-05 14:31:44
856
原创 ns-3 中 Utils 模块介绍
Utils模块的主要目的是:检查代码书写格式是否符合NS-3的标准。该模块并不是检查语法是否正确,仅仅检查代码的书写,比如缩进,换行,空格,等。NS-3 代码规范: http://blog.youkuaiyun.com/barcodegun/article/details/6895346主要用 check-style.py 程序进行检查。http://www.nsnam.org/dox
2011-12-05 09:13:58
1225
1
转载 一个wif ad hoc的例子
#include #include #include "ns3/core-module.h"#include "ns3/network-module.h"#include "ns3/internet-module.h"#include "ns3/applications-module.h"#include "ns3/ipv4-global-routing-helper.h"
2011-11-30 09:56:59
7170
1
原创 创建5个 Hello消息包及Packet详解
创建5个 Hello消息包:Ptr pkt1 = Create (reinterpret_cast ("hello"), 5);Packet:http://www.nsnam.org/docs/release/3.12/doxygen/classns3_1_1_packet.htmlPacket (uint8_t const *buffer, uint32_t size
2011-11-30 09:36:53
2380
原创 ns3::WifiPhyStandard 设置
ns3::WifiPhyStandard 设置enum ns3::WifiPhyStandardEnumerator: WIFI_PHY_STANDARD_80211a: OFDM PHY for the 5 GHz band (Clause 17) OfdmRate6Mbps, OfdmRate9Mbps, OfdmRate12Mb
2011-11-28 15:07:48
3905
原创 ns-3 GridPositionAllocator 属性解释
ns3::GridPositionAllocator 属性解释:Allocate positions on a rectangular 2d grid. 即把节点分配在一个矩形网格中。网址:http://www.nsnam.org/doxygen/classns3_1_1_grid_position_allocator.htm矩形的长度 = GridWidth * DeltaX
2011-11-17 13:46:48
3133
转载 DSSS、OFDM、FHSS的区别与联系
转自: http://hi.baidu.com/voltage/blog/item/4005621ea86ecb1840341737.htmlDSSS直接序列扩频抗干扰能力比较强,但是必须要求是可视就是说两点间的路由上没有任何的阻挡,或者阻挡的高度不能高于第一FRESNEL区,OFDM相对来说,在非视距的情况下可以进行数据传输。实际应用的时候,如果是点多多点的组网,OFDM之间的干扰更
2011-11-12 14:34:40
10561
转载 广播地址
转自百度百科: http://baike.baidu.com/view/473043.htmBroadcast Address(广播地址)是专门用于同时向网络中所有工作站进行发送的一个地址。在使用TCP/IP 协议的网络中,主机标识段host ID 为全1 的IP 地址为广播地址,广播的分组传送给host ID段所涉及的所有计算机。例如,对于10.1.1.0 (子网掩码:255.255.255
2011-11-12 10:14:05
1556
转载 Vehicular ad-hoc network
转自: http://en.wikipedia.org/wiki/Vehicular_ad-hoc_networkA Vehicular Ad-Hoc Network, or VANET is a technology that uses moving cars as nodes in a network to create a mobile network. VANET turns ever
2011-11-11 14:51:55
2409
转载 Manhattan mobility model
转自: http://en.wikipedia.org/wiki/Manhattan_mobility_modelThere are various mobility models in vehicular ad-hoc networks (VANET). These mobility models guide the driver of the vehicle in taking
2011-11-11 14:47:22
1994
转载 CSMA/CA
转自百度百科 : http://baike.baidu.com/view/645723.htm概述无线局域网标准802.11的MAC和802.3协议的MAC非常相似,都是在一个共享媒体之上支持多个用户共享资源,由发送者在发送数据前先进行网络的可用性检测。在802.3协议中,是由一种称为CSMA/CD(Carrier Sense Multiple Access with Collisio
2011-11-10 10:55:12
3654
转载 隐藏终端和暴露终端
转自: http://blog.sina.com.cn/s/blog_72a97b4e0100pj2k.html "隐藏终端"(Hidden Stations):在通信领域,基站A向基站B发送信息,基站C未侦测到A也向B发送,故A和C同时将信号发送至B,引起信号冲突,最终导致发送至B的信号都丢失了。"隐藏终端"多发生在大型单元中(一般在室外环境),这将带来效率损失,并且需要错误恢复机制。当需
2011-11-10 10:43:08
2611
原创 NS-3中wifi传输中的常见模型
wifi传输中的常见模型1.ErrorRateModel http://www.nsnam.org/doxygen/classns3_1_1_error_rate_model.htmlthe interface for Wifi's error models 1.1 NistErrorRateModel 继承ErrorRateModelhttp://www.nsnam
2011-11-10 10:11:05
5894
1
原创 NS-3中wifi的主要层次结构
wifi一、WifiHelper http://www.nsnam.org/doxygen/classns3_1_1_wifi_helper.html最高层次主要方法: WifiHelper () //实例化void SetRemoteStationManager() //设置远程基站NetDeviceContainer Install
2011-11-10 09:29:40
6427
1
原创 下载ns-3-dev
下载ns-3-devOfficial releases of ns-3 will be numbered as ns-3.release.hotfix官方版本: 如: ns-3.11 ns-3.12ns-3-dev 开发版,里面有一些新的特色,但也可能有新的问题。$ mkdir ns-3-dev$ cd ns-3-dev$ hg clone http:
2011-10-24 18:09:50
1806
原创 安装 ns-3.12
1.下载从这个页面下载:http://www.nsnam.org/ns-3-12/The source code can be downloaded from here while the extensive documentation is available in a variety of formats from here.下载地址:www.nsnam.org/release
2011-10-24 18:05:24
1205
原创 ns-3版本升级的问题
ns-3版本升级的问题在网上查了一个下午,一直没有找到找到较好的方法。所以,只有使有最原始的方法,新安装一个 ns-3.12。对于从 ns3.10,或 ns3.11等旧版本升级到 ns-3.12,又或者最新出了 ns-3.13版本,旧版本的升级,我目前没查到比较好的方法。重新装一个,是不得已的办法。或许有好的办法吧,如果谁知道,请留言给我,谢谢您的帮助。
2011-10-24 16:09:08
1519
1
转载 How To Install ns3 on linux ? [转]
转自: http://wirelesscafe.wordpress.com/2011/01/15/how-to-install-ns3-on-linux/Happy New Year to all the readers. Its long, I have not posted any thing on this blog except comments . So, here, tod
2011-10-24 15:41:22
1051
1
原创 在ns-3中运行程序
在ns-3中运行程序一、运行c++代码直接运行:首先编译 ./waf 然后执行./waf --run program-nameprogram-name是要执行的程序名。查看当前有哪些程序可以执行:http://blog.youkuaiyun.com/barcodegun/article/details/6899522二、运行 python代码./w
2011-10-24 13:57:25
2842
1
原创 一个ns-3的Gnuplot例子
一个ns-3的Gnuplot例子在安装目录下, /examples/tutorial目录下,有一个拥塞窗口的例子 fifth.cc,可以执行:$ ./waf --run examples/tutorial/fifth >fifth.dat 2>&1将会在安装目录下,生成 fifth.dat文件解释:> 表示输出重定向。>fifth.dat 把执行的结果存入到文件
2011-10-24 10:09:53
6138
2
原创 常用waf命令
常用waf命令一、配置及编译:$ ./waf configure [option]$ ./waf帮助: $ ./waf --help配置调试,优化调试: $ ./waf -d configure: debug,optimized 改变flag: $ CXXFLAGS="-O3" ./waf configure或者: $CXX=g++-
2011-10-24 09:43:18
7147
原创 在ns-3中 允许和禁止例子的执行
在ns-3中 允许和禁止例子的执行首先介绍一种最简单允许 examples 和 tests的方法:$./waf configure --enable-examples --enable-tests$./waf build就OK了。具体查看当前哪些例子可以执行,见:http://blog.youkuaiyun.com/barcodegun/article/details/689952
2011-10-24 09:22:16
1358
1
原创 在ns-3中查看当前有哪些程序可以执行
一、方法1: 在安装目录下:$ ./waf --run non-program注意 non-program 是随便起的一个名字,即当前不存在的一个程序名。我安装的版本是 ns-3-dev ,gpf@guopengfei:~/repos/ns-3-allinone/ns-3-dev$ ./waf --run non-program执行后,会提示你当前不存在 non-progr
2011-10-24 09:15:01
3342
6
原创 NS-3 简介
NS-3 简介全称为 Network Simulator 3官网: http://www.nsnam.org/ ns-2 的官网: http://isi.edu/nsnam/ns/目前,比较流行的版本有NS-2,以及NS-3。NS-2采用C++和OTcl代码编写,在学习过程中需要学习新的OTcl语言。NS-3全部采用C++语言编写,并且还可以用Python语言编写代码。
2011-10-23 22:28:21
11791
1
原创 在ns-3中添加自己编写的模块
本文将以自己的一个实例来进行详解:我的ns-3版本为 ns-3-dev/home/repos/ns-3-allinone/ns-3-dev/本文将把一个高速公路车联自组网的模型添加到ns-3中。一、编写代码这一步,就要是编写相关的代码本文代码见: http://download.youkuaiyun.com/detail/barcodegun/3710431二、
2011-10-23 15:15:09
19790
11
原创 Do not include ns3 module aggregator headers from other modules; these are meant only for end user s
在ns-3中添加自己编写的模块中遇到的一个问题编写的几个文件,不作为模块添加的时候,都可以正常运行。但量,作为一个整体组件添加到~/repos/ns-3-allinone/ns-3-dev/src中,创建的一个vanet模块 的时候,出现以下问题:Do not include ns3 module aggregator headers from other modules; t
2011-10-23 13:18:29
1314
1
原创 添加自己编写的模块到ns-3中出现undefined reference to问题的解决
添加自己编写的模块到ns-3中出现undefined reference to问题的解决向ns-3添加一个vanet模块,其中一个例子,在examples目录下, vanet-highway-test.cc编译的时候,出现问题:[1634/1751] cxx_link: build/debug/src/vanet/examples/vanet-highway-test_1.
2011-10-23 13:07:27
4453
5
一个高速公路车联自组网的ns-3模型
2011-10-23
ns-3的c++代码规范
2011-10-21
Google排名电子书
2009-02-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人