PCAP Doesn't Lie Part 2
Network security monitoring (NSM) is sending a copy of network traffic consisting of packets to a monitoring device, processing those packets with monitoring software, and then writing the data to storage. There are 2 enemies of network security monitoring (NSM): packet loss and encryption.
While eliminating all packet loss may be impossible as an NSM engineer, you must understand packet loss and where it occurs to minimize it. There are 4 possible locations for packet loss: in-transit, on the interface, during processing, and while writing to disk.
This post will discuss the first of these four possible locations: in-transit. In-transit packet loss occurs when data packets are dropped during transmission to your NSM device.
There are 2 ways send packets to your NSM device. A SPAN (Switched Port Analyzer), also called port mirroring, is a switch feature that copies network traffic. The issue with SPAN ports is that they are typically low-priority on the switch, and if the switch is running low on resources, it has to decide whether to send packets to your NSM device or to the intended destination. Most of the time, it's your packets that are dropped. Another issue with SPAN is that it is a device configuration, and if it is not configured correctly, your NSM device may not receive packets from network segments.
The other method to send packets to your NSM device is via a network tap. A network tap is a device that is inline between 2 physical devices, such as a core and an edge/access switch. It splits the connections, sending one set of packets to your NSM devices and the other to the intended destination. Since this is a split of the connections, the packets sent to both locations will be identical.
Splitting the network connection will reduce signal strength, and if it drops enough, you will lose packets or the connection will go down. Needless to say, your bosses will not be happy with you. To prevent this, you will need to understand the connection you are trying to tap or split, and this starts with knowing the type of media you will be tapping/splitting. Will focus on the 2 most common media: fiber and copper.
Once we know what media type we are tapping, we need to consider a passive versus an active network tap. A passive tap will only be used for fiber devices, and splits the signal without requiring power, allowing the full network link to continue uninterrupted. Passive taps are very reliable and introduce minimal latency, but they typically cannot regenerate weak signals. An active tap can be used for fiber or copper; however, it requires power and often regenerates, amplifies, or converts the signal before sending it to monitoring tools. Active taps can support longer distances and signal conditioning, but may introduce a small amount of latency and become a single point of failure if power is lost. Most active taps have safeguards in place in case of power failure, with redundant power supplies and fail-open features, allowing packets to still flow to the intended destination. In short, passive taps are simple and fail-safe, while active taps offer signal boosting and additional features; however, the connection may be lost in a power failure.
Fiber Tap Selection
When possible, passive taps are preferred for fiber because they require no power, eliminating the concern of a power failure. When selecting a passive fiber tap, the connection speed being tapped is the primary consideration. This can range from 1 GB per second up to 800 GB per second. Choosing the wrong speed will, at best, reduce the network's speed and, at worst, break the network.
The next thing to consider when choosing a fiber tap is the fiber mode you are tapping. Single-mode and multi-mode fibers differ mainly in how light travels through the cable and how far data can be transmitted. Single-mode fiber uses a very small core and a single light path, allowing signals to travel long distances (tens to hundreds of kilometers) with minimal signal loss, making it ideal for long-haul links and telecom networks. Multi-mode fiber, with its larger core, allows multiple light paths, which can cause signal dispersion and limit distance to a few hundred meters. Below are the physical devices between the two modes' cables.
Core Size (The Primary Difference):
- Single-Mode: Very small core, typically
- 8−9μm8 minus 9 space mu m
- 8−9𝜇m
- Multi-mode: Much larger core, typically
- 50μm50 space mu m
- 50𝜇m or
- 62.5μm 62.5 space mu m
- 62.5𝜇m
Light Path:
- Single-Mode: Allows only one mode (ray) of light to propagate; light travels in a straight, direct path.
- Multi-mode: Allows multiple modes of light to travel simultaneously, leading to higher modal dispersion.
Jacket Color (TIA-598 Standard):
- Single-Mode: Typically yellow (OS1, OS2).
- Multi-mode: Typically orange (OM1, OM2) or aqua (OM3, OM4, OM5).
However, if you're still having trouble determining which fiber mode you have, you can measure the light signal. We measure fiber in nm, which stands for nanometer, a unit of length equal to one billionth of a meter (10⁻⁹ m). In fiber optics, it specifies the wavelength of the light used to transmit data through the fiber. Below is a diagram of the nm for each mode.
Next, you need to know the fiber connection type: LC, or MPO/MTP. The most common is LC (Lucent Connector), used at speeds from 1 GB to 100 GB per second, and less commonly at 400 GB per second. The less common MPO/MTP connectors (Multi-fiber Push-On or Mechanical Transfer Push-On) bundle multiple fibers into a single connector for high-density links, with speeds up to 800 GB per second.
LC Connector
MPO/MTP Connector
Finally, when selecting a fiber network tap, you must choose a split ratio. Remember, fiber uses light to transfer data, and the split ratio is the ratio of light sent to the intended destination to that sent to your NSM device. The first number in the ratio is what is being sent to the intended destination, and the second number is how much is being sent to your NSM device. Ideally, you want a 50/50 split of the light signal. However, if you are concerned about the network tap affecting the network, consider a 60/40 or even a 90/10 split.
How would you know what ratio to select? In fiber optics, dBm is a logarithmic unit used to measure optical power loss (attenuation) or gain. When light travels through a fiber, some power is lost due to absorption, scattering, connectors, splices, or taps. This loss is measured in dBm. Below is a chart of fiber types and their minimum acceptable dBm levels.
Now that we know the minimum acceptable dBm for each fiber type, we can consider which split ratio to select. For example, if you measure your multi-mode 10GBASE-SR fiber signal at -11 dBm and choose a 50/50 split ratio, the signal will be -14 dBm. We should consider a 60/40 split ratio or an active fibertap. If you choose an active fiber tap, all the above information still applies; you will need to remeasure the dBm once signal passes through the active tap to ensure the minimum dBm is met. Below is the dBm increase for each split ratio.
Copper Tap Selection
Just like fiber taps, we need to know the speed of our copper connection; however, unlike fiber, we will be limited to active taps only. The speed is determined by the slowest device connected to the cable. However, there is a limitation based on the Cat or categories of copper cable. Below is a chart of copper cable categories, along with the maximum supported speed and distance.
While there are multiple types of copper connectors, you will most likely only see RJ45 connectors.
RJ45 Connector
Duplex is the next consideration. There are half and full duplex. In half-duplex, data can flow in only one direction at a time. Meaning that the packet from device A must be sent before device B can send packets back. A full-duplex packet can be sent in both directions simultaneously. Most copper taps support both duplex and auto-negotiation, enabling duplex auto-detection.
Encryption TLS
TLS Handshake
Summary
Tapping is the preferred method for delivering packets to your NSM device, while SPAN/port monitoring should be used only if the organization is hesitant to deploy network taps. By following the guidance above, you can address any concerns they may have and design the most effective solution for their environment.
.








Comments
Post a Comment