《Analyze USB Traffic with Wireshark.pdf》由会员分享,可在线阅读,更多相关《Analyze USB Traffic with Wireshark.pdf(20页珍藏版)》请在三个皮匠报告上搜索。
1、#EMBEDDEDOSSUMMITAnalyze USB Traffic with WiresharkTomasz Mo,Nordic Semiconductor Poland Sp.z o.o.tomasz.monnordicsemi.no Introduction Terminology,speeds,connectors overview Why USB 2.0 is still relevant?USB transfer types and device classes USB traffic capture USB“Packets”Software vs hardware sniff
2、ers Example traffic:USB Mass Storage Summary Questions&AnswersTable of contentsUSBAnalogous toHostRequester,DHCP serverDeviceResponderPortPhysical port connectorHubSwitch,HubAddressLocal IP addressEndpointBuffer,TCP/UDP PortClassCommunication ProtocolDescriptorDatasheetVIDVendor codePIDProduct codeB
3、asic USB terminologyImage from Wikipedia licensed under CC BY-SA 3.0.Because there is merely a single differential pair in USB 2.0,only Half-Duplex communication is possiblePinMini/Micro PinName11VBUS22D33D+N/A4ID45GND56SSTx-67SSTx+78GND89SSRx-910SSRx+USB 3.0 is dual-simplexUSB connectors USB 2.0 fe
4、atures three transmission speeds:Low speed(1.5 Mbps)Full speed(12 Mbps)High speed(480 Mbps)(Hi-Speed USB)USB 3.x is a bit more complex:SuperSpeed 3.2 Gen 1x1(5 Gbps)(formerly USB 3.0)(USB 5Gbps)SuperSpeed+3.2 Gen 2x1(10 Gbps;1 lane)(formerly USB 3.1)(USB 10Gbps)SuperSpeed+3.2 Gen 1x2(10 Gbps;2 lanes
5、)(USB-C required)SuperSpeed+3.2 Gen 2x2(20 Gbps;2 lanes)(USB-C required)USB 4 requires USB-C and is essentially tunnelling protocol:USB4 Gen 2x1(10Gbps;1 lane;different from USB 3.2 Gen 2x2)USB4 Gen 2x2(USB 20Gbps)USB4 Gen 3x1 USB4 Gen 3x2(USB 40Gbps)USB4 Gen 4(Symmetric=USB 80Gbps;Asymmetric)USB sp
6、eedsImage from Wikipedia licensed under CC BY-SA 4.0.USB Type C connector USB 3.x and USB 4.0 are not replacing USB 2.0Backwards compatibility is achieved by dual busThe upper layers are pretty much the same Every USB 3.x hub contains both USB 2.0 and USB 3.x hub inside USB 3.x and USB-C connectors