Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 ICMP : Internet Control Message Protocol Computer Network System Sirak Kaewjamnong.

Similar presentations


Presentation on theme: "1 ICMP : Internet Control Message Protocol Computer Network System Sirak Kaewjamnong."— Presentation transcript:

1 1 ICMP : Internet Control Message Protocol Computer Network System Sirak Kaewjamnong

2 2 Basic Ideas ICMP is provided within IP which generates error messages to help IP layers(best effort delivery) Function of ICMP –a node recognizing a transmission problem (TTL exceed, destination unreachable, etc.) generates ICMP messages –ICMP provides some useful diagnostics about network operation (ping, traceroute)

3 3 Basic Ideas ICMP error messages never generates due to: –ICMP error message selves –Broadcast, multicast –Others fragments, except first fragment –This to prevent broadcast storm What are broadcast storm –a large number of broadcast datalink frames transmitted nearly simultaneous from several hosts –LAN may have been brought to standstill

4 4 ICMP Encapsulation Frame header e.g. Ethernet Frame Data IP headerIP Data TypeCode ……. Indicate error problems Contain protocol indicate ICMP

5 5 ICMP Header Type: 8Code : 8Checksum : 16 Content specific 0 15 1631 Type : relevant ICMP message Code : more details information Checksum : covers ICMP header/data (not IP header)

6 6 ICMP Types TypeCodeMeaning 00echo reply 30network unreachable 31host is unreachable 33port is unreachable 40source quench 50redirect 80echo request 9/100router discovery/advertisement 110time exceed 120parameter problem 13/140time stamp request 17/180network request/reply

7 7 ICMP type 0/8 echo request/reply PING sends icmp type 8 echo request to a node and expects an icmp type 0 echo reply identifier and sequence number are used to identify datagrams Type = 0 or 8codechecksum identifierSequence number Optional data

8 8 ICMP type 3 Destination Unreachable Router is unable to deliver datagram, it can return the ICMP type 3 with failure code Internet header plus 64 bits of original datagram are used to identify the datagram caused the problem Type = 3codechecksum unused IP header + 64 bits of original data

9 9 ICMP type 4 Source Quench Router detected hosts were overload would send this message to hosts that were the major cause the host would then reduce the rate at which subsequence message are sent RFC recommends that router must not generate source quench, host must still accept the message but need take no action Type = 4codechecksum Unused (must be 0) IP header + 64 bits of original data

10 10 ICMP type 5 Route Change Request Used only by router to suggest a more suitable route to the originator (also called ICMP redirect) Type = 5codechecksum IP address of a more suitable router IP header + 64 bits of original data

11 11 PING : ICMP Echo Request/Reply PING sends and ICMP echo request to a remote host, which then return an ICMP echo reply to the sender All TCP/IP node is supposed to implement ICMP and respond to ICMP echo PING Reply

12 12 PING Command Send a single echo request message and wait for a reply Another request is sent if the reply is not received within one second Continue until at least one reply is received or stop after time out > ping maliwan maliwan.psu.ac.th is alive If maliwan down >ping maliwan no answer from maliwan.psu.ac.th

13 13 PING Command Send an echo request message every seconds and records the time it takes for each reply every echo request contains a unique sequence number to match reply and request also record round-trip timing also do packet lost statistics

14 14 PING Example C:\>ping maliwan.psu.ac.th Pinging maliwan.psu.ac.th [192.168.100.4] with 32 bytes of data: Reply from 192.168.100.4: bytes=32 time=3ms TTL=32 Reply from 192.168.100.4: bytes=32 time=4ms TTL=32 Ping statistics for 192.168.100.4: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli- seconds: Minimum = 3ms, Maximum = 4ms, Average = 3ms C:\>_

15 15 What we get from PING? Timing information Connection reliability Destination Unreachable (routable)

16 16 PING Results no respond no end node, no connection lost packet (significant when > 2-3 %) transmission error on LAN/WAN, overloading bridge or router time acknowledge vary host/network overloading > 100 ms make telnet less acceptable no lost and echo time is reasonably constant

17 17 Traceroute Command Command to determine the active route to a destination address How? –Send a UDP message to an unused port on the target host with ttl = 1 –router decrease ttl to 0, it has to return an ICMP time exceed massage –traceroute set ttl = 2 and retransmits, this time go one more hop –ttl++ until UDP reach the destination –the target returns an ICMP service unreachable because there is no UDP port service

18 18 Traceroute Example C:\>tracert www.psu.ac.th Tracing route to s1.psu.ac.th [192.168.100.61] over a maximum of 30 hops: 1 1 ms 1 ms 1 ms cs-gw.cs.psu.ac.th [172.28.80.1] 2 2 ms 2 ms 1 ms esw-cc.psu.ac.th [192.168.99.39] 3 2 ms 3 ms 5 ms cc-atm.psu.ac.th [192.168.0.249] 4 4 ms 2 ms 3 ms tooky.psu.ac.th [192.168.98.11] 5 3 ms 3 ms 3 ms s1.psu.ac.th [192.168.100.61] Trace complete. C:\> usually probes each hop 3 times a lost message or a router that doesn ’ t respond with denote with an “ * “


Download ppt "1 ICMP : Internet Control Message Protocol Computer Network System Sirak Kaewjamnong."

Similar presentations


Ads by Google