using buffered output for network packet