嵌入式系统的网络服务器外文文献翻译.docx

上传人:b****2 文档编号:1660442 上传时间:2023-05-01 格式:DOCX 页数:20 大小:693.80KB
下载 相关 举报
嵌入式系统的网络服务器外文文献翻译.docx_第1页
第1页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第2页
第2页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第3页
第3页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第4页
第4页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第5页
第5页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第6页
第6页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第7页
第7页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第8页
第8页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第9页
第9页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第10页
第10页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第11页
第11页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第12页
第12页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第13页
第13页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第14页
第14页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第15页
第15页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第16页
第16页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第17页
第17页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第18页
第18页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第19页
第19页 / 共20页
嵌入式系统的网络服务器外文文献翻译.docx_第20页
第20页 / 共20页
亲,该文档总共20页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

嵌入式系统的网络服务器外文文献翻译.docx

《嵌入式系统的网络服务器外文文献翻译.docx》由会员分享,可在线阅读,更多相关《嵌入式系统的网络服务器外文文献翻译.docx(20页珍藏版)》请在冰点文库上搜索。

嵌入式系统的网络服务器外文文献翻译.docx

嵌入式系统的网络服务器外文文献翻译

TheDIL/NetPCsDNP/1110–UsingtheEmbeddedLinux

 

WebServerforEmbeddedSystems

 

Afterthe“everybody-in-the-Internet-wave”nowobviouslyfollowsthe

“everything-in-the-Internet-wave”.Themostcoffee,vendingandwashingmachinesarestillnotavailableabouttheworldwidenet.HowevertheembeddedInternetintegrationforremotemaintenanceanddiagnosticaswellastheso-calledM2Mcommunicationisgrowingwithaconsiderablespeedrate.

JusttheremotemaintenanceanddiagnosticofcomponentsandsystemsbyWebbrowsersviatheInternet,oralocalIntranethasaveryhighweightformanydevelopmentprojects.InnumerousdevelopmentdepartmentspeopleworkoncompletelyWebbasedconfigurationsandservicesforembeddedsystems.TheremainingdaysoftheclassicuserinterfacemadebyasmallLC-displaywithfrontpanelandafewfunctionkeysareover.ThroughfutureevolutionsinthefieldofthemobileInternet,Bluetooth-basedPANs(PersonalAreaNetwork's)andtherapidlygrowingM2Mcommunication(M2M=Machine-to-Machine)afurtherinnovatingadvanceistobeexpected.

ThecentralfunctionunittogetaccessonanembeddedsystemviaWebbrowseristheWebserver.SuchWebserversbringthedesiredHTMLpages(HTML=HyperTextMarkupLanguage)andpicturesovertheworldwideInternetoralocalnetworktotheWebbrowser.ThishappensHTTP-based(HyperTextTransferProtocol).ATCP/IPprotocolstack–thatmeansitisbasedonsophisticatedandestablishedstandards–managestheentirecommunication.Webserver(HTTPserver)andbrowser(HTTPclient)buildTCP/IP-applications.HTTPachievedaphenomenaldistributioninthelastyears.MeanwhilemillionsofuseraroundtheworldsurfHTTP-basedintheWorldWideWeb.Todayalmosteverypersonalcomputeroffersthenecessaryassistanceforthisprotocol.Thisstatusisvalidmoreandmoreforembeddedsystemsalso.TheHTTPspreadsupwithafastratetoo.

TheDIL/NetPCsDNP/1110–UsingtheEmbeddedLinux

 

1.TCP/IP-basedHTTPasCommunicationPlatform

 

HTTPisasimpleprotocolthatisbasedonaTCP/IPprotocolstack(picture1.A).HTTPusesTCP(TransmissionControlProtocol).TCPisarelativecomplexandhigh-qualityprotocoltotransferdatabythesubordinateIPprotocol.TCPitselfalwaysguaranteesasafeguardedconnectionbetweentwocommunicationpartnersbasedonanextensivethree-way-handshakeprocedure.AsaresultthedatatransferviaHTTPisalwaysprotected.DuetotheextensiveTCPprotocolmechanismsHTTPoffersonlyalow-gradeperformance.

Figure1:

TCP/IPstackandHTTPprogrammingmodel

HTTPisbasedonasimpleclient/server-concept.HTTPserverandclientcommunicateviaaTCPconnection.AsdefaultTCPportvaluetheportnumber

80willbeused.Theserverworkscompletelypassive.Hewaitsforarequest

(order)ofaclient.ThisrequestnormallyreferstothetransmitionofspecificHTMLdocuments.ThisHTMLdocumentspossiblyhavetobegenerateddynamicallybyCGI.Asresultoftherequests,theserverwillanswerwitharesponsethatusuallycontainsthedesiredHTMLdocumentsamongothers

(picture1.B).

 

GET/test.htmHTTP/1.1

Accept]:

image/gif,image/jpeg,*/*Usersellingagent:

Mozilla/4.0

Host:

192.168.0.1

 

Listing1.A:

HTTPGET-request

 

HTTP/1.1200OK

Date:

Mon,06Dec199920:

55:

12GMTServer:

Apache/1.3.6(Linux)

Content-length:

82

Content-type:

text/html

Test-Seite

Test-Seite

TheDIL/NetPCsDNP/1110–UsingtheEmbeddedLinux

 

Listing1.B:

HTTPresponseasresultoftheGET-requestfromlisting1.A

HTTPrequestsnormallyconsistofseveraltextlines,whicharetransmittedtotheserverbyTCP.Thelisting1.Ashowsanexample.Thefirstlinecharacterizestherequesttype(GET),therequestedobject(/test1.htm)andtheusedHTTPversion

(HTTP/1.1).Inthesecondrequestlinetheclienttellstheserver,whichkindoffilesitisabletoevaluate.Thethirdlineincludesinformationabouttheclient-software.Thefourthandlastlineoftherequestfromlisting1.AisusedtoinformtheserverabouttheIPaddressoftheclient.Inaccordingtothetypeofrequestandtheusedclientsoftwaretherecouldfollowsomefurtherlines.Asanendoftherequestablanklineisexpected.

TheHTTPresponsesasrequestanswermostlyconsistoftwoparts.Atfirstthereisaheaderofindividuallinesoftext.Thenfollowsacontentobject(optional).Thiscontentobjectmaybeconsistsofsometextlines–incaseofaHTMLfile–orabinaryfilewhenaGIForJPEGimageshouldbetransferred.Thefirstlineoftheheaderisespeciallyimportant.Itworksasstatusorerrormessage.Ifanerroroccurs,onlytheheaderorapartofitwillbetransmittedasanswer.

 

2.FunctionalprincipleofaWebServer

 

SimplifiedaWebservercanbeimaginedlikeaspecialkindofafileserver.Picture2.Ashowsanoverview.TheWebserverreceivesaHTTPGET-requestfromtheWebbrowser.Bythisrequest,aspecificfileisrequiredasanswer(seestep1intopicture2.A).Afterthat,theWebservertriestogetaccessonthefilesystemoftherequestedcomputer.Thenitattemptstofindthedesiredfile(step2).AfterthesuccessfulsearchtheWebserverreadtheentirefile(step3)andtransmititasananswer(HTTPresponsecomprisingofheaderandcontentobject)totheWebbrowser(step4).IftheWebservercannotfindtheappropriatefileinthefilesystem,anerrormessage(HTTPresponsewhichonlycontainstheheader)issimplybesendasresponsetotheclient.

 

Figure2:

FunctionalprinciplefromWebserverandbrowser

 

TheDIL/NetPCsDNP/1110–UsingtheEmbeddedLinux

 

Thewebcontentisbuildbyindividualfiles.ThebaseisbuildbystaticfileswithHTMLpages.WithinsuchHTMLfilestherearereferencestofurtherfilesembedded–thesefilesaretypicallypicturesinGIForJPEGformat.However,alsoreferencestootherobjects,forexampleJava-Applets,arepossible.AfteraWebbrowserhasreceivedaHTMLfileofaWebserver,thisfilewillbeevaluatedandthensearchedforexternalreferences.Nowthesteps1to4frompicture2.AwillrunagainforeveryexternalreferenceinordertorequesttherespectivefilefromthecorrespondingWebserver.Pleasenote,thatsuchareferenceconsistsofthenameorIPaddressofaWebserver(e.g.""),aswellasthenameofthedesiredfile(e.g."picture1.gif").SovirtuallyeveryreferencecanrefertoanotherWebserver.Inotherwords,aHTMLfilecouldbelocatedontheserver"ssv-embedded.de"buttherequiredpicture-whichisexternalreferencedbythisHTMLfile-islocatedontheWebserver

"".Finallythis(worldwide)networkingofseparateobjectsisthecauseforthenameWorldWideWeb(WWW).Allfiles,whicharerequiredbyaWebserver,arerequestedfromabrowserliketheprocedureshownonpicture

2.A.Normallythesefilesarestoredinthefilesystemoftheserver.The

Webmasterhastoupdatethesefilesfromtimetotime.

AfurtherelementaryfunctionalityofaWebserveristheCommonGatewayInterface(CGI)-wehavementionedbefore.Originallythistechnologyismadeonlyforsimpleforms,whichareembeddedintoHTMLpages.Thedata,resultingfromthepaddingofaform,willbetransmittedtoaWebserverviaHTTP-GETorPOST-request(seestep1intopicture2.B).InsuchaGET-orPOST-requestthenameoftheCGIprogram,whichisneededfortheevaluationofaform,isfundamentallyincluded.ThisprogramhastobeontheWebserver.Normallythedirectory"/cgi-bin"isusedasstoragelocation.

AsresultoftheGET-orPOST-requesttheWebserverstartstheCGIprogramlocatedinthesubdirectory"/cgi-bin"anddeliversthereceiveddatainformofparameters(step2).TheoutputsofaCGIprogramareguidedtotheWebserver

(step3).ThentheWebserversendsthemallasresponsestotheWebbrowser

(step4).

 

3.DynamicgeneratedHTMLPages

 

IncontradictiontoacompanyWebsiteserver,whichinformspeopleabouttheproductprogramandservicesbystaticpagesandpictures,anembeddedWebserverhastosupplydynamicallygeneratedcontents.TheembeddedWebserverwillgeneratethedynamicpagesinthemomentofthefirstaccessbyabrowser.HowelsecouldwechecktheactualtemperatureofasystemviaInternet?

StaticHTMLfilesarenotinterestingforanembeddedWebserver.ThemostinformationaboutthefirmwareversionandserviceinstructionsarestoredinHTMLformat.AllothertasksarenormallymadeviadynamicgeneratedHTML.

TherearetwodifferenttechnologiestogenerateaspecificHTMLpageinthemomentoftherequest:

Firsttheso-calledserver-side-scriptingandsecondtheCGIprogramming.Attheserver-side-scripting,scriptcodeisembeddedintoaHTMLpage.Ifrequired,thiscodewillbecarriedoutontheserver(server-sided).

 

TheDIL/NetPCsDNP/1110–UsingtheEmbeddedLinux

 

Forthis,therearenumerousscriptlanguagesavailable.AlltheselanguagesareusableinsideaHTML-page.IntheLinuxcommunityPHPisusedmostly.ThefavouriteofMicrosoftisVBScript.ItisalsopossibletoinsertJavadirectlyintoHTMLpages.SunhasnamedthistechnologyJSP(JavaServerPages).TheHTMLpagewiththescriptcodeisstaticallystoredinthefilesystemoftheWebserver.Beforethisserverfileisdeliveredtotheclient,aspecialprogramreplacestheentirescriptcodewithdynamicgeneratedstandardHTML.TheWebbrowserwillnotseeanythingfromthescriptlanguage.

 

Figure3:

SinglestepsoftheServer-Side-Scripting

Picture3showsthesinglestepsoftheserver-side-scripting.Instep1theWebbrowserrequestsaspecif

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 人文社科 > 法律资料

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2