Table of Contents |
Modeling Process Logic
Process Model defines the function of each protocol layer
in Node Model. The graph on the right shows the
action button panel of process model.
We have created or improved several processes for the model. Among them, IGMP, RSVP, IP, ARP, MAC and QUEUE have different implementations on Routers and Hosts, while Application processes (UAPP, MAPP and QAPP) only exist on Hosts and QOSIP only exists on Routers. Each process is described by a state-transition diagram. You can provide C code for each state and define constants and variables in the header file. FAQ shows how to configure the environment variables to use the online support. There are several methods to schedule when and how your process to be executed. You can use op_intrpt_schedule_self() to schedule the time that current process will be reexecuted. op_intrpt_schedule_remote() schedules another process in the same node to be executed after current process finishes. While op_intrpt_force_remote() force another process in the same node to be executed immediately, and current process will continue running when the remote process returns. You need to provide the intrpt_code as a parameter in these funtions, the scheduled process will decide the state transition depending on the code (see below for detail). Click processes listed below to see their state transition diagrams. |
The dialog above shows the transition (spillter -> data_decap) attributes in the IGMP process on the Host. If the condition "data_decap_intr" is true, the spillter state will transfer to data_decap state.
We wrote the C code in spillter state:
Another way to decide the transition direction
is based on the intrpt_code.
Opnet 2.5 or above version provides its own text editor to edit the code. If you still prefer your own tools, you can make a new script file at OPNET system bin directory (here is an example for vi), and change the editor_prog item in your environment database file to specify the directory and program name of your script.
Table of Contents |