《 计 算 机 网 络 》
|
|
- 棉 宗
- 5 years ago
- Views:
Transcription
1 1
2 BOSON NETSIM BOSON NETSIM CISCO IP Socket 2
3 WINDOWS SOCKET SOCKET SOCKET WSASTARTUP SOCKET BIND LISTEN ACCEPT CONNECT SEND RECV SENDTO RECVFROM CLOSESOCKET WINDOWS SOCKET WINSOCK WINSOCK WINSOCK
4 4
5 1.1 IP IP / VLAN 1.2 Boson Netsim Boson Netsim Boson Netsim 5
6
7 IP PC1 PC PC3~PC
8 PC PC IP PC1 PC PC3,PC5,PC PC4,PC6,PC PC 1.2 RIP PC IP PC PC PC PC IP RIP PC 8
9 OSPF PC VLAN VLAN VLAN VLAN A 2 VLAN PC3 PC5 PC7 VLAN PC4 PC6 PC8 VLAN PC A VLAN PC PC1 PC2 VLAN1 VLAN2 A VLAN PC ACL 9
10 1 PC1 PC PC PC1 PC1 PC2 PC Telnet PC3 10
11 Boson NetSim 2.1 Boson NetSim Boson Cisco Boson Network Designer Boson NetSim Boson NetSim Boson NetSim Boson NetSim Boson Network Designer 11
12 Boson Network Designer File Wizard Help File (New NetMap) (Load NetMap) 12
13 (Save).top (Load NetMap into the Simulator) Boson NetSim Boson NetSim (Print) Exit Boson Network Designer Wizard (Make Connection Wizard) (Add Device Wizard) Help 13
14 (Help Topic) (Legend) ISDN 2.2 (User Manual) (About) Cisco Cisco 14
15 Ethernet Serial ISDN PC Win98 15
16 Ethernet 0 Ethernet 0/0 Ethernet Fast Ethernet
17
18 /
19 WAN Router n Switch n PC PC n WAN1 19
20 None
21 Delete Device
22
23 Ethernet Serial ISDN
24 Add Connection to
25 2.12 Device Statistics
26 Disconnected Interfaces Connect this interface Remove Connection to
27 2.3 Boson NetSim Boson NetSim 27
28 2.3.2 PC
29
30
31 Cisco IOS
32
33 3.2 IP 1. IP 33
34 HDLC 2. RIP 1 3. OSPF 34
35 4. 35
36 Router1-C2620 SW1-C2950 E0: 172Fa0/ Fa0/2 Fa0/2 SW2-C3550 Fa0/3 Fa0/4 Fa0/3 Fa0/4 PC1 PC2 PC3 PC IP IP router1 C2610 E switch1 Catalyst 2950 vlan switch2 Catalyst 3550 vlan PC PC
37 PC PC PC1 PC3 PC2 PC4 PC1 PC3 PC2 PC VLan 1. SW1-C2950 SW2-C3550, class VTP. show vtp status SWX-C2950# vlan database // VLAN SWX-C2950(vlan)# vtp domain class // class SWX-C2950(vlan)# ctrl-z SWX-C2950# show vtp status // // VTP SW2-C SW1-C2950 SW2-C3550 Class1 VLAN 2 Class2 VLAN 3 SWX-C2950# vlan database SWX-C2950(vlan)# vlan 2 name Class1 // 37
38 vlan2 Class1 SWX-C2950(vlan)# vlan 3 name Class2 SWX-C2950# show vlan // Vlan SW2-C SW1-C2950 SW2-C3550 VLAN SW1-C2950(config)# interface fa0/3 // fa0/3 SW1-C2950(config-if)# switchport mode access // SW1-C2950(config-if)# switchport access vlan 2 // vlan2 SW1-C2950(config-if)# exit PC1 PC2 SW1-C2950(config)# interface fa0/4 SW1-C2950(config-if)# switchport mode access SW1-C2950(config-if)# switchport access vlan 3 SW1-C2950(config-if)# ctrl-z SW1-C2950# show vlan SW2-C SW1-C2950 SW2-C3550 trunk 38
39 SWX-C2950(config)# interface fa0/2 SWX-C2950(config-if)# switchport mode trunk // SWX-C2950(config-if)# switchport trunk encap dot1q // dot1q SW2-C VLAN 1. IP Router Router enable E Router1(config)# int E0 Router1(config-if)# no shutdown Router1(config-if)# exit Router1(config)# int E0.1 Router1(config-subif)# ip addr Router1(config-subif)# exit Router1(config)# int E0.2 Router1(config-subif)# ip addr Router1(config-subif)# end 39
40 2. Router E0.1 VLAN vlan2. E0.2 VLAN vlan3 Router1(config)# int E0 Router1(config-if)# Router1(config-if)# exit Router1(config)# int E0.1 Router1(config-if)# encap dot1q 1 Router1(config-if)# exit Router1(config)# int E0.2 Router1(config-if)# encap dot1q 2 Router1(config)# int E0.3 Router1(config-if)# encap dot1q 3 40
41 S0 S1 S0 E0 S S S E E0 E E S 1 E S0 DCE S1 DTE 41
42 4.2.2 RIP OSPF PC1 PC2 PC3 Router 1 ACL PC1 Router 1 ACL PC1 PC2 FTP RIP OSPF RIP 1 Router1 Router> Router>enable // Router#conf t // Router(config)#interface e0 // E0 Router(config-if)#ip address // E0 Router(config-if)#no shut // E0 Router(config-if) #int s0 // E1 Router(config-if)#ip address Router(config-if)#cl ra // Router(config-if)#no shut 42
43 Router(config-if)#end // Router#show ip route // Router2 Router> Router>enable // Router#conf t // Router(config)#interface S1 // S1 Router(config-if)#ip address // S1 Router(config-if)#no shut // S1 Router(config)#interface S0 // S0 Router(config-if)#ip address // S0 Router(config-if)#cl ra // Router2 DCE // Router(config-if)#no shut // E0 Router(config-if) #int e0 // E0 Router(config-if)#ip address Router(config-if)#no shut Router(config-if)#end // Router#show ip route // Router3 Router> Router>enable // Router#conf t // Router(config)#interface e0 // E0 Router(config-if)#ip address // E0 Router(config-if)#no shut // E0 Router(config-if) #int s1 // S1 Router(config-if)#ip address
44 Router(config-if)#no shut Router(config-if)#end Router#show ip route Router# // // 2 RIP Router1 RIP Router#conf t // Router(config)#router rip Router(config-router)#network Router(config-router)#network Router(config-router)#end Router2 RIP Router#conf t // Router(config)#router rip Router(config-router)#network Router(config-router)#network Router(config-router)#network Router(config-router)#end Router3 RIP Router#conf t // Router(config)#router rip Router(config-router)#network
45 Router(config-router)#network Router(config-router)#end 3 PC PC1,PC2,PC3 winipcfg C:>winipcfg IP OSPF Router1 OSPF Router#conf t // Router(config)#router ospf 1 // ospf Router(config-router)#network area 0 // Router(config-router)#network area 0 Router(config-router)#end Router#copy run startup Router2 OSPF Router#conf t // Router(config)#router ospf 50 // ospf 50 45
46 Router(config-router)#network area 0 Router(config-router)#network area 0 Router(config-router)#network area 0 Router#copy run startup Router(config-router)#end Router3 OSPF Router#conf t // Router(config)#router ospf 51 Router(config-router)#network area 0 Router(config-router)#network area 0 Router(config-router)#end ACL Router1 PC1 Router#conf t Router(config)#access-list 10 deny host Router1(config-if)#access-list 10 permit any Router1(config-if)#interface e0 Router1(config-if)#ip access-group 10 in Router1 PC1 46
47 PC2 FTP Router#conf t Router(config)#access-group 11 deny any host eq telnet Router(config)#access-group 11 permit any Router1(config-if)#interface e0 Router1(config-if)#ip access-group 11 in Ping Ping IP ping IP ICMP TCP/IP ping ping ping [-t] [-a] [-n count] [-l size] -t -a -n count ping count -l size 47
48 4.3.2 ipconfig/all TCP/IP ipconfig IP tracert -d -h maximum_hops -j host_list - w timeout 48
49 Socket 49
50 1.1 SOCKET 1.2 Windows C C Win32 WinSock MFC MFC WinSock MFC 50
51 VC FTP FTP IP PORT PASV FTP / / 2 Win32 51
52 Windows Socket Socket Socket API 2 (1) (2) Unix TCP/IP BSD Sockets Windows Windows Sockets Winsock Winsock Windows 95 Windows Winsock 2 Winsock 1.1 Winsock 2.0 Winsock 2.0 Winsock 1.1 Winsock Windows 52
53 Socket 2 WINSOCK.DLL 32 Windows Socket WSOCK32.DLL Winsock 1.1 WS2_32.DLL Winsock 2.0 Winsock API winsock.h Winsock 1.1 winsock2.h Winsock Socket Socket 2 Socket Endpoint Socket Winsock SOCKET Windows Sockets HWND Winsock API SOCKET Socket 2 Stream Sockets TCP Datagram Sockets 53
54 UDP Socket I/O 2 SOCKET I/O Windows Sockets 2 I/O I/O blocking I/O I/O Winsock API I/O non-blocking I/O Winsock API Winsock Socket Notifications Winsock 2 BSD select Winsock WSAAsyncSelect 54
55 2.2.3 bind sendto revfron closesocket 2.1 WSAStartup Winsock WSAStartup Winsock socket SOCKET socket SOCKET bind recvfrom sendto recvfrom sendto closesocket SOCKET closesocket SOCKET
56
57 WSAStart up WSAStartu p socket SOCKET socket bind SOCKET bind SOCKET listen connect server accept send recv send recv closesocket closesocket SOCKET
58 3.1 WSAStartup int WSAStartup (WORD wversionrequested, LPWSADATA lpwsadata ); wversionrequested [in] Windows Sockets API WORD lpwsadata [in] WSAData WSAData Windows Sockecs 0 WSASYSNOTREADY WSAVERNOTSUPPORTED Winsock WSAEINPROGRESS Winsock1.1 58
59 WSAEPROCLIM WSAEFAULT Winsock lpwsadata Winsock API WSADATA typedef struct WSAData { WORD wversion; WORD whighversion; char szdescription[wsadescription_len+1]; char szsystemstatus[wsasys_status_len+1]; unsigned short imaxsockets; unsigned short imaxudpdg; char FAR * lpvendorinfo; } WSADATA, FAR * LPWSADATA; : wversion Winsock whighversion DLL wversion 59
60 szdescription 0 ASCII Winsock szsystemstatus 0 ASCII Winsock imaxsockets Winsock1.1 Winsock 2.0 imaxudpdg UDP Winsock1.1 Winsock 2.0 Winsock 2.0 getsockopt SO_MAX_MSG_SIZE lpvendorinfo Winsock Winsock1.1 Winsock 2.0 Winsock 2.0 getsockopt PVD_CONFIG #include <winsock.h> // Winsock 2, include <winsock2.h> WSADATA wsadata; 60
61 int nrc = WSAStartup(0x0101, & wsadata); if(nrc) { //Winsock return; } if(wsadata.wversion!= 0x0101) { // // Winsock } WSACleanup(); return; 3.2 socket SOCKET socket(int af, int type, int protocol); af [in] address family AF_INET Internet 61
62 type [in] SOCKET SOCK_STREAM SOCK_DGRAM protocol [in] af 0 SOCKET 2 IPPROTO_UDP IPPROTO_TCP SOCKET INVALID_SOCKET WSAGetLastError SOCKET // socket SCOKET udpsock = socket(af_inet, 62
63 SOCK_DGRAM, IPPROTO_UDP); // socket SCOKET tcpsock = socket(af_inet, SOCK_STREAM, IPPROTO_TCP); 3.3 bind int bind(socket s, const struct sockaddr FAR* name, int namelen); s [in] SOCKET socket SOCKET name [in] sockaddr AF_INET INADDR_ANY namelen [in] name 0 SOCKET_ERROR 63
64 WSAGetLastError SOCKET bind SOCKET struct sockaddr { u_short sa_family; char sa_data[14]; }; sa_family AF_INET 2 sa_data 14 sockaddr Winsock TCP/IP TCP/IP struct sockaddr_in { short u_short struct in_addr sin_family; sin_port; sin_addr; 64
65 char sin_zero[8]; }; sin_family AF_INET sin_port 0 Winsock sin_port 0 sin_addr in_addr IP INADDR_ANY in_addr sin_zero sockaddr_in sockaddr 16 in_addr IP struct in_addr { union { } S_un; }; struct { u_char s_b1,s_b2,s_b3,s_b4; } S_un_b; struct { u_short s_w1,s_w2; } S_un_w; u_long S_addr; 65
66 IP sockaddr_in sin_addr sin_addr. S_un.S_un_b. s_b1 = 10; sin_addr. S_un.S_un_b. s_b2 = 14; sin_addr. S_un.S_un_b. s_b3 = 25; sin_addr. S_un.S_un_b. s_b4 = 90; sin_addr. S_un. S_un_w. s_w1 = (14<<8) 10; sin_addr. S_un. S_un_w. s_w2 = (90<<8) 25; sin_addr. S_un. S_addr = (90<<24) (25<<16) (14<<8) 10; sin_addr. S_un. S_addr = inet_addr( ); inet_addr IP unsigned long SOCKET sservsock; sockaddr_in addr; // socket sservsock = socket(af_inet, SOCK_STREAM, 0); 66
67 addr.sin_family = AF_INET; //htons htonl // addr.sin_port = htons(5050); addr.sin_addr.s_un.s_addr = htonl(inaddr_any); // LPSOCKADDR int nrc = bind(sservsock, (LPSOCKADDR)&addr, sizeof(addr) ); 3.4 listen int listen (SOCKET s, int backlog); s [in] SOCKET backlog [in] SOMAXCONN 67
68 backlog 0 SOCKET_ERROR WSAGetLastError SOCKET, INADDR_ANY listen SOCKET 3.5 accept SOCKET accept (SOCKET s, struct sockaddr FAR* addr, int FAR* addrlen ); s 68
69 [in] listen SOCKET addr [out] sockaddr addrlen [out] int addr SOCKET SOCKET SOCKET s SOCKET SOCKET SOCKET SOCKET SOCKET SOCKET SOCKET INVALID_SOCKET WSAGetLastError accept SOCKET 69
70 SOCKET sservsock; sockaddr_in addr; int nsockerr; int nnumconns = 0; SOCKET sconns[5]; // socket // // SOCKET sockaddr ConnAddrs[5];// int naddrlen; // socket sservsock = socket(af_inet, SOCK_STREAM, 0); addr.sin_family = AF_INET; addr.sin_port = htons(5050); addr.sin_addr.s_un.s_addr = htonl(inaddr_any); if( bind(sservsock,(lpsockaddr)&addr,sizeof(addr)) == SOCKET_ERROR ) { nsockerr = WSAGetLastError(); // } 70
71 // if( listen(sservsock, 2) == SOCKET_ERROR) { nsockerr = WSAGetLastError(); // } while( nnumconns < 5){ // SOCKET / //sconns // ConnAddrs sconns[nnumconns] = accept(sservsock, ConnAddrs[nNumConns], &naddrlen); if(sconns[nnumconns] == INVALID_SOCKET) { nsockerr = WSAGetLastError(); // SOCKET } else { // SOCKET StartNewHandlerThread(sConns[nNumConns]); 71
72 } } // +1 nnumconns ++; 3.6 connect int connect (SOCKET s, const struct sockaddr FAR* name, int namelen ); s [in] SOCKET socket name [in] bind namelen [in] bind 0 SOCKET_ERROR WSAGetLastError 72
73 3.7 send int send (SOCKET s, char * buf, int len,int flags); s [in] SOCKET buf [in] len [in] buf flags [in] 0 len SOCKET_ERROR WSAGetLastError 73
74 SOCKET 3.8 recv int recv (SOCKET s, char * buf, int len,int flags); s [in] SOCKET buf [out] len [in] buf flags [in] 0 74
75 SOCKET_ERROR WSAGetLastError SOCKET len recv 3.9 sendto int sendto (SOCKET s, char * buf, int len,int flags, struct sockaddr_in * to, int tolen); s buf len [in] SOCKET( ) [in] 75
76 [in] buf flags [in] 0 to [in] tolen [in] len SOCKET_ERROR WSAGetLastError SOCKET to 76
77 3.10 recvfrom int recvfrom (SOCKET s, char * buf, int len,int flags, struct sockaddr_in * from, int * fromlen); s [in] SOCKET buf [out] len [in] buf flags [in] 0 from [out] fromlen [in/out] len 77
78 SOCKET_ERROR WSAGetLastError SOCKET from 3.11 closesocket int closesocket (SOCKET s,); s [in] SOCKET 0 SOCKET_ERROR WSAGetLastError 78
79 SOCKET 79
80 Windows Socket Winsock 2.0 Winsock 1.1 API TCP/IP Berkerly Winsock 2.0 ATM IPX/SPX DECNet API Winsock 2.0 Winsock 2.0 Windows Sockets DLL SPI Service Provider Interface Windows Sockets DLL Winsock 2.0 Winsock 2.0 Winsock 2.0 API Winsock 2.0 Winsock 1.1 Winsock
81 4.2 Winsock 2.0 Winsock 2.0 SPI I/O Qos Socket SOKCKET 4.3 Winsock 2.0 Winsock 2.0 WSAAccept accept WASCloseEvent WSAConnect connect Qos WSACreatEvent 81
82 WSADuplicateSocket WSAEnumNetworkEvents WSAEnumProtocols WSAEventSelect WSAGetOverlappedResu WSAHtonl htonl WSAHtons htons WSAIoctl ioctlsocket WSANtohl ntohl WSANtohs ntohs WSARecv recv / / I/O WSARecvDisconnect WSARecvFrom recvfrom / / I/O WSAResetEvent WSASend send / / I/O WSARecvDisconnect WSASendDisconnect WSASendTo sendto / / 82
83 I/O WSASetEvent WSASocket socket PROTOCOL_INFO WSAWaitForMultipleEvents MSDN 83
84 Win32 VC 6.0 TCP SOCKET
85 5.1 // socksrv.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdio.h> #include <winsock2.h> #include <list> #include <algorithm> #include <string.h> #define MAXCONN 5 #define BUFLEN 255 using namespace std; typedef list<socket> ListCONN; typedef list<socket> ListConErr; void main(int argc, char* argv[]) { WSADATA wsadata; 85
86 int nrc; sockaddr_in srvaddr,clientaddr; SOCKET srvsock; int naddrlen = sizeof(sockaddr); char sendbuf[buflen],recvbuf[buflen]; ListCONN conlist; // SOCKET ListCONN::iterator itor; ListConErr conerrlist; // SOCKET ListConErr::iterator itor1; FD_SET rfds,wfds; u_long unonblock; // winsock nrc = WSAStartup(0x0101,&wsaData); if(nrc) { printf("server initialize winsock error!\n"); return; } if(wsadata.wversion!= 0x0101) { printf("server's winsock version error!\n"); 86
87 WSACleanup(); return; } printf("server's winsock initialized!\n"); // TCP socket srvsock = socket(af_inet,sock_stream,0); if(srvsock == INVALID_SOCKET) { printf("server create socket error!\n"); WSACleanup(); return; } printf("server TCP socket create OK!\n"); // socket to Server's IP and port 5050 srvaddr.sin_family = AF_INET; srvaddr.sin_port = htons(5050); srvaddr.sin_addr.s_un.s_addr = INADDR_ANY; nrc=bind(srvsock,(lpsockaddr)&srvaddr,sizeof(srvaddr)); if(nrc == SOCKET_ERROR) { printf("server socket bind error!\n"); 87
88 closesocket(srvsock); WSACleanup(); return; } printf("server socket bind OK!\n"); // nrc = listen(srvsock,maxconn); if(nrc == SOCKET_ERROR) { printf("server socket listen error!\n"); closesocket(srvsock); WSACleanup(); return; } // srvsock unonblock = 1; ioctlsocket(srvsock,fionbio,&unonblock); while(1) { // conlist SOCKET 88
89 for(itor1 = conerrlist.begin();itor1!= conerrlist.end();itor1++) { itor = find(conlist.begin(),conlist.end(),*itor1); if(itor!= conlist.end()) conlist.erase(itor); } // read,write FD_ZERO(&rfds); FD_ZERO(&wfds); // FD_SET(srvSock,&rfds); for(itor = conlist.begin();itor!= conlist.end();itor++) { // SOCKET unonblock = 1; ioctlsocket(*itor,fionbio,&unonblock); // SOKCET FD_SET(*itor,&rfds); FD_SET(*itor,&wfds); } 89
90 // int ntotal = select(0, &rfds, &wfds, NULL, NULL); // srvsock if(fd_isset(srvsock,&rfds)) { ntotal --; // SOCKET SOCKET connsock = accept(srvsock, (LPSOCKADDR)&clientAddr, &naddrlen); if(connsock == INVALID_SOCKET) { printf("server accept connection request error!\n"); closesocket(srvsock); WSACleanup(); return; } sprintf(sendbuf," %s!\n", inet_ntoa(clientaddr.sin_addr)); printf("%s",sendbuf); // SOCKET conlist 90
91 } conlist.insert(conlist.end(),connsock); if(ntotal > 0) { // SOCKET // for(itor = conlist.begin();itor!= conlist.end();itor++) { // SOCKET // if(fd_isset(*itor,&wfds)) { // if(strlen(sendbuf) > 0) { nrc = send(*itor,sendbuf,strlen(sendbuf),0); if(nrc == SOCKET_ERROR) { // // SOCKET } conerrlist.insert(conerrlist.end(),*itor); 91
92 } } else// memset(sendbuf,'\0',buflen); // SOCKET if(fd_isset(*itor,&rfds)) { nrc = recv(*itor,recvbuf,buflen,0); if(nrc == SOCKET_ERROR) { // // SOCKET } else { conerrlist.insert(conerrlist.end(),*itor); // // recvbuf[nrc] = '\0'; sprintf(sendbuf,"\n :%s\n",recvbuf); 92
93 } printf("%s",sendbuf); } } } } } closesocket(srvsock); WSACleanup(); 5.2 // sockclient.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdio.h> #include <winsock2.h> #include <string.h> #include <windows.h> #include <process.h> #include <winbase.h> 93
94 #define BUFLEN 255 // sendbuf CRITICAL_SECTION gcriticalsection; // unsigned stdcall GetInputs(void *arg); void main(int argc, char* argv[]) { WSADATA wsadata; int nrc; sockaddr_in srvaddr,clientaddr; SOCKET clientsock; char sendbuf[buflen],recvbuf[buflen]; FD_SET rfds,wfds; u_long unonblock; HANDLE hthread; unsigned dwthreadid; if(argc!= 2) { printf("usage:%s ClientIPAddress name\n",argv[0]); 94
95 } return; InitializeCriticalSection(&gCriticalSection); // winsock nrc = WSAStartup(0x0101,&wsaData); if(nrc) { printf("client initialize winsock error!\n"); return; } if(wsadata.wversion!= 0x0101) { printf("client's winsock version error!\n"); WSACleanup(); return; } printf("client's winsock initialized!\n"); // client socket clientsock = socket(af_inet,sock_stream,0); if(clientsock == INVALID_SOCKET) { 95
96 printf("client create socket error!\n"); WSACleanup(); return; } printf("client socket create OK!\n"); clientaddr.sin_family = AF_INET; clientaddr.sin_port = htons(0); clientaddr.sin_addr.s_un.s_addr = inet_addr(argv[1]); nrc = bind(clientsock, (LPSOCKADDR)&clientAddr,sizeof(clientAddr)); if(nrc == SOCKET_ERROR) { printf("client socket bind error!\n"); closesocket(clientsock); WSACleanup(); return; } printf("client socket bind OK!\n"); // srvaddr.sin_family = AF_INET; 96
97 srvaddr.sin_port = htons(5050); srvaddr.sin_addr.s_un.s_addr = inet_addr(" "); // nrc = connect(clientsock, (LPSOCKADDR)&srvAddr,sizeof(srvAddr)); if(nrc == SOCKET_ERROR) { printf("!\n"); closesocket(clientsock); WSACleanup(); return; } // hthread = (HANDLE)_beginthreadex(NULL, 0, GetInputs, sendbuf, 0, &dwthreadid); 97
98 // while(1) { // memset(sendbuf,'\0',buflen); memset(recvbuf,'\0',buflen); // SOCKET // FD_ZERO(&rfds); FD_ZERO(&wfds); FD_SET(clientSock,&rfds); FD_SET(clientSock,&wfds); unonblock = 1; ioctlsocket(clientsock,fionbio,&unonblock); select(0,&rfds,&wfds,null,null); // if(fd_isset(clientsock,&rfds)) { // nrc = recv(clientsock,recvbuf,buflen,0); if(nrc == SOCKET_ERROR) 98
99 { printf("!\n"); DeleteCriticalSection(&gCriticalSection); closesocket(clientsock); WSACleanup(); return; } else if(nrc > 0) { recvbuf[nrc] = '\0'; printf("\n%s\n",recvbuf); } } // if(fd_isset(clientsock,&wfds)) { // if(strlen(sendbuf) > 0) { nrc = send(clientsock,sendbuf,strlen(sendbuf),0); if(nrc == SOCKET_ERROR) { printf("!\n"); 99
100 } } } else { } DeleteCriticalSection(&gCriticalSection); closesocket(clientsock); WSACleanup(); return; EnterCriticalSection(&gCriticalSection); sendbuf[0] = '\0'; LeaveCriticalSection(&gCriticalSection); } if(strcmp(sendbuf,"exit") == 0) break; } DeleteCriticalSection(&gCriticalSection); closesocket(clientsock); WSACleanup(); // 100
101 unsigned stdcall GetInputs(void *arg) { char *inputs = (char *)arg; while(1) { printf("\n :"); EnterCriticalSection(&gCriticalSection); gets(inputs); LeaveCriticalSection(&gCriticalSection); if(strcmp(inputs,"exit") == 0) return EXIT_SUCCESS; } } 5.3 Win32 Console Application Project->Settings Link Object/library modules ws2_32.lib Project->Settings C/C++ Category Code generation,use run-time 101
102 library Debug Multithreaded 102
103 103
<4D6963726F736F667420576F7264202D20BCC6CBE3BBFACDF8C2E7CAB5D1E9D6B8B5BCCAD6B2E12E646F63>
计 算 机 网 络 实 验 指 导 手 册 华 中 科 技 大 学 计 算 机 学 院 二 零 零 九 年 三 月 I 目 录 实 验 一 网 络 组 建 与 实 施 第 一 章 实 验 目 标 和 内 容... 1 1.1 实 验 目 的... 1 1.2 实 验 环 境... 1 1.3 实 验 要 求... 1 1.4 实 验 内 容... 2 第 二 章 BOSON NETSIM 软 件 包
More informationebook35-21
21 Linux L i n u x 211 U N I X U N I X I / O F I F O U N I X I n t e r n e t s o c k e t () s o c k e t () send() r e c v ( read() w r i t e () send() r e c v () I n t e r n e t 212 Internet Internet S
More informationD. 192.168.5.32 E. 192.168.5.14 答 案 :C 3. 工 作 站 A 配 置 的 IP 地 址 为 192.0.2.24/28. 工 作 站 B 配 置 的 IP 地 址 为 192.0.2.100/28. 两 个 工 作 站 之 间 有 直 通 线 连 接, 两 台
CCNP 学 前 测 试 题 都 选 自 官 方 的 全 真 考 试 题, 共 100 道 题 实 际 测 试 选 60 道 题, 同 官 方 正 式 考 题 数 目 基 本 一 致, 因 此 等 于 是 模 拟 考 试, 采 用 网 上 形 式 进 行 测 评 学 前 测 评 目 的 是 为 了 检 验 大 家 对 CCNA 阶 段 知 识 掌 握 的 程 度, 同 时 对 CCNA 最 核 心
More informationVoIP Make a Rtp Call VoIP Abstract... 2 VoIP RTP...3 Socket IP...9 Config Two Voice-hub
VoIP... 2... 2 Abstract... 2... 3... 3 RTP...3 Socket...4...6...7 IP...9 Config Two Voice-hub... 10 1 12 VoIP VoIP voice-hub voice-hub Abstract At the beginning of this paper, we introducted the essential
More informationChapter 5- 运输层 (5)-2017
计算机网络 运输层编程 (5) 陈旺虎 chenwh@nwnu.edu.cn Review TCP 协议格式 TCP 可靠传输 为什么需要三次握手? A 发送一次确认的原因 应对出现 已失效的连接请求报文段 的情况, 即防止已失效的连接请求报文段突然又传到了 B 例 1:A 发出连接请求, 但该请求丢失,A 重传连接请求, 到达 B, 则正常 ; 一. 认识 Socket 应用层程序 流套接字接口
More informationebook12-1
API N e t B I O S Wi n s o c k A P I Wi n s o c k 1 N e t B I O S Wi n s o c k A P I N e t B I O S O S / 2 D O S 2 3 4 Wi n d o w s Wi n d o w s 1 NetBIOS Network Basic Input/Output System, NetBIOS A P
More informationch08.PDF
8-1 CCNA 8.1 CLI 8.1.1 8-2 8-3 8.1.21600 2500 1600 2500 / IOS 8-4 8.2 8.2.1 A 5 IP CLI 1600 2500 8-5 8.1.2-15 Windows 9598NT 2000 HyperTerminal Hilgraeve Microsoft Cisco HyperTerminal Private Edition (PE)
More informationChap04
Socket 编程介绍 Socket Socket 网络编程 按照操作系统 Windows 的 socket 编程 *nix 的 socket 编程 按照编程语 言 使 用C++ Java 的 socket 编程 使 用脚本语 言的 socket 编程 Socket 的 一些历史 Sockets 本来是 UNIX 操作系统下流 行行的 一种 网络编程接 口 (API), 在 4.2 BSD 中被 首先引
More information局域网技术课程设计报告.doc
湖 南 第 一 师 范 学 院 信 息 科 学 与 工 程 学 院 局 域 网 络 设 计 方 案 1 目 录 一 系 统 概 述...6 1 课 程 设 计 目 的 :...6 2 课 程 设 计 要 求 :...6 3 需 求 分 析 :...6 二 系 统 分 析 与 设 计...7 1 拓 扑 图 设 计...7 2 ip, 掩 码 及 vlan 规 划...7 3 物 理 布 线 设 计...8
More informationUDP 8.2 TCP/IP OSI OSI 3 OSI TCP/IP IP TCP/IP TCP/IP Transport Control Protocol TCP User Datagram Protocol UDP TCP TCP/IP IP TCP TCP/IP TC
8 TCP/IP TCP/IP TCP OSI 8.1 OSI 4 end to end A B FTP OSI Connection Management handshake Flow Control Error Detection IP Response to User s Request TCP/IP TCP 181 UDP 8.2 TCP/IP OSI OSI 3 OSI 3 8.1 TCP/IP
More information《计算机网络》实验指导书
1 实 验 一 网 络 组 建 与 管 理 一. 实 验 目 的 1. 掌 握 平 行 双 绞 线 和 交 叉 双 绞 线 的 制 作 方 法 ( 初 级 ) 2. 掌 握 对 等 网 和 代 理 服 务 器 网 络 的 组 建 ( 初 级 ) 3. 会 用 ipconfig 和 ping 命 令 ( 初 级 ) 4. 掌 握 网 络 中 文 件 夹 共 享 和 打 印 机 共 享 ( 初 级 )
More information工程硕士信息通信网实验讲义.doc
1 Linux 1.1 Linux 1.1.1 Linux 1.1.2 Linux Linux --help arp help manual manual TCP/IP ARPIP RFC1812 2.2.3 IPV4 IPv6 RFC ftp 1.1.3 1 ARP ip addr show up eth0 IP ip neigh show ARP VLAN VLAN IP Ping ICMP echo
More information工程师培训
.1 TCP/IP TCP/IP 1 .2.2.1 Host 1960 S 1970 S Host Low Speed Lines 1970 S 1980 S pc Server Local Interneting 1980 S 1990 S Branch. pc Branch. WAN Branch. pc pc IBM SNA IBM X.25 2 .2.2 OSI OSI Application
More informationIP505SM_manual_cn.doc
IP505SM 1 Introduction 1...4...4...4...5 LAN...5...5...6...6...7 LED...7...7 2...9...9...9 3...11...11...12...12...12...14...18 LAN...19 DHCP...20...21 4 PC...22...22 Windows...22 TCP/IP -...22 TCP/IP
More informationuntitled
Lwip Swedish Institute of Computer Science February 20, 2001 Adam Dunkels adam@sics.se (QQ: 10205001) (QQ: 329147) (QQ:3232253) (QQ:3232253) QQ ARM TCPIP LCD10988210 LWIP TCP/IP LWIP LWIP lwip API lwip
More informationFY.DOC
高 职 高 专 21 世 纪 规 划 教 材 C++ 程 序 设 计 邓 振 杰 主 编 贾 振 华 孟 庆 敏 副 主 编 人 民 邮 电 出 版 社 内 容 提 要 本 书 系 统 地 介 绍 C++ 语 言 的 基 本 概 念 基 本 语 法 和 编 程 方 法, 深 入 浅 出 地 讲 述 C++ 语 言 面 向 对 象 的 重 要 特 征 : 类 和 对 象 抽 象 封 装 继 承 等 主
More informationC/C++ - 文件IO
C/C++ IO Table of contents 1. 2. 3. 4. 1 C ASCII ASCII ASCII 2 10000 00100111 00010000 31H, 30H, 30H, 30H, 30H 1, 0, 0, 0, 0 ASCII 3 4 5 UNIX ANSI C 5 FILE FILE 6 stdio.h typedef struct { int level ;
More informationebook140-8
8 Microsoft VPN Windows NT 4 V P N Windows 98 Client 7 Vintage Air V P N 7 Wi n d o w s NT V P N 7 VPN ( ) 7 Novell NetWare VPN 8.1 PPTP NT4 VPN Q 154091 M i c r o s o f t Windows NT RAS [ ] Windows NT4
More informationSimulator By SunLingxi 2003
Simulator By SunLingxi sunlingxi@sina.com 2003 windows 2000 Tornado ping ping 1. Tornado Full Simulator...3 2....3 3. ping...6 4. Tornado Simulator BSP...6 5. VxWorks simpc...7 6. simulator...7 7. simulator
More informationch09.PDF
9-1 / (TCP/IP) TCP/IP TCP/IP ( ) ICMP ARP RARP 9.1 TCP/IP 9.1.1 TCP/IP OSI TCP/IP (DARPA) DARPA TCP/IP UNIX Berkeley Software DistributionTCP/IP TCP/IP TCP/IP TCP/IP TCP/IP TCP/IP OSI - TCP/IP ( ) ( )
More information/ / (FC 3)...
Modbus/TCP 1.0 1999 3 29 Andy Swales Schneider aswales@modicon.com ... 2 1.... 3 2.... 3 2.1.. 3 2.2..4 2.3..4 2.4... 5 3.... 5 3.1 0... 5 3.2 1... 5 3.3 2... 6 3.4 / /... 7 4.... 7 5.... 8 5.1 0... 9
More informationC6_ppt.PDF
C01-202 1 2 - (Masquerade) (Replay) (Message Modification) (Denial of Service) - ( ) (Eavesdropping) (Traffic Analysis) 8 1 2 7 3 6 5 4 3 - TCP SYN (SYN flood) Smurf Ping of Death LAND Attack Teardrop
More information一、选择题
计 算 机 网 络 基 础 第 7 章 练 习 思 考 与 认 识 活 动 一 选 择 题 1. 下 面 命 令 中, 用 于 检 查 WINDOWS2000 下 TCP/IP 配 置 信 息 的 是 ( ) A. cmd B. nslookup C. ipconfig D. ping 2. 内 部 网 关 协 议 RIP 是 一 种 广 泛 使 用 的 基 于 距 离 矢 量 算 法 的 协 议
More informationGPRS IP MODEM快速安装说明
GF-3026D CDMA 无 线 路 由 器 用 户 手 册 北 京 嘉 复 欣 科 技 有 限 公 司 地 址 : 北 京 市 海 淀 区 阜 成 路 115 号 北 京 印 象 2 号 楼 213 室 电 话 :86-10-88122130 88153193 88153197 传 真 :86-10-88122129 网 站 :http://www.garefowl.com/ 目 录 一 产 品
More informationTCP/IP TCP/IP OSI IP TCP IP IP TCP/IP TCP/IP
TCP/IP : TCP/IP TCP/IP OSI IP TCP IP IP TCP/IP TCP/IP 1. ASCII EBCDIC Extended Binary-Coded Decimal Interchange Code 2. / (1) (2) Single System Image SSI) (3) I/O (4) 3.OSI OSI Open System Interconnection
More information网工新答案
2005 年 5 月 29 日 软 考 2005 年 上 半 年 网 络 工 程 师 上 午 试 题 ( 参 考 答 案 ) ( 特 别 声 明, 此 答 案 只 作 参 考 ) 本 文 是 经 过 三 审 后 的 CIU 网 工 上 午 参 考 答 案 ( 正 确 率 在 92%-95% 之 间, 因 为 种 种 原 因, 不 能 与 标 准 答 案 完 全 相 同, 请 大 家 理 解 ) 如
More informationIP Access Lists IP Access Lists IP Access Lists
Chapter 10 Access Lists IP Access Lists IP Access Lists IP Access Lists Security) IP Access Lists Access Lists (Network router For example, RouterA can use an access list to deny access from Network 4
More informationChap6.ppt
Computer Networks v4 cs.sjtu 12/21/12 6 Internet ftp://ftp.cs.sjtu.edu.cn/ybzhang 61 / 110 Computer Networks v4 cs.sjtu 12/21/12 ftp://ftp.cs.sjtu.edu.cn/ybzhang 62 / 110 Computer Networks v4 cs.sjtu 12/21/12
More information第3章 计算机网络体系结构
第 3 章 计 算 机 网 络 体 系 结 构 本 章 内 容 计 算 机 的 网 络 体 系 结 构 网 络 参 考 模 型 五 层 网 络 参 考 模 型 1 3.1 计 算 机 网 络 体 系 结 构 发 展 历 程 分 层 原 理 基 本 概 念 2 发 展 历 程 网 络 体 系 结 构 提 出 的 背 景 计 算 机 网 络 的 复 杂 性 异 质 性 不 同 的 通 信 介 质 有 线
More informationepub
3 Cisco 3.1 S e t u p C i s c o C i s c o Cisco IOS C i s c o 3.2 Te l n e t T F T P 3-1 3-1 configure terminal configure memory Configure network t e l n e t < C t r l - Z > conf t N V R A M T F T P I
More informationPowerPoint Presentation
网络编程简介 授课老师 : 赵增华助教 : 杨金峰邮件 : myjfm@163.com 两台计算机通过网络进行通信 端口 端口 A 协议 网络 协议 B 192.168.0.118 192.168.0.10 IP 地址 IP 网络中每台主机都必须有一个惟一的 IP 地址 ; IP 地址是一个逻辑地址 ; 因特网上的 IP 地址具有全球唯一性 ; 32 位, 4 个字节, 常用点分十进制的格式表示,
More informationebook140-9
9 VPN VPN Novell BorderManager Windows NT PPTP V P N L A V P N V N P I n t e r n e t V P N 9.1 V P N Windows 98 Windows PPTP VPN Novell BorderManager T M I P s e c Wi n d o w s I n t e r n e t I S P I
More informationWinSockÍøÂç±à³Ì
WinSock 网络编程 1. 概述 80's 初,ARPA( 美国国防部高级研究计划局 ) fi 加利福尼亚大学 Berkeley 分校提供资金,fi 开发在 UNIX 下实现 TCP/IP 协议 fi 为 TCP/IP 开发了一个 API Socket 接口 ( 套接口 ) 俗称 Bekeley 套接口模型 90's 初,Microsoft 等公司 fi 基于 Bekeley 套接口模型 fi
More informationData Server_new_.doc
0i B/C Data Server Windows 2000 Window XP Windows XP FTP FANUC Data Server FTP liwei@beijing-fanuc 1 06-10-8 Content 1. /...3 1.1...3 1.2...3 1.3 CNC...3 2....5 2.1 STORAGE...5 2.2 FTP...6 2.3 BUFFER...7
More informationepub83-1
C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C
More information经华名家讲堂
5.1 5.1.1 5.1.2 5.2 5.2.1 5.2.2 5.2.3 5.2.4 5.2.5 5.3 5.3.1 5.3.2 5.3.3 / 5.3.4 / 5.3.5 / 5.4 Internet 5.4.1 Internet 5.4.2 Intranet 1. 2. 1 31 5 5.1 5.1.1 Internet 1 Host 20 60 IBM 2000 2 20 60 20 60
More information9 Internet 10 Internet
1 2 3 4 5 6 Internet 7 8 9 Internet 10 Internet 11 12 1 1.1 1.2 1.3 1.4 1.5 1.6 1.1 1.1.1 20 50 20 60 ARPANET ARPANET Internet 20 70 ISO International Organization for Standardization TCP/IP 20 90 Internet
More information提问袁小兵:
C++ 面 试 试 题 汇 总 柯 贤 富 管 理 软 件 需 求 分 析 篇 1. STL 类 模 板 标 准 库 中 容 器 和 算 法 这 部 分 一 般 称 为 标 准 模 板 库 2. 为 什 么 定 义 虚 的 析 构 函 数? 避 免 内 存 问 题, 当 你 可 能 通 过 基 类 指 针 删 除 派 生 类 对 象 时 必 须 保 证 基 类 析 构 函 数 为 虚 函 数 3.
More informationAL-M200 Series
NPD4754-00 TC ( ) Windows 7 1. [Start ( )] [Control Panel ()] [Network and Internet ( )] 2. [Network and Sharing Center ( )] 3. [Change adapter settings ( )] 4. 3 Windows XP 1. [Start ( )] [Control Panel
More information第 1 章 概 述 1.1 计 算 机 网 络 在 信 息 时 代 中 的 作 用 1.2 计 算 机 网 络 的 发 展 过 程 *1.2.1 分 组 交 换 的 产 生 *1.2.2 因 特 网 时 代 *1.2.3 关 于 因 特 网 的 标 准 化 工 作 1.2.4 计 算 机 网 络 在
计 算 机 网 络 ( 第 4 版 ) 课 件 第 1 章 计 算 机 网 络 概 述 郭 庆 北 Ise_guoqb@ujn.edu.cn 2009-02-25 第 1 章 概 述 1.1 计 算 机 网 络 在 信 息 时 代 中 的 作 用 1.2 计 算 机 网 络 的 发 展 过 程 *1.2.1 分 组 交 换 的 产 生 *1.2.2 因 特 网 时 代 *1.2.3 关 于 因 特
More information图 4.2 udpclient 项目解决方案 3. 客户机程序编码如下 : 程序 : udp 客户机程序 udpclient.cpp
实验四 UDP 客户机和服务器设计 一 实验目的 1. 学习和理解 UDP 协议 ( 对照 TCP 协议 ) 2. 掌握 UDP 客户机与服务器程序的设计方法 3. 掌握 UDP 套接字创建方法, 掌握 sendto recvfrom 等函数用法 注意与 send recv 函数做对比性学习 二 实验内容 1. 完成发送和接收数据报的客户机设计 2. 完成接收和回送数据报的服务器设计 3.( 选做
More informationebook20-8
8 Catalyst 5000 7 V L A N C a t a l y s t V L A N V L A N 8.1 VLAN VTP V L A N A VLAN VLAN 10 VLAN 20 VLAN 10 VLAN 20 B VLAN VLAN 10 VLAN 20 VLAN 10 C VLAN VLAN 10 VLAN 20 VLAN 10 VLAN 20 8-1 VLAN 8 Catalyst
More information第 1 部 分 : 检 查 网 络 要 求 在 第 1 部 分 中, 您 将 研 究 使 用 172.16.128.0/17 网 络 地 址 为 拓 扑 图 中 显 示 的 网 络 开 发 VLSM 地 址 方 案 的 网 络 要 求 注 意 : 您 可 以 使 用 Windows 计 算 器 应
拓 扑 目 标 第 1 部 分 : 检 查 网 络 要 求 第 2 部 分 : 设 计 VLSM 地 址 方 案 第 3 部 分 : 布 线 和 配 置 IPv4 网 络 背 景 / 场 景 可 变 长 度 子 网 掩 码 (VLSM) 旨 在 避 免 浪 费 IP 地 址 使 用 VLSM, 会 对 网 络 多 次 进 行 子 网 划 分 此 过 程 可 重 复 多 次, 从 而 根 据 每 个
More informationBOOL EnumWindows(WNDENUMPROC lparam); lpenumfunc, LPARAM (Native Interface) PowerBuilder PowerBuilder PBNI 2
PowerBuilder 9 PowerBuilder Native Interface(PBNI) PowerBuilder 9 PowerBuilder C++ Java PowerBuilder 9 PBNI PowerBuilder Java C++ PowerBuilder NVO / PowerBuilder C/C++ PowerBuilder 9.0 PowerBuilder Native
More informationNSC-161
IP Session IP? IP Cisco IP IP IP IP IP? LAN Software Bluetooth,, 802.11 IP IP IP QoS IP Trust Domain (TD 1 ) TD 2 AR AR AP AP (MN) (MN) IP IP ( ) (MR) IP LAN MR (AP) IP 802.11 (AL) LAN/PAN 802.11, 802.15,
More information¶C¶L§§¬_™¨ A.PDF
1 9 3 1 9 4 / 7.1 / 1 9 5 7.2 % netstat -rn Routing tables Destination Gateway Flags Refcnt Use Interface 127.0.0.1 127.0.0.1 UH 1 132 lo0 172.16.12.0 172.16.12.2 U 26 49041 le0 1 9 6 / % ping -s almond
More informationbingdian001.com
1... 1 1.1... 1 1.2... 1 1.3... 1 1.4... 1 1.5... 1 1.6... 1 2... 1 2.1... 1 2.2... 2 2.3... 2 3... 2 4... 3 4.1... 3 4.1.1... 3 1.... 3 2.... 3 3.... 3 4.... 3 5.... 3 6.... 3 7.... 3 8.... 4 9.... 4
More informationIC-900W Wireless Pan & Tilt Wireless Pan & Tilt Remote Control / Night Vision FCC ID:RUJ-LR802UWG
IC-900W Wireless Pan & Tilt Wireless Pan & Tilt Remote Control / Night Vision FCC ID:RUJ-LR802UWG --------------------------------------------TABLE OF CONTENTS------------------------------------------
More informationebook140-11
11 VPN Windows NT4 B o r d e r M a n a g e r VPN VPN V P N V P N V P V P N V P N TCP/IP 11.1 V P N V P N / ( ) 11.1.1 11 V P N 285 2 3 1. L A N LAN V P N 10MB 100MB L A N VPN V P N V P N Microsoft PPTP
More informationepub 30-5
5 AT M Cisco 4500 AT M Cisco AT M AT M 5.1 AT M WA N C i s c o AT M AT Cisco IOS AT M 5.1.1 ATM AT M 53 5-1 5-2 AT M AT M AT M AT AT M 5-1 L A N / WA N H D L C 802. 3 5-1 LAN / WAN 5 185 ATM NIC ATM NIC
More informationMicrosoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc
2 5 8 11 0 13 1. 13 2. 15 3. 18 1 23 1. 23 2. 26 3. 28 2 36 1. 36 2. 39 3. 42 4. 44 5. 49 6. 51 3 57 1. 57 2. 60 3. 64 4. 66 5. 70 6. 75 7. 83 8. 85 9. 88 10. 98 11. 103 12. 108 13. 112 4 115 1. 115 2.
More informationMicrosoft PowerPoint - Socket programming.ppt [相容模式]
Basic Concept of Socket Socket programming 位於傳輸層和應用層之間 socket 是一種可做雙向資料傳輸的通道 讓應用層可以傳送資料給 socket, 或是從 socket 接收資料 Jimmy 2011/3/29 Concept of Socket Relation between Socket and Application Socket 的概念和檔案代碼觀念相似,
More informationC3_ppt.PDF
C03-101 1 , 2 (Packet-filtering Firewall) (stateful Inspection Firewall) (Proxy) (Circuit Level gateway) (application-level gateway) (Hybrid Firewall) 2 IP TCP 10.0.0.x TCP Any High Any 80 80 10.0.0.x
More informationebook67-1
1 1.1 T C P / I P T C P / I P 60 9 ( I n t e r n e t ) WA N 100 T C P / I P T C P / I P [ Lynch 1993] 1.2 Telnet FTP e-mail T C P / I P TCP UDP T C P / I P 1-1 1) 1-1 TCP/IP 2) T C P / I P I I C M P I
More informationRunPC2_.doc
PowerBuilder 8 (5) PowerBuilder Client/Server Jaguar Server Jaguar Server Connection Cache Thin Client Internet Connection Pooling EAServer Connection Cache Connection Cache Connection Cache Connection
More information精 品 库 我 们 的 都 是 精 品 _www.jingpinwenku.com 根 据 图 中 信 息 标 号 为 2 的 方 格 中 的 内 容 为 A)S=59.171.1,1234 D=133.2.1.1,80 B)S=59.67.1.1,1234 D=10.0.1.1,80 C)S=13
一 选 择 题 2010 年 3 月 计 算 机 等 级 考 试 四 级 网 络 工 程 师 笔 试 真 题 (1)TTC 标 准 OC-3 的 传 输 速 率 为 A) 512.4 Mbps B)155.52 Mbps C)622.08 Mbps D). Mbps (2)102.11n 将 传 输 速 率 提 高 到 A)11 Mbps B)22 Mbps C)54 Mbps D)100 Mbps
More information嵌入式Linux块设备驱动开发解析
The success's road 嵌 入 式 LINUX 网 络 驱 动 开 发 Copyright 2007-2008 Farsight. All rights reserved. 要 点 Linux 网 络 设 备 驱 动 程 序 概 述 计 算 机 网 络 概 述 skbuf 数 据 结 构 介 绍 Linux 网 络 设 备 驱 动 程 序 API 介 绍 Linux 网 络 设 备 驱
More informationebook67-9
9 IP 9.1 I P 9-1 I P 9-1 d a e m o n U n i x d a e m o n d a e m o n [Perlman 1992] 10 R I P Routing Information Protocol I P 9-1 I P 30 I C M P 9. 5 r o u t e n e t s t a t route netstat UDP TCP ICMP
More information概述
OPC Version 1.6 build 0910 KOSRDK Knight OPC Server Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOS_Init...5 2.2.2 KOS_InitB...5 2.2.3
More informationBasics of Socket Programming Please check the referenced links for the further description and examples. 1 Procedures for Socket Implementation 1. Create the server application (e.g. a simple shellscript)
More informationCisco Cisco Cisco (ROM) (FLASH) (RAM) RAM(NVRAM) Cisco
Ch2 Cisco IOS Cisco Cisco Cisco (ROM) (FLASH) (RAM) RAM(NVRAM) Cisco Cisco ROM ROM Cisco ROM(BIOS) ROM 1. POST Cisco 2. BootStrap Cisco IOS 3. IOS IOS IOS Cisco ROM ROM Cisco Flash Flash Flash IOS Cisco
More informationebook20-7
7 Catalyst 5000 Catalyst 5000 Cisco Works for Switched Internetworks (CWSI) C L I C L I G U I C L C W S I C i s c o C W S I C L I I P Te l n e t C L I 9600 8 6 7.1 Catalyst C a t a l y s t Cisco IOS C
More information计算机网络
gongwhboy@tom.com Internet 3 James F.Kurose Keith W.Ross 4 Andrew S.Tanenbaum 3 Larry L.Peterson, Bruce S.Davie 3 1. ISO OSI/RM( ) TCP/IP ( TELNET, FTP, SMTP ) (TCP UDP) IP 2. Internet : Internet 5 (1)
More information一.NETGEAR VPN防火墙产品介绍
NETGEAR VPN NETGEAR 6 http://www.netgear.com.cn - 1 - NETGEAR VPN... 4 1.1 VPN...4 1.2 Dynamic Domain Name Service...4 1.3 Netgear VPN...4 Netgear VPN... 6 2.1 FVS318 to FVS318 IKE Main...7 2.1.1 A VPN
More informationQL1880new2.PDF
ADSL Modem 1 MODEM 56K MODEM 128K ISDN INTERNET ADSL Modem VOD ADSL ADSL 2 1.1 ADSL 1.2 1.3 KM300A 2.1 2.2 2.3 2.4 2.5 KM300A 2.6 web 2.7 1.1ADSL 1.2 1.3 2.1 ADSL 2.2 ADSL 3 ADSL KM300A ADSL KM300A DIY
More informationSymantec™ Sygate Enterprise Protection 防护代理安装使用指南
Symantec Sygate Enterprise Protection 防 护 代 理 安 装 使 用 指 南 5.1 版 版 权 信 息 Copyright 2005 Symantec Corporation. 2005 年 Symantec Corporation 版 权 所 有 All rights reserved. 保 留 所 有 权 利 Symantec Symantec 徽 标 Sygate
More information(Methods) Client Server Microsoft Winsock Control VB 1 VB Microsoft Winsock Control 6.0 Microsoft Winsock Control 6.0 1(a). 2
(2005-01-26) (2005-01-26) (2005-02-27) PIC_SERVER (9) VB TCP/UDP Visual Basic Microsoft Winsock Control (MSWINSCK.OCX) UDP TCP Client Server Visual Basic UDP/TCP PIC_SERVER UDP/TCP 1. Microsoft Winsock
More information第 11 章 互聯網技術 11.1 互聯 網 和 萬 維 網 的 發 展 歷 史 A. 互聯網的發展 互聯網是由 ARPANET 開 始發展的 1969 年 美國國防部高級研究計劃署 (ARPA) 把部分軍事研究所和大 的電腦連接起來 建造了㆒個實驗性的電腦網絡 稱為 ARPANET 並 列 的功能
互 聯 網 技 術 在 完 成 這 章 後, 你 將 能 夠 描 述 互 聯 網 的 發 展 歷 史 描 述 萬 維 網 的 發 展 歷 史 了 解 連 接 互 聯 網 的 基 本 概 念 能 夠 連 接 到 互 聯 網 知 道 互 聯 網 如 何 運 作 互 聯 網 是 全 球 網 絡 的 集 合 互 聯 網 (Internet) 是 ㆒ 個 集 合 全 球 許 多 網 絡 ㆒ 起 的 大 型 網
More informationend to end 7.2 OSI 7 OSI 3 A B 7.2 Packet Routing LAN WAN 7.1.2 141
7 IP IP ARP ICMP IP OSI 3 7.1 7.1.1 7.1 DTE0/1 DCE0/1 DCE0/1 DCE2DCE3 DCE4 7.1 DTE1 DTE2 DCE1 DTE1 DCE2 DCE3 DCE4 MAC DCE2 DCE5 DTE1 DCE1 DCE3 DCE6 DTE2 DCE4 7.1 140 end to end 7.2 OSI 7 OSI 3 A B 7.2
More information<4D F736F F D20BAF4BADEA457BDD2B1D0A7F7ADECA96CC0C95F424342B57BA6A1B2D52E646F63>
電腦網路與程式課程 BC++Builder 程式設計 BCB 程式組教材 授課人員 : 葉書詠 目錄 第一章 -C++ Builder 程式教學 第二章 -VCL 元件介紹 第三章 - 使用 socket 撰寫 BCB 網路程式 第四章 - 程式流程設定範例 第一章 - C++ Builder 程式教學 1.C 語言複習 while while( 條件式 ) { 動作 ----------- do
More informationBYOD Http Redirect convergence Client (1) 2008R2 NLB( ) (2) NLB Unicast mode switch flooding (arp ) NLB DNS Redirect 1. Round-Robin DNS DNS IP/DNS Cli
BYOD 204 2015 GoogleHicloud (Load Balance) Server Load Balance Link Load Balance Server Redirect 1. URL Redirect redirector URL redirect Real Server Client HTTP Real Server Web Client 2 (1) URL Redirect
More information飞鱼星多WAN防火墙路由器用户手册
WAN VER: 20110218 Copyright 2002-2011 VOLANS WAN VR4600 VR4900 VR7200 VR7500 VR7600 1.1 1.2 IP 1.3 2.1 2.2 2.2.1 2.2.2 3.1 3.2 3.2.1 3.2.2 3.2.3 4.1 4.2 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.3 4.3.1 4.3.2
More informationSP_ SP_03 JAVA...6 SP_10 SQL...8 SP_ SP_ SP_ SP_ SP_ SP_ SP_ SP_04.NET...33 SP_02 C...37 SP_05
1 SP_01...3 SP_03 JAVA...6 SP_10 SQL...8 SP_51...12 SP_32...15 SP_53...18 SP_20...21 SP_22...24 SP_21...27 SP_23...30 SP_04.NET...33 SP_02 C...37 SP_05 FLASH...39 SP_06...42 2 SP_01 1. 8. Excel 2. 9. PowerPoint
More informationCC213
: (Ken-Yi Lee), E-mail: feis.tw@gmail.com 49 [P.51] C/C++ [P.52] [P.53] [P.55] (int) [P.57] (float/double) [P.58] printf scanf [P.59] [P.61] ( / ) [P.62] (char) [P.65] : +-*/% [P.67] : = [P.68] : ,
More information13 ????????????????????-2010????3 +1????????????4????????????.doc
常 州 大 学 怀 德 学 院 2010 级 3+1 培 养 模 式 第 4 学 年 实 施 方 案 系 : 信 息 与 电 子 工 程 专 业 : 计 算 机 科 学 与 技 术 专 业 主 任 : 潘 操 相 关 学 院 教 学 院 长 : 邹 凌 系 主 任 : 郑 明 方 一 2010 级 第 4 学 年 培 养 方 案 要 求 为 : 序 号 课 程 名 称 课 程 类 别 学 时 或 周
More informationC/C++程序设计 - 字符串与格式化输入/输出
C/C++ / Table of contents 1. 2. 3. 4. 1 i # include # include // density of human body : 1. 04 e3 kg / m ^3 # define DENSITY 1. 04 e3 int main ( void ) { float weight, volume ; int
More information1 1 2 OSPF RIP 2
MPLS VPN 1. TCP/IP IP IP IP IP 1 1 2 OSPF RIP 2 2 RIP OSPF BGP DVMRP IS- IS IP 1. Unicast Routing Protocol Multicast Routing Protocol RIP OSPF BGP IS-IS DVMRP PIM-SM PIM-DM 2. IGP EGP IGPRIP OSPF IS-ISEGP
More information第3章
本 章 涵 盖 以 下 主 题 全 局 单 播 地 址 路 由 和 子 网 划 分 : 本 节 通 过 与 IPv4 相 比 较, 介 绍 了 IPv6 地 址 IPv4 路 由 的 概 念, 以 及 怎 样 进 行 IPv6 子 网 划 分 IPv6 全 局 单 播 地 址 的 分 配 : 本 节 探 讨 了 怎 样 将 全 局 单 播 地 址 分 配 到 主 机 或 其 他 设 备 上 IPv6
More information新版 明解C++入門編
511!... 43, 85!=... 42 "... 118 " "... 337 " "... 8, 290 #... 71 #... 413 #define... 128, 236, 413 #endif... 412 #ifndef... 412 #if... 412 #include... 6, 337 #undef... 413 %... 23, 27 %=... 97 &... 243,
More informationmvc
Build an application Tutor : Michael Pan Application Source codes - - Frameworks Xib files - - Resources - ( ) info.plist - UIKit Framework UIApplication Event status bar, icon... delegation [UIApplication
More information財金資訊-80期.indd
IPv6 / LINE YouTube TCP/IP TCP (Transmission Control Protocol) IP (Internet Protocol) (node) (address) IPv4 168.95.1.1 IPv4 1981 RFC 791 --IP IPv4 32 2 32 42 IP (Internet Service Provider ISP) IP IP IPv4
More informationChapter #
第三章 TCP/IP 协议栈 本章目标 通过本章的学习, 您应该掌握以下内容 : 掌握 TCP/IP 分层模型 掌握 IP 协议原理 理解 OSI 和 TCP/IP 模型的区别和联系 TCP/IP 介绍 主机 主机 Internet TCP/IP 早期的协议族 全球范围 TCP/IP 协议栈 7 6 5 4 3 应用层表示层会话层传输层网络层 应用层 主机到主机层 Internet 层 2 1 数据链路层
More informationMicrosoft PowerPoint - 数据通信-ch1.ppt
主 要 内 容 与 基 本 要 求 主 要 内 容 数 据 通 信 与 计 算 机 网 络 计 算 机 网 络 的 发 展 过 程 分 类 以 及 主 要 性 能 指 标 ; 分 组 交 换 的 基 本 原 理 及 其 与 电 路 交 换 报 文 交 换 的 联 系 与 区 别 ; 计 算 机 网 络 的 协 议 与 体 系 结 构 第 1 章 概 述 基 本 要 求 掌 握 分 组 交 换 电 路
More information计算机网络概论
1 repeater bridge router gateway V.S OSI Repeater(Hub) 1 Repeater 2 3 ( Hub 4 Bridge 1 Bridge 2 N N DL1 DL1 DL2 DL2 Ph1 Ph1 Ph2 Ph2 1 2 Bridge 3 MAC Ethernet FDDI MAC MAC Bridge 4 5 6 7 50873EA6, 00123456
More informationbingdian001.com
1. DLL(Dynamic Linkable Library) DLL ± lib EXE DLL DLL EXE EXE ± EXE DLL 1 DLL DLL DLL Windows DLL Windows API Visual Basic Visual C++ Delphi 2 Windows system32 kernel32.dll user32.dll gdi32.dll windows
More information穨CAS1042快速安速說明.doc
CAS1042 4 Port 10/100M Switch Internet BroadBand Router IP IP... PC CAS1042 UTP Cable CAS1042 5V / 2.4A 6 1. 2. ADSL Cable Modem 3. CAS1042 4. TCP/IP 5. 6. 1 2 ADSL Modem Cable Modem CAS1042 ) / "LAN
More information1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File
51 C 51 51 C C C C C C * 2003-3-30 pnzwzw@163.com C C C C KEIL uvision2 MCS51 PLM C VC++ 51 KEIL51 KEIL51 KEIL51 KEIL 2K DEMO C KEIL KEIL51 P 1 1 1 1-1 - 1 Project New Project 1 2 Windows 1 3 N C test
More informationWeb
Email: tian@dr.com http://www.digiark.com/tian Web 1. 2. 3. 4. 5. 6. Internet Internet (Hacker) Internet web IP 1 Internet UNIX Windows VLAN Internet IP 2 Internet FTP TELNET PING IP 8 telnet FTP RLOGIN
More information<4D6963726F736F667420576F7264202D20C9CFBAA3CAD0BCC6CBE3BBFAB5C8BCB6BFBCCAD4C8FDBCB6BFBCCAD4B4F3B8D95FBDA8D2E9B8E55F5F303632352E646F63>
上 海 市 高 等 学 校 计 算 机 等 级 考 试 ( 三 级 ) 考 试 大 纲 -- 建 议 稿 -- 2007-6-25 25 目 录 上 海 市 高 等 学 校 计 算 机 等 级 考 试 三 级 总 体 说 明 -----------------1 三 级 ( 计 算 机 系 统 与 网 络 技 术 ) 考 试 大 纲 ---------------------2 三 级 ( 管 理
More information<4D6963726F736F667420506F776572506F696E74202D20A1B6CFEEC4BFD2BB20B3F5CAB6BCC6CBE3BBFACDF8C2E7A1B7C8CECEF1C8FD20CAECCFA4544350A1A24950D0ADD2E9BACD4950B5D8D6B72E707074>
项 目 一 : 初 识 计 算 机 网 络 任 务 三 熟 悉 TCP/IP 协 议 和 IP 地 址 一. 学 习 要 求 : 学 习 要 求 及 难 点 1. 了 解 IP 协 议 TCP 协 议 和 UDP 协 议 2. 熟 悉 IP 地 址 的 划 分 和 分 类 3. 了 解 IPV6 的 地 址 结 构 二. 难 点 : 1. IP 地 址 三. 学 时 : 1. 理 论 教 学 :6
More information华恒家庭网关方案
LINUX V1.5 1 2 1 2 LINUX WINDOWS PC VC LINUX WINDOWS LINUX 90% GUI LINUX C 3 REDHAT 9 LINUX PC TFTP/NFS http://www.hhcn.com/chinese/embedlinux-res.html minicom NFS mount C HHARM9-EDU 1 LINUX HHARM9-EDU
More informationSiteView技术白皮书
SiteView ECC V6.2 技 术 白 皮 书 游 龙 网 络 科 技 ( 中 国 ) 有 限 公 司 DragonFlow Networks(China),Inc. 目 录 第 一 章 产 品 概 述... 3 第 二 章 系 统 结 构... 6 一 系 统 架 构... 7 1 用 户 管 理 模 块... 7 2 Web Server... 8 3 存 储 加 密 模 块... 8
More informationmppp-ddr.pdf
DDR 多 链 路 PPP - 基 本 配 置 和 验 证 目 录 简 介 开 始 使 用 前 规 则 先 决 条 件 使 用 的 组 件 多 链 路 PPP 干 什 么 配 置 多 链 路 PPP 命 令 传 统 DDR 拨 号 原 型 (Dialer Profile) 验 证 MPPP 操 作 相 关 信 息 简 介 多 链 路 PPP ( 也 指 MP MPPP MLP 或 多 链 路 ) 提
More informationuntitled
3 C++ 3.1 3.2 3.3 3.4 new delete 3.5 this 3.6 3.7 3.1 3.1 class struct union struct union C class C++ C++ 3.1 3.1 #include struct STRING { typedef char *CHARPTR; // CHARPTR s; // int strlen(
More informationVIDEOJET connect 7000 VJC-7000-90 zh- CHS Operation Manual VIDEOJET connect 7000 zh-chs 3 目 录 1 浏 览 器 连 接 7 1.1 系 统 要 求 7 1.2 建 立 连 接 7 1.2.1 摄 像 机 中 的 密 码 保 护 7 1.3 受 保 护 的 网 络 7 2 系 统 概 述 8 2.1 实 况
More informationuntitled
1....2...2...6 2....10 3. UDP...15 4. TCP...16...16...16 1 1. PC COM1 COM2 COM1 COM2 DTU 2 3 4 COM1 COM1 COM2 COM ID 13900000000 DTU COM1 5 COM2 DTU DTU DTU DTU DTU DTU DTU ID ID 3031 3032 2 ID 13900000001
More informationPs22Pdf
26 2 2009 2 Application Research of Computers Vol. 26 No. 2 Feb. 2009 Linux IPv6 * OLSR ( 610054) IPv6 Ad hoc OLSR Linux Linux OLSR OLSR IPv6 OLSR ; OLSR ; Linux ; ; IPv6 TP393 A 1001-3695( 2009) 02-0655-
More informationebook177-1
1 1968 A R PA N E T A R PA N E T 1 9 7 3 Ly n c h R o s e Internet system Handbook ( 1993 ) David Croker R F C Request for Comment 1969 R F C R F C M O 1969 1974 A R PA N E T 1977 I E N T C P / I P 1986
More informationW. Richard Stevens UNIX Sockets API echo Sockets TCP OOB IO C struct C/C++ UNIX fork() select(2)/poll(2)/epoll(4) IO IO CPU 100% libevent UNIX CPU IO
Linux muduo C++ (giantchen@gmail.com) 2012-09-30 C++ TCP C++ x86-64 Linux TCP one loop per thread Linux native muduo C++ IT 5 C++ muduo 2 C++ C++ Primer 4 W. Richard Stevens UNIX Sockets API echo Sockets
More information