90
Development Tools User’s Manual
IXP2400/IXP2800 Network Processors
Developer Workbench
Note:
See the file
PortConfigData.h
for the contents of the port configuration data structures that are
passed to these initialization functions.
As the simulation progresses, the PacketSim DLL calls function
GetNextByte()
whenever a byte
of data is required on a receive port. In addition to the byte of data, the NTS DLL must also return
a flag indicating whether the byte is the last byte (EOP) in the frame/cell. When the PacketSim
DLL receives the last byte, it will call the
GetReturnStatus()
function if you have provided
one. It also calls the
GetInterpacketTime()
function in order to determine how long it waits
before asking for the first byte of the next frame/cell. This allows the DLL to randomize the arrival
of frames/cells.
On the transmit side, the PacketSim DLL calls the function
SendNextByte()
when it takes a byte
of data out of the transmit buffer to be sent over the network. An EOP flag is asserted along with
the last byte in the frame/cell.
When the user presses
Stop Debugging
in the Workbench, or if the
sim_reset
command is
executed directly, the functions
CloseRxPort()
and
CloseTxPort()
are called for each
connected receive and transmit port, respectively. The
Reset()
function is also called.
When the user closes the project or exits the Workbench, the function
Close()
is called just
before the NTS DLL is freed.
A Visual C++ project which is an example of a network traffic simulation DLL can be found at:
...\IXA_SDK_3.1\me_tools\Samples\NetworkTraffic.
2.12
Data Streams
Data streams are used to simulate network traffic. To create and edit data streams:
1. On the
Simulation
menu, click
Data Streams...
.
The
Data Streams
dialog box appears (see
).
2. Click the
Create Stream ...
button.
The
Create Stream
pop-up appears (see
).
You can create and edit the following data streams (see the following):
POS IP
(see
ATM
AAL5
(see
Custom Ethernet IP
Ethernet IP
Ethernet TCP/IP
PPP TCP/IP