DOC PREVIEW
NU EECS 395 - The Minet TCP or IP Stack

This preview shows page 1-2-3-4-5 out of 15 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CS395-0,Section22 TheMinetTCP/IPStack Dinda,Fall2000 Page1of15TheMinetTCP/IPStackIntroductionTheMinetTCP/IPStackisintendedtosupportundergraduateandgraduatecoursesincomputernetworkingthatarebasedona“studentslearnbybuildingsomethingreal”pedagogicalmodel.ThespecificgoalsofMinetarethefollowing:• MinetenablesstudentstoimplementacompatibleTCP/IPstackthatdirectlycontrolstheEthernetdevice.• MinetletstheinstructorcontrolthedegreeofaccessstudentshavetotheEthernetdevice• Minetenablesstudentstowritelow-levelnetworkingcodewhilestillworkingattheuserlevelwithafamiliardevelopmentenvironment.• Minetdoesnotrequirestudentstopossessknowledgeofprocessorthreadcontrolorsynchronization.• MinetworksonLinuxandshouldbeeasilyportabletootherUnix-likeoperatingsystems.• MinetletstheinstructorcontrolthedifficultyofanassignmentbyselectivereleaseofC++classesandMinetmodules.TheMinetstackconsistsofacollectionofmodulesthatcommunicatewitheachotherusing,forthemostpart,fifosornamedpipes.Twospecialmodules,whicharerunasrootthroughtheUnixsuidmechanism,implementtheinjectionandextractionofrawEthernetpackets.Theinstructorcanmodifythesemodulesasnecessarytocontrolthepacketsthatstudentscansee.Inaddition,itisagoodideatouseaswitchedEthernetnetworktominimizeresourceconflicts.MinetHardwareandSoftwareRequirementsThefollowinghardwareisneededtouseMinet:• IntelPCcapableofrunningLinux(ideallyatleasttwosuchPCs)• EthernetcardsupportedbyLinux• Huborswitch(formorethanonemachine)ThefollowingsoftwareisneededtouseMinet.Otherversionsmayworkaswell.• RedHatLinux6.2(Thedefaultkernelwillwork.Ifyoubuildyourown,besuretoincludepacketsocketsandBerkeleypacketfilters)• GCC2.95.219991024releaseincludingSTL• GnuMake3.78.1• libpcap0.4-19• libnet1.0.1-bCS395-0,Section22 TheMinetTCP/IPStack Dinda,Fall2000 Page2of15reader writerwriterdevice_driverethernetethernet_muxip_modulearp_moduleip_muxother_moduletcp_moduleudp_modulesock_moduleSIGUSR1Socketpair(AF_UNIX)Signallibpcap libnetFifoPairRawEthernetPacket PacketARPRequestResponseSockRequestResponseipother_modlibminet_socketapplicationSockLibRequestResposeEthernetDeviceCS395-0,Section22 TheMinetTCP/IPStack Dinda,Fall2000 Page3of15DescriptionoftheMinetStackThefacingpageillustratesthestandardMinetconfigurationasofthedateofthiswriting.Minetconsistsofmodules(thelabeledboxes),whichareseparateexecutables.Thesemodulescommunicateusingpairedfifos(heavybi-directionalarrows).ThepartsofthefigurethatareingrayaremodulesthathavenotyetbeencompletedandarenotnecessaryforbasicTCP/IPfunctionality.Adashedlinewithinamodulerepresentsadivisionbetweenalibraryandusercode.Thisdescriptionisdividedintothreepieces.First,wedescribethedatatypesthatMinetprovides.Next,wedescribethemodules,whichareimplementedusingthesedatatypes.Finally,wedescribetheinterfacesbetweenthesemodules.DataTypesMinetprovidesanumberofdatatypestosimplifydevelopment.Thissectiondescribesthemostsignificantandoftenusedofthese.Generally,Minetdatatypesare“serializable”–theysupportthemethodsSerializeandUnserialize,whichsimplifywritingthemontoafiledescriptororreadingthemfromafiledescriptor.BufferandTaggedBuffer<T>TheBufferclassprovidesthebasicdatabufferingmechanism.ATaggedBufferissimplyaBufferwithanassociatedtagoftypeT.AbufferisbasedonanSTLcrope,whichisastringclassthatisoptimizedforrapidandeasyediting.EthernetConfigAnEthernetConfigisusedtoinitializethevirtualEthernetdevice.Itconsistsofadevicenumber,flags,andapointertotheinterruptserviceroutinethatthevirtualdevicewilltrapto.EthernetAddrThisprovidesaconvenientrepresentationofandtoolsformanipulating6byteEthernetaddresses.RawEthernetPacketTheRawEthernetPacketclassisthebasicmessagetypeforthelowerlevelsofthestack.Asthenameindicates,itrepresentsarawEthernetpacket.LiketheothermessageclassesinMinet,itprovidesserializationmethodstomakeinstanceseasytocommunicate.RawEthernetPacket::Serialize(constintfd)constwritesthepackettoafiledescriptor,whileRawEthernetPacket::Unserialize(constintfd)readsthepacketfromafiledescriptor.RawEthernetPacketBufferThisclassimplementsabuffer(orqueue)ofRawEthernetPackets.Thisisdeprecated.CS395-0,Section22 TheMinetTCP/IPStack Dinda,Fall2000


View Full Document

NU EECS 395 - The Minet TCP or IP Stack

Download The Minet TCP or IP Stack
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view The Minet TCP or IP Stack and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view The Minet TCP or IP Stack 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?