- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
04-Frame Relay Configuration | 171.43 KB |
Contents
Data link connection identifier
Frame Relay configuration task list
Configuring DTE side Frame Relay
Configuring basic DTE side Frame Relay
Configuring Frame Relay address mappings
Configuring Frame Relay local virtual circuit
Configuring Frame Relay subinterface
Configuring DCE side Frame Relay
Configuring basic DCE side Frame Relay
Configuring Frame Relay address mapping
Configuring Frame Relay local virtual circuit
Configuring Frame Relay subinterface
Displaying and maintaining Frame Relay
Frame Relay configuration examples
Connecting LANs through a Frame Relay network
Connecting LANs through a dedicated line
Overview
Frame Relay is essentially simplified X.25 WAN technology. It uses statistical multiplexing technology and can establish multiple virtual circuits over a single physical cable to make full use of network bandwidth. Frame Relay uses data link connection identifiers (DLCIs) to identify virtual circuits and maintain the status of each virtual circuit with the Local Management Interface (LMI) protocol.
Frame Relay interface types
Frame Relay enables communication between user devices such as routers and hosts. The user devices are also called “data terminal equipment (DTE)”. They are connected to a Frame Relay network through the DTE interface. The devices that provide access to the Frame Relay network for DTEs are called “data communications equipment (DCE)”. A DCE is connected to a DTE with a DCE interface on the user network interface (UNI) side and to a Frame Relay switch in the Frame Relay network with a network-to-network interface (NNI) on the NNI side. The switches in the Frame Relay cloud are interconnected with the NNI.
In actual applications, a DTE interface can connect to only a DCE interface, and an NNI interface can connect to only an NNI interface. On a Frame Relay switch, the Frame Relay interface should be an NNI or DCE interface.
Virtual circuit
Virtual circuits fall into permanent virtual circuits (PVCs) and switched virtual circuits (SVCs), depending on how they are set up. Virtual circuits configured manually are called “PVCs”, and those created by protocol negotiation are called “SVCs”, which are automatically created and deleted by the Frame Relay protocol. The most frequently used in Frame Relay is the PVC, which is a manually configured virtual circuit.
The PVC status on DTE is completely determined by DCE, and the network determines the PVC status on DCE. If two routers are directly connected, the equipment administrator sets the virtual circuit status of DCE.
Data link connection identifier
A data link connection identifier (DLCI) is a unique number assigned to a virtual circuit endpoint in a Frame Relay network for the addressing purpose.
A DLCI uniquely identifies a particular virtual circuit on a physical link and has local significance only to that link. A DLCI can be used on different physical ports to address different virtual circuits and a virtual circuit between two DTE devices may be addressed with different DLCIs at the two ends.
Because the virtual circuits in a Frame Relay network are connection oriented, each DLCI on a physical port is destined for a distinct remote device. DLCIs can be regarded the Frame Relay addresses of remote devices.
The maximum number of PVCs that can be created on a Frame Relay interface is 1024. The user configurable DLCIs for the PVCs are in the range 16 to 1007. Other DLCIs are reserved for special purposes. For example, DLCI 0 and DLCI 1023 are reserved for the LMI protocol to transfer control messages.
LMI protocol
Frame Relay uses the Local Management Interface (LMI) protocol to set up virtual circuits and maintain their status between DTE and DCE.
The system supports the following LMI standards:
· ITU-T Q.933 Annex A
· ANSI T1.617 Annex D
· Nonstandard LMI (compatible with other vendors)
To communicate properly, the DTE and the DCE must use the same type of LMI.
LMI uses the status inquiry message and the status messages to maintain the link status and PVC status, for example, to advertise new PVCs, detect deleted PVCs, monitor PVC status changes, and verify link integrity. For these purposes, the DTE sends status inquiry messages regularly to the DCE to request for the availability of individual PVCs. On receiving a status inquiry, the DCE responds with a status message that describes the status of each virtual circuit on the physical link.
For a DTE, the status of a PVC is determined by the DCE; as for DCE, by the Frame Relay network.
Table 1 lists the major parameters ITU-T Q.933 Annex A uses for message exchange. You can configure these parameters to optimize device performance.
Table 1 Parameter description for Frame Relay protocol
Router role |
Parameter description |
Value range |
Default value |
DTE |
Request PVC status counter (N391) |
1 to 255 |
6 |
Error threshold (N392) |
1 to 10 |
3 |
|
Event counter (N393) |
1 to 10 |
4 |
|
User side polling timer (T391), the value 0 indicates that the LMI protocol is disabled |
0 to 32767 (in seconds) |
10 (in seconds) |
|
DCE |
Error threshold (N392) |
1 to 10 |
3 |
Event counter (N393) |
1 to 10 |
4 |
|
Network side polling timer (T392) |
5 to 30 (in seconds) |
15 (in seconds) |
These parameters are stipulated by Q.933 Appendix A, and their meanings are described in the following sections.
Description on parameters related to DTE
· N391—DTE sends Status-Enquiry messages at a certain interval (determined by T391). Status-Enquiry messages fall into the following types: link integrity verification messages and link status enquiry messages. The link integrity verification message verifies the link integrity, and the link status enquiry message requests the PVC status in addition to the link integrity information. N391 defines that the ratio of sent link status enquiry messages to sent link integrity verification messages equals 1:N391–1.
· N392—It sets the threshold for errors among the observed events.
· N393—It sets the total of observed events.
· T391—It sets the interval for a DTE to send State-Enquiry messages.
A DTE sends Status-Enquiry messages at a certain interval to query the link status. The DCE responds with a Status response message on receiving the message. If the DTE fails to receive any response within a specified period, it will record this error. If the number of errors exceeds a certain error threshold, DTE will regard the physical channel and all virtual circuits unavailable (N392 and N393 together define the error threshold). If the number of errors reaches N392 among the N393 Status-Enquiry messages sent by DTE, DTE will consider that the number of errors has reached the threshold.
Description on parameters related to DCE
· N392 and N393—These two parameters have similar meanings to those related to DTE. However, DCE requires that the fixed time interval for DTE sending a Status-Enquiry message should be determined by T392, and DTE requires that this interval should be determined by T391. If DCE does not receive the Status-Enquiry message from DTE within a period determined by T392, an error recorder is created.
· T392—Time variable, which defines the maximum time that DCE waits for a Status-Enquiry message and should be larger than the value of T391.
Frame Relay address mapping
Frame Relay address mapping associates the protocol address of a remote router with its Frame Relay address (local DLCI). Through searching the Frame Relay address map by protocol address, the upper layer protocol can locate a remote router. Frame Relay can bear the IP protocol. When sending an IP packet, the Frame Relay-enabled router can obtain its next hop address after consulting the routing table, which is inadequate for sending the packet to the correct destination across a Frame Relay network. To identify the DLCI of the next hop address, the router must search a Frame Relay address map retaining the associations between remote IP addresses and next hop DLCIs.
A Frame Relay address map can be manually configured or maintained by Inverse Address Resolution Protocol (InARP).
The following describes how Frame Relay uses InARP to create an address mapping:
Once a new virtual circuit is created, InARP sends an inverse ARP request over the circuit to request the peer end for its protocol address. This request also conveys the local protocol address. When the peer device receives the request, it creates an address mapping based on the protocol address in the request and responds with its protocol address. When the local end receives the response, it creates the address mapping for the peer.
For virtual circuits that have static address mappings, InARP will not be performed regardless of whether the mappings are correct or not. In addition, the inverse ARP request recipient does not create a mapping based on the protocol address in the request if a static entry is already available for the address.
Frame Relay configuration task list
Complete the following tasks to configure Frame Relay:
Task |
Remarks |
|
Required |
||
Required |
||
Required |
||
Optional |
||
Required |
||
Required |
||
Required |
||
Optional |
||
Optional |
|
CAUTION: · Only POS sub-cards support Frame Relay. · Before switching the link layer protocol of an interface (from PPP/HDLC to Frame Relay or the other way around), manually remove all configurations related to QoS and ACL policies on the interface first. |
Configuring DTE side Frame Relay
Configuring basic DTE side Frame Relay
To configure DTE side Frame Relay:
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Enter interface view. |
interface interface-type interface-number |
N/A |
3. Configure the interface encapsulation protocol as Frame Relay. |
link-protocol fr [ ietf | nonstandard ] |
The default link layer protocol of an interface is PPP. When Frame Relay is configured as the link layer protocol, the encapsulation format is defaulted to IETF. |
4. Configure the Frame Relay interface type as DTE. |
fr interface-type dte |
Optional. The default Frame Relay interface type is DTE. |
5. Configure Frame Relay LMI protocol type. |
fr lmi type { ansi | nonstandard | q933a } |
Optional. The default Frame Relay LMI protocol type is q933a. |
6. Configure user side N391. |
fr lmi n391dte n391-value |
Optional. The default value is 6. |
7. Configure user side N392. |
fr lmi n392dte n392-value |
Optional. The default value is 3. |
8. Configure user side N393. |
fr lmi n393dte n393-value |
Optional. The default value is 4. |
9. Configure user side T391. |
timer hold seconds |
Optional. The default value is 10 seconds. |
Configuring Frame Relay address mappings
Overview
Configure Frame Relay address mappings in one of the following ways:
· Manually create static mappings between peer IP addresses and local DLCIs. Use this approach when the network topology is relatively stable and no new users are expected in a certain period of time. Because static mappings do not change, the network connections are stable, and attacks from unknown users are avoided.
· Use InARP to dynamically create mappings between peer IP addresses and local DLCIs. Use this approach in complicated networks and make sure that the peer router also supports InARP.
Configuring static Frame Relay address mappings
To configure static Frame Relay address mappings:
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Enter interface view. |
interface interface-type interface-number |
N/A |
3. Create a static Frame Relay address mapping. |
fr map ip ip-address dlci-number [ broadcast | [ ietf | nonstandard ] ] * |
By default, no static Frame Relay address mappings are configured. |
Configuring dynamic Frame Relay address mapping
To configure dynamic Frame Relay address mapping:
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Enter interface view. |
interface interface-type interface-number |
N/A |
3. Enable Frame Relay InARP for dynamic address mapping. |
fr inarp [ ip [ dlci-number ] ] |
Optional. By default, Frame Relay InARP is enabled for dynamic address mapping. |
|
NOTE: · You do not need to configure DLCIs for PVCs, if static address mappings are configured. · Do not configure static address mapping on a P2P subinterface. A P2P subinterface carries only one PVC. |
Configuring Frame Relay local virtual circuit
Overview
When the Frame Relay interface type is DCE, the interface (either a main interface or subinterface) needs to be manually configured with virtual circuits. When the Frame Relay interface type is DTE, for the main interface, the virtual circuit can be determined by the system according to the peer router or through manual configuration; for a subinterface, the virtual circuits must be manually configured.
A virtual circuit number is unique on a physical interface.
Configuration procedure
To configure Frame Relay local virtual circuit
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Enter interface view. |
interface interface-type interface-number |
N/A |
3. Configure a virtual circuit on the interface. |
fr dlci dlci-number |
By default, no virtual circuits are created on interfaces. |
|
NOTE: If the DLCI of a PVC is changed on the DCE interface, you can reset both the DCE and DTE interfaces or execute the reset inarp command on both ends to enable the DTE to re-learn the correct address mappings as soon as possible. Before doing that, make sure that no services will be interrupted. |
Configuring Frame Relay subinterface
Overview
Frame Relay offers two types of interfaces: main interface and subinterface. The subinterface is of logical structure, which can be configured with protocol address and virtual circuit. One physical interface can include multiple subinterfaces, which do not exist physically. However, for the network layer, the subinterface and main interface make no difference and both can be configured with virtual circuits to connect to remote routers.
The subinterface of Frame Relay falls into two types: point-to-point (P2P) subinterface and point-to-multipoint (P2MP) subinterface. A P2P subinterface connects a single remote router and a P2MP subinterface connects multiple remote routers. A P2MP subinterface can be configured with multiple virtual circuits, each of which sets up an address map with its connected remote network address to distinguish different connections. Address maps can be set up manually or dynamically set up by InARP.
The methods to configure a virtual circuit and address map for P2P subinterfaces and P2MP subinterfaces are different, as described below.
· P2P subinterface
Because a P2P subinterface has only one peer address, the peer address is implicitly determined when a virtual circuit is configured for the subinterface. As a result, you do not need to configure dynamic or static address mapping for P2P subinterface.
· P2MP subinterface
For a P2MP subinterface, a peer address can be mapped to the local DLCI through static address mapping or InARP which only needs to be configured on the main interface. If static address mapping is required, it is necessary to set up static address map for each virtual circuit.
Configuration procedure
To configure a Frame Relay subinterface:
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Create a subinterface and enter subinterface view. |
interface interface-type interface-number.subnumber [ p2mp | p2p ] |
By default, no Frame Relay subinterface is created. On creation, the type of a Frame Relay subinterface is p2mp by default. |
3. Configure a virtual circuit on a Frame Relay subinterface. |
N/A |
|
4. Configure address mapping. |
Optional. For a P2MP subinterface, you must set up an address map. |
Configuring DCE side Frame Relay
Configuring basic DCE side Frame Relay
To configure DCE side Frame Relay:
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Enter interface view. |
interface interface-type interface-number |
N/A |
3. Configure interface encapsulation protocol as Frame Relay. |
link-protocol fr [ ietf | nonstandard ] |
By default, the link layer protocol for interface encapsulation is PPP. When Frame Relay is configured as the link layer protocol, the encapsulation format is defaulted to IETF. |
4. Configure the Frame Relay interface type to DCE. |
fr interface-type dce |
Optional. The default Frame Relay interface type is DTE. |
5. Configure the Frame Relay LMI protocol type. |
fr lmi type { ansi | nonstandard | q933a } |
Optional. The default Frame Relay LMI protocol type is q933a. |
6. Configure network side N392. |
fr lmi n392dce n392-value |
Optional. The default value is 3. |
7. Configure network side N393. |
fr lmi n393dce n393-value |
Optional. The default value is 4. |
8. Configure network side T392. |
fr lmi t392dce t392-value |
Optional. The default value is 15 seconds. |
Configuring Frame Relay address mapping
See “Configuring Frame Relay address mappings.”
Configuring Frame Relay local virtual circuit
See “Configuring Frame Relay local virtual circuit.”
Configuring Frame Relay subinterface
See “Configuring Frame Relay subinterface.”
Enabling the trap function
With the trap function enabled for Frame Relay, notifications traps are generated for notifying critical events that occur to Frame Relay. Thus, when events that should be notified occur to Frame Relay, traps will be sent to the information center. You can configure the information center to output the trap information matches certain criteria to a desired destination (the console for example) for analysis.
To enable the trap function for the Frame Relay module:
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Enable trap for the Frame Relay module. |
snmp-agent trap enable fr |
Optional. By default, trap is enabled for the Frame Relay module. |
|
NOTE: · For more information about the snmp-agent trap enable fr command, see Network Management and Monitoring Command Reference. · For how to configure the information center, see Network Management and Monitoring Configuration Guide. |
Displaying and maintaining Frame Relay
Task |
Command |
Remarks |
||
Display Frame Relay protocol status on an interface. |
display fr interface [ interface-type { interface-number | interface-number.subnumber } ] [ | { begin | exclude | include } regular-expression ] |
Available in any view |
||
Display the mapping table of protocol address and Frame Relay address. |
display fr map-info [ interface interface-type { interface-number | interface-number.subnumber } ] [ | { begin | exclude | include } regular-expression ] |
Available in any view |
||
Display receiving/sending statistics information of Frame Relay LMI type messages. |
display fr lmi-info [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] |
Available in any view |
||
Display incoming and outgoing Frame Relay data statistics. |
display fr statistics [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] |
Available in any view |
||
Display Frame Relay permanent virtual circuit table. |
display fr pvc-info [ interface interface-type { interface-number | interface-number.subnumber } ] [ dlci-number ] [ | { begin | exclude | include } regular-expression ] |
Available in any view |
||
Display statistics of Frame Relay InARP messages. |
display fr inarp-info [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] |
Available in any view |
||
Clear all the automatically established Frame Relay address mappings. |
reset fr inarp |
Available in user view |
||
Clear the statistics for a Frame Relay PVC. |
reset fr pvc interface pos interface-number [ dlci dlci-number ] |
Available in user view |
||
Frame Relay configuration examples
Connecting LANs through a Frame Relay network
Network requirements
Connect LANs through the public Frame Relay network. The S9500E switches can only work as DTE.
Figure 1 Network diagram
Configuration procedure
1. Configure Switch A
# Assign an IP address to interface POS 3/1/1.
<SwitchA> system-view
[SwitchA] interface Pos 3/1/1
[SwitchA-Pos3/1/1] ip address 202.38.163.251 255.255.255.0
# Configure interface encapsulation protocol as Frame Relay.
[SwitchA-Pos3/1/1] link-protocol fr
[SwitchA-Pos3/1/1] fr interface-type dte
# If the opposite device supports InARP, configure dynamic address mapping.
[SwitchA-Pos3/1/1] fr inarp
# Otherwise, configure static address mappings.
[SwitchA-Pos3/1/1] fr map ip 202.38.163.252 50
[SwitchA-Pos3/1/1] fr map ip 202.38.163.253 60
2. Configure Switch B
# Assign an IP address.
<SwitchB> system-view
[SwitchB] interface Pos 3/1/1
[SwitchB-Pos3/1/1] ip address 202.38.163.252 255.255.255.0
# Configure interface encapsulation protocol as Frame Relay.
[SwitchB-Pos3/1/1] link-protocol fr
[SwitchB-Pos3/1/1] fr interface-type dte
# If the opposite device supports InARP, configure dynamic address mapping.
[SwitchB-Pos3/1/1] fr inarp
# Otherwise, configure a static address mapping.
[SwitchB-Pos3/1/1] fr map ip 202.38.163.251 70
3. Configure Switch C
# Assign an IP address.
<SwitchC> system-view
[SwitchC] interface Pos 3/1/1
[SwitchC-Pos3/1/1] ip address 202.38.163.253 255.255.255.0
# Configure the interface encapsulation protocol as Frame Relay.
[SwitchC-Pos3/1/1] link-protocol fr
[SwitchC-Pos3/1/1] fr interface-type dte
# If the opposite device supports InARP, configure dynamic address mapping.
[SwitchC-Pos3/1/1] fr inarp
# Otherwise, configure a static address mapping.
[SwitchC-Pos3/1/1] fr map ip 202.38.163.251 80
Connecting LANs through a dedicated line
Network requirements
Two S9500E switches, Switch A and Switch B, are directly connected through POS interfaces. Switch A works in DCE mode, and Switch B works in DTE mode.
Figure 2 Network diagram
Configuration procedure
1. Configure Switch A
# Set the link layer protocol on the interface to Frame Relay and interface type to DCE.
<SwitchA> system-view
[SwitchA] interface Pos 3/1/1
[SwitchA-Pos3/1/1] link-protocol fr
[SwitchA-Pos3/1/1] fr interface-type dce
[SwitchA-Pos3/1/1] quit
# Configure the IP address of the subinterface and local virtual circuit.
[SwitchA] interface Pos 3/1/1.1
[SwitchA-Pos3/1/1.1] ip address 202.38.13.251 255.255.255.0
[SwitchA-Pos3/1/1.1] fr dlci 100
2. Configure Switch B
# Set the link layer protocol on the interface to Frame Relay and interface type to DTE.
<SwitchB> system-view
[SwitchB] interface Pos 3/1/1
[SwitchB-Pos3/1/1] link-protocol fr
[SwitchB-Pos3/1/1] quit
# Configure IP address of the subinterface and local virtual circuit.
[SwitchB] interface Pos 3/1/1.1
[SwitchB-Pos3/1/1.1] ip address 202.38.13.252 255.255.255.0
[SwitchB-Pos3/1/1.1] fr dlci 100
Troubleshooting Frame Relay
Symptom 1:
The physical layer is in down status.
Solution:
· Check the physical line.
· Check that the remote switch is correctly working.
Symptom 2:
The physical layer is already up, but the link layer protocol is down.
Solution:
· Check that Frame Relay is enabled on the peer devices.
· If the two devices are directly connected, check that one end is in DTE mode and the other end is in DCE mode.
· Check that both ends are using the same LMI protocol.
· If the problem persists, execute the debugging lmi command to check that one Status Response message is received for each Status Request message. If not, check the physical layer.
Symptom 3:
The link layer protocol is up, but the remote party cannot be pinged.
Solution:
· Make sure that the switches at both ends have configured (or created) correct address mapping for the peer.
· Make sure that a route to the peer exists if the switches are not in the same subnet segment.