UPC and NPC


Usage Parameter Control and Network Parameter Control are functions that may be performed in a computer network. UPC may be performed at the input to a network "to protect network resources from malicious as well as unintentional misbehaviour". NPC is the same and done for the same reasons as UPC, but at the interface between two networks.
UPC and NPC may involve traffic shaping, where traffic is delayed until it conforms to the expected levels and timing, or traffic policing, where non-conforming traffic is either discarded immediately, or reduced in priority so that it may be discarded downstream in the network if it would cause or add to congestion.

Uses

In ATM">Asynchronous Transfer Mode">ATM

The actions for UPC and NPC in the ATM protocol are defined in ITU-T Recommendation I.371 Traffic control and congestion control in B ISDN and the ATM Forum's User-Network Interface Specification. These provide a conformance definition, using a form of the leaky bucket algorithm called the Generic Cell Rate Algorithm, which specifies how cells are checked for conformance with a cell rate, or its reciprocal emission interval, and jitter tolerance: either a Cell Delay Variation tolerance for testing conformance to the Peak Cell Rate or a Burst Tolerance or Maximum Burst Size for testing conformance to the Sustainable Cell Rate.
UPC and NPC define a Maximum Burst Size parameter on the average or Sustained Cell Rate, and a Cell Delay Variation tolerance on the Peak Cell Rate at which the bursts are transmitted. This MBS can be derived from or used to derive the maximum variation between the arrival time of traffic in the bursts from the time it would arrive at the SCR, i.e. a jitter about that SCR.
UPC and NPC are normally performed on a per Virtual Channel or per Virtual Path basis, i.e. the intervals are measured between cells bearing the same Virtual Channel Identifier and or Virtual Path Identifier. If the function is implemented at, e.g., a switch input, then because cells on the different VCs and VPs arrive sequentially, only a single implementation of the function is required. However, this single implementation must be able to access the parameters relating to a specific connection using the VCI and or VPI to address them. This is often done using Content-addressable memory, where the VCI and or VPI form the addressable content.
Cells that fail to conform, i.e. because they come too soon after the preceding cell on the channel or path because the average rate is too high or because the jitter exceeds the tolerance, may be dropped, i.e. discarded, or reduced in priority so that they may be discarded downstream if there is congestion.
The GCRA, while, possibly, complicated to describe and understand, can be implemented very simply. While it is more likely to be implemented in hardware, as an example, an assembly language implementation can be written in as few as 15 to 20 instructions with a longest execution path of as few as 8 to 12 instructions, depending on the language.

In AFDX

Transmissions onto an AFDX network are required to be limited to a Bandwidth Allocation Gap. Conformance to this BAG is then checked in the network switches in a similar way to UPC in ATM networks. However, the token bucket algorithm is recommended for AFDX, and a version that allows for variable length frames is preferred over one that only counts frames and assumes that all frames are of the maximum permitted length.