The MPLS WG Archive[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index][Thread Index][Author Index][Subject Index] [PWE3] MPLS PID
Shahram> First of all I meant computing CRC over the first 20 byte of Shahram> payload header and comparing it to the suspected IP CRC in octets Shahram> 11 and 12 of the payload. If they match then it is IPv4, if not it Shahram> is something else (similar procedure for IPv6) Shahram> Secondly I am proposing it now. Is there a problem? I feel my Shahram> procedure is far superior to just checking 4 bits to decide whether Shahram> the payload is IP or not. Certainly it's not superior in terms of the amount of computation or the number of memory accesses required ;-) Architecturally, it doesn't seem superior either. It is based on the assumption that the one's complement sum of the first 20 bytes of a non-IPv4 payload will not be zero. And it doesn't seem to handle IPv6.
|
|