The aim of this work is to propose feasible solution for the simulation of the SNMP (Simple Network Management Protocol) protocol in the OPNET Modeler simulation environment. This work describes in detail individual procedures, which were chosen for this simulation . The work also contains an introduction to the OPNET Modeler simulation environment, the SNMP protocol, the DiffServ model and the DiffServ-MIB database. The main part of this work describes the algorithms programmed to model the functions of the SNMP protocol. Source codes of the algorithms programmed are included as well. The work deals especially with the functions for obtaining values from different levels of a multilevel model attributes, packet creation functions with dyna...