The modified version of Inet (as reference project for PacketBounce)
link layer PacketBounce Project source code
i) Create your own mactable initialization file of each switch (specify the mac address of receiver), and put it under "PacketBounce/MactableData"
ii) alter basic settings in "PacketBounce/simulations/omnetpp.ini"
iii) change the parameter of probability function P at the beginning of "inet/src/inet/linklayer/ethernet/switch/MACRelayUnit.cc"