发明名称 Method and apparatus for generating an error detection code for a modified data packet derived from an original data packet
摘要 A method and apparatus for generating an error detection code, such as a Cyclic Redundancy Checksum (CRC), for a modified binary data block. The modified data block, such as a VLAN frame, is derived from an original binary data block, such as an ethernet frame, having a first error detection code associated therewith. In one embodiment, the method requires modifying the original data block utilizing first data, in the form of VLAN header information, to generate the VLAN frame, whereafter a second error detection code is calculated exclusively for the VLAN header information. More specifically, where the original data block is modified by the insertion of the VLAN header information into the original data block, a CRC is calculated using the VLAN header information shifted to a position corresponding to its position within the modified data block. Having calculated the second error detection code, the first and second error detection codes are added so as to generate a third error detection code, which is associated with the VLAN frame. The first and second error detection codes are binary values, and the step of adding comprises XORing the first and second error detection codes. The third error detection code is also a binary value and has a bit-length equal to that of the first error detection code.
申请公布号 US5935268(A) 申请公布日期 1999.08.10
申请号 US19970868784 申请日期 1997.06.03
申请人 BAY NETWORKS, INC. 发明人 WEAVER, JEFFREY C.
分类号 H03M13/09;H03M13/29;H03M13/35;H04L1/00;(IPC1-7):H03M13/00;G06F11/10 主分类号 H03M13/09
代理机构 代理人
主权项
地址