Annexe B : Le fichier masques d'erreur
L'utilisateur aura à la fin de la simulation un fichier
contenant les masques d'erreur pour chaque paquet simulé. Le suivant est
un exemple de masque d'erreur généré pour un paquet.
[Masks after decoder. Payload
|
1st
|
Part:
|
PHY
|
PLCP header
|
-2nd Part:
|
MAC
|
Header
|
&
|
|
| 0
|
1
|
0
|
1
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
|
|
|
|
| 0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
1
|
1
|
0
|
1
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|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
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0
|
0 0
|
0 0
|
0
|
0
|
0
|
0]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Annexe C : Le fichier omnetconfig
#
# OMNeT++ simulation model configuration file
# (included in makefiles generated with -c option)
#
# Generated by opp_makemake --genconfig omnetppconfig
#
#
# Local configuration
# NEDC=/user/aayadi/home/omnetpp/bin/nedtool
MSGC=opp_msgc
CXX=g++ `pkg-config --cflags itpp`
CC=gcc
AR=ar cr
SHLIB_LD=g++ -shared
MAKEDEPEND=opp_makedep -Y --obj dirtree
CFLAGS=-O2 -DNDEBUG=1 -DWITH NETBUILDER
_
NEDCFLAGS=-Wno-unused
LDFLAGS= -Wl, --export-dynamic EXE_SUFFIX=
WITH_PARSIM= WITH_NETBUILDER=yes
OMNETPP_INCL_DIR=/user/aayadi/home/omnetpp/include
OMNETPP_LIB_DIR=/user/aayadi/home/omnetpp/lib
TK_LIBS=-L/usr/X11R6/lib -lX11 -ltk8.4 -ltcl8.4 MPI_LIBS=
XML _LIBS=
SYS_LIBS=-ldl -lstdc++ `pkg-config --libs itpp`
SYS_LIBS_PURE=-ldl -lsocket -lnsl -lm $(shell $(CXX)
-print-filename=libstdc++.a)
#
# Definitions for models
#
# User interface libs
CMDENV_LIBS=-lenvir -lcmdenv
TKENV_LIBS=-lenvir -ltkenv $ (TK_LIBS)
# Simulation kernel KERNEL_LIBS=-lsim_std
ifeq ($ (WITH _NETBUILDER) ,yes)
KERNEL_LIBS += -lnedxml $(XML_LIBS) endif
ifeq ($ (WITH _PARSIM) ,yes) KERNEL_LIBS += $(MPI_LIBS)
endif
# Simulation kernel and user interface libraries
OMNETPP_LIBS=-L$ (OMNETPP_LIB_DIR) $ (USERIF_LIBS) $
(KERNEL_LIBS) $ (SYS_LIBS)
COPTS=$ (CFLAGS) $ (INCLUDE_PATH) -I$ (OMNETPP_INCL_DIR)
NEDCOPTS=$ (COPTS) $ (NEDCFLAG)
|