Some Improvements on Active Queue Management Mechanism Based on Adaptive Fuzzy Control

Active queue management operates at network nodes to control the number of packets in the queue of nodes, by actively receiving packets when the queue is not full, removing packets when the queue is full or notifying bottlenecks even in the embryonic period of the bottlenecks due to to-be-full queue. In recent years, scientists have used fuzzy logic to improve queue management mechanisms. Overall, these improvements have used Mamdani fuzzy system with a fixed structure with triangular functions for input and output v ariables, so they do not adapt to the changing state of the network. We propose a adaptive fuzzy control (AFC) model to improve the effectiveness of active queue management mechanisms.


Introduction
By analyzing AQM mechanisms using fuzzy logic, these improvement projects of AQM mechanisms based on queue length and speed of incoming traffic, surrounding the modification of RED and REM.In these mechanisms, FEM [6] and FUZREM [31] are the two mechanisms presented in details, clearly and offering the best results.Therefore, we will analyze and assess these two mechanisms to clarify the operations of AQM mechanisms using fuzzy logic.Generally, these mechanisms apply fuzzy control using Mamdani fuzzy system of triangular functions, owning deductive fixed lawful system, input variables are the difference between the instantaneous queue length with referential queue length, taken on two consecutive times and output variables are the probability of packet marking.This makes control mechanisms rough and the adaptability low.Thus, we propose solutions to build adaptive fuzzy controller (temporarily called AFC) combined with present active queue management mechanisms to improve the performance of the active queue management mechanisms [3][4] [14] [18] [21].* Corresponding author.Email: nkquoc@ntt.edu.vnSo, the opening of the paper presents the mathematic base of fuzzy logic, next is a survey to assess the active queue management mechanisms using existing fuzzy logic.Since then, we propose the adaptive fuzzy control model to improve the active queue management mechanism in order to overcome some limitations in existing mechanisms.Based on the theoretical model, we deploy to install simulation, develop FLREM and FLRED innovative mechanisms.In particular, the FLRED mechanism improves the RED mechanism based on the queue length, the FLREM mechanism improves the REM mechanism based on the combination of the queue length with the speed of incoming traffic.The next of the paper is the evaluation on simulation of mechanisms proposed compared to traditional mechanisms and mechanisms using fuzzy control.The simulation results of AQM mechanisms show the performance of traditional mechanisms increased when applying fuzzy control, and this factor is enhanced when using the adaptive fuzzy controller -AFC for mechanisms.

Operation of RED mechanism
1993, Sally Floyd and Van Jacobson proposed mechanism RED [11] [15][19] [23] [31]  2 congestion, RED is one of the mechanisms used to control the congestion at the network node by checking the average length when the packet queue and make a decision to mark or discard the packet to the probability increases as the average length of the queue exceeds a set threshold.
When packets arrive at network nodes, RED active queue management mechanism calculate the average queue length by the formula:  ̂= ( 1 −  ) *  ̂+  * , with  is weighted queue to control the volatility of average size (0    1) and k is the current queue length Then RED compare the average queue length with two thresholds minimum min th and maximum max th .If the average queue length is less than min th do not have any packages marked (or probability marked by 0).When the average queue length greater than max th , all incoming packets are marked (or probability marked by 1) and in fact this package is removed.When the average queue length is between min th and max th each incoming packet is marked with a probability   ∈ [0,   ], is defined by the formula (1) and ( 2

Operation of REM mechanism
The first idea of REM is stable input rate and link capacity of the queue, regardless of the number of users sharing links [1] [11] [15][19] [23].Each output queue of router installed REM mechanism and maintains a variable called 'price'.Price as a factor in evaluating congestion.Price is updated periodically or asynchronously, based on the asymmetry of the asymmetric load and the asymmetry queue size.The load is unworthy of the difference between the speed of the flow of data into and existing capacity of the link.Unworthiness of the queue size is the difference between the required target queue size with queue size of the router.
This price increase if the total weight of unworthiness is positive, and decreases in the opposite case.Total weight is positive when one input exceeds the binding capacity or there are too many packages in the queue backlog should be cleared, and negative in the opposite case.As the number of users increases, the load is not uniform among the queue size increases, boosting the price and therefore the probability of congestion marked.This will send a stronger signal congestion to the source, then the source of reduced growth.When downloading the source is too small, will not sync negative, and marked probability reduce and enhance the of load power.Until unworthiness is towards to zero, hig h efficiency and negligible decrease, so the delay in equilibrium.The queue is deleted in equilibrium if the queue set to 0.
REM clear control through updates its price, this is the first character of REM.Exactly, queue size l, price p l (t) in stages t is updated by the formula following [1][20]: Where, >0 and  l >0 constants are small and Here, b l (t) the average queue size of the queue l in time t and * 0 t b  the target queue length, x(t) average download speeds of queue l at the time of t, and c l (t) allowed bandwidth of queue l at the time of t.The difference in load is x l (t)-c l (t) and the queue size b l (t)-* l b .The constant  l can be set up by each individual queue and are updated according to the performance and latency in each queue.The constant  REM control response changes depending on network conditions.Parameters price will increase if the speed deviation of the load and queue size is positive and the price will decrease in the opposite case.At equilibrium, stability and p is calculated using the formula: This can be kept when loading the input speed equal to the speed of processing in routers (x l =c l ) and the number of packets in the queue with the desired queue size * ll bb  REM's second idea is to use a total of price links along the path of the packet, this total reflects signs of congestion on the path, the total price to be embedded into the terminal to mark probability.Forms exponentially increase the probability of marking is very important in a large network.At last, the probability of marking a packet passes through multiple congested link from source to destination depends on the probabilities associated marks at all links in the path.When and only when the associated component marking probability is exponential in its price link.This led to the arrival terminal will be marked probability increases exponentially with the total price of all links in congested link in its path.This total is a true measure of congestion in the path of the packets.Since it is embedded in the terminal to mark probability, it can be easily estimated from the sources of its own packets are marked, and is used to design adaptation loads of it.
Suppose that a packet passes through the links l=1,2, …, L have price p l (t) at time t, the marking probability m l (t) queue l at time t is: Where, >1 is constant and marking probability at the end of the packet is [18][19] [22]: Probability high marks when large sum ∑   ()

𝑙
. When the marking probability at the link m l (t) small, should p l (t) small.So, the probability is marked at the end by the above formula is proportional to the sum of the p l (t) along the way and mark probability at end approximately:     to output y(Figure 1).In the theory of fuzzy sets and fuzzy logic ( [4], [8]), allows dimming chemical inputs using fuzzy operators chemical transfer function data clearly the basis of fuzzy sets and fuzzy rules with the assumption including: p fuzzy rules are represented as a set of fuzzy descriptive (fuzzy Implications) after [4] ...
with i=1..p, notation A B or just fuzzy describe for conditions statements If A Then B and i j A , k B is the fuzzy set is defined as follows: The basic problem of fuzzy systems in fuzzy inference mechanism (fuzzy inference) and defuzzification methods (defuzzification) used to calculate the output of fuzzy system clearly specify when the input given on the basis of fuzzy rules have known.This fuzzy inference mechanism is built on the success of inference rules.To calculate the the first clause in the formula (7) we can use any t-norm does [30]  ...
in the formula (7) calculated as follows [13][15][25] [28]: Fuzzyfier Inference Engine Defuzzyfier Rule Base Figure 1: MISO fuzzy control system To calculate the fuzzy description of each rule or the output of each rule can be used to describe the fuzzy operator (t-norm or t-conorm).Some fuzzy operator describe common include: Zadeh x y max{1x, min{x, y}}, Lukasiewicz x y min{1, 1x y}, Mamdani x y min{x, y} và Larsen x y xy.Where the operator using fuzzy Mamdani describes the output of the i th rule (R i ), denoted as Finally, to calculate the output of fuzzy system can be used as a defuzzification method of defuzzification focal point COG (Center Of Gravity) after: The equation ( 19) is a model of Mamdani fuzzy system with COG defuzzification method and is used as the fuzzy approximation F(x,θ) with 1 ,..., c T p c    .

Fuzzy logic controller
Fuzzy logic controllers, like expert systems, can be used to model human experiences and human decision making behaviors.In FLC the input-output relationship is expressed by using a set of linguistic rules or relational expressions.The FLC basically consists of four important parts including a fuzzifier, a defuzzifier, an inference engine and a rule base.As in many fuzzy control applications, the input data are usually crisp, so a fuzzification is necessary to convert the input crisp data into a suitable set of linguistic value that is needed in inference engine.Singleton fuzzifier is the general fuzzification method used to map the crisp input to a singleton fuzzy set.In the rule base of a FLC, a set of fuzzy control rules, which characterize the dynamic behavior of system, are defined.The inference engine is used to form inferences and draw conclusions from the fuzzy control rules.Figure 1 shows the fuzzy logic controller architecture.The output of inference engine is sent to defuzzification unit.Defuzzification is a mapping from a space of fuzzy control actions into a space of crisp control actions [15][19] [25].
1) Layer of Inputs: language input variable is the variable that represents the main factors affecting the operation mechanism of REM.
2) Layer of Fuzzifier: this layer performs the function of tissues in the value of the variable input, will pass each of  the input values to set the corresponding language.
3) Layer of Rules: this layer contains the basis for inference rules.Code base is a set of fuzzy rules of the form IF-THEN, for n variables in x 1, ..,x n , the y variable, fuzzy rules of the form R: IF Where   and B are fuzzy sets of linguistic variables x 1 , x 2 , .., x n and the outcome variable y.
4) Layer of Inference Engine: this layer performs the function of the total results of the nodes in the rule layer to send, through the permit OR (Max).
5) Layer of Defuzzifier: functional class implements defuzzification to obtain results, the results are calculated probability of packet marking optimization under the current state of the network.The output f(x) of this fuzzy controller with singleton fuzzifier, inference engine and center-average defuzzifier can be calculated as: Where y 0 is the center value of the output fuzzy set b,  () is the membership function for fuzzy sets.In our proposed model we use two input variables to fuzzy controller which present the congestion measures for the packet loss, queue length and the output will be the drop probability value.

Mamdani fuzzy system
Mamdani fuzzy controller (also known as estimates Control) used control method of Mamdani is first fuzzy control method.It is used in cases where the condition clause and the clause conclusions are fuzzy values, the following general form [4][7] [9]: Where m is the number of the input signal, n is the number of output signal, j = 1... k, where k is the number of control rules.Conclusion of Mamdani fuzzy control methods are fuzzy clauses.

Sugeno fuzzy system
Sugeno fuzzy model published by Takagi, Sugeno, Kang desire to develop a systematic approach to establish the fuzzy rules from the data set into place.Basic fuzzy Sugeno model has the form [4][7][9]:: With   the fuzzy conditions and  =   is clearly a function of the conclusions.Usually   polynomial of the input variables   or any function as long as the appropriate describe the output of the fuzzy system in the domain defined by the premise of the rule.

Problems exist AQM using fuzzy logic
In general, the mechanism of fuzzy control applications using Mamdani fuzzy system with the function of triangular shape, with the input variable is the difference between the instantaneous queue length with reference queue length, taken on two consecutive time and the output variable is the probability of packet marking.However, these mechanisms also exist a number of the following:  First, the use of triangular membership functions to calculate simple, but it makes the controller is not smooth [36].To overcome this drawback, we offer solutions in the form of a bell-shaped function used to represent values of fuzzy variables in the input and output of the fuzzy controller.
 Second, the value of the variable probability of marking packets at the output of the fuzzy controller is shown the qualitative factors of the people participating in the control system, this value has to be some standard mechanism of the interval [0, 1].However, in the FEM, the coefficients are adjusted by hand, there should be selfcorrecting mechanism in the output coefficient for adjusting the value of the packet marking probability of the system quantitatively, to be valid interest in accordance with the status of the network.
 Third, the reference queue length (q ref ) used in the mechanism is set fixed value, usually the threshold is 80% of the capacity of the system (such as buffer size).However, there are strategies to build a model to change the reference value in accordance with the state of the network.For example, when the road is clear, then set the value to lowlatency queue in small, whereas the high reference value set to limit the loss.
 Fourth, the parameters of the fuzzy controller (number of functions, the value of the function, the number of laws, rules weights) were fixed since the design, should not be changed to suit the situation network.
 Thursday, the major cause for the AQM mechanism using fuzzy controller performance is not high due to this mechanism using Mamdani fuzzy system for their fuzzy controller.According to the researchers in the field of automatic control, the Mamdani fuzzy system does not work effectively with Sugeno fuzzy systems, especially in the control system such MISO [7] [10].
To overcome this limitation of the mechanism, we propose to model AFC using fuzzy Sugeno with a bellshaped function of the adjustment mechanism and target values self-control mechanism control output probabilities.AFC fuzzy controller built into the rest of the article.

Building adaptive fuzzy controller
The adaptive fuzzy control (AFC) model with the central processor is a fuzzy controller, there are structural adjustment parameters and parameters in place, so that the output of the model most similar models. Closed-loop control system, the input value e(t), e(t-T) is the deviation of output y compared with the reference value y m will be standardized by K 1 and K 2 the previous coefficients going into the fuzzy controller.
 After the input data in a standardized, data will be sent to the fuzzy controller.Here, fuzzy control system components: fuzzy sets, the rule, the inference engine and the defuzzification as described in Section 3.1 will operate and value package marking probability p(t).
 Based on  allowed deviation between the reference value y m with output value y and the actual deviation e(t) of the system where the structure is adapted to adjust the output of the K for appropriate fuzzy control.So the prob ability value marked packets at the output of the AFC fuzzy controller is adapted   () = .().

Fuzzy control of AFC
Fuzzy controller for the AFC is based on Sugeno fuzzy system is presented in Section 4.1 with the following components.

Fuzzy input variable
To determine the inference rule system, we need to describe the linguistic variables to be loaded into the fuzzy controller to describe the object in the best way.The variable input language is set to "false queue", "false flow rate to" or "false prices" in two consecutive time is e(t) và e(t-T).
To simplify the computation, the usual functions of triangular, trapezoidal used for language processing.However, this is not the function of the normal distribution function to the control values are not slippery.So we used the bell-shaped membership functions for the fuzzy input variables.In the fuzzy controller, we use the method with the functions of symmetric and equidistant, the sum of the value of an input language is always equal to 1.
The value of the selected language to denote the case of two input e(

Construction fuzzy inference rules
The set of fuzzy rules is designed in detail by selecting the simplest model MISO (avoid the exponential increase of the set of fuzzy rules and thus reduce the complexity of the control system) based on two objectives: A comprehensive system of rule means that all the circumstances of the behavior of the system must be considered.This means that the combination of the input variables change will lead to a corresponding output.The rules of the fuzzy contro ller is based on a formula (14).Do we have two inputs, each input value for the domain seven for variable languages so there will be 49 fuzzy inference system.
To facilitate the construction and building the fuzzy rules, the index for the domain associated value of the variable input language  1 .e(t),If the reference is incorrect large negative (NB) and false negative reference before small (NS), then the probability of marking / remove packages are very large (H).
Based on this general fuzzy systems, fuzzy systems with the rules in the following Table 1 Table 1.Index systems of fuzzy rules Based on the values domain index of the linguistic variables for input and output in Table 1, build rule system as Table 2.

Surfaces inference
The surface of this inference is the most simplified representation of the fuzzy controller.The output is an interpolation made two inputs.Reconciling surface nonlinear control and the language rule is used, will provide hints about the operation of fuzzy control method using surface inference probability bring better marks than other approaches, so close to human reasoning and the nonlinear available.Figure 4 illustrates the curved surface of the inference rule system is described in Table 2.

Figure 4. Surfaces inference of AFC
From fuzzy inference on the surface, we can easily calculate the probability of the area marked equilibrium, where the error on the queue length is almost zero.On the other hand, the active rule by increased ability to mark packets in areas beyond the equilibrium point where congestion began to be established.

Fuzzy out variable
To control the decision was final, the output fuzzy sets must be converted into an output value clearly through the defuzzifier allowed.Here, the fuzzy method are central domain of fuzzy output after combined and are shown in formula: In particular   (  ) =  ( 1 (  ) ,  2 (  ) , … ,   (  ) ) is the dependence of y in fuzzy combined C and N is the number of inference rules.Limits of integration allows the formula (17a) corresponds to space medicine and the probability value marking / removal which contains y.To reduce the computational process we discretize space Y into m values and core values obtained as formula (17b)

Building sample model
The design goal of the AQM algorithm is to determine the limits of queue fluctuations, fluctuations in flow rate to or fluctuate delays, queue need to adjust the speed of incoming traffic or at a suitable level.This leads to the need to have a reference input is fixed reference queue length, or flux from the sample model fit G m .Based on This parameter can be set so as to obtain the average delay variation and low latency.For the purpose of keeping instantaneous queue length at a fixed rate, control the flux does not change.Fuzzy control algorithm allows tighter control, avoiding losses and the volatility is not acceptable around the reference point.This contrasts with the traditional AQM algorithms, control the macroscopic behavior of the queue length and packet flow to, they often result in slow response and fluctuations in queue length / store instantaneous load, leading to large latency variability

Determine the input and output variables
To work properly, the system should s et the range of values for the input variables to suit the system.The range of values can be determined by testing with different input values for the control system to determine the extent of variation of error in a sampling interval.We choose the value of the error () and the rate of change of error based on the value added at the time of the error ( − ) as input on the fuzzy controller.That is, the input is the deviation of the instantaneous output value (y) compared with the reference output value (y m ) at two consecutive time is (t) and (t-T).
The expression e(t)  y m  y(t) determines the current time and errors e(t-T )  y m  y(t-T ) was determined time error after a delay time T (in cycles taken previous sample).Similarly, we need to consider the probability of s election marker / discard the packet () as the output of the fuzzy controller.

Adaptive mechanism
Adaptive mechanism to adjust the output of the K values that mark the appropriate probabilities.When the output value exceeds the reference value, it is necessary to increase K to the probability marks and vice versa.Reduced gradient method applied to the adaptive correction coefficient K output of the fuzzy controller.The process of adjustment is performed according to main structures are referred to as adaptive fuzzy controller according to sample model.
Objects TCP/ IP has transfer function G, sample model with transfer function G m , the fuzzy controller with transfer function F. Need to find a rule correction coefficient K so that the difference between the actual value y and the reference value   toward 0 (ε →0).Based on the model in Figure 2, the controller output ratio are defined as follows:: Based on the formula (2:26), the output value exceeds the reference level ( (  ) >   ), the increased value of the coefficient K to increase the value of the packet marking probability.Conversely, when the output values below the reference ( (  ) <   ), the reduced value of the coefficient K to reduce the value of the packet marking probability.Upon reaching steady state, the output value of the reference value ( (  ) =   ) is kept constant  value.

Improve RED mechanisms by AFC
According to the analysis and evaluation of the traditional AQM mechanisms, as well as analysis and evaluation of the AQM mechanism that uses fuzzy logic, then the improvements AQM mechanisms based on the way long queues around the amendment RED.Therefore, in the construction of improved mechanisms AQM mechanism by AFC adaptive fuzzy control, we continue to choose the improvements represent RED mechanisms based on queue length.AFC Model for FLRED mechanism is based on AFC general model for improving AQM mechanisms is presented in Section 4.1 as follows

Fuzzy input variables for FLRED
Using a general improvement model as shown in Figure 2 with T is the sampling period.With Qe(t), Qe(t-T) is misleading the immediate queue length compared to the reference queue TQL in the cycle of sampling and sampling in the previous cycle.This deviation is normalized values in the interval [-1, 1] before putting them into the fuzzy controller by K 1 and K 2 to the coefficient determined by the formula (15).The value of the selected language to denote the case of two input K 1 .Qe(t), K 2 .Qe(t-T) was constructed as in Section 4.3.Context describes how to express the value of linguistic variables as follows:  Statement "deviation queues are positive big (PB)" describes situations where the queue immediate below it than the reference value TQL.
 Statement "deviation queues are positive big and deviation queue before is negative small" describes a situation where the queue while the lower than the reference value TQL and it tends to go away in the direction down compared queue with reference values.

Fuzzy output variables for FLRED
Output linguistic variables for the fuzzy controller of FLRED mechanism is packet marking probability p(t).The value of linguistic variable p (t) represents the level of packet marking and built seven-level degree is described in Section 4.3.2.Context expression language variables as follows: statements "probabilistic packet marking Zero (Z)" described the situation is not marked packets discarded, packets are put into the buffer zone.Statement "packet marking probability is very great (H)" describe situations packet marking removed, discarded packets are not included

Building fuzzy inference rules for FLRED
Set fuzzy inference rules for FLRED are based on the set of values of the input variables Qe(t), Qe(t-T) and output variables p(t) has been built.The rules of the fuzzy controller is based on a formula (14).The system has two inputs, each input has seven linguistic variable value so be 49 fuzzy inference system.Rule form: if (deviation queue is Qe(t)) and (deviation queue before the Qe(t-T)), then the probability of packet marking removal is p(t).Based on this model, the fuzzy controller's AFC FLREM built as follows.

Fuzzy input variables for FLREM
AFC for FLREM also based on variable rates (P r ) measure of congestion as REM algorithm.Therefore, we use two inputs, one for the sample at the current time Pr (t) and a time to form in the previous cycle Pr (t -T).Based on these two input values, the fuzzy controller determines the value of the packet marking probability represents the output of the fuzzy system.
To improve the accuracy we increase the number of membership functions for input and output of the fuzzy system is 9, this will make some inference rules become 81 rules.The downside of the calculation of the price mechanism is the magnitude of the price REM always positive, this is not the actual queue length and flow rate to be much smaller than the reference queue length and bandwidth transmission.
The value of the selected input language to denote the case corresponding to two consecutive times and fuzzy membership functions by a bell-shaped domain nine values: (  ) = {, , , , , ,  ,  ,  }

Simulation and evaluation
Simulation AQM mechanisms are implemented in NS2 [20] software, this software is the most widely used, the research community is trusted and recognized.To objectively evaluate the AQM mechanism, the mechanisms is installed on the same network environment simulation process and are evaluated based on the following criteria: control the queue length and the ability to respond to network changes.
To evaluate, compare the performance of AQM mechanisms must be installed simulation mechanisms in a network model, similar to other network environments, such as the number of nodes, network diagrams, of the connections, applications, bandwidth and latency on each connection.At the same time all the simulation results for AQM mechanisms have processes are described in section 7.1.
The performance of AQM mechanisms will be analyzed and evaluated based on the same general criteria system, is presented in Section 7.2, such as transmission efficiency, packet loss rate in knots bottleneck, the average queuing delay and delay variation.

Installing simulation
For the purpose of evaluating the effectiveness of the AQM mechanism using fuzzy controllers AFC, we choose to compare with the original AQM mechanism represents the group (such as RED, REM) and AQM mechanisms using fuzzy control (such as FEM and FUZZEM) for representing primitive.Therefore, the network model to simulate the mechanism in our model was used to simulate the RED, REM, FEM, FUZREM mechanisms.This model is shown in Figure 6.

Control the queue of AQM mechanisms
The objective of the first simulation scenario is evaluated control queue length of AQM mechanisms in real time.For this purpose, set the number of connections in the source N = 60, the bandwidth and latency of the connection is: (C1, d1) = (15Mbps, 40ms), (C2, d2) = (15Mbps, 5ms ), and (C3, D3) = (30Mbps, 5ms).For the RED queue, simulation set reference queue length 200 package and set two threshold s min th and max th corresponding 30% and 70% of the queue length.Congestion notification Mechanism of RED has been made possible by actively setting max p is 1.Queue reference for FLRED mechanism is set in turn is 100 packages, 200 packages and 300 packages.
The simulation results of the RED, FEM, and mechanisms is shown in Figure 7, shows that the mechanism of improved mechanisms of RED mechanism using fuzzy control as FEM and FLRED always have the ability to control every wait relatively stable over traditional RED mechanism.This may be due to the fuzzy controller of the mechanisms controlling queues based on the queue reference.In addition, FLRED mechanisms have a smaller amplitude than the FEM mechanism, the mechanism by FLRED get fuzzy controller according to a bell-shaped smooth and adjust the value in the packet marking probability output of the fuzzy controller according to the variation of the network  8, shows that the mechanism controlling REM queue is unstable, whereas the FUZREM and FLREM mechanisms keep the immediate queue length at network nodes is relatively stable.However, due FLREM nine bell membership function as fuzzy input values so be increased precision makes it possible queue stability better than FUZREM.Figure 9 and Figure 10 shows, the more reduced the number of connections in the 40th second, the immediate queue length of the mechanism immediately dropped.When increasing the number of TCP flows to 100, the number of packets to the queue and thus increase efficiency queue will increase, leading to delay and delay variation in the queue increases.However, the FEM and FLRED mechanisms, FUZREM and FLREM maintain the queue length fluctuated queue reference value.
Ability to respond the queue management mechanism based on queue length is shown in Figure 9, again shows the adaptation of FEM and FLRED mechanisms when using fuzzy control and the ability to restoration of the status queue FLRED mechanism high when fuzzy system with bell.

Conclusions
The control to avoid bottlenecks by active queue management mechanisms at routers is essential.However, computational intelligent factors such as fuzzy control should be taken into active queue management mechanisms so that these mechanisms can operate more effectively in order to improve service quality and network performance.We have improved the queue management mechanism by introducing adaptive fuzzy controller -AFC into the process of active queue management of the network by using Sugeno fuzzy system and the differential operation to adjust output and input variables of the fuzzy controller.
for the early detection of EAI Endorsed Transactions on Context-aware Systems and Applications 10 -11 2015 | Volume 2 | Issue 6 | e4 N. K. Quoc et al.
on Context-aware Systems and Applications 10 -11 2015 | Volume 2 | Issue 6 | e4 functions of j and k inputs x i and output y .
as the smallest t-norm T MIN (a, b) min{a, b}, algebraic integrated T PAND (a, b) ab , Łukasiewicz function T LAND (a, b) max{a  b  1,0}, In case of using smallest tnorm T MIN then fuzzy describe (15) can be written as Decac integrated   12 12 Endorsed Transactions on Context-aware Systems and Applications 10 -11 2015 | Volume 2 | Issue 6 | e4 N. K. Quoc et al.

5 Figure 2 .
Figure 2. Improved model AQM mechanism by AFCThe AFC model is described as follows: Based on the input state that G m determine reference output y m (queue length, bandwidth or a combination of both factors) for the network.The value is set y m depending resource capacity of the system and the status of the network and is set   =   .
t) and e(t-T) corresponding to two consecutive times and fuzzy membership functions by the bell-shaped with seven domain values (numerical values of FEM domain and FUZREM) is: {NB, NM, NS, ZE, PS, PM, PB}.Meaning of dismissal following values: Negative Big (NB), Negative Medium (NM), Negative Small (NS), Zero (ZE), Small Positive (PS), Positive Medium (PM, Positive Big (PB).The function of the input linguistic variables e(t) and e(t-T) are shown in Figure 3 as follows:

Figure 5 .
Figure 5. Membership functions of the input variables FLREM

Figure 6 . 2 .
Figure 6.The network model to simulate the AQM In the model, using the communication protocol TCP / NewReno with congestion window is 240 packets, each packet size of 1000 bytes.Buffer size of all queues is 500 packets.Queue of the bottleneck link is placed between the router-router-A and B, respectively installing AQM algorithms queue manager at bottlenecks, all other links placed queue management mechanism passive.Reference queue length for the mechanism to be set to 200 packets (40% buffer size).Sampling distance is 0.1 seconds, the time taken for the article simulation mechanisms is 100 seconds 7.2.Evaluation for AQM mechanisms

10 Figure 7 .
Figure 7.Control the queue of RED, FEM and FLREDWhen the simulation REM mechanism and the me chanisms to improve REM have used fuzzy controller (FUZREM, FLREM), results in Figure8, shows that the mechanism controlling REM queue is unstable, whereas the FUZREM and FLREM mechanisms keep the immediate queue length at network nodes is relatively stable.However, due FLREM nine bell membership function as fuzzy input values so be increased precision makes it possible queue stability better than FUZREM.

Figure 8 .
Figure 8.Control the queue of REM, FUZREM and FLREM 7.2.2.Ability to respond of AQM mechanisms Simulation test the ability to respond of AQM mechanisms when the characteristics of of TCP change through changing the number of connections from 60 to 100 and the access time to the network by stopping the flow in half at time t = 40 seconds and recover in time t = 70 seconds.

Figure 9 ,
Figure 9,.Ability to respond of RED, FEM and FLRED Similarly, Figure 10 represents ability to respond the queue management mechanism based on queue length and flow rate to, FLREM have a shorter recovery time than FUZREM.

Figure 10 .
Figure 10.Ability to respond of REM, FUZREM, FLREM Based on the theoretical model, we deploy to install the simulation, develop FLRED and FLREM innovative mechanisms.The simulation results show that the mechanisms are innovated by improving the adaptive fuzzy controller AFC to control the queue better than traditional mechanisms and mechanisms previously using fuzzy logic.Thus, the adaptive EAI Endorsed Transactions on Context-aware Systems and Applications 10 -11 2015 | Volume 2 | Issue 6 | e4 Some Improvements the Active Queue Management Mechanism Based on Adaptive Fuzzy Control 11 fuzzy controller supports to enhance the management performance of the active queue management mechanisms

Table 2 .
Fuzzy rule system Some Improvements the Active Queue Management Mechanism Based on Adaptive Fuzzy Control 7 maximum capacity   (queue length, link bandwidth) in sample model to establish reference values   corresponding.

Table 3 .
Fuzzy rule system of FLRED

Table 4 .
: Index systems of fuzzy rules for FLREM

Table 5 .
Fuzzy rule system of FLREM