计算机工程 ›› 2020, Vol. 46 ›› Issue (10): 231-239,247.doi: 10.19678/j.issn.1000-3428.0055763

• 体系结构与软件技术 • 上一篇    下一篇

基于LoadRunner的定制化业务背景流量生成系统

赵瑜, 吴承荣, 严明   

  1. 复旦大学 计算机科学技术学院, 上海 200433
  • 收稿日期:2019-08-16 修回日期:2019-10-18 发布日期:2019-10-29
  • 作者简介:赵瑜(1997-),女,硕士研究生,主研方向为网络空间安全、网络流量仿真;吴承荣,副教授;严明,讲师。
  • 基金项目:
    国家重点研发计划"试验场"项目(2017YFB0803203)。

Customized Business Background Traffic Generation System Based on LoadRunner

ZHAO Yu, WU Chengrong, YAN Ming   

  1. School of Computer Science, Fudan University, Shanghai 200433, China
  • Received:2019-08-16 Revised:2019-10-18 Published:2019-10-29

摘要: 主流背景流量生成方法有导入互联网实际流量法以及利用网络测试仪器生成法等,但是这些方法均较少关注流量的时空分布与业务流量细节分布,无法实现流量的深度模拟。为此,提出一个针对Web业务系统的基于LoadRunner的业务背景流量生成系统。该系统采用可扩展脚本机制、基于容器的分布式流量生成器阵列部署方式、地址修改机制、ON/OFF模型流量时间分布控制、检查与反馈机制等方法,实现了大规模逼真背景流量的生成,同时,还实现了内容异构、按需扩展、时空概率分布控制与自适应调节等特性。对以论坛网站为被测业务系统的实例进行验证,结果表明,实例测试生成的流量基本满足背景流量的时空特性,并在其他特征上符合预定设置,验证了系统设计的可行性。

关键词: 背景流量, 流量模型, ON/OFF模型, 容器技术, 反馈调节

Abstract: The mainstream methods for background traffic generation include the introduction of actual Internet traffic and the traffic generation using network test equipment,but these methods are less concerned with the temporal and spatial distribution of traffic and the detailed distribution of business traffic,so they fail to implement in-depth simulation of traffic.To this end,this paper proposes a business background traffic generation system based on LoadRunner for Web business systems.The system adopts methods such as scalable scripting mechanism,container-based distributed traffic generator array deployment method,address modification mechanism,spatial distribution control,inspection and feedback mechanism of ON/OFF model traffic,so as to implement the generation of large-scale realistic background traffic.At the same time,the proposed system realizes content heterogeneity,on-demand expansion,temporal and spatial probability distribution control and adaptive adjustment and other features.Verification tests are carried out by taking a forum website as a to-be-tested example business system,and the results show that the traffic generated by the example tests basically meets the temporal and spatial characteristics of the background traffic,and accords with the pre-settings in other characteristics,which demonstrates the feasibility of the system design.

Key words: background traffic, traffic model, ON/OFF model, container technology, feedback adjustment

中图分类号: