1介紹
gping能夠以折線圖的方式,實(shí)時(shí)展示 ping 的結(jié)果,支持 Windows、Linux 和 macOS 操作系統(tǒng)。并且支持多個(gè)目標(biāo)同時(shí)Ping同時(shí)展示折線圖方便對(duì)比。下面擴(kuò)展一下ICMP及ICMP隧道。
ICMP消息結(jié)構(gòu):
ICMP消息是由一個(gè)類型字段、一個(gè)代碼字段、一個(gè)校驗(yàn)和字段和與特定消息類型相關(guān)的數(shù)據(jù)字段組成的。類型字段和代碼字段一起確定了消息的類型和子類型,而數(shù)據(jù)字段可以攜帶各種信息,具體取決于消息的類型和代碼。以下是常規(guī)ICMP報(bào)文格式:
靈活性:
ICMP協(xié)議設(shè)計(jì)靈活,允許在數(shù)據(jù)字段中攜帶各種信息。這種靈活性使得可以將數(shù)據(jù)包封裝在ICMP消息中,并通過網(wǎng)絡(luò)傳輸,因?yàn)閿?shù)據(jù)字段的內(nèi)容并不受到太多的限制,只要它在特定的消息類型和代碼下合法。
封裝和解封裝:發(fā)送端將要傳輸?shù)臄?shù)據(jù)包封裝在一個(gè)ICMP消息中,然后將該ICMP消息封裝在一個(gè)IP數(shù)據(jù)包中,以便將其發(fā)送到目標(biāo)。接收端首先解封裝IP數(shù)據(jù)包,然后解封裝包含原始數(shù)據(jù)包的ICMP消息,最終提取出原始數(shù)據(jù)包。
隧道技術(shù):
ICMP隧道技術(shù)利用了ICMP消息的封裝和解封裝能力,使得數(shù)據(jù)包可以在ICMP消息中進(jìn)行傳輸。通常,ICMP隧道軟件會(huì)將要傳輸?shù)臄?shù)據(jù)分割成小塊,并將每個(gè)小塊封裝在不同的ICMP消息中,然后發(fā)送到目標(biāo)。在目標(biāo)端,ICMP隧道軟件會(huì)解析接收到的ICMP消息,提取出原始數(shù)據(jù),并將其還原成完整的數(shù)據(jù)包。
隱蔽性:
ICMP隧道通常不太容易被網(wǎng)絡(luò)審查或防火墻檢測(cè)到,因?yàn)镮CMP消息在網(wǎng)絡(luò)中非常常見,用于各種網(wǎng)絡(luò)管理任務(wù)。這使得ICMP隧道成為一種潛在的隱蔽通信方法。
TTL以及其他ICMP的具體機(jī)制下次一定
2對(duì)比
傳統(tǒng)Ping:
單目標(biāo)Gping:
雙目標(biāo)Gping:
3使用
$ gping --help Ping, but with a graph. Usage: gping [OPTIONS] [HOSTS_OR_COMMANDS]... Arguments: [HOSTS_OR_COMMANDS]... Hosts or IPs to ping, or commands to run if --cmd is provided. Can use cloud shorthands like aws:eu-west-1. Options: --cmd Graph the execution time for a list of commands rather than pinging hosts -n, --watch-intervalWatch interval seconds (provide partial seconds like '0.5'). Default for ping is 0.2, default for cmd is 0.5. -b, --buffer Determines the number of seconds to display in the graph. [default: 30] -4 Resolve ping targets to IPv4 address -6 Resolve ping targets to IPv6 address -i, --interface Interface to use when pinging -s, --simple-graphics Uses dot characters instead of braille --vertical-margin Vertical margin around the graph (top and bottom) [default: 1] --horizontal-margin Horizontal margin around the graph (left and right) [default: 0] -c, --color Assign color to a graph entry. This option can be defined more than once as a comma separated string, and the order which the colors are provided will be matched against the hosts or commands passed to gping. Hexadecimal RGB color codes are accepted in the form of '#RRGGBB' or the following color names: 'black', 'red', 'green', 'yellow', 'blue', 'magenta','cyan', 'gray', 'dark-gray', 'light-red', 'light-green', 'light-yellow', 'light-blue', 'light-magenta', 'light-cyan', and 'white' -h, --help Print help information -V, --version Print version information --clear Clear the graph from the terminal after closing the program
gping --help
4
安裝
Linux
wget https://github.com/orf/gping/releases/download/gping-v1.14.0/gping-Linux-x86_64.tar.gz ┌──(root?kali)-[~] └─# mv gping /usr/local/bin ┌──(root?kali)-[~] └─# gping Error: At least one host or command must be given (i.e gping google.com). Use --help for a full list of arguments. #安裝成功
Windows
將可執(zhí)行文件放入C:/Windows目錄下
審核編輯:湯梓紅
-
Linux
+關(guān)注
關(guān)注
87文章
11457瀏覽量
212766 -
操作系統(tǒng)
+關(guān)注
關(guān)注
37文章
7081瀏覽量
124939 -
Ping
+關(guān)注
關(guān)注
0文章
69瀏覽量
16340 -
測(cè)試工具
+關(guān)注
關(guān)注
0文章
58瀏覽量
12079
原文標(biāo)題:一個(gè)圖形化PING測(cè)試工具
文章出處:【微信號(hào):網(wǎng)絡(luò)工程師筆記,微信公眾號(hào):網(wǎng)絡(luò)工程師筆記】歡迎添加關(guān)注!文章轉(zhuǎn)載請(qǐng)注明出處。
發(fā)布評(píng)論請(qǐng)先 登錄
[分享]圖形化系統(tǒng)的設(shè)計(jì)
NI LabVIEW的圖形化編程有什么優(yōu)勢(shì)
labview圖形化編程分享!
介紹一款運(yùn)行在PC機(jī)上的圖形化在線調(diào)試工具
TPTTPT動(dòng)態(tài)自動(dòng)化測(cè)試工具怎么樣
怎樣去使用rockchip在ubuntu下提供圖形化的燒寫工具呢
一個(gè)“古老”的圖形化工具在RF設(shè)計(jì)中的重要性

怎樣才能縮短開發(fā)圖形化系統(tǒng)設(shè)計(jì)的時(shí)間?

常用的軟件測(cè)試工具有哪些_10款常用的軟件測(cè)試工具推薦
初學(xué)GDB調(diào)試工具需要注意的事項(xiàng)

STM32CubeMX圖形化配置工具的安裝教程

一款圖形化高危漏洞利用工具
領(lǐng)芯靈犀(ChipHearts)平臺(tái)發(fā)布:領(lǐng)芯MCU產(chǎn)品線圖形化配置調(diào)試工具

評(píng)論