Cov txheej txheem:

Nws puas tuaj yeem sau qhov program ping hauv Java siv ICMP cov lus?
Nws puas tuaj yeem sau qhov program ping hauv Java siv ICMP cov lus?

Video: Nws puas tuaj yeem sau qhov program ping hauv Java siv ICMP cov lus?

Video: Nws puas tuaj yeem sau qhov program ping hauv Java siv ICMP cov lus?
Video: Mus ua nyab rau yim hmoob tsis zoo 7/27/2017 2024, Kaum ib hlis
Anonim

Ping ua haujlwm los ntawm kev xa Internet Control Xov xwm raws tu qauv ( ICMP /ICMP6) Echo Thov pob ntawv rau lub hom phiaj tswv tsev thiab tos rau ib qho ICMP Echo Teb. Cov qhov kev pab cuam qhia txog qhov yuam kev, pob ntawv poob, thiab cov ntsiab lus ntawm cov txiaj ntsig. Qhov no Java Program pings ib tus IP chaw nyob hauv Java siv InetAddress chav kawm.

Ib sab ntawm qhov no, qhov txawv ntawm ICMP thiab Ping yog dab tsi?

ICMP yog tus txheej txheem rau xa ntau yam lus los qhia txog cov xwm txheej hauv network-nws tsis yog ping . Kev thov ncha yog ib qho ntawm ntau cov lus. Ping tuaj yeem lim tawm, tab sis feem ntau ntawm ICMP hom lus yuav tsum muaj rau kev ua haujlwm zoo ntawm IP, TCP thiab lwm yam kev cai.

Ib yam li ntawd, hom twg ntawm ICMP cov lus yuav tsum tau teb rau PING qhov hluav taws xob? ICMP Ping. Ping siv ob ICMP codes: 8 (echo thov) thiab 0 ( ncha teb ). Thaum koj muab cov lus txib Ping ntawm qhov kev hais kom sai, Ping qhov kev pab cuam xa tawm ib pob ntawv ICMP uas muaj tus lej 8 hauv Hom teb. Cov lus teb yuav muaj hom 0.

Qhov thib ob, Kuv yuav siv Ping li cas?

Cov kauj ruam

  1. Qhib Command Prompt lossis Terminal. Txhua qhov kev khiav hauj lwm muaj cov kab hais kom ua interface uas yuav tso cai rau koj khiav Ping hais kom ua.
  2. Nkag mus rau Ping hais kom ua. Ntaus ping hostname lossis ping IP chaw nyob.
  3. Nias Enter kom pom koj cov zis ping. Cov txiaj ntsig yuav tshwm sim hauv qab kab hais kom ua tam sim no.

Lub hom phiaj ntawm ICMP yog dab tsi?

Internet Control Message Protocol ( ICMP ) yog TCP/IP network txheej raws tu qauv uas muab kev daws teeb meem, tswj thiab yuam kev cov kev pab cuam. ICMP yog feem ntau siv nyob rau hauv kev khiav hauj lwm systems rau networked computers, qhov twg nws xa cov lus yuam kev.

Pom zoo: