Tcp and udp packets sent and received out of order how to make them in order

hello here are my sample:

    197.37.43.119.3074 > 23.109.91.212.37370: [udp sum ok] UDP, length 165
18:32:25.714238 IP (tos 0x0, ttl 63, id 38575, offset 0, flags [none], proto UDP (17), length 198)
    197.37.43.119.3074 > 23.109.91.212.37370: [udp sum ok] UDP, length 170
18:32:25.747722 IP (tos 0x0, ttl 63, id 780, offset 0, flags [none], proto UDP (17), length 198)
    197.37.43.119.3074 > 23.109.91.212.37370: [udp sum ok] UDP, length 170
18:32:25.781066 IP (tos 0x0, ttl 63, id 33581, offset 0, flags [none], proto UDP (17), length 199)
    197.37.43.119.3074 > 23.109.91.212.37370: [udp sum ok] UDP, length 171
18:32:25.814380 IP (tos 0x0, ttl 63, id 10118, offset 0, flags [none], proto UDP (17), length 202)
    197.37.43.119.3074 > 23.109.91.212.37370: [udp sum ok] UDP, length 174
18:32:25.847659 IP (tos 0x0, ttl 63, id 53366, offset 0, flags [none], proto UDP (17), length 203)
    197.37.43.119.3074 > 23.109.91.212.37370: [udp sum ok] UDP, length 175
18:32:25.881113 IP (tos 0x0, ttl 63, id 6851, offset 0, flags [none], proto UDP (17), length 199)
    197.37.43.119.3074 > 23.109.91.212.37370: [udp sum ok] UDP, length 171
18:32:25.914329 IP (tos 0x0, ttl 63, id 49085, offset 0, flags [none], proto UDP (17), length 199)
    197.37.43.119.3074 > 23.109.91.212.37370: [udp sum ok] UDP, length 171
18:32:25.947462 IP (tos 0x0, ttl 63, id 13953, offset 0, flags [none], proto UDP (17), length 197)
    197.37.43.119.3074 > 23.109.91.212.37370: [udp sum ok] UDP, length 169
18:32:25.980976 IP (tos 0x0, ttl 63, id 1635, offset 0, flags [none], proto UDP (17), length 192)
    197.37.43.119.3074 > 23.109.91.212.37370: [udp sum ok] UDP, length 164
18:32:26.014347 IP (tos 0x0, ttl 63, id 38063, offset 0, flags [none], proto UDP (17), length 193)
    197.37.43.119.3074 > 23.109.91.212.37370: [udp sum ok] UDP, length 165
18:32:26.047737 IP (tos 0x0, ttl 63, id 54541, offset 0, flags [none], proto UDP (17), length 197)
    197.37.43.119.3074 > 23.109.91.212.37370: [udp sum ok] UDP, length 169
18:32:26.081108 IP (tos 0x0, ttl 63, id 46112, offset 0, flags [none], proto UDP (17), length 200)
    197.37.43.119.3074 > 23.109.91.212.37370: [udp sum ok] UDP, length 172
18:32:26.114313 IP (tos 0x0, ttl 63, id 35181, offset 0, flags [none], proto UDP (17), length 201)
    197.37.43.119.3074 > 23.109.91.212.37370: [udp sum ok] UDP, length 173

There is no guaranteed order with UDP packets. (TCP is different, it has guaranteed order and delivery.) And the UDP header doesn't contain any information about the order, it contains source and destination ports, length and checksum.

2 Likes

What is the actual problem?

How have you collected the logs?

1 Like

packets id aren't in order and i collect the low tcpdump port 3074 and src 197.37 -nvvl

Ok but what is the real problem? What application doesn’t work because of this?

1 Like

you mean the "id" field values are not in order? that's normal because they are part of IP called identification header and they are supposed to be unique values, not necessarily strictly in sequence. see https://datatracker.ietf.org/doc/html/rfc6864

1 Like