Frame relay FRF.20 IP header compression configuration example
Network requirements
As shown in Figure 32, Router A and Router B are interconnected with a frame relay link. Enable FRF.20 IP compression on the two routers.
Figure 32: Network diagram
![](images/image28.png)
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.1.1.1 24
# Configure interface Serial 2/0 to operate in DTE mode.
[RouterA-Serial2/0] fr interface-type dte [RouterA-Serial2/0] quit
# Configure a static route, setting the destination IP address to 12.1.1.2/24 and next hop IP address to 10.1.1.2.
[RouterA] ip route-static 12.1.1.2 24 10.1.1.2
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.1.1.2 24
# Configure interface Serial2/0 to operate in DCE mode.
[RouterB-Serial2/0] fr interface-type dce
# Configure a frame relay DLCI for interface Serial 2/0.
[RouterB-Serial2/0] fr dlci 100 [RouterB-fr-dlci-Serial2/0-100] quit [RouterB-Serial2/0] quit
# Enable frame relay on interface Serial 2/1.
[RouterB] interface serial 2/1 [RouterB-Serial2/1] link-protocol fr
# Configure an IP address for interface Serial 2/1.
[RouterB-Serial2/1] ip address 12.1.1.1 24
# Configure interface Serial 2/1 to operate in DCE mode.
[RouterB-Serial2/1] fr interface-type dce
# Configure a frame relay DLCI for interface Serial 2/1.
[RouterB-Serial2/1] fr dlci 100 [RouterB-fr-dlci-Serial2/1-100] quit
# Enable FRF.20 compression on interface Serial 2/1, and configure interface Serial 2/1 to include TCP header compression when performing RTP compression.
[RouterB-Serial2/1] fr compression iphc [RouterB-Serial2/1] fr iphc tcp-include
Configure Router C:
# Enable frame relay on interface Serial 2/0.
<RouterC> system-view [RouterC] interface serial 2/0 [RouterC-Serial2/0] link-protocol fr
# Configure an IP address for interface Serial 2/0.
[RouterC-Serial2/0] ip address 12.1.1.2 24
# Configure interface Serial 2/0 to operate in DTE mode.
[RouterC-Serial2/0] fr interface-type dte
# Enable FRF.20 compression on interface Serial 2/0, and configure interface Serial 2/0 to include TCP header compression when performing RTP compression.
[RouterB-Serial2/0] fr compression iphc [RouterB-Serial2/0] fr iphc tcp-include [RouterC-Serial2/0] quit
# Configure a static route, setting the destination IP address to 10.1.1.1/24 and next hop IP address to 12.1.1.1.
[RouterC] ip route-static 10.1.1.1 24 12.1.1.1
Verifying the configuration
# Telnet to Router C from Router A.
<RouterA> telnet 12.1.1.2 Trying 12.1.1.2 ... Press CTRL+K to abort Connected to 12.1.1.2 ... ****************************************************************************** * Copyright (c) 2004-2009 Hangzhou H3C Tech. Co., Ltd. All rights reserved. * * Without the owner's prior written consent, * * no decompiling or reverse-engineering shall be allowed. * ******************************************************************************
# Display FRF.20 compression statistics on Router B.
<RouterB> display fr iphc Serial2/1 -DLCI:100 RTP header compression information: Compression: Total packets: 0 , Packets compressed: 0 Link searches: 0 , Search missed : 0 Bytes saved : 0 , Bytes sent : 0 Decompression: Total packets: 0 , Packets compressed: 0 Errors : 0 Compression-connections: 16 , Decompression-connections: 16 Information of TCP header compression: Compression: Total packets: 31 , Packets compressed: 28 Link searches: 0 , Search Missed : 2 Bytes saved : 976 , Bytes sent : 314 Decompression: Total packets: 0 , Packets compressed: 0 Errors : 0 Compression-connections: 16 , Decompression-connections: 16