[Contents] [Prev] [Next] [Index] [Report an Error]

Session Mirroring Overview

Session mirroring allows you to send a copy of a context to an external device called a delivery function for analysis. With session mirroring, the original session is sent to its intended destination and the mirrored session is sent to the delivery function. The mirroring operations are transparent to the user whose session is being mirrored.

Session mirroring is supported only for IPv4 traffic.

The packet gateway can mirror up to 1 percent of gates at a time.

Activation of Session Mirroring for a Gate

When session mirroring is enabled, the PG uses information in PGCP requests received from the PGC to identify sessions to be mirrored and to trigger the mirroring session. The following sample PGCP request includes session-mirroring information:

MEGACO/2 [123.123.123.3]:2944
Transaction = 10003 {
    Context = $ {
        Add = $ { 
            Media {
                LocalControl {
                    Mode = SendReceive,
                    li/LICn=ff00ff00ff00ff00},    
                    li/LITID = [ffffff00, ffffff01], 
                Remote {
                        v=0
                        c=IN IP4 124.124.124.222
                        m=audio 2222 RTP/AVP 0
                        a=ptime:20
                    }
                }
        }
    }
}

How Session Mirroring Works

If session mirroring is required on a gate, the PGCPD process embeds appropriate data in the gate open/modify request that it sends to the PIC. This data includes direction information to indicate whether the packet is mirrored before applying NAT actions or after. It also includes the decrypted correlation number and Target IDs that need to be embedded in the packet sent to the delivery function.

The PIC then:

  1. Marks the gate that needs to be mirrored and obtains the destination for the mirrored packets from the CLI configuration.
  2. Processes the packets as it normally does. It applies DSCP, latching, and rate limiting as appropriate.
  3. Generates one copy of the packets received on mirrored gates for each target ID specified in the PGCP request, encapsulates the mirrored packets, and sends them to the configured delivery function.

Session mirroring can be enabled or disabled any time during a gate’s life by employing PGCP commands. If mirroring is enabled in one stream of a termination, all streams in the context are mirrored. Both RTP and RTCP packets are mirrored for a gate marked for mirroring.

Security for Packets Sent to the Delivery Function

To protect mirrored traffic that is sent from the PG to the delivery function, you can use IPSec.

Related Topics


[Contents] [Prev] [Next] [Index] [Report an Error]