Bài toán thực tế

Một phần của tài liệu Kỹ thuật điều khiển lưu lượng MPLS và ứng dụng cho mạng NGN của VNPT (Trang 96 - 104)

4.2.2.Các lý do để chọn điều khiển lưu lượng dựa trên MPLS

4.3.Bài toán thực tế

Bài 1: Bảo vệ và khôi phục đường

Trong sơ đồ trên sử dụng một bộ phát tín hiệu SMB để phát các tín hiệu từ UPE Suối Hoa lên BRAS E320 của VTN. Bài đo kiểm này đã được Ban viễn thông phối hợp với viện Khoa học kỹ thuật, viễn thông Bắc Ninh và hãng cung cấp thiết bị Huawei tiến hành.

Tunnel chính (Primary path): UPE Suối Hoa ——> Agg PE Suối Hoa.

Tunnel dự phòng (Hot stanby path) UPE Suối Hoa——>UPE BN ——> Agg PE TT Hồ.

Cấu hình việc test:

1.Bật định tuyến IS-IS, điều khiển lưu lượng TE trên tất cả các router.

2. Bật chức năng MPLS, MPLS-TE, MPLS RSVP-TE trên tất cả các router, các cổng kết nối.

3.Cấu hình tunnel chính giữa router UPE Suối Hoa ——> Agg PE Suối Hoa, dự phòng UPE Suối Hoa——>UPE BN ——> Agg PE TT Hồ.

4.Bật chức năng bảo vệ BFD cho đường chuyển mạch LSP.

5.Bật chức năng MPLS L2VPN trên router UPE Suối Hoa và Agg PE Suối Hoa, tạo các dịch vụ trên các sub-interface của UPE Suối Hoa và Agg PE Suối Hoa.

6.Kết nối SMB tới UPE Suối Hoa rồi tiến hành gửi dữ liệu qua đó.

7.Shutdown luồng kết nối từ UPE Suối Hoa ——> Agg PE Suối Hoa và kiểm tra thời gian hội tụ mạng.

Kết quả :

Sau khi link từ UPE Suối Hoa ——> Agg PE Suối Hoa bị down toàn bộ dự liệu từ SMB truyền qua UPE Suối Hoa ——> Agg PE Suối Hoa sẽ tự động chuyển sang hướng dự phòng UPE Suối Hoa——>UPE BN ——> Agg PE TT Hồ 3.

Thời gian để mạng hội tụ lại là 13.3 ms.

Lệnh cấu hình:

*Tại router UPE-Suối Hoa:

bfd mpls-passive mpls lsr-id 1.1.1.1 mpls mpls te mpls rsvp-te mpls te cspf mpls l2vpn mpls ldp remote-peer 1

remote-ip 2.2.2.2 interface LoopBack 0 ip address 1.1.1.1 255.255.255.255 isis enable 1 interface GigabitEthernet 3/0/0.1 vlan-type dot1q 1 mpls l2vc 2.2.2.2 1 tunnel-policy tunnel0/0/0 interface GigabitEthernet1/0/0 ip address 192.168.10.1 255.255.255.0 isis enable 1 mpls mpls te mpls rsvp-te interface GigabitEthernet2/0/0 ip address 192.168.20.1 255.255.255.0 isis enable 1 mpls mpls te mpls rsvp-te isis 1 is-level level-1 network-entity 49.0090.0101.0111.00 cost-style wide traffic-eng level-1 interface Tunnel0/0/0

ip address unnumbered interface LoopBack0 tunnel-protocol mpls te

destination 2.2.2.2 mpls te tunnel-id 1 mpls te bfd enable

mpls te bfd min-tx-interval 10 min-rx-interval 10 detect-multiplier 3 mpls te path explicit-path 2.2.2.2_primary

mpls te path explicit-path 2.2.2.2_ secondary secondary mpls te backup hot-standby

mpls te reserved-for-binding mpls te commit

tunnel-policy tunnel0/0/0

explicit-path 2.2.2.2_primary next hop 192.168.10.2 next hop 2.2.2.2 explicit-path 2.2.2.2_secondary next hop 192.168.20.2 next hop 3.3.3.3 next hop 192.168.30.2 next hop 2.2.2.2

*Tại router Agg PE Suối Hoa :

bfd mpls-passive mpls lsr-id 2.2.2.2 mpls mpls te mpls rsvp-te mpls te cspf mpls l2vpn mpls ldp remote-peer 1 remote-ip 1.1.1.1 interface LoopBack 0 ip address 2.2.2.2 255.255.255.255 isis enable 1 interface GigabitEthernet 3/0/0.1 vlan-type dot1q 1 mpls l2vc 1.1.1.1 1 tunnel-policy tunnel0/0/0 interface GigabitEthernet1/0/0 ip address 192.168.10.2 255.255.255.0 isis enable 1 mpls mpls te mpls rsvp-te interface GigabitEthernet2/0/0 ip address 192.168.30.2 255.255.255.0 isis enable 1 mpls mpls te mpls rsvp-te isis 1

is-level level-1

network-entity 49.0090.0101.0112.00 cost-style wide

traffic-eng level-1 (adsbygoogle = window.adsbygoogle || []).push({});

interface Tunnel0/0/0

ip address unnumbered interface LoopBack0 tunnel-protocol mpls te

destination 1.1.1.1 mpls te tunnel-id 1 mpls te bfd enable

mpls te bfd min-tx-interval 10 min-rx-interval 10 detect-multiplier 3 mpls te path explicit-path 1.1.1.1_primary

mpls te path explicit-path 1.1.1.1_ secondary secondary mpls te backup hot-standby

mpls te reserved-for-binding mpls te commit

tunnel-policy tunnel0/0/0

tunnel binding destination 1.1.1.1 te Tunnel0/0/0 explicit-path 1.1.1.1_primary next hop 192.168.10.1 next hop 1.1.1.1 explicit-path 1.1.1.1_secondary next hop 192.168.30.1 next hop 3.3.3.3 next hop 192.168.20.1 next hop 1.1.1.1

Bài 2 : Điều khiển lưu lượng theo các hàng đợi ưu tiên

Thứ tự ưu tiên được được sắp xếp như sau: FQSQQXCQPQ.

1.Cấu hình băng thông tối đa cho luồng kết nối từ UPE Suối Hoa sang Agg PE Suối Hoa là 1Gbits.

2.Cấu hình mức ưu tiên FQSQQXCQPQ trên các router.

3.Cấu hình các dịch vụ: thoại IMS, Internet, 3G, MyTV, hội nghị truyền hình với các mức QoS thứ tự DSCP 0,1,2,3,4,5,6.

Các mức ưu tiên: Queue 1: [PIR: Max CIR:0M] - IMS Các mức ưu tiên: Queue 2: [PIR: Max CIR:300M] - Internet

Các mức ưu tiên: Queue 3: [PIR: Max CIR:400M] – 3G Các mức ưu tiên: Queue 4: [PIR: 100 CIR:100M] – MyTV

Các mức ưu tiên: Queue 5: [PIR: Max CIR:600M] – Truyền hình hội nghị

Reference configuration: 1. Step 1

- Configure Agg PE Suối Hoa flow-queue test

queue af2 wfq weight 20 queue af3 pq

traffic classifier 3 operator or if-match 8021p 3

traffic classifier 2 operator or if-match 8021p 2

traffic behavior 3

car cir 100000 pir 100000 cbs 100000 pbs 100000 green pass yellow pass red discard

traffic behavior 2

car cir 300000 pir 1000000 cbs 300000 pbs 1000000 green pass yellow pass red discard

traffic behavior 1 traffic policy test classifier 2 behavior 2 classifier 3 behavior 3 classifier 1 behavior 1 interface GigabitEthernet3/0/0.1 control-vid 1 qinq-termination vlan-group 1

user-queue cir 300000 pir 1000000 flow-queue test inbound qinq termination pe-vid 100 ce-vid 200 vlan-group 1

traffic-policy test inbound link-layer mpls l2vc 5.5.5.5 10000

trust upstream default trust 8021p

2. Step 2: (adsbygoogle = window.adsbygoogle || []).push({});

- Configure Agg PE Suối Hoa: flow-queue test

queue af2 wfq weight 40 queue af3 pq

traffic classifier 3 operator or if-match 8021p 3

traffic classifier 2 operator or if-match 8021p 2

traffic classifier 1 operator or if-match 8021p 1

traffic behavior 3

car cir 100000 pir 100000 cbs 100000 pbs 100000 green pass yellow pass red discard

traffic behavior 2

car cir 300000 pir 1000000 cbs 300000 pbs 1000000 green pass yellow pass red discard

traffic behavior 1 traffic policy test classifier 2 behavior 2 classifier 3 behavior 3 classifier 1 behavior 1 interface GigabitEthernet3/0/0.1 control-vid 1 qinq-termination vlan-group 1

user-queue cir 300000 pir 600000 flow-queue test inbound qinq termination pe-vid 100 ce-vid 200 vlan-group 1

traffic-policy test inbound link-layer mpls l2vc 5.5.5.5 10000

trust upstream default trust 8021p

3. Step 3:

- Confugire Agg PE Suối Hoa: flow-queue test

queue af1 wfq weight 80 queue af2 wfq weight 20 queue af3 pq

traffic classifier 3 operator or if-match 8021p 3

traffic classifier 2 operator or if-match 8021p 2

traffic classifier 1 operator or if-match 8021p 1

traffic behavior 3

car cir 100000 pir 100000 cbs 100000 pbs 100000 green pass yellow pass red discard

traffic behavior 2

car cir 300000 pir 1000000 cbs 300000 pbs 1000000 green pass yellow pass red discard

traffic behavior 1

car cir 400000 pir 10000000 cbs 400000 pbs 10000000 green pass yellow pass red discard

traffic policy test classifier 2 behavior 2 classifier 3 behavior 3 classifier 1 behavior 1 Kêt quả:

1.Khi đường truyền trống (còn dư,) toàn bộ các luồng lưu lượng bị giữ lại cho đến khi lưu lượng của EF truyền đi hết, sau đó đến các mức ưu tiên tiếp theo từ AF4 đến BE. 0007 : BE 08 :AF1 16 :AF2 24 :AF3 32 :AF4 40 :EF

2.Khi lưu lượng các dịch vụ vướt quá mức cam kết theo các Queue thì toàn bộ lưu lượng của sẽ bị cắt bỏ đi mà truyền theo đúng tốc độ đã cam kết:

Các mức ưu tiên: Queue 1: [PIR: 10M CIR:0M] - IMS Các mức ưu tiên: Queue 2: [PIR: Max CIR:300M] - Internet Các mức ưu tiên: Queue 3: [PIR: 200 CIR:50M] – 3G Các mức ưu tiên: Queue 4: [PIR: Max CIR:100M] – MyTV

(adsbygoogle = window.adsbygoogle || []).push({});

Một phần của tài liệu Kỹ thuật điều khiển lưu lượng MPLS và ứng dụng cho mạng NGN của VNPT (Trang 96 - 104)