前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >fs学习笔记之输出格式

fs学习笔记之输出格式

作者头像
forrestlin
发布2018-05-23 17:50:04
7260
发布2018-05-23 17:50:04
举报
文章被收录于专栏:蜉蝣禅修之道蜉蝣禅修之道

接触fs那么久,有必要再记录一下。

上一篇介绍了fs拓扑描述文件dot的格式,今天要介绍fs输出文件的格式。

举个例子,以下是d节点输出文件的一行记录,也就是一条流经过d的记录。

textexport d 1.035154 1.035154 1.175314 10.1.1.2:1001->10.5.0.1:2001 tcp 0x0 b:172.16.0.70 4 1722 FSA

其中每个字段含义如下:

type of export (always textexport)


node name at which flow was observed (a)


sim time at which flow started


sim time at which flow ended


sim time at which flow record was written


source IP addr:source port->dest IPaddr:dest port


protocol


type of service (0x0)


identifier to indicate which interfacearrived on the node at which flow is observed (shows harpoon:172.16.0.1 toindicate that it arrived from a harpoon generator node, and the IP addressassigned to the interface on node a on which the traffic arrived)


number of packets in flow (5)


number of bytes in flow (4373)


TCP flags observed in flow (FIN | SYN | ACK)

需要注意的是,第二第三个记录并不是流的开始和结束时间,而是一个流经过d点时的开始和结束时间,那么如果想计算一个流的传输速度,就必须知道传输时间,但这个不能仅通过一个节点就能知道,需要对比开始节点和结束节点的记录,找到对应的流,然后计算时间差才能得出。下图为一个流吞吐量在600秒内的变化图。

可以看出,fs的吞吐量太不稳定了,拓扑中只有一条流时波动竟然这么大,因此如果是想利用fs计算流吞吐量的念头果断打消。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2014年06月20日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档