Common Terminology
Electrical Equipment
- PLC
- Local automation, process controllers
- On-site control for production lines, pump stations, gate stations, etc.
- Data acquisition, communication
- Remote sensing stations for meteorology, hydrology, etc.
- May have directional or bound devices
Protocols
Hardware Protocols
- RS-485
- OSI physical layer differential signal twisted pair,
- Usually 2-wire half-duplex or 4-wire full-duplex
- No specified communication protocol
- The context is thatprotocols are mostlyModbus-RTU
- Communication protocol based on RS-485
- Master-slave architecture
- Analog signal standard
- 4mA represents 0% and 20mA represents 100%
Software and Hardware Communication Protocols
- TCP (OSI transport layer protocol)
- MQTT (publish, subscribe)
- OPC-UA (inquiry and publish, subscribe)
- Modbus-TCP (inquiry)
Network Related
What to Do When the Link is Down
When the link is down, specific reasons can be addressed bytop-down orbottom-up troubleshooting.
- Terminal Device
- Power supply
- Device configuration: IP, port, username, password
- 4G (is there an unpaid bill? Directional or bound devices?)
- Network testing tools like Ping, Telnet, etc.
- Mock Client testing
- Message specification?
Protocol Analysis
For standard protocols, different manufacturers have varying implementations. Using packet capture tools to analyze network protocols is particularly important. Protocol analysis consists of three parts: capturing packets typically usingtcpdump orWireshark, analyzing network protocols usually withWireshark, and reverse engineering network protocols typically usingImHex
- Capture network traffic.tcpdump is a powerful network traffic analysis tool that can also store filtered network traffic to a file.
- For multiple network cards, be sure to select the correct one
- Filter by port
- Save to file
<span>tcp contains "ascii"</span><span>tcp contains FF:FF:FF</span>
- Port filtering
- src ip filtering
- Content filtering
Conclusion
Gained a horizontal understanding of devices, terminology, and protocols. Also learned how to troubleshoot common network issues. Finally, a brief introduction to the tools used for packet analysis was provided.