OPNET Installation Operation Problem Summary

Source: Internet
Author: User
Tags stack trace win32 error opnet

Opnet as a professional-grade network simulation software, its powerful function makes it widely used in many fields. "The more powerful the software, the more frustrated installation," opnet is such a very annoying installation and operation of the software, here simply reproduced and recorded my installation opnet and use of the problem.

Opnet Installation

I am the OPNET14.5 installed under the Win7 system with vs2012. Although VS2012 is the C compiler, but it seems that the version can not support opnet, so I installed the basic steps and online most of the same tutorial, first installed VC6.0, and then installed Opnet.

1. Install the VC6.0. When installing the VC, the Register environment Variables the front box is hooked when the Setup Environment Variables dialog box appears. (restart required) of course, if the installation is a lite version or for some reason, the installation process does not have Setup environment variables this step, then you need to configure the environment variable. Because I already have a strong VS2012, so I chose to use a green lite version of Http://dd2.pc6.com/soft12/VC6.0green.rar, followed by annoying system parameter configuration.

2. Environment variables

Go to right-click Computer-"Properties-" System Advanced Settings-"advanced-" environment variables. For no environment variables need to be new, but some environment variables, directly edit. (Environment variables are not case-sensitive, so be sure to watch and then new, otherwise the same name of the old path will be overwritten, the consequences are serious).

The configuration principle is: All the VC under the name include, Lib ... The path is added to the LIB include variable (http://niehan.blog.techweb.com.cn/archives/146.html). The specific configuration is as follows:

Devenvdir=c:\program Files\Microsoft Visual Studio 9.0\common7\ide*




C:\Program Files\Microsoft Visual Studio 9.0\vc\atlmfc\include;*
C:\Program Files\Microsoft Visual Studio 9.0\vc\include;
C:\Program Files\Microsoft Sdks\windows\v6.0a\include;

C:\Program Files\Microsoft Visual Studio 9.0\vc\atlmfc\lib;
C:\Program Files\Microsoft Visual Studio 9.0\vc\lib;
C:\Program Files\Microsoft sdks\windows\v6.0a\lib;***

C:\Program Files\Microsoft Visual Studio 9.0\vc\atlmfc\lib;
C:\Program Files\Microsoft Visual Studio 9.0\vc\lib;

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;
C:\Program Files\Microsoft Visual Studio 9.0\vc\bin;
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;
C:\Program Files\Microsoft Visual Studio 9.0\vc\vcpackages;
C:\Program Files\Microsoft Sdks\windows\v6.0a\bin;

C:\Program Files\Microsoft Visual Studio 9.0\VC

C:\Program Files\Microsoft Visual Studio 9.0\common7\tools\

C:\Program Files\Microsoft Visual Studio 9.0

C:\Program Files\Microsoft Sdks\windows\v6.0a\

Note: When configuring the environment variables, be sure to correspond with the actual file system directory, each variable if there are multiple values to use; To split, note that it is an English character.

* Specific directory name, may be related to the installation location and version number, such as my installation location is G:\Program Files\Microsoft Visual Studio\common\ide

* * The name of the specific folder will also be different, if there is no folder or the name of the difference. If you don't have a folder, create a new folder in the appropriate location, or if the name is different, such as the Lite version of VC6.0 that I installed does not have C:\Program Files\Microsoft Visual Studio 9.0\vc\atlmfc but has C: \ Program Files\Microsoft Visual Studio 9.0\vc\atl and C:\Program Files\Microsoft Visual Studio 9.0\vc\mfc then replace the corresponding content.

This directory I do not have, but there are 7.0 to 8.0 of several folders, in this case, the search for these folders in which directory has the Lib folder, which has, which add to the Lib path. For example my is: in C:\Program Files\Microsoft Sdks\windows\v7.1a\ under the Lib folder, so will C:\Program files\microsoft Sdks\windows\v6.0a\ Lib is added to the LIB variable in the row.

After configuring the environment variables, restart, enter the CL statement in CMD, see if it can run, if the error "did not find Mspdb60.dll, so this application failed to start, reinstall the application may fix the problem", will be installed in the directory. \common\msdev98\ The Mspdb60.dll file under the bin is copied to the. \vc98\bin directory under the installation directory, and then the input CL can be reflected normally.

This will allow you to start installing the opnet happily.

3. Installing Opnet

My opnet14.5 is in the six-dimensional cracked version of http://bt.neu6.edu.cn/thread-342317-1-1.html, the resource has a specific installation and license generation method. Specific as follows:

    • Perform modeler_145a_pl1_7116_win.exe follow the prompts to install the Opnet Modeler software. When you finally select the license type, select standalone mode.
    • Then execute Modeler_docs_28-jan-2008_win.exe and Models_145a_pl1_27feb08_win.exe follow the prompts to install the document and library files.
    • Run Opnet Modeler from Start menu, you will be prompted for no license, select Run license Management, there should be no license at this time.
    • Close License Manager, but do not close opnet Modeler.
    • Check license_server and License_server_standalone settings correctly from Opnet Modeler's edit-preference. If you previously selected standalone mode, license_server should be localhost, native address or host name, Licenser_server_standalone should be true. If you have modified some settings, restart Opnet (go back to step 5th).
    • Double-click Opnet.modeler.14.5.license.makerffs.exe, enter continue.
    • Starting License Management from the License-license Management menu in Opnet Modeler, License file should already have 100x35 License, close License Management.
    • Select all the items in the License-product modules menu of Opnet Modeler and restart Opnet Modeler when you are sure that you can use Opnet Modeler normally.

This completes the installation.

Opnet Run common error: go from Http://blog.163.com/[email protected]/blog/static/27792065201271391652222/

If there are errors, be sure to read the error prompts patiently. Because this can be very efficient to help you find out the cause of the error (there will be Chinese hints oh, this is the most important, haha). Simulation Console (lower left corner)

I. 2012-8-13:

Error message:

<<< recoverable Error >>>
External code file (TCP_API) compilation failed
Errors given in file (C:\Documents and settings\chen\op_admin\tmp\cc_err_2572)

<<< recoverable Error >>>
Object Repository Construction failed
External code file (C:\Program files\opnet\14.5.a\models\std\umts\umts_support.ex.c) compilation failed, see error Messages in (C:\Documents and settings\chen\op_admin\tmp\cc_err_2572)
T (0), EV (-), MOD (NONE), PROC (Sim_load_repos_rebuild)
<<< program Abort >>>
Error encountered rebuilding repository--Unable to proceed
T (0), EV (-), MOD (NONE), PROC (Sim_load_repos_load)


1. Setting the environment variable or the same error occurred

2. Remove Visual C + + and reinstall it, then run the VC and open the Opnet to run the simulation. (VC and Opnet which first install is irrelevant)
Two. 2012-8-21

Reference Address http://hqsong722.blog.163.com/blog/static/3674215820101123101313442/

1. How do I set global variables?
Define the variable in the. h file, and then include the header file in the head BLOCK of the process to use the global variable.
2. How to see the program more conveniently in opnet?
(1). Settings in Opnet: Preferences->editor_prog
(2). Source Insight Settings: Operation->preferences->symbol lookups->project symbol Path->add Project to Path
(Add yourself to create a project with all Opnet model and include directories)
Of course, this is somewhat inadequate, that is, the content defined in the SV,TV,HB, cannot be associated.
3. What are the functions Fin,fret and fout in opnet?
In order for a user-defined function to be executed, the function must be connected to a special stack-trace code. The stack trace technique is done by inserting the preprocessor Macro command at the entry and exit points of the function (a function has only one entry point, but can have multiple exit points (as determined by the return declaration in C)). These macro directives are: FIN, Fout, and fret. Fin is inserted into the entry point of the function, Fout is inserted at the exit point of the function, but does not return any value, fret is inserted at the exit point of the function and returns a value. Note that these macro directives do not need to end with semicolons (they are self-contained), and no double quotes are required in fin parameters.
All of the sample models provided by Opnet contain these macro directives, and it is recommended that user-defined functions also contain these macros. If fin, FOUT, and fret are correctly inserted into the user code, we can use Op_vuerr to find out where the program is wrong, even in a nested model function call.
4. What is the difference between local statistics and global statistics?
Local statistics represents the statistics locally, while global statistics is the overall statistic. For example, you make a node model, this node sends packets, and then programmatically writes the number of packets sent to a local statistics and global statistics, and if you use two such nodes in your project, you can separate view Result the number of packets sent per node, while global statistics is the total number of packets sent by these two nodes.
5. What is the difference between ObjID and user ID?
ObjID is a system-assigned, globally unique, integer. The user ID can be set by itself, and can be not unique.
6. How do I add a module to opnet?
Edit-> Preferences-mod_dirs Add a module path.
7. Why do I save a new project every time I keep it in the C:\op_models directory, I want to change a place, how to set?
Edit-> Preferences-mod_dirs, create a new path and act as the first path.
8. Want to find the use of a variable, including different process, different node header and funtion, how to do?
In Opnet, a variable is present in a process. Between different processes, the information is shared through the communication mechanism between them. So the scope of your search for variables should be within a process. Each process generates a C or C + + file after compilation. In that file, you can find out where the variables are applied. Different processes may have the same attribute. In order to reduce the number of node attribute, you can use the Merge/rename attribute method
。 These ATTRIBUTE specifically correspond to which ATTRIBUTE of each process can be found by Merge/rename ATTRIBUTE under the node interface menu.
9. May I ask opnet how to export the diagram?
One: can be from Topology->export topology-> You export several graphics for project, such as bitmap,html and other formats. Node,process can export the topology diagram from the Exportbitmap in file.
Second: For the analysis of the curve, press the right mouse button, which has an Export Graph Data to Spreadsheet, and then will be prompted to say where you save the file, the general default is saved in the C:\op_admin\tmp directory. File you can use UltraEdit open to see, is two columns of data, one column is the simulation time, one column is the simulation data, then you can want to use what tool to draw it doesn't matter.
Add: In fact, there is a good use of the direct grab map, the effect is good.
10. The problem of delay in opnet.
The data rate is used in conjunction with Kanenaga to calculate the transmission delay, while the "delay" attribute is used to describe the propagation delay of the radio wave. The "delay" is the total propagation delay in the point-and-point link attribute, and "delay" means the transmission delay of unit distance in the multipoint link. The user can modify the propagation delay calculation method, the "Distance related" is expressed in the custom propagation delay pipeline stage based on distance calculation propagation delay.
11. In opnet, the parameters for statistics on some rate.
Statistical flow rate, the first should be in the local statistics capture mode of this statistic item is set to Sum/time, and then each time in the program receives a packet, the length of the packet is written to, for example, Op_stat_write (handle, L), and then immediately call a op_stat_write (handle, 0) to end this write, you can.
12. About begin INTRPT and Endsim intrpt
To simulate the initialization required at 0 moments, you need to set the Begin INTRPT, and some work groups are required at the end of the simulation, you need enable Endsim Intrpt
13. When debugging with VC, the value of state variable can not be seen, how to do?
Use the op_sv_ptr pointer. It points to all the state variables.
14. About elapsed time and Simulation time?
One is the time the emulator runs, reflecting the speed at which the emulator executes. The other is the time progress of the simulated system, which reflects the progress of the current simulation execution. The modification of the simulation time is done through the occurrence of the event. For example, you do one thing at 0s. The duration is 5 seconds, and an event is triggered at the end of 5 seconds, which changes the system's emulation time to 5s. You use the Opnet model, which updates the corresponding simulation time when the event is received. You can also update the simulation time yourself as needed. With Op_intrpt_schedule_self (Op_sim_time () + required time, intrptcode), you can generate an interrupt after the required time of the current moment, triggering an event, and the system's simulation event is updated for this time. The collection of data in opnet is optional and can be selected as point-by-bit or as smooth as the funnel, depending on your needs.
15. Opnet the runtime is unable to compile C code
When you do this, opnet always prompts that Comp_msvc cannot execute because Visual C + + is not installed correctly, and you need to modify the system's environment variables. The method is as follows (Win2000):
(1). Install VC + + correctly, the default directory is (below is the default directory for example) C:\Program Files\Microsoft Visual Studio
(2). Right-click on the "My Computer" icon in the desktop mouse and select "Properties". In the interface that appears, select Advanced, and then select environment variables.
(3). You need to modify the user's "user variables" instead of "system variables" to add the following parameters:
Variable name include
Variable value C:\Program Files\Microsoft Visual Studi0\vc98\atl\include;
C:\Program Files\Microsoft Visual Studio\vc98\mfc\include;
C:\Program Files\Microsoft Visual Studio\vc98\include
Variable name Lib
Variable value C:\Program Files\Microsoft Visual Studio\vc98\mfc\lib
C:\Program Files\Microsoft Visual Studio\vc98\lib
Variable name MSDevDir
Variable value C:\Program Files\Microsoft Visual Studio\common\msdev98
Variable name path
Variable value C:\Program Files\Microsoft Visual Studio\common\tools\winnt
C:\Program Files\Microsoft Visual Studio\common\msdev98\bin
C:\Program Files\Microsoft Visual Studio\Common\Tools \program Files\
Microsoft Visual Studio\vc98\bin
(4). Press the "OK" button to exit the settings.
You can avoid these steps if you allow the installer to modify the environment variables when you install the VC.
16. Can you tell me if the trajectory (i.e. motion trajectory) of the mobile station in Opnet is generated with a special code instead of using the mouse to draw it beforehand? How do I implement opnet interaction with this piece of code?
To achieve the interactivity of the motion trajectory, you have to modify some process and pipeline. The result of the motion is nothing more than the distance from the base station, then using the fading model to get snr,ber parameters, so you can modify DRA_PROPDEL.PS.C, Umts_ue_dra_power, Umts_dra_snr and other process.
such as in the dra_propdel.ps.c of the start_pro_distance with their own distance function can be replaced.
17. The randomness mentioned earlier obeys some random distributions, such as Gaussian distribution, Poisson distribution, and so on, and I would like to ask if there are any available probability distribution functions in opnet for call? How to invoke a function in the Op_dist_outcome category is described in detail in the online document.
18. For Opnet, it is emulated on project, node, and process three domains, and it seems as if the code is written in the entry, exit, and conversion areas of the process domain, Then to implement the mobile station randomly generated code does not seem to have a common global platform can be placed
(like a global variable declaration segment in c)? How to solve this problem?
The function should be in the FB of the process, the FSM is only called, the global variables are usually outside. h, also in HB.
19. What is the difference between OPNET output options "As is", "Average", "Time_average"?
The curves obtained under these options are not the same:
As is, it is not to do any processing,
Average is doing average
Time_average is doing time averaging
21. Opnet How to delete a senario while retaining the project?
In the Menu->senarios->manage Senarios.
22. What do you mean by animation in opnet?
Activate the node change process recording function, and record the statistic change process, can be used as an animated demonstration.
23. How do I share variables between processing modules in the opnet node domain?
You can try the following 2 ways:
(1). Defining Global Variables in HB
(2). Add a node property and then use the op_ima_xxx_xxx () function, which is the IMA package.
24. What is the meaning of setting properties for set,promoted and hidden inside node interfaces?
Hidden can not see the setting of this parameter in the simulation, promoted can change the value of the parameter as needed during the simulation.
25. I was learning Opnet's tutorial packet switching1 when the last simulation appeared the following error, how to solve?
Creating library Ps_pksw_net-scenario1.i0.nt.lib and Object Ps_pksw_net-io1.i0.nt.exp dpt_propdel.i0.ps.o:error lnk2001:unresolved external symbol _link_de ps_pksw_net-scenario1.i0.nt.so:fatal error lnk1120:1 unresolved exter
When running the simulation, select declare external file to include the Link_delay.h files.
26. May I ask opnet how to extract statistics as feedback control variables? For example, when the loss rate is extracted, it is controlled by the function to feed it back into the model.
You can try the STAT_INTRPT function.
27. What does the ordinal n in parentheses in the data lines in the model mean in SRC Stream [n] and Dest stream [n] respectively?
Op_pk_get (STRM NUM), the parameters of the data line are selected according to N.
28. How is the function of pipeline stage called? Why are my data on the receiving end of the pipeline function not finished? Only performed 3 functions, there is no, the result data do not know where to throw, the upper layer has no stream interrupt is what?
The pipeline state function body interface is specified and is called by KP. There is a connectivity check on stage 2, and if False, the future stage will not need to be executed.
29. After a closer look at the procedure, fin and fout are paired. In an idle state, nothing has been done. But after a long period of execution, the program suddenly tells the abnormal function stack function. is the error in the idle state. But which state is simply an empty operation. In the. pr.c file, it is found that the most complete function in the. pr.c file of all process is fin only, not fout. Is there any reason why this error may occur?
View the list of events, it is possible that the event list is full, you can try to change the preference inside a event_speed_parameter parameter the setting of the problem, the time will appear different.
30. Can you tell me how to configure the opnet background routing traffic?
Three ways:
Application Configi.
Conersation pair
Link load
31. How do I get the values of some of the parameters computed in the pipeline stage in the MAC layer, such as the value of the received power?
Can be used with PWR = Op_td_get_dbl (Pkptr, Opc_tda_ra_rcvd_power).
32. I made a little change to some pipeline function and saved it with a different name, but I can't change the original pipeline function to a renamed one in the module.
Pipeline function What's going on here? You have to modify the file name to be the same as the function name, and then you have to use Opnet's own external interface provided tools to compile it. OPNET and VC debugging experience summary based on debugging in OPNET Withmicrosoft Visual C + + debugging documentation (data download area provided), some experience is summarized as follows:
(1) When modifying the environment variables in preference, there should be a space between/od and/zi, and note that O is not 0.
(2) In addition to modifying Bind_shobj_flags, Comp_flags, Comp_flags_cpp, but also to modify the Bind_static_flags: that is, add/debug later. Can be seen from within the document. Remember, there must be a space in the middle.
(3) If there is a problem with the above settings, you can view the issue from the compilation results. (It is recommended that you deliberately add a syntax error to a process model, and then compile to see the error messages listed.) )
(4) In attach process, if you do not see any process, try to close unnecessary programs, leaving only the Opnet Project window and VC. If not, you will have to hit the VC SP5 patch. However, there is an easier way, in the task manager, in the process to find the Op_runsim_de v.exe process, right-click, and then debug, and VC can be linked.
(5) When modifying the environment files of the simulation model, it is generally not necessary to set force compile to enable, because the general process model is compiled when debugging. If force compile is set to enable, it will take a long time for each startup simulation to recompile all the process model contained in the project. But to make sure that the code is up-to-date, it's best to enable it.
(6) If you do not want the debug window to automatically shut down, you can change the consle_exit_pause to true, after the simulation will prompt the press <ENTER> to continue. Pressing two times <ENTER> closes the debug window.
(7) The parameters that generate debug information when compiling are/z7 or/zi, (note:/z8 is not a valid parameter).
Debugging also need to turn off the compiler's optimization function, so add/od. You need to keep debugging information when connecting, so add/debug after bind_shobj_flags.
(8) Config simulation inside the debug, the purpose is to let Op_runsim run in debug mode, equivalent to the-debug under the console. The role of Force_compile is to rebuild all the modules at compile time so that the source programs you see below the VC are up to date.
(9) In the VC debugging, starting from the breakpoint after the single-step operation, the end will always go to a machine code in the Assembly place. ODB There is no way to knock any orders. This is normal, the assembly is the opnet of the kernel and other things. Do not care about it, in the VC and then choose Run on the line. The program will run to the next breakpoint on the VC, or ODB can knock the command again.
(10) The most basic problem, when debugging opnet, error:
Bind_so_msvc:unable to execute BIND program (WIN32 error Code:2)
Check that Visual C + + has been installed correctly, and that it BIN directory is included in the Path environment VARIABL E.
You can then manually add environment variables in the usual way, but in the author's experience, even then, there may be problems. The most thorough way is VC and opnet re-installed, first install VC, installation, to choose to register environment variables. Opnet can not be lazy, just step by step in order to install it.
These are the author and some friends use opnet some of the summary, what is not enough to hope that everyone, mutual exchange, and common progress!
Opnet Channel Model Overview
In the Opnet model, when a packet is transmitted to a sender request, the actual situation is that the packet is immediately sent to the communication channel for transmission, so the opnet must model the communication channel, that is, to implement the physical layer characteristics in the models so that the transmission effect of the channel to the packet is taken into account in the whole network model. Opnet models the transmission effect of the channel to the packet as a number of computational stages (called the Pinpeline Stage), and ultimately determines whether the packet can be received.
The typical parameter of the pipeline is a packet pointer, which means that pipeline is calculated for each package to transmit its effect on the physical channel. In order to carry
Pipiline the required or computed channel parameters, each package contains a storage area consisting of a set of values from the transmission data attribute (TDA), when the transfer effect of the package is calculated into a pipeline stage. The system kernel assigns an initial value to the TDA or sets the TDA value based on the result of the calculation. This set of TDA values can provide a basis for the calculation of the subsequent pipeline stage.
Opnet divides the transmission channel into three types: Point-to-point link, bus link and Wireless Link (radio link)
。 Each chain route is composed of several standard, default pipeline stages. The user can modify the default pipeline stage to accommodate the type of channel the user needs: The user can define his TDA in pipeline, and can also invoke the kernel process (KP) that supports the operation of the TDA in the system kernel to program its own channel model.
The default pipeline stage model file suffix in opnet is named. PS.C, and the resulting target file suffix named. PS.O is compiled. Default for all three channels
Pipeline stage files are stored under the <opnet directory >/< version directory >/models/std/links/folder. To write the pipeline stage instead of the default model, the user writes the. ps.c suffix of the C or C + + file before compiling the. PS.O target file. The pipeline model of the point-to-point link consists of four default pipeline stages, which are described as follows:
1) Transmission delay phase: Model file DPT_TXDEL.PS.C. Transmission delay describes the time interval between the first bit sending time and the last bit sending time.
Calculation method: From the package to read the transmission of the packet of the channel's flag (ID), with the channel ID, you can read the data rate of the channel, read the length of the packet, transmission delay = kanenaga/Data rate, the calculated transmission delay value is written to the TDA of the packet.
2) Propagation delay Stage: Model file DPT_PROPDEL.PS.C. Propagation delay describes the time interval between the start of the first bit and the time the first bit arrives. Calculation method: Read the link flag number (ID) of the transmission packet from the package, read the "delay" attribute value of the link with the link ID, and write the propagation delay value into the TDA of the packet;
3) Error number allocation phase: Model file DPT_ERROR.PS.C.
Calculation method: Read the sign number (ID) of the link, read the error rate of the link "ber" attribute value, that is, the probability of a single bit potential error, read the packet length, calculate "just happen K bit error" probability P (k), then you can get "the maximum occurrence of K bit error" probability p=p (0) +p (1) + ... +p (k); produces a random number r that is evenly distributed within {0,1}; if the random number r is less than or equal to the probability P of "at most K bit error", then "determine" K is the number of errors that the packet transmits on the channel; if R is greater than P, then the value of K is added to 1. The number of errors that the algorithm can accept is calculated repeatedly, and the number of errors is written into the TDA of the packet.
4) Error correction phase: Model file DPT_ECC.PS.C.
Calculation method: Read the receiver's flag number (ID), read the receiver can correct the number of error threshold "ECC THR
Eshold "property value; reads the number of errors previously computed, compares the number of errors to the error correction threshold" ECC threshold ", and determines whether the packet can be properly received; write the result into the TDA of the package. The pipeline model of the bus link consists of six default pipeline stages, the first of which is calculated once for each transmission, and the next five stages are computed for each receiver that may receive the transmission.
Described below:
1) Transmission delay phase: Model file DBU_TXDEL.PS.C.
Method of calculation: Consistent with point-to-point links.
2) Closed calculation stage: Model file DBU_CLOSURE.PS.C.
The significance of this phase is to determine whether each receiver node is able to receive this transmission, that is, the closure of the link. There is a judgment result for each receiver. With this result the system kernel can decide whether or not to perform the subsequent calculation process for the receiver. The benefit of this judgment is that the simulation efficiency is improved because if a receiver is known not to receive the transmission, it is not necessary to calculate the propagation delay, the conflict equivalence, and avoid unnecessary computation. Calculation method: The default is that all stations on the bus can receive this transmission, so the judgment value is written directly into the TDA in the package.
3) Propagation delay Stage: Model file DBU_PROPDEL.PS.C.
Calculation method: Read the link's flag number (ID), read the link's unit distance propagation delay "delay" property value. Note that the Delay property here does not have the same meaning as the delay attribute of a point-to-point link. This refers to the transmission delay of the unit distance, while the delay in the point-to-point link directly refers to the total propagation delay. Because the point-to-point only involves the propagation delay of a single link, the bus link calculates multiple propagation delays for different receivers i.e. different propagation distances; reads the distance interval between transceivers; the product value is the propagation delay, which is written into the TDA of the packet.
4) Conflict Detection phase: Model file DBU_COLL.PS.C.
During the entire receive time of a package (the interval between the first bit arrival time and the last bit arrival time), multiple transport events may occur, so that for the package, you may encounter multiple conflict events. In Opnet, whenever a conflict event occurs, the pipeline stage is called to record the conflict event.
This pipeline stage is not always called for each packet transmission, it is only invoked in the event of a conflict, but no conflict is determined by the system kernel. This calculation process differs from the other pipeline stage, with two packet pointer parameters: the first is the first-to-last grouping, and the second is the post-to-packet (that is, the one that triggered the conflict event).
Calculation method: If the previous package ends up receiving just after the next packet starts transmitting, it is not considered a conflict. Therefore, the end time of the previous package is read and compared to the current emulation time. Conflicts are not considered if they are equal or less than. If it is greater, the number of record collisions for the front and back two packages is added to the TDA.
5) Error number allocation phase: Model file DBU_ERROR.PS.C.
Calculation method: The calculation method is consistent with the point-to-point link, and the number of errors is calculated based on Ber.
6) Error correction phase: Model file DBU_ECC.PS.C.
The criteria for the packet to be correctly received are slightly different from the point-to-point link. The first is to request the package without conflict, and then the number of errors and error correction threshold comparison can be correctly received or not.
Calculation method: Read packet conflict number, if the number of collisions is not 0 or the node is disabled, it is directly judged not to receive correctly, the number of errors and error correction threshold comparison to determine whether the correct reception, the judgment results are written into the TDA of the package. The exact steps are consistent with point-to-point links.
Some ideas about the application module here to see yourself application module of some notes organized to paste out, and everyone to communicate.
When it comes to application modules, first you have to talk about application configure and profile configure. There is a detailed introduction to the online document (Models->model descriptions->methodologies & Case studier-> in Main menu) Configuring application and Profiels).
Here is a brief description: profile is used to describe the behavior of the user: what type of application users use, when to use such applications, how long?
Application specifically describes the actions of an application, such as an HTTP application, which specifies the size and time interval of each page to be obtained. A profile can contain multiple application.

Your own actual operation encountered in the error prompt and resolution method:

I. FIRST hint

C:\users\chenshengli\op_admin\tmp\oms_string_support.ex.tmp.c:fatal error C1074: "IDB" is an illegal extension of PDB files
The workaround is to go to Modeler.exe in the installation directory, cancel the compatibility, and then run as Administrator. The above problem can be solved. (Each time you run Opnet Modeler, run as an administrator)

Two. Resolve the second prompt that appears after the first prompt

Cannot open include file ' windef.h ': No such file or directory

Workaround: Search for the windef.h file in the Install VS disk and then add the folder path copy to right-click My Computer properties advanced environment variable path and include

Three. The next error is that the file "Kernel32.lib" cannot be opened

The workaround is to edit lib in the environment variable

D:\Program Files\Microsoft Visual Studio 9.0\vc\lib;d:\program Files\opnet\14.5.a\sys\lib;d:\program files\opnet\ 14.5.a\sys\pc_intel_win32\lib;c:\program Files\Microsoft Sdks\windows\v6.0a\lib

Four. Error message is missing MSVCR90.DLL

The solution is to download a MSVCR90.DLL from the internet and put it under \system32.
Five. The error that occurred is runtime error (R6034)

The workaround is: My is Visual Studio 2008, copy the opnet_dir>\sys\pc_intel_win32\bin\manifest_net2008 directory under the file (there are 5) to <opnet_dir>\ Sys\pc_intel_win32\bin, then copy the Mt.exe file from the bin under the Windows SDK to the Opnet Bin folder and run cmd from the Start menu to enter the following command:

Mt.exe–manifest op_runsim.exe.manifest–outputresource:op_runsim.exe;1 Enter no error (Fail) to calculate the pass.

OPNET Installation Operation Problem Summary

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.