Professional Documents
Culture Documents
Ccna in Hindi
Ccna in Hindi
Introduction to Networking
Network शब्द को अलग अलग संदर्भ में प्रयोग ककया जाता है , जैसे की telephone नेटवकभ, computer
नेटवकभ और peoples नेटवकभ आकद। एक computer network कुछ devices से कमलकर बना होता है जो
आपस में wire से या wirelessly connected होते है ।
जैसा की आप ऊपर कदए गए diagram में दे ख सकते है अलग अलग devices आपस में connected है ।
यह एक simple computer नेटवकभ है ।
What is Networking (in plain Hindi)
Networking एक process होती है कजसमें networks को create और configure ककया जाता है । यह कायभ
hardware और software दोनों के उपयोग से ककया जाता है ।
नेटवकभ को create करने के कलए hardware के रूप में अलग अलग networking devices जैसे की hub,
switch, router आकद use ककये जाते है । Software के रूप में protocols के अलावा आप इन devices को
command line interface के द्वारा एक दू सरे के साथ काम करने के कलए configure और manage करते है ।
नेटवकभ establish होने के बाद उसके सर्ी devices आपस में communication और information sharing
करते है । इन devices के द्वारा share की जाने वाली information कई प्रकार की हो सकती है । जै से की
Messages, Documents, Music, Files, Databases आकद।
Communicate करने के कलए devices कुछ rules follow करते है । ये rules protocols कहलाते है । कुछ
common protocols की list नीचे दी जा रही है ।
TCP(Transmission control protocol)
UDP(User Datagram Protocol)
IP (Internet Protocol)
HTTP (Hyper Text Transfer Protocol)
SMTP (Simple Mail Transfer Protocol)
सर्ी नेटवकभ communication के कलए एक model follow करते है । ये model एक blueprint होता है जो
define करता है की communication कैसे होगा। सबसे common model TCP/IP है ।
Types of Networks
Networks को उनकी size के according कई categories में divide ककया गया है ।
LAN (Local Area Network)
यह एक high speed नेटवकभ होता है । ये बहुत ही छोटा होता है । जैसे की एक कबल्डं ग या कैंपस के कलए
LAN को use ककया जा सकता है । LAN में communication के कलए different technologies यूज़ की जाती है
कजनमे Ethernet सबसे common technology है ।
WAN (Wide Area Network)
एक WAN network कई LANs को आपस में connect करता है । ये बहुत बडा area cover करता है । अलग
अलग दे शों के नेटवकभ आपस में WAN के द्वारा ही connected रहते है । ये एक ग्लोबल नेटवकभ होता है ।
Client/Server Architecture
Client/server architecture में एक host server होता है और बाकी सब host client होते है । सर्ी clients
data/service के कलए server को request करते है और server सर्ी clients को response करता है ।
Mainframe Architecture
Mainframe architecture में data/services एक ही host पर store होती है कजसे mainframe कहते है । सब host
इस mainframe से जुडे होते है कजन्हे terminals कहते है । ये terminals dumb होते है और खुद कुछ र्ी
task perform नहीं करते है । Terminals को कसर्भ input और output के कलए यूज़ ककया जाता है ।
ये layers दोनों तरर् होती है sender की तरर् र्ी और receiver की तरर् र्ी। और ये layers descending
order में होती है याकन आल्खरी layer सबसे ऊपर आती है और पहली layer सबसे कनचे आती है । आइये
इन layers के बारे में जानने का प्रयास करते है ।
Application layer यूज़र की एप्लीकेशन और नेटवकभ के बीच इं टरफेस प्रोवाइड करती है । जैसे की एक
वेब ब्राउज़र (Internet explorer, Mozilla firefox, chrome) या कोई ईमेल क्लाइं ट (Outlook, Thunderbird)
आकद।
ये सर्ी applications आपको network पर काम करने के कलए इं टरफेस provide करती है । यूज़र की
application एप्लीकेशन लेयर में नहीं होती है बल्ि protocol होता है जो यूज़र के operations को control
करता है ।
यूज़र एप्लीकेशन से interact करता है और application network से interact करती है । जैसे की कोई web
address open करना। Application layer पर बहुत से protocol यूज़ ककये जाते है कजनमे से कुछ कनचे कदए
जा रहे है ।
ये सर्ी protocols network से interact करने के कलए यूज़ ककये जाते है । Application layer कुछ tasks
perform करती है जो नीचे कदए जा रहे है ।
Presentation layer OSI model की 6th layer होती है । ये layer data के presentation के कलए responsible होती
है । ये layer ये verify करती है की जो data sender र्ेज रहा है वो receiver side के समझ में आये । इसके
कलए दोनों receiver और sender कुछ data standards follow करते है ।
Data standards
ये कुछ common data standards है कजन पर दोनों side agree करती है । उदाहरण के कलए यकद sender कोई
image र्ेज रहा है तो वह JPG format में होनी चाकहए ताकक receiver उसे दे ख सके।
ये layer data की formatting करती है । इस layer से data सीधा application layer पर जाता है , जुँहा वो यूज़र
को show होता है । इसकलए ये सारी कजम्मेदारी presentation layer की होती है की data यूज़र को कैसे
present होगा।
यकद sender और receiver एक ही format को support नहीं करते है तो presentation layer translation और
conversion की services र्ी प्रोवाइड करती है । Presentation layer के कुछ functions नीचे कदए जा रहे है ।
Session Layer
Session layer OSI model की 5th layer है । ये layer sender और receiver के बीच session establish करती है ,
उस session को जब तक maintain करती है जब तक की data transfer ना हो जाये और data transfer होने
के बाद उस session को terminate करती है ।
यकद कोई session बीच में break हो जाये तो इस layer में उसे recover करने की ability होती है । ये layer
data synchronization के कलए र्ी responsible होती है ।
Transport Layer
Transport layer OSI model की 4th layer होती है । ये layer data के reliable transfer के कलए responsible
होती है । Data order में और error free पहुं चे ये इसी layer की कजम्मेदारी होती है । Transport layer 2 तरह
से communicate करती है connectionless और connection oriented।
Connectionless communication के कलए UDP और connection oriented के कलए TCP/IP protocols यू ज़ ककये
जाते है । Connectionless communication fast होता है लेककन ये डे टा के error free होने और सही ढं ग से
पहुचने की guarantee नहीं दे ता है ।
Connection oriented communication data के error free होने और ढं ग से पहुचने की guarantee दे ता है । ये
communication कुछ services प्रोवाइड करता है –
Segmentation – Data को र्ेजने से पहले छोटे छोटे segments में convert ककया जाता है ।
Sequencing – हर segment को एक sequence number कदया जाता है ।
Connection establishment – Data को र्े जने से पहले sender और receiver के बीच connection establish ककया
जाता है ।
Acknowledgment – जब segment पहुचता है तो उसका acknowledgment आता है की इतने number का
segment आ चूका है उसे दु बारा र्े जने की जरुरत नही है ।
Flow control – Data की transfer rate को confirm ककया जाता है ।
Network Layer
यह layer OSI model की 3rd layer होती है । ये layer network communication के कलए responsible होती है ।
Network layer में data packets में convert हो जाता है । Network layer के 2 प्रमुख काम होते है जो नीचे
कदए जा रहे है ।
Logical addressing – Network layer डे टा को network में travel करने के कलए IP address provide करती है ये IP
address डे टा को destination तक पहुचने के कलए responsible होती है ।
Routing – Data को एक network से दू सरे network में र्ेजना र्ी network layer की कजम्मेदारी होती है ।
Data link layer OSI model की 2nd layer है । ये layer network के अंदर data को transport करने के कलए
responsible होती है । Data link layer की 2 sub layers होती है ।
Logical link control – LLC sub-layer physical layer और बाकी ऊपर की layers के बीच में एक link establish
करती है ।
Media access control – MAC sub layer physical medium के access को control करती है ।
Data link layer नेटवकभ लेयर के data को frames में पैक करती है । Data link layer में डे टा frames में
convert हो जाता है । ताकक data को ककसी physical medium के through र्े जा जा सके। ये process framing
कहलाती है ।
Frames source और destination devices के hardware address contain करते है । ककसी network में host को
uniquely identify करने के कलए hardware address यूज़ ककया जाता है । सबसे common hardware address
Ethernet का MAC address होता है ।
Physical Layer
Physical layer OSI model की 1st layer है । इस layer में data bits में convert हो जाता है ।
इस layer के द्वारा डे टा physical mediums के द्वारा transfer ककया जाता है जैसे की Cables आकद। ये पुरे
OSI model की एक मात्र ऐसी layer है जो वास्तव में physically 2 के बीच communication establish करती
है । Physical layer के devices में NIC cards और different cables आती है ।
Physical layer के functions नीचे कदए जा रहे है ।
Data rate – ये layer data rate define करती है , जैसे की एक second में ककतनी bits transfer होगी।
Synchronization – ये layer sender और receiver को bit level पर synchronize करती है ।
Signals – ये layer bits को signals में convert करके र्े जती है ।
Ethernet
Bus topology की सबसे बडी disadvantage ये है की यकद wire कर्ी ख़राब हो जाता है तो सर्ी
computers का communication एक साथ ठप हो जाता है । Computers के पास एक दू सरे से separately
communication का कोई माध्यम नहीं होता है ।
Star Topology
Star topology में सर्ी hosts एक switch या hub से जुडे होते है और ये hosts hubs और switches के
माध्यम से एक दू सरे को frames र्ेजते है ।
Hubs intelligent नहीं होते है । जब hub के माध्यम से frames र्ेजे जाते है तो hub वो frames सर्ी hosts को
र्ेजता है और कजस host के साथ MAC address match होता है वही host उसे receive करता है ।
Switch intelligent devices होते है । Switches सर्ी hosts की address table maintain करते है । इसकलए जब
र्ी कोई host कोई frame र्ेजता है तो वो सबके पास ना जाकर only उसी host के पास जाता है कजसका
MAC address मैच करता है ।
Star topology की सबसे बडी disadvantage ये होती है की यकद switch या hub फैल हो जाये तो सारा
नेटवकभ fail हो जाता है ।
Ethernet Frame
Ethernet data link layer technology है । Data link layer में data को frames के नाम से जाना जाता है । एक
frame की size 64 bytes से लेकर 1522 bytes तक हो सकती है । Frame में कुछ fields ऐसे होते है कजनकी
size कर्क्स होती है । इन fields के बारे में जानकारी नीचे दी जा रही है ।
Preamble
इस field की size 7 bytes होती है । ये field synchronization purpose के कलए यूज़ ककया जाता है ।
Start of Frame
इस field की size 1 byte होती है । ये field फ्रेम के starting point को दशाभ ता है ।
Destination MAC Address
इस field की size 6 bytes होती है । ये field destination host के MAC address को contain करके रखता है ।
Source MAC Address
इस field की size र्ी 6 bytes होती है । ये field source host के MAC address को contain करता है ।
802. 1Q Tag
इस field की size 4 bytes होती है । ये field optional होता है । ये tag VLAN configuration शो करने कलए
यूज़ ककया जाता है ।
Length
इस field की size 2 bytes होती है । ये field complete फ्रेम की साइज को शो करता है ।
Payload
इस field की size 42 bytes से 1500 bytes तक हो सकती है । ये आपका actual डे टा होता है ।
CRC (Cyclic Redundancy Check)
इस field की size 4 bytes होती है । ये field frame की errors को शो करता है ।
Inter-frame Gap
इस field की size 12 bytes होती है । ये field frames के बीच में time gap को दशाभ ता है ।
Working of Hubs
जब कोई host frame send करता है तो hub उस फ्रेम को सर्ी ports में forward कर दे ता है । Hubs frame
के type को र्ी अलग अलग नहीं करते है चाहे frame unicast हो चाहे multicast हो या broadcast हो सर्ी
फ्रेम को सर्ी ports में forward कर दे ते है ।
हालां कक एक hub frame को सर्ी ports को र्ेजता है लेककन frame वही accept करता है कजसका MAC
address frame के destination MAC address field से मैच करता है । बाकी hosts इसे receive करने के बाद
discard कर दे ते है ।
CSMA/CD (Carrier Sense Multiple Access with Collision Detection)
Hubs half duplex communication perform करते है । मतलब या तो कोई host डे टा send कर सकता है या
receive कर सकता है । दोनों काम एक साथ नहीं ककये जा सकते है । इसकलए frames बहुत ज्यादा क्रैश
होते है । क्योंकक जब कोई एक host frame send कर रहा होता है तो दू सरा host र्ी उसी समय frame सेंड
कर रहा होता है । इसे collision कहते है ।
Collision से बचने के कलए एक technique यूज़ की जाती है । कजसे CSMA/CD (Carrier Sense Multiple
Access with Collision Detection) कहते है ।
इस technique में कोई र्ी host फ्रेम send करने से पहले चेक करता है की link खाली है या नहीं। यकद
कलंक में कोई signal होता है तो ये host wait करता है । जब कलंक खाली हो जाती है । तब ये host अपना
frame सेंड करता है ।
जब collision होता है तो frame send करने वाले hosts को पता चल जाता है । जो frames र्ेजे गए थे वो
frames destroy हो जाते है । और hosts एक jam signal send करते है । जो शो करता है की दोनों hosts
wait करने वाले है । दोनों hosts का waiting time अलग अलग होता है ।
याकन एक host यकद वापस frame सेंड करने से पहले 10 second wait करे गा तो दू सरा host 15 second wait
करे गा ताकक दु बारा collision ना हो।
Collision Domain
याद रखे जब र्ी hub से connected 2 device एक साथ frames send करें गे तो collision होगा। इसकलए hub
से connected सर्ी devices एक ही collision domain के अंदर आते है । ये single collision domain को
represent करते है ।
CCNA in Hindi - Switches - Best Hindi Tutorials
3 minutes
Working Of a Switch
जब र्ी कोई host ककसी दू सरे host को कोई frame send करता है तो source host का MAC address
switch की address table में port के साथ store हो जाता है । एक switch हमेशा source का address ही table
में store करता है ।
मेरा मतलब जब तक की कोई host कुछ data send नहीं करे गा तब तक उसका MAC address और port
number switch की table में store नहीं होगा।
Building of Switch Table
जब आप शुरू में switch को setup करते है तो switch को ककसी र्ी host और उसके address की कोई
जानकारी नहीं होती है । ऐसी situation में जब कोई host frame send करता है तो उसका MAC address तो
table में store हो जाता है ।
लेककन destination की कोई र्ी जानकारी नहीं होने की वजह से switch उस frame को सर्ी hosts को
send कर दे ता है । ऐसे ही जब दू सरा host कुछ data send करता है तो उसका address र्ी table में store
हो जाता है । ऐसे जब र्ी कोई host frames र्ेजता है ।
और यकद उसका address पहले से table में मौजू द नहीं है तो switch उसे store कर लेता है । इस प्रकार
एक switch अपनी table build करता है । जब सर्ी hosts के addresses और port numbers switch में आ
जाते है तो switch कबना सर्ी hosts को frame र्े जे केवल कजस host के कलए data र्ेजा गया है उसी host
को deliver करता है ।
जैसा की मैने आपको बताया था की hubs half duplex communication करते है । Hubs के साथ या तो आप
send कर सकते है या केवल receive कर सकते है ।
लेककन switches के साथ ऐसा नहीं है switches के साथ आप एक साथ data send र्ी कर सकते है और
receive र्ी कर सकते है । Hubs एक single collision domain को represent करते है लेककन ल्िच में हर
port एक separate collision domain होता है । इससे दू सरे hosts पर कोई र्कभ नहीं पडता है ।
Layer 2 switching के बारे में जानकारी प्राप्त करने के कलए आप Layer 2 switching in Hindi tutorial पढ़
सकते है ।
CCNA in Hindi - Routers - Best Hindi Tutorials
3 minutes
एक बात आपको हमेशा ध्यान रखनी चाकहए की Router ककसी packet को destination host को नहीं र्ेजता
है बल्ि destination network को र्ेजता है । उदाहरण के कलए कोई host ककसी दू सरे host को data र्ेज
रहा है जो की दू सरे network में है ।
Router का इस situation में कसर्भ इतना role है की वो data को एक network से receive करता है और
दू सरे network में र्ेजता है । इसके बाद data को host तक पहुचाने की कजम्मेदारी switch की होती है ।
जैसे की मैने आपको पहले बताया routers routing tables maintain करते है ।
एक simple routing टे बल में एक packet की final destination network का IP address होता है , next network
का IP address होता है , और routing metrics होती है । Final destination network वो network होता है कजसमे
destination host होता है कजसके कलए data र्ेजा गया है ।
Next network वो network होता है तो जो source network और destination network के बीच होता है । ऐसे
networks को next hop र्ी कहते है । और routing metrics final network तक shortest path find करने के
कलए यूज़ की जाती है ।
A Routing Table
एक routing table इस प्रकार हो सकती है ।
Protocols
Routers data को ककसी network में forward करने के कलए 2 तरह के protocols यूज़ करते है ।
1. Routed protocols – इस तरह के protocols में हर device को manually एक IP address कदया जाता
है । तब ही devices एक दू सरे की location को जान पाते है । इस तरह के protocol का उदाहरण
IP (Internet Protocol) है । इस तरह के protocols के माध्यम से data र्ेजा जाता है ।
2. Routing protocols – इस तरह के protocols routers के बीच में यूज़ होते है । इनकी मदद से routers
अपनी routing tables को update करते है । जब ककसी router को ककसी नए network की जानकारी
कमलती है तो वो इसे अपनी routing table में update कर लेता है और ये information दू सरे routers
के पास automatically routing protocols की मदद से update हो जाती है । Routing protocols के
उदाहरण में मुख्य नाम EIGRP, RIP और OSPF है ।
Working of Routers
Connect to two different networks.
To search best path for transfer data and information.
ROM में एक bootstrap program होता है कजसे ROM monitor कहते है । जब router को on ककया जाता है
तो यह bootstrap program hardware diagnostic perform करता है कजसे Power On Self Test कहते है ।
यकद ये diagnostic successful होता है तो bootstrap program flash memory में से IOS को ढूंढ कर load
करता है । Flash memory को rewrite ककया जा सकता है । इससे Cisco router को IOS को upgrade करने
की ability कमलती है ।
अगर bootstrap को IOS flash memory में नहीं कमलता है तो ROM में से IOS का temporary version load
ककया जाता है । ROM को rewrite या erase नहीं ककया जा सकता है । यकद device को upgrade करने की
जरुरत हो तो आपको ROM को change करना होगा।
लेककन यकद IOS flash memory में कमल जाता है तो इसे RAM में load कर कदया जाता है । इसके बाद
bootstrap NV-RAM में Startup-Configuration file को ढूंढ़ता है । NV-RAM non volatile RAM होती है
इसकलए इसके contents erase नहीं होते है ।
अगर IOS को startup configuration file नहीं कमलती है तो ये TFTP server से configuration file load करने
की कोकशश करता है । यकद TFTP server र्ी respond नहीं करता है तो IOS initial configuration mode में
enter हो जाता है । इस mode में user से questions पूछे जाते है कजससे router को quickly configure ककया
जाता है ।
यकद IOS को NV-RAM में startup configuration file कमल जाती है तो इसे RAM में load कर कदया जाता है
और ये running configuration file बन जाती है ।
Memory
Cisco IOS में 4 तरह की memory होती है इनके बारे में कनचे कदया जा रहा है ।
Memory Description
ये read only memory होती है । ये router में hardwired होती है । ROM के अंदर bootstrap
ROM program होता है जो power on self test perform करता है । इसे ROM monitor mode कहा जाता
है । जब router IOS find नहीं कर पाता है तो वह ROM से ही boot होता है ।
By default सबसे पहले router IOS के कलए flash memory को ही search करता हैं और IOS को
FLASH
boot करता है । ये electronically erasable programmable read only memory होती है ।
इसे dynamic random access memory र्ी कहा जाता है । RAM Cisco router के CPU का working
RAM
area होता है । इस memory में running configuration file और routing tables stored होती है ।
NV- इसे non volatile random access memory कहा जाता है । NV-RAM में startup configuration file
RAM stored होती है जो system के startup में काम आती है ।
Ports
Cisco IOS में interfaces और lines 2 तरह के ports होते है । इनके बारे में कनचे कदया जा रहा है ।
Interfaces router को दू सरे devices जैसे की routers और switches से connect करते है । अगर आसान र्ाषा
में कहा जाये तो network में data इन्हीं ports से होकर travel करता है । कुछ common interfaces के नाम
कनचे कदए जा रहे है ।
Serial interface
Ethernet interface
Fast Ethernet interface
Interfaces को उनके नाम और number के द्वारा identify ककया जाता हैं । उदाहरण के कलए पहले ethernet
interface को Ethernet0 के नाम से जाना जाता है । कुछ router families है वो modular है इसकलए उनमें
interfaces को slots में organize ककया गया है ।
इसकलए उनमें interface number के साथ साथ slot number र्ी कलखा जाता है । जैसे की पहले slot के 2
interface को इस प्रकार कलख सकते है ।
Ethernet0/2
जो दू सरे तरह के ports होते है उनसे आप connect होकर router को configure कर सकते है । इन्हें lines
कहा जाता है । ऐसे कुछ ports के नाम कनचे कदए जा रहे है ।
Console ports
Auxiliary ports
VTY ports
Interfaces की तरह ही lines को र्ी line type और line number के द्वारा identify ककया जाता है । इसकलए
यकद पहला console port कुछ इस तरह कलखा जायेगा।
Console0
Command Line Interface (CLI)
Cisco router के साथ interact करने के कलए IOS एक command line interface provide करता है । Cisco
devices को configure और manage करने के कलए command line interface सबसे पहला option होता है ।
इसे आप console, modem और telnet connection के द्वारा access कर सकते है । इसमें आप commands
को type करते है और execute करवाते है ।
Router Booting Process
हर Cisco एक booting process से होकर गुजरता है इस process को कनचे explain ककया जा रहा है ।
1. Router का power on ककया जाता है ।
2. ROM में से bootstrap program load होता है ।
3. Bootstrap program POST (Power On Self Test) run करता है ।
4. Bootstrap flash memory से IOS को load करने का प्रयास करता है –
1. यकद flash memory में IOS नहीं कमलता है तो bootstrap ROM में से basic IOS को load
करता है ।
2. यकद flash memory में IOS कमलता है तो इसे RAM में load कर कदया जाता है ।
5. IOS NV-RAM से startup config file को load करने का प्रयास करता है -
1. यकद Startup configuration file NVRAM में नहीं कमलती है तो IOS TFTP server से एक
configuration file load करने का प्रयास करता है ।
2. अगर TFTP server respond नहीं करता है तो router initial configuration mode में enter हो
जाता है ।
3. यकद startup config file NVRAM में कमल जाती है तो इसे RAM में load कर कदया जाता
है ।
6. Startup configuration RAM में running configuration बन जाता है ।
Introduction to Addressing
Networking क्षेत्र में addressing hosts को logical और physical address assign करने की process होती है ।
Unique address के माध्यम से hosts को uniquely identify ककया जाता है । Addressing 2 प्रकार की होती है ।
1. Hardware Addressing
2. Logical Addressing
Hardware addressing host को local area में identify करने के कलए use होती है और logical addressing
host को network level पर identify करती है । इन दोनों तरह की addressing के बारे में कनचे detail से
बताया जा रहा है ।
Hardware Addressing
एक hardware address की मदद से local area network में hosts को uniquely identify ककया जाता है । यकद
आप OSI model के अनुसार दे खे तो layer 2 (Data link layer) पर hardware addressing यूज़ की जाती है ।
Hardware address को MAC (Media Access Control) address र्ी कहते है । MAC address को network
interface cards (NIC) पर hard-code ककया जाता है । MAC address की size 48 bits होती है । एक MAC
address hexadecimal form में represent ककया जाता है । इसका उदाहरण नीचे कदया जा रहा है ।
Example – 06:5e:39:ad:dd:2c
MAC address की पहली 6 digits से NIC (Network Interface Card) के manufacturer को identify ककया जाता
है । इन शुरुआती 6 bits को OUI (Organizational Unique Identifier) र्ी कहते है । बाकी की 6 digits host
को network में uniquely identify करने के कलए यू ज़ की जाती है । इन last 6 digits को host id कहते है ।
इसके बाद sender वापस एक message र्ेजता है जो की receiver को data की sequence बताता है । इसके
बाद sender और receiver के बीच में data transfer शुरू हो जाता है ।
Sender और receiver के बीच में र्ेजे जाने वाले ये messages 3 तरह के होते है । इनके बारे में कनचे कदया
जा रहा है ।
SYN – Connection Request
SYN + ACK – sequence number request cum acceptance of connection request
ACK – Acceptance of connection request and data sequence numbers
कनचे connection establishment process को कुछ simple steps के द्वारा define ककया जा रहा है ।
1. सबसे पहले sender synchronization message के द्वारा connection establish करने की request करता
है ।
2. इसके बाद receiver synchronization cum acknowledge message के द्वारा connection establish करने
की िीकृकत दे ता है और data के sequence numbers के कलए request करता है ।
3. इसके बाद sender data के sequence numbers के रूप में अपनी िीकृकत प्रदान करता है ।
4. अब connection establish हो चूका है और sender और receiver के बीच में data transfer शुरू हो
जाता है ।
TCP में connection bidirectional होता है । इससे से कोई र्कभ नहीं पडता की connection की request
ककसने र्ेजी थी। जो र्ी चाहे वो data transfer शु र कर सकता है । TCP के द्वारा एक साथ कई
connections establish ककये जा सकते है । हर connection को TCP individually track कर सकता है ।
Connections को sockets के द्वारा identify ककया जाता है । Sockets destination और host दोनों तरर् होते
है । सर्ी connection से related data को Transmission control block में maintain ककया जाता है ।
Segmentation
Network layer के द्वारा data transport layer को कदया जाता है । Transport layer पर ये data TCP segments
में convert ककया जाता है । Data को transfer करने से पहले छोटे छोटे segments के रूप में तोडना
segmentation कहलाता है । Segmentation TCP का एक primary task है ।
Network layer के द्वारा TCP को packets transfer ककये जाते है । Packets size में बहुत बडे होते है इसकलए
इन्हें छोटे छोटे parts में divide कर कदया जाता है । ये parts segments कहलाते है । आपको ये र्ी ध्यान
रखना चाकहए की transport layer पर data segment कहलाता है ।
Sequencing
Data को segments के रूप में तोडने के साथ ही हर segment को एक sequence number कदया जाता है ।
Data की sequencing के 2 advantages कनचे कदए जा रहे है ।
Segments को sequence number दे ने से receiver सर्ी segments को receive करने के बाद उन्हें
proper order में arrange कर सकता है ।
Transfer के दौरान यकद कोई segment drop र्ी हो जाये तो sequence number के द्वारा उसे
identify करके दोबारा र्े जा जा सकता है ।
जब र्ी कोई segment ककसी sequence number के साथ आता हैं तो receiver उस sequence number को +1
करके acknowledge र्ेजता है । इसका मतलब ये होता है की मुझे segment कमल चूका है आप इससे next
segment र्ेकजए।
TCP एक बहुत ही reliable protocol है इसमें हर transfer को acknowledge ककया जाता है । मान लीकजए
sender ने segment number 101 र्ेजा है । Receiver इस segment को पाकर acknowledgment message के
द्वारा sender को बतायेगा की मुझे segment number 101 कमल चुका है और साथ ही receiver इसमें 1
number add करके र्ेजेगा। 1 add करके र्ेजने का मतलब होता है की अब आप next segment र्े ज
दीकजये।
इस उदाहरण में receiver sequence number 102 र्ेजेगा जो sender को बताता है की next segment र्ेजना
है । जब ककसी receiver के द्वारा कोई acknowledgement नहीं कमलता है तो sender उस segment को दु बारा
र्ेजता है ।
Sliding Window
जब आप TCP header को दे खेंगे तो पाएं गे की उसमें एक window field होता है । इस window field से ये
define ककया जाता है की receiver ककतनी bytes का data एक बार में receive कर सकता है ।
उदाहरण के कलए कोई sender की data transfer speed और buffer size अकधक हो सकती है । लेककन यकद
दू सरी तरर् receiver की speed और buffer size कम है तो receiver कम bytes की window size value set
करके sender को र्ेजेगा। इससे sender को ये पता चलता है की receiver ककतना data ककतनी तेजी से
receive कर सकता है ।
Sender शुरू में हमेशा कम size के segments transfer करता है । लेककन जब sender को लगता है की
receiver आसानी से receive कर रहा है तो sender transfer speed को बढ़ाने का प्रयास करता है और
ज्यादा size का data र्ेजता है ।
यकद receiver इस size के data को receive कर लेता है तो sender आगे के सर्ी packets इसी size के
र्ेजता है । थोडी दे र बाद sender वापस transfer speed को बढ़ाने के कलए और बडी size का data र्ेजता
है । यकद receiver इस data को र्ी receive कर लेता है तो sender कर्र इसी size का data र्ेजता है ।
लेककन यकद इस data का size receiver के buffer से अकधक है तो receiver window field की value 0 set
करके र्ेजता है । इससे sender को पता चलता है की sender इस size का data receive नहीं कर सकता है ।
इसके बाद sender पुरानी इससे कम size का data र्ेजता है ।
Window size का एक मतलब ये और होता है की ककतने segments या bytes sender कबना ककसी
acknowledgment के र्ेज सकता है । जब receiver segments receive करता है तो आल्खर segment में +1
करके acknowledgment र्ेजता है कजसका मतलब होता है की कपछले सर्ी segments receive कर कलए गए
है । अब आप आगे के segments र्ेज सकते है ।
MAC address के अंदर एक कमी होती है इससे से आप network को नहीं identify कर सकते है । यकद
आपको ये identify करना है की host ककस network में है तो उसके कलए आप उसका IP address दे खेंगे।
IP addresses को logical addressing में explain ककया गया है ।
Logical Addressing
OSI model के अनुसार दे खे तो network layer में logical addressing यूज़ की जाती है । Logical address के
माध्यम से आप ककसी host को पुरे network में uniquely identify करते है ।
Logical addresses एक network को दू सरे network से separate र्ी करते है । Logical addresses fix नहीं होते
है इन्हे change र्ी ककया जा सकता है । Logical addresses को IP address कहते है ।
IP address की size 32 bit होती है । एक IP address 2 parts में divided होता है । पहला part होता है network
ID कजससे ये identify ककया जाता है की host का network क्या है । दू सरा part होता है host ID कजससे से
host को uniquely identify ककया जाता है ।
Logical addressing के कलए Internet Protocol (IP) responsible होता है । Internet protocol 2 tasks perform
करता है । पहला logical addressing और दू सरा routing। Routing के माध्यम से एक packet को सही
network में forward ककया जाता है । Internet protocol 2 तरह की addressing provide करता है । एक IPV4
addressing और दू सरी IPV6 addressing होती है ।
IPV4 addressing में 32 bit addresses assign ककये जाते है । इस तरह के IP address में 8 bits के चार octet
होते है ।
Example
IP Address : 192 . 10 . 2 . 1
Subnet mask : 255 . 255 . 0 . 0
IP (Binary) : 11000000 : 00001010 : 00000010 : 00000001
Subnet mask : 11111111 : 11111111 : 00000000 : 00000000
ऊपर कदए हुए example को दे ल्खये IP address के साथ subnet mask कदया गया है । Subnet mask में 255 का
मतलब होता है network octet और 0 का मतलब होता है host octet।
इस example में 192.10 तो network portion है जो network को represent करता है । और 2.1 host portion
है जो host को represent करता है । यकद आप binary form दे खेंगे तो network portion 1 से represent ककया
जाता है और host portion 0 से represent ककया जाता है ।
Classes of IP Address
IPV4 addresses को कई classes में divide ककया गया है । IP address ककस class का है ये आप IP address
के first octet की range दे ख कर बता सकते है । आइये इन classes के बारे में detail में जानते है ।
Class A
Class A की network range 1 से 127 होती है और इस class का default subnet mask 255.0.0.0 होता है ।
इसका मतलब ये हुआ की इस class के IP addresses में only first octet ही network को शो करता है और
बाकी के 3 octets hosts को शो करते है । इस क्लास में 127 network होते है और हर network में
16777214 hosts होते है ।
Class B
Class B की network range 128 से 191 होती है । इस class के IP addresses का default subnet mask
255.255.0.0 होता है । इस class के IP addresses में पहले 2 octet network को represent करते है और
आल्खरी 2 octet hosts को define करते है । इस क्लास में 16384 networks होते है और 65534 hosts हर
network में होते है ।
Class C
Class C की network range 192 से 223 होती है । इस class के IP addresses का default subnet mask
255.255.255.0 होता है ।इस class के IP addresses में पहले 3 octet network को represent करते है और
आल्खरी एक octet hosts को represent करता है । इस class में 2097152 network होते है और 254 hosts हर
network में होते है ।
Class D
Class D के network multicast के कलए reserved होते है । इस class के addresses का कोई subnet mask नहीं
होता है ।
ऊपर कदया गया उदाहरण IOS 12.4 की तीसरी release को represent कर रहा है । T एक train identifier है ।
Trains IOS version के market को define करते है । इसे एक single letter से define ककया जाता है । इनके
बारे में कनचे कदया जा रहा है ।
T – युँ हा पर T का मतलब technology से है । इस तरह के version हमेशा नयी technology के साथ
updated रहते है ।
E – E का मतलब enterprise से है । Enterprise level devices के कलए जो features release ककये जाते
है उन्हें इस train से define ककया जाता है ।
S – Service provider के द्वारा Internet service provider से related features के release को define
ककया जाता है ।
जब कोई र्ी train identifier ना तो ऐसी situation में उस release को machine release माना जाता
है ।
Cisco device पर console के द्वारा IOS version दे खने के कलए आप show version command का इस्ते माल
कर सकते है । Cisco IOS routers और switches में एक flash drive की bin file में stored रहता है । इस bin
file में IOS का version कुछ different तरीके से define ककया जाता है । इसके बारे में कनचे कदया जा रहा
है ।
c2600-ik9s-mz. 121-3.T.bin
c2600 – Cisco Hardware Name
ik9s – Feature set (according to version)
m – Memory location in Cisco device
z – Compression format of file
121 – Maintenance release number
3 – Individual release number
T – Train identifier
Cisco IOS Modes
जैसा की मैने आपको शु रुआत में बताया था की Cisco IOS के कई modes होते है और हर mode की कुछ
set of commands होती है । हर mode की अलग अलग privilege levels होती हैं ।
इन सर्ी modes के बारे में detail से कनचे कदया जा रहा है । यकद आप ककसी र्ी mode से related
commands की list दे खना चाहते है तो ऐसा आप ? command से कर सकते है ।
User Exec Mode
जब आप ककसी Cisco device में login करते है तो by default User execution mode होता है । User
execution mode में host के नाम के बाद > symbol आता है । यही इसकी पहचान होती है । इसका
उदाहरण नीचे कदया गया है ।
ऐसा र्ी हो सकता है की ये mode password से protect ककया गया हो। ऐसी situation में आपको इस
mode में enter होने के कलए username और password enter करना होता है ।
switch1>
ऊपर कदए गए statement से आप पता लगा सकते है की इस समय IOS User Exec mode में है ।
Privileged Exec Mode
Privileged execution mode में आप सर्ी files, settings और related information को दे ख सकते है । इस
mode में आप configuration नहीं कर सकते है । इस mode की ज्यादातर commands एक ही बार execute
होती है । जैसे की clear command जो counters को clear करती है ।
Privileged Exec mode में enter होने के कलए आप User Exec mode से enable command execute करते है । ये
mode र्ी password protected हो सकता है । अगर ऐसा है तो आप login information provide करके enter
हो सकते है ।
इस mode में host के नाम के आगे # लगाया जाता है । इसका उदाहरण कनचे कदया गया है ।
switch1#
इस mode में आपको User Exec mode की सर्ी files available रहती है । Common commands को ककसी
र्ी mode से execute ककया जा सकता है ।
Global Configuration Mode
Global configuration mode में कजतनी र्ी commands execute होती है वो सर्ी Cisco device को globally
effect करती है । Global configuration mode को functions के according sub modes में divide ककया गया
है । इनमे से common sub modes कनचे कदए जा रहे है ।
Interface configuration mode – ये mode basically Cisco device के ports (interface) को configure
करने के कलए यूज़ ककया जाता है । ककसी र्ी interface को configure करने के कलए आप interface
का नाम और number interface command के आगे कलखकर execute करवाते है । ऐसा करने से
आप इस mode में enter हो जाते है ।
Line configuration mode – इस mode में console ports , auxiliary ports और VTY (telnet) ports को
configure ककया जाता है । Interface की ही तरह ककसी र्ी line को configure करने के कलए आप
line command के आगे line का नाम और number कलखकर execute करवाते है ।
Router configuration mode – इस mode से dynamic routing protocols को configure ककया जाता है ।
जैसे की RIP, EIGRP आकद।
Cisco IOS Commands Shortcuts
IOS command line में shortcuts allowed है । लेककन ये तब ही काम करते है जब ये unique हो। जैसे की
आपके पास 4 commands available है ।
Configure
Connect
Copy
Debug
Debug command के कलए de को shortcut की तरह यूज़ ककया जा सकता है । लेककन copy command के
कलए आप co को यूज़ नहीं कर सकते है । क्योंकक Configure और connect commands के र्ी शु रू के 2
letter common है । ऐसी situation में आप शुरू के 3 words र्ी कलख सकते है । जैसे की connect command
के कलए आप con type कर सकते है ।
इसी तरह बहुत से keyboard shortcuts र्ी available है । कजन्हें आप explore करके यूज़ कर सकते है ।
Cisco IOS CCNA के कलए एक बहुत ही important topic है आपको इसे अच्छी तरह से समझना जरुरी
है ।
ऊपर कदए हुए diagram को दे ल्खये। इसमें 3 routers है A, B और C। Router A पर आप RIP इस प्रकार
configure कर सकते है ।
RouterA(config)# router rip
RouterA(config-router)# network 192.18.0.0
RouterA(config-router)# network 192.17.0.0
Router B पर आप RIP इस प्रकार configure कर सकते है ।
RouterB(config)# router rip
RouterB(config-router)# network 192.18.0.0
RouterB(config-router)# network 192.19.0.0
इसके बाद Router C पर RIP को इस प्रकार configure ककया जाये गा।
RouterC(config)# router rip
RouterC(config-router)# network 192.17.0.0
RouterC(config-router)# network 192.16.0.0
युँहा पर पहले RIP को enable ककया गया है , इसके बाद network command के द्वारा ये define ककया गया
है की ककन routers को routing information र्ेजी जानी चाकहए।
एक ध्यान दे ने योग्य बात ये है की सर्ी IP addresses classfull boundaries में define ककये जाते है और
उनके साथ कोई subnet mask define नहीं ककया जाता है ।
RIP v2 configuration
RIP 2 RIP 1 की limitations को routing updates में subnet add करके overcome करता है । By default
routers पर RIP 1 ही enabled रहता है । इसे change करने के कलए आप RIP को enable करने के बाद
version command के द्वारा version define करते है ।
हालाुँ कक RIP 2 एक classless protocol है लेककन कर्र र्ी networks को classful boundaries में कबना subnet
mask के define ककया जाता है ।
Auto-summarization
जब र्ी कोई router major network से बाहर होता है और इसके द्वारा र्ेजे गए routes sub-netted (classless
boundaries) होते है तो ऐसी situation में RIP इन routes को automatically classful boundaries में summarize
करके add करता है ।
इसे auto summarization कहते है । आप चाहे तो इसे disable र्ी कर सकते है इसके कलए आप no auto-
summary command execute करते है ।
यकद ऊपर RIP के उदाहरण को RIP 2 के साथ configure करे तो ऐसा आप इस प्रकार कर सकते है ।
RouterA# router rip
RouterA# version 2
RouterA# network 192.18.0.0
RouterA# network 192.18.0.0
इसी प्रकार बाकी routers के साथ र्ी RIP 2 को configure ककया जा सकता है ।
RIP Timers Configuration
जैसा की मैने आपको पहले बताया RIP timers RIP operations को control करने के कलए यूज़ ककये जाते
है । इनकी default value इस प्रकार होती है ।
Update timer – 30
Route timeout timer (Invalid timer) – 180
Hold down timer – 180
Flush timer – 240
आप इन default values को change कर सकते है इसके कलए आप timers basic command execute करवाते
है । ये command सर्ी timers की default values को change कर दे ती है । इस command के बाद आप
ऊपर कदए गए order में timers की values space से separate करके कलखते है । जैसे की
Router(config)# router rip
Router(config)# timers basic 20 80 80 120
यकद आप वापस से default timers को enable करना चाहते है तो इसके कलए आप no timers basic
command यूज़ करते हैं ।
Router(config)# no timers basic
RIP Passive Interfaces Configuration
Passive routers वो RIP routers होते है जो routing updates कसर्भ receive करते है लेककन send नहीं करते
है । आप ककसी र्ी router के एक particular interface को passive बना सकते है ।
ऐसा करने से उस interface से कोई र्ी routing update जाएगी नहीं लेककन दू सरे RIP router के द्वारा र्ेजी
गई routing updates आ सकती है । उदाहरण के कलए कनचे कदए गए diagram को दे ल्खये।
इस example में router B के interface s0 को passive बनाया गया है । अब A को routing updates नहीं र्ेजी
जाएगी। लेककन router A से routing updates receive की जा सकती है । ऐसा आप passive-interface
command के द्वारा करते है । इस command के बाद आप उस interface का नाम कलखते है कजसे आप
passive बनाना चाहते है ।
RouterB(config)# passive-interface s0
यकद आप ककसी router के सर्ी interfaces को एक साथ passive बनाना चाहते है तो इसके कलए passive-
interface command default value के साथ execute करते है ।
RouterB(config)# passive-interface default
यकद आप वापस से ककसी interface को active करना चाहते है तो no passive-interface command execute
कर सकते है ।
RouterB(config)# no passive-interface s0
RIP Neighbors Configuration
By default RIP routing updates को broadcast करता है । लेककन आप चाहे तो बाकक सब routers को छोड
कर specific routers को unicast updates र्ेज सकते है ।
ऐसा करने से routing updates broadcast नहीं होगी लेककन specific neighbors को unicast updates र्े जी
जाएगी। Specific routers को routing updates र्ेजने के कलए आप उन्हें neighbor command से configure
करते है ।
RouterC(config)# neighbor 192.17.1.2
RIP v1 and RIP v2 inter-operating configuration
कई बार ऐसी र्ी situation हो सकती है की एक router RIP v1 use कर रहा है और दू सरा router RIP v2
यूज़ कर रहा है । RIP v1 router कसर्भ RIP v1 packets send कर सकता है । लेककन receive दोनों तरह के
packets कर सकता है और RIP v2 केवल RIP v2 packets को ही send और receive कर सकता है ।
ऐसी situation में या तो RIP v1 वाले router को configure ककया जा सकता है की वो RIP v2 packets र्ेजे
या आप RIP v2 router को configure कर सकते है की वो RIP v1 packets को receive करे ।
मान लीकजए की RouterC RIP v1 को run कर रहा है तो आप इस router को RIP v2 packets र्ेजने के
कलए इस प्रकार configure कर सकते है । ये configuration आप interfaces पर करते है । इसके कलए आप
interface configuration mode में enter होते है ।
RouterC(config)# interface s0
RouterC(config-if)# ip rip send version 2
आप चाहे तो RouterA जो की RIP v2 रन कर रहा है उसे र्ी RIP v1 के packets receive करने के कलए
configure कर सकते है । दु बारा में आपको बता दे ना चाहता हुँ की ये configuration interfaces पर ककया
जाता है ।
RouterA(config)# interface s0
RouterA(config-if)# ip rip receive version 1
RIP updates triggering configuration
RIP updates हर 30 second में र्ेजी जाती है लेककन आप चाहे तो इसे configure कर सकते है ताकक जब
table में कोई change हो तब ही routing updates र्ेजी जाये। ऐसा आप इस प्रकार कर सकते है ।
RouterC(config)# interface s0.150 point-to-point
RouterC(config)# ip rip triggered
Troubleshooting RIP
RIP को debug करने के कलए बहुत सी commands available है , इन्हें यूज़ करके आप problem का पता
लगा सकते है ।
Commands Explanation
इस command से आप routing table दे ख सकते है । इस command के आगे IP address
show ip route
कलखकर केवल उस router के बारे में आप routing information दे ख सकते है ।
debug ip rip इस command से आप RIP को real time में configure कर सकते है ।
show ip RIP protocols के बारे में information दे खने के कलए आप इस command को यूज़ कर
protocols सकते है ।
show ip rip
RIP database दे खने के कलए आप इस command को यूज़ कर सकते है ।
database
Flush ये timer बताता हैं की एक route flush होने से पहले routing table में ककतनी दे र तक
timer रहे गा।
ये timer बताता हैं की एक route flush होने से पहले routing table में ककतनी दे र तक
Flush timer
रहे गा।
IGRP Loop Avoidance Mechanism
कई बार IGRP network में infinite loop की condition आ जाती है । इसे avoid करने के कलए कुछ loop
avoidance mechanisms यू ज़ ककये जाते है । उदाहरण के कलए कनचे कदए गए network को दे ल्खये।
मान लीकजए network 192.19.0.0 down हो चूका है । Router B 30 second में router A को update र्े जकर
बताएगा की network 198.19.0.0 down हो चूका है । लेककन यकद 30 second से पहले Router A के periodic
updates आ जाती है तो router B में उसकी entry हो जाएगी और router B network 192.19.0.0 को alive
मान लेगा।
इस situation में router B को लगता है की वो network 192.19.0.0 तक router A से होकर जा सकता है ।
लेककन router A की routing table के अनुसार network 192.19.0.0 तक router B से जाया जा सकता है ।
इसकलए Router A packet router B को र्ेजेगा और router B packet को वापस router A को र्ेजेगा। इस
situation में एक infinite loop create हो जाता है । इस looping situation को avoid करने के कलए आप 3
mechanisms use कर सकते है । इनके बारे में कनचे कदया जा रहा है ।
Split Horizon
इस mechanism में कजस router से routing update प्राप्त होती है उसे वापस routing update र्ेजने को
disable कर कदया जाता है । ऊपर कदए गए उदाहरण में router A ने इस network के बारे में router B से
जाना है ।
इसकलए इस mechanism को apply करने के बाद router A network 192.19.0.0 से related updates router B
को नहीं र्ेज सकता है । ऐसा करने से इस network में loop की situation नहीं आयेगी। ये mechanism
सर्ी Cisco routers में by default enabled रहता है ।
Route Poisoning
इस mechanism में जब कोई network fail होता है तो उसकी update सर्ी IGRP routers को immediately
र्ेज दी जाती है । इस mechanism में update र्े जने के कलए timers के expire होने का wait नहीं ककया
जाता है । ऐसा करने से loop की situation create नहीं होती है ।
Hold-down Timers
इस mechanism में जो routers hold down state में है उनके कलए नयी updates नहीं accept की जाती है ।
ऐसा करके loop को avoid ककया जाता है ।
IGRP Configuration
IGRP को configure करने से पहले आइये Autonomous System के बारे में जानने का प्रयास करते है ।
Autonomous System
एक autonomous system IP networks का group होता है कजसे एक single network administrator operate
करता है । एक autonomous system की routing policy clearly defined होती है । Autonomous systems के
बीच में information share करने के कलए exterior routing protocols यूज़ ककये जाते है ।
यकद 2 networks की routing policies different है तो ऐसी situation में उनको अलग अलग autonomous
system में रख कदया जाता है और exterior routing protocols के द्वारा information share की जाती है । सर्ी
autonomous systems की खुद खुद का global unique number होता है ।
Basic IGRP Configuration
IGRP को configure करना बहुत ही आसान हैं । उदाहरण के कलए कनचे कदए हुए network को दे ल्खये।
IGRP को global configuration mode में configure ककया जाता है । ककसी र्ी router पर IGRP को configure
करने के कलए सबसे पहले आप ip router igrp ASnumber command type करें गे।
युँहा पर ASnumber एक autonomous system number है । ये एक autonomous system को represent करता
है । दू सरे routers जो इस autonomous system में होंगे कसर्भ वे ही इस router से update receive कर सकते
है ।
मान लीकजए की autonomous system 2 हैं तो router A पर IGRP को इस प्रकार configure ककया जा सकता
है ।
RouterA(config)# router igrp 2
RouterA(config-router)# network 192.17.0.0
RouterA(config-router)# network 192.18.0.0
इसी प्रकार router B को र्ी configure ककया जा सकता है ।
RouterB(config)# router igrp 2
RouterB(config-router)# network 192.18.0.0
RouterB(config-router)# network 192.19.0.0
Passive Interface Configuration
IGRP में र्ी passive interface configure करने के कलए आप passive-interface command यूज़ करते है । मान
लीकजए ऊपर कदए गए network में आप router B के s0 interface को passive बनाना चाहते है । ऐसा आप
इस प्रकार कर सकते है ।
RouterB(config-router)# passive interface s0
Maximum Hops Configuration
IGRP में default hop-count 100 होती है । लेककन आप चाहे तो इसे configure करके adjust कर सकते है ।
ऐसा आप metric maximum-hops (num upto 255) command के दवारा कर सकते हैं । इसका उदाहरण
कनचे कदया जा रहा है ।
RouterA(config-router)# router igrp 2
RouterA(config-router)# metric maximum-hops 255
यकद आप इस network में OSPF को configure करना चाहते है तो इस प्रकार कर सकते है । सर्ी
routing protocols global configuration mode में configure ककये जाते है ।
RouterA(config)# router ospf 1
RouterA(config-router)# router id 1.1.1.1
RouterA(config-router)# network 192.17.1.1 0.0.255.255 area 1
RouterA(config-router)# network 192.18.1.1 0.0.255.255 area 0
जैसा की आप दे ख सकते है । पहली command router ospf 1 है । युँ हा पर 1 एक unique process id और ये
हर router पर unique र्ी हो सकती है और same र्ी हो सकती है ।
इसके बाद router id command से इस router को एक unique id assign की गयी है । इसके बाद network
command से दोनों interfaces को अलग अलग area के साथ configure ककया गया है । युँ हा पर आपको एक
बात ये र्ी ध्यान रखनी चाकहए की network command में subnet mask र्ी कदया गया है ।
इसी प्रकार router B को र्ी configure ककया जा सकता है ।
RouterB(config-)# router ospf 1
RouterB(config-if)# router id 2.2.2.2
RouterB(config-if)# network 198.19.1.1 0.0.255.225 area 1
RouterB(config-if)# network 198.18.1.1 0.0.255.255 area 0
Passive Interface Configuration
यकद आप चाहते ही की कोई router routing process में कहस्सा न ले तो उस तक जाने वाले interface को
आप passive interface बना सकते है । ऐसा करने से वो router ककसी दू सरे router के साथ neighbor
relationship build नहीं कर सकता है ।
उस interface से दोनों ही direction में कोई routing updates नहीं जा सकती है । ककसी र्ी interface को
passive आप इस प्रकार बना सकते है ।
RouterB(config-router)# passive-interface e0
यकद आप वापस ककसी interface को active बनाना चाहते है तो वो आप इस प्रकार कर सकते है ।
RouterB(config-router)# no passive-interface e0
ऊपर कदए हुए diagram में switch 2 की priority सबसे कम है इसकलए यही root switch कहलायेगा। सर्ी
switches को जब एक दू सरे का BPDU कमलता है तो वे एक दू सरे की priority के कहसाब से root switch
का पता कर लेते है ।
Identifying Root Ports
STP convergence process का second step root ports को identify करना होता है । हर switch का root port
वह port होता है कजसकी root switch (root bridge) तक path cost बाकी सर्ी ports से कम होती है ।
हर switch में कसर्भ एक ही root port हो सकता है । Root switch (root bridge) में कोई root port नहीं होता
है । क्योंकक root port को root switch को point करने के कलए यूज़ ककया जाता है और root switch में
इसका कोई उपयोग नहीं होता है ।
ककसी port की root switch (root bridge) से path cost उसकी bandwidth पर depend करती है । कजतनी ज्यादा
bandwidth होती है उतनी ही कम path cost होती है । जैसे की 1 Gbps की path cost 4 होती है और 10
Gbps की path cost 2 होती है ।
जैसा की आप ऊपर कदए diagram में दे ख सकते है सर्ी switches के सर्ी port links की bandwidth
समान है । ऐसी situation में switch का जो port root switch (root bridge) से directly connected होता है
वही root port कहलाता है ।
Identifying Designated Root Ports
STP convergence process का 3rd step designated ports identify करना होता है । एक designated port वो
port होता है जो network में BPDU और frames forward करने के कलए responsible होता है । यकद ककसी
switch में ऐसे 2 ports है जो designated port बन सकते है तो इसका मतलब होता है की network में loop
है ।
एक same port कर्ी root port और designated port नहीं बन सकता है । इसे दू सरी तरह से दे खे तो आप
के network में हर switch में कसर्भ एक ही ऐसा port हो कजससे सारे network में कुँही र्ी frame send
ककया जा सके है ।
यकद ऐसे port एक से अकधक है तो समझ लीकजये की आपके network में लूप है और इसे eliminate करने
के कलए आपको हर ल्िच से एक port को छोडकर बाकक सर्ी ऐसे ports को block करना होगा।
ऊपर कदए गए diagram में आप दे ख सकते है switch 1 में ऐसे 2 port है जो पुरे network में frames send
कर सकते है इसकलए आप इन दोनों में से ककसी एक को block कर दे ते है और loop eliminate हो जाता
है । हालां कक ये network बहुत छोटा है इसकलए एक port को block करते ही ये converged हो चूका है ।
लेककन real life में बहुत से loops आपके network में हो सकते है ।
जैसा की आप ऊपर कदए गए diagram में दे ख रहे है VPN technology internet का एक base के रूप में
उपयोग करती है और एक host से दू सरे host के बीच में tunneling के द्वारा secure और reliable
connection establish करती है ।
VPN की working को समझने के कलए आपको tunneling और encryption का concept समझना होगा।
इनके बारे में कनचे कदया जा रहा है ।
Tunneling
Tunneling एक technology है । इस technology में ककसी protocol (TCP/IP, UDP) के data-gram में
tunneling protocol (PPTP, L2TP) का packet encapsulate ककया जाता है । कुछ common tunneling protocols
के नाम कनचे कदए जा रहे है ।
PPTP (Point-to-Point Tunneling Protocol)
L2TP (Layer two tunneling protocol)
GRE (Generic Routing Encapsulation)
Encryption
जैसा की आप जानते है की VPN technology public network (Internet) को base बनाकर एक private
network create करती है । लेककन public network इतना secure नहीं होता है । VPN को secure बनाने के कलए
encryption process के द्वारा data को encrypt ककया जाता है । Encryption 2 प्रकार का होता है । इनके बारे में
कनचे कदया जा रहा है ।
Symmetric encryption – इस तरह के encryption में data को encrypt और decrypt करने के कलए
एक common shared key यूज़ की जाती है ।
Asymmetric encryption – इस तरह के encryption में data को encrypt और decrypt करने के कलए
अलग अलग keys यूज़ की जाती है ।
1. सबसे पहले DHCP client (host) available DHCP servers के कलए DHCP discover message broadcast करता है । ये
message network में DHCP server को discover करने के कलए यू ज़ ककया जाता है ।
2. इसके बाद जो DHCP server इस message को receive करता है वह client को Offer message र्े जता है । Offer
message के द्वारा DHCP server खुद की existence को show करता है ।
3. इसके बाद client server को IP address और regarding information के कलए Request message broadcast करता
है ।
4. इसके बाद server client को information एक unicast acknowledgement message के द्वारा र्े जता है ।
Requirements
आपके pass network ID होनी चाकहए। यकद आप ककसी subnet की network ID नही ं define करते है तो by default
सर्ी address assign ककये जाते है ।
आपको ये र्ी पता होना चाकहए की ऐसे कौनसे addresses है जो पहले से यू ज़ ककये जा रहे है । जैसे की कोई
addresses जो printers, routers या दू सरे purposes के कलए यू ज़ ककये जा रहे हो। ऐसे addresses को DHCP
configuration से exclude ककया जाता है ।
आपको network के default router(default gateway) का address र्ी पता होना चाकहए।
DNS (Domain Name System) server का address र्ी आपको पता होना चाकहए।
ऊपर वो information बताई गयी जो ककसी र्ी DHCP server को configure करने के कलए required है ।
कनचे DHCP server को configure करने के कलए कुछ steps कदए जा रहे है । इन steps को follow करते हुए
आप आसानी से DHCP को configure कर सकते है ।
Steps
सबसे पहले आप उन addresses को exclude करते है जो पहले से दू सरे purpose के कलए यू ज़ ककये जा रहे है या
reserved है ।
इसके बाद आप subnet के कलए unique name से pool create करते है ।
इसके बाद आप वो network ID और subnet mask set करते है जो server hosts को IP addresses assign करने के
कलए यू ज़ करे गा।
इसके बाद आप default gateway का address set करते है ।
इसके बाद DNS server का address set ककया जाता है ।
यकद आप पहले से set lease time नही ं यू ज़ करना चाहते तो आप lease time को days, hours और minutes में set
कर सकते है ।
Example
ये blocks network और hosts को represent करते है । शुरू के blocks network को represent करते है और
बाद के hosts को represent करते है ।
ककतने blocks network को represent करें गे और ककतने hosts को represent करें गे ये IP address की classes
के द्वारा defined होता है । यकद आप IPV4 address के format और classes के बारे में और अकधक जानना
चाहते है तो Addressing tutorial को पढ़ सकते है ।
IPV4 Header
Internet Protocol (IP) layer 3 (Network Layer) पर काम करता है । ये layer layer 4 (Transport Layer) के
द्वारा र्ेजे गए segments (when using TCP as protocol) या datagram (when using UDP as protocol) को
packets में break करती है ।
Packets में break करने के बाद इन packets के साथ IP header attach की जाती है । ये header packet से
related आवश्यक information receiver side को provide करती है । IP header में ये information different
fields के द्वारा represent की जाती है ।
कनचे IP header को एक diagram के द्वारा represent ककया गया है । इसके बाद सर्ी fields को कनचे detail
से समझाया गया है ।
Version Number – Version Number field के द्वारा Internet Protocol का version number define ककया जाता
है । युँहा पर IPV4 header की बात की जा रही है इसकलए version र्ी 4th ही होगा।
Header Length – इस field के द्वारा IP header की length define की जाती है । IPV4 header की length 32 bit
words (with options) के द्वारा दशाभ यी जाती है । यकद header में कोई options defined ना हो तो इस filed की
value 5 set होती है ।
Types of Service – ये field वो तरीका define करता है कजससे router को packets को queue करना चाकहए
जब packets forward होने के कलए wait कर रहे हो। यकद ककसी packet की priority ज्यादा हो तो इस
field की value 1 होती है । Regular packets के कलए इस packet की value 0 होती है ।
Total Length – ये field IP datagram की total length को दशाभ ता है । ऊपर define ककया गया header length
field header की length को define करता है और ये field data और header सकहत data-gram की total length
को define करता है । ये एक 16 bit field होता है ।
Identification – ये field एक segment का identification होता है । ये एक 16 bit का number होता है जो
source address के साथ कमलकर ककसी segment को uniquely identify करता है ।
Flags – ये field दशाभ ता है की क्या router ककसी segment को fragment कर सकते है । इस field में 3 bits
होती है । पहली bit reserved होती है । यकद इस field में second bit set हो तो उसका मतलब होता है don’t
fragment और यकद इस field में third bit set हो तो उसका मतलब होता है की segment fragmented है ।
Fragment Offset – यकद packet fragmented है तो ये field original packet की शुरू की 8 bits को दशाभ ता
है । ये field 13 bits का होता है ।
Time to Live – ये field एक limit set करता है । मान लीकजये इस field की value 15 है । यकद packet 15
routers से pass होने के बाद र्ी destination तक नहीं पहुुँ चता है तो उस packet को discard कर कदया
जाता है । Authenticity के नजररए से ये एक महत्वपूणभ field है । इस field की size 8 bits होती है ।
Protocol – इस field में उस protocol का नाम होता है कजसने packet network layer को pass ककया क्योंकक
receiver side पर De-multiplexing के कलए ये पता होना चाकहए की कौनसे protocol को data pass करना है ।
Header Checksum – ये field errors को check करने के कलए यूज़ ककया जाता है । जब packet source से
send ककया जाता है तो इस field में एक value होती है जो algorithm के द्वारा header से calculate की जाती
है ।
जब ये packet receiver side पर पहुुँ चता है तो उसी algorithm के द्वारा value को वापस header से calculate
ककया जाता है यकद value source side से match करती है तो माना जाता है की packet error free है । ये
field 8 bits का होता है ।
Source IP Address – ये field source के IP address को represent करता है । इस field की size 32 bits की
होती है ।
Destination IP Address – इस field के द्वारा destination address represent ककया जाता है । इस field की
size 32 bits होती है ।
Options – ये field कुछ options को represent करता है जो कुछ packets use कर सकते है । हालाुँ कक इस
field को यूज़ नहीं ककया जाता है लेककन जब र्ी इसे यूज़ ककया जाता है इससे header की length 32 bits
से ज्यादा हो जाती है ।
Data – इस field में मुख्य data होता है जो transport layer protocols द्वारा IP को pass ककया जाता है ।
Unicast
एक unicast address एक specific host को represent करता है । इस तरह के address IPV4 packet में
specific destination host को represent करते है । इस प्रकार के address one-to-one communication के कलए
यूज़ ककये जाते है ।
उदाहरण के कलए LAN A का एक host LAN B के ककसी host को packet send करे तो वह unicast
addressing कहलाएगी।
Multicast
Multicast addresses को ककसी packet को एक से अकधक hosts को send करने के कलए यूज़ ककया जाता
है । ये one-to-many communication के कलए यूज़ ककये जाते है ।
उदाहरण के कलए कोई एक host ककसी दू सरे network में एक IP addresses के group को packet send
करता है । ये packet कसर्भ उन्हीं hosts द्वारा receive ककया जाता है जो multicast group में है ।
Broadcast
IPV4 के द्वारा ककसी एक host के packet को पुरे network में र्ैलाने के कलए broadcast addresses यूज़ ककये
जाते है । ये एक one-to-all communication होता है । उदाहरण के कलए एक host ककसी packet को LAN में
available बाकक सर्ी hosts को र्ेज सकता है ।
इस समय ये IPV4 के साथ ही कमलकर काम करता है । यकद आप अपने computer में network center
खोले तो दोनों protocols को एक साथ काम करते हुए दे ख सकते है । जै से की कनचे show ककया गया है ।
IPV4 को 80 के दशक में बनाया गया था। तब से लेकर अब तक internet की दु कनया में बहुत ज्यादा
बदलाव आ गए है । शुरुआत में internet कुछ limited organizations तक ही कसकमत था लेककन अब यह
पूरी दु कनया में र्ैल चूका है ।
कदनों कदन internet के users बढ़ते जा रहे है । इसकलए ऐसी कुछ limitations है कजनकी वजह से IPV4
र्कवष्य में internet की जरूरतों को पूरा नहीं कर पायेगा। आइये इन limitations के बारे में जानने का
प्रयास करते है ।
Limitations of IPV4
कनचे IPV4 की limitations दी जा रही है । इनके बारे में जानकर आप समझ सकते है की IPV6 की
जरुरत क्यों पडी।
1. जैसा की आपको पता है की internet कदनों कदन बढ़ता ही चला जा रहा है । ऐसे में IPV4 के द्वारा
provide ककये गए addresses की संख्या कम होती जा रही है । आने वाले समय में ये addresses पू री
तरह occupied हो जायेंगे और दू सरे devices के कलए address available नहीं होंगे कजस वजह से वे
internet नहीं use कर पाएं गे।
2. IPV4 data को ियं कोई सुरक्षा नहीं दे ता है । Data को र्ेजने से पहले उसे encrypt ककया जाना
चाकहए।
3. IPV4 में special packets को प्राथकमकता दे ने का कोई option नहीं है । हालां कक IPV4 एक Quality Of
Service filed define करता है । लेककन वह packets को प्राथकमकता के क्रम में handle करने के कलये
पयाभ प्त नहीं है ।
4. IPV4 को या तो आप manually configure करते है या इसे dynamically DHCP (Dynamic Host
Configuration Protocol) द्वारा configure ककया जा सकता है । इसके कलए आपको DHCP को र्ी
manage करना पडता है । इससे बहुत सी bandwidth यूज़ हो जाती है और साथ ही network
administrator का time र्ी consume होता है ।
अब तक आपने IPV4 की कुछ ऐसी limitations के बारे में जाना है कजनकी वजह से IPV4 र्कवष्य में
Internet की जरूरतों को पूरा नहीं कर पायेगा। आइये अब जानने का प्रयास करते है की IPV6 इन
limitations को कैसे fulfill करता है और ऐसे कौनसे features जो इसे IPV4 से बेहतर बनाते है ।
Features of IPV6
कनचे IPV6 के कुछ features कदए गए है जो IPV6 को IPV4 से बेहतर बनाते है ।
1. IPV6 में address space बहुत ही बडा है । ऐसा माना जाता है की इस दु कनया के हर इं सान को
20,000 IP address कदए जा सकते है । इसकलए नजदीकी र्कवष्य में IP address की कमी की कोई
problem नहीं होगी। IPV6 का address space र्कवष्य की जरूरतों को पूरा करने के कलए पयाभ प्त है ।
2. IPV6 security के कलए IPSec (Internet Protocol Security) को यूज़ करता है । IPV6 की header में
IPSec के कलए field provide ककया गया है । शुरू में ये IPV6 के साथ ही built in था लेककन बाद में
इसे optional बना कदया गया।
3. IPV6 packets को priority के base पर efficiently forward करने में सक्षम है । इसके कलए IPV6
header में flow label field provide ककया गया है । ये एक 20 bit field होता है इसके बारे में और
अकधक आप IPV6 header explanation में जानेंगे।
4. IPV6 आपको auto configuration feature provide करता है । इससे यकद DHCP server available ना हो
तो र्ी communication में कोई problem नहीं आती है । साथ ही IPV6 में state-full और stateless दोनों
तरह के configuration संर्व है ।
5. IPV6 की header simple है इसमें कसर्भ 8 fields ही include ककये गए है । Simple header की वजह
से IPV6 packets IPV4 packets की तुलना में fast forward होते है । इसका reason ये है की router को
IPV4 की तरह बडी header process करने से time बच जाता है और packets बहुत ही fast forward
ककये जाते है ।
6. IPV6 broadcast को support नहीं करता है । एक से ज्यादा hosts को packets send करने के कलए ये
multicast यूज़ करता है ।
7. IPV6 के पूरी तरह लागू होने पर हर system के pass एक globally unique IP address होगा। इससे
हर host internet पर ककसी दू सरे host से directly communicate कर सकता है । IPV6 के लागू होने
पर आपको NAT (Network Address Translation) की र्ी आवश्यकता नहीं पडे गी।
8. IPV6 के द्वारा devices जैसे की mobile phones ककसी दू सरी location पर जाकर र्ी उसी IP address
के साथ network से connected रह सकते है ।
IPV6 Addressing
IPV6 address 128 bits का होता है । जुँहा IPV4 decimal numbers के 4 groups द्वारा represent ककया जाता है
वुँही IPV6 hexadecimal numbers के 8 groups के द्वारा represent ककया जाता है । IPV6 address का
example कनचे कदया जा रहा है ।
जैसा की आप दे ख रहे है IPV6 address को 3 parts में divide ककया गया है । हर part का अलग महत्व है ।
Global prefix part network ID होती है जो routing के कलए यू ज़ की जाती है । इसकी size 48 bits
होती है । ये शुरू के 3 groups द्वारा represent की जाती है ।
Global prefix field के बाद subnet field आता है , इसमें एक number होता है जो sub network को
identify करने के कलए यू ज़ ककया जाता है । इसकी size 16 bits होती है ।
Interface ID ककसी र्ी host को uniquely identify करती है । ये ID sub network में और globally र्ी
host को uniquely identify करती है । इसकी size 64 bits होती है ।
IPV6 addresses को कलखने के कलए आप shorthand expressions र्ी यूज़ कर सकते है । जैसे की यकद आप
चाहे तो ऊपर कदए गए IPV6 address को इस प्रकार र्ी कलख सकते है ।
2d12:1ba8:3c4d:21d3:0:0:3214:ab65
युँहा पर कजन groups में सर्ी zero थी उन groups को single zero द्वारा represent ककया गया है । आप ऐसा
सर्ी ऐसे groups के साथ कर सकते है कजनमें सर्ी zero’s हो। जब ऐसे दो groups कजनमें सर्ी zero है
एक साथ आते है तो आप उनको double colon से र्ी replace कर सकते है जैसा की कनचे कदया गया है ।
2d12:1ba8:3c4d:21d3::3214:ab65
IPV6 Header
IPV6 addresses को दे ख कर यकद आप सोच रहे है की IPV6 header बहुत ही बडी और complicated
होगी तो ऐसा कबलकुल र्ी नहीं है ।
IPV6 के designers ने IPV6 header को इस तरह design ककया है ताकक इसमें कम से कम field हो जो की
ज्यादा से ज्यादा task perform करे । IPV6 header में 8 fields होते है । इसकी size 40 bytes होती है । IPV6
header का diagram कनचे कदया जा रहा है ।
ये एक बहुत ही simple सी header है कजसे आप आसानी से समझ सकते है । आइये अब different IPV6
header fields के बारे में detail से जानने का प्रयास करते है ।
Version
इस field की value 6 होती है । ये field internet protocol के version को define करता है । इस field की
size 4 bits होती है ।
Class
ये field traffic class को represent करता है । इसकी size 8 bit होती है । ये field IPV4 header के Type of
Service field जैसा ही होता है ।
Flow Label
इस field की size 24 bits होती है । ये field packet और traffic flow को mark करने के कलए यूज़ ककया
जाता है । ये field बताता है की packets ककस sequence में source से destination तक flow करें गे।
Payload Length
ये field data की size को store करता है । इस field की size fixed नहीं होती है ।
Next Header
ये field बताता है की next header कौनसी होगी। IPV4 में ये feature available नहीं होता है ।
Hop Limit
ये field बताता है की destroy होने से पहले maximum ककतने hops (routers) IPV6 packets traverse करें गे।
Source Address
इस field में source host का 128 bit का IPV6 address define ककया जाता है ।
Destination Address
इस field में destination host का 128 bit IPV6 address store ककया जाता है ।
IPV6 Routing Protocols
आपने अर्ी तक कजतने र्ी routing protocols के बारे में पढ़ा है वे सर्ी IPV6 को support करने में सक्षम
नहीं थे। इसकलए उनमें से कुछ को eliminate कर कदया गया और कुछ को upgrade करके IPV6 के साथ
काम करने योग्य बना कदया गया।
Protocols को upgrade करने से वो techniques जो IPV4 routing protocols के साथ यूज़ की जाती थी वो
IPV6 के साथ र्ी यूज़ की जाएगी। इससे आपको IPV6 routing को समझने में ज्यादा problem नहीं
होगी।
जैसा की आपको पता है की IPV6 में broadcasting को पूरी तरह eliminate कर कदया गया है । इसकलए वे
protocols जो broadcasting यूज़ करते है वो IPV6 के साथ काम नहीं कर सकते है ।
मुख्यतः IPV6 3 routing protocols के साथ काम करता है । CCNA exams में आपसे कसर्भ IPV6 static
routing और OSPFv3 के बारे में पूछा जायेगा।
RIPng
EIGRPv6
OSPFv3
आइये अब इन protocols के बारे में जानने का प्रयास करते है । Static routing के बारे में configuration
part में बताया जायेगा।
RIPng
RIPng का पूरा नाम Routing Information Protocol Next Generation है । ये protocol IPV4 के साथ यूज़ ककये
जाने वाले RIP का upgraded version है , कजसे IPV6 के साथ काम करने के कलए upgrade ककया गया है । ये
एक Interior Gateway Protocol है जो best route determine करने के कलए distance vector algorithm यूज़
करता है ।
EIGRPv6
IPV6 के कलए EIGRP में वही features include ककये गए है जो IPV4 के EIGRP version में available है ।
साथ ही ज्यादातर operations र्ी उसी प्रकार perform होते है जैसे की IPV4 के EIGRP में perform होते
है ।
लेककन इन versions में कुछ difference र्ी है जैसे की EIGRPv6 सीधा router interfaces पर configure
ककया जाता है और यकद router ID नहीं है तो आप EIGRPv6 को configure नहीं कर सकते है आकद।
OSPFv3
OSPFv3 एक link state routing protocol है । ये IPV4 के साथ यूज़ ककये जाने वाले OSPF का upgraded
version है । इसे IPV6 के साथ work करने के कलए upgrade ककया गया है । इसके सर्ी basic features वही
है जो OSPF में पाए जाते है ।
Functions of Switches
Layer 2 पर switches 3 important functions perform करते है । इनके बारे में कनचे detail से समझाया जा
रहा है ।
जब switch को पहली बार on ककया जाता है तो CAM table खाली होती है । जब कोई host frame send
करता है तो switch frame के source address को CAM table में store कर लेता है । क्योंकक इस समय
switch को destination host का ज्ञान नहीं है इसकलए switch इस frame को source port के आलावा बाकी
सर्ी ports को broadcast कर दे ता है ।
कजस host के कलए इस frame को send ककया गया है उसे छोडकर सर्ी hosts इस frame को discard कर
दे ते है । जो host frame को receive करता है वह source host को acknowledgment frame र्ेजता है । अब
switch इस frame के source address को अपनी CAM table में store कर लेता है ।
Network में जब र्ी कोई frame send ककया जाता है तो switch उसके source address को अपनी
CAM table में store कर लेता है । इस प्रकार एक switch अपनी CAM table build करता है । एक बार जब
switch सर्ी hosts के MAC addresses को store कर लेता है तो उसे ककसी frame को पहली बार की
तरह broadcast करने की आवश्यकता नहीं होती है । अब frames ककसी point to point connection की तरह
source से destination तक र्ेजे जाते है ।
Forwarding of Frames
जैसे ही कोई frame switch interface पर आता है तो उसके destination MAC address को CAM table के
MAC addresses से compare ककया जाता है । यकद frame का destination address match हो जाता है तो
frame को केवल उसी MAC address से सम्बंकधत port को forward कर कदया जाता है ।
यकद ककसी frame का destination address CAM table से match नहीं करता है तो उस frame को broadcast
ककया जाता है । यकद कोई host frame को receive करता है और उसका acknowledgment frame र्ेजता है
तो उस frame के source address को switch CAM table में store कर लेता है ।
यकद कोई host या server frames को broadcast करता है तो switch ऐसे frames को सर्ी hosts को send
करता है ।
Switches frames को forward करने के कलए 3 methods provide करते है ।
1. Store and Forward – इस method में complete frame को memory में copy ककया जाता है । Frame को copy करने
के बाद उस पर Cyclic Redundancy Check (CRC) perform ककया जाता है ।
2. Cut Through – इस method में frame की header से शुरआती 6 bytes को copy ककया जाता है ताकक destination
host को identify ककया जा सके। इस method में ककसी र्ी प्रकार की error checking नही ं perform की जाती है ।
3. Fragment Free – इस method में frame की शुरआती 64 bytes को copy ककया जाता है ताकक error checking
perform की जा सके।
Loop Avoidance
Switches के बीच multiple links होना बहुत ही important रहता है । क्योंकक यकद ककसी कारणवश एक link
down हो जाए तो दू सरी link द्वारा frames को send ककया जा सकता है । लेककन कई बार इन्हीं mulitple
links की वजह से network में कई समस्याएुँ उत्पन्न हो जाती है ।
Switches के बीच एक से अकधक link होने की वजह से network में loops create हो सकते है । यकद कोई
loop avoidance technique ना use की जाए तो network में broadcast storm create हो जाता है । Network में
loops की वजह से एक host frames की एक से अकधक copies receive कर सकता है ।
Layer 2 switching में loops को avoid करने के कलए Spanning Tree Protocol use ककया जाता है । इस
protocol के बारे में जानकारी आप Spanning Tree Protocol in Hindi tutorial से प्राप्त कर सकते है ।
हालाुँ कक हर message type के कलए ICMP header अलग होती है लेककन शु रू के 3 field सर्ी messages में
समान होते है । इन 3 fields की total size 4 byte होती है । इन fields के बारे में कनचे detail से कदया जा
रहा है ।
Type – ये field message का type define करता है । उदाहरण के कलए ककसी प्रकार की error report
करते समय उस error से सम्बंकधत code इस field में define ककया जाता है । उसी प्रकार यकद
query message है तो इस field में उस query का code आएगा।
Code – Query messages के कलए इस field की value zero होती है । Error messages के कलए ये field
error के sub type को define करता है । उदाहरण के कलए यकद destination unreachable error आयी
है तो code field ये बताएगा की ककस तरह की destination unreachable error आयी है जैसे की
network unreachable (code 0), host unreachable (code 1) या कर्र protocol unreachable (code 2)
error आकद। Errors के इन sub types को र्ी codes के द्वारा define ककया जाता है ।
Checksum – Header और data के द्वारा checksum calculate ककया जाता है कजसे errors को detect
करने के कलए use ककया जाता है ।
Rest of the Header – जै सा की आपको पता है ICMP message को IP datagram में encapsulate ककया
जाता है । ICMP message में rest of the header section remaining IP header को दशाभ ता है ।
Data – Error messages के सन्दर्भ में इस section में कजस packet के द्वारा error आयी है उस packet
की complete information होती है ।
Domain name space में 2 तरह की domain name होती है । इनके बारे में कनचे कदया जा रहा है ।
Fully Qualified Domain Names
एक fully qualified domain name वह होता है जो dots (.) के द्वारा separated रहता है । हर dot operator एक
different hierarchy level को represent करता है । इस तरह की domain name का उदाहरण कनचे कदया जा
रहा है ।
www.MyComapny.com
Partially Qualified Domain Name
एक partially qualified domain name में dots नहीं होते है । इस तरह की domains में कसर्भ एक node का
नाम होता है और ये fully qualified domain names की तरह root की तरर् नहीं बढ़ती है । इसका
उदाहरण कनचे कदया जा रहा है ।
MyCompany
DNS (Domain Name System) Servers
DNS (Domain Name System) 3 प्रकार के servers से कमलकर बना हुआ है ।
1. Root Server
2. Primary Server
3. Secondary Server
ये तीनों servers domain name space की अलग अलग hierarchy levels पर काम करते है । Domain name
space hierarchy के संदर्भ में इनका diagram कनचे कदया जा रहा है ।
ARP message format में कदए गए सर्ी fields को कनचे detail से समझाया जा रहा है ।
Hardware Type – इस field की size 2 bytes होती है । ये field define करता है की ARP message को
transmit करने के कलए ककस प्रकार का hardware type use ककया गया है । सबसे common hardware
type Ethernet है । Ethernet की value 1 होती है ।
Protocol Type – ये field बताता है की ARP message की transmitting के कलए ककस protocol को
use ककया गया है । ज्यादातर इस field की value 2048 होती है जो की IPv4 को दशाभ ती है ।
Hardware Address Length – ये field hardware address की length bytes में दशाभ ता है । Ethernet MAC
address की size 6 byte होती है ।
Protocol Address Length – ये field IP address की size bytes में दशाभ ता है । IP address की size 4
bytes होती है ।
OP Code – ये field ARP message के type को बताता है । यकद इस field की value 1 है तो यह
request message है और यकद इस field की value 2 है तो यह reply message है ।
Sender Hardware Address – इस field में message send करने वाले device का MAC address होता
है ।
Sender Protocol Address – इस field में message send करने वाले device का IP address होता है ।
Target Hardware Address – Request message में यह field खाली होता है । इस field में
receiving device का hardware address होता है ।
Target Protocol Address – इस field में receiving device का IP address होता है ।
जैसा की आप ऊपर कदए गए diagram में दे ख सकते है home network में configure ककये गए IP
addresses inside local होते है | जो IP address आपके private को public network से connect करता है वह
inside global कहा जाता है | ये NAT enabled device (router) के उस interface पर configured होता है जो की
private network से जोडता है |
ये IP address आपके private network को represent करता है | NAT enabled device के दू सरी तरर् outside
global address होता है जो की इसे public network से जोडता है | वह कोई र्ी host जो public network में
होता है और NAT enabled device के interface से public network में connect रहता है outside local address
कहलाता है |
जब र्ी home network का कोई र्ी host internet से जुडने का प्रयास करता है तो NAT उसे एक
registered IP address में translate कर दे ता है और वह host आसानी से internet access कर पाता है |
Configuring NAT (Network Address Translation)
जैसा की मैने आपको पहले बताया NAT को 3 प्रकार से use ककया जाता है । इसकलए NAT को configure
र्ी 3 प्रकार से ककया जाता है । NAT के 3 तरह के configuration को कनचे समझाया जा रहा है |
Static NAT Configuration
Static NAT configure करने के कलए सबसे पहले आप inside और outside interfaces को identify
करके configure करते है | Inside interface वह होता है कजससे private host NAT enabled device
से connected करता है | Outside interface वह होता है कजससे NAT enabled device internet से जुडा होता है ।
Inside interface को configure करने के कलए आप इस प्रकार commands execute करें गे।
Router(config)# int e0/0
Router(config-if)# ip nat inside
पहली command से आप interface configuration mode में आ जाते है और दू सरी commands से आप उस
interface को inside interface के रूप में configure करते है |
Outside interface को आप इस प्रकार configure कर सकते है ।
Router(config)# int s0/0
Router(config-if)ip nat outside
आल्खर में एक private IP address को public IP address में map करने के कलए आप इस प्रकार command
execute करें गे।
Router(config)# ip nat inside source static 152.4.0.1 192.168.1.1
ऊपर दी गयी command 152.4.0.1 को 192.168.1.1 में statically translate करती है ।
Configuring Dynamic NAT
Dynamic NAT configuration के कलए र्ी सबसे पहले आप inside और outside interfaces को identify करके
configure करते है | इसके बारे में मैं static configuration में पहले बता चू का हुँ इसकलए युँहा पर मैं इस
process को skip कर रहा हुँ |
Inside और outside interfaces को identify करके configure करने के बाद आप public address का एक
pool specify करते है | Inside hosts internet से जुडते समय इस pool में next available IP address
dynamically select करें गे |
Public addresses के pool को configure करने के कलए आप इस प्रकार command execute करते है ।
Router(config)# ip nat pool BHTPOOL 151.70.1.1 151.70.1.1 netmask 255.255.255.0
ऊपर दी गयी command BHTPOOL नाम से एक pool define करती है कजसमें 151.70.1.1 से लेकर
151.70.1.50 तक के public IP addresses available है । आल्खर में आप उन private address को configure
करते है जो इस pool के द्वारा translate ककये जा सकते है | इसके कलए आप access-list का प्रयोग करते है |
Private address की list को configure करने के कलए आप इस प्रकार command execute करें गे।
Router(config)# ip nat inside source list 10 pool BHTPOOL
Router(config)# access list 10 permit 172.16.1.1 0.0.0.255
पहली command बताती है की कोई र्ी inside host जो access list 10 को match करता है उसे BHTPOOL
में available ककसी र्ी public address में translate ककया जा सकता है | Access list ककसी र्ी host को
172.16.1.1 network पर specify करता है ।
Configuring NAT Overload or (Port Address Translation)
जैसा की आपको पता है PAT को तब configure ककया जाता है जब inside local addresses की सुँ ख्या
outside public addresses से कम होती है | हर inside private address को एक single public address के
unique port number में translate ककया जाता है ।
PAT को configure करना आसान है | इसके कलए सबसे पहले आप inside और outside interfaces को
configure करते है | इनके बारे में आपको पहले बताया जा चूका है | इसके बाद आप PAT configure करते
है |
PAT को configure करने के कलए आप इस प्रकार commands execute करते है |
Router(config)# ip nat inside source list 10 interface Serial0/0 overload
Router(config)# access list 10 permit 172.16.1.1 0.0.0.255
ऊपर दी गयी commands बताती है की कोई र्ी inside host जो access list 10 को match करता है उसे
overload के साथ serial interface 0/0 में translate ककया जाएगा|
Troubleshooting NAT (Network Address Translation)
NAT को troubleshoot करने के कलए कुछ basic commands के बारे में कनचे बताया जा रहा है |
सर्ी static और dynamic NAT translations को दे खने के कलए आप कनचे दी गयी command execute करते
है |
Router# show ip nat translation
ये दे खने के कलए की कौनसा interface inside है और कौनसा outside है आप कनचे दी गयी command
execute करते है |
Router# show ip nat statistics
NAT translation को real time में दे खने के कलए आप कनचे दी गयी command execute करते है |
सर्ी dynamic NAT entries को clear करने के कलए आप कनचे दी गयी command execute करते है |
Router# clear ip nat translation
ऊपर कदए गए diagram में physical layer और network layer के बीच data link layer पर PPP के
components को show ककया गया है । इन components के बारे में detail से आप आगे जानेंगे।
Components of PPP (Point to Point Protocol)
Point to Point Protocol के 4 main components है ।
1. EIA/TIA-232-C, V.24, v.35 and ISDN
2. HDLC (High Level Data Link Control)
3. LCP (Link Control Protocol)
4. NCP (Network Control Protocol)
ये सर्ी components PPP की working में अहम् role अदा करते है । इनके बारे में कनचे detail से कदया जा
रहा है ।
EIA/TIA-232-C, V.24, V.35 and ISDN
ये physical layer पर काम करने वाले hardware components होते है । ये सर्ी components serial
communication के कलए international standards को follow करते है ।
HDLC (High Level Data Link Control)
HDCL PPP में use ककये जाने वाला एक mechanism होता है , जो network layer से आने वाले datagrams को
serial link में encapsulate करने का काम करता है । ये सर्ी Cisco serial links पर default serial
encapsulation method है ।
कई बार students HDLC Protocol और PPP में HDLC mechanism को एक ही समझ लेते है और confuse
हो जाते है । इसकलए मैं आपको बताना चाहता हुँ की ये दोनों अलग अलग होते है |
LCP (Link Control Protocol)
जैसा की इस tutorial में पहले बताया गया है , PPP data link connections के कलए LCP पर कनर्भर रहता है ।
LCP के द्वारा कनचे कदए गए tasks perform ककये जाते है ।
1. Establishing Point to Point connections
2. Maintaining Point to Point connections
3. Terminating Point to Point connections
Link control protocol आपको कई PPP encapsulation options provide करता है , इनके बारे में कनचे कदया
जा रहा है ।
1. Authentication – ये option link की दू सरी तरर् की side को user information send करने के कलए
कहता है ताकक user को authenticate ककया जा सके।
2. Compression – ये option send करने से पहले data को compress करके PPP connections का
throughput increase करने के कलए use ककया जाता है ।
3. Error Detection – ये option PPP link में error detect करने के कलए use ककया जाता है ।
4. Multilink – ये option कसर्भ उन्हीं PPP links के कलए available है कजनमें Cisco routers use ककये गए
है । ये option एक link से दू सरी link तक कई separate paths को एक path के रूप में show करता
है । उदाहरण के कलए दो T1 lines को network layer पर एक single path के रूप में show ककया
जाएगा।
5. PPP callback – ये option dial up connections के साथ use ककया जाता है । Successfully authenticate
होने के बाद PPP को दु बारा call back के कलए configure ककया जा सकता है । जब callback feature
enabled रहता है तो client router के द्वारा sever router को call करके authenticate ककया जाता है ।
इस option के काम करने के कलए इसे दोनों side में enable रहना आवश्यक है ।
NCP (Network Control Protocol)
ये protocol PPP link में encapsulate करने के कलए different network layer protocols को establish और
configure करने का काम करता है । NCP के द्वारा आप कई network layer protocols को एक साथ use कर
सकते है । आसान शब्दों में कहा जाए तो ये protocol network layer protocols से communication allow
करता है ।
PPP Connection Establishment
जब एक PPP connection start होता है तो point to point links 3 phases से होकर गुजरती है । इन phases
के बारे में कनचे detail से बताया जा रहा है ।
Link Establishment Phase
इस phase में link को test और configure करने के कलए PPP devices के द्वारा आपस में LCP packets send
ककये जाते है । इन packets में एक Configuration option होता है कजससे सर्ी devices को data की size,
compression और authentication की जानकारी कमलती है । यकद कोई configuration field नहीं है तो ऐसी
situation में default configuration को use ककया जाता है ।
Peer Authentication Phase
कोई र्ी एक या कर्र दोनों तरर् से authentication request र्ेजी जा सकती है । PPP authentication के
कलए PAP (Password Authentication Protocol) या CHAP (Challenge Handshake Authentication Protocol)
use करता है । इन दोनों में से PAP कम secure होता है और कसर्भ शुरआती link establishment के दौरान ही
link को authenticate करता है । दू सरी तरर् CHAP शुरू में तो link को authenticate करता ही है साथ
में एक कनकित समय अंतराल के बाद र्ी बार बार link को authenticate करता है ।
यकद authentication successful रहता है तो network layer protocol phase शुरू हो जाती है और यकद
authentication fail होता है तो link termination phase शुरू हो जाती है ।
Network Layer Protocol Phase
इस phase में सर्ी network layer protocol NCP (Network Control Protocol) के साथ service establish करते
है ।
Link Termination Phase
PPP link ककसी र्ी तरर् से ककसी र्ी समय request र्ेजकर terminate की जा सकती है । Link
termination authentication fail होने के कारण र्ी हो सकता है ।
Configuring PPP (Point to Point Protocol)
ककसी र्ी serial link पर PPP configure करने के कलए सबसे पहले आप interface configuration mode में
enter होते है ।
इसके बाद उस interface पर PPP encapsulation configure करने के कलए आप कनचे दी गयी command
execute करते है ।
Router(config-if)# encapsulation ppp
अब तक एक Cisco router पर PPP को configure करना बताया गया है । ये करने के बाद आप PPP
authentication configure करते है । PPP authentication configure करने के कलए सबसे पहले आप router
को user name और password दे ते है । ऐसा आप global configuration mode में जाकर करते है । इसका
उदाहरण कनचे कदया जा रहा है ।
Router(config)# hostname router1
Router(config)# username Router2 password bypass
पहली command के द्वारा current router को router1 hostname कदया है । दू सरी command username है । इस
command से आप PPP link के दू सरी तरर् के router का hostname और password दे ते है ताकक दोनों
आपस में connection establish कर सके। यही process link के दू सरी तरर् के router पर र्ी follow की
जाती है लेककन उस router पर username command द्वारा आप इस router का user name और password
configure करते है ।
User name और password configure करने के बाद आप कौनसा authentication method use करना चाहते है
ये define करते है । इसका उदाहरण कनचे कदया जा रहा है ।
Router(config)# ppp authentication pap
इसी प्रकार आप CHAP को र्ी PPP authentication protocol के रूप में configure कर सकते है ।
Router(config)# ppp authentication chap
Debugging PPP (Point to Point Protocol)
ककसी र्ी interface पर configure ककये हुए PPP encapsulation को आप इस प्रकार दे ख सकते है ।
Router# show interface s0/0
दो routers के बीच में PPP authentication को आप इस प्रकार configure कर सकते है ।
Router# debug ppp authentication
ऊपर कदए गए diagram में Main Office के router से सर्ी Branch office routers को एक dedicated line से
connect ककया हुआ है । क्योंकक ये WAN technology है इसकलए इस तरह की network configuration में
कार्ी लागत आती है । इस situation में frame relay को use ककया जा सकता है ।
Frame relay Main Office और सर्ी branch offices के बीच काम करे गा और सर्ी branch routers को एक
single physical connection के द्वारा Main Office से connect करे गा। Frame relay एक switch पर काम
करता है , कजससे की आप branch offices को ककसी WAN technology के बजाय LAN technology
से connect कर सकते है । ऐसा करने से आपको हर branch office के कलए अलग से dedicated WAN
technology line की आवश्यकता नहीं होगी और आपकी लागत बहुत कम हो जायेगी। इसे कनचे diagram
द्वारा समझाया गया है ।
ऊपर कदए गए उदाहरण में Main office router के कजस interface से frame relay switch connected है वह
DTE (Data Terminal Equipment) कहलाता है और frame relay switch के कजस interface से Main office
router connected है वह DCE (Data Communication Equipment) कहलाता है ।
CIR (Committed Information Rate)
एक frame relay network में अलग अलग locations से कई routers ककसी main router से connected रहते
है । Data transfer के दौरान ये सर्ी routers एक single dedicated line को share करते है । आसान शब्दों में
कहें तो सर्ी routers एक single dedicated line की bandwidth को share करते है ।
Frame relay के द्वारा data को कजस frame में डाला जाता है CIR उसी frame में एक field होता है जो ये
define करता है की एक frame dedicated line की ककतनी bandwidth occupy करे गा। इस field की value
अकधक और कम set की जा सकती है । लेककन जो र्ी value set करें वह access rate से अकधक नहीं होनी
चाकहए।
Access rate एक frame relay interface की maximum speed होती है । दू सरी और CIR maximum bandwidth
होती है जो frame occupy करे गा। यकद ये दोनों values same होती है तो frame relay connection ककसी
dedicated line की तरह काम करे गा।
DLCI (Data Link Connection Identifiers)
जैसा की DLCI के नाम से आप अंदाजा लगा सकते है यह frame relay के माध्यम से जुडे हुए different
data link connections को unquely identify करने के कलए use ककया जाता है । ये एक integer number होता
है जो frame relay service provider द्वारा assign ककया जाता है । इसे frame relay interfaces पर configure
ककया जाता है ।
यकद ऊपर उदाहरण में कदए गए network के सन्दर्भ में दे ख तो frame relay switch से जाने वाले सर्ी
interfaces पर इसे configure ककया जाएगा। इस प्रकार ये सर्ी branch offices को frame relay से main
office के बीच जाने वाली dedicated link में uniquely identify करे गा।
LMI (Local Management Interface)
LMI एक signalling standard है । इसे DTE router और frame relay के first switch (DCE) के बीच use ककया
जाता है । ये frame relay में होने वाले operations और status की जानकारी DTE और frame relay service
provider के बीच share करता है ।
LMI कनचे दी गयी information को share करता है ।
1. Keepalives – ये signal बताता है की data flow हो रहा है ।
2. Multicasting – ये LMI में एक optional extension है कजसके माध्यम से routing information और
ARP request frame relay network में distribute की जाती है ।
3. Global Addressing – ये option DLCI को globally identity provide करता है । इसके माध्यम से
frame relay network ककसी LAN की तरह काम कर सकता है ।
4. Status of Virtual Circuits – ये option सर्ी data link connections का status provide करता
है ।
LMI 3 प्रकार के standard signaling formats को support करता है कजनके बारे में कनचे कदया जा रहा
है ।
1. Cisco – Cisco devices पर ये signalling format default है । ये एक Cisco proprietary signalling
format है ।
2. ANSI – इस format में annex D को ANSI standard T1.617 के साथ include ककया गया है ।
3. ITU-T (Q.993A) – ITU – T में annex A को include ककया गया है । इसे q933a command द्वारा
define ककया गया है ।
Frame Relay Encapsulation Types
जब आप frame relay को Cisco router पर configure करते है तो आप इसे serial interface पर
encapsulation के रूप में define करते है । Frame relay के साथ आप HDLC या PPP को नहीं use कर
सकते है । Frame relay के साथ आप 2 encapsulation types use कर सकते है । इनके बारे में कनचे बताया
जा रहा है ।
1. IETF – यकद आप manually इस type को define नहीं करते है तो Cisco routers पर default frame
relay encapsulation type Cisco होता है । इस type को आप केवल तब ही define करें गे जब आप
ककसी Cisco router को ककसी दू सरे vendor के router से frame relay के द्वारा जोडना चाहते है ।
2. Cisco – Cisco devices पर ये default encapsulation type होता है ।