Software Defined Network (SDN) is a new technology in computer network area which enables user to centralize control plane. The security issue is important in computer network to protect system from attackers. SYN flooding attack is one of Distributed Denial of Service attack methods which are popular to degrade availability of targeted service on Internet. There are many methods to protect system from attackers, i.e. firewall and IDS. Even though firewall is designed to protect network system, but it cannot mitigate DDoS attack well because it is not designed to do so. To improve performance of DDOS mitigation we utilize another mechanism by using SDN technology such as OpenFlow and sFlow. The methodology of sFlow to detect attacker is by capturing and sum cumulative traffic from each agent to send to sFlow collector to analyze. When sFlow collector detect some traffics as attacker, OpenFlow controller will modify the rule in OpenFlow table to mitigate attacks by blocking attack traffic. Hence, by combining sum cumulative traffic use sFlow and blocking traffic use OpenFlow we can detect and mitigate SYN flooding attack quickly and cheaply.
SYN flooding attack is one of the most popular Distributed Denial of Service attack methods to degrade availability of targeted service on Internet
. In normal connection, to communicate between host and server, they establish TCP connection with triple exchange of packets known as three-way handshake
: host sends SYN segment to server, and then server responds with SYN/ACK segment, and after that host responds with ACK segment (see
). SYN flood attack inundates a site with SYN segments containing forged (spoofed) IP source addresses with nonexistent or unreachable addresses. Server responds with SYN/ACK segments to these addresses and then waits for responding ACK segments. Because SYN/ACK segments are sent to nonexistent or unreachable IP addresses, they never elicit responses and eventually timed out (see
TCP three-way handshake .
TCP SYN flooding attack process .
Currently there are some methods to detect or mitigate SYN flooding attack such as SYN cache, SYN cookies, SYN proxying and SynDefender. All of these defense mechanisms are installed at fire-wall of victim server or inside victim server (see
). Since defense line located at victim, network resources are also wasted because it transmitted a large number of packets, or packet flooding. Another method is using Flooding Detection System (FDS). FDS is, in some sense, a by-product of router infrastructure that differentiates TCP control packets from data packets. FDS detects SYN flooding attacks at leaf routers that connect end hosts to Internet (see
). Because of FDS located at leaf router, than router will consumes much resource.
SYN flooding defense mechanism in traditional network .
Proposed model mechanism for SYN flooding defense using OpenFlow and sFlow.
Based on some cases in current method, this paper tries to overcome weakness by using Open Flow technology. By OpenFlow, attack packet can be detected early in some switches and resource consumption smaller than using traditional approaches.
shows that an attacker recruit many agents in Internet. agent of attacker will attack victim through each switch in our SDN network. In every switch, attack packet will be captured by sflow agent and sent to collector to be analyzed. For detection method system sum cumulative attack packet from every switch and collector will decide whether there is an SYN attack. If sum of packet is over certain threshold, controller will conclude there is an SYN attack.
Since Openflow network environment assumes controller has an pre-established connection between it and its agent, controller able to get number of SYN packet for specific destination node from each switch quickly. Because of that, controller also is able to calculate sum of those packets in early stage of attack.
The structure of this paper is as follows: in section 2 we will discuss about weak points of related works to be enhanced by our proposed mechanism. Section 3 describes the design of our system include testbed and architecture, while in section 4 presents evaluation of our system to detect and mitigate DDoS attack by combining sFlow and OpenFlow. Finally, in section 5 concludes of paper and discusses future work.
2. RELATED WORK
Even though DDoS mechanism is widely understood by developers, its detection is very hard task because it is difficult to distinguish between normal traffic and useless packets, sent by compromised hosts to their victim. Rodrigo Braga et al.
presents a lightweight method for DDoS attack detection. He showed that his technique extracts feature of interest with a low overhead when compared to approaches based in the KDD_99 dataset. The shortage of his technique is it cannot apply statistical method to analyze port of OpenFlow switches to precisely determine which host launches attacks.
As explained by Junsang, Park et al.
, in they paper they propose an SNMP-based lightweight and fast detection algorithm for traffic flooding attacks, which minimizes the processing and network overhead of the detection system, minimizes the detection time, and provides high detection rate. For detection algorithm consists of three consecutive stages. The first stage determines the detection timing using the update interval of SNMP MIB. The second stage analyzes attack symptoms based on correlations of MIB data. The third stage determines whether an attack occurs or not and figure out the attack type in case of attack. To use this method is not effective and efficient because his method need consume much resource.
The essential difference between normal stream and attack stream is that attack stream includes lots of spoofing IP address packets, which cannot build normal connection with destination host. Thus DDoS attack stream would include lots of one-way connection (OWC)
. One-way connection density (OWCD) not only identifies existence of DDoS but also indicates density of abnormal connection. OWCD series are a stationary series whose mean is not equal to 0. Calculating cumulative Euclidean distance between OWCD of present network flow and reference series, not only can be used to distinguish existence of DDoS, but it also detect attack intensity which is important to network administrator to detect and defend DDoS attack.
As Haining Wang et al.
did to detect SYN flooding attack, it puts mechanism in leaf router which connects host to Internet. Its detection mechanism can be applied only on leaf router, so it will consume much resource when SYN flooding attacks come and detection time is quite long.
To overcome those weakness we will propose mechanism to detect and mitigate SYN flooding attack by utilizing OpenFlow and sFlow. By utilizing those two features we can detect and mitigate SYN flooding attack earlier and detection mechanism will decrease resource consumption when attacks come.
3. PROPOSED SYSTEM
The objective of designing system to detect and mitigate SYN flood attack is to improve performance of detecting from only one router in leaf router to many routers. Thus, by using OpenFlow we can implement this mechanism.
- 3.1 SYN Flood Attack Detection Architecture
To design SYN flood attack detection architecture we have to consider resource consumption and detection time. In our system we use SDN technology by utilize OpenFlow and sFlow as tools. We can see in the
, we use four OpenFlow switches that support sFlow agent that is controlled by one controller. So, by using four agents to detect SYN flood attack we can decrease resource consumption than using traditional technology which use just one machine.
- 3.2 sFlow Detection Mechanism
sFlow is a tool for traffic monitoring in SDN technology. By utilizeing sFlow, we can detect SYN flood attack by configuring and program it from controller. sFlow agent uses sampling technology to capture traffic statistics from device which is monitored, and sFlow agent also use sFlow datagram to immediately forward sampled traffic statistics to a sFlow collector for analysis.
sFlow agent, samples packets randomly with a 1-in-N probability - when packet is sampled, then sample will sent to collector
. Independently sFlow agent sends interface counters periodically - this is configured at regular intervals - by default every 30 seconds. Every second sFlow agent examines list of counter sources and sends any counter that need to be sent to meet sampling interval requirement.
For example we configure sFlow in OVS using commands shown in
. In those syntax we configure agent whose name is br0 with IP 10.0.0.2 and collector IP is 192.168.2.10:6343. sFlow flow max-header is set as default 128 bytes. sFlow flow max-header used to set maximum number of byte of a packet. For sampling rate we set 500 because we use Link Speed 100Mb/s
. Number 500 of sampling rate means is every 500 packet which captured by agent will be sampled one packet to be sent to collector. For polling interval we set 10 second, so agent will send datagram to collector every 10 second.
Configuration format of sFlow in OVS
Configuration format of sFlow in OVS
Finally, we set threshold to detect attack as shown above.
- 3.3 Detection Algorithm
As we mention in introduction part that for detection methodology we sum cumulative attack packet from every switch and collector that can make decision to block packet when sum of cumulative attack packet over threshold (equation 1).
is total number of switch,
is number of SYN flood packet which is found at switch s,
is average resource consumption of each switch. Resource consumption depends on the number of switches. For example we assume that if there are 14.000 SYN packets coming per second we indicate that traffic is SYN flood attack
. If we use one switch as traditional approaches, system will indicate that traffic is SYN flood attack when attack above 14.000 SYN per second. But with four switches like in
, system will detect SYN flood attack when sum of participating switches is crossing 14,000 which is much faster and consumes resources of each switch smaller. Graphic comparison shown in
Resource consumption comparation between traditional and SDN network.
Last, we also should consider about redundant packet. As we describe before in our system we use four switches and each switch connect each other. To avoid packet redundancy we can configure each switch, so every packet which comes from our switch (switch1, switch2, switch3, switches n) does not counted by sFlow agent. For example there are n packets from internet come to switch2. To go to target n packet should through switch4. To be able to avoid packet redundancy at switch4, we have to configure switch4 so it does not count incoming packet from switch 1, 2, 3.
- 4.1 Testbed
To implement our system, first we need to construct simple testbed for simulation how system work. Component what we need to construct testbed is mininet and miniedit as emulator, Open vSwitch as a virtual switch that support OpenFlow and sFlow. Since we want to implement SDN concept, so we use controller that can control each OpenFlow switch in mininet. For OpenFlow controller we use Floodlight controller which able to remote default controller in mininet and for sFlow collector we use sFlow-RT collector. Also, we use KVM virtual machine manager to run some virtualization component. The entire feature installed on Linux Ubuntu 12.04 LTS.
shown design architecture of our system to mitigate SYN flood attack.
Design architecture of SYN Flood mitigation.
- 4.2 Performance
To evaluate performance of our system, we design topology as shown at
. We use four switches which build in mininet and one controller in different machine. Inside controller we put Floodlight as OpenFlow controller and sFlow-RT as sFlow collector. For sampling rate we set in 1:500, it is mean every 500 packets which through each switch it will take 1 packet to bundle in datagram to send to collector for analyze. After all of components ready as designed in
, we generate SYN flood packet to attack victim, and
shows wireshark packet capture screen.
Capture traffic of SYN flood attack.
Flow sampling obtains information of flow specified service, whereas counter sampling obtain traffic statistics on an interface. So, by utilizing flow and counter sampling we can configure and calculate them to detect SYN flood attack by sampling mechanism as sFlow did.
We can see in
that traffic got from cumulative of each switch and we set threshold at 1M, it means when cumulative number of packet from each switch is over 1M, collector will send alarm to OpenFlow controller, and OpenFlow agent will modify flow table to mitigate attack. It takes around 4 seconds to detect attack, and takes around 10 seconds to eliminate attack packet, and for all time process from attack starts until traffic return to normal it takes around 14 seconds. So, after all traffic eliminated, traffic state returns to normal state and mitigation process is done.
Detection and mitigation attack process.
This work present SYN flood attack detection and mitigation by using OpenFlow and sFlow. We use four switches in our experiment and sum cumulative attack packet from every switch and controller will decide it whether those traffics indicate as attack or not. For result we showed that our mechanism using OpenFlow and sFlow is better than using traditional network because OpenFlow utilize many switch for defense which is controlled from controller. So, by utilizing OpenFlow and sFlow we can decrease resource consumption and increase time detection. For future work, we plan to find mechanism how sFlow and Openflow can detect and mitigate directly in real-time.
He is master student in Computer Science at Chonnam National University. He received B.S. in Informatics Engineering from Ahmad Dahlan University, Indonesia. He is interest in Computer Networks.
He is an Internet of Everything Enthusiast from Indonesia with more than 5 years of lecture, research, and professional experience engaged in the development of electronics and computer technology in age of Internet of Everything. He received B.S. in Computer Engineering from University of Indonesia, Indonesia, and M.S. degree in Computer Science from Chonnam National University.
Curently she is undergraduate student in Computer Science at University of Indonesia. She is interest in Computer Networks.
He is professor in Departement of Electronics and Computer Engineering, Chonnam National University, South Korea. He received B.S. degree in Department of Computer Science, Seoul National University, in 1982. He received M.S. degree in Department of Computer Science, KAIST, South Korea in 1984. He received PhD degree in Department of Computer Science and Telecommunications, University of Missouri, Kansas City, USA in 1995. He interest on research spans from context awareness, pervasive computing, sensor network, future Internet and IPv6.
He is senior researcher in Korea Institute of Science and Technology Information (KISTI). He received B.S. degree in Electrical and Computer Engineering from Sungkyungwan University, South Korea, M.S. degree in Computer Networks from Sungkyungwan University, South Korea.
Master's Thesis of Delft University of Technology
A Study On TCP-SYN Attacks And Their Effects on A Network Infrastructure
Master's Thesis of Delft University of Technology
Transmission Control Protocol
TCP Three-way Handshake
TCP SYN Flooding Attack Process
SYN Flooding Defense Mechanism in Traditional Network
“Lightweight DDoS Flooding Attack Detection Using NOX/ OpenFlow”
Proceeding of 35th Annual IEEE Conference on Local Computer Networks
“Design and Implementation of an SNMP-based Traffic Flooding Attack Detection System”
The Korea Information Processing Society Transactions
He Da Ke
“Detectiong DDoS Attack based on One-Way Connection Density”
Proceeding of 10th IEEE Singapore International Conference on Communication Systems
“Detecting SYN Flooding Attacks”
Proceeding of Twenty-First Annual Joint Conference of the IEEE Computer and Communications Societies
sFlow Version 5
sFlow Sampling Rate
Hot Spares for DoS attacks