LAB2 - Quality of Service (1122060417)
-
Upload
le-thanh-duy -
Category
Documents
-
view
45 -
download
0
Transcript of LAB2 - Quality of Service (1122060417)
Thầy Nguyễn Đức Quang Lương Thế Quang
1
BỘ GIÁO DỤC VÀ ĐÀO TẠO
TRƯỜNG ĐẠI HỌC T ẬT CÔNG NGHỆ TP.HCM HUTECH
KHOA C O Đ T C À
---------o0o---------
BÁO CÁO ĐỀ TÀI MÔN
QUẢN TRỊ MẠNG
Quality of Service
GV : Thầy Nguyễn Đức Quang
SV : Lương Thế Quang
Lớp : C11QM15
MSSV: 1122060417
Thầy Nguyễn Đức Quang Lương Thế Quang
2
I. Nội dung và yêu cầu bài LAB:
1. Mô hình:
2. Mô tả:
2.1) Công nghệ kết nối:
Công nghệ kết nối : Mô hình gồm 6 router và một Frame Relay Switch.
Các router được gán tên R1, R2, R3, R4, R5, R6 như trên hình vẽ.
R1, R2 và R3 kết nối với nhau bằng công nghệ chuyển mạch khung (Frame Relay)
với 2 PVC giữa R1 với R2 và giữa R1 với R3.
R1 kết nối với máy tính thật qua card mạng loopback và R6 kết nối vào máy tính
ảo Vmware.
2.2) Giao thức định tuyến:
OSPF cho R1, R2 và R3 (R1 và R3 area 0, R1 và R2 area 1)
EIGRP cho R3 và R4
BGP cho R4, R5 và R6
Thầy Nguyễn Đức Quang Lương Thế Quang
3
3. Yêu cầu:
3.1) Ưu tiên lưu lượng theo các thứ tự sau:
FTP: High
SNMP: Medium
VNC (Remote Desktop): Normal
Netmeeting: Low
Dùng phần mềm và lệnh show, debug để thể hiện điều trên.
3.2) Cấu hình Custom-Queuing tại cổng S1/1 của R3 như sau:
Queue 1: Netmeeting - 10000 bytes
Queue 2: HTTP - 5000 bytes
Queue 3: PING - 20 bytes
Queue 16: Còn lại - 800 bytes
Dùng phần mềm và lệnh show, debug để thể hiện điều trên.
3.3) Trình bày cấu hình và bảng định tuyến của tất cả các router trong mạng.
Thầy Nguyễn Đức Quang Lương Thế Quang
4
II. Thực hiện yêu cầu bài LAB:
Mô tả cách thực hiện:
Thực hiện Redistribute giữa OSPF và EIGRP trên router R3.
Thực hiện Redistribute giữa EIGRP và BGP trên router R4.
Cấu hình Custom Queuing trên cổng S1/1 của router R3.
Cấu hình Priority Queuing trên tất cả các cổng còn lại của các router.
o Với lưu lượng Netmeeting, do netmeeting tích hợp rất nhiều chức năng khác như
chat, vẽ, chia sẻ file, gọi thoại và remote desktop. Nhưng do trong phần câu hỏi có
yêu cầu VNC (Tức Remote Desktop) phải được ưu tiên mức normal, nên ta chỉ
tạo 1 access list sử dụng port 1503 (Các ứng dụng chat, share,…) và port 1720
(Gọi thoại) để ưu tiên cho các lưu lượng này của netmeeting.
1. Hình chụp các lệnh show và debug sau khi cấu hình hoàn tất Priority Queuing.
Sử dụng các lệnh show để kiểm tra trên Router R4
Thầy Nguyễn Đức Quang Lương Thế Quang
5
Thầy Nguyễn Đức Quang Lương Thế Quang
6
Sử dụng lệnh debug priority để kiểm tra độ ưu tiên của các lưu lượng FTP, SNMP, VNC,
Netmeeting:
FTP
SNMP
Thầy Nguyễn Đức Quang Lương Thế Quang
7
VNC
Netmeeting
Ta có thể thử nghiệm bằng cách vừa tải dữ liệu và vừa remote desktop để xem 1 video
bất kì
Thầy Nguyễn Đức Quang Lương Thế Quang
8
Ta có thể thấy trong hình này video chạy rất chậm, load ko kịp theo thời gian của video.
Thầy Nguyễn Đức Quang Lương Thế Quang
9
2. Hình chụp các lệnh show và debug sau khi hoàn tất cấu hình Custom Queuing
Sử dụng lệnh show để kiểm tra
Thầy Nguyễn Đức Quang Lương Thế Quang
10
Sử dụng lệnh debug để kiểm tra các gói tin đi qua cổng S1/1 của Router R3:
Netmeeting
Thầy Nguyễn Đức Quang Lương Thế Quang
11
HTTP
PING (ICMP Echo & ICMP Echo-Reply)
Thầy Nguyễn Đức Quang Lương Thế Quang
12
Default
Thầy Nguyễn Đức Quang Lương Thế Quang
13
Ta có thể thử nghiệm custom queuing bằng cách sử dụng lệnh ping liên tục bằng câu lệnh
“ping 10.0.0.18 -l 1000 -t” và vừa cho mày 10.0.0.18 sử dụng remote desktop thì tỉ lệ mất
gói tin ping sẽ cao hơn.
Vừa sử dụng lệnh ping liên tục vừa remote desktop:
Dùng lệnh ping không remote desktop:
Thầy Nguyễn Đức Quang Lương Thế Quang
14
Thầy Nguyễn Đức Quang Lương Thế Quang
15
3. Show bảng định tuyến và cấu hình của tất cả các router
*Bảng định tuyến
Router R1
Router R2
Thầy Nguyễn Đức Quang Lương Thế Quang
16
Router R3
Router R4
Thầy Nguyễn Đức Quang Lương Thế Quang
17
Router R5
Router R6
Thầy Nguyễn Đức Quang Lương Thế Quang
18
*Cấu hình của tất cả các router
---Router R1---
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
Thầy Nguyễn Đức Quang Lương Thế Quang
19
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart-delay 0
priority-group 1
frame-relay lmi-type ansi
!
interface Serial1/0.96 point-to-point
ip address 192.168.2.17 255.255.255.0
frame-relay interface-dlci 96
!
interface Serial1/0.98 point-to-point
ip address 192.168.1.17 255.255.255.0
frame-relay interface-dlci 98
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
!
Thầy Nguyễn Đức Quang Lương Thế Quang
20
interface FastEthernet2/0
ip address 10.0.0.17 255.255.255.0
duplex auto
speed auto
priority-group 1
!
interface FastEthernet2/1
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 10.0.0.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 1
network 192.168.2.0 0.0.0.255 area 0
!
!
no ip http server
no ip http secure-server
!
!
access-list 100 permit tcp any any eq 1503
access-list 100 permit tcp any any eq 1720
priority-list 1 protocol ip high tcp ftp
priority-list 1 protocol ip high tcp ftp-data
priority-list 1 protocol ip medium udp snmp
priority-list 1 protocol ip normal tcp 3389
priority-list 1 protocol ip low list 100
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
Thầy Nguyễn Đức Quang Lương Thế Quang
21
stopbits 1
line vty 0 4
login
!
!
end
---Router R2---
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
Thầy Nguyễn Đức Quang Lương Thế Quang
22
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart-delay 0
priority-group 1
frame-relay lmi-type ansi
!
interface Serial1/0.89 point-to-point
ip address 192.168.1.18 255.255.255.0
frame-relay interface-dlci 89
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
Thầy Nguyễn Đức Quang Lương Thế Quang
23
!
router ospf 1
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 1
!
!
no ip http server
no ip http secure-server
!
!
access-list 100 permit tcp any any eq 1503
access-list 100 permit tcp any any eq 1720
priority-list 1 protocol ip high tcp ftp
priority-list 1 protocol ip high tcp ftp-data
priority-list 1 protocol ip medium udp snmp
priority-list 1 protocol ip normal tcp 3389
priority-list 1 protocol ip low list 100
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
end
---Router R3---
!
!
version 12.4
service timestamps debug datetime msec
Thầy Nguyễn Đức Quang Lương Thế Quang
24
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart-delay 0
priority-group 1
frame-relay lmi-type ansi
!
interface Serial1/0.69 point-to-point
Thầy Nguyễn Đức Quang Lương Thế Quang
25
ip address 192.168.2.18 255.255.255.0
frame-relay interface-dlci 69
!
interface Serial1/1
ip address 192.168.3.17 255.255.255.0
encapsulation ppp
serial restart-delay 0
custom-queue-list 1
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
!
router eigrp 1
redistribute ospf 1 metric 10000 100 255 1 1500
network 192.168.3.0
auto-summary
!
router ospf 1
log-adjacency-changes
redistribute eigrp 1 subnets
network 192.168.2.0 0.0.0.255 area 0
!
!
Thầy Nguyễn Đức Quang Lương Thế Quang
26
no ip http server
no ip http secure-server
!
!
access-list 100 permit tcp any any eq 1503
access-list 100 permit tcp any any eq 1720
access-list 101 permit tcp any any eq 1503
access-list 101 permit tcp any any eq 1720
access-list 101 permit tcp any any eq 3389
access-list 102 permit icmp any any echo
access-list 102 permit icmp any any echo-reply
queue-list 1 protocol ip 1 list 101
queue-list 1 protocol ip 2 tcp www
queue-list 1 protocol ip 3 list 102
queue-list 1 default 16
queue-list 1 queue 1 byte-count 10000
queue-list 1 queue 2 byte-count 5000
queue-list 1 queue 3 byte-count 20
queue-list 1 queue 16 byte-count 800
priority-list 1 protocol ip high tcp ftp
priority-list 1 protocol ip high tcp ftp-data
priority-list 1 protocol ip medium udp snmp
priority-list 1 protocol ip normal tcp 3389
priority-list 1 protocol ip low list 100
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
end
Thầy Nguyễn Đức Quang Lương Thế Quang
27
---Router R4---
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip flow-cache timeout active 1
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
Thầy Nguyễn Đức Quang Lương Thế Quang
28
interface Serial1/0
ip address 192.168.3.18 255.255.255.0
encapsulation ppp
ip route-cache flow
serial restart-delay 0
priority-group 1
!
interface Serial1/1
ip address 192.168.4.17 255.255.255.0
serial restart-delay 0
priority-group 1
!
interface Serial1/2
ip address 192.168.5.17 255.255.255.0
serial restart-delay 0
priority-group 1
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
!
router eigrp 1
redistribute bgp 100 metric 10000 100 255 1 1500
network 192.168.3.0
auto-summary
!
router bgp 100
no synchronization
bgp log-neighbor-changes
Thầy Nguyễn Đức Quang Lương Thế Quang
29
network 192.168.4.0
network 192.168.5.0
redistribute eigrp 1 metric 10
neighbor 192.168.4.18 remote-as 200
neighbor 192.168.5.18 remote-as 300
no auto-summary
!
ip flow-export source Serial1/0
ip flow-export version 5
ip flow-export destination 10.0.0.18 9996
!
no ip http server
no ip http secure-server
!
!
access-list 100 permit tcp any any eq 1503
access-list 100 permit tcp any any eq 1720
priority-list 1 protocol ip high tcp ftp
priority-list 1 protocol ip high tcp ftp-data
priority-list 1 protocol ip medium udp snmp
priority-list 1 protocol ip normal tcp 3389
priority-list 1 protocol ip low list 100
snmp-server community private RW
snmp-server community public RO
snmp-server ifindex persist
snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
snmp-server enable traps tty
snmp-server enable traps config
snmp-server enable traps syslog
snmp-server host 10.0.0.18 public
snmp-server manager
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
Thầy Nguyễn Đức Quang Lương Thế Quang
30
line aux 0
stopbits 1
line vty 0 4
login
!
!
end
---Router R5---
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R5
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
Thầy Nguyễn Đức Quang Lương Thế Quang
31
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
ip address 192.168.4.18 255.255.255.0
serial restart-delay 0
priority-group 1
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
!
router bgp 200
no synchronization
Thầy Nguyễn Đức Quang Lương Thế Quang
32
bgp log-neighbor-changes
network 192.168.4.0
neighbor 192.168.4.17 remote-as 100
no auto-summary
!
!
no ip http server
no ip http secure-server
!
!
access-list 100 permit tcp any any eq 1503
access-list 100 permit tcp any any eq 1720
priority-list 1 protocol ip high tcp ftp
priority-list 1 protocol ip high tcp ftp-data
priority-list 1 protocol ip medium udp snmp
priority-list 1 protocol ip normal tcp 3389
priority-list 1 protocol ip low list 100
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
end
Thầy Nguyễn Đức Quang Lương Thế Quang
33
---Router R6---
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R6
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
Thầy Nguyễn Đức Quang Lương Thế Quang
34
ip address 192.168.5.18 255.255.255.0
serial restart-delay 0
priority-group 1
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
!
interface FastEthernet2/0
ip address 20.0.0.17 255.255.255.0
duplex auto
speed auto
priority-group 1
!
interface FastEthernet2/1
no ip address
shutdown
duplex auto
speed auto
Thầy Nguyễn Đức Quang Lương Thế Quang
35
!
router bgp 300
no synchronization
bgp log-neighbor-changes
network 20.0.0.0 mask 255.255.255.0
network 192.168.5.0
neighbor 192.168.5.17 remote-as 100
no auto-summary
!
!
no ip http server
no ip http secure-server
!
!
access-list 100 permit tcp any any eq 1503
access-list 100 permit tcp any any eq 1720
priority-list 1 protocol ip high tcp ftp
priority-list 1 protocol ip high tcp ftp-data
priority-list 1 protocol ip medium udp snmp
priority-list 1 protocol ip normal tcp 3389
priority-list 1 protocol ip low list 100
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
end
---Router R7---
Thầy Nguyễn Đức Quang Lương Thế Quang
36
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname FRS
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
ip cef
no ip domain lookup
!
!
!
frame-relay switching
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
Thầy Nguyễn Đức Quang Lương Thế Quang
37
shutdown
duplex half
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 96 interface Serial1/2 69
frame-relay route 98 interface Serial1/1 89
!
interface Serial1/1
no ip address
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 89 interface Serial1/0 98
!
interface Serial1/2
no ip address
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 69 interface Serial1/0 96
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
Thầy Nguyễn Đức Quang Lương Thế Quang
38
!
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
!
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
!
!
end
Hết