TCP/IP header compression protocol application

Network requirements

As shown in Figure 148, two routers are directly connected.

Figure 148: Network diagram

Configuration procedure

  1. Configure RouterA:

    # Configure the link layer protocol of Serial 2/0 as X.25, and configure the interface to operate in DTE mode.

    <RouterA> system-view
    [RouterA] interface serial 2/0
    [RouterA-serial2/0] link-protocol x25 dte ietf
    

    # Assign an x121 address for the interface.

    [RouterA-serial2/0] x25 x121-address 1001
    

    # Assign an IP address for the interface.

    [RouterA-serial2/0] ip address 16.16.16.1 255.255.0.0
    

    # Enable TCP/IP header compression.

    [RouterA-serial2/0] x25 map compressedtcp 16.16.16.2 x121-address 1002
    
  2. Configure Router B:

    # Configure the link layer protocol of Serial 2/0 as X.25, and configure the interface to operate in DCE mode.

    <RouterB> system-view
    [RouterB] interface serial 2/0
    [RouterB-serial2/0] link-protocol x25 dce ietf
    

    # Assign an X.121 address for the interface.

    [RouterB-serial2/0] x25 x121-address 1002
    

    # Assign an IP address for the interface.

    [RouterB-serial2/0] ip address 16.16.16.2 255.255.0.0
    

    # Enable TCP/IP header compression.

    [RouterB-serial2/0] x25 map compressedtcp 16.16.16.1 x121-address 1001
    

Verifying the configuration

Ping Router B from Router A to verify that the two routers can reach each other.

[RouterA-serial2/0] ping 16.16.16.2
  PING 16.16.16.2: 56  data bytes, press CTRL_C to break
    Reply from 16.16.16.2: bytes=56 Sequence=1 ttl=255 time=36 ms
    Reply from 16.16.16.2: bytes=56 Sequence=2 ttl=255 time=26 ms
    Reply from 16.16.16.2: bytes=56 Sequence=3 ttl=255 time=26 ms
    Reply from 16.16.16.2: bytes=56 Sequence=4 ttl=255 time=26 ms
    Reply from 16.16.16.2: bytes=56 Sequence=5 ttl=255 time=26 ms

  --- 16.16.16.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 26/28/36 ms