Re: Implement checksum against malformed packets

2020-04-08 Thread Enrico Olivelli
Il Gio 9 Apr 2020, 05:36 Michael Han ha scritto: > >> Why? > > A packet can be captured, altered its payload, and recomputed its > checksum(s) while transmitting, that's why encryption is needed. This > example sounds pedantic but serving the purpose of the argument. > With encryption the data in

Re: Implement checksum against malformed packets

2020-04-08 Thread Michael Han
>> Why? A packet can be captured, altered its payload, and recomputed its checksum(s) while transmitting, that's why encryption is needed. This example sounds pedantic but serving the purpose of the argument. With encryption the data integrity is ensured during transmission at least, but data can

Re: Implement checksum against malformed packets

2020-04-08 Thread Ted Dunning
The only way to corrupt a message transmitted on an encrypted link is to break the encryption. There is a tiny argument to be made that messages should be checksummed for protection even without the encryption, but these links should always be encrypted. The chance of a 160 bit checksum being cor

Re: Implement checksum against malformed packets

2020-04-08 Thread Andor Molnar
Hi Michael, "Checksum itself (even cryptographic checksum) can’t guarantee data integrity as packet in flight can be altered along with the new checksum.” Why? If either checksum or the payload was altered, the packet will be retransmitted. Furthermore we could implement error correction codes

Re: Implement checksum against malformed packets

2020-04-07 Thread Michael Han
>> but not bulletproof? tcp checksum is weak and can't detect all corrupt packet; and bit flip can happen anywhere within the stack, and can be caused by malfunction of ram, or say, cosmic rays. Statistically a corrupt packet survives all layers of check is low, and even a packet is corrupted, app