cutting packets (send data starts with length)