What you are wanting to do is not strictly traffic shaping, but queueing.

Traffic shaping is making sure that you are sending x amount of traffic into 
the network.  It doesn't discriminate between types of traffic.  you use it 
to set your router to send at a minimum of your contracted CIR.

With queueing you can determine what sort of traffic which how much of a 
percentage of the bandwidth.

There is two ways you can go about this -
  1) with custom queueing you can guarantee that all traffic will get a 
chance to be sent, and you can change the queue sizes to try and set a 
percentage.
  2) with priority queueing you can guarantee that the mail traffic will go, 
and the rest of the traffic will go if there is room.

  For custom queueing, you can do something simliar to this:

queue-list 1 protocol ip 1 tcp smtp
queue-list 1 protocol ip 1 tcp <x.400>
queue-list 1 default 2
queue-list 1 queue 1 byte-count 1500
queue-list 1 queue 2 byte-count 3000

what this does -
  line 1 - put smtp traffic in queue 1
  line 2 - put x.400 traffic in queue 1 - note: i'm not familiar
              with x.400, so I don't know the exact command.  It would
              depend on what ports x.400 ran over, and if they were
              different from smtp.
  line 3 - put everything else into queue 2
  line 4 - send 1500 bytes from queue 1 before going to queue 2
  line 5 - send 3000 bytes form queue 2 before going to queue 1

becuase of the queue sizes queue 1 should be able to send 1500 bytes for 
every 3000 bytes of other traffic.  Which means it should be about 1/3 of 
the total traffic on the link when queueing is needed.  So, for a 64K line, 
that should be about 20K.

Note: this is based on average packet sizes being 1500.  Again, I don't know 
enough about smtp and x.400 to say what the real average packet size is, so 
those byte-count numbers may have to be adjusted to compensate if the real 
numbers are different.


to use priority queueing -

priority-list 1 protocol ip high tcp smtp
priority-list 1 protocol ip high tcp <x.400>


what this does -
  puts the mail traffic in the high priority queue.  this means that it will 
always be sent, even at the expense of the data traffic, if the link is 
congested and has to queue.  The other traffic will fall into the default 
queue which is normal priority.

again, I don't know if the second line is needed, it would depend on the 
specifics of the x.400 protocol.



hope that helps some.
   mike


>
>Hi all
>
>I am trying to configure a Cisco 3640 for traffic shaping. It has a 64k
>leased line where I have to allocate 20k for mail and X400 and the
>remaining bandwidth for other data traffic.
>Please can you give me some help: config examples, other way to realize
>that or some useful links for a correct understanding of what I am
>trying to do ?
>
>Thanks in advance
>Cristian
>
>___________________________________
>UPDATED Posting Guidelines: http://www.groupstudy.com/list/guide.html
>FAQ, list archives, and subscription info: http://www.groupstudy.com
>Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

___________________________________
UPDATED Posting Guidelines: http://www.groupstudy.com/list/guide.html
FAQ, list archives, and subscription info: http://www.groupstudy.com
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]

Reply via email to