เคเค network เคธे เคฆूเคธเคฐे network เคฎें packets send เคเคฐเคจे เคी process เคो routing เคเคนเคคे เคนै। Routing static เคเคฐ dynamic 2 เคช्เคฐเคाเคฐ เคी เคนोเคคी เคนै। Routes destination network เคชเคฐ based เคนोเคคे เคนै। Routing เคฎें เคเค network เคธे เคฆूเคธเคฐे network เคे เคฒिเค best path find เคिเคฏा เคाเคคा เคนै। Best path เคो metric เคเคฐ administrative distance เคे base เคชเคฐ เคुเคจा เคाเคคा เคนै। Routing routers เคे เคฆ्เคตाเคฐा perform เคी เคाเคคी เคนै। เคเคธเคे เคฒिเค routers routing tables เคฌเคจाเคคे เคนै। เคเคเคฏे เค เคฌ routing tables เคे เคฌाเคฐे เคฎें เคाเคจเคจे เคा เคช्เคฐเคฏाเคธ เคเคฐเคคे เคนै।
Routing Tables :- Routers routing tables เคฌเคจाเคคे เคนै เคिเคจเคฎें เคจिเคे เคฆी เคเค information เคนोเคคी เคนै।
- Destination network เคเคฐ เคเคธเคा sub-net mask เคนोเคคा
- Destination network เคคเค เคाเคจे เคे เคฒिเค next hop router เคे เคฌाเคฐे เคฎें information เคนोเคคी เคนै।
- Routing metrics เคเคฐ administrative distance stored เคนोเคคी เคนै।
Routing tables 2 เคคเคฐเคน เคे protocols เคธे related เคนोเคคी เคนै।
- Routed protocols - เคฏे network layer protocols เคนोเคคे เคนै। Routed protocols devices เคे เคธाเคฅ logical addresses attach เคเคฐเคคे เคนै। เคฏे protocols data เคो เคเค network เคธे เคฆूเคธเคฐे network เคฎें เคญेเคเคจे เคे เคฒिเค responsible เคนोเคคे เคนै। เคเคฆाเคนเคฐเคฃ เคे เคฒिเค IP (Internet Protocol) เคเคฐ IPX เคเคฆि।
- Routing protocols - เคฏे protocols routing tables เคฎें network, topology เคเคฐ next hop information build เคเคฐเคคे เคนै। เคฏे เคธाเคฐी information dynamically (automatically) build เคी เคाเคคी เคนै। เคเคฆाเคนเคฐเคฃ เคे เคฒिเค RIP, IGRP เคเคฐ OSPF เคเคฆि। Routing protocols 2 เคคเคฐเคน เคे เคนोเคคे เคนै।
- Distance vector - เคเคธ เคคเคฐเคน เคे protocols เคฎें metric hop count (number of routers between source and destination) เคे เคฆ्เคตाเคฐा determine เคी เคाเคคी เคนै। เคिเคธ route เคฎें distance เคธเคฌเคธे เคเคฎ เคนोเคคी เคนै เคตเคนी route choose เคिเคฏा เคाเคคा เคนै। เคเคธ เคคเคฐเคน เคे protocol เคा เคเคฆाเคนเคฐเคฃ RIP เคนै।
- Link state - เคเคธ เคคเคฐเคน เคे protocols เคฎें metric shortest path first algorithm เคธे determine เคी เคाเคคी เคนै। เคธเคญी routes เคी cost เคฎें เคो เคธเคฌเคธे เคเคฎ cost เคนोเคคी เคนै เคเคธे เคนी route เคूเคจा เคाเคคा เคนै। เคเคธ เคคเคฐเคน เคे protocols เคा เคเคฆाเคนเคฐเคฃ OSPF เคนै।
Destination network เคคเค best route identify เคเคฐเคจे เคे เคฒिเค router เคจिเคे เคฆिเค เคเค 3 elements เคो เคฏूเค़ เคเคฐเคคा เคนै।
- Prefix-Length - เคฏे network เคो identify เคเคฐเคจे เคे เคฒिเค bits เคी quantity เคนोเคคी เคนै। เคเคธเคธे เคธเคฌเคธे เคธเคीเค route determine เคिเคฏा เคाเคคा เคนै। Prefix length เคिเคคเคจी เค्เคฏाเคฆा เคนोเคคी เคนै route เคเคคเคจा เคนी เคธเคीเค เคนोเคคा เคนै। เคเคฆाเคนเคฐเคฃ เคे เคฒिเค เคฎाเคจ เคฒीเคिเค เคเค packet 10.1.5.0/24 host เคชเคฐ เคा เคฐเคนा เคนै เคเคฐ router เคी routing table เคฎें เคจिเคे เคฆिเค เคเค 2 networks เคนै। เคฏँเคนा เคชเคฐ เคชเคนเคฒे network เคो choose เคिเคฏा เคाเคฏेเคा เค्เคฏोंเคि เคเคธเคी prefix length เค
เคงिเค เคนै। เคเคธเคธे เคोเค เคซเคฐ्เค เคจเคนीं เคชเคก़เคคा เคी metric เคฏा administrative distance เค्เคฏा เคนै।
a) 10.1.5.0/24
b) 10.0.0.0/8 - Metric - Metric router เคो routing protocol เคे เค ंเคคเคฐ्เคเคค best route เคขूंเคขเคจे เคी เคฏोเค्เคฏเคคा เคฆेเคคी เคนै। Distance vector protocols distance เคो metric เคी เคคเคฐเคน เคฏूเค़ เคเคฐเคคे เคนै เคเคฐ link state protocols shortest path first algorithm เคฆ्เคตाเคฐा calculate เคी เคเค cost เคो metric เคी เคคเคฐเคน เคฏूเค़ เคเคฐเคคे เคนै। เคिเคจ routes เคी best metric เคนोเคคी เคนै เคตเคนी routing tables เคฎें add เคिเคฏे เคाเคคे เคนै। เคฏँเคนा เคคเค เคी เคฏเคฆि เคिเคธी routing protocol เคे เคชाเคธ เคเค เคนी network เคคเค เคाเคจे เคे 4 route เคนै เคคो เคญी เคो metric เคธเคฌเคธे better เคนोเคी เคเคธे เคนी routing table เคฎें add เคिเคฏा เคाเคฏेเคा। เคฏเคฆि equal metric เคे เคเค เคธे เค्เคฏाเคฆा route available เคนै เคคो load balance เคे เคฆ्เคตाเคฐा เคธเคนी metric เคो choose เคिเคฏा เคाเคฏेเคा।
- Administrative Distance - เคฏเคฆि router เคชเคฐ เคเค เคธे เค เคงिเค routing protocols เคเคฒ เคฐเคนे เคนै เคคो เคिเคธ protocol เคชเคฐ เคธเคฌเคธे เค เคงिเค trust เคเคฐเคจा เคนै เคฏे administrative distance เคे เคฆ्เคตाเคฐा determine เคिเคฏा เคाเคคा เคนै। เคँเคนा เคชเคฐ administrative distance เคธเคฌเคธे เคเคฎ เคนोเคคी เคนै เคตเคนी protocol choose เคिเคฏा เคाเคคा เคนै। Administrative distance เคเค numerical value เคนोเคคी เคนै เคो dynamic protocols เคो assign เคी เคाเคคी เคนै। เคฏे fixed เคนोเคคी เคนै। เคिเคธ protocol เคी administrative distance unknown เคนोเคคी เคนै เคเคธे เคเคญी เคญी routing table เคฎें เคจเคนीं เคฒिเคฏा เคाเคคा เคนै। เคुเค common protocols เคी administrative distance เคจिเคे เคฆी เคा เคฐเคนी เคนै।
| Protocols | Administrative Distance |
|---|---|
| IGRP | 100 |
| OSPF | 110 |
| RIP | 120 |
| Unknown | 255 |
Viewing Routing Table :- เคिเคธी เคญी router เคชเคฐ routing table เคฆेเคी เคा เคธเคเคคी เคนै। เคเคธเคे เคฒिเค เคเคช show ip route command execute เคเคฐเคคे เคนै। เคเคธे เคเคช user execution mode เคธे เคฆेเค เคธเคเคคे เคนै।
#Router1 show ip route
เคเคฌ เคเคช เคเคธ command เคो execute เคเคฐเคคे เคนै เคคो เคเคชเคो เคธเคญी routers เคी list show เคนो เคाเคคी เคนै। เคเคจ เคธเคญी routers เคे เคธाเคฅ เคเค label เคญी show เคिเคฏा เคाเคคा เคนै เคो เคฏे เคฌเคคाเคคा เคนै เคी เคฏे เคธเคฌ router current router เคธे เคिเคธ เคช्เคฐเคाเคฐ connected เคนै। เคैเคธे เคी C เคฎเคคเคฒเคฌ directly connected เคนोเคคा เคนै। เคเคจ เคธเคญी labels เคी list เคจिเคे เคฆी เคा เคฐเคนी เคนै।
- C - เคเคธ label เคा เคฎเคคเคฒเคฌ เคนै เคी เคฆिเคฏा เคเคฏा router current router เคธे directly connected เคนै।
- S - เคฏे label เคฌเคคाเคคा เคนै เคी เคฆिเคฏा เคเคฏा router statically manage เคिเคฏा เคเคฏा เคนै।
- S* - เคฏे เคฌเคคाเคคा เคนै เคी current router เคธे เคฆिเค เคเค router เคे เคฌीเค เคฎें default route เคนै।
- D - เคเคธ label เคा เคฎเคคเคฒเคฌ เคนै เคी เคฆिเคฏा เคเคฏा router EIGRP protocol เคฏूเค़ เคเคฐ เคฐเคนा เคนै।
- I - เคฏे label เคฌเคคाเคคा เคนै เคी เคฆिเคฏा เคเคฏा router IGRP protocol เคฏूเค़ เคเคฐ เคฐเคนा เคนै।
- R - เคฏे เคฌเคคाเคคा เคนै เคी เคฆिเคฏा เคเคฏा router RIP protocol เคฏूเค़ เคเคฐ เคฐเคนा เคนै।
- O - เคเคธ label เคा เคฎเคคเคฒเคฌ เคนै เคी เคฆिเคฏा เคเคฏा router OSPF protocol เคฏूเค़ เคเคฐ เคฐเคนा เคนै।
Clearing Routing Table :- เคฏเคฆि เคเคช routing table เคธे เคธเคญी routes clear เคเคฐเคจा เคाเคนเคคे เคนै เคคो เคเคธเคे เคฒिเค เคเคช clear command เคฏूเค़ เคเคฐ เคธเคเคคे เคนै। Routing table clear เคเคฐเคे เคเคช routing protocols เคो routing table เคฆोเคฌाเคฐा populate เคเคฐเคจे เคे เคฒिเค force เคเคฐ เคธเคเคคे เคนै।
#Router clear ip route
Choosing Best Route :- เคिเคธी เคญी destination router เคคเค best route choose เคเคฐเคจे เคे เคฒिเค เคเคช เคจिเคे เคฆी เคนुเค process เคो follow เคเคฐ เคธเคเคคे เคนै।
- เคธเคฌเคธे เคชเคนเคฒे เคเคช เคธเคญी route เคी destination route เคे เคธाเคฅ prefix length match เคเคฐेंเคे। เคिเคจ routes เคी prefix length เคธเคฌเคธे accurate เคนै เคเคช เคเคจ्เคนें เคुเคจ เคฒेंเคे।
- เค เคฌ เคเคจ routes เคฎें เคธे เคिเคธ route เคी metric เคธเคฌเคธे เคเคฎ เคนै เคเคช เคเคธे choose เคเคฐ เคฒेंเคे।
- เคฏเคฆि same metric เคे เคเค เคธे เค เคงिเค route เคนै เคคो เคเคช เคธเคฌเคธे เคเคฎ administrative distance เคตाเคฒे route เคो choose เคเคฐेंเคे เคเคฐ เคฏเคนी เคเคชเคा เคธเคฌเคธे best route เคนोเคा।
Static & Dynamic Routing :- Routing table build เคเคฐเคจे เคे เคฒिเค 2 basic method available เคนै।
- Static routing
- Dynamic routing
Static Routing :- Static routing table เคो network administrator manually create, maintain เคเคฐ update เคเคฐเคคा เคนै। เคนเคฐ network เคे เคฒिเค route เคนเคฐ router เคชเคฐ manually configure เคिเคฏा เคाเคคा เคนै। เคเคธเคธे เคเคช routing เคो เคฌเคนुเคค deep level เคชเคฐ control เคเคฐ เคธเคเคคे เคนै। เคฒेเคिเคจ เคฏे approach large networks เคे เคฒिเค impractical เคนै।
เคเคธ approach เคฎें routers เคเค เคฆूเคธเคฐे เคे เคธाเคฅ routes เคจเคนीं share เคเคฐเคคे เคนै, เคเคธเคธे router เคी RAM/CPU เคชเคฐ extra stress เคจเคนीं เคชเคก़เคคा เคนै เคเคฐ เคธाเคฅ เคนी เคเคธเคธे bandwidth เคญी save เคนो เคाเคคी เคนै। Static routing fault tolerant เคจเคนीं เคนै เค्เคฏोंเคि เคเคธเคฎें เคธเคญी เคुเค manually เคिเคฏा เคाเคคा เคนै। เคเคธเคฒिเค เคเคฌ เคญी เคोเค link down เคนोเคคी เคนै เคฏा เคจเคฏा router add เคिเคฏा เคाเคคा เคนै เคคो routers เคฎें changes manually เคเคฐเคจे เคชเคก़เคคे เคนै। เคो routers pure static environment เคฎें เคाเคฎ เคเคฐเคคे เคนै เคตो เคोเค เคญी link unavailable เคนोเคจे เคชเคฐ เคฆूเคธเคฐा better route choose เคเคฐเคจे เคฎें incapable เคนोเคคे เคนै।
Static routes เคी administrative distance 1 เคนोเคคी เคนै เคเคธเคฒिเค เคเคจ्เคนें dynamic routes เคธे เคชเคนเคฒे preference เคฆी เคाเคคी เคนै। เคเคธ administrative distance เคो change เคญी เคिเคฏा เคा เคธเคเคคा เคนै। เคिเคจ static routes เคी administrative distance adjust เคी เคाเคคी เคนै เคเคจ्เคนें floating static route เคเคนเคคे เคนै। เคจिเคे static routing เคी เคुเค advantages เคฆी เคा เคฐเคนी เคนै।
- Static routing เคฎें CPU เคชเคฐ overhead เคฌเคนुเคค เคเคฎ เคนोเคคा เคนै।
- Bandwidth เคฎें overhead เคฌिเคฒเคुเคฒ เคญी เคจเคนीं เคนोเคคा เคนै เค्เคฏोंเคि routers เคเค เคฆूเคธเคฐे เคे เคธाเคฅ updates share เคจเคนीं เคเคฐเคคे เคนै।
- Static routing เคธे เคเคช network เคो deep level เคชเคฐ control เคเคฐ เคธเคเคคे เคนै।
- เคฏเคฆि network เคฎें เคोเค change เคเคฐเคจा เคนो เคคो เคเคธे เคธเคญी routers เคชเคฐ manually เคเคฐเคจा เคนोเคคा เคนै।
- เคฏเคฆि เคोเค link down เคนो เคाเคฏे เคคो เคเคธเคฎें เคोเค fault tolerant เคจเคนीं เคนोเคคी เคนै।
- Static routing large networks เคे เคฒिเค impractical เคนै।
Dynamic Routing :- เคเค dynamic routing table routing protocols เคे เคฆ्เคตाเคฐा create, maintain เคเคฐ update เคी เคाเคคी เคนै। Routing protocols เคฎें เคจिเคे เคฆिเค เคเค 3 protocols เคนोเคคे เคนै।
- RIP (Routing Information Protocol)
- IGRP (Interior Gateway Routing Protocol)
- EIGRP - (Enhanced Interior Gateway Routing Protocol)
- OSPF - (Open Shortest Path First)
dynamic routing เคी เคुเค advantages เคฆी เคा เคฐเคนी เคนै।
- Dynamic routing เคो large networks เคชเคฐ เคเคธाเคจी เคธे configure เคिเคฏा เคा เคธเคเคคा เคนै।
- Automatically better path choose เคเคฐเคจे เคฎें เคธเค्เคทเคฎ।
- Different links เคे เคฌीเค เคฎें load balance เคเคฐเคจे เคฎें เคธเค्เคทเคฎ।
- Dynamic routing bandwidth consume เคเคฐเคคी เคนै।
- Router เคे CPU เคชเคฐ additional load เคชเคก़เคคा เคนै।
- Route เคी choice routing protocol เคे เคนाเคฅ เคฎें เคนोเคคी เคนै administrator เคเคธเคฎें เคुเค เคจเคนीं เคเคฐ เคธเคเคคा เคนै।
Categories of Dynamic Routing Protocols :-Dynamic routing protocols เคो 2 categories เคฎें divide เคिเคฏा เคเคฏा เคนै।
- Distance vector protocols
- Link state protocols
Distance Vector Routing Protocols :- RIP เคเคฐ IGRP distance vector routing protocols เคนोเคคे เคนैं। เคธเคญी distance vector routing protocols เคी เคुเค characteristics เคนोเคคी เคนै เคो เคจिเคे เคฆी เคा เคฐเคนी เคนै।
- เคชूเคฐी routing table เคी periodic updates เคธเคญी เคชเคก़ौเคธी routers เคो เคญेเคी เคाเคคी เคนै।
- Distance vector protocols เคฎें convergence เคฌเคนुเคค slow เคนोเคคा เคนै เคเคฐ เคฏे protocols loops เคे เคช्เคฐเคคि เค เคคिเคธंเคตेเคฆเคจเคถीเคฒ เคนोเคคे เคนै।
- Route เคी metric calculate เคเคฐเคจे เคे เคฒिเค distance เคो เคฏूเค़ เคिเคฏा เคाเคคा เคนै।
- Shortest path เคคเคฏ เคเคฐเคจे เคे เคฒिเค Bellman ford algorithm เคฏूเค़ เคी เคाเคคी เคนै।
เคเคธ เคคเคฐเคน เคी process เคी เคเค disadvantages เคนै। Routing information เคเค neighbor เคธे เคฆूเคธเคฐे neighbor เคे pass periodic updates เคธे เคाเคคी เคนै เคเคธเคฒिเค convergence เคฌเคนुเคค slow เคนोเคคा เคนै। เคธाเคฅ เคธเคญी neighbors เคเค เคฆूเคธเคฐे เคชเคฐ depend เคเคฐเคคे เคนै เคเคธเคฒिเค looping เคे chances เคญी เคฌเคนुเคค เค เคงिเค เคนोเคคे เคนै।
เคैเคธा เคी เคฎैเคจे เคเคชเคो เคชเคนเคฒे เคฌเคคाเคฏा distance vector protocols metric calculate เคเคฐเคจे เคे เคฒिเค distance เคो เคฏूเค़ เคเคฐเคคे เคนै। RIP เคฎें metric hop counts เคे เคฆ्เคตाเคฐा calculate เคी เคाเคคी เคนै। IGRP เคฎें bandwidth เคเคฐ delay เคे เคฆ्เคตाเคฐा metric calculate เคी เคाเคคी เคนै।
Link State Routing Protocols :- Link state protocols เคो distance vector protocols เคฎें เคเคจे เคตाเคฒी looping เคเคฐ convergence problem เคो overcome เคเคฐเคจे เคे เคฒिเค develop เคिเคฏा เคเคฏा เคฅा। Link state routing protocols 3 เคคเคฐเคน เคी routing tables build เคเคฐเคคे เคนै। เคเคจเคे เคฌाเคฐे เคฎें เคจिเคे เคฆिเคฏा เคा เคฐเคนा เคนै।
- Neighbor table - เคเคธ table เคฎें เคธเคญी neighbors เคी list เคนोเคคी เคนै เคเคฐ เคธाเคฅ เคนी เคฏे เคญी เคนोเคคा เคนै เคी เคौเคจเคธा neighbor เคिเคธ interface เคธे connected เคนै। Neighbor table hello packets เคญेเค เคเคฐ เคฌเคจाเคฏीं เคाเคคी เคนै।
- Topology table - เคเคธे link state table เคญी เคเคนเคคे เคนै। เคเคธเคฎें เคเค area เคी เคธเคญी links เคा map stored เคฐเคนเคคा เคนै। เคธाเคฅ เคนी เคนเคฐ link เคा status เคญी stored เคฐเคนเคคा เคนै।
- Shortest path table - เคเคธ table เคฎें เคนเคฐ destination เคे เคฒिเค best routes stored เคฐเคนเคคे เคนै।
เคฏเคฆि เคिเคธी link เคฎें เคोเค change เคเคคा เคนै เคคो เคेเคตเคฒ เคเคธ link เคธे related update เคธเคญी routers เคो เคญेเคी เคाเคคी เคนै เคเคฐ เคธเคญी routers เคเคธเคे เค เคจुเคธाเคฐ เค เคชเคจी topology table เคो adjust เคเคฐ เคฒेเคคे เคนै।
เคेเคตเคฒ เคिเคธ link เคฎें change เคนुเค เคนै เคเคธी เคी update เคญेเคी เคाเคคी เคนै เคเคธ เคตเคเคน เคธे bandwidth เคชเคฐ เคญी เค्เคฏाเคฆा เคช्เคฐเคญाเคต เคจเคนीं เคชเคก़เคคा เคนै। เคฒेเคिเคจ 3 tables เคो manage เคเคฐเคจे เคी เคตเคเคน เคธे CPU เคฌเคนुเคค เค เคงिเค utilize เคนोเคคा เคนै।
Link state protocols เคฎें Dijkstra formula เคे เคฆ्เคตाเคฐा shortest path calculate เคिเคฏा เคाเคคा เคนै।
Post a Comment
If you have any doubts,Please let me know