Explain in detail the path that affects the delivery of business traffic through MQC


         Many students will have a big feeling when they study the network, that is, our network can influence the path of business traffic forwarding through many mechanisms and methods. The most common is to use routing strategy and strategy routing to achieve.

         Today I will introduce to you another path method that can affect the delivery of business traffic - MQC . It is estimated that many students may not have heard of this concept. Of course, some students have heard of it. I guess some students who know this method will say that this is not a way of policy routing! I can only say that you must have been misled by Huawei's HDX . Indeed, Huawei HDX says that policy routing, especially interface policy routing, is solved by MQC ; but today, teacher, I will give you corrections: policy routing is actually only A tool is PBR , not MQC , and MQC is mainly used for QOS .

         Then let's tell you in detail what MQC is .

         Modular QoS command the MQC ( the Modular QoS-the Command Line Interface ) refers to certain features in common with the packet is divided into a class, and provide the same service to the same type of packets, packets may be of different types Provide different services.

          With the continuous enrichment of QoS services in the network, the implementation of differentiated services for different traffic (such as different services or different users) during network planning will make the deployment more complicated. The emergence of MQC enables users to finely process the traffic in the network, and users can more conveniently provide different services to the traffic in the network according to their needs, which improves the service capabilities of the network.

         Which MQC has three elements: traffic classification ( traffic classifier ), behavior ( traffic behavior ) and traffic policy ( traffic Policy )

         1 ) Flow classification: In fact, it is to classify different business flows through acl ;

         2 ) Flow behavior: specify different behaviors for different business flows;

         3 ) Flow strategy: Binding flow classification and traffic behavior one by one;

Okay, then we will show you how to use MQC to affect the forwarding path of business traffic through a case .

 image.png

Experiment purpose: through MQC , the business traffic from the marketing department is transferred to the company headquarters through the next hop R2 , and the business traffic from the finance department is transferred to the company headquarters through the next hop R3

MQC tools to achieve the steps are as follows:

1. First use the ACL tool to match the target traffic

2. Then define the behavior for the target traffic, such as modifying the next hop

The pre-configuration instructions run the ospf protocol between R1 , R2 , R3 and R4 . And all the network segments connected to the terminal equipment also run the ospf protocol. We changed the cost value of the interface G0/0/1 of R1 to 2. The purpose is to make the business of the marketing department and the financial department pass R1-R2-R4- Pass it to the company headquarters. Then we use MQC to let the path from the marketing department to the company headquarters be R1-R2-R4 ; and let the path from the finance department to the company headquarters be R1-R3-R4 .

Specific steps are as follows:

R1

ACL 3000

rule 5 permit ip source  10.1.1.0 0.0.0.255 destination 10.1.3.0 0.0.0.255

traffic classifier funqu1

if-match acl 3000

traffic behavior funqu1

redirect ip-nexthop 12.1.1.2

traffic policy funqu1

classifier funqu1 behavior funqu1

Int g0/0/2

traffic-policy funqu1 inbound

 

Acl 3001

rule 5 permit ip source  10.1.2.0 0.0.0.255 destination 10.1.3.0 0.0.0.255

traffic classifier funqu2

if-match acl 3001

traffic behavior funqu2

redirect ip-nexthop 13.1.1.3

traffic policy funqu2

classifier funqu2 behavior funqu2

Int g1/0/0

traffic-policy funqu2 inbound

verification:

 image.png

         The experiment was successful. I hope you can master the principle and configuration of MQC affecting the forwarding path of business traffic after reading this article . Thank you !

 


Guess you like

Origin blog.51cto.com/15134242/2662804