opnet之sink进程模型

本文详细介绍了OPNET模型中的sink进程,其主要功能包括获取统计量和销毁包。通过状态转移图、局部和全局统计量的声明,以及INIT入口和DISCARD出口代码,阐述了sink模型在仿真中的作用。注册统计量允许不同进程共享输出向量,避免冲突并方便协调。在多个进程模型中,可以使用返回的句柄向同一统计量写入仿真数据。
摘要由CSDN通过智能技术生成

总结了一下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 */
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值