February 19, 2018 · 3 minutes read

Few details about both methods to capture traffic and the impact on network equipment.

Before tackling DDoS protection first thing to consider is – How we will collect data?

Will it be NetFlow / IPFIX or direct traffic mirror. This should be taken into account, as each choice gives You some limitations and advantages over the other one.

If your device has no more free ports or the NetFlow doesn’t run as expected, you might consider an alternative approach – passive or active optical tap. Here are some examples of devices:

ActiveTAPs

PassiveTAPs

Below is as simple breakdown for and against each choice:

Mirrored Traffic

+ Pros– Cons
100% visibility, no delayTraffics is copied RX+TX ( 5Gbs + 5Gbs TX)
100% passive flowSome restrictions apply with many ports/vlans etc
Less strain on switch/routerAdditional ports and cabling required

NetFlow / IPFIX /sFLOW /jFLOW

+ Pros– Cons
Only available option for big telcos, as there is too much bandwidth on linksSampling rate n-th (Visibility)
Easy to setup on devices which operate at layer 3Resource-hungry
No cabling requiredDuring attack there are small errors in detection *
More options to configure: flow timeout, active/inactive flow time etc.

*Explanation for error detection during attacks

According to Cisco Live BRKSPG-3335 presentation by Nicolas Fevrier, Rajendra Chayapathi and Syed Hassan „DDoS Mitigation Deployment – Impact on your Architecture”

The Variation of Sampling rate have little impact on ability to detect the attack, althou there are some small errors in detection.

Generic Flood Attack (84B packets, distributed attack of 100Mbps per router interface)

SamplingError
1:10002,1%
1:20002,9%
1:40002,9%
1:100006,5%

Summary:

Generally speaking traffic port mirroring is much better both for Your Wanguard analysis and network devices. If you can spare some ports, then You can defend against very short and pulse attacks (less than 30 seconds).

With recent development of Wanguard 7.0 there are many options for packet capture engines:

Capture EngineSpeedsCostComplexity
Embeded LibPcap1-4 Gbs0none
System LibPcap1-4 Gbs0none
Myricom Sniffer 10G10 Gbs270 USD per card
PF_RING10/40 Gbs150 EUR per macAdditional kernel driver / medium
Netmap10/40 Gbs0Additional kernel driver / high
DPDK (experimental)10/40 Gbs0Additional kernel driver / high

If You have a bigger network and You can’t afford to mirror every WAN port – then you have 2 choices NetFlow or sampled traffic.

Using this method router will sample 1/10 packets and send it to Wanguard, this way from 30 Gbs we can cut our traffic to 3Gbs.

Since every network is different the approach must be individual. Your main focus here is the types of attack and network bandwidth to be considered.

If You have trouble deciding , please contact us to pick the best method for You.

Additional information:

Below are some link for Cisco / Juniper switches and additional information to take under considerations before deploying Your Wanguard

Cisco SPAN/RSPAN/ERSPAN

Cisco NEXUS 3000 SPAN Configuration and limitations (NXOS 7.x)

Cisco NEXUS 5600 SPAN Configuration (NXOS 7.x)

Juniper EX Switches Port Mirroring Limitations