`

NS by Example 笔记(13)Pareto On/Off

阅读更多

Mini-HOWTO: Pareto On/Off Traffic Generator

 

  • 描述 Description
  •  

    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.

     

     

     

  • 实例 Usage Example

    下面是建立一个新的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
    

     


  • 详细解释 Detailed Explanation
    1. 输入参数 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
        
    2. 起始计算 Initial computation:
        interval = packetSize_ * 8 / rate_
        burstlen = burst_time_ / interval (in packets of given packetSize_)
        
    3. 在每个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)
        
    4. Pareto Traffic Generator 算法:
       
      1. Compute next_burstlen given the mean burstlen and the Pareto shape_ parameter.
      2. Send all next_burstlen packets (each packet transmission interval is interval seconds).
      3. Compute the next_idle_time using the mean idle_time_ and the Pareto shape_ parameter.
      4. Go to sleep for next_idle_time and go back to step 1.
         
    5. 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 xb

        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".

    6. 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)

      Therefore:

        b1 = burstlen * (a − 1) / a
        b2 = idle_time_ * (a − 1) / a

      NS has a Pareto random number generator that takes the scale and shape parameter:

       

            double 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);
        

  • Discussion

    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.

  • 分享到:
    评论

    相关推荐

      opnet ON/OFF业务源

      除了基本的ON/OFF模型,OPNET还提供了其他更复杂的业务源模型,如Pareto分布、Exponential分布等,以应对更复杂、多变的网络环境。通过组合不同的业务源模型,我们可以构建出更加贴近现实的网络场景,进行深入的性能...

      论文研究-自相似业务量产生机理与模型精度分析.pdf

      对通过叠加满足Pareto重尾分布的ON/OFF业务点产生自相似业务量的方法进行了较系统的分析。在介绍了这种自相似业务量实现方式的理论基础后,给出了一种检验业务点叠加数量与模型精度之间关系的研究方法。仿真结果表明...

      PPLS/D: Parallel Pareto Local Search based on Decomposition

      标题中“PPLS/D: Parallel Pareto Local Search based on Decomposition”指的是提出了一种基于分解的并行帕累托局部搜索(PPLS/D)算法,专门用于求解多目标组合优化问题(MCOP)。并行计算和问题分解是提升帕累托...

      contoh pareto_lageee.rar_pareto

      pareto matlab example

      论文研究-不确定性下多目标博弈中弱Pareto-NS均衡的存在性.pdf

      论文研究-不确定性下多目标博弈中弱Pareto-NS均衡的存在性.pdf, 在已知不确定参数变化范围的假设下, 研究了多目标博弈中弱Pareto-NS均衡点的存在性问题. 首先结合非合作...

      多目标pareto最优解搜索算法

      这种平衡被称为Pareto最优,源于经济学中的帕累托效率概念,由意大利经济学家维尔弗雷多·帕累托提出。在多目标优化问题中,我们通常无法找到一个单一的解决方案使所有目标都达到最优,因此,我们需要找到一组非劣解...

      HV_HV_pareto真实前沿_pareto_真实pareto_超体积_

      在优化领域,特别是多目标优化问题中,"HV_HV_pareto真实前沿_pareto_真实pareto_超体积_"这个标题和描述涉及到的是一个关键的概念:Pareto前沿(Pareto Optimal Frontier)以及相关的超体积(Hypervolume)指标。...

      如何制作Pareto图

      如何制作Pareto图

      DTLZ测试函数真实pareto前沿数据

      压缩包内的子文件“2ture pareto”至“20ture pareto”分别对应2到20维DTLZ函数的真实Pareto前沿数据。每个文件可能包含了在特定维度下通过一系列实验得到的最优解集合,这些数据可以用来评估新的多目标优化算法是否...

      基于Matlab实现Pareto多目标求解(源码).rar

      1、资源内容:基于Matlab实现Pareto多目标求解(源码).rar 2、适用人群:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业或毕业设计,作为“参考资料”使用。 3、解压说明:本资源需要电脑端使用...

      基于Pareto最优解集的多目标粒子群优化算法

      由于不同目标之间往往难以用统一的单位或者标准进行直接比较,多目标优化问题的求解通常不是寻找一个单一的最优解,而是寻找一组在各个目标之间取得平衡的最优解集,即Pareto最优解集。 Pareto最优解是多目标优化...

      ns与网络模拟ns与网络模拟ns与网络模拟

      ### ns与网络模拟 在网络研究领域,特别是针对网络协议、算法和系统的研究中,网络模拟是一种重要的工具。网络模拟器(Network Simulator),简称ns,能够帮助研究人员和工程师在虚拟环境中测试和验证各种网络协议...

      matlab-gamultiobj.zip_MATLAB pareto_Pareto最优前沿_gamultiobj函数_pare

      总的来说,这个压缩包提供了一个使用MATLAB的`gamultiobj`函数进行多目标优化的实例,通过`my_first_multi.m`中的代码,我们可以学习如何定义和解决多目标优化问题,以及如何获取和解析Pareto最优前沿。`solution....

      NS2资源库NS2重要下载

      ......\app_pareto_on_off.html ......\column ......\components.html ......\contributions.html ......\dtrr-queue.cc ......\dtrr-queue.h ......\dumbbell.tcl ......\ex-dtrr-queue.tcl ......\ex-...

      擂台法则构建Pareto

      ### 擂台法则构建Pareto 最优解集 #### 概述 本文提出了一种基于擂台法则(Arena's Principle,简称AP)的方法来构建多目标问题中的Pareto最优解集。该方法充分利用了多目标进化的特性,并在理论上证明了其正确性...

      pareto排序程序

      简单的Pareto非支配排序算法,Matlab代码,简单实用,可以镶嵌到任何自己的程序里进行二次开发,之前自己找这类程序,大部分都是NSGA的,没有这种单独的Pareto排序的小程序,这里贡献一个!!!

      Android-pareto.js-非常小直观和快速实用工具类集合的JavaScript库

      **Android开发中的JavaScript库pareto.js** 在移动应用开发领域,尤其是Android开发中,JavaScript库经常被用于增强原生应用程序的功能或提供用户交互界面。`pareto.js` 是这样一个小型、直观且高效的JavaScript库...

    Global site tag (gtag.js) - Google Analytics