[ / / / / / / / / / / / / / ] [ dir / animu / chemo / dempart / jenny / leftpol / tingles / vg / x ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

[–]

 No.1033786>>1033865 [Watch Thread][Show All Posts]

So TCP is using a 16-bit checksum which only detects honest transmission error caused by noise in the transmission. However, one can easily swap two 16-bit words in a message, which has a 100% probability of being undetected. For stronger integrity checks, such as whether a man in the middle attacker actively changed the message, it is recommended to perform those checks at the application level.

But to the application, the TCP connection looks just like a stream of bytes, and at some point, the application may (or may not) detect that modified values were received (the modified message might still seem valid). How would a programmer handle this optimally?

I have the suspicion that this is not even possible without implementing your own packets on top of TCP, and then request the other party to re-send those higher-level packets. But if we go that far, why not directly use UDP and implement those higher-level packets with resend-requests in UDP? The only thing you'd still have to do in UDP would be the manual ordering of packets, but that seems comparatively easy. Also, UDP is faster than TCP, and you could directly use authenticated encryption on the protocol level, so instead of a 16-bit checksum, you'd have strong cryptographic guarantees about the integrity of the channel.

TL;DR: TCP makes it fucking hard to handle undetected transmission errors

Questioning validity of TCP

 No.1033865>>1033866

>>1033786 (OP)

I thought UDP was less error resistant than TCP? TCP can handle dropped packets but I don't think UDP can, since it can't piece packets back in order on the receiving end I think.

couldn't you just implement a separate protocol within an IP datagram instead of TCP or UDP?


 No.1033866>>1033867

>>1033865

Why did you bump this thread when there is another >>1033787 and even another that I won't post?

There are three threads about this shit. Why bump any of them?


 No.1033867>>1033874

>>1033866

I just saw this in the catalog, I'm not going to then check the rest of the catalog to see if this thread is a duplicate. OP should focus on not making multiple threads and the mods should delete all the thread spam and that one LARPing pedo faggot.


 No.1033874

>>1033867

>OP should focus on not making multiple threads and the mods should delete all the thread spam and that one LARPing pedo faggot.

QFT


 No.1033966>>1034143

OP here. Yesterday, 8ch had some problems and my thread didn't get through at first, but there was no error either. And minutes later, after I tried again, it spawned 2 threads. Sometimes, it's not really easy to not post twice.


 No.1034143

>>1033966

yeah, I know it messes up often. can you try to delete it though? mods should also try to delete duplicates but I'm not sure if they do.

saged obv




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
6 replies | 0 images | Page ???
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / animu / chemo / dempart / jenny / leftpol / tingles / vg / x ][ watchlist ]