hello everybody need help how should i control the tcp rate, is it possible? also, suppose i have 2 database tables : 1) one for online accounting & 2) one for online sales updating now both of these transactions which will update my SQL server databse will be on the same port number how can i classify these packets so that i can give high bandwidth & highest prio to type 2 packets. 10x in advance. ganesh. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
On Tuesday 21 January 2003 21:43, ganesh palwe wrote:> hello everybody > > need help > > how should i control the tcp rate, is it possible?It''s possible www.lartc.org www.docum.org> also, > > suppose i have 2 database tables : > > 1) one for online accounting & > > 2) one for online sales updating > > now both of these transactions which will update my SQL server databse will > be on the same port number > > how can i classify these packets so that i can give high bandwidth & > highest prio to type 2 packets.What if you the iptables helper that can match packet with a string in it? I think the select is unique so you can see the difference. Once you can recognise the packets, you can mark them with iptables. That mark can be used to put the packets in differenct classes so you can configure different rates for the packets. But this will suck if you select statement is too big for one packet. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
ganesh palwe
2003-Jan-22 01:07 UTC
Re: how to determine tcp rate & classifying packet info
> >hello everybody >> > >need help >> >> how should i control the tcp rate, is it possible?>It''s possible >www.lartc.org >www.docum.org> >also, >> > >suppose i have 2 database tables : >> > >1) one for online accounting & >> > >2) one for online sales updating >> > >now both of these transactions which will update my SQL serverdatabse will> >be on the same port number >> >> how can i classify these packets so that i can give high bandwidth & >> highest prio to type 2 packets. >What if you the iptables helper that can match packet with a string in it?> I think the select is unique so you can see the difference. Once you can >recognise the packets, you can mark them with iptables. That mark can >be >used to put the packets in differenct classes so you can configure >different >rates for the packets. >But this will suck if you select statement is too big for one packet. > >Stef >-- still needing help ! i m very sorry to say that i hardly have got any useful stuff regarding controlling tcp rate, rather packeteer information was good (TCP Rate Control - by Shrikrishna Karandikar). what i want to do is everytime i want to establish a connection with any server(say X-server ) on the basis that X should send me data at agreed upon rate, the rate should not increase beyond that value. can i implement it? if yes where can i find information? Ok,next was for classifying packet by making use of marking what if i m using u32 classifier instead of fw. is there utility with u32 to mark packets. also, what i think is that, classifiers will come into the picture after the connection establishment, so how could they differentiate 2 different type applications for same service? 10x in advance ganesh. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Jesper Kold-Hansen
2003-Jan-22 09:33 UTC
Re: how to determine tcp rate & classifying packet info
Well red the doc on the cues. I know on the HTB que, there is a rate and a coil setting. The rate is the rate at wich the packegges are sendt in kbyte, and the coil is a burst funktion, so if you set the coil and the rate at the same speed you vil get a specifik rate that your packagges are send. But it is not easy to controle the actual rate, because when you set a rate, you actualle drop tcp packagges, the the protocol will slow down by it self. Look at the Advanced Routing howto. CandyMan On Tue, 21 Jan 2003, ganesh palwe wrote:> > > >hello everybody > >> > > >need help > >> > >> how should i control the tcp rate, is it possible? > > > >It''s possible > >www.lartc.org > >www.docum.org > > > >also, > >> > > >suppose i have 2 database tables : > >> > > >1) one for online accounting & > >> > > >2) one for online sales updating > >> > > >now both of these transactions which will update my SQL server > databse will > > >be on the same port number > >> > >> how can i classify these packets so that i can give high bandwidth & > >> highest prio to type 2 packets. > >What if you the iptables helper that can match packet with a string in it? > > > I think the select is unique so you can see the difference. Once you can > >recognise the packets, you can mark them with iptables. That mark can > >be > >used to put the packets in differenct classes so you can configure > >different > >rates for the packets. > >But this will suck if you select statement is too big for one packet. > > > >Stef > > > -- > > > still needing help ! > i m very sorry to say that i hardly have got any useful stuff regarding controlling tcp rate, rather packeteer information was good (TCP Rate Control - by Shrikrishna Karandikar). > what i want to do is everytime i want to establish a connection with any server(say X-server ) on the basis that X should send me data at agreed upon rate, the rate should not increase beyond that value. > can i implement it? if yes where can i find information? > > Ok,next was > for classifying packet by making use of marking > what if i m using u32 classifier instead of fw. > is there utility with u32 to mark packets. > also, > what i think is that, classifiers will come into the picture after the connection establishment, so how could they differentiate 2 different type applications for same service? > 10x in advance > ganesh. > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Wednesday 22 January 2003 02:07, ganesh palwe wrote:> still needing help !I have simple answer : rtfm.> i m very sorry to say that i hardly have got any useful stuff regarding > controlling tcp rate, rather packeteer information was good (TCP Rate > Control - by Shrikrishna Karandikar). what i want to do is everytime i want > to establish a connection with any server(say X-server ) on the basis that > X should send me data at agreed upon rate, the rate should not increase > beyond that value. can i implement it? if yes where can i find information?again www.docum.org www.lartc.org> Ok,next was > for classifying packet by making use of marking > what if i m using u32 classifier instead of fw. > is there utility with u32 to mark packets.rtfm. Fw is a filter that can match packets you marked with iptables/ipchain. u32 is an other filter that can use any bit in a tcp packet to filter the packets.> also, > what i think is that, classifiers will come into the picture after the > connection establishment, so how could they differentiate 2 different type > applications for same service? 10x in advanceSee kptd on www.docum.org Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/