LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-07-2003, 06:21 PM   #1
N_A_J_M
Member
 
Registered: Aug 2002
Location: Whangarei New Zealand
Distribution: Slack 8.1
Posts: 300

Rep: Reputation: 30
Question tcp window manipulation?


hey guys,
as of now is there any software capable of tcp window manipulation for linux? or windows?

the only way i know of is to drop perfectly good packets, which isnt very efficient.

cheers
 
Old 05-07-2003, 09:02 PM   #2
N_A_J_M
Member
 
Registered: Aug 2002
Location: Whangarei New Zealand
Distribution: Slack 8.1
Posts: 300

Original Poster
Rep: Reputation: 30
ET/BWMGR is what i have found? bandwidth manipulation software. but does it do tcp window manipulation? (dynamically??)

http://www.etinc.com/index.php?page=bwdemo.htm

anyone have any ideas?
 
Old 05-07-2003, 09:36 PM   #3
N_A_J_M
Member
 
Registered: Aug 2002
Location: Whangarei New Zealand
Distribution: Slack 8.1
Posts: 300

Original Poster
Rep: Reputation: 30
Following are some of the more noteworthy features of the ET/BWMGR.

HTML Management Interface (GUI)
Bi-directional Bandwidth Limiting and Allocation
Multi-port Bandwidth Managment at full gigabit speeds
Unlimited Sessions or Policies (limited by CPU power only)
Integrated System Monitor (analyze network activity)
Integrated Firewall Function
Multi-Speed Bridging on Any Number of Ethernet Interfaces (ie bridge gigabit to multiple 100Mb/s)
Manage Traffic by IP, MAC or Network Address or Protocol
p2p Traffic Control (KaZaA, Morpheus, iMesh, AudioGalaxy, etc)
Virtual Name Host Limiting and monitoring
Reverse Limiting (dynamic policy creation based on a trigger policy)
Balanced Reverse Limiting (Each client gets proportionate chunk of bandwidth)
Hard Limits and Optional "Burst" Limit for Each Defined Policy
Flexible Bursting Policy Definitions
Hard or Automated TCP Rate Limiting (TCP Window manipulation)
"Weighted" Priorities and Guaranteed Minimum Bandwidth
Bandwidth Templates/Profiles Simplify Large-Scale Deployment
10 Priority Levels
Full VLAN (VPN) support
Advanced Group Functions (group ceilings, balanced groups, member overrides, nested groups)
Interface (port) Limits
Limit traffic in, out separately or limit total bandwidth used
Separate "rulesets" for Firewall, Bandwidth Management and Prioritization
Bypass Priority for Local Data Streams
Change Rules Dynamically From Simple Scripts
Integrated Source and Policy Routing (Use as a transparent proxy for caching, etc)
Statistics gathering and reporting for any definable traffic type (IP, MAC, VLAN, data type)
Statistics-only mode ("sniffs" your LAN and gathers stats without being inline)
Export Statistics via SNMP for any data type
Graphing of any definable address, network or traffic type with Daily, Weekly and Monthy Usage Reports
Graphing of external Routers and Devices with integrated SNMP Client.
 
Old 05-08-2003, 07:38 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
As far as I've read, the only app what you ask for is Packeteer, and that's commercial. Maybe you could explain why you're focussing on that one issue as the main selection criterium?
 
Old 05-08-2003, 09:50 AM   #5
ealpert1
LQ Newbie
 
Registered: May 2003
Location: Colorado
Posts: 24

Rep: Reputation: 15
tcp window manipulation

On RH systems I no you can echo the TCP window high water level into some file in /proc. I can't remember I'll look it up and reply. This will allow you to increase it which should give you better performance when you're maxing out your connection. It also gives you worse performance for interactive processes. In the past I've barely noticed this but on a multi user system could be an issue.

Another thing I want to bring to your attention is the Web100 project which has some really cool real time instrumenting of TCP/IP as well as the ability to control the TCP/IP buffer in real time. The cavaet is that both clients and server need to have the Web100 patch. Could be an option. I know when I screwed around with this about a year and half ago I was able to push my transfers closer to the theoretical maxium than I'd ever been able to. It lets you visualize the latency and manually adjust for it.

-e
 
Old 05-08-2003, 10:14 AM   #6
mawdryn
LQ Newbie
 
Registered: Jun 2001
Posts: 25

Rep: Reputation: 15
Hi,

I think the files that ealpert1 is referring to are:

/proc/sys/net/core/rmem_max
/proc/sys/net/core/rmem_default
/proc/sys/net/core/wmem_max
/proc/sys/net/core/wmem_max

I have redhat9 and they're already set to 64k
 
Old 05-08-2003, 04:28 PM   #7
N_A_J_M
Member
 
Registered: Aug 2002
Location: Whangarei New Zealand
Distribution: Slack 8.1
Posts: 300

Original Poster
Rep: Reputation: 30
the reason i wanto to adjust this is because; no doubt with my 128k downstream adsl connection the buffer at the isp is full (causing huge latency) the only way i can fix this is by adjusting the tcp window size so that the senders of data slow it down so that the FIFO buffer at the ISP's router remains much lower.

this also helps with interactive connections such as telnet

I am having a look at the web100 site www.web100.org

there are also other projects like net100 built on web100 what is the difference?? anyone know i am reading about it, but if someone can put it in simple terms, that would be kool!

Also would web100 do a good job with my 128k adsl connection?

Last edited by N_A_J_M; 05-08-2003 at 04:52 PM.
 
Old 05-09-2003, 08:09 AM   #8
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
TCP/IP does this by itself. Part of the standard states that congestion control MUST be implemented to avoid this very thing.

The only reason you need to use these traffic engineering programs is if you want to artificially induce the congestion control algorith on certain types of traffic allowing other TCP sessions to have more bandwidth share.
 
Old 05-09-2003, 08:10 AM   #9
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
More info here, if you're interested!

http://www.ietf.org/rfc/rfc2581.txt
 
Old 05-09-2003, 08:14 AM   #10
ealpert1
LQ Newbie
 
Registered: May 2003
Location: Colorado
Posts: 24

Rep: Reputation: 15
Another option is to use tc. I do something like:

tc qdisc add dev eth0 handle ffff: ingress
tc filter add dev eth0 parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate 200kbit burst 10k drop flowid :1

This has the affect of dropping packets when they are arriving faster than 200 kbit
 
Old 05-09-2003, 08:18 AM   #11
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
This may be useful http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/index.html along with http://www.tldp.org/HOWTO/Bandwidth-...WTO/index.html if you want to make your cable modem alittle more efficient when it comes to interactive performance under load.

cheers

Jamie...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tough question about receiver window in TCP djcham Linux - Networking 0 09-20-2005 07:13 PM
TCP Congestion Window Size Reduction shinkm Linux - Networking 0 08-24-2004 04:10 AM
tcp/ip window size h/w Linux - Networking 2 12-04-2003 10:08 PM
tcp source code & window options arch_linux Programming 2 09-10-2003 11:52 AM
TCP Window Sizes saintt Linux - Networking 0 08-05-2003 11:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration