{"id":2376,"date":"2022-06-15T21:52:06","date_gmt":"2022-06-15T12:52:06","guid":{"rendered":"http:\/\/192.168.20.1\/?p=2376"},"modified":"2022-06-19T16:32:53","modified_gmt":"2022-06-19T07:32:53","slug":"ip-multicast-test-tool-ssmping","status":"publish","type":"post","link":"https:\/\/rlab.cavtime.net\/?p=2376","title":{"rendered":"IP Multicast Test Tool [ ssmping\/asmping\/mcfirst ]"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>IP Multicast Test Tool \u306e ssmping \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<h2>Reference<\/h2>\n<ul>\n<li><a href=\"http:\/\/manpages.ubuntu.com\/manpages\/jammy\/man1\/ssmping.1.html\" target=\"_blank\" rel=\"noopener\">Ubuntu ssmping<\/a><\/li>\n<li><a href=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2022\/06\/tnc2006.pdf\" target=\"_blank\" rel=\"noopener\">ssmping and asmping<\/a><\/li>\n<\/ul>\n<h2>Environment<\/h2>\n<pre>$ cat \/etc\/os-release\r\nPRETTY_NAME=\"Ubuntu 22.04 LTS\"\r\nNAME=\"Ubuntu\"\r\nVERSION_ID=\"22.04\"\r\nVERSION=\"22.04 LTS (Jammy Jellyfish)\"\r\nVERSION_CODENAME=jammy\r\nID=ubuntu\r\nID_LIKE=debian\r\nHOME_URL=\"https:\/\/www.ubuntu.com\/\"\r\nSUPPORT_URL=\"https:\/\/help.ubuntu.com\/\"\r\nBUG_REPORT_URL=\"https:\/\/bugs.launchpad.net\/ubuntu\/\"\r\nPRIVACY_POLICY_URL=\"https:\/\/www.ubuntu.com\/legal\/terms-and-policies\/privacy-policy\"\r\nUBUNTU_CODENAME=jammy\r\n$\r\n<\/pre>\n<h2>Install<\/h2>\n<pre>$ sudo apt install ssmping\r\n<\/pre>\n<h2>Help<\/h2>\n<pre>$ ssmping -h\r\nssmping: invalid option -- 'h'\r\nssmping version 0.9.1 (20080418)\r\n\r\nUsage:\r\nssmping [ -46v ] [ -I interface ] [ -c count ] [ -s size ] destination\r\n$\r\n$ asmping --help\r\nasmping: invalid option -- '-'\r\nasmping version 0.9.1 (20080418)\r\n\r\nUsage:\r\nasmping [ -46v ] [ -I interface ] [ -c count ] [ -s size ] group destination\r\nor\r\nasmping [ -46v ] [ -I interface ] [ -c count ] [ -s size ] destination group\r\n$\r\n$ mcfirst --help\r\nmcfirst: invalid option -- '-'\r\nmcfirst version 0.9.1 (20080418)\r\n\r\nUsage:\r\nmcfirst [ -46vr ] [ -I interface ] [ -c count ] [ -t time ] [source] group port\r\nor\r\nmcfirst [ -46vr ] [ -I interface ] [ -c count ] [ -t time ] group [source] port\r\n$\r\n<\/pre>\n<h2>command path<\/h2>\n<pre>\/usr\/bin\/asmping\r\n\/usr\/bin\/mcfirst\r\n\/usr\/bin\/ssmping\r\n\/usr\/bin\/ssmpingd\r\n<\/pre>\n<h2>Testing (Send and Receive)<\/h2>\n<h3>Server<\/h3>\n<pre>$ ifconfig\r\nenp0s3: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500\r\n        inet 192.168.1.56  netmask 255.255.255.0  broadcast 192.168.1.255\r\n        inet6 fe80::a00:27ff:fe24:8c06  prefixlen 64  scopeid 0x20\r\n        inet6 2408:211:540:ca00:a00:27ff:fe24:8c06  prefixlen 64  scopeid 0x0\r\n        ether 08:00:27:24:8c:06  txqueuelen 1000  (Ethernet)\r\n        RX packets 971  bytes 318204 (318.2 KB)\r\n        RX errors 0  dropped 302  overruns 0  frame 0\r\n        TX packets 606  bytes 93875 (93.8 KB)\r\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0\r\n\r\nlo: flags=73&lt;UP,LOOPBACK,RUNNING&gt;  mtu 65536\r\n        inet 127.0.0.1  netmask 255.0.0.0\r\n        inet6 ::1  prefixlen 128  scopeid 0x10\r\n        loop  txqueuelen 1000  (Local Loopback)\r\n        RX packets 108  bytes 10196 (10.1 KB)\r\n        RX errors 0  dropped 0  overruns 0  frame 0\r\n        TX packets 108  bytes 10196 (10.1 KB)\r\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0\r\n\r\n$\r\n$ ssmpingd &amp;\r\n[1] 1239\r\n$ \r\nreceived request from 192.168.1.55\r\nreceived request from 192.168.1.55\r\nreceived request from 192.168.1.55\r\nreceived request from 192.168.1.55\r\nreceived request from 192.168.1.55\r\n\r\n<\/pre>\n<h3>Client<\/h3>\n<pre>$ ssmping -c 5 -4 192.168.1.56\r\nssmping joined (S,G) = (192.168.1.56,232.43.211.234)\r\npinging S from 192.168.1.55\r\n  unicast from 192.168.1.56, seq=1 dist=0 time=0.536 ms\r\nmulticast from 192.168.1.56, seq=1 dist=0 time=0.536 ms\r\n  unicast from 192.168.1.56, seq=2 dist=0 time=0.835 ms\r\nmulticast from 192.168.1.56, seq=2 dist=0 time=0.835 ms\r\n  unicast from 192.168.1.56, seq=3 dist=0 time=0.833 ms\r\nmulticast from 192.168.1.56, seq=3 dist=0 time=0.834 ms\r\n  unicast from 192.168.1.56, seq=4 dist=0 time=0.329 ms\r\nmulticast from 192.168.1.56, seq=4 dist=0 time=0.329 ms\r\n  unicast from 192.168.1.56, seq=5 dist=0 time=0.907 ms\r\nmulticast from 192.168.1.56, seq=5 dist=0 time=0.907 ms\r\n\r\n--- 192.168.1.56 statistics ---\r\n5 packets transmitted, time 5017 ms\r\nunicast:\r\n   5 packets received, 0% packet loss\r\n   rtt min\/avg\/max\/std-dev = 0.329\/0.688\/0.907\/0.220 ms\r\nmulticast:\r\n   5 packets received, 0% packet loss since first mc packet (seq 1) recvd\r\n   rtt min\/avg\/max\/std-dev = 0.329\/0.688\/0.907\/0.221 ms\r\n$\r\n<\/pre>\n<h2>Packet list<\/h2>\n<pre>No.     Time                          Source                Destination           Protocol Length Info \r\n      6 2022-06-15 21:37:37.733728    192.168.1.55          192.168.1.56          UDP      80     54691 \u2192 4321 Len=38\r\n      7 2022-06-15 21:37:37.733806    192.168.1.56          192.168.1.55          UDP      80     4321 \u2192 54691 Len=38\r\n      8 2022-06-15 21:37:37.733823    192.168.1.56          232.43.211.234        UDP      80     4321 \u2192 54691 Len=38\r\n     10 2022-06-15 21:37:37.742473    192.168.1.55          224.0.0.22            IGMPv3   60     Membership Report \/ Group 232.43.211.234, new source {192.168.1.56}\r\n     13 2022-06-15 21:37:38.554868    192.168.1.55          224.0.0.22            IGMPv3   60     Membership Report \/ Group 232.43.211.234, new source {192.168.1.56}\r\n     14 2022-06-15 21:37:38.778004    192.168.1.55          192.168.1.56          UDP      80     54691 \u2192 4321 Len=38\r\n     15 2022-06-15 21:37:38.778179    192.168.1.56          192.168.1.55          UDP      80     4321 \u2192 54691 Len=38\r\n     16 2022-06-15 21:37:38.778229    192.168.1.56          232.43.211.234        UDP      80     4321 \u2192 54691 Len=38\r\n     20 2022-06-15 21:37:39.744113    192.168.1.55          192.168.1.56          UDP      80     54691 \u2192 4321 Len=38\r\n     21 2022-06-15 21:37:39.744355    192.168.1.56          192.168.1.55          UDP      80     4321 \u2192 54691 Len=38\r\n     22 2022-06-15 21:37:39.744408    192.168.1.56          232.43.211.234        UDP      80     4321 \u2192 54691 Len=38\r\n     28 2022-06-15 21:37:40.760912    192.168.1.55          192.168.1.56          UDP      80     54691 \u2192 4321 Len=38\r\n     29 2022-06-15 21:37:40.761094    192.168.1.56          192.168.1.55          UDP      80     4321 \u2192 54691 Len=38\r\n     30 2022-06-15 21:37:40.761150    192.168.1.56          232.43.211.234        UDP      80     4321 \u2192 54691 Len=38\r\n     35 2022-06-15 21:37:41.739789    192.168.1.55          192.168.1.56          UDP      80     54691 \u2192 4321 Len=38\r\n     36 2022-06-15 21:37:41.739916    192.168.1.56          192.168.1.55          UDP      80     4321 \u2192 54691 Len=38\r\n     37 2022-06-15 21:37:41.739950    192.168.1.56          232.43.211.234        UDP      80     4321 \u2192 54691 Len=38\r\n     42 2022-06-15 21:37:42.762429    192.168.1.55          224.0.0.22            IGMPv3   60     Membership Report \/ Group 232.43.211.234, block source {192.168.1.56}\r\n     47 2022-06-15 21:37:43.516134    192.168.1.55          224.0.0.22            IGMPv3   60     Membership Report \/ Group 232.43.211.234, block source {192.168.1.56}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Overview IP Multicast Test Tool \u306e ssmping \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002 Reference Ubuntu ssmping ssmping and asmping Environment  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[123,125],"tags":[],"class_list":["post-2376","post","type-post","status-publish","format-standard","hentry","category-ip-multicast","category-ip-tcp-udp"],"_links":{"self":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/2376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2376"}],"version-history":[{"count":8,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/2376\/revisions"}],"predecessor-version":[{"id":2392,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/2376\/revisions\/2392"}],"wp:attachment":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}