Let's simply the networking knowledge.
Tri Huynh, CCIE #23726 Routing & Switching
Friday, 26 August 2016
Basic knowledge of the distance vector routing protocol RIP version 2
Because RIP is a distance vector routing protocol, it will NOT have any ideas about the current network topology. It will learn routes directly from the update sent by its neighbors.
There are some importance facts about the RIP version 2:
1. RIPv2 is using UDP port 520 to transmit its request & response message.
2. On the broadcast network, RIPv2 uses the multicast address 224.0.0.9
3. Distance vector routing likely got the loop problem named "Counting to infinity".
4. There are two loop-prevent mechanisms for RIPv2: Split-Horizon and Poison-Reverse.
5. Update are sent every 30s, but we can use the trigger update.
Monday, 22 August 2016
Adding routes dynamically to the routing table or forwarding table
Manually controlling the routing table is easy and fun when your network is small with a few routers. When the number of routers increasing, it's almost impossible to do the STATIC way.
This time, we need a protocol so all routers can talk together to exchange the routing information. There are two kinds of that protocol Distance Vector & Link State routing protocol.
Adding routes manually to the routing table or forwarding table
You can always add routes into the routing table manually on every router even your home wifi routers by WEB interface or command lines.
By controlling the router's forwarding table manually, you will understand the routing process more. By default, routers will put all subnets connected to its interface into the routing table. Thus you do NOT need to worry much about those connected routes.
You should only think about how the packet gets to the destination. The importance thing is this process is only ONE WAY. You should also think about how the packet gets back to its source.
Understand the forwarding table or routing table of a router
First, an incoming Layer-2 Frame to a router interface will be de-encapsulated to get the IP Packet inside it. After that, the router will look at the IP Header to find a field named IP Destination.
Next, it will check that IP destination address with its Routing Table.
1. If there is a matched, the router will re-encapsulated that packet into a Layer-2 Frame then forward that frame to the matched interface.
2. If NOT, the router will drop that packet and do nothing.
How is an IP Packet moved around the internet
Unlike a shipping package which can be moved around by a person or a shipping truck, An IP Packet is so dumped. It needs a device that can put and wrap it in a Layer-2 box then send it to another device.
Any devices (server, firewall, PCs, modem ...) that have the ability of receive an IP Packet, read its Header IP information then forward to the next device are called routers. Routers rely on its routing table to forward a received IP packet.
What is IP address
Because all the network devices are using the same TCP/IP protocol to communicate to each other. They must have a unique address to distinguish from the other. That address is called IP address.
Now we have two version of the IP addresses: IP version 4 (IPv4) and IP version 6 (IPv6). Although IPv4 is supposed to end soon because it supports only 2^32 = 4.3 billion addresses, it is still widely used until now because of the NAT.
The Network Address Translation allows us to use any Private IP addresses and translate them into Public IP Address(es) in order to communicate to the internet (Public IP Addresses).
Basic knowledge of the TCP/IP Protocol suite
People need some things in commons so they can talk together. So does the computers. They all need to use the same protocol in order to maintain an efficiency communication.
You could build up your own style of network protocol but if you would like to communicate with billion devices out there, you have no choices. The TCP/IP protocol is used right now on almost all network devices. It based on the OSI model.
Subscribe to:
Posts (Atom)