Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to supervise the traffic of QOS

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article will explain in detail how to regulate the flow of QOS. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Traffic regulation is to take some action on the classified flow to limit the traffic rate of entering and leaving the network, and its principle is to limit the traffic and emergencies of a certain connection into a certain network. When a message meets certain conditions, if the traffic flow of a connection is too large, traffic regulation can take different actions on the message.

For example, discarding messages or reprioritizing messages, the usual method is to use CAR to limit the flow of certain messages. Let me tell you about the two methods I know:

1. Configure car traffic supervision on interface F0ram 1:

Router (config) # interface f0bin1 (specify the interface for Car speed limit)

Router (config-if) # rate-limit {input | output} 500000 1500 2000 conform-action transmit exceed-action drop (limit the speed of incoming or outgoing messages for all traffic on the interface)

Input | output: users want to limit the input or output traffic.

500000: the user wants the upper limit of the rate of this traffic in bps.

1500: this refers to the normal value of the token bucket for token bucket, in bytes.

2000: this is the maximum value of the token bucket for token bucket, in bytes.

Conform-action: the processing strategy for traffic below the rate limit.

Exceed-action: the policy for handling traffic that exceeds the rate limit.

Drop discards message

Transmit sends the message

2. Configure the speed limit of car traffic on the policy-map: monitor the CAR traffic of the F0swap 1 exit interface, so that the www traffic does not exceed 500k.

Router (config) # access-list 101permit tcp any any eq www (allow www services for all hosts)

Router (config) # class-map Q1 (enter | create a class mapping table. Q1 is the name, which is optional)

Router (config-cmap) # match access-group 101 (associated access list 101)

Router (config-cmap) # exit

Router (config) # policy-map Q2 (enter | create a rule mapping table. Q2 is a name, which is optional)

Router (config-pmap) # class Q1 (references a defined class mapping table)

Router (config-pmap-c) # police cir 500000 1500 2000 conform-action transmit exceed-action drop violate-action drop (token bucket speed limit for this type of traffic)

Router (config-pmap-c) # exit

Router (config-pmap) # exit

Router (config) # interface fastethernet 0amp 1

Router (config-if) # service-policy output Q2 (specify the rule mapping table applied on the interface, output is the outgoing interface)

When configuring traffic monitoring for services, you first need to define an access list to specify which services are subject to speed limits, and then create a class mapping table to associate with the access list.

Then create a rule mapping table to reference the defined class mapping table, and then limit the rate of this kind of traffic by token bucket as needed, and finally specify the applied rule mapping table on the interface.

1. A rule mapping table can be associated with multiple class mapping tables

2. Only one rule mapping table can be applied to an interface.

3. An interface can apply different directions of the same rule mapping table (outgoing interface and incoming interface).

On how to carry out QOS traffic regulation is shared here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report