100k meaning in hindi
100k meaning in hindi

Protocol in Networking kya hai ? Ethical Hacking Chapter 4

आप लोगो के लिए लेकर आया हूँ protocol in Networking kya hai जोकि Networking का एक important part है। तो आज हम जो सीखने वाले है उसके बारे में आपको नीचे बताते है ।अगर आप Ethical Hacking Course hindi में intreast रखते है तो आप हमारे ब्लॉग में Ethical hacking के बारे में सीख सकते है । हम आपको free Ethical hacking course की जानकारी free में denge।

Chapter 4 का इंतिजार आपको बहुत समय से था तो कुछ कारण से इस series को मैने delay करदिया था । लेकिन फिर से हम continue करने जा रहे है।

  1. What are Network Protocols
  2. Types of protocols
  3. How TCP works 
  4. TCP three-way handshake
  5. TCP Vs UDP

What is Network Protocol (Network protocol क्या है )

जब दो device आपस मे communicate करते है तो उस communication करने के लिए एक source की जरूरत होती है जिसे हम protocol कहते है। protocol के Set Of Rules के माध्यम से Data को कैसे transmitted किया जाएगा यानी Data Encrypted रहेगा या जो भी Standerlization होगा वो Protocol Set OF Rules के द्वरा ही कि जाएगा। ये हमे 2 device के communication में मदद करता है। सारे rules protocol follow करते है ।

Types OF Protocol (प्रोटोकॉल के प्रकार)

Protocol कितने प्रकार के होते है तो ये हम TCP/IP Model के आधार पर जानेंगे जो protocol क्या है और किसके अंदर कोनसा protocol आता है।

  1. Application Layer
  2. Transport
  3. Internet
  4. Network Access

हम जानेंगे इनके अंदर कोन कोन से protocol आते है।

Application Layer-: हमारे पास है application layer ओर इसके अंदर कोनसे protocol आते है। 

जैसे-: Telnet ,SMTP,POP3,FTP,NTP, HTTP,SNMP,DNS,SSH ये सारे Protocol application में के अंतरगत आते है।

Transport Layer-: इस layer के अंदर कोनसे layer है जैसे-: TCP ,UDP  जो protocol है वो TCP ,UDP के जरिये ही successful होगा।

Internet Layer -: इसके अंदर जो protocol आते है जैसे -: IP, ICMP ,ARP , DHCP ये जो protocol है ये आते है internet के अंदर।

Network Access Layer-: इस लेयर के अंदर हमारे पास आते है जैसे – Ethernet ,PPP ,ADSL

ये सारे protocol TCP/IP model के हिसाब से arrange किये गए है। 

TCP क्या है और काम कैसे करता है? 

TCP के पास 6 flag है जिसके जरिये tcp काम करता है अब कोनसा flag किस लिए काम आता है ये हम जानेंगे लेकिन उससे पहले हमें ये जान लेना चाहिए कि flag क्या है।

Flag क्या है और कैसे काम करता है? 

TCP में फ्लैग का इस्तिमाल किसी particular Connection को इंगित करने के लिए किया जाता है।या कुछ additional useful information provide करने के लिए या फिर किसी particular connection को handle करने के लिए किया जाता है। ज्यादा तर जो flag का यूज़ किया जाता है वह SYN ,ACK and FIN है।हर एक flag 1 bit information से मेल खाता है। चलिए जानते है वह 6 फ्लैग क्या है ।

  1. URG ( Urgent) Flag
  2. FIN ( Finish) Flag
  3. RST (Reset) Flag
  4. PSH (Push) Flag
  5. ACK (Acknowledgement) Flag
  6. SYN ( Synchronize) Flag

URG ( Urgent ) Flag 

(Data Contained in the packet should be processed immediately ) ये फ्लैग बताता है कि अगर इस packet में जो Data आ रहा अगर उस पैकेट में urgent flag है तो इस packet में immediately काम होना चाहिए। इसकी priority high है।

FIN ( Finish) Flag

(There will be no further transmission ) इस फ्लैग का काम होता है जो भी इसने फ़ाइल sharing की या data share किया गया है और वह फ़ाइल या data share हो चुका है तो इस process को खत्म करदिया जाए यानी Finish करदिया जाए।

RST ( Reset) Flag

(Reset a Connection) इस फ्लैग से Connection को रिसेट किया जाता है । ये हमे रिसेट करने को बताता है।

PSH (Push) Flag

(Sends All Buffeted Data immediately ) ये हमे बताता है कि जो भी Data buffer में बचा है उसे जल्द से जल्द send करदिया जाए ताकि हम इस Connection को close कर सके यानी finish करे।

ACK ( Acknowledgement) Flag

(Acknowledgement the receipt of a packets ) ये फ्लैग हमे ये बताता है कि जो भी हम packet या फ़ाइल शेयर कर रहे है वह वहाँ पहुच रहे है या नही । उसकी जानकारी हमे देता है।

SYN ( Synchronize) Flag 

(Initiates a Connection between hosts) इसी फ्लैग के द्वारा Connection build किया जाता है जिससे ये synchronize कर पाते है।

TCP काम कैसे करता है ( TCP – Three – Way Handshake)

अब हम देखते है कि tcp कैसे काम करता है ये Three way Handshake rules को follow करता है । यानी 3 बार हाथ मिलाया जा रहा है। चलिये समझते है इस रूल्स को एक उद्धरण की मदद से।

मान लेते है 2 लोग है एक सकॉट और रीटा ,दोनों को आपस मे Communication करना है तो TCP Handshake rules को follow करेगा। सकॉट को रीटा से बात करनी है तो एक Connection build करना होगा।

(Data transfer होने से पहेले एक Connection Build होना जरूरी है उसके बाद ही data ट्रांसफर होना शुरू होता है।)

Scot : सकॉट को रीटा से बात करने के लिए एक SYN packet send करेगा। पूछता है कि क्या तुम पोर्ट no 21 पर हो।

SYN packetSYN, SEQ# 10 (I would to talk with you rita on port 21, are you open)

Rita : उसी port पर जवाब देगी उसे की में पोर्ट no 21 पर ओपन हूँ । और ये उसने SYN + ACK के माध्यम से बोला।

SYN+ACK, ACK#11,SEQ#142 ( Ok Let’s talk Scot, I am Open On Port 21 )

अब ये जो रीटा का जवाब आया है उसका reply करेगा Scot – ( Ok Thanks ) ( ACK#143, SEQ#11) और इस तरह से ये Connection build हो जाएगा ।

Protocol in Networking

TCP Session Termination

जब हमने Scot और रीटा के बीच Connection build किया तो उसके बाद ही data transfer शुरू होगा लेकिन अब ये data तब तक ट्रांसफर होता रहेगा जबतक की Connection को close नही किया जाएगा। अब जानते है कि Connection को Close कैसे करना है।

Example 

Protocol in Networking

SCOT : Rita से कहता है कि मैने Data transfer करदिया है । 

I am done with the data transfer ( Fin , SEQ# 50) इसमे Fin Flag का इस्तिमाल होता है।

RITA : Ok I received Your Termination Request (ACK, ACK#51 ,SEQ#170) 

Rita एक बार check करती है फिर बोलती है – I have received all the data send ( FIN ,SEQ#171)

SCOT : बोलता है ok Thank you ( ACK ,ACK#172,SEQ#51) तो सकॉट इस connection को लास्ट में पूरी तरह close कर देता है इसके बाद कोई भी Communication नही होता है । ऐसे हमारा TCP काम करता है ।

TCP Vs UDP में क्या Difference है ?

Tcp और UDP में क्या difference है ये जानने के लिए हम टेबल देख लेते है जो हम नीचे दे रहे है ।

FeatureTCPUDP
ConnectionConnection-orientedConnectionless
ReliabilityReliableUnreliable
Error checkingIncludes error checking and correctionNo error checking or correction
Flow controlUses flow control to avoid congestionNo flow control
OrderingGuarantees ordered packet deliveryNo guarantee of ordered packet delivery
Message sizeSupports large message sizesLimited to maximum size of a single packet
ApplicationsUsed for applications such as web, email, file transfer, and streaming mediaUsed for applications such as video conferencing, gaming, and real-time data
OverheadHas higher overhead due to additional featuresHas lower overhead, which can lead to faster transmission speeds

TCP

  1. Three way handshake follow करता है।
  2. पहेले SYN packets जाता है ।
  3. फिर SYN + ACK packet आता है। 
  4. Last में ACK ( Acknowledgement ) packet जाता है। तब एक connection establish होता है।

UDP

One Way Handshake Follow करता है।

Request आता है than उसका response जाता है।

इसमे one request आती है और data transfer होता रहता है।

Chapter 1

Chapter 2

Chapter 3

Chapter 4

Chapter 5 ( Coming Soon )

FAQS

TCP Full Form?

Transmission Control Protocol ( TCP)

UDP Full Form?

User Datagram Protocol (UDP) is a communications protocol

Ethical Hacking chapter 4?

protocol in Networking जोकि Networking का एक important part है।

protocol in Networking kya hai

जब दो device आपस मे communicate करते है तो उस communication करने के लिए एक source की जरूरत होती है जिसे हम protocol कहते है।

मैं अपनी व्यक्तिगत जानकारी को ऑनलाइन कैसे सुरक्षित रखूँ?

अपनी व्यक्तिगत जानकारी को ऑनलाइन सुरक्षित करने के लिए, आप कई कदम उठा सकते हैं, जैसे मजबूत और अद्वितीय पासवर्ड का उपयोग करना, दो-कारक प्रमाणीकरण सक्षम करना, संदिग्ध ईमेल और लिंक से बचना, और नियमित रूप से अपने सुरक्षा सॉफ़्टवेयर को अपडेट करना।  सोशल मीडिया और अन्य ऑनलाइन प्लेटफॉर्म पर व्यक्तिगत जानकारी साझा करने में सावधानी बरतना भी महत्वपूर्ण है।

Similar Posts