总结了一下sink模型。
功能:
- 获取相关统计量
- 销毁包
1.状态转移图
2.声明了五个局部统计量
3.声明了五个全局统计量
4.SV
Stathandle bits_rcvd_stathandle
Stathandle bitssec_rcvd_stathandle
Stathandle pkts_rcvd_stathandle
Stathandle pktssec_rcvd_stathandle
Stathandle ete_delay_stathandle
Stathandle bits_rcvd_gstathandle
Stathandle bitssec_rcvd_gstathandle
Stathandle pkts_rcvd_gstathandle
Stathandle pktssec_rcvd_gstathandle
Stathandle ete_delay_gstathandle
5.TV
Packet* pkptr;
double pk_size;
double ete_delay;
6.INIT入口代码
/* Initilaize the statistic handles to keep */