13.07.2015 Views

Interfacing Simulations with Live Devices and Traffic Using OPNET's ...

Interfacing Simulations with Live Devices and Traffic Using OPNET's ...

Interfacing Simulations with Live Devices and Traffic Using OPNET's ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1578 <strong>Interfacing</strong> <strong>Simulations</strong> <strong>with</strong> <strong>Live</strong> <strong>Devices</strong> <strong>and</strong> <strong>Traffic</strong> <strong>Using</strong> <strong>OPNET's</strong> System-in-the-LoopWriting Packet Conversion Code• Can utilize SITL’s packet conversion code as a base• Eliminates need to translate lower-layer protocols such as IP, TCP• Un-translated portion of packet placed in “data” field• For a list of relevant packet conversion code functions, check SITL guide• Include sitl_packet_translation.h• Write custom translation functions• Conversion function pair: real-to-sim <strong>and</strong> sim-to-real• Test function• Initialization function• In the simulation• In the project, declare the external file• Edit attributes on SITL gateway node• From Real Packet Translation Function• To Real Packet Translation Function• For information on how to parse packets, see WinPcap documentationCONFIDENTIAL ─ RESTRICTED ACCESS: This information may not be disclosed, copied, or transmitted in any format <strong>with</strong>out the prior written consent of OPNET Technologies, Inc. © 2010 OPNET Technologies, Inc.27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!