帧中继实验

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映射表项是否建立。