您好,欢迎访问三七文档
当前位置:首页 > 临时分类 > S的网络监控管理系统的设计与实现
华侨大学硕士学位论文基于C/S的网络监控管理系统的设计与实现姓名:郑燕生申请学位级别:硕士专业:计算机应用技术指导教师:吴金龙20060601C/S-2-Windows2000VisualC++6.0C/SWindowsWinSockClient/ServerBrowser/ServerCryptoAPIC/S-3-AbstractWiththeextensiveapplicationofcomputernetwork,themanagementoflocalnetworkbecomestheimportantcontentofnetworkmanagement.Byresearchingandanalysisoflocalnetworkmanagementrequirementandkeytechnologyofimplementindetail,thisarticleintroducesanewnetworkmanagementconceptcombingnetworkmonitoring,controlandmanagement,communicationfunction.AndthenanetworkmonitoringsoftwarebasedonWindows2000isdevelopedintheenvironmentofMicrosoftVisualC++6.0.Inthefirstchapter,thethesisintroducesthepresentsituationofnetworkmonitoringsystemandtheresearchcontentforthistopic.Inthechapter2,thethesisintroducesthekeytechnologies:technologyofmultithreading,communicationbetweenprocedures,networkcommunication,themessagesimulationofmouseactionandkeyboardinWindows2000system,capturingthescreenofremotecomputer,theencodinganddecodingofimagesandsoon..Thesearediscussedindetail:theselectionofnetworkcommunicationprotocol,theprincipleofWinSocknetworkprogrammeandtheimportantAPIfunctions.Inthechapter3,thethesisintroducesthedesignandimplementofthesystem,includingdesigningrequirement,thesystematicfunctions,andthedetailedimplementandtechnologyofeachmoduleofsystem.Inthechapter4,thethesistellsthedesignandimplementofthesafepartofthesystem.Throughencryptinganddecryptinginformation,thesystemguaranteesthesecretanddependabilityoftheinformation.Inthechapter5,thethesisintroducesthedebuggingoperationresultofthesystem,andanalysestheresult.Finally,Summarizethissystemandlookintothedistance.Keywords:Networkmonitoringandcontrol;Sockets;Client/ServerModel;Browser/ServerModel;CryptoAPIC/S-6-1.150%QQ1.21.2.1C/S-7-1.2.2//Client/ServerC/SBrowser/ServerB/S/C/S/B/SWebC/S/C/S1.2.3(1)PublicSwitchingTelephoneNetwordPSTNDigitalDataNetworkDDN(Time-DivisionMultiplexingTDM)C/S-8-()(2)GSMCDMA1.31.3.1TelegardenC/S-9-RS-485(Tele-ServiceBureau)1.3.2(1)GartnetGroup20062(2)(3)(4)1.4C/S-10-IDC19986.7720021931.5%3WinSockC/SVisualC++6.0WindowsXPMFCMicrosoftFoundationClass/(TransmissionControlProtocolTCP)WinSock(1)WinsockWinsockAPI(2)(3)(4)(5)VisualC++6.0(6)VisualC++6.0CryptoAPIC/S-11-2.1TCP/IPTCP/IP2060TCP/IPTCP/IPOpenSystemInterconnectionOSI2.1.1TCP/IPTCP/IP42-1[1]2-1TCP/IP(1)AddressResolutionProtocolARPReverseAddressResolutionProtocolRARP(2)IPIPTCP/IPInternetProtocolIPInternetInternetControlMessageProtocolICMPInternetInternetC/S-12-GroupManagementProtocolIGMP(3)TCP/IPTCPUserDatagramProtocolUDPTCPUDP(4)TCP/IPTelnetFileTransferProtocolFTPSimpleMailTransferProtocolSMTPSimpleNetworkManagementProtocolSNMP2.1.2(1)UDPUDPUDPUDPIP[3]UDPUDPUDPTCP/IP(DomainNameServerDNS)(TrivialFileTransferProtocolTFTP)SNMPUDPUDPUDPReal-timeTransportProtocolRTPUDPC/S-13-(2)TCPIPTCP/IPUDPIPUDPIP[3]UDPTCPIPTCPTCPTCPIPTCPTCPTCP2.1.3TCPUDPUDPTCPTCPTCPUDPInternetTCPUDPTCPTelnetFTPUDPTCPTCPUDPUDP2.2/C/S-14-/C/SB/S/C/SB/S2.2.1C/SC/S(1)C/SC/SC/SC/SC/SC/SC/SC/S(2)C/SC/S/C/S[5]C/SC/S-15-/2-22-2C/SC/SC/SC/SC/SC/SC/S2.2.2B/SInternet/IntranetWebC/SWebB/SB/S2-3C/S-16-2-3B/SB/SWebC/SWebIEHTMLWebWebHTMLWebWebB/S(1)C/SWebHTTPWebC/SB/SWebWebC/S-17-(2)C/SB/SB/S2.2.3C/SB/SC/S2-2C/SC/SB/SInternetWebWebWebWebHTML2-3WebC/S2.3Winsock(Sockets)BerkeleyUNIXUNIXTCP/IPC/S-18-()()[4]WinsockInternetTCP/IP2-42-52-42-4acceptconnectWinsock(1)WinsockWinsockWSAStartupSocket()Bind()Listen()Accept()Read()Write()Closesocket()Socket()Connect()Write()Read()Closesocket()C/S-19-Winsock(2)socketbind5(3)socketconnectlistenaccept(4)writewritevsendsendtosendmsgreadreadvrecvrecvfromrecvmsg(5)WinsockclosesocketWSACleanup2-52-5Socket()Bind()Readfrom()Sendto()Closesocket()Socket()Bind()Sendto()Readfrom()Closesocket()C/S-20-2.4Winsock[2]2.4.1WinsockTCP/IPTCP/IPWinsockAPIWinsockAPITCP/IPWinsockAPIBerkeleyWindowsWindowsWindows[5]WinsockAPIWinsockSOCKETSOCKETWinsock2-62-6Winsock2.4.2WinsockVCWinsockAPIWinsock2.hws_32.libws2_32.dllWinsock2.hWinsockAPIws_32.libWinsockAPIws2_32.dllWinsockWindowsWinsockAPITCP/IPC/S-21-Winsock(1)WinsockWSAStartup()intPASCALFARWSAStartup(WORDwVersionRequestedLPWSADATAlpWSAData)WinsockWinsockDLLWSAStartup()WinsockDLLWinsockWinsockWinsockDLLSOCKET_ERRORwVersionRequestedWinsocklpWSADataLPWSADATAWinSocket2.0WSADATAwsaData;if(WSAStartup(MAKEWORD(2,2),&wsaData)!=0){return-1;}if(LOBYTE(wsaData.wVersion)!=2||HIBYTE(wsaData.wVersion)!=2){WSACleanup();return-1;}(2)socket()SocketSocketSOCKETPASCALFARsocket(intafinttypeintprotocol)afUNIXAF_UNIXAF_INETAF_NSWindowsAF_INETInternettypeSOCK_STEAMSOCK_DGRAMprotocol0SocketINVALID_SOCKETWSAGetLastError()C/S-22-m_sSocket=socket(AF_INET,SOCK_STREAM,0);if(m_sSocket=0){err=WSAGetLastError();returnFALSE;}(3)bind()InternetIP0~65536IPintPASCALFARbind(SOCKETsconststructsockaddrFAR*addr,intnamelen)saddrsockadd_inIPnamelenaddrbind()0SOCKET_ERRORIPlocal.sin_addr.s_addr=htonl(INADDR_ANY);local.sin_family=AF_INET;local.sin_port=htons(port);if(bind(m_sServer,(structsockaddr*)&local,sizeof(local))==SOCKET_ERROR){err=WSAGetLastError();closesocket(m_sServer)
本文标题:S的网络监控管理系统的设计与实现
链接地址:https://www.777doc.com/doc-6211925 .html