This is the out of my omnet simulation, the problem seems to be that my ghost[32] get datagram TTL reached zero, i guess there’s no data because it can't find next hop, am i right?
** Event #255794 T=13.544791476486 Highway.ghost[32].wlan[0].radio (Ieee80211Radio, id=733), on selfmsg `endRx' (cMessage, id=244163)
Radio::handleSelfMsg2
frame is completely received now
reception of frame over, preparing to send packet to upper layer
packet (Ieee80211DataFrameWithSNAP)UDPBasicAppData-1308 () snrMin=21380.3
bpsk snr=21380.3 ber=0
64-Qam snr=21380.3 ber=6.07118e-224
berHeader: 1.35412e-316 berMPDU: 1.35412e-316 lengthMPDU: 10849 PER: 0
packet was received correctly, it is now handed to upper layer...
sending up frame UDPBasicAppData-1308
new RadioState is IDLE
** Notification at T=13.544791476486 to Highway.ghost[32].wlan[0].mac: RADIO-STATE IDLE, channel #0, 27Mbps
# state information: mode = DCF, state = DEFER, backoff 0..1 = 1
# backoffPeriod 0..1 = 0.000099
# retryCounter 0..1 = 0, radioState = 0, nav = 0, txop is 0
#queue size 0..1 = 0, medium is free, scheduled AIFS are 0(), scheduled backoff are 0()
# currentAC: 0, oldcurrentAC: 0
# current transmission: none
processing event in state machine Ieee80211Mac State Machine
FSM Ieee80211Mac State Machine: leaving state DEFER
firing Wait-AIFS transition for Ieee80211Mac State Machine
FSM Ieee80211Mac State Machine: entering state WAITAIFS
scheduling DIFS period
leaving handleWithFSM
# state information: mode = DCF, state = WAITAIFS, backoff 0..1 = 1
# backoffPeriod 0..1 = 0.000099
# retryCounter 0..1 = 0, radioState = 0, nav = 0, txop is 0
#queue size 0..1 = 0, medium is free, scheduled AIFS are 0(), scheduled backoff are 0()
# currentAC: 0, oldcurrentAC: 0
# current transmission: none
Radio::handleSelfMsg END
** Event #255795 T=13.544791476486 Highway.ghost[32].wlan[0].mac (Ieee80211Mac, id=732), on `UDPBasicAppData-1308' (Ieee80211DataFrameWithSNAP, id=244212)
->Enter handleLowerMsg...
received message from lower layer: (Ieee80211DataFrameWithSNAP)UDPBasicAppData-1308
Self address: 0A-AA-00-00-00-21, receiver address: 0A-AA-00-00-00-21, received frame is for us: 1, received frame was sent by us: 0
# state information: mode = DCF, state = WAITAIFS, backoff 0..1 = 1
# backoffPeriod 0..1 = 0.000099
# retryCounter 0..1 = 0, radioState = 0, nav = 0, txop is 0
#queue size 0..1 = 0, medium is free, scheduled AIFS are 0(), scheduled backoff are 0()
# currentAC: 0, oldcurrentAC: 0
# current transmission: none
processing event in state machine Ieee80211Mac State Machine
FSM Ieee80211Mac State Machine: leaving state WAITAIFS
firing Receive transition for Ieee80211Mac State Machine
canceling AIFS period
FSM Ieee80211Mac State Machine: entering state RECEIVE
FSM Ieee80211Mac State Machine: leaving state RECEIVE
firing Immediate-Receive-Data transition for Ieee80211Mac State Machine
sending up (Ieee80211DataFrameWithSNAP)UDPBasicAppData-1308
FSM Ieee80211Mac State Machine: entering state WAITSIFS
scheduling SIFS period
leaving handleWithFSM
# state information: mode = DCF, state = WAITSIFS, backoff 0..1 = 1
# backoffPeriod 0..1 = 0.000099
# retryCounter 0..1 = 0, radioState = 0, nav = 0, txop is 0
#queue size 0..1 = 0, medium is free, scheduled AIFS are 0(), scheduled backoff are 0()
# currentAC: 0, oldcurrentAC: 0
# current transmission: none
Leave handleLowerMsg...
** Event #255796 T=13.544791476486 Highway.ghost[32].wlan[0].mgmt (Ieee80211MgmtAdhoc, id=731), on `UDPBasicAppData-1308' (Ieee80211DataFrameWithSNAP, id=244212)
Frame arrived from MAC: (Ieee80211DataFrameWithSNAP)UDPBasicAppData-1308
** Event #255797 T=13.544791476486 Highway.ghost[32].networkLayer.ip (IPv4, id=725), on `UDPBasicAppData-1308' (IPv4Datagram, id=244214)
Received datagram `UDPBasicAppData-1308' with dest=192.168.0.7
GPSR at ghost[32] Finding next hop: source = 192.168.0.33, destination = 192.168.0.7
GPSR at ghost[32] Finding next hop using greedy routing: destination = 192.168.0.7
GPSR at ghost[32] Next hop found: source = 192.168.0.33, destination = 192.168.0.7, nextHop: 192.168.0.37
Routing datagram `UDPBasicAppData-1308' with dest=
192.168.0.7: using manually specified output interface wlan0
output interface is wlan0, next-hop address: 192.168.0.37
datagram TTL reached zero, sending ICMP_TIME_EXCEEDED
sending ICMP error ICMP-error-#1-type11-code0
** Event #255798 T=13.544791476486 Highway.ghost[32].networkLayer.ip (IPv4, id=725), on `ICMP-error-#1-type11-code0' (ICMPMessage, id=244216)
Sending datagram `ICMP-error-#1-type11-code0' with dest=192.168.0.33
local delivery
Routing datagram `ICMP-error-#1-type11-code0' with dest=
192.168.0.33: using manually specified output interface lo0
output interface is lo0, next-hop address: 192.168.0.33
Sending out packet to interface lo0
** Event #255799 T=13.544791476486 Highway.ghost[32].lo0.lo (Loopback, id=730), on `ICMP-error-#1-type11-code0' (IPv4Datagram, id=244217)
Received (IPv4Datagram)ICMP-error-#1-type11-code0 for transmission
** Event #255800 T=13.544791476486 Highway.ghost[32].networkLayer.ip (IPv4, id=725), on `ICMP-error-#1-type11-code0' (IPv4Datagram, id=244217)
Received datagram `ICMP-error-#1-type11-code0' with dest=192.168.0.33
Local delivery
** Event #255801 T=13.544791476486 Highway.ghost[32].udp (UDP, id=721), on `ICMP-error-#1-type11-code0' (ICMPMessage, id=244216)
<!> Error in module (UDP) Highway.ghost[32].udp (id=721) at event #255801, t=13.544791476486: check_and_cast(): cannot cast (GPSRPacket *)Highway.ghost[32].udp.ICMP-error-#1-type11-code0.UDPBasicAppData-1308.UDPBasicAppData-1308 to type 'UDPPacket *'.