Ethernet Network Processor: Architectural Innovations for SDN Implementation in Huawei S12700 Agile Switches
Many indicators, such as throughput, latency, manageability, and security, are used to evaluate the performance of network devices. Among other indicators, the most important is forwarding technology. ASIC (Application Specific Integrated Circuit) chips have increased the capacity of switches from 10/100 Mbit / s to N Gbit / s and N x 10 Gbit / s, but today new e-commerce services, online media, BYOD, continue to increase traffic volumes, requirements to functionality and quality assurance. An effective solution for modern IT tasks is designed to be the SDN (Software Defined Networking) architecture, which implies data flow control and integration with management systems for interaction between the network, users and applications.
In this article we will talk about the architectural solution of Huawei Enterprise - Ethernet ENP (Ethernet Network Processor) network processor, designed to increase productivity when implementing SDN architecture. The ENP solution was the technological basis for the functionality of Alige Sx700 switches, the first of which was S12700. Huawei plans to use the ENP in the S9700, S7700 and lower switch models in the future.
Tools for developing new functionality include ASIC processors and NP network processors (Network Processor). The advantage of ASIC in speed and reliability, the advantage of NP in flexibility and programmability. However, at high performance, ASIC chips support only predefined service algorithms and a fixed set of protocols. Therefore, the most significant problem in ASIC technology is the impossibility of a flexible extension of functionality. The example below shows the fixed hardware forwarding scheme in L3 switches. Adding a new algorithm, such as MPLS or SDN, requires adjustment of the chain, however, changing the hardware design of the chip can take years.

Commercial NPs are designed as an alternative to ASIC for implementing complex traffic processing, security, and quality of service schemes — for example, L4-L7 analysis, cryptography, queue management. Instead of ASIC hardware logic, NP offers software-configured computational resources for the rapid introduction of new applications.
Commercial NPs share tasks between the separated computing resources of the NPU (Network Processing Unit) —a set of processors assembled together to increase performance. Each group of processors corresponds to a dedicated area of ​​instruction memory describing algorithms for performing tasks using program code, which makes it possible to implement new network protocols and data processing scripts without the need to change the hardware design of the chips. For example, IPv6 and the corresponding route tables, new types of tunneling or traffic encryption can be implemented in the NP by changing the microcode, while the use of ASIC technology will require equipment replacement. At the same time, improper resource planning can lead to some downtime and overloading of other NPUs, which leads to the appearance of “bottlenecks” and performance degradation. Another disadvantage of NP is the limited size of instructions and the performance of the NPU group, especially when it is necessary to implement more resource-intensive tasks than planned when developing NP.

Combining a set of processors on a single platform makes it possible to increase the performance of NP to the level of ASIC. In addition, the increase in the speed of data processing is provided by the hardware increase in the clock frequency of the chip. However, the flip side of increasing configuration and clock frequency is the increase in power consumption.
Based on more than 20 years of R & D experience in microelectronics, Huawei has developed the next generation NP - Ethernet NP (ENP), which take into account:
- New functional requirements, in particular, the SDN architecture, which involves switching a large number of data streams and using separate routing tables that are defined by the network controller using the OpenFlow protocol;
- reduce energy savings, as opposed to a significant increase in power devices based on commercial NP;
- removal of restrictions on the amount of instructions and improve memory performance.
')
The unique solutions in the design of Huawei ENP are: a single instruction area, optimized Smart Memory, a table of millions of entries and energy saving.
Unified instruction areaUnlike the standard implementation on commercial NP, the ENP instruction area is not assigned to each of the NPU groups, but one for all processor groups. Each of the NPU groups can execute any set of instructions, from analyzing the headers to modifying the data. Thus, the functionality should not be distributed between different NPU groups, and all resources are available to perform any of the tasks. Huawei solution eliminates the problem of distribution of functions for performance planning, reduces the time to develop new functionality.
In addition, ENP has several parallel data processing chains - this increases productivity and optimizes the operation of input / output interfaces. In particular:
- ENP can perform parallel processing of protocols of different levels L2, L3, MPLS, VPN;
- Due to the fact that the size of instructions for NPU groups in commercial NPs is limited, complex services were distributed to several NPU groups that performed their tasks sequentially; A single instruction area in the ENP allows service to be performed on a single NPU group, since the size of instructions can be significantly increased.
Smart memoryBoth ASIC microprocessors and most commercial NPs share data processing and storage functions. The interaction with the memory elements creates a delay, and the execution in separate modules increases power consumption. Therefore, in its decision, Huawei integrated the elements of Smart Memory into ENP and thereby optimized the speed of data exchange.
Smart Memory combines routing table storage and route search functionality, and is also able to handle traffic, particularly by limiting data transfer rates or participating in statistics collection.
Millions of entries in the forwarding tableHuawei Enterprise's hybrid SDN solution simultaneously uses the OpenFlow layer and the traditional routing layer to control data transfer. This approach allows smooth migration to the SDN architecture without disrupting the work of existing services. The same solution is used by other market participants, but the built-in flow tables in ASIC solutions are small. One of the industrial solutions is the use of TCAM (Ternary Content Addressable Memory) external modules, which combine the forwarding table, QoS and packet filters. However, such solutions are also limited in speed and table sizes.
The ENP solution supports up to 16 million data flows, which provides flexible service management for tens of thousands of campus employees.
Energy savingThe power consumption of ASICs is fixed and is usually lower than that of commercial NPs. The ENP solution reduces power consumption depending on the amount of traffic and processing complexity, since the ENP is able to block unused NPU groups. As traffic increases, ENP activates resources for a few nanoseconds. The success of this mechanism has been tested by test laboratories, which have documented the ability of Huawei switches to cope with a sharp surge in traffic.

The use of energy-saving technology leads to a decrease in power consumption by 30%.
The power consumption of the chip directly proportional to the clock frequency. Therefore, in the ENP solution, Huawei integrated the speedometer, voltage and timing controllers. The speedometer is on the way of the data to the NPU groups to monitor the amount of traffic. Changes in data rate lead to changes in data channel clock frequency. At the same time, changes in the number of packets lead to an adjustment in the number of active packet processors. If the NPU group is locked, the processors are not energized and synchronized. If necessary, the processors are instantly included in the work.
ENP ApplicationsHuawei Enterprise employs ENP processors in the 1GE and 10GE interface modules, which are recommended for connecting aggregating access level switches and implementing enhanced functionality. In this case, the trunk interfaces 10GE, 40GE and 100GE are formed by modules that use the ASIC architecture to achieve maximum performance and support MPLS.
To preserve the performance of existing applications and network solutions, Huawei Enterprise implemented a solution called "hybrid OpenFlow", which in parallel provides work:
- switching and routing functions (3 million IPv4 routing entries, 1 million IPv6, 128 thousand IP multicasts, 1 million MAC and 256 thousand packet filters),
- SDN for flow control (16 million streams).
SDN implementation in the Huawei POF (Protocol Oblivious Forwarding) solution is based on the OpenFlow standard and is backward compatible with it for interoperability with other manufacturers. The POF technology is different in its ability to work with any protocols and non-standard packages, whereas the OpenFlow standard implies only operations with IP. ENP processors extend Huawei’s ability to work with new protocols that can be implemented programmatically, while ASN implementations of SDN deprive manufacturers of flexibility.
A practical example of using Huawei Enterprise’s SDN solution is to encapsulate data and add user information to the headers of packets. In the test scheme compiled by Miercom, the formation of a non-standard package containing the sender’s location information was verified. Additional information was later used to identify the data flow and direct it over the network.
In addition to SDN, ENP-based interface modules support enhanced functionality of wireless access traffic aggregation, implement quality control and alarm localization. The subscriber aggregation solution includes a distributed AC access controller (Access Controller) and a BRAS (Broadband Remote Access Server) remote access server, which turns the Huawei S12700 switch into a high-performance WiFi traffic hub that can connect up to 4,000 AP access points (serving Point). up to 65 thousand simultaneous connections. The total bandwidth of the solution is 800 Gbit / s. For the convenience of managing APs and remote ports of aggregating switches, the Huawei Agile solution implements the technology of the unifying virtual factory SVF (Super Virtual Fabric). SVF presents remote APs and access switch ports as virtualized S12700 ports, and CAPWAP (Control And Provisioning of Wireless Access Points) control and configuration technology allows you to centrally manage software, configurations, and current AP network settings without the need to work with individual devices.
Integration of subscriber aggregation solutions and SDN allows you to implement user service policies and, if necessary, operate with the traffic of vertically integrated applications, highlighting it in virtual environments of secure access. At the same time, the concept of data flows, implemented in the Huawei S12700 switches, allows you to centrally manage quality across the network. The iPCA (Packet Conservation Algorithm for Internet) Isolated Network Flow technology allows you to once determine the signs of priority traffic on a campus controller, and then transfer the requirements to all network devices. ENP-based solutions identify priority traffic flows and control its passage through the network at each transit node. And for quality control and localization of accidents, iPCA accumulates operational statistics based on each ENP microprocessor.
IPCA implementation is another example of Huawei's technological leadership and practical application of SDN.