您好,欢迎访问三七文档
当前位置:首页 > 临时分类 > 基于Java的IPv4IPv6双协议栈的研究与实现[1]
1004-9762200502-0163-05JavaIPv4IPv6!014010JavaIPv6TP393AIPv4IPv6Java..StudyandimplementationofIPV4IPV6dual-stackbasedonjaVaJINRongSUNLi-yanInformationEngineeringSchoolUSTInnerMongoliaBaotou014010ChinaKeywordsDual-stackJavaIPv6sockettransitiontechnologyAbstractDual-stackisoneofthemaintechnologiesusedbyIPv4transitiontoIPv6becauseofitstransparentautomaticandcross-platformcharacteristic.Javalanguagehasbettersupportfortheimplementationofdual-stack.Theimplicationmechanismofdual-stackwasresearchedanddescribedwiththepropermethodprovided.IPv61..20022J2SE1.4JavaSolarisLinuxIPv6WindowsIPv6J2SE1.5.IPv6CC++Java21JavaIPv4IPv6.2JavaIPv6.3IPv6.1IPv4IPv6IPv6IPv6.IPv4IPv6IPv6IPv4IPv6.IETFInternetIPv4IPv6.IPv4IPv63!61DualStackIPv4IPv6.26to46over4.IPv4IPv6IPv6IPv4IPv4IPv6IPv4IP.IPv4IPv63.3NAT-PTNetworkAddressTranslation-Pro-tocolTranslation.IPv6.20056242JournalofBaotouUniversityofIronandSteelTechnologyJune2005Vol.24No.2!2004-12-151960-...IPV4IPV6IPV4IPV4IPV6IPV6.IPV6IPV4IPV6NAT-PT.2IPV4IPV6IPV4.IPV4IPV6IPV4IPV6.1.1Fig.1TypeofnodesIPV4IPV65!7.21IPV4IPV4IPV4IPV6IPV6IPV6.IPIPV4-IPV4IPV6-IPV6IPV4IPV6.2IPIPV4IPV6IPV4IPV6.IPV4IPV6IPV4IPV6IPV4X.Y.Z.WIPV4IPV6FFFFX.Y.Z.W.3JaVa3.1IPV6IPV6.IPV4IPV6IPV6.2.2Fig.2Thesystemnetworktopology3.2JaVaJaVa..JaVaJaVa8!10.Socket46120056242TCPIPSocketaPITCPIPJava.Java1IntaddressIntaddress.IntaddressIP.IPv4IPv6Int4addressInt6address.2SocketSocketSocket.Socket2!SocketStringintSocket.SocketInetaddressintInternetSocket.3ServerSockServerSocket.ServerSocket2!ServerSockintServerSock.ServerSockintintServerSockint.Java3.3Fig.3Streamsocketcommunicativeflowchart3.3Java10SocketaddressnameportServersocketpotraccept.IPv4TCPIPv6TCP.URLStep1object=getURLStep2ifobject==IPJudgeIPaddrelseifobject==addr=parseJudgeIPaddrelseexitIPv6IPv4.JudgeIPaddressobject561JavaIPvIPv6ifobject==IPV4connectInet4addressportIPV4TCPapplicationelseifobject==IPV6connectInet6addressportIPV6TCPapplicationelseexitIPV4IPV6IPV6DNS11RFC1886DNSAAAA4AIPV6.AAAA128IPV632IPV44.DNSAAAAA.3.4JaVaIPV61Solaris8.2Linux2.1.22.4.0IPV6.3WindoWsXPsp1WindoWs200312.JaVaJaVaIPV6..SocketechoSocket=nullPrintWriterout=nullBufferedReaderin=nulltryechoSocket=neWSocketsunny80out=neWPrintWriterechoSocket.getout-putStreamtruein=neWBufferedReaderneWnputStream-Readerecho.Socket.getInputStreamcatchUnknoWHostexceptioneSystem.err.printlnCouldlontgetIofor+theconnectontosunny.System.exit1communicateWithechoSerVeroutinout.closein.closestdln.closeechoSocket.closeIPV4sunnyIPV6IPV6IPV612.CC++IPV6.2IPV6IPV42IPV4IPV6.CC++SolarisLinuxWindoWs.JaVa..JaVa.4IPV6.IPV6.IPV6CC++JaVaJaVaJaVaIPV6.661200562421InternetProtocolVersion6EB0L.http!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!50-53.1623FandhauserPFemandezMMalhotraAetal.TheXMLGueryAlgebraEB0L.http双协议栈的研究与实现作者:靳荣,孙丽艳,JINRong,SunLi-yan作者单位:内蒙古科技大学,信息工程学院,内蒙古,包头,014010刊名:包头钢铁学院学报英文刊名:JOURNALOFBAOTOUUNIVERSITYOFIRONANDSTEELTECHNOLOGY年,卷(期):2005,23(2)参考文献(11条)1.陈世清IPv4到IPv6的过渡策略及其测试[期刊论文]-湖南工程学院学报(自然科学版)2004(01)2.张爱华IPv6协议下域名系统的扩展与实现[期刊论文]-微机发展2004(07)3.邹建峰基于双栈的IPv6翻译方案即实现[期刊论文]-计算机工程与应用2003(02)4.刘弈;赵文清;姜波基于SOCKET的Java语言网络通信机制和程序设计1999(05)5.LeeSRFC3338,2002,dUALsTACKhSINGBump-in-the-API(BIA)20026.TsuchiyaKDualStackHostsusingtheBump-in-the-StackTechnique(BIS)20007.GilliganRTransitionMechanismsforIPv6HostsandRouters19968.HindenRTransactionInternetProtocol-RequirementsandSupplementalInformation19989.IPv6TransitionTechnology200410.Java套接字编程200411.InternetProtocolVersion62004本文链接:
本文标题:基于Java的IPv4IPv6双协议栈的研究与实现[1]
链接地址:https://www.777doc.com/doc-5481379 .html