2020/2/25APVTechnicalTrainingChapter02-1–IntroductiontoServerLoadBalancing2020/2/252ObjectivesTounderstandServerLoadBalancingconcepts.BasicNetworkTopologies2020/2/253TopicsUnit1:WebConceptsUnit2:BasicServerLoadBalancingConceptsandConfigurationUnit3:AdditionalServerLoadBalancingConceptsandConfiguration2020/2/254Unit1:WebConceptsTCP3-WayHandshakeHostNamesandDomainNamesHTTPandHTTPSHostNamesandDNSURLHAPVLWebPageObjectsCookies2020/2/255TCP3-WayHandshakeUnderstandinghowTCPnegotiatesaconnectionClientTCPSYN,Dport:80/Sport:xxxxWebserviceTCPSYN-ACK,Dport:xxxx/Sport:80TCPACK,Dport:80/Sport:xxxxDataFlowTCPFIN-ACK,Dport:80/Sport:xxxxTCPFIN,Sport:80/Dport:xxxxTCPACK,Sport:80/Dport:xxxxOpeningaTCPConnectionClosingaTCPConnection2020/2/256HTTPandHTTPSHTTP(HyperTextTransportProtocol)istheprotocolwhichallowsdatarequests(suchasHAPVLpages)andresponsestobetransmitted.HTTPistransportedoverthenetworkinTCP/IPpackets•Well-knownportisTCP/80,butcanrunonanyTCPportHTTP1.0andHTTP1.1differences•HTTP1.1allowsmultipleGETrequeststobesentonthesameTCPconnectiontoreducelatencycausedbyconnectionsetup/teardownforeachrequest(asinHTTP1.0).•HTTP1.1introducescachecontroloptionsintheHTTPheadersHTTPS(HTTPoverSSL)allowsHTTPcommunicationstobesecured(encryptionandauthentication).2020/2/257HTTP1.1PersistencePackettraceshowing:TCPhandshakeMultipleHTTP1.1GETrequestsoverthesameTCPconnection(clientsourceport1368)2020/2/258HTTPStatusCodesExamplesofCommonHTTPReturnCodes100(Continue)•Promptstheclienttocontinuesendingrestoftherequest.200(OK)•Therequestwassuccessfulandcontentwillbereturned.302(MovedTemporarily)•Therequestedresourcehasmoved,butfuturerequestsshouldcontinuetocometotheoriginalURI.SuppliesatemporaryURIforthatresource.304(NotModified)•Cachedcopiesoftheresourcearestillvalidforreuse.404(NotFound)•TheresourceindicatedbytheURIisnotavailableontheservice.503(ServiceUnavailable)•Theserviceistemporarilyunabletorespondtotherequest.•ReturnedbytheAPVwhenitcannotfindavalidbackendservice.2020/2/259HTTPHeadersHTTPHeadersDefinetherulesandprovideinformationaboutthedatarequest/responseClientHTTPHeaderexamples:•Cookie:name=value;•If-Modified-Since:Mon,17April200114:12:22GMT•Host:serviceHTTPHeaderexamples:•Set-Cookie:name=value;options•Last-Modified:Wed,21March200109:30:01GMT•Cache-Control:max-age=2314(inseconds)2020/2/2510HTTPTransactionExamplePackettraceshowingHTTPGETandResponseGETrequestHostHeader200OK2020/2/2511HostNameNamegiventoanapplicationserviceornetworkdevice.Anynamecanbeused,butmostInternetserviceshavestandardnamessuchasDomainNameNamegiventoidentifyanentityororganization.•Example:arraynetworks.netCommontop-leveldomains:.com,.org,.net,.co.jp,.or.jp,.ne.jpAFullyQualifiedDomainName(FQDN)consistsofahostnameanddomainnamecombinationwhichuniquelyidentifiesahostwithinanorganization.Format:host-name.domain-nameExample:(DNS)DNStranslatesanFQDNtoanIPaddressExample:DNSnamesusedtoaccessInternethostsMucheasiertorememberanamethananIPaddressArequestforatranslationiscalledaDNSquery.DNSRecordtypesA(Address)–AssociatehostnametoanIPaddress.MX(MailExchanger)–Referstomailservicesforthedomain.NS(Nameservice)–ReferstoDNSservicesforthedomain.PTR(Pointer)–AssociateIPaddresstoahostname.Etc…2020/2/2513URLURL(UniformResourceLocator)specifiesaprotocol,host,andresourceFormat:protocol://host/resourceExamples:•••HAPVL(HyperTextMarkupLanguage)isthe‘language’inwhichWebpagesarewritten.Example::•hAPVl•head•titleTestPage/title•/head•body•Thisisatest•/body•/hAPVl2020/2/2515WebPageObjectsWhatisonaWebpage?AWebpageiscomprisedofmany“objects”whicharefetchedbyseparateHTTPGETrequestsinthebackgroundTheArrayADCApplianceisanintegratedwebtrafficmanagementappliancethatacceleratesandstreamlinesthedeliveryofwebcontentforwebsiteswiththroughputreachingupto750Mbps.Designedfromthegrounduptointegratekeywebnetworkingfunctionsthatworktogetherseamlesslyforhighperformance,reliability,andscalabilityArrayNetworks’patent-pendingappliancesimplifiessiteoperations,reducingoreliminatingmanyoftheproblemsassociatedwithtraditionalmultiplevendordeployments.Staticimages(.jpg/.gif)ImageswithlinkstootherpagesTextProducts2020/2/2516CookiesAcookieisatextstringthatiscreatedbyawebserviceandsenttoawebbrowser.UsedasamethodformaintainingstateontheWebExample:•Storeusernameincookieonthefirstvisittoawebsite.Onthenextvisittothesamesite,youreceiveacustomwelcomepage.•Storeshoppingcartinformation.•servicepersistencysofuturerequestsgobacktosameservice.AcookieconsistsofaName=ValuecombinationExampleCookie:SID=service3CookietypesTemporarycookie:Deletedwhenwebbrowserisclosed.Permanentcookie:Notdele