Packet Types: Abstract specifications of network protocol messages

Packet Types: Abstract specifications of network protocol messages
复制标题

数据包类型:网络协议消息的抽象规范

DOI:
--
复制
发表时间:
2000
期刊:
Conference on Applications, Technologies, Architectures, and Protocols for Computer Communication
影响因子:
--
通讯作者:
S. Chandra
S. Chandra
中科院分区:
--
文献类型:
--
作者:
P. McCann;S. Chandra

文献摘要

被引文献

相似文献

在编写网络代码时,经常面临根据标准化数据包格式解释原始缓冲区的任务。例如,在监视特定类型的数据包的网络流量时,或者在为协议处理解组传入数据包时,这是需要的。在这种情况下,程序员通常编写C代码来理解数据包的语法,并执行任何必要的字节顺序和对齐调整。由于某些协议格式的复杂性,以及所涉及的低级编程,编写此类代码通常是一个繁琐且容易出错的过程。此外,以这种风格编写的代码会丢失特定于领域的信息,即数据包格式,从而使其难以维护。
In writing networking code, one is often faced with the task of interpreting a raw buffer according to a standardized packet format. This is needed, for example, when monitoring network traffic for specific kinds of packets, or when unmarshaling an incoming packet for protocol processing. In such cases, a programmer typically writes C code that understands the grammar of a packet and that also performs any necessary byte-order and alignment adjustments. Because of the complexity of certain protocol formats, and because of the low-level of programming involved, writing such code is usually a cumbersome and error-prone process. Furthermore, code written in this style loses the domain-specific information, viz. the packet format, in its details, making it difficult to maintain.