UDP vs. TCP performance over UML
Dear All,
We are doing some UML performance testing and we are getting some non-sensible UDP statistics.
We have deployed the following network of two nodes:
A--------B
Node A is connected to node B via a wired link (100 Mbps) and node A is running one UML instance.
We used the Iperf traffic generator to execute performance measurements for both TCP and UDP.
Measurements:
When we use TCP the throughput is 100 Mbps from the UML instance of node A
to the host kernel of node B and 100 Mbps from the host kernel of node A to the host kernel of node B. However, when we use UDP the throughput is only 26 Mbps from the UML instance on node A to the host kernel of node B, but 100 Mbps from the host kernel of node A to the host kernel of node B. We also notice that a large number of packets were dropped in the case of UDP over UML.
What is the reason that UDP throughput is so much lower than TCP?
Why are packets being dropped given that Iperf is blocking?
We appreciate any guidance on this matter.
Regards,
George Hadjichristofi
WINLAB, Rutgers University
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 7 lines · George Hadjichristofi
When we use TCP the throughput is 100 Mbps from the UML instance of node A
to the host kernel of node B and 100 Mbps from the host kernel of node A to the host kernel of node B. However, when we use UDP the throughput is only 26 Mbps from the UML instance on node A to the host kernel of node B, but 100 Mbps from the host kernel of node A to the host kernel of node B. We also notice that a large number of packets were dropped in the case of UDP over UML.
At what interface are the packets being dropped?
Jeff
Signature · 11 lines
Work email - jdike at linux dot intel dot com ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Hi Jeff,
We took some more measurements. This is what we have:
A to B with UML: 46Mbps with UDP, 147Mbps with TCP A to B from Host kernel: 285 Mbps for both UDP and TCP
In the case of A to B (with UML on A) there are packets dropped. Based on Ifconfig on the host kernel the packets seem to drop between tap0 and eth0 on the host kernel. (i.e., the number of packets on tap0 is higher than eth0).
Hope that was clear enough.
Thank you,
George
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jeff Dike
Sent: Tuesday, June 12, 2007 11:04 AM
To: George Hadjichristofi
Cc: 'shruti singhal'; [email protected]
Subject: Re: [uml-devel] UDP vs. TCP performance over UML
Quoted 1 line · George Hadjichristofi
When we use TCP the throughput is 100 Mbps from the UML instance of node
A
Quoted 1 line
to the host kernel of node B and 100 Mbps from the host kernel of node A
to
Quoted 1 line
the host kernel of node B. However, when we use UDP the throughput is
only
Quoted 4 lines
26 Mbps from the UML instance on node A to the host kernel of node B, but 100 Mbps from the host kernel of node A to the host kernel of node B. We also notice that a large number of packets were dropped in the case of UDP over UML.
At what interface are the packets being dropped?
Jeff
Signature · 22 lines
Work email - jdike at linux dot intel dot com ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 4 lines · George Hadjichristofi
In the case of A to B (with UML on A) there are packets dropped. Based on Ifconfig on the host kernel the packets seem to drop between tap0 and eth0 on the host kernel. (i.e., the number of packets on tap0 is higher than eth0).
ifconfig tells you directly how many packets are dropped. What does the "dropped:" field say?
Jeff
Signature · 11 lines
Work email - jdike at linux dot intel dot com ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel