Configuring the DCP
Context
The TLPs on DCPs are the executors in packet measurement. The TLPs count the number of sent and received packets in target flows, and DCPs collect statistics data from all TLPs and report statistics data to the MCP.
The measurement instance parameters of a DCP configured in this task must be the same as the parameters of the same measurement instance on the MCP; otherwise, the DCPs cannot send statistics data to the MCP.
Procedure
- Run the system-view command to enter the system view.
- Run the nqa ipfpm dcp command to enable the global DCP function and enter the IPFPM-DCP view.
- Run the dcp id dcp-id command to set
the DCP ID.
By default, a DCP has no ID. A DCP has a unique ID on the network. It is recommended that you configure the router ID of the device as the DCP ID.
- (Optional) Run the authentication-mode hmac-sha256 key-id key-id [ cipher ] password command to configure the authentication mode and
password on the DCP.
By default, no authentication mode or password is configured on a DCP.
The authentication modes and passwords on the MCP and DCPs must be the same so that the MCP receives the packets only from authenticated DCPs. This improves statistics data security and reliability.
- (Optional) Run the color-flag loss-measure { tos-bit tos-bit | flags-bit0 } command to configure the color bit used
in network-level packet loss measurement.
By default, bit 6 in the ToS field is used as the color bit for network-level packet loss measurement. The default configuration is recommended.
All devices on a network must use the same color bit setting.
When both network-level and device-level packet loss measurements are enabled on a device, the color bits must be differentiated.
RFC2474 defines the ToS field in the IPv4 packet header as the Differentiated Service (DS) field. In the DS field, the leftmost 6 bits (bits 0-5) are the DS Code Point (DSCP). When the DS field is used to provide differentiated service, it is not recommended that you configure bits 3-5 as color bits because the measurement result may be inaccurate.
- Run the mcp mcp-id [ port port-number ] [ vpn-instance vpn-instance-name | net-manager-vpn ] command to associate the MCP ID with all measurement instances
on the DCP, and configure the UDP port number through which the DCP
and MCP communicate with each other.
By default, no MCP ID is associated with the measurement instances on the DCP, and the DCP and MCP communicate with each other through UDP port 65030.
The DCP receives statistics data from TLPs, and sends the statistics data to the destination IP address, which is the MCP ID associated with the measurement instance. When receiving the packet carrying the measurement result from the DCP, the MCP compares the MCP ID in the packet with the MCP ID locally configured by the mcp id command.- If the two MCP IDs are the same, the MCP accepts the packet, and then summarizes and calculates the statistics data.
- If the two MCP IDs are different, the MCP considers the packet invalid and discards it.
- Configure measurement instances on the DCP.
The DCP collects statistics data based on measurement instances. Each measurement instance consists of the target flow, TLP, and measurement interval. To measure packet loss for a specified service flow, create a measurement instance.
- Run the quit command to return to the IPFPM-DCP view.
- Run the quit command to return to the system view.
- Bind interfaces to TLPs.
Run the interface interface-type interface-number command to enter the view of the interface to be bound to a TLP.
The physical Ethernet interfaces and Eth-Trunks can be bound to TLPs.
Run the ipfpm tlp tlp-id command to bind the interface to a TLP.
By default, an interface is not bound to a TLP.
One interface can only be bound to one TLP, and one TLP can only be bound to one interface.
- Run the quit command to return to the system view.
- Enable packet loss measurement for an instance.