CAN modeling and simulation based on OPNET
-
摘要: 为分析控制器局域网(Controller Area Network, CAN)协议,评价CAN网络性能,提出在OPNET网络仿真环境中CAN网络模型的建模方法.采用网络层次化建模方法构建节点模型.介质访问控制(Medium Access Control, MAC)子层中设计MAC、错误处理和帧间空间模块,保证系统结构清晰.通过进程设计,MAC模块中实现了网络实时性模型;错误处理模块中实现了连续错误下网络不可用模型.定义和编辑链路及数据帧模型.根据实例模型进行网络模型的配置和仿真.仿真结果与实例测试结果一致,验证了网络模型的有效性.通过分析具体网络仿真环境下的仿真结果,对CAN网络性能进行了讨论.该模型提供了独立可编辑的节点模型,链路模型和数据帧模型,可实现灵活的网络配置,用于不同网络拓扑分析.Abstract: To analyze controller area network (CAN) protocol and evaluate CAN network performance, the CAN network modeling method was developed, based on the OPNET network simulation environment. Layered modeling method was adopted to implement CAN node model. Medium access control (MAC) module, error module and deference module were proposed based on function in the MAC sublayer of node model in order to ensure clear system structure. Network response time analysis model and inaccessibility analysis model were implemented using process design separately in MAC module and in error module. Link model and data model were defined and edited. CAN network was configured and simulated according to example model. The agreement of the simulation results with the example model testing results prove this model is valid. Through results analysis of specifically-configured network, CAN network performances were discussed. Independent and editable node model, link model and data model were provided, indicating these models could be used to carry out varied network configuration flexibly and analyze varied network topologies.
-
Key words:
- centroller area network /
- OPNET /
- model building /
- simulation
-
[1] ISO 11898, Road vehicles—interchange of digital information—controller area Network for high-speed communication ISO[S] [2] Kotzian J, Srovnal V. CAN based distributed control system modeling using UML 2003 IEEE International Conference on Industrial Technology. Maribor, Slovenia: IEEE, 2003,2:1012-1017 [3] Acle J P, Reorda M S, Violante M. Early, accurate dependability analysis of CAN-Based networked systems[J]. Design & Test of Computers, 2006, 23(1):38-45 [4] Donlin A. Transaction level modeling: flows and use models Proceedings of the 2nd IEEE/ACM/IFIP International Conference on Hardware/Software Codesign and System Synthesis. Stockholm, Sweden: CODES + ISSS, 2004:75-80 [5] Schirner G, Domer R. Result-oriented modeling-a novel technique for fast and accurate TLM[J]. IEEE Trans on Computer-Aided Design of Integrated Circuits and Systems, 2007, 26(9):1688-1699 [6] 孙松, 孙川. 测控网络中CAN总线及其实现[J]. 计量与测试技术, 2004, 31(07):23-25. Sun Song, Sun Chuan. CAN bus in measuring and controlling system and its implementation[J]. Metrology and Measurement Technique, 2004,31(07):23-25 (in Chinese) [7] Pinho L M, Vasques F. Reliable real-time communication in CAN networks[J]. IEEE Trans on Computers, 2003, 52(12):1594-1607 [8] Punnekkat S, Hansson H, Norstrom C. Response time analysis under errors for CAN 2000 Proceedings of Real-Time Technology and Applications Symposium. Washington: IEEE, 2000:258-265 [9] Pinho L M, Vasques F, Tovar E. Integrating inaccessibility in response time analysis of CAN networks 2000 Proceedings of Factory Communication Systems. Porto, Portugal: IEEE International Workshop, 2000:77-84
点击查看大图
计量
- 文章访问数: 3780
- HTML全文浏览量: 71
- PDF下载量: 1451
- 被引次数: 0