trafficsqueezer aquarium solar-flare guide v1.00.9

Upload: macromusica

Post on 03-Jun-2018

232 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    1/27

    TrafficSqueezer and AquariumSeries: Solar-Flare

    User's Guide

    - Book Version: 1.00.9

    Author:Kiran KankipatiAuthor/Founder: Traffi!"uee#er $ %inu& ased (pen-!oure )A* (pti+i#ationAuthor/Founder: A"uariu+ $ %inu& ased (pen-!oure )e GU,Author/Founder: * !hoo $ onine * Tehnoo 2ournaFounder/3(/4: ouefish !outions

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    2/27

    isai+er

    B do5noadin and / or usin these ite+s ou aept the ter+s of the asi %iense Aree+ent as sho5non this dou+ent6 and an additiona ter+s in the indi7idua iense aree+ent suppied 5ith the ite+.8ou ha7e aso aepted the enera isai+er6 so +ake sure ou ha7e read oth efore do5noadin orusin anthin fro+ this setion of the dou+entation.

    )arrant isai+er.The soft5are is pro7ided to ou as is 5ithout 5arrant of an kind6 5hether e&press6 i+pied6statutor6 or other5ise. K,A* KA*K,;AT, A* ,T! %,3*!(! B3A *( %,AB,%,T8 F( A*8 A4AG3! 3!U%T,*GF(4 U!3 ,! ;(UT/!(%UT,(*.

    Author's *ote and ;ro?et >istor

    ear A6

    This is Kiran.Traffi!"uee#er is a pro?et 5hih 5as started as +ore of a ho/fun pro?et at ho+e so+eti+e durin@00. !ine then 5ith onsistent 6 it has een uit fro+ srath in 7arious phases. ,nitia aasi prototpe of Traffi!"uee#er is a uit in user-spae and de+onstrated. %ater the sa+e is +o7ed

    into %inu& Kerne and a Kerne ased pratia usae )A* (pti+i#ation enines of Traffi!"uee#er areorn.

    After fe5 ears6 5hen , started + fir+ Couefish !outionsD6 Traffi!"uee#er is supported 7ia thesa+e. Users are offered for the first ti+e6 paid support6 portin and usto+i#ation ser7ies. Asodurin this period a +ore roust Traffi!"uee#er e7ie GU, ere is a detaied historia road-+ap ti+e-ine piture:

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    3/27

    , 5ish to thank a the supporters6 users6 and a + usto+ers

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    4/27

    - Bo: 4aruti Gps - 37erthin Aout: +arutips.ospot.o+ - Bo: Kiran's %ens

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    5/27

    tpes of users.

    G;%7@ %iense:

    opriht A*TAB,%,T8 A* F,T*3!! F( A;AT,U%A ;U;(!3 A3 ,!%A,43. ,* *( 3V3*T !>A%% K,A* KA*K,;AT, ( (*T,BUT(! B3%,AB%3 F( A*8 ,3T6 ,*,3T6 ,*,3*TA%6 !;3,A%6 3N34;%A86 ( (*!3U3*T,A% A4AG3!()3V3 AU!3 A* (* A*8 T>3(8 (F %,AB,%,T86)>3T>3 ,* (*TAT6 !T,T %,AB,%,T86 ( T(T 3),!3= A,!,*G,* A*8 )A8 (UT (F T>3 U!3 (F T>,! !(FT)A36 3V3* ,F AV,!3 (F T>3 ;(!!,B,%,T8 (F !U> A4AG3.

    The 7ie5s and onusions ontained in the soft5are and dou+entation are those of theauthors and shoud not e interpreted as representin offiia poiies6 either e&pressedor i+pied6 of Kiran Kankipati.

    ,ntrodution

    Aquarium is a free (pen-!oure 5e-GU,

    A"uariu+ - Arhiteture

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    6/27

    A"uariu+ is not a repae+ent for traditiona %inu& interfaes na+e re+ote !!> %, she aess

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    7/27

    i+itations6 sti it is unpreditae6 hene A"uariu+ +ain ae+on is 5ritten in .

    )ependencies:

    ;>; $ ;arts of A"uariu+ ode is een 5ritten in ;>;. This is a ritia ode6 if the etsrashed in an ase6 this 5i not rash A"uariu+ ae+on. The -ased A"uariu+ ode 5iderpt and oad on-de+and.

    rep6 sed6 ut6 arp6 iptaes6 ron6 route6 t6 p6 erep6 at6 ifonfi6 et - A"uariu+ asouses these toos and +a a the+ 7ia e&e

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    8/27

    As ou an see ao7e sreen-shot6 A"uariu+ 5i not o+pete hide/astrat the user a5are %, o++andstruture. ,nstead6 it pro7ides GU, pus aso hints the respeti7e atua de7ie settins 7ia onte&tspeifi %, o++and output/du+ps.

    A"uariu+ 5i e&eute these o++ands

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    9/27

    As ou an see ased on eah astration6 the sa+e underin feature is or an e used an nu+er ofti+es in 7arious onte&ts.

    >ene this is the reason A"uariu+ is foused to5ards asi and ad7ane users6 5here A"uariu+ reaheps ad+inistrators to re+ote and "uik ad+inistrate their sste+s in the usua three 5ork +odes.

    Usua ad+inistrators an 5ork in -5ork +odes:

    System onitoring $ Ad+inistrators usua 5ork in this +ode e7erda6 one the firsti++ediate start their shifts. The 5oud ike to +onitor first e7erthin is in the fo5. Aso

    so+eti+es +idde of the da the +a 5ork in this +ode. !risis and or "irefighting mode$ as the na+e e&pains this is another +ode 5hen there is a hue

    risis or so+e usiness i+patin issue found6 then the 5ork in this +ode. A"uariu+ an e usedinitia to deu the sste+6 e7en efore e&piit ad+inistrators do and ontro 7ia an !!>aess. !o+eti+es !!> aess an e ei+inated 7ia A"uariu+ Astrations P

    Ad+inistrators an onnet to their de7ies 7ia A"uariu+ ; sripts and sted e&usi7e 5ith !! propert stin.

    Linux )istri$ution*s+:urrent A"uariu+ ;rofessiona is 100S o+patie 5ith distriutions suh as: Fedora ore

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    10/27

    Basi-e7e %inu& sste+ user +anae+ent. (ther sste+ speifi features. Basi-e7e %inu& ridin +ode setup

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    11/27

    ser7ie +s"d start

    )e reate/onfiure 4!% for ad+in user 'root' and pass5ord '5eo+e'6 here are the si+pe steps65hih ou an hane the+ aordin:

    Test 4s" aess:+s" -u root

    onfiure pass5ord for user root:+s"ad+in -u root pass5ord '5eo+e'

    Test 4s" aess 5ith pass5ord:+s" -uroot -p5eo+e

    reate a ataase:+s"X reate dataase a"uariu+I

    )ork 5ithin ataase:+s"X use a"uariu+I

    reate one asi pre-insta/setup Tae:+s"X 3AT3 TAB%3 profie .5A)-ONL? @aria$lesSettings:Users need to understand that eah feature +a ontain one to +an settins/7ariaes. *o5 in order toinrease the Traffi!"uee#er run-ti+e perfor+ane and aso to redue and refine the fo5 of the odeand run-ti+e oi6 so+e of the 7ariaes are +ade as read-on. This reat redues the ti+e 5henusers 5ant to "uik setup a 5orkin Traffi!"uee#er depo+ent. ue to the sa+e6 no5 instead offiddin 5ith u+erso+e settins6 users 5i ha7e aread a partia onfiured setup 5hih is hihfine-tuned for reat opti+a perfor+ane.

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    19/27

    Traffi!"uee#er un-Ti+e perfor+ane6 ;aket ei7er and %aten

    ,t is one of the ore fous that 5e et +a&i+u+ a+ount of possie )A* (pti+i#ation 5ith +a&i+u+ a+ountof paket dei7er rate i.e effeti7e throuhput 4ps6 and Gps perfor+ane out of Traffi!"uee#er. ,tis oser7ed 5ith thousands of trias on 7arious sste+s that Traffi!"uee#er needs effeti7e ra5 ;Uproessin po5er. , enh+ark an ;/!er7er first 7ia the tota ti+e taken to o+pie the %inu& Kerne5ith fu ;U oad ene to ahie7e the sa+e here are so+e of the steps undertaken: ,ntrodution of ead-(n Variaes.

    edues the o+piations6 ess ode6 ess aten per-paket. %ess run-ti+e user settins. *o u+erso+e settins.

    Traffi!"uee#er ere are the U%s for referene:;ae1: http://555.traffis"uee#er.or/dWkerneWo+piation.php;ae@: http://555.traffis"uee#er.or/[email protected] ;ae: http://555.traffis"uee#er.or/dWkerneWo+piation.php ;ae[: http://555.traffis"uee#er.or/dWkerneWo+piation[.php

    ,f ou ha7e issues 5ith respet to hard5are o+patiiit6 de7ie dri7er issues6 ou +a need to pathit6 and so uid our usto+ kerne further.

    >ere are so+e fre"uent issues ou fae 5hie usin a usto+ kerne ene ,strit reo++end either ou first pre-usto+i#e aordin to the speifiations of theseVirtuai#ed patfor+s. 8ou +a notie ootin issues6 as 5e as rashes if it is not o+peteo+patie. This is not a fu-fed kerne 5hih is prepaked 5ith Uuntu/Fedora/ent(!distriutions. ,t is a asi kerne.or kerne 5ith Traffi!"uee#er ode in it.

    >ene the ao7e points +a i7e ou so+e idea aout 5hat ou need to do and or understand 5hen there isa issue. This kerne 5hih ou are usin is a enera purpose kerne unike a kerne pre-paked inUuntu/Fedora/ent(!6et distriutions. The kerne in an %inu& distriution is a hih tested6 andpre-pathed kerne.

    >ene do to the e&tent of the kno5ede re"uired and the o+pe&it6 , suest if users find it hard toet a 5orkin usto+ kerne6 it is suested to et so+e e&pert option and support.

    Note: Traffi!"uee#er do not support et &Z-[ it ased patfor+s. !o use on @-it eneri &Zpatfor+ as our test or depo+ent (! patfor+.

    http://www.kernel.org/http://www.trafficsqueezer.org/d_kernel_compilation.phphttp://www.trafficsqueezer.org/d_kernel_compilation2.phphttp://www.trafficsqueezer.org/d_kernel_compilation3.phphttp://www.trafficsqueezer.org/d_kernel_compilation4.phphttp://www.kernel.org/http://www.kernel.org/http://www.trafficsqueezer.org/d_kernel_compilation.phphttp://www.trafficsqueezer.org/d_kernel_compilation2.phphttp://www.trafficsqueezer.org/d_kernel_compilation3.phphttp://www.trafficsqueezer.org/d_kernel_compilation4.phphttp://www.kernel.org/
  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    20/27

    Traffi!"uee#er epo+ent !a+pes

    Traffi !"uee#er $ !er7er/e7ie (pti+i#ationTraffi !"uee#er an e instaed in an ser7er or de7ie/+ahine6 and an e +ade to send opti+i#edpakets to seet re+ote ,; sunets. This ei+inates o+pete the use of one dediated Traffi!"uee#er router/ride onfiured as a ate5a. Traffi !"uee#er features an e seeti7e enaed onan dediated sste+s ;s or e7en ser7ers &ipeline 3ode8ou an use +utipe Traffi !"uee#er +ahines in this onfiuration as sho5n eo5 and enae 7ariousopti+i#ation features seeti7e in eah Traffi !"uee#er de7ie so that the proessin oad an eshared aross the +ahines. This strate +iht hep in a hih-speed ink. !a for e&a+pe if one+ahine does o+pression6 and so on6 the other +ahine an perfor+ paket te+patin6 oaesin aone.This 5a in-e&pensi7e +utipe Traffi !"uee#er +ahines an e depoed. For e7en +ore ritia inkse7en +ore than t5o +ahines an e used or 5ith a o+ination of other oad sharin strateies 5iththis.

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    21/27

    Usua e&pensi7e net5ork appiane de7ies o7ers a these features into a hih e&pensi7e dediatedhard5are. But the o7ious dis-ad7antae is that so+eti+es its touh to uprade6 as 5e so+eti+es it+iht introdue so+e i+itations ti+e to ti+e 5ith the upo+in infrastruture needs/re"uire+ents. Thisis the +ain reason 5here Traffi !"uee#er athouh ein a o+pete soft5are soution an e used 5hiha5as 5orks in a eneri o+putationa patfor+. ,t is eas to uprade the Traffi !"uee#er soft5are6as 5e eas to uprade the hard5are ?ust in ase.

    And not ?ust that6 e7en ou an onfiure these sste+s one in outin +ode and other in Bridin +ode.This 5a oth these +ahine an e as sho5n eo5:

    Routing Mode Routing Mode

    Routing Mode Bridging Mode

    Bridging Mode Bridging Mode

    Bridging Mode Routing Mode

    These reati7e onfiurations are pure situationa as one an understand6 Bridin +ode usuaredues sinifiant aten and paket proessin6 as 5e +akes the presene of Traffi !"uee#er e7en+ore transparent 5ith respet to the depoed infrastruture.

    3ulti-'endor /onnecti'it,,n ase if the orani#ation ets data onneti7it 7ia +utipe 7endors6

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    22/27

    !i+iar depo+ent 7ia an inter+ediate router.

    3ulti-site /onnecti'it,,n ase if the orani#ation ha7e +utipe sites

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    23/27

    /onnecti'it, 'ia tird-part, @&N )e'ice,n ase if there is a dediated third-part V;* e7ie is aread depoed6 then in that ase a Traffi!"uee#er depo+ent an e done as sho5n eo5.

    ;arning:*e7er depo Traffi!"uee#er after a V;* de7ie6 it is o7ious the traffi +iht et areadenrpted in the V;* +ahine6 this ea7es not +uh roo+ for Traffi!"uee#er to perfor+ an paket-5iseopti+i#ationP

    !i+uation of Traffi!"uee#er 5ith 1 stand-aone +ahine

    !i+uation of Traffi!"uee#er in ser7er/de7ie

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    24/27

    urin si+uation6 Traffi!"uee#er on7erts ra5 ino+in and outoin pakets into Traffi!"uee#eropti+i#ed pakets6 5hih aain on7erted/rereated into ra5 pakets. This 5a Traffi!"uee#er si+uatese&at Traffi!"uee#er opti+i#ation in a non Traffi !"uee#er net5ork/infrastruture.

    Traffi!"uee#er 4iseaneous features

    TrafficSqueezer > 3akesift .outerA "uik +ake shift router an e "uik onfiured 7ia Traffi!"uee#er. Assu+e ou ha7e a od out-dated %aptop/;6 ou an onfiure as a "uik +akeshift router6 or as a akup router6 or a stand-router in ase on an e7ent of pri+ar ink ser7ie outae and so on. A +akeshift router not on hepsa ho+e user6 ut an hep e7en +iro and +ini usiness estaish+ents.

    Assu+e ou ha7e an out-dated aptop instaed 5ith %inu& distriution. *o5 assu+e ou ha7e so+e for+ ofinternet 4A/G ata ard6 the sa+e an e "uik used as a s+a offie or a ho+e router as sho5neo5:

    !harin the ink 5ith one or oupe of +ore sste+s 7ia an outdated aptop:

    !harin the ink 5ith a s+a >o+e or (ffie (= %A*:

    )A*,*G: ;ease note that durin a onfiuration ike this6 ( *(T enae Traffi!"uee#er data

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    25/27

    opti+i#ation features 5hih an ater the paket ontents na+e o+pression6 oaesin6 http-opti+i#ation6 traffi te+patin and so on.

    >o5e7er6 on a rihter side6 users an use Traffi!"uee#er other opti+i#ation tehni"ues suh as o!ser7ie6 Fire5a ser7ie6 http-ahin6 and so on6 this 5a users an ontro the internet sharin andoffer s+ooth data onneti7it 7ia ink sharin ike an other ad7ane +anaed router or net5orkappiane de7ie P

    Traffi!"uee#er !tatistis - ,nterpretation

    ,n this setion , a+ oin to disuss the 5a ou need to understand and interpret the Traffi!"uee#errun-ti+e statistis dispaed in the A"uariu+ GU,.

    #ere is te screensot of TrafficSqueezer Statistics:

    First ou need to understand is that there are 7arious ateories of statistis. !o+e of the+ arereated to Traffi!"uee#er statistis6 and so+e are atua a reak-up of eneri statistis. ,.e:

    (7era !tatistis o+pression !tatistis >TT; (pti+i#ation !tatistis Te+patin !tatistis

    oaesin !tatistis Fiter *! !tatistis ;aket !i#es !tatistis ,; ;rotoo !tatistis

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    26/27

    2N%.5SS:,nress denotes the fo5 of traffi fro+ %A* to )A*. >ene it is atua a fo5 fro+ ,nress to3ress6 5hih in short represented as C,*G3!!D. >ene ou shoud a5as interpret as ,nress-X3resstraffi fo5.

    5%.5SS:3ress denotes the fo5 of traffi fro+ )A* to %A*. >ene it is atua a fo5 fro+ 3ress to ,nress65hih in short represented as C3G3!!D. >ene ou shoud a5as interpret as 3ress-X,nress traffifo5.

    iret Traffi!"uee#er opti+i#ation statistis &acket Sizes Statistics:This is the +ost 5onderfu statistis than a. The reason is6 one Traffi!"uee#er is enaed6 5e ansee CTA*!,T,(*D of are pakets ettin on7erted into s+aer pakets in ,*G3!! fo5. )hereas s+apakets are ettin C33AT3D into are pakets in 3G3!! fo5. >ene it is a diret proof ofTraffi!"uee#er (pti+i#ation 2& &rotocol Statistics:As the na+e suests it is a si+pe ,; ;rotoo-5ise !tatistis. There is no fun in this statistis inreuar onte&t. But ho5e7er6 +an users do not kno5 that CTraffi!"uee#er is a paket enineerin tooesides a )A* (pti+i#ation soutionD6 in this onte&t if re"uired pakets an e hi?aked/haked6 andan e on7erted into T;-XU;6 and U;-XT; for+ats. ,t +a e 7er usefu in 7arious onte&ts in area 5ord senario6 to pass inter+ediate so-aed inteient net5orkin de7ies6 ,!6 ,;! sste+s.,f so it is done6 then ,; ;rotoo !tatistis is the on 5indo56 5e an see this transition in rea-ti+e.

    Buidin our o5n usto+ )A* (pti+i#ation ;rodut $ 5ith %inu&6 Traffi!"uee#er6and other (pen-!oure Tehnooies

    This setion is +ain for 7arious fir+s6 produt 7endors 5ho 5ant to uid their o5n )A* (pti+i#ation

    de7ie.

    Tis de'ice can $e a: dediated )A* (pti+i#ation e7ie V!AT e"uip+ent

  • 8/12/2019 TrafficSqueezer Aquarium Solar-Flare Guide v1.00.9

    27/27

    Traffi!"uee#er is a stateess net5ork stak. Ateast for no5 Traffi!"uee#er is a stateess stak6 i.eunike T;/,; stak6 it )O5S NOT+aintain an speifi state. This is done so6 so that it has e&eentpaket proessin perfor+ane. Aso it 5orks +uh ike a net5ork s5ith ut 5ith )A* (pti+i#ationapaiities.

    Traffi!"uee#er instaation in a ; 7s. Buidin a >ard5are e7ie ased Traffi!"uee#er )A*(pti+i#ation appiane:

    TrafficSqueezer: %eneric &/ 2nstallation TrafficSqueezer: /ustom $uilt #ardware )e'iceAppliance

    .ole:Traffi!"uee#er 5orks as a o+pete )A*(pti+i#ation !oution $ i.e oth data-paneand ontro pane o+ponents.

    .ole:Traffi!"uee#er an 5ork as oth data-pane andontro pae soution. (r ese6 Traffi!"uee#er an e+ade as iht-5eiht ontro-pane fra+e-5ork andoffoad the rea-ti+e hih-speed paket-proessin toan third-part hard5are hips.

    %ossess o+pression on hip 3nription on hip *et5ork ;roessor apaiities offoad

    %12/L2:Generi users an use the A"uariu+GU, patfor+ to ontro a the operations ofTraffi!"uee#er.

    Athouh it appears so+e features aredisaed6 the rea reason ehind it is topre7ent an ause. These an e haneddiret in the kerne ode ho5e7er. The aredisaed in A"uariu+ Traffi!"uee#er setion6so that users 5i not fae run-ti+e rashes.

    %12/L2:(7ious users need to repae A"uariu+6 andneed to support their o5n GU, 5ith their usto+ ook5hih an ontro entire de7ie