Frame relay FRF.9 stac compression configuration example
Network requirements
As shown in Figure 31, Router A and Router B are connected through a frame relay network. Enable frame relay compression function (FRF.9) between them.
Figure 31: Network diagram
Configuration procedure
Configure Router A:
# Enable frame relay on interface Serial 2/0.
<RouterA> system-view [RouterA] interface serial 2/0 [RouterA-Serial2/0] link-protocol fr
# Configure an IP address for interface Serial 2/0.
[RouterA-Serial2/0] ip address 10.110.40.1 255.255.255.0
# Configure interface Serial 2/0 to operate in DTE mode.
[RouterA-Serial2/0] fr interface-type dte
# Create an IP address map entry and enable FRF.9 compression on interface Serial 2/0.
[RouterA-Serial2/0] fr map ip 10.110.40.2 100 compression frf9
Configure Router B:
# Enable frame relay on interface Serial 2/0.
<RouterB> system-view [RouterB] interface serial 2/0 [RouterB-Serial2/0] link-protocol fr
# Configure an IP address for interface Serial 2/0.
[RouterB-Serial2/0] ip address 10.110.40.2 255.255.255.0
# Configure interface Serial 2/0 to operate in DTE mode.
[RouterB-Serial2/0] fr interface-type dte
# Create an IP address map entry and enable FRF.9 compression on interface Serial 2/0.
[RouterB-Serial2/0] fr map ip 10.110.40.1 100 compression frf9
Verifying the configuration
# Ping Router B from Router A.
<RouterA> ping 10.110.40.2 PING 10.110.40.2: 56 data bytes, press CTRL_C to break Reply from 10.110.40.2: bytes=56 Sequence=1 ttl=255 time=13 ms Reply from 10.110.40.2: bytes=56 Sequence=2 ttl=255 time=12 ms Reply from 10.110.40.2: bytes=56 Sequence=3 ttl=255 time=12 ms Reply from 10.110.40.2: bytes=56 Sequence=4 ttl=255 time=12 ms Reply from 10.110.40.2: bytes=56 Sequence=5 ttl=255 time=12 ms --- 10.110.40.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 12/12/13 ms
# Display statistics about packet compression on Router A.
<RouterA> display fr compress Serial2/0 -DLCI:100 enable frame-relay compression uncompressed bytes send/receive : 595/595 compressed bytes send/receive : 159/157 1 min avg ratio send/receive : 0.000/0.000 5 min avg ratio send/receive : 0.267/0.264