Packet corruption while transferring data between two linux guests
Posted: 22. Aug 2016, 17:06
Hello,
I've a setup where I've two ubuntu 14.04 VMs , each having a NAT network adapter and another adapter connected to the internal network. This enables me to use the intenet on both the VMs while having them internally connected.
I'm developing a custom transport layer protocol which is based on UDP. When I run a client and a server application on the localhost, the data transfer between them happens without any issue.
However, when I run client and server programs on different VMs, I get a checksum error while exchanging messages. I inspected the received packets to find that the contents were not the same as the original packet. This happens only when I'm using the custom protocol, if I use UDP, message exchange happens fine.
I don't have another physical system to test if this behavior is caused by virtualbox or my protocol implementation. I'm inclined to believe however, that the issue may be with the internal network. Does the internal network in Virtualbox treat packets from different protocols differently? Any leads on this will help me greatly.
I've a setup where I've two ubuntu 14.04 VMs , each having a NAT network adapter and another adapter connected to the internal network. This enables me to use the intenet on both the VMs while having them internally connected.
I'm developing a custom transport layer protocol which is based on UDP. When I run a client and a server application on the localhost, the data transfer between them happens without any issue.
However, when I run client and server programs on different VMs, I get a checksum error while exchanging messages. I inspected the received packets to find that the contents were not the same as the original packet. This happens only when I'm using the custom protocol, if I use UDP, message exchange happens fine.
I don't have another physical system to test if this behavior is caused by virtualbox or my protocol implementation. I'm inclined to believe however, that the issue may be with the internal network. Does the internal network in Virtualbox treat packets from different protocols differently? Any leads on this will help me greatly.