cezanne / usbip-win

USB/IP for Windows
GNU General Public License v3.0
1.98k stars 350 forks source link

In ude mode, Bulk transfer seem to be slower than Interrupt transfer? #208

Closed windowsair closed 3 years ago

windowsair commented 3 years ago

Thank you for your excellent work in ude mode!

The following are the average time results of transmission under winusb (Bulk) and HID (interrupt).

Take the result of the first transmission here, and transmit the same 2 bytes of data.(In fact, the length of HID transmission is longer, but it takes less time)

  1. Bulk

image

  1. Interrupt

image

I am not sure what caused the performance loss of bulk transmission. Do you have any ideas, thanks!:heart:

cezanne commented 3 years ago

@windowsair : There's no big difference at vhci code level. Did bulk and interrupt use the same device? If not, HW factor might be important. If so, we can suspect driver stacks for each case.

windowsair commented 3 years ago

Hi, @cezanne

Yes, I use the same hardware for transmission. I'm not sure what caused it

cezanne commented 3 years ago

@windowsair : bulk case seems to work with more driver stacks including a winusb layer. That would be the reason why bulk is slower.

windowsair commented 3 years ago

@cezanne Umm, this is probably an important reason.

Is this related to HID? It seems that under HID, the host is more actively requesting data from the device endpoint