

Since this is the syntax that is most commonly used in packet analysis, it’s important to understand how it works.

Within Wireshark, a syntax called Berkley Packet Filter (BPF) syntax is used for creating different capture filters. How do they work? By setting a specific filter, you immediately remove the traffic that does not meet the given criteria. These filters are used before the process of packet capturing. Knowing how to use different filters is extremely important for capturing the intended packets.

If you want to learn about the most common ones, check out the following list: Port numberĭynamic Host Configuration Protocol – DHCP Different ports are used for different protocols. And public ports are ports from 49152-65535, they can be used by any service. Then, from 1024 to 49151 are registered ports – they are assigned by ICANN to a specific service. They can be divided into three different categories: ports from 0 – 1023 are well-known ports, and they are assigned to common services and protocols.
