?
Solved

Modifying TCP Parameters

Posted on 2004-08-09
2
Medium Priority
?
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

762 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