limit to buffer size to 512bytes for better UDP performance