Presentation is loading. Please wait.

Presentation is loading. Please wait.

SwinTop: Optimizing Memory Efficiency of Packet Classification in Network Author: Chen, Chang; Cai, Liangwei; Xiang, Yang; Li, Jun Conference: Communication.

Similar presentations


Presentation on theme: "SwinTop: Optimizing Memory Efficiency of Packet Classification in Network Author: Chen, Chang; Cai, Liangwei; Xiang, Yang; Li, Jun Conference: Communication."— Presentation transcript:

1 SwinTop: Optimizing Memory Efficiency of Packet Classification in Network Author: Chen, Chang; Cai, Liangwei; Xiang, Yang; Li, Jun Conference: Communication Software and Networks (ICCSN), 2015 IEEE International Conference on Presenter: Chih-Hsun Wang Date: 2015/10/20 Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.

2 Introduction National Cheng Kung University CSIE Computer & Internet Architecture Lab 2 Recently the rapid growth of classification ruleset size and ruleset complexity has caused memory performance woes when applying traditional packet classification algorithms. Swin Top, a new ruleset partitioning approach based on swarm intelligent optimization algorithms, to seek for the global optimum grouping of rules.

3 Introduction National Cheng Kung University CSIE Computer & Internet Architecture Lab 3 Recently, several advanced solutions, like EffiCuts and ParaSplit, have shown the superiority of ruleset partitioning in the improvement of memory performance. However, the existing solutions either scale poor as the dimension number grows, or bring uncertainty in eliminating rule replications and thus trap into local optimum.

4 Preliminaries - Problem Modeling National Cheng Kung University CSIE Computer & Internet Architecture Lab 4 Given a ruleset RS = { r 1, r 2, r 3, …, r n } and the group number K, the aim is to find K disjoint subsets that minimize the overall memory consumption.

5 Preliminaries - Grouping Penalty National Cheng Kung University CSIE Computer & Internet Architecture Lab 5 First, for each rule r, every dimension of r is labeled to be either small or large according to EffiCuts. For the example of Figure 1, the six rules are labeled {s, l}, {l, s}, {l, l}, {s, s}, {l, l}, {l, l}.

6 Preliminaries - Grouping Penalty National Cheng Kung University CSIE Computer & Internet Architecture Lab 6 Second, for each rule pair r i and r j, if in the d th dimension the two rules are both small or both large, the size-conflict C size (d, r i, r j ) is set to be 0; otherwise 1. If in the d th dimension the ranges of the two rules are disjoint, the position-conflict C pos (d, r i, r j ) is set to be 0.5; otherwise 1.

7 SwinTOP Algorithm National Cheng Kung University CSIE Computer & Internet Architecture Lab 7 Swarm intelligence optimization algorithms, which simulate the collective behavior of natural systems, have made great progresses on solving combinatorial optimization problems. Since the ruleset partitioning problem is formulated into an integer programming problem with a huge and unsmooth solution space. SwinTOP, which combines the best of PSO and GA, is proposed to solve the ruleset partitioning problem.

8 Particle Swarm Optimization National Cheng Kung University CSIE Computer & Internet Architecture Lab 8 PSO is an algorithm for finding the global optimum solution. Imagine a flock of birds seeking for one piece of food in a huge searching area. None of the birds knows the exact location of the food, but they do know the approximate distance between their positions and the food. The birds keep updating (optimizing) their speed and location through both competition and cooperation, until someone finding the food.

9 Particle Swarm Optimization National Cheng Kung University CSIE Computer & Internet Architecture Lab 9 As the crucial part of PSO, the three key elements that influence the update of a bird’s speed include: Inertia: the bird keeps its previous speed in some degree. Self-cognition: the bird flies partly towards the best location that the bird itself has ever found. Social-cognition: the bird flies partly towards the best location that the entire flock has ever found.

10 Genetic Algorithm National Cheng Kung University CSIE Computer & Internet Architecture Lab 10 GA imitates the co-evolutionary process of a population formed by multiple individuals, and keep improving the fitness of the population until the strongest individual is found. A typical GA includes the following steps: Encoding: encode a feasible solution, i.e. an individual, into a chromosome according to the specific problem; Initialization: initialize the individuals to form a population; Evaluation: evaluate all individuals at current iteration step and terminate the algorithm if the best individual is found;

11 Genetic Algorithm National Cheng Kung University CSIE Computer & Internet Architecture Lab 11 Selection: select some of the individuals according to certain probability model, promising that the excellent individuals are more likely to be selected; Crossover and mutation: conduct chromosome crossover and mutation operation to the selected individuals and then return to the evaluation step.

12 SwinTOP - Encoding National Cheng Kung University CSIE Computer & Internet Architecture Lab 12

13 SwinTOP - Initialization In SwinTop, the population is initialized with 17 individuals. Among them 8 individuals are called pilots, which will update themselves in each iteration step. Another 8 individuals are called pbest_holders, responsible for holding the historical best position of each pilot. The rest one individual is called gbest_holder, which holds the historical best position of all the pilots (i.e. gbest is the best of pbests). National Cheng Kung University CSIE Computer & Internet Architecture Lab 13

14 SwinTOP - Initialization National Cheng Kung University CSIE Computer & Internet Architecture Lab 14

15 SwinTOP - Iteration To evaluate each individual based on the objective function M(r 1, r 2, …, r n ), we define the fitness of individual as follow: Next we define the compatibility of two individuals as follows: National Cheng Kung University CSIE Computer & Internet Architecture Lab 15

16 National Cheng Kung University CSIE Computer & Internet Architecture Lab 16

17 Experiment Result National Cheng Kung University CSIE Computer & Internet Architecture Lab 17 CPU3.40GHz Memory16G OSUbuntu 12.04 64bit RulesetClassBench On an HP Z220 SFF workstation

18 Experiment Result National Cheng Kung University CSIE Computer & Internet Architecture Lab 18

19 Experiment Result National Cheng Kung University CSIE Computer & Internet Architecture Lab 19

20 Experiment Result National Cheng Kung University CSIE Computer & Internet Architecture Lab 20


Download ppt "SwinTop: Optimizing Memory Efficiency of Packet Classification in Network Author: Chen, Chang; Cai, Liangwei; Xiang, Yang; Li, Jun Conference: Communication."

Similar presentations


Ads by Google