• 大小: 547KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-08
  • 语言: 其他
  • 标签: OPNET  aloha  csma  

资源简介

opnet实现简单aloha和csma,opnet帮助文档里的tutorials里的csma里的实现

资源截图

代码片段和文件信息

MIL_3_Tfile_Hdr_ 145A 140A modeler 9 59E31B91 59E31B91 1 chestnut_647-PC chestnut_647 0 0 none none 0 0 none 3830D716 BDA 0 0 0 0 0 0 1bcc 1                                                                                                                                                                                                                                                                                                                                                                                   g?@DHw	?	?	?	?	?	?	?k	
begsim intrpt

doc file nd_module
endsim intrpt

failure intrptsdisabledintrpt interval圆I?斆}priorityrecovery intrptsdisabledsubqueuecount

list 

super priority/* 有效接收到的包数量 */int \rcvd_pkts;#define IN_STRM 05#define PK_RCVD (op_intrpt_type() == OPC_INTRPT_STRM)7#define END_SIM (op_intrpt_type() == OPC_INTRPT_ENDSIM)D/* 全局变量,让所有的发送节点都向该变量能够添加自己企图发送的次数 */int subm_pkts = 0;static void proc_pkt()  { Packet* pkt; FIN(proc_pkt());  pkt = op_pk_get(IN_STRM); op_pk_destroy(pkt); ++rcvd_pkts; FOUT; }8/* 把仿真终止时的信道流量和信道吞吐量写入矢量文件当中 */static void record_stats() { double cur_time; FIN(record_stats()); cur_time = op_sim_time(); I op_stat_scalar_write(“Channel Traffic G“ (double) subm_pkts/cur_time);L op_stat_scalar_write(“Channle Throughput S“ (double) rcvd_pkts/cur_time); FOUT; }?JinitJJrcvd_pkts = 0;JJJpr_state?JidleJpr_state
??
Jtr_0JJJ
pr_transition??}M?=??Jtr_1JJPK_RCVDJJ
proc_pkt()JJJ
pr_transitiono<?Zbof?N?Jtr_2JJEND_SIMJJrecord_stats()JJJ
pr_transition1?? ?#??Jtr_3JJdefaultJJJ
pr_transition

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3034  2017-10-15 16:25  CSMA\aloha_rx.pr.m

     文件       2671  2017-10-15 15:07  CSMA\aloha_tx.pr.m

     文件       3061  2017-10-16 09:50  CSMA\cct_csma_tx.nd.m

     文件       1472  2017-10-15 16:33  CSMA\cct_link.lk.m

     文件      39888  2017-10-15 19:45  CSMA\cct_network.project\cct_network-#aloha-DES-1.desinfo

     文件       1166  2017-10-15 19:45  CSMA\cct_network.project\cct_network-#aloha-DES-1.ef

     文件       2563  2017-10-15 19:45  CSMA\cct_network.project\cct_network-#aloha-DES-1.olf.dir\7776_10-15-2017_11.45.05.ot

     文件        421  2017-10-15 19:45  CSMA\cct_network.project\cct_network-#aloha-DES-1.olf.dir\log_info

     文件       1033  2017-10-15 19:45  CSMA\cct_network.project\cct_network-#aloha-DES-1.ov

     文件      39887  2017-10-15 19:45  CSMA\cct_network.project\cct_network-#aloha-DES-2.desinfo

     文件       1165  2017-10-15 19:45  CSMA\cct_network.project\cct_network-#aloha-DES-2.ef

     文件      88576  2017-10-15 17:03  CSMA\cct_network.project\cct_network-#aloha.dev32.i0.nt.dll

     文件       8443  2017-10-15 17:03  CSMA\cct_network.project\cct_network-#aloha.dev32.i0.nt.exp

     文件      16196  2017-10-15 17:03  CSMA\cct_network.project\cct_network-#aloha.dev32.i0.nt.lib

     文件     445440  2017-10-15 17:03  CSMA\cct_network.project\cct_network-#aloha.dev32.i0.nt.pdb

     文件      39781  2017-10-15 17:03  CSMA\cct_network.project\cct_network-#aloha.nt.m

     文件       4285  2017-10-15 16:57  CSMA\cct_network.project\cct_network-#aloha.seq

     文件      39888  2017-10-16 09:54  CSMA\cct_network.project\cct_network-aloha-DES-1.desinfo

     文件       1166  2017-10-16 09:54  CSMA\cct_network.project\cct_network-aloha-DES-1.ef

     文件       2563  2017-10-16 09:54  CSMA\cct_network.project\cct_network-aloha-DES-1.olf.dir\3188_10-16-2017_01.54.50.ot

     文件        421  2017-10-16 09:54  CSMA\cct_network.project\cct_network-aloha-DES-1.olf.dir\log_info

     文件       1033  2017-10-16 09:54  CSMA\cct_network.project\cct_network-aloha-DES-1.ov

     文件      39891  2017-10-16 09:55  CSMA\cct_network.project\cct_network-aloha-DES-10.desinfo

     文件       1167  2017-10-16 09:55  CSMA\cct_network.project\cct_network-aloha-DES-10.ef

     文件       2859  2017-10-16 09:55  CSMA\cct_network.project\cct_network-aloha-DES-10.olf.dir\19592_10-16-2017_01.55.15.ot

     文件        422  2017-10-16 09:55  CSMA\cct_network.project\cct_network-aloha-DES-10.olf.dir\log_info

     文件       1031  2017-10-16 09:55  CSMA\cct_network.project\cct_network-aloha-DES-10.ov

     文件      39891  2017-10-16 09:55  CSMA\cct_network.project\cct_network-aloha-DES-11.desinfo

     文件       1167  2017-10-16 09:55  CSMA\cct_network.project\cct_network-aloha-DES-11.ef

     文件       2859  2017-10-16 09:55  CSMA\cct_network.project\cct_network-aloha-DES-11.olf.dir\15016_10-16-2017_01.55.17.ot

............此处省略155个文件信息

评论

共有 条评论