Solved

Modifying TCP Parameters

Posted on 2004-08-09
2
200 Views
Last Modified: 2010-03-18
I have a program that constantly transmits data over an unreliable connection. The connection goes up and down frequently. With the current configuration of TCP, once the link is re-established, it can take up to a minute to continue transmission. How can I either change my program (which uses bulk read() & write() commands) or change the networking implementation in the kernel to shorten the re-establishment time?
0
Comment
Question by:streaks619
2 Comments
 
LVL 14

Expert Comment

by:pablouruguay
ID: 11761935
mmm i think the correct section for that is linux programing. :)
0
 
LVL 22

Accepted Solution

by:
pjedmond earned 500 total points
ID: 11856992
This will probably help:

http://www.die.net/doc/linux/man/man7/tcp.7.html

You need the sysctl:

tcp_keepalive_intvl

This is normally set at about a minute, hence up to a minute to continue transmission.

tcp_fin_timeout

may help with read()

HTH:)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now