Qhov txawv ntawm qhov (socket) thiab chaw nres nkoj

Qhov txawv ntawm qhov (socket) thiab chaw nres nkoj
Qhov txawv ntawm qhov (socket) thiab chaw nres nkoj

Video: Qhov txawv ntawm qhov (socket) thiab chaw nres nkoj

Video: Qhov txawv ntawm qhov (socket) thiab chaw nres nkoj
Video: Yuav tawm ntawm txoj kev txom nyem tau li cas? 2024, Lub Xya hli ntuj
Anonim

Socket vs Port

Nyob rau hauv cov ntsiab lus ntawm kev sib txuas hauv computer, lub qhov (socket) yog qhov kawg ntawm kev sib txuas lus bidirectional uas tshwm sim hauv lub network uas yog raws li hauv internet raws tu qauv. Cov qhov (sockets) yuav faib cov ntaub ntawv cov ntaub ntawv uas tau los ntawm txoj kev sib txuas lus mus rau daim ntawv thov raug. Qhov no yog ua tiav siv cov ntaub ntawv xws li IP chaw nyob thiab tus lej chaw nres nkoj. Feem ntau, qhov chaw nres nkoj (software) yog cov ntaub ntawv sib txuas uas tuaj yeem siv los pauv cov ntaub ntawv. Hauv internet TCP thiab UDP chaw nres nkoj yog siv los pauv cov ntaub ntawv ntawm cov khoos phis tawj thiab cov no yog cov chaw nres nkoj siv dav tshaj plaws.

Lub qhov (socket) yog dab tsi?

Ib lub qhov (socket) yog qhov kawg ntawm kev sib txuas lus bidirectional uas tshwm sim hauv lub computer network uas yog raws li kev cai hauv internet. Cov qhov (sockets) yuav faib cov ntaub ntawv cov ntaub ntawv uas tau los ntawm txoj kev sib txuas lus mus rau daim ntawv thov raug. Kev khiav hauj lwm system maps txhua lub qhov (socket) rau ib tug txheej txheem los yog ib tug xov uas sib txuas lus. Muaj ob hom qhov (socket) hu ua active sockets thiab passive sockets. Lub qhov (socket) active yog ib lub qhov (socket) uas txuas nrog rau lwm lub qhov (socket) los ntawm cov ntaub ntawv sib txuas uas qhib. Active sockets ntawm ob qho kawg ntawm kev sib txuas lus channel yuav raug rhuav tshem thaum qhov kev sib txuas raug kaw. Lub qhov (socket) passive tsis koom nrog kev sib txuas, tab sis lub qhov (socket) uas tos rau qhov kev sib txuas tuaj. Thaum ib lub qhov (socket) txuas nrog nws yuav tsim lub qhov (socket) tshiab. Lub qhov (socket) hauv internet raug txheeb xyuas los ntawm qhov chaw nyob ntawm lub qhov (socket) hauv zos (qhov chaw nyob IP thiab tus lej chaw nres nkoj), qhov chaw nyob ntawm lub qhov (socket) tej thaj chaw deb thiab kev thauj mus los (xws li TCP, UDP).

Chaw nres nkoj yog dab tsi?

Ib qhov chaw nres nkoj yog cov ntaub ntawv sib txuas uas tuaj yeem siv los pauv cov ntaub ntawv yam tsis tas siv cov ntaub ntawv ib ntus lossis khaws cia. Hauv internet TCP thiab UDP chaw nres nkoj yog siv los pauv cov ntaub ntawv ntawm cov khoos phis tawj thiab cov no yog cov chaw nres nkoj siv dav tshaj plaws. Chaw nres nkoj raug txheeb xyuas siv tus lej cuam tshuam nrog qhov chaw nres nkoj hu ua tus lej chaw nres nkoj, IP chaw nyob cuam tshuam nrog qhov chaw nres nkoj thiab cov txheej txheem thauj mus los. Cov chaw nres nkoj tus lej feem ntau tau tshwj tseg hauv lub khoos phis tawj tswj hwm rau cov kev pabcuam tshwj xeeb. Chaw nres nkoj scanning yog cov txheej txheem ntawm kev sim txuas mus rau ib txheej ntawm cov chaw nres nkoj uas nyob hauv ib ntus. Feem ntau, qhov chaw nres nkoj scan yog suav tias yog kev sim siab phem. Cov thawj coj saib xyuas qhov system ua nws los tshuaj xyuas qhov tsis zoo hauv qhov system.

Qhov txawv ntawm qhov (socket) thiab qhov chaw nres nkoj yog dab tsi?

Ib lub qhov (socket) yog qhov kawg ntawm kev sib txuas lus bidirectional uas tshwm sim hauv lub computer network uas yog raws li Internet raws tu qauv, qhov chaw nres nkoj yog cov ntaub ntawv sib txuas uas tuaj yeem siv los pauv cov ntaub ntawv yam tsis tas siv ib ntus. ntaub ntawv los yog cia. Lub qhov (socket) txuas nrog lub chaw nres nkoj thiab tuaj yeem muaj ntau lub qhov (socket) cuam tshuam nrog qhov chaw nres nkoj. Nws tuaj yeem muaj ib lub qhov (socket) passive txuas nrog lub chaw nres nkoj uas tos rau kev sib txuas tuaj. Tsis tas li ntawd, muaj peev xwm muaj ntau lub qhov (socket) uas sib txuas rau kev sib txuas uas qhib rau hauv qhov chaw nres nkoj.

Pom zoo: