Skip to contentSkip to conversation

Limiting Citrix printing traffic, so ensure interactive sessions

LARTC Bas Rijniersce 3 participants 6 messages May 20, 2002

lore
Share & tools
lore
#0 lore raw

LS,

Spent a lot of this weekend reading about shaping and traffic control. The Howto is very extensive... :-) I hope to use this list to see if what I want is possible.

The situation:
- A central (big) Citrix cluster located in Frankfurt (all servers in one subnet)
- The office in Rotterdam connected to Franfurt with a 2Mbit line
- The office in Bergen (Norway) connected to *Rotterdam* with a 128 line

Normal citrix session uses max 20k/s, printing is not limited! The problem is obvious, one user sent a big print job... Away is the interactive performance..

What i'm thinking of:

[Citrix cluster] -- [Linux proxy-arp shaper]-- Router to RTD -- Router to Brg

What is probably very easy to do is bring all the printers in a separate subnet in Bergen and use iptables to mark the packets for this subnet (I build a proxy-arp firewall before, so these are familiair techniques). It seems that Citrix traffic uses dynamic port numbers so identifying them this way seems impossible. If someone knows a way to use the u32 filter to select Citrix normal and Citrix printing traffic???

The behaviour that I would like to get:
- If no other traffic, printing or interactive get 100%
- If other traffic, printing gets the rest

I don't know if this is possible, acceptable would also be, let printing never exceed 30% of the total bandwidth

Thank you very much for your help!
Bas Rijniersce

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 16 lines · Bas Rijniersce

LS,

Spent a lot of this weekend reading about shaping and traffic control. The Howto is very extensive... :-) I hope to use this list to see if what I want is possible.

The situation:
- A central (big) Citrix cluster located in Frankfurt (all servers in one subnet)
- The office in Rotterdam connected to Franfurt with a 2Mbit line
- The office in Bergen (Norway) connected to *Rotterdam* with a 128 line

Normal citrix session uses max 20k/s, printing is not limited! The problem is obvious, one user sent a big print job... Away is the interactive performance..

Quoted 8 lines

What i'm thinking of:

[Citrix cluster] -- [Linux proxy-arp shaper]-- Router to RTD -- Router to Brg

What is probably very easy to do is bring all the printers in a separate subnet in Bergen and use iptables to mark the packets for this subnet (I build a proxy-arp firewall before, so these are familiair techniques).

Why proxy arping? You can enable briding so the network don't know you are shaping. If there is a problem with the brdige, just remove it and you can work again.

Quoted 3 lines

It seems that Citrix traffic uses dynamic port numbers so identifying them this way seems impossible. If someone knows a way to use the u32 filter to select Citrix normal and Citrix printing traffic???

How do you print? To dedicated print-servers or to printers attached to windows boxes?

Quoted 6 lines

The behaviour that I would like to get:
- If no other traffic, printing or interactive get 100%
- If other traffic, printing gets the rest

I don't know if this is possible, acceptable would also be, let printing never exceed 30% of the total bandwidth

Very easy to implement it in CBQ or HTB. The most difficult part is separating the printing traffic and the citrix traffic.

Stef

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Bas Rijniersce

Hi,

Quoted 1 line

From: Stef Coene [mailto:[email protected]]

Very good page by the way! Your page was the first I found when searching for linux and QoS.. Side note, do you have any other links to graphing tools for the "controlled" traffic. For us it will be very helpful to see how much traffic was passed/limited etc..

Quoted 5 lines

Why proxy arping? You can enable briding so the network don't know you are
shaping. If there is a problem with the brdige, just remove it and you can
work again.

Because I don't know exactly how a bridge is build :-) But I'll read up on that..

Quoted 9 lines
Quoted 1 line

It seems that Citrix traffic uses dynamic port numbers so

identifying

Quoted 1 line

them this way seems impossible. If someone knows a way to

use the u32

Quoted 1 line

filter to select Citrix normal and Citrix printing traffic???

How do you print? To dedicated print-servers or to printers attached to
windows boxes?

Queue lives on a local NT server, printer itself is JetDirect'ed. Workstation (and thus the ICA client) spool to the server

Quoted 9 lines
Quoted 6 lines

The behaviour that I would like to get:
- If no other traffic, printing or interactive get 100%
- If other traffic, printing gets the rest

I don't know if this is possible, acceptable would also be, let printing never exceed 30% of the total bandwidth

Very easy to implement it in CBQ or HTB. The most difficult part is separating the printing traffic and the citrix traffic.

But I think we have the IP space in the office to split a small subnet of for printers, that would solve this problem I guess

Quoted 1 line

Stef

Bas

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Bas Rijniersce
Quoted 4 lines

Very good page by the way! Your page was the first I found when searching for linux and QoS.. Side note, do you have any other links to graphing tools for the "controlled" traffic. For us it will be very helpful to see how much traffic was passed/limited etc..

Not really. There are some other scripts, but none of them uses the output of tc. Most of them are based on iptables counters. I'm still thinking about rewriting my script so you can see the output of tc and also graphs from iptables counters. And I need a better interface.

Quoted 7 lines
Quoted 5 lines

Why proxy arping? You can enable briding so the network don't know you are
shaping. If there is a problem with the brdige, just remove it and you can
work again.

Because I don't know exactly how a bridge is build :-) But I'll read up on that..

You have to enable it in the kernel. And you need to install the bridge tools (I think it's called brcfg). After enabling the bridge, you have a bridge device that forwards all traffic like a bidge and you'r done. Filtering traffic can be done with the u32 filter.

Quoted 2 lines

Queue lives on a local NT server, printer itself is JetDirect'ed. Workstation (and thus the ICA client) spool to the server

Can't you print directly to the JetDirect boxes from the ICA server? That way you can easy mark the print traffic.

Quoted 4 lines
Quoted 2 lines

Very easy to implement it in CBQ or HTB. The most difficult part is separating the printing traffic and the citrix traffic.

But I think we have the IP space in the office to split a small subnet of for printers, that would solve this problem I guess

Stef

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#4 lore raw
In reply to Bas Rijniersce

hi

Quoted 4 lines · * [email protected] wrote:

Very good page by the way! Your page was the first I found when searching for linux and QoS.. Side note, do you have any other links to graphing tools for the "controlled" traffic. For us it will be very helpful to see how much traffic was passed/limited etc..

http://reeler.org/software/tcstat/ (SCNR)
http://tcng.sf.net/

Signature · 4 lines
Thomas Graf
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#5 lore raw
In reply to Bas Rijniersce
Quoted 9 lines · Thomas Graf

hi

Quoted 4 lines · * [email protected] wrote:

Very good page by the way! Your page was the first I found when searching for linux and QoS.. Side note, do you have any other links to graphing tools for the "controlled" traffic. For us it will be very helpful to see how much traffic was passed/limited etc..

http://reeler.org/software/tcstat/ (SCNR)

Finally I found the URL of tcstat :) (typo on your site : "Stef's Tariff Control Page").

Stef

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/