xmac simulation