NordicSemiconductor / NAT-TestFirmware

Used to test NAT timeouts, sends messages to NAT-TestServer
Other
0 stars 0 forks source link

Upper bound of Timeout is not determined based on successful server response #10

Closed coderbyheart closed 4 years ago

coderbyheart commented 4 years ago

However:

Finished measuring for UDP. Timeout rule set at 37 seconds

Result for this test should have been 36, not 37.

Packet sent: {
        "ip":   ["10.160.142.124"],
        "op":   "24201",
        "cell_id":      16969475,
        "ue_mode":      2,
        "lte_mode":     1,
        "nbiot_mode":   0,
        "gps_mode":     0,
        "iccid":        "8931089318104284409F",
        "interval":     36
}
Waiting for response...
Response: Interval: 36
Received:2020-04-30T15:34:30.56+0000
Returned: 2020-04-30T15:35:06.56+0000

Packet sent: {
        "ip":   ["10.160.142.124"],
        "op":   "24201",
        "cell_id":      16969475,
        "ue_mode":      2,
        "lte_mode":     1,
        "nbiot_mode":   0,
        "gps_mode":     0,
        "iccid":        "8931089318104284409F",
        "interval":     49
}
Waiting for response...
No response from server
Packet sent: {
        "ip":   ["10.160.142.124"],
        "op":   "24201",
        "cell_id":      16969475,
        "ue_mode":      2,
        "lte_mode":     1,
        "nbiot_mode":   0,
        "gps_mode":     0,
        "iccid":        "8931089318104284409F",
        "interval":     42
}
Waiting for response...
No response from server
Packet sent: {
        "ip":   ["10.160.142.124"],
        "op":   "24201",
        "cell_id":      16969475,
        "ue_mode":      2,
        "lte_mode":     1,
        "nbiot_mode":   0,
        "gps_mode":     0,
        "iccid":        "8931089318104284409F",
        "interval":     39
}
Waiting for response...
No response from server
Packet sent: {
        "ip":   ["10.160.142.124"],
        "op":   "24201",
        "cell_id":      16969475,
        "ue_mode":      2,
        "lte_mode":     1,
        "nbiot_mode":   0,
        "gps_mode":     0,
        "iccid":        "8931089318104284409F",
        "interval":     37
}
Waiting for response...
No response from server
Finished measuring for UDP.
Timeout rule set at 37 seconds
boundlesscalm commented 4 years ago

It's working as expected, though I seem to have misunderstood the definition of timeout rule. Fixed and changed printout to "Keep-alive time" for clarity. dde5fed