6
)LJXUH
C-Ware APIs
For programmers accustomed to tweaking hundreds of lines of
assembly code to squeeze out the last bit of performance from
a CPU, the concept of using an API in forwarding plane code
would appear odd. However, the C-5 NP computing power (over
3,000 MIPS total) was sized from the beginning to accommo-
date any overhead imposed by an API. This, combined with
standard C/C++ programming, is the key to delivering on a
simple programming model.
In an effort to leverage the power of this concept throughout
the industry, a group of network processor, software, and
equipment vendors (with C-Port, IBM, and Lucent as charter
members) initiated the Common Programming Interface (CPIX)
Forum (www.cpixforum.org). By defining a common framework
and API, network processor vendors and communications soft-
ware vendors can offer more portable and flexible solutions for
network equipment designers.
3URJUDPPLQJ(QYLURQPHQW5HTXLUHPHQWV
The use of a true communications platform in network device
design changes the typical design process. A much larger
percentage of the intellectual property of a product is delivered
in software, hence the network processor development tools
environment is critical to project success. In addition to the
basic programming model, other factors influence the speed at
which products can be brought to market.
These factors include:
6RIWZDUHUHIHUHQFHGHVLJQDYDLODELOLW\
— Most network
processor vendors provide examples of forwarding plane
software for some number of functions. The extent, quality,
and breadth of these applications (as well as available
implementations from software partners) can help make or
break a project schedule.
Buffer
Mgmt.
Unit
Queue
Mgmt.
Unit
Table
Lookup
Unit
Executive
Proc.
CP15
B
S
Q
S
T
S
F
S
Kernel Services
PDU Services
Protocol Services
Fabric
Proc.
CP1
CP0
C-5 Network Processor
5REXVWVLPXODWLRQHQYLURQPHQW
— Most network processor
vendors provide extensive simulation environments that
allow completion of forwarding plane code development
and performance characterization before hardware
integration. A key differentiator is the speed and accuracy of
the network processor simulation. Those based on a full
software implementation can be as accurate as a hardware
model (for example, based on Verilog/VHDL models), but
orders of magnitude faster, allowing more simulation
bandwidth.
'HYHORSPHQWV\VWHPDYDLODELOLW\
— A hardware development
system, offering the ability to execute software on the
“real” network processor, is also generally available from
most vendors. While not a replacement for a good simulator
(a simulator can always be better instrumented than real
hardware), it is invaluable for starting final integration in
advance of prototypes. A system that can be assembled to
closely match the target system configuration (types of
physical interfaces, and so on) is a great asset.
2WKHUVRIWZDUHWRROV
— Software tools, such as compilers,
debuggers, performance analyzers, and so on are also key
elements of the software development environment.
Seamless integration of these tools across both the
simulation and hardware development platforms is an often
overlooked, but important, aspect of accelerating
time-to-market.
+RVWSURFHVVRULQWHJUDWLRQ
— As described earlier, the
control plane functions are supported in a traditional
embedded CPU. The hardware integration of this processor
with the network processor is straight forward, but the
software integration requires some considerable thought.
Hence a software and hardware development environment
that comprehends the host processor, including drivers for
the leading real-time operating systems, host-level APIs,
and some number of fully integrated applications, should be
a key consideration.
For example, C-Port provides a complete communications
development environment, consisting of a full software toolset
(including simulator), and a development system. The develop-
ment system consists of network processor modules, physical
interface modules (for Ethernet, Gigabit Ethernet, OC-3, OC-12,
and so on), and a host processor module based on a PowerPC
CPU running the VxWorks RTOS. The vast majority of an appli-
cation can be integrated and tested prior to integration with the
target product hardware design, significantly reducing the time
and risks of the product integration phase.
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.