Solved

Modifying TCP Parameters

Posted on 2004-08-09
2
209 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

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

914 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

18 Experts available now in Live!

Get 1:1 Help Now