Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Instead of an ACK text, maybe an MD5 hash could be sent as part of the message. If the MD5 mismatches with the concatenated text message stream then you know you have a dropped or corrupted packet.

Unfortunately that does introduce additional complications like knowing which packet failed (maybe there's a better method for checksuming for this type of situation?), but even in the worst case scenario, it only adds a small overhead to infrequently resend the entire stream than to double up each stream with ACK responses.



Good idea - You'd also have to add a "length" header at the beginning. Otherwise if the final SMS (containing the hash) was dropped, you'd be waiting forever.


You wouldn't want to use MD5 specifically because it would take up 32 characters of your message, but a simpler checksum might work.


MD5 was more a proof of concept than a design specification. However 32 characters is only 1/5 of an SMS so it's not beyond the realms of a practical (albeit lazy) fix.

Ideally though, you'd be right that something more concise would be preferable.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: