fs学习笔记之输出格式

接触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计算流吞吐量的念头果断打消。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值