Can ip packets be lost between two hosts on the same subnet, or does a router need to be involved? And, I have the same question about packet reordering.
I should clarify that this is a subnet on a wired network in a data center with two web services communicating over http.
Yes, packets can be lost in a wired network in a data center.
At my house some sources of packet loss include:
While all of those are possible at a professionally-run data center, they seem unlikely as causes of your packet loss. However, even data centers have problems:
If you are using TCP, then packet loss recovery almost certainly results in re-ordered packets.
You can see, the sender sent the packets 78, 79, 80, 78, and 81. To an outside observer, that might be perceived as out of order, since he sees the sequence 80, 78, 81.