Results 1 to 6 of 6

Thread: giúp em về priority queuing

  1. #1
    Join Date
    Jul 2012
    Location
    Ho Chi Minh city
    Posts
    11

    Default giúp em về priority queuing

    Capture.jpg

    (các r đều đã thấy nhau)
    ở con r1 em cấu hình như sau
    priority-list 1 protocol ip high tcp ftp priority-list 1 protocol ip high tcp ftp-data
    priority-list 1 protocol ip normal tcp telnet
    priority-list 1 protocol ip low tcp 3389
    priority-list 1 protocol ip medium udp snmp
    sau đó em add các priority trên vào các cổng như int s0/0 và f0/0
    trên r2 r3 r4 r5 r6 là framerelay em cũng cấu hình như thế,em thắc mắc là khi em dùng câu lệnh show queuing int s0/0 tại r1 cũng như tất cả các r khác thì đều hiện lên bảng thông số về high medium normal low ngon lành,nhưng khi sử dụng debug priority thì lại chẳng thấy đc sự ưu tiên mà toàn như vầy
    0039.735: PQ: Serial0/0 output (Pk size/Q 13/0)
    *Mar 1 0040.119: PQ: FastEthernet0/0 output (Pk size/Q 60/0)
    *Mar 1 0040.151: PQ: Serial0/0 output (Pk size/Q 84/0)
    *Mar 1 0040.155: PQ: Serial0/0 output (Pk size/Q 84/0)
    R1#
    *Mar 1 0043.607: PQ: FastEthernet0/0 output (Pk size/Q 90/0)
    *Mar 1 0044.267: PQ: Serial0/0: cdp (defaulting) -> normal
    *Mar 1 0044.267: PQ: Serial0/0 output (Pk size/Q 327/2)
    *Mar 1 0044.267: PQ: Serial0/0: cdp (defaulting) -> normal
    *Mar 1 0044.267: PQ: Serial0/0 output (Pk size/Q 327/2)
    các a có thể cho em biết là em đã làm sai chỗ nào và cách khắc phục đc ko ah

  2. #2
    Join Date
    Aug 2008
    Location
    VnPro
    Posts
    1,155

    Default

    em đã generate các loại traffic chưa?
    Phan Hoàng Gia Liêm - Instructor
    Email : gialiem@vnpro.org
    Yahoo : gialiem_vnpro
    -----------------------------------------------------------------------------------------------
    Trung Tâm Tin Học VnPro
    149/1D Ung Văn Khiêm P25 Q.Bình thạnh TPHCM
    Tel : (08) 35124257 (5 lines)
    Fax: (08) 35124314

    Home page: http://www.vnpro.vn
    Support Forum: http://www.vnpro.org
    - Chuyên đào tạo quản trị mạng và hạ tầng Internet
    - Phát hành sách chuyên môn
    - Tư vấn và tuyển dụng nhân sự IT
    - Tư vấn thiết kế và hỗ trợ kỹ thuật hệ thống mạng

    Network channel: http://www.dancisco.com
    Blog: http://www.vnpro.org/blog

  3. #3
    Join Date
    Jul 2012
    Location
    Ho Chi Minh city
    Posts
    11

    Default

    em đã tạo ra hết rồi,nhưng có vẻ khó bắt vô cùng netmeeting gần 1h mà chỉ thông báo 1 dòng tcp 3389 -> low,còn fpt thì chạy download dữ liệu từ c2 về mà cũng chả ra đc gói nào

  4. #4
    Join Date
    Aug 2008
    Location
    VnPro
    Posts
    1,155

    Default





    Em xem qua bài này và debug được vậy không nhé
    Priority queuing use 4 methods:


    1. High. It’s the highest priority
    2. Medium. This is the second priority
    3. Normal. This is the tird priority and by default traffic classified by this priority
    4. Low. It’s the lowest priority

    Let’s do practice


    R1#
    interface Loopback0
    ip address 1.1.1.1 255.255.255.255
    ip ospf 1 area 0
    !
    interface FastEthernet0/0
    ip address 12.12.12.1 255.255.255.0
    ip ospf 1 area 0
    no shut


    R2#
    interface Loopback0
    ip address 2.2.2.2 255.255.255.255
    ip ospf 1 area 0
    !
    interface FastEthernet0/0
    ip address 12.12.12.2 255.255.255.0
    ip ospf 1 area 0
    no shut


    Let’s make example.

    • All telnet will be set as high queue
    • All http traffic will be set as medium queue
    • All ping traffic will be set as normal queue
    • Default traffic will be set as low queue


    R1#
    priority-list 1 protocol ip high tcp 23
    priority-list 1 protocol ip medium tcp 80
    priority-list 1 protocol ip normal list 100
    priority-list 1 default low
    !
    access-list 100 permit icmp any any echo
    access-list 100 permit icmp any any echo-reply
    !
    interface fa0/0
    priority-group 1


    Verify the queuing priority


    R1#show queueing priority
    Current DLCI priority queue configuration:
    Current priority queue configuration:


    List Queue Args
    1 low default
    1 high protocol ip tcp port telnet
    1 medium protocol ip tcp port www
    1 normal protocol ip list 100


    Let’s debug if we already assign to right priority or not.
    To avoid appear a lot of messages, let’s deactivate debug for cdp and keepalive


    R1#
    no cdp run
    !
    int f0/0
    no keepalive


    Let’s do debug priority


    R1(config-if)#do debug priority


    Let’s test ping. It shoul go to normal priority


    R1(config-if)#do ping 2.2.2.2 sour 1.1.1.1
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
    Packet sent with a source address of 1.1.1.1
    !!!!!
    Success rate is 100 percent (5/5), round-trip min/avg/max = 24/40/56 ms
    R1(config-if)#
    *Mar 1 00:21:23.923: PQ: FastEthernet0/0: ip (s=1.1.1.1, d=2.2.2.2) -> normal
    *Mar 1 00:21:23.923: PQ: FastEthernet0/0 output (Pk size/Q 114/2)
    *Mar 1 00:21:23.979: PQ: FastEthernet0/0: ip (s=1.1.1.1, d=2.2.2.2) -> normal
    *Mar 1 00:21:23.979: PQ: FastEthernet0/0 output (Pk size/Q 114/2)
    *Mar 1 00:21:24.019: PQ: FastEthernet0/0: ip (s=1.1.1.1, d=2.2.2.2) -> normal
    *Mar 1 00:21:24.019: PQ: FastEthernet0/0 output (Pk size/Q 114/2)
    *Mar 1 00:21:24.051: PQ: FastEthernet0/0: ip (s=1.1.1.1, d=2.2.2.2) -> normal
    *Mar 1 00:21:24.055: PQ: FastEthernet0/0 output (Pk size/Q 114/2)
    *Mar 1 00:21:24.099: PQ: FastEthernet0/0: ip (s=1.1.1.1, d=2.2.2.2) -> normal
    R1(config-if)#
    *Mar 1 00:21:24.099: PQ: FastEthernet0/0 output (Pk size/Q 114/2)


    Let’s do telnet. It should go to high priority


    R1(config-if)#do telnet 2.2.2.2
    Trying 2.2.2.2 ... Open


    *Mar 1 00:23:57.191: PQ: FastEthernet0/0: ip (tcp 23) -> high
    *Mar 1 00:23:57.195: PQ: FastEthernet0/0 output (Pk size/Q 60/0)
    *Mar 1 00:23:57.275: PQ: FastEthernet0/0: ip (tcp 23) -> high
    *Mar 1 00:23:57.275: PQ: FastEthernet0/0 output (Pk size/Q 60/0)
    *Mar 1 00:23:57.279: PQ: FastEthernet0/0: ip (tcp 23) -> high
    *Mar 1 00:23:57.283: PQ: FastEthernet0/0 output (Pk size/Q 63/0)
    *Mar 1 00:23:57.287: PQ: FastEthernet0/0: ip (tcp 23) -> high
    *Mar 1 00:23:57.287: PQ: FastEthernet0/0 output (Pk size/Q 60/0)
    Phan Hoàng Gia Liêm - Instructor
    Email : gialiem@vnpro.org
    Yahoo : gialiem_vnpro
    -----------------------------------------------------------------------------------------------
    Trung Tâm Tin Học VnPro
    149/1D Ung Văn Khiêm P25 Q.Bình thạnh TPHCM
    Tel : (08) 35124257 (5 lines)
    Fax: (08) 35124314

    Home page: http://www.vnpro.vn
    Support Forum: http://www.vnpro.org
    - Chuyên đào tạo quản trị mạng và hạ tầng Internet
    - Phát hành sách chuyên môn
    - Tư vấn và tuyển dụng nhân sự IT
    - Tư vấn thiết kế và hỗ trợ kỹ thuật hệ thống mạng

    Network channel: http://www.dancisco.com
    Blog: http://www.vnpro.org/blog

  5. #5
    Join Date
    Jul 2012
    Location
    Ho Chi Minh city
    Posts
    11

    Default

    cho em hỏi là tại sao mình phải access list ping vậy ? còn về phần cấu hình priority em cũng làm tương tự như trên, khi em muốn bắt gói ftp (set ở mức high) thì bên c1 em cài winxp còn c2 là win 2k3 dựng ftp server,c1 vừa download upload lên c2 mà mãi gần 2 tiếng sau ở lệnh debug priority mới hiện lên thông số ftp -> high còn tất cả toàn là cdp(default)->normal

  6. #6
    Join Date
    Aug 2010
    Location
    BinhThanh - HCMC
    Posts
    429

    Default

    Nếu bạn không cho access-list ping vào hàng đợi normal thì mặc định nó được xếp vào hàng đợi default (trong bài lab trên là hàng đợi low, còn trong mô hình của bạn là hàng đợi normal ).
    Còn lệnh debug nó không hiện lên, là do cơ chế chuyển mạch CEF tren cisco đó bạn.
    Để debug lên được bạn tắt cef nhé. CLI:
    R(config)#no ip cef
    R(config)#int f0/0
    R(config-if)#no ip route-cache
    Nguyễn Bá Hiển
    Email: nguyenbahien@vnpro.org
    Yahoo: nguyenbahien_vnpro
    -------------------------------------------------------------------------------------------
    Trung Tâm Tin Học VnPro
    Địa chỉ: 149/1D Ung Văn Khiêm P25 Q.Bình thạnh TPHCM
    Tel: (08) 35124257 (5 lines)
    Fax: (08) 35124314

    Home page: http://www.vnpro.vn
    Support Forum: http://www.vnpro.org
    Network channel: http://www.dancisco.com
    • Chuyên đào tạo quản trị mạng và hạ tầng Internet
    • Phát hành sách chuyên môn
    • Tư vấn và tuyển dụng nhân sự IT
    • Tư vấn thiết kế và hỗ trợ kỹ thuật hệ thống mạng

    Blog: http://www.vnpro.org/blog
    Wifi forum: http://www.wifipro.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
 
   TRUNG TÂM TIN HỌC VNPRO
149/1D Ung Văn Khiêm, P. 25, Q.Bình Thạnh
Phone:(08) 35124257
Fax: (08) 35124314
Email: vnpro@vnpro.org
Powered by vBulletin Version 4.2.1
Copyright 2000 - 2011, Jelsoft Enterprises Ltd.
License owned by : VietProfessional Co.,Ltd
 

Ve may bay |Ve may bay gia re |Ve may bay di Ha Noi |Ve may bay di Nha Trang |Ve may bay di Da Nang |Ve may bay di Da Lat |Ve may bay di Vinh |Ve may bay di Hue |Ve may bay di Con Dao |Ve may bay di TP HCM |Air Asia |Tiger Airways |Vietnam Airlines |Lion Air |Aeroflot |Jetstar |Vietjet Air |Asiana |Delta Airlines |Singapore Airlines |Thai Airways |quantas |Turkish Airlines |China Southern Airlines |Air China |Ve may bay gia re |Ve may bay di Anh |Ve may bay di Canada |Ve may bay di Ha Lan |Ve may bay di Han Quoc |Ve may bay di Hong Kong |Ve may bay di Y |Ve may bay di Italia |Ve may bay di Malaysia |Ve may bay di Nga |Ve may bay di Phap |Ve may bay di Philippines |Ve may bay di Singapore |Ve may bay di Thai Lan |Ve may bay di Trung Quoc |Ve may bay di Uc |Ve may bay di Ukraina |Ve may bay di Duc |Ve may bay di My |Ve may bay di My