幀中繼實驗

幀中繼實驗

A部分:技術知識原理

A.1部分:技術知識原理

幀中繼(frame relay)是於1992年興起的一種新的公用數據網通訊協議,1994年開始獲得迅速發展。幀中繼是一種有效的數據傳輸技術,它可以在一對一或者一對多的應用中快速而低廉的傳輸數位信息。它可以使用於語音、數據通信,既可用於局域網(LAN)也可用於廣域網(WAN)的通信。每個幀中繼用戶將得到一個接到幀中繼節點的專線。幀中繼網絡對於端用戶來說,它通過一條經常改變且對用戶不可見的通道來處理和其他用戶間的數據傳輸。


主要特點:用戶信息以幀(frame)爲單位進行傳送,網絡在傳送過程中對幀結構、傳送差錯等情況進行檢查,對出錯幀直接予以丟棄,同時,通過對幀中地址段DLCI的識別,實現用戶信息的統計複用。


幀中繼是一種封包交換通信網絡,一般用在開放系統互連參考模型(Open System Interconnection)中的數據鏈路層(DataLink Layer)。永久虛擬電路PVC是用在物理網絡交換式虛擬電路(SVCs)上構成端到端邏輯鏈接的,類似於在公共電話交換網中的電路交換,也是幀中繼描述中的一部分,只是現在已經很少在實際中使用。另外,幀中繼最初是爲緊湊格式版的X.25協議而設計的。


數據鏈路連接標識符DLCI是用來標識各端點的一個具有局部意義的數值。多個PVC可以連接到同一個物理終端,PVC一般都指定承諾信息速率CIR和額外信息率EIR。


幀中繼被設計爲可以更有效的利用現有的物理資源,由於絕大多數的客戶不可能百分之百的利用數據服務,因此允許可以給電信營運商的客戶提供超過供應的數據服務。正由於電信營運商過多的預定了帶寬,所以導致了幀中繼在某些市場中獲得了壞的名聲。


電信公司一直在對外出售幀中繼服務給那些在尋找比專線更低廉的客戶,根據政府和電信公司的政策,它被用於各種不同的應用領域。


幀中繼正逐漸被ATM、IP等協議(包括IP虛擬專用網)替代。

A.2 部分:實驗目的

A.3 部分:實驗環境準備

B部分:實驗調試及驗證

B.1 部分:連接拓撲圖

221926291.png

B.2部分:實驗基本需求

1.R1爲幀中繼交換機

2.R2、R3爲幀中繼客戶端

3.全網運行RIPv2

B.3部分:設備基本配置

R1

Router>enable

Router#configure terminal

Router(config)# no ip domain-lookup

R1(config)# hostname R1

R1(config)#enable secret itaa

R1(config)#username R1 privilege 15 secretccnp

R1(config)#banner motd #

Don’t enter this router!!!

#

R1(config)#frame-relay switching

//使用路由器模擬幀中繼交換機時,使用該命令將路由器將爲交換機

R1(config)#line console 0

R1(config-line)#logging synchronous

R1(config-line)#exec-timeout 0 0

R1(config-line)#password ccna

R1(config-line)#login

R1(config-line)#line vty 0 4

R1(config-line)#password ccie

R1(config-line)#login

R1(config-line)#interface s1/2

R1(config-if)#no shutdown

R1(config-if)#description s1/2 is connected toR2 s1/2

R1(config-if)#encapsulation frame-relay

R1(config-if)#frame-relay lmi-type ansi

R1(config-if)#frame-relay intf-type dce

R1(config-if)#frame-relay route 203 interfaces1/3 302

R1(config-if)#interface s1/3

R1(config-if)#no shutdown

R1(config-if)#description s1/3 is connected toR3 s1/3

R1(config-if)#encapsulation frame-relay

R1(config-if)#frame-relay lmi-type ansi

R1(config-if)#frame-relay intf-type dce

R1(config-if)#frame-relay route 302 interfaces1/2 203

R2

Router>enable

Router#configure terminal

Router(config)#no ip domain-lookup

Router(config)#hostname R2

R2(config)#enable secret itaa

R2(config)#username R2 privilge 15 secret ccnp

R2(config)#banner motd #

Don’t enter this router!!!

#

R2(config)#line console 0

R2(config)#logging synchronous

R2(config)#exex-timeout 0 0

R2(config)#password ccna

R2(config)#login

R2(config)#line vty 0 4

R2(config)#password ccie

R2(config)#login

R2(config-if)#interface loopback 0

R2(config-if)#ip address 2.2.2.2 255.255.255.0

R2(config)#interface s1/2

R2(config-if)#no shutdown

R2(config-if)#description s1/2 is connected toframe-relay switch s1/2

R2(config-if)#ip address 23.1.1.2255.255.255.0

R2(config-if)#clock rate 64000

R2(config-if)#encapsulation frame-relay

R2(config-if)#frame-relay lmi-type ansi

R2(config-if)#frame-relay map ip 23.1.1.2 203broadcast

R2(config-if)#frame-relay map ip 23.1.1.3 203broadcast

R2(config-if)#router rip

R2(config-router)#router rip

R2(config-router)#version 2

R2(config-router)#no auto-summary

R2(config-router)#net 2.0.0.0

R2(config-router)#net 23.0.0.0

R3

Router>enable

Router#configure terminal

Router(config)#no ip domain-lookup

Router(config)#hostname R3

R3(config)#enable secret itaa

R3(config)#username R3 privilege 15 secretccnp

R3(config)#banner motd #

Don’t enter this router!!!

#

R3(config)#line console 0

R3(config-line)#logging synchronous

R3(config-line)#exec-timeout 0 0

R3(config-line)#password ccna

R3(config-line)#login

R3(config-line)#line vty 0 4

R3(config-line)#password ccie

R3(config-line)#login

R3(config-if)#interface loopback 0

R3(config-if)#ip address 3.3.3.3 255.255.255.0

R3(config-line)#interface s1/3

R3(config-if)#no shutdown

R3(config-if)#description s1/3 is connected toframe-relay switch s1/3

R3(config-if)#ip address 23.1.1.3255.255.255.0

R3(config-if)#clock rate 64000

R3(config-if)#encapsulation frame-relay

R3(config-if)#frame-relay lmi-type ansi

R3(config-if)#frame-relay map ip 23.1.1.2 302broadcast

R3(config-if)#frame-relay map ip 23.1.1.3 302broadcast

R3(config-if)#router rip

R3(config-router)#version 2

R3(config-router)#no auto-summary

R3(config-router)#net 3.0.0.0

R3(config-router)#net 23.0.0.0

B.4部分:調試和驗證過程

配置完成後首先查看路由是否收斂:

R2#show ip route

Codes: C - connected, S - static, R - RIP, M -mobile, B - BGP

D- EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i- IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

ia - IS-IS inter area, * - candidate default, U - per-user static route

o- ODR, P - periodic downloaded static route


Gateway of last resort is not set


2.0.0.0/24 is subnetted, 1 subnets

C2.2.2.0 is directly connected, Loopback0

3.0.0.0/24 is subnetted, 1 subnets

R3.3.3.0 [120/1] via 23.1.1.3, 00:00:28, Serial1/2

23.0.0.0/24 is subnetted, 1 subnets

C23.1.1.0 is directly connected, Serial1/2


R3#show ip route

Codes: C - connected, S - static, R - RIP, M -mobile, B - BGP

D- EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i- IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

ia - IS-IS inter area, * - candidate default, U - per-user static route

o- ODR, P - periodic downloaded static route


Gateway of last resort is not set


2.0.0.0/24 is subnetted, 1 subnets

R2.2.2.0 [120/1] via 23.1.1.2, 00:00:06, Serial1/3

3.0.0.0/24 is subnetted, 1 subnets

C3.3.3.0 is directly connected, Loopback0

23.0.0.0/24 is subnetted, 1 subnets

C23.1.1.0 is directly connected, Serial1/3


//此時路由已經完全收斂

其次查看pvc鏈路信息:

R1#show frame-relay route

Input IntfInput DlciOutput IntfOutput DlciStatus

Serial1/2203Serial1/3302active

Serial1/3302Serial1/2203active


//鏈路已經正常建立


繼續查看客戶端的map映射表項:

R2#show frame-relay map

Serial1/2 (up): ip 23.1.1.2 dlci203(0xCB,0x30B0), static,

broadcast,

CISCO, status defined, active

Serial1/2 (up): ip 23.1.1.3 dlci 203(0xCB,0x30B0),static,

broadcast,

CISCO, status defined, active


R3#show frame-relay map

Serial1/3 (up): ip 23.1.1.2 dlci302(0x12E,0x48E0), static,

broadcast,

CISCO, status defined, active

Serial1/3 (up): ip 23.1.1.3 dlci302(0x12E,0x48E0), static,

broadcast,

CISCO, status defined, active


//map映射正常建立


然後測試一下連通性:

R2#ping 3.3.3.3 source 2.2.2.2


Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 3.3.3.3,timeout is 2 seconds:

Packet sent with a source address of 2.2.2.2

!!!!!

Success rate is 100 percent (5/5), round-tripmin/avg/max = 24/40/56 ms


//經過測試可以正常通信


可以查看一下debug信息:

R3#debug frame-relay packet

Frame Relay packet debugging is on

R3#

*Jul811:26:18.043: Serial1/3: broadcast search

*Jul811:26:18.043: Serial1/3: Broadcast on DLCI 302link 7

*Jul811:26:18.043: Serial1/3(o): dlci 302(0x48E1), pkt type 0x800(IP), datagramsize96

*Jul811:26:18.047: Serial1/3(o): dlci 302(0x48E1), pkt type 0x800(IP), datagramsize96

*Jul811:26:18.131: broadcast dequeue

*Jul811:26:18.131: Serial1/3(o):Pkt sent on dlci 302(0x48E1), pkt type

0x800(IP), datagramsize 96

*Jul811:26:18.131: broadcast dequeue

*Jul811:26:18.131: Serial1/3(o):Pkt sent on dlci 302(0x48E1), pkt type

0x800(IP), datagramsize 96

我們在R3上看見s1/3收過來的數據包上面都封裝了302的dlci號碼。

C部分:實驗結論

C.1部分:實驗結論

C.2部分:思考問題

1.配置完成後,首先檢查路由協議正常運行所需要的各項配置是否全部配置正確、完全,不必急於測試網絡的是否連通。

2.網絡配置的檢查:

1)路由表項是否完全收斂;

2)幀中繼交換機的pvc鏈路是否建立;

3)客戶端map映射表項是否建立。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章