Improving tcp data loss issue