Cloned devices

Both boxes got the same 60 emulated devices, one box at a time behind one hub. Medius had imperfect clones off, as it ships. A faithful clone gives the PC the native replies and the native report rate.

Native data reaching the PC
DeviceStockMediusResult
Three mice with a 1 ms interval8-bit and 16-bit axes, and a mouse and keyboard in oneAll data arrivesAll data arrivesEqual
Boot keyboardAll data arrivesAll data arrivesEqual
Mouse with a second, streaming HID interfaceAll data arrivesAll data arrivesEqual
Three unusual HID interfacesAlternate settings, a 64-byte endpoint, the HID descriptor after the endpointAll data arrivesAll data arrivesEqual
Two unusual interface layoutsA gap in the interface numbers, numbering from 1All data arrivesAll data arrivesEqual
Four devices delaying or refusing their report descriptor450 or 700 ms late, or a STALLAll data arrivesAll data arrivesEqual
Two mice, with and without a device qualifierAll data arrivesAll data arrivesEqual
Five mice with an 8 or 10 ms intervalIncluding a two-mouse device and two mice with two configurationsAn interface sends nothingAll data arrivesMedius
Mouse with a 1,500-byte report descriptorAn interface sends nothingAll data arrivesMedius
Keyboard with five HID interfaces, an IN on eachAn interface sends nothingNot clonedMediusStock defect
Mouse with a vendor interface, six INsAn interface sends nothingNot clonedMediusStock defect
Mouse claiming a 3,000-byte report descriptorIt sends 50 bytes, which the PC pads to 3,000 with zerosAll data arrivesAll data arrivesEqual
Mouse with an unused second configurationAll data arrivesAll data arrivesEqual
Mouse with a vendor interface of nine settingsAll data arrivesAll data arrivesEqual
Mouse with an 8-byte endpoint 0All data arrivesAll data arrivesEqual
Mouse with a 16-byte endpoint 0All data arrivesAll data arrivesEqual
Mouse with a 32-byte endpoint 0All data arrivesAll data arrivesEqual
Mouse with name and serial stringsAll data arrivesAll data arrivesEqual
HID interface numbered 200 beside a vendor one numbered 60All data arrivesAll data arrivesEqual
Gaming mouseAll data arrivesAll data arrivesEqual
KeyboardAll data arrivesAll data arrivesEqual
High-speed mouseAll data arrivesAll data arrivesEqual
Mouse that stalls its endpoint after 200 reportsAll data arrivesAll data arrivesEqual
Clone faithfulness
DeviceStockMediusResult
Three mice with a 1 ms interval8-bit and 16-bit axes, and a mouse and keyboard in oneFaithfulFaithfulEqual
Boot keyboardFaithfulFaithfulEqual
Mouse with a second, streaming HID interfaceImperfectFaithfulMedius
Five mice with a streaming vendor interfaceFaithfulFaithfulEqual
Six unusual HID interfacesAlternate settings, a 64-byte endpoint, two INs, OUT only, the HID descriptor after the endpoint, a physical descriptor firstFaithfulFaithfulEqual
Four unusual interface layoutsAn alternate setting, a gap in the interface numbers, numbering from 1, ten interfacesImperfectFaithfulMedius
Four devices delaying or refusing their report descriptor450 or 700 ms late, or a STALLImperfectFaithfulMedius
XInput pad and a USB serial deviceFaithfulFaithfulEqual
Two mice, with and without a device qualifierFaithfulFaithfulEqual
Five mice with an 8 or 10 ms intervalIncluding a two-mouse device and two mice with two configurationsImperfectFaithfulMediusStock defect
Two mice with a 2 or 4 ms intervalImperfectFaithfulMediusStock defect
Device with a second control endpointImperfectFaithfulMediusStock defect
Mouse with a 1,500-byte report descriptorImperfectFaithfulMediusStock defect
Mouse claiming a 3,000-byte report descriptorIt sends 50 bytes, which the PC pads to 3,000 with zerosFaithfulFaithfulEqual
Mouse with an unused second configurationImperfectFaithfulMediusStock defect
Mouse with an 8-byte endpoint 0FaithfulFaithfulEqual
Mouse with a 16-byte endpoint 0FaithfulFaithfulEqual
Mouse with a 32-byte endpoint 0FaithfulFaithfulEqual
Mouse with name and serial stringsFaithfulFaithfulEqual
Mouse with a vendor interface of nine settingsFaithfulFaithfulEqual
Vendor interface numbered 12FaithfulFaithfulEqual
HID interface numbered 200 beside a vendor one numbered 60FaithfulFaithfulEqual
Gaming mouse, keyboard and silent mouseImperfectFaithfulMedius
Mouse that stalls its endpoint after 200 reportsImperfectFaithfulMediusStock defect
High-speed mouseBoth boxes' chips run at full speed onlyImperfectImperfectEqualStock defect
Time from device appearing to clone configured, min to max
DevicesStockMediusResult
46 devices both boxes cloneMedius times native replies before the clone appears. The clone's replies then have native timing from the first. A device plugged back in skips this (see Replug to clone back)0.69-6.82 s0.80-2.14 sStock

Poll interval

How often the PC polls each clone, against the native interval.

Interval the PC polls at
DeviceStockMediusResult
Four mice with a 10 ms intervalIncluding a two-mouse device and two mice with two configurations1 msNative intervalMediusStock defect
Mouse with an 8 ms interval1 msNative intervalMediusStock defect
Mouse with a 4 ms interval1 msNative intervalMediusStock defect
Mouse with a 2 ms interval1 msNative intervalMediusStock defect
Mouse with a 10 ms interval and a 1,500-byte report descriptorNative intervalNative intervalEqual
Vendor-page HID interface with a 4 ms intervalNative intervalNative intervalEqual
XInput pad with 2-64 ms intervalsNative intervalNative intervalEqual
Reports/s reaching the PC
DeviceStockMediusResult
Mouse reporting every 1 ms with a 10 ms intervalNative 125/s (the PC polls a 10 ms interval every 8 ms)Above native rateNative rateMediusStock defect
Mouse reporting every 8 ms with an 8 ms intervalNative rateNative rateEqual
Interval the clone declares
DeviceStockMediusResult
High-speed mouse declaring bInterval 4 (1 ms at high speed)Both clones run at full speed, where the PC reads bInterval 4 as 4 ms1 msNative bInterval 4Differs

Medius with imperfect clones on

The devices Medius refuses as it ships, given to it again with imperfect clones on. Stock has no such setting: its column is stock as it ships.

Native data reaching the PC
DeviceStockMediusResult
Keyboard with five HID interfaces, an IN on eachAn interface sends nothingAll data arrivesMediusStock defect
Clone faithfulness
DeviceStockMediusResult
Vendor interface with an isochronous endpointFaithfulFaithfulEqual
Three devices with a bulk endpointAt 1,000 packets/sFaithfulFaithfulEqual
Mouse with a vendor interface, five INsFaithfulFaithfulEqual
Mouse with a vendor interface, six INsImperfectFaithfulMediusStock defect
Keyboard with five HID interfaces, an IN on eachImperfectFaithfulMediusStock defect
Mouse with five INs in an unused second configurationFaithfulFaithfulEqual
Vendor IN numbered 0x87ImperfectNot clonedStockStock defect
Two devices declaring 65- or 1,024-byte interrupt packetsImperfectNot clonedStockStock defect
Mouse with a 2,083-byte configuration descriptorNot clonedNot clonedEqual
Bulk packets relayed, back to back
EndpointStockMediusResult
Vendor bulk IN numbered 0x85Native 13,093.0-13,983.2/s3,996.2/s8,324.2-8,405.6/sMediusStock defect
HID interface with a bulk INNative 13,137.4-13,985.5/s3,693.4-3,801.4/s8,342.4-8,404.9/sMediusStock defect
Vendor bulk pair, IN aloneNative 13,103.4-13,964.4/s3,875.4-3,948.8/s8,321.9-8,352.0/sMediusStock defect
Vendor bulk pair, OUT aloneNative 11,039.5-13,193.9/s3,997.4-3,998.1/s8,014.4-8,206.8/sMediusStock defect
Vendor bulk pair, IN with OUT at onceNative 7,055.5-9,357.2/s3,389.4-3,416.8/s6,196.2-6,340.8/sMediusStock defect
Vendor bulk pair, OUT with IN at onceNative 7,072.9-8,734.0/s3,287.6-3,316.0/s3,660.9-3,706.4/sMediusStock defect

Data through every endpoint

Each device streams a counter on every IN endpoint in turn, at its declared rate (bulk at 1,000 packets/s). The PC reads each endpoint through usbfs with eight transfers queued. A cloned endpoint delivering <95% of the native rate counts as sending nothing. Medius had imperfect clones off, as it ships, unless the table says otherwise.

Endpoints delivering
DeviceStockMediusResult
Vendor interrupt INEvery endpoint at the native rateEvery endpoint at the native rateEqual
Vendor IN numbered 0x84Every endpoint at the native rateEvery endpoint at the native rateEqual
Vendor IN numbered 0x85Every endpoint at the native rateEvery endpoint at the native rateEqual
Vendor IN numbered 0x86Every endpoint at the native rateEvery endpoint at the native rateEqual
Vendor IN numbered 0x87An endpoint sends nothingNot clonedMedius
Vendor IN in an alternate settingEvery endpoint at the native rateEvery endpoint at the native rateEqual
CDC notification endpointEvery endpoint at the native rateEvery endpoint at the native rateEqual
HID interface with two INsEvery endpoint at the native rateEvery endpoint at the native rateEqual
Vendor bulk IN numbered 0x85Medius refuses bulk unless imperfect clones are on. It relays bulk below the native rate (see Bulk packets relayed)Every endpoint at the native rateNot clonedStock
HID interface with a bulk INMedius refuses bulk unless imperfect clones are on. It relays bulk below the native rate (see Bulk packets relayed)Every endpoint at the native rateNot clonedStock
Vendor bulk pairMedius refuses bulk unless imperfect clones are on. It relays bulk below the native rate (see Bulk packets relayed)Every endpoint at the native rateNot clonedStock
HID IN declaring 65 bytesAn endpoint sends nothingNot clonedMedius
Two high-numbered INs beside a mouseEvery endpoint at the native rateEvery endpoint at the native rateEqual
Mouse with a vendor interface, five INsAn endpoint sends nothingNot clonedMedius
Mouse with a vendor interface, six INsAn endpoint sends nothingNot clonedMedius
Ten interfacesEvery endpoint at the native rateEvery endpoint at the native rateEqual
Vendor interface numbered 12Every endpoint at the native rateEvery endpoint at the native rateEqual
XInput pad, four INsEvery endpoint at the native rateEvery endpoint at the native rateEqual
Keyboard with five HID interfaces, an IN on eachAn endpoint sends nothingNot clonedMedius
Endpoints delivering, Medius with imperfect clones on
DeviceStockMediusResult
Vendor interrupt INEvery endpoint at the native rateEvery endpoint at the native rateEqual
Vendor IN numbered 0x84Every endpoint at the native rateEvery endpoint at the native rateEqual
Vendor IN numbered 0x85Every endpoint at the native rateEvery endpoint at the native rateEqual
Vendor IN numbered 0x86Every endpoint at the native rateEvery endpoint at the native rateEqual
Vendor IN numbered 0x87An endpoint sends nothingNot clonedMedius
Vendor IN in an alternate settingEvery endpoint at the native rateEvery endpoint at the native rateEqual
CDC notification endpointEvery endpoint at the native rateEvery endpoint at the native rateEqual
HID interface with two INsEvery endpoint at the native rateEvery endpoint at the native rateEqual
Vendor bulk IN numbered 0x85Every endpoint at the native rateEvery endpoint at the native rateEqual
HID interface with a bulk INEvery endpoint at the native rateEvery endpoint at the native rateEqual
Vendor bulk pairEvery endpoint at the native rateEvery endpoint at the native rateEqual
HID IN declaring 65 bytesAn endpoint sends nothingNot clonedMedius
Two high-numbered INs beside a mouseEvery endpoint at the native rateEvery endpoint at the native rateEqual
Mouse with a vendor interface, five INsAn endpoint sends nothingEvery endpoint at the native rateMedius
Mouse with a vendor interface, six INsAn endpoint sends nothingEvery endpoint at the native rateMedius
Ten interfacesEvery endpoint at the native rateEvery endpoint at the native rateEqual
Vendor interface numbered 12Every endpoint at the native rateEvery endpoint at the native rateEqual
XInput pad, four INsEvery endpoint at the native rateEvery endpoint at the native rateEqual
Keyboard with five HID interfaces, an IN on eachAn endpoint sends nothingEvery endpoint at the native rateMedius

Large report descriptors

A mouse with its report descriptor padded to 256-2,047 bytes.

HID driver on the PC
Report descriptorStockMediusResult
256 or 512 bytesLoadsLoadsEqual
513-700 bytesDoesn't loadLoadsMediusStock defect
768-2,047 bytesDoesn't loadLoadsMediusStock defect

Endpoint 0 replies

The PC sent standard, class and vendor requests to each clone and to the native reference, timed on the PC's USB bus.

Reply the PC gets
RequestStockMediusResult
Device descriptorNative replyNative replyEqual
Configuration descriptorNative replyNative replyEqual
String descriptorsNative replyNative replyEqual
Descriptors the real device doesn't haveNative replyNative replyEqual
HID report descriptorNative replyNative replyEqual
HID class descriptorNative replyNative replyEqual
GET_STATUS, GET_CONFIGURATION and GET_INTERFACENative replyNative replyEqual
Feature report 3Native replyNative replyEqual
Vendor requestsNative replyNative replyEqual
Reply time over native
RequestStockMediusResult
Device descriptor524-527 µs-2 to 0 µsMedius
Configuration descriptorAll 34 bytes693.5-698.0 µs0-1 µsMedius
Product string528-546 µs0-1 µsMedius
HID report descriptor676-691 µs43-46 µsMedius
String the real device doesn't have435-440 µs129-133 µsMedius
GET_STATUS566-568 µs0-1 µsMedius
Feature report 3522-566 µs133-136 µsMedius
Vendor request 0x42520-532 µs133-134 µsMedius

Standard requests across device stacks

A mouse with a vendor-page HID interface and a vendor interface, answering standard requests as 22 device stacks do. Each clone and the native reference get the same 316 reads. A request counts as given the native reply when its outcome, the PC's error and every byte match native. A timeout counts only where the native request times out too.

Requests given the native reply
Device stackStockMediusResult
Stack acting on every request as written948/948948/948Equal
Stack refusing a request with the wrong direction bit948/948948/948Equal
Stack reading two recipient bits948/948948/948Equal
Stack ignoring the recipient and refusing the HID descriptor948/948948/948Equal
Stack serving the HID descriptor from a separate copy948/948948/948Equal
Stack ignoring the recipient and refusing the wrong direction948/948948/948Equal
Stack refusing GET_STATUS at another length948/948948/948Equal
Stack refusing GET_CONFIGURATION at another length948/948948/948Equal
Stack refusing GET_STATUS and GET_CONFIGURATION at a shorter length948/948948/948Equal
Stack answering GET_DESCRIPTOR addressed to an endpoint948/948948/948Equal
Stack taking remote wakeup at any wIndex948/948948/948Equal
Stack refusing remote wakeup948/948948/948Equal
Stack leaving device-to-host requests with no data stage unanswered948/948948/948Equal
Stack refusing the wrong direction, leaving device-to-host requests with no data stage unanswered948/948948/948Equal
Stack refusing GET_STATUS and GET_INTERFACE at an interface948/948948/948Equal
LUFA927/948948/948MediusStock defect
STM32's USB library924/948948/948MediusStock defect
V-USB936/948948/948MediusStock defect
CherryUSB948/948948/948Equal
Stack reading two recipient bits and checking interface and endpoint numbers948/948948/948Equal
Stack padding replies out to wLength948/948948/948Equal
Stack answering long reads from its buffer and SET_DESCRIPTOR only after a read948/948948/948Equal

Relayed requests

The PC sent the same raw transfers to each clone and to the native reference, on endpoint 0 and on a second control endpoint. A request counts as given the native reply when its outcome and every byte match native (data before a STALL included). Its reply must also come ≤1.5 ms before or ≤3 ms after the native reply.

Endpoint 0 requests given the native reply
RequestStockMediusResult
Reads of 0-4,096 bytes21/3333/33MediusStock defect
Reads answered past wLength or in the status stage6/1515/15MediusStock defect
Reads the real device refuses, at once or partway6/1212/12MediusStock defect
Reads answered 5 ms a packet6/66/6Equal
Reads answered 100-1,900 ms late15/1515/15Equal
Read the real device never answers3/33/3Equal
Read beside an unanswered request on the other endpoint0/33/3MediusStock defect
Read right after an abandoned one3/33/3Equal
Writes of 0-1,024 bytes, some answered in the status stage12/2121/21MediusStock defect
Writes the real device refuses, at once or partway6/96/9EqualMedius defect
Writes taken 5 ms a packet6/66/6Equal
Writes answered 100-1,900 ms late9/99/9Equal
Writes the real device never answers6/66/6Equal
Second control endpoint requests given the native reply
RequestStockMediusResult
Reads of 0-4,096 bytes0/3333/33MediusStock defect
Reads answered past wLength or in the status stage0/1515/15MediusStock defect
Reads the real device refuses, at once or partway0/1212/12MediusStock defect
Reads answered 5 ms a packet0/66/6MediusStock defect
Reads answered 100-1,900 ms late0/1515/15MediusStock defect
Read the real device never answers0/33/3MediusStock defect
Read beside an unanswered request on the other endpoint0/33/3MediusStock defect
Read right after an abandoned one0/33/3MediusStock defect
Reads answered 1 s late while another interface switches its setting0/66/6MediusStock defect
Writes of 0-1,024 bytes, some answered in the status stage0/2121/21MediusStock defect
Writes the real device refuses, at once or partway0/96/9MediusStock defectMedius defect
Writes taken 5 ms a packet0/66/6MediusStock defect
Writes answered 100-1,900 ms late0/99/9MediusStock defect
Writes the real device never answers0/66/6MediusStock defect