increase BUF_SIZE

512 is too small for MTU 1500, resulting in performance penalty.