Switch Test Presentation The Outline 1.The concept of ping 2.TCP/IP protocol 3.ICMP 4.Ethereal 5.RFC standard for benchmark
The concept of Ping tool ICMP Type = 8 ICMP Type = 0 A 電腦 B 電腦 A ping B
TCP/IP Structure
TCP/IP Model Application HTTP 、 FTP 、 TELNET 、 SNMP 、 NFS TCP TCP 、 UDP IP IP 、 ICMP 、 ARP 、 RARP Physical Layer : Ethernet 、 FDDI 、 Token Ring …. Application : IE 、 Web Server… Protocol : HTTP 、 FTP…
Application Application IE Presentation HTML Session HTTP TCPTransport Port Number IPNetwork IP Address Physical Layer Data Link MAC Physical RJ-45 TCP/IP VS. OSI
TCP/IP Stack IE HTML HTTP BB DD RJ45 HTTP GET Response A 電腦 Google Apache/IIS HTML HTTP AA-2C- DD-15- F3-VV Fiber
ICMP Code Type CodeChecksum IdentifierSequence Number OPTIONAL DATA All
ICMP Code TYPE = 3 0 = network unreachable router router 1 = host unreachable router DNS 2 = protocol unreachable host Service 3 = port unreachable host Port Num 4 = fragmentation needed but impossible router because of 'don't fragment' command MTU 5 = source route not reachable router routing
ICMP Code TYPE = 8 - Echo Request sent by: 0 = (no special meaning) host, router TYPE = 0 - Echo Reply sent by: 0 = (no special meaning) host, router
Structure of test environment Switch 16 port Receiver2 Receiver1 Sender (Packet size = in windows and in Linux)
Sender information BACK
Receive packet rule in non-promiscuous mode Broadcast Personal IP
Structure of test environment Simple equation ( ( input_count - output_count ) * 100 ) / input_count A 電腦送出 個封包 (ICMP TYPE=8) B 電腦收到 9500 個封包 (ICMP TYPE=0) Frame loss 數目 = – 9500 = /10000 = 95% Frame loss 定義為降 90% 往下測試為標準 請參照 RFC2544 page RFC2889 page
Reference RFC2544 RFC2889 RFC1242