- 浏览: 892172 次
- 性别:
- 来自: 太原
文章分类
- 全部博客 (198)
- Linux/Unix (38)
- TinyOS / NS-2 for『WSN』 (44)
- 思想的拼图 (5)
- 开源 OpenSource (2)
- Framework 开发框架 (0)
- Software Engineering 软件工程 (2)
- IT项目管理 (6)
- Networking 网络技术 (2)
- Java (6)
- C语言 ANSI C (22)
- .NET / C# (9)
- C++ (12)
- Web 语言 Html/Xml (5)
- Groovy on Grails (1)
- Algorithm 算法 (1)
- Database 数据库技术 (5)
- Tools (21)
- VM 虚拟机 (3)
- WSN (wireless sensor network) (2)
- Linux 命令专辑 (3)
- PHP (0)
- 办公软件 (3)
最新评论
-
cfczdws:
感谢楼主,查了半天终于发现居然是htmlentities()做 ...
htmlentities()函数把中文转成了乱码 -
decoxiaohan:
这本书的名字 有谁知道????~~~
OMNeT++中文用户手册(完全版) -
huonie:
怎么下载啊
OMNeT++中文用户手册(完全版) -
huonie:
没有内容啊
OMNeT++中文用户手册(完全版) -
kyx0413:
谢谢先 先看看
OMNeT++中文用户手册(完全版)
Mini-HOWTO: Pareto On/Off Traffic Generator
Pareto(柏拉图) On/Off Traffic Generator (POO_Traffic) 是一种流量生成器traffic generator (一种应用程序) 包含在OTcl类Application/Traffic/Pareto。 POO_Traffic产生网络流量依照Pareto On/Off distribution。 数据包在闭合周期(on periods)内以固定的速率发送, 并且在间歇期间(off period)停止发包。 on和off periods由固定的数据包大小的Pareto distribution得到。 这些数据源可以用来产生聚集的呈现long range dependency的流量(aggregate traffic that exhibits long range dependency)。 详见NS manual.
下面是建立一个新的Pareto On/Off traffic generator的代码:
set p [new Application/Traffic/Pareto] $p set burst_time_ 500ms $p set idle_time_ 500ms $p set rate_ 200k $p set packetSize_ 210 $p set shape_ 1.5
- 输入参数 Input parameters:
burst_time_ : Mean On (burst) time idle_time_ : Mean Off (idle) time rate_ : Send rate during burst packetSize_ : Packet size (fixed application frame size) shape_ : Pareto shape parameter
- 起始计算 Initial computation:
interval = packetSize_ * 8 / rate_ burstlen = burst_time_ / interval (in packets of given packetSize_)
- 在每个On/Off round循环, 计算2个独立的(independent) Pareto random variables:
next_burstlen : # of packets to be transmitted in the next burst period (ex: next Web object size in packets of given packetSize_) next_idle_time : next idle period length in seconds (ex: next think time)
- Pareto Traffic Generator 算法:
- Compute next_burstlen given the mean burstlen and the Pareto shape_ parameter.
- Send all next_burstlen packets (each packet transmission interval is interval seconds).
- Compute the next_idle_time using the mean idle_time_ and the Pareto shape_ parameter.
- Go to sleep for next_idle_time and go back to step 1.
- Pareto Distribution 分布:
In general, if X is a random variable from a Pareto distribution
(let f be the pdf, and E be the expected value)f(x) = a *ba / xa + 1 for x ≥ b
E(X) = b *a / (a − 1) if a > 1
where, a is called the Pareto "shape parameter" (shape_) and b is called the Pareto "scale parameter".
- How Pareto is used in the Pareto Traffic Generator:
(The Pareto shape_ parameter is denoted as a in the following equations.)burstlen = E(X) = b1 *a / (a − 1)
idle_time_ = E(Y) = b2 *a / (a − 1)b1 = burstlen * (a − 1) / a
b2 = idle_time_ * (a − 1) / adouble pareto(double scale, double shape)
When the Pareto traffic generator needs to compute next_burstlen, it does:int next_burstlen = int(pareto(b1, a) + 0.5); /* next_burstlen should be at least 1 packet */ if(next_burstlen == 0) next_burstlen = 1;
When the Pareto traffic generator needs to compute next_idle_time, it does:double next_idle_time = pareto(b2, a);
The Pareto traffic generator can be used as a Web traffic generator assuming that Web object sizes form a Pareto distribution. The NS default Pareto shape_ parameter (or a) is 1.5. However, it is uncertain if that 1.5 makes sense for Web object size distribution.
To find a reasonable Pareto shape_ parameter for Web object sizes, one should sample Web object sizes during transmissions (or borrow the results other research), draw the pdf of the samples and compute the mean object size (i.e., E(X)). Since E(X) can be computed from the collected data, the theoretical f(x) should be:
f(x) = g(x, a)
Then, one should be able to find a that makes the f(x) closest to the pdf of the measured Web object samples.
发表评论
-
几种用于WSN的仿真工具
2009-12-09 15:26 4214为评价无线传感器网络协议算法的性能,仅通过实验是无法实现的,特 ... -
OMNeT++中文用户手册(完全版)
2009-11-18 22:36 16610http://www.netforum.com.cn/view ... -
改变Telos 系列节点Serial baud rate
2009-08-21 18:50 2175如果节点与PC通信时出现非正常丢包或者serial不稳定当收包 ... -
TinyOS编译问题
2009-08-18 20:47 13081. 有时候编译提示找不到某个文件时, 可能是由于在linux ... -
改变节点transmission power, radio power level (tx_power)
2009-08-11 20:03 4294使用 CC2420Packet 中 setPower 来改变每 ... -
Tcl/tk 小记
2009-07-22 23:43 14981. 检查variable变量是否声明 在使用Tcl时候会经常 ... -
NS无线仿真中无法设置节点颜色的解决方案
2009-07-22 18:57 1922NS中提供了配置节点与 ... -
awk: malloc(): memory corruption 错误
2009-07-09 21:56 7223问题如下: *** glibc detected *** aw ... -
ns2 对无线网络模拟
2009-07-06 19:52 2643在模拟无线网络时需要对tcl模拟脚本文件的参数进行设置,比如P ... -
使用Gnuplot 绘制ns2模拟结果图
2009-06-25 17:48 8194Gnuplot(command-driven inter ... -
ns2模拟无线网络的NAM动画
2009-06-24 22:26 4979无线的各个参数 ####################### ... -
ns2 模拟WSN协议之手记
2009-06-23 23:55 2885ns2中模拟WSN,用Timestamp时间戳计算点对点Del ... -
ns2 中得到Agent的实例
2009-06-16 21:02 2896下面代码说明了如何访问其他节点的Agent,以AODV协议为例 ... -
TinyOS使用MIG时报错!
2009-04-06 01:30 1810在Makefile中加入启用MIG的选项后,编译出现一下错误: ... -
Tinyos 2.0 笔记小结(1)
2009-03-16 20:11 23331. configure组件注意事项 一般在confi ... -
Tinyos 2.0使用笔记
2009-03-06 19:48 27691.编译与安装程序到节点 引用 $ make mica2 ... -
Tinyos 中常用术语
2009-03-05 03:32 1075EOFF 关断能量损耗 用于 device off, stop ... -
什么是 nx_ type
2009-03-01 03:29 1490nx_ types 是在nesC 1.2,tinyos中用到的 ... -
TinyOS 下安装 JNI 的问题
2009-02-25 00:05 31961. "java not found, not i ... -
『TinyOS』学习笔记 #11?
2009-02-20 01:09 3779Lesson 11 TOSSIM Compiling ...
相关推荐
除了基本的ON/OFF模型,OPNET还提供了其他更复杂的业务源模型,如Pareto分布、Exponential分布等,以应对更复杂、多变的网络环境。通过组合不同的业务源模型,我们可以构建出更加贴近现实的网络场景,进行深入的性能...
对通过叠加满足Pareto重尾分布的ON/OFF业务点产生自相似业务量的方法进行了较系统的分析。在介绍了这种自相似业务量实现方式的理论基础后,给出了一种检验业务点叠加数量与模型精度之间关系的研究方法。仿真结果表明...
标题中“PPLS/D: Parallel Pareto Local Search based on Decomposition”指的是提出了一种基于分解的并行帕累托局部搜索(PPLS/D)算法,专门用于求解多目标组合优化问题(MCOP)。并行计算和问题分解是提升帕累托...
pareto matlab example
论文研究-不确定性下多目标博弈中弱Pareto-NS均衡的存在性.pdf, 在已知不确定参数变化范围的假设下, 研究了多目标博弈中弱Pareto-NS均衡点的存在性问题. 首先结合非合作...
这种平衡被称为Pareto最优,源于经济学中的帕累托效率概念,由意大利经济学家维尔弗雷多·帕累托提出。在多目标优化问题中,我们通常无法找到一个单一的解决方案使所有目标都达到最优,因此,我们需要找到一组非劣解...
在优化领域,特别是多目标优化问题中,"HV_HV_pareto真实前沿_pareto_真实pareto_超体积_"这个标题和描述涉及到的是一个关键的概念:Pareto前沿(Pareto Optimal Frontier)以及相关的超体积(Hypervolume)指标。...
如何制作Pareto图
压缩包内的子文件“2ture pareto”至“20ture pareto”分别对应2到20维DTLZ函数的真实Pareto前沿数据。每个文件可能包含了在特定维度下通过一系列实验得到的最优解集合,这些数据可以用来评估新的多目标优化算法是否...
1、资源内容:基于Matlab实现Pareto多目标求解(源码).rar 2、适用人群:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业或毕业设计,作为“参考资料”使用。 3、解压说明:本资源需要电脑端使用...
由于不同目标之间往往难以用统一的单位或者标准进行直接比较,多目标优化问题的求解通常不是寻找一个单一的最优解,而是寻找一组在各个目标之间取得平衡的最优解集,即Pareto最优解集。 Pareto最优解是多目标优化...
### ns与网络模拟 在网络研究领域,特别是针对网络协议、算法和系统的研究中,网络模拟是一种重要的工具。网络模拟器(Network Simulator),简称ns,能够帮助研究人员和工程师在虚拟环境中测试和验证各种网络协议...
总的来说,这个压缩包提供了一个使用MATLAB的`gamultiobj`函数进行多目标优化的实例,通过`my_first_multi.m`中的代码,我们可以学习如何定义和解决多目标优化问题,以及如何获取和解析Pareto最优前沿。`solution....
......\app_pareto_on_off.html ......\column ......\components.html ......\contributions.html ......\dtrr-queue.cc ......\dtrr-queue.h ......\dumbbell.tcl ......\ex-dtrr-queue.tcl ......\ex-...
### 擂台法则构建Pareto 最优解集 #### 概述 本文提出了一种基于擂台法则(Arena's Principle,简称AP)的方法来构建多目标问题中的Pareto最优解集。该方法充分利用了多目标进化的特性,并在理论上证明了其正确性...
简单的Pareto非支配排序算法,Matlab代码,简单实用,可以镶嵌到任何自己的程序里进行二次开发,之前自己找这类程序,大部分都是NSGA的,没有这种单独的Pareto排序的小程序,这里贡献一个!!!
**Android开发中的JavaScript库pareto.js** 在移动应用开发领域,尤其是Android开发中,JavaScript库经常被用于增强原生应用程序的功能或提供用户交互界面。`pareto.js` 是这样一个小型、直观且高效的JavaScript库...