Labs tieng viet

48 404 10
Labs tieng viet

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

QoS Practice Labs QoS Practice Labs Lu Hue Thu ritalu2610@yahoo.com QoS Practice Labs - 1 - Lư Huệ Thu RSVP – Resource Reservation Protocol 1. Kiến thức cơ bản  RSVP là giao thức của Internet Engineering Task Force (IETF).  Được dùng trong mô hình Integrated Services (IntServ). RSVP thiết lập phiên báo hiệu cho các thiết bị trên đường truyền giành tài nguyên cho những luồng ứng dụng cần được đảm bảo chất lượng dịch vụ theo1 chiều từ nguồn đến đích.  Là giao thức “soft state”, tự động cập nhật tình trạng và thay đổi đường truyền khi có lỗi xảy ra.  Được hỗ trợ trên router, phần mềm gọi điện thoại (Cisco phones, Microsoft NetMeeting) và ứng dụng trong kỹ thuật điều phối lưu lượng MPLS Traffic Engineering. 2. Mục đích - Mô phỏng quá trình thiết lập phiên giành băng thông của giao thức RSVP. - Xem và hiểu cách hoạt động của phiên thiết lập. - Sử dụng phần mềm Wireshark phân tích các loại gói tin RSVP. 3. Thiết bị và phần mềm hỗ trợ - Cài phần mềm Wireshark để phân ích gói tin. - Cài card Loopback trên PC tương ứng PC1. - Cài phần mềm GNS3 ( sử dụng bất kỳ thiết bị router). 4. Lệnh cấu hình a. Lệnh cấu hình RSVP  Cho phép RSVP trên giao diện của router Router(config)# interface serial/fastethenet [interface-number] Router(config-if) # ip rsvp bandwidth [interface-kbps] [single-flow-kbps]  Cấu hình router là RSVP Sender ( thay mặt PC1 thiết lập phiên RSVP) Router(config) # ip rsvp sender session-ip-address sender-ip-address [ tcp | udp | ip- protocol ] session- dport sender-sport previous-hop-ip-address previous-hop-interface [bandwidth] [burst-size].  Cấu hình router là RSVP Reservation ( thay mặt PC2 cho phép hay không cho phép phiên giành băng thông từ R1) QoS Practice Labs - 2 - Lư Huệ Thu Router(config) # ip rsvp reservation session-ip-address sender-ip-address [tcp | udp | ip-protocol] session-dport sender-sport next-hop-ip-address next-hop-interface ff rate [bandwidth] [burst-size]. b. Kiểm tra cấu hình RSVP show ip rsvp interface [interface- number] Hiển thị các thông tin băng thông RSVP trên giao diện show ip rsvp installed [interface- number] Hiển thị thông tin RSVP đã cấu hình show ip rsvp neighbor [interface- number] Hiển thị RSVP neighbors show ip rsvp sender [interface- number] Hiển thị thông tin RSVP sender show ip rsvp request [interface- number] Hiển thi thông tin RSVP request show ip rsvp reservation [interface- number] Hiển thị thông tin RSVP reservation 5. Mô hình mạng 6. Nhiệm vụ thực hành - Gán địa chỉ các thiết bị trong mô hình trên. - Cấu hình giao thức định tuyến tĩnh trên router. - Cho phép RSVP trên tất cả các cổng của 3 router. Router(config-if) # ip rsvp bandwidth - Cấu hình R1 là RSVP-Sender thay thế PC1 gửi thông điệp Path. Sender(config) # ip rsvp sender 192.168.1.2 172.32.0.2 tcp 0 0 172.32.0.2 Fa0/0 10 5 - Cấu hình R3 là RSVP-Reservation thay thế PC2 gửi thông điệp Resv. S1 /1 S1 /0 S1/0 S1 /0 Fa 0 / 0 Fa0/0 .2 .2 .2 .1 .1 .1 .2 .1 50.0.0.0 / 8 70.0.0.0/8 192.168.1.0/24 172.32.0.0/ 16 place RSVP Sender RSVP Reservation RSVP Router PC1 Loopback PC2 place R1 R2 R3 QoS Practice Labs - 3 - Lư Huệ Thu Reservation(config) # ip rsvp reservation 192.168.1.2 172.32.0.2 tcp 0 0 192.168.1.2 Fa0/0 ff rate 10 5 - Kiểm tra cấu hình + Thông tin RSVP trên giao diện router. + Xem thông tin lưu lượng ưu tiên tại R1 : TCP (172.32.0.2 - 192.168.1.2). Giá trị trọng số của RSVP tại giao diện sử dụng Weight Fair Queueing là 6. Active reservation for traffic flowing in one direction : 10Kbps of bandwidth . QoS Practice Labs - 4 - Lư Huệ Thu + Hiển thị thông tin của router RSVP-Sender, RSVP-Reservation. + Xem thông tin về chiều thiết lập từ RSVP-Sender đến RSVP-Reservation. + Xem thông tin trên router láng giềng. QoS Practice Labs - 5 - Lư Huệ Thu + Thống kê số lượng gói tin RSVP đã được gửi cho đến thời điểm này. 7. Sử dụng phần mềm WireShark phân tích các thông điệp RSVP QoS Practice Labs Định dạng gói tin RSVP RSVP Message Header Fields cur flags = 0 a label for all fragments of one message MF flag is set on for all fragments of a message except the last fragment. the byte offset of the fragment in the message Fragment offsetMFReservedMessage IDSend TTLReservedLengthChecksumTypeFlagsVersion bits 16 1 15 32 8 8 16 16 8 4 4 Reservation - request ac knowledgment Appears when reservation - confirmation object in a reservation - request m essage . 7 Reservation - teardown 6 Path - teardown 5 Reservation - request error 4 Path - error 3 Reservation - request Request for guarantee QoS for the session. 2 Path Store the path state in each node and route reservation-request messages in the reverse direction 1 Message Type DescriptionsValue Using Path state or Reservation state to specify Errors (Admission failure, Bandwidth unavailable, Service not suppo rted, Bad flow specification, Remove the reservation. Path-teardown messages delete the path state. Reservation-request teardown messages delete the reservation state QoS Practice Labs - 7 - Lư Huệ Thu bits RSVP Object Fields Specify a session, contain IP destination address and possibly a destination port. Adspec Sender TSPEC Sender Template Time Value RSVP Hop Session Objects Advertising data. The traffic characteristics of a sender’s data stream. Identify a sender, contain sender IP address and perhaps some additional demultiplexing information. T he refresh period and the state TTL IP address of the RSVP - capable node . Class-Num : 0, C-Type : ignored. The receiver will ignored this object contents Types of messages Contents Null all RSVP messages anywhere in a obj. sequence The reservation style and style-specific information. Style R eservation - request Flow Specification Reservation-request Filter Specification Path Path Path Error Specification Path-error Reservation-request error Policy Data Path Reservation-request Scope Reservation-request Reservation Confirmation Reservation-request Specify an error. Information about local policy to decide permit an associated reservation. Specify the scope for forwarding a reservation-request message Reservation-request Reservation-request ack IP address of a receiver that requested a confirmation Specify the sessions that should receive the desired QoS. Specify flow that define desired QoS. Path Reservation all RSVP messages Object class (name) Object type Object contentsC-TypeClass-numLength Variable<=65528 bytes 8 8 16 QoS Practice Labs - 8 - Lư Huệ Thu Path message RSVP Header Object Fields QoS Practice Labs RESV message [...]... Practice Labs + Xem tổng số lượng gói tin đã được phân lớp vào từng hàng đợi tại giao diện S1/0 của R2 + Sử dụng lệnh debug, xem tình trạng hiện tại và cách hoạt động của PQ - 24 Lư Huệ Thu QoS Practice Labs - 25 Lư Huệ Thu QoS Practice Labs d Giới hạn số lượng gói tin trong từng hàng đợi R1(config) # priority-list 1 queue-limit 2 4 6 8 - 26 Lư Huệ Thu QoS Practice Labs - 27 Lư Huệ Thu QoS Practice Labs. .. QoS Practice Labs + Từ PC1 dùng lệnh ping để kiểm tra lưu lượng ping từ PC1 đến giao diện FastEthernet của R2 Tại R1 dùng lệnh show queueing interface s1/0 xem thông tin hàng đợi của lưu lượng ping, giá trị trọng số là 32384 * Cấu hình FIFO trên giao diện S1/0 - 18 Lư Huệ Thu QoS Practice Labs - 19 Lư Huệ Thu QoS Practice Labs * Cấu hình WFQ trên giao diện Fa2/0 - 20 Lư Huệ Thu QoS Practice Labs Priority...QoS Practice Labs Path tear message QoS Practice Labs RESV tear message QoS Practice Labs First In First Out Queuing – Weight Fair Queuing 1 Kiến thức cơ bản Đặc điểm FIFO Queuing :  Là hàng đợi cơ bản và được hỗ trợ trên tất cả các thiết bị cũng như... giao diện Fa2/0 của R1 - 14 Lư Huệ Thu QoS Practice Labs - Điều chỉnh kích thước FIFO, mặc định là 40 * Sử dụng lệnh Show để xem thông tin hàng đợi WFQ trên giao diện S1/0 của R1 - 15 Lư Huệ Thu QoS Practice Labs - Xem lại thông tin cấu hình bằng lệnh show running-config - Xem tất cả hàng đợi WFQ trên các giao diện router - 16 Lư Huệ Thu QoS Practice Labs - Điều chỉnh kích thước của hệ thống hàng đợi... Thu QoS Practice Labs + Xem tình trạng hiện tại và hoạt động của hàng đợi, số lượng gói tin đã được sắp xếp vào hàng đợi - 31 Lư Huệ Thu QoS Practice Labs d Giới hạn số lượng gói tin trong hàng đợi tương ứng với loại lưu lượng R1(config) # queue-list 1 queue 1 limit 10 R1(config) # queue-list 1 queue 2 limit 25 R1(config) # queue-list 1 queue 3 limit 4 - 32 Lư Huệ Thu QoS Practice Labs - 33 Lư Huệ... fragment offset ( Match fragments) TCP or UDP port number (Match packets based on their source or destination TCP/UDP port number) Phân loại dựa trên giao diện của router - 21 Lư Huệ Thu QoS Practice Labs Router(config)# priority-list list-number interface intf { high | medium | normal | low}  Phân loại các lưu lượng còn lại vào hàng đợi mặc định Router(config)# priority-list list-number default {... chỉ cho tất cả thiết bị dựa trên mô hình - Cấu hình giao thức RIP trên tất cả router - Cấu hình PQ trên giao diện S1/0 của R2 với chính sách ưu tiên như trên mô hình mạng - 22 Lư Huệ Thu QoS Practice Labs a Cấu hình từng lưu lượng với 4 mức độ ưu tiên HIGH : Telnet, Remote Desktop R1(config) # priority-list 1 protocol ip high tcp 3389 R1(config) # priority-list 1 protocol ip high tcp telnet MEDIUM... hỗ trợ - Cài card Loopback trên PC tương ứng PC1 - Cài phần mềm GNS3 ( sử dụng bất kỳ thiết bị router) 4 Lệnh cấu hình a Cấu hình FIFO + Cho phép FIFO trên giao diện Serial - 12 Lư Huệ Thu QoS Practice Labs Router(config)#interface serial [interfacel-number] Router(config-if)# no fair-queue + Điều chỉnh số lượng tối đa gói tin chứa trong hàng đợi Router(config-if)# hold-queue in | out in | out... that is not specifically classified is put into Queue 1 b Điều chỉnh kích thước của từng hàng đợi Router(config)# queue-list list queue queue-number byte-count byte-count - 28 Lư Huệ Thu QoS Practice Labs byte-count : số lượng byte ở từng hàng đợi sẽ được phục vụ xoay vòng, mặc định 1500 bytes Router(config)# queue-list list queue queue-number limit limit limit : số lượng tối đa gói tin chứa trong... 10 ) : Remote Desktop (10000 bytes) Queue 2 (size = 25) : HTTP (5000 bytes) Queue 3 (size = 4) : Ping (500 bytes) Queue 16 (size = 20 ) : default (1500 bytes) - 29 Lư Huệ Thu PC2 Loopback QoS Practice Labs 6 Nhiệm vụ thực hành - Gán địa chỉ cho tất cả thiết bị dựa trên mô hình - Cấu hình giao thức RIP trên tất cả router - Cấu hình PQ trên giao diện S1/0 của R2 với chính sách ưu tiên như trên mô hình . Practice Labs - 8 - Lư Huệ Thu Path message RSVP Header Object Fields QoS Practice Labs RESV message QoS Practice Labs Path tear message QoS Practice Labs RESV tear message QoS Practice Labs -. QoS Practice Labs QoS Practice Labs Lu Hue Thu ritalu2610@yahoo.com QoS Practice Labs - 1 - Lư Huệ Thu RSVP – Resource Reservation Protocol 1 giềng. QoS Practice Labs - 5 - Lư Huệ Thu + Thống kê số lượng gói tin RSVP đã được gửi cho đến thời điểm này. 7. Sử dụng phần mềm WireShark phân tích các thông điệp RSVP QoS Practice Labs Định dạng

Ngày đăng: 06/05/2014, 09:11