c++ - packet fragmentation for raw sockets -


if using raw sockets send udp packet of size 3000bytes, need handle packet fragmentation myself in code, or should raw socket handle fragmentation similar dgram socket?

well, if using udp, aren't sending raw. raw no ip @ all, in case yes have handle fragmentation yourself.

with udp ip's fragmentation support, imho plenty enough short-haul networks collisions should minimal. make link between 2 systems dedicated subnet, , isn't issue @ all.

what tcp buys on udp (among other things) stack's ability have resend 1 fragment if gets lost or hosed somehow. udp if happens entire message must discarded. there's overhead though, , modern networks can live trade-off.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -