Capturing PROFINET with Wireshark
Total Page:16
File Type:pdf, Size:1020Kb
Application Note Capturing PROFINET with Wireshark www.hilscher.com DOC190402AN01EN | Revision 1 | English | 2019-10 | Released | Public Introduction 2/55 Table of Contents 1 Introduction ............................................................................................................................................. 3 1.1 About this Document ...................................................................................................................... 3 1.2 List of Revisions ............................................................................................................................. 3 1.3 Terms, Abbreviations and Definitions ............................................................................................ 4 1.4 Legal Notes .................................................................................................................................... 5 1.4.1 Copyright ........................................................................................................................................... 5 1.4.2 Important Notes ................................................................................................................................. 5 1.4.3 Exclusion of Liability .......................................................................................................................... 6 1.4.4 Export Regulations ............................................................................................................................ 6 1.4.5 Registered Trademarks ..................................................................................................................... 6 2 Descriptions and Requirements ........................................................................................................... 7 2.1 Descriptions.................................................................................................................................... 7 2.2 Structure for network recording ...................................................................................................... 7 2.3 Network capturing .......................................................................................................................... 8 3 Wireshark ................................................................................................................................................ 9 3.1 Introduction ..................................................................................................................................... 9 3.2 History ............................................................................................................................................ 9 3.3 Technical Details .......................................................................................................................... 10 4 First Steps ............................................................................................................................................. 11 4.1 Installing the Wireshark software ................................................................................................. 11 4.1.1 Overview ......................................................................................................................................... 11 4.1.2 Requirements for installing Wireshark ............................................................................................. 11 4.1.3 Where to get Wireshark ................................................................................................................... 12 4.1.4 Step-by-Step instructions ................................................................................................................ 12 4.1.5 Update Wireshark ............................................................................................................................ 21 4.1.6 Update WinPcap ............................................................................................................................. 21 4.1.7 Update Npcap ................................................................................................................................. 21 4.1.8 Uninstall Wireshark.......................................................................................................................... 21 4.1.9 Uninstall WinPcap ........................................................................................................................... 21 4.1.10 Uninstall Npcap ............................................................................................................................... 21 4.1.11 Uninstall USBPcap .......................................................................................................................... 21 4.2 Start Wireshark............................................................................................................................. 22 4.3 Welcome Screen .......................................................................................................................... 22 4.3.1 Menu ............................................................................................................................................... 23 4.3.2 Toolbar ............................................................................................................................................ 23 4.3.3 Wireshark Filter ............................................................................................................................... 23 4.3.4 “Packet List” Pane ........................................................................................................................... 25 4.3.5 “Packet Details” Pane ...................................................................................................................... 26 4.3.6 “Packet Bytes” Pane ........................................................................................................................ 27 5 PROFINET ............................................................................................................................................. 28 5.1 Introduction to PROFINET ........................................................................................................... 28 5.1.1 Conformance Classes ..................................................................................................................... 28 5.1.2 RT and IRT in comparison ............................................................................................................... 28 5.2 Hardware structure for a PROFINET data analysis ..................................................................... 31 5.3 Capturing and analysing network traffic ....................................................................................... 33 5.4 Settings for recording with Wireshark .......................................................................................... 35 5.5 Recording network traffic ............................................................................................................. 39 5.6 How to decode cyclic PROFINET frames? .................................................................................. 40 5.6.1 Introduction ...................................................................................................................................... 40 5.6.2 PROFINET Process Data Telegram Structure ................................................................................ 40 5.6.3 Decoding Example .......................................................................................................................... 41 6 Appendix ............................................................................................................................................... 52 6.1 List of Figures ............................................................................................................................... 52 6.2 List of Tables ................................................................................................................................ 53 6.3 Bibliography.................................................................................................................................. 54 6.4 Contacts ....................................................................................................................................... 55 Capturing PROFINET with Wireshark DOC190402AN01EN | Revision 1 | English | 2019-10 | Released | Public © Hilscher, 2019 Introduction 3/55 1 Introduction 1.1 About this Document This manual contains installation and network recording instructions for the devices using the Wireshark program. This manual will explain the basics and also some of the features that Wireshark provides. As Wireshark has become a very complex program since the early days, only the basic feature of Wireshark can be explained in this manual. By reading this manual, you will learn how to install Wireshark, how to use the basic elements of the graphical user interface (such as the menu) and what’s behind some of the advanced features that are not always obvious at first sight. 1.2 List of Revisions Table 1: List of Revisions Rev Date Chapter Revision 1 22.10.2019 all created Capturing PROFINET with Wireshark DOC190402AN01EN | Revision 1 | English | 2019-10 | Released | Public © Hilscher, 2019 Introduction 4/55 1.3 Terms, Abbreviations and Definitions Table 2: Terms, Abbreviations and Definitions Term Description ASIC