工业控制计算机
工業控製計算機
공업공제계산궤
INDUSTRY CONTROL COMPUTER
2014年
12期
1-3
,共3页
VxWorks%网络通信%UDP协议%套接字
VxWorks%網絡通信%UDP協議%套接字
VxWorks%망락통신%UDP협의%투접자
VxWorks%network communications%UDP Protocol%sockets
首先简要介绍了某一实时武器系统的网络组成,以及网络通信的基本结构。实时系统采用嵌入式操作系统VxWorks和TCP/lP网络通信协议。讨论了TCP协议与UDP协议各自适用的场合和优缺点。通过比较,系统采用了VxWorks系统下的UDP通信。接着介绍了Socket网络编程,并针对客户端/服务器通信模式的优缺点,给出了此实时系统的客户端与服务器的设计思路与步骤。最后给出了部分代码作为示例说明。
首先簡要介紹瞭某一實時武器繫統的網絡組成,以及網絡通信的基本結構。實時繫統採用嵌入式操作繫統VxWorks和TCP/lP網絡通信協議。討論瞭TCP協議與UDP協議各自適用的場閤和優缺點。通過比較,繫統採用瞭VxWorks繫統下的UDP通信。接著介紹瞭Socket網絡編程,併針對客戶耑/服務器通信模式的優缺點,給齣瞭此實時繫統的客戶耑與服務器的設計思路與步驟。最後給齣瞭部分代碼作為示例說明。
수선간요개소료모일실시무기계통적망락조성,이급망락통신적기본결구。실시계통채용감입식조작계통VxWorks화TCP/lP망락통신협의。토론료TCP협의여UDP협의각자괄용적장합화우결점。통과비교,계통채용료VxWorks계통하적UDP통신。접착개소료Socket망락편정,병침대객호단/복무기통신모식적우결점,급출료차실시계통적객호단여복무기적설계사로여보취。최후급출료부분대마작위시례설명。
First,this paper gives out a brief introduction to the network of real-time weapons systems and the basic structure of the communication network.Embedded operating systems VxWorks and TCP/lP network communication protocol are applied to the real-time systems.Then the paper introduces TCP protocol and UDP protocols applicable occasions and the advan-tages and disadvantages of each,and final y chose UDP protocols under VxWorks system.This paper also describes the socket network programming,and according to the advantages and disadvantages of client/server communication mode,the paper gave out the design ideas and steps of the real-time client and server systems.