Control seding packets using window size