Friday, September 4. 2009TCP and mobile IPTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
In general, I’ve been under the impression that the internet has grown less friendly to long-lived TCP sessions over the years, with the bulk of users just caring about HTTP. :-/ Comment
(1)
Comments (6)
# gimme back my scrollback in xterm! termcapinfo xterm|xterms|xs ti=\E7\E[?47l What it does is change the terminal init sequence and removes the “switch to the alternate (scrollback-less) screen buffer” bit that’s in the standard terminfo entry for xterm. And here’s the rest of my .screenrc; without this I find screen too obnoxious to be usable: startup_message off # I can’t live without my ^a in bash/readline defescape ^bb escape ^bb # probably don’t need this any more, since I use the native xterm scrollback defscrollback 1000 Comment (1)
Comments (6)
I haven’t tested this specific algorithm, but I did play a bit with other high-throughput ones and the difference in performance was sensible, though not particularly shocking. This article is a nice overview of the different algorithms available: http://linuxgazette.net/135/pfeiffer.html (you might have to recompile your kernel, my standard Debian kernel is showing only cubic and reno as available algorithms...) Comments (2)
Comments (6)
Comments (2)
ServerAliveInterval 30 try adding that to ssh conf Comment (1)
Comments (6)
My actual experience with ssh sessions on a train (Zagreb-Vinkovci, FWIW) was based on those factoids and on common sense :) I was usually able to learn quickly that I was going to enter a small period of downtime, seeing a part of the route where a BSS handover was likely - outside of populated areas etc - so I was forced to learn that, rather than trying to improve it, it’s best avoid TCP congestion avoidance altogether. So I do two things: First, use ssh only for processes where I trigger output changes, e.g. mutt. That way you retain control over when and how much new data comes (or tries to come) over the link. For example if you’re running any form of instant messaging (like ssh session with irssi in it), you can’t control how much new data will try to be pushed to your screen or when it will happen, so it’s inherently incompatible with semi-random blackout periods. Second, go idle on the active ssh connection as soon as possible when, best if I don’t send a single byte over a dead link. As soon as the link comes back up, start up mtr (or have a mtr running all the time if it won’t eat up your quota) and wait for proof that actual IP connectivity has come back up. Then resume the SSH session. Hope that helps. Comment (1)
Comments (6)
on both sides would help. I’ve no idea what this option does, and Documentation/networking/ip-sysctl.txt is quite unhelpful. Comment (1)
What you really want to change is TCP_RTO_MAX, which is 120 seconds by default on linux. This forces the stack to do retransmits earlier, so connections will recover faster once connectivity is restored. Unfortunately, patches adding a sysctl to change it at runtime have repeatedly been dropped, so you have to patch include/net/tcp.h and recompile the kernel. Additionally, you might want to increase net.ipv4.tcp_retries2 (the maximum retry count for established connections) to avoid the kernel breaking connections earlier due to shorter RTO. Note that this only affects the sending direction, so the kernel has to be modified on both ends of the ssh connection. A negative side effect is that the TCP stack behaves worse if a connection really has a very high latency (more spurious retransmits). It might be unwise to reduce the max RTO to much on a public server. The RFCs mention 60 seconds as a lower limit. A completely different solution might be using rocks (http://freshmeat.net/projects/rocks). However, this project isn’t maintained for quite some time now, and I don’t know if it is still usable today. Comment (1)
Comments (6)
No Roks isn’t useable anymore it carshes all the time, it is ment to handle a different problem though. Rocks is
to be able to keep a TCP connection even though you change IP..
Comment (1)
|
QuicksearchBlog AdministrationCategoriesRecently addedWed, 2010-03-17 16:39Talkline, habt ih [...] Wed, 2010-03-17 11:10von Sales Chats CommentsTue, 2010-03-09 00:10
Thu, 2010-03-04 22:31
Thu, 2010-03-04 11:31
Thu, 2010-03-04 08:54
Mir schießt heute noch das Was
ser in die Augen, wenn ich ein
Bild von meinem Stanislaus fi
nde. Und das ist immerhi [...]Comments ()
Wed, 2010-03-03 20:15
Oh Marc, Sandra,
das tut mir
fürchterlich leid. :-(
Ich
fühle mit Euch, um diesen off
enbar sehr besonderen Katz.Comments ()
Show tagged entries6310
![]() öffnungszeiten ![]() öpnv ![]() admintipp ![]() aide ![]() akku ![]() alice ![]() alpgrüm ![]() alsa ![]() alturo ![]() ansagen ![]() anwalt ![]() apache ![]() arbeit ![]() arbeitsplatzrechner ![]() arcor ![]() artikelreihe ![]() augenarzt ![]() auto ![]() bahn ![]() bahnhof ![]() bank ![]() baumarkt ![]() berlin ![]() best-of-mailing-list ![]() bilder ![]() blasenentzündung ![]() blog ![]() blogsignal ![]() bluetooth ![]() blutzuckermessung ![]() bohrmaschine ![]() boot ![]() booten ![]() brille ![]() browser ![]() bts ![]() bugs ![]() bus ![]() callcenter ![]() chat ![]() citynightline ![]() clamav ![]() cnl ![]() cold call ![]() computer ![]() console ![]() cookies ![]() cron-apt ![]() dänemark ![]() datenschutz ![]() db ![]() dbag ![]() debian ![]() debian-english ![]() debugging ![]() deppen ![]() deutsche bahn ![]() deutschland ![]() dhl ![]() dienstleistung ![]() disco ![]() dns ![]() domain ![]() drivers ![]() dsl ![]() durchhilfe ![]() dvb-s ![]() ![]() e90 ![]() einkauf ![]() elektrik ![]() elektro ![]() englisch ![]() english ![]() essen ![]() ethernet ![]() exchange ![]() exim ![]() exim4 ![]() exploit ![]() föhr ![]() fahrkarten ![]() fahrrad ![]() fdi ![]() fernsehen ![]() fernseher ![]() firewall ![]() firewalls ![]() firstdedicated ![]() flitterwoche ![]() foto ![]() fotos ![]() freenet ![]() freizeit ![]() fremdblog ![]() freunde ![]() fundsache ![]() geburtstag ![]() geschenk ![]() Template dropdownTechnorati |