Professional Documents
Culture Documents
PROJECT
DEPLOYING A MULTI-LAYER NETWORK
USING DYNSMIC ROUTING RIP, OSPF, BGP
2
1. Introduction to multi-layer network
• About multi-layer network system
Internetare also divided into tiers. Tiers on the bottom layer
translation level for the tier above. The tiers above pay to receive the
services of the tiers below. Currently, the model of the Internet is divided
into many floor.
• Các tier của hệ thống mạng đa tầng
-Mạng tier 1: On the top tier, providing connectivity for tier 2 .
networksThe lower tiers are interconnected. Tier 1 networks are big
companiessuch as AT&T (USA), Liberty Global (UK), PCCW Global (Hong
Kong),....
-Mạng tier 2: Tier 2 networks are network service providers (ISPs).
national scale, in Vietnam can be mentioned as: VNPT, FPT, Viettel, ...
3
2. Overview of static routing, dynamic routing
- Routing is a process that routers perform to move a packet (Packet) from a source
address (Source) to a destination address (destination) in the network.
4
2. Overview of static routing, dynamic routing
• Static routing
• Dynamic routing
.
- Dynamic routing protocol is used to communicate between routers.
The dynamic routing protocol allows this router to share routing information
it knows with other routers.
The router can build and maintain its routing table.
- Several dynamic routing protocols: RIP, IGRP, EIGRP, OSPF, etc. are used to route
user data.
- A routing protocol will provide sufficient information about the network layer
address so that data packets can be transmitted from one host to another based on
that address structure. There are two protocols that we need to keep in mind in
dynamic routing:
+ Internet Protocol(IP)
+ Internetwork Packet Exchange(IPX)
6
3. Theory of dynamic routing types: RIP,OSPF,BGP
• Autonomous System(AS)
7
3. Theory of dynamic routing types: RIP,OSPF,BGP
• Autonomous System(AS)
In the system pictured below, the network configuration and topology can be clearly
defined, so separate routing protocols are defined for implementation inside and outside
the AS, including:
- Internal Gateway Protocols (IGPs): Routing Information Protocol (RIP) and Open
Shortest Path First (OSPF).
- Exterior Gateway Protocol (EGPs): are protocols for routing connections between ASs,
usually using the EGP protocol, Border Gateway Protocol (BGP).
8
3. Theory of dynamic routing types: RIP,OSPF,BGP
• Autonomous System(AS)
- Typical examples of ASs are ISPs. Viettel, VNPT, FPT Telecom, ... are the ASs
that contribute to the creation of the global Internet.
- An AS needs to be uniquely identified by a value called the Autonomous
System Number (ASN).
- ASN has 2 format: 2-byte or 4-byte
+ With the 2-byte range, ASNs range from 0 to 65535.
+ With the 4-byte range, ASNs range from 0 to 2^32 – 1.
Example: Viettel network operator owns 2 ASN values, 7552 and 24086. All
public IPs of Viettel on the Internet belong to this AS.
9
3. Theory of dynamic routing types: RIP,OSPF,BGP
• RIP (Routing Information Protocol)
1. Conception
11
3. Theory of dynamic routing types: RIP,OSPF,BGP
- Infinite counting error Routing loops can occur when the routing tables on the
routers have not been updated due to slow convergence.
12
3. Theory of dynamic routing types: RIP,OSPF,BGP
OSPF Areas
13
3. Theory of dynamic routing types: RIP,OSPF,BGP
- Each router running the protocol sends its link states to all routers in area Each router
will apply Dijkstra algorithm ->build route table.
- Router – id: On routers running OSPF there is the format of an IP address.
- The OSPF process on each router will automatically elect the router value - id is the highest
IP address in the active interfaces, giving priority to the loopback port.
To change the router - id of the process, you must restart the router or remove the OSPF
process and then reconfigure.
14
3. Theory of dynamic routing types: RIP,OSPF,BGP
OSPF Terminology
15
3. Theory of dynamic routing types: RIP,OSPF,BGP
Select the explicit path in the previous table (compared to the default path).
Select the path with the highest weight (Cisco router only).
Choose the path with the highest local priority(local preference).
Select the route set by the network administrator on the router (static route, whose
origin attribute is INCOMPLETE).
Choose the path that goes through the least AS (the shortest AS path).
Chọn đường đi có nguồn gốc bên trong trước (origin = IGP < EGP).
Chọn đường đi có độ ưu tiên gần/xa thấp nhất MED (Multi exit discriminator).
Chọn đường đi ra bên ngoài trước (external path).
Chọn đường đi có độ đo IGP đến hop tiếp theo thấp nhất (IGP metric to the next hop.)
Chọn đường đi tồn tại trong bảng lâu nhất (oldest one)
Chọn đường đi đến router tiếp theo có BGP ID thấp nhất.
18
4. Lab model of RIP,OSPF,BGP
In addition, RIP has similar characteristics to other routing protocols: RIP also has a
horizon and hold-down to avoid updating incorrect routing information.
19
4. Lab model of RIP,OSPF,BGP
21
4. Lab model of RIP,OSPF,BGP
• Lab model of OSPF
2. How OSPF works
OSPF performs the collection of status
information state links from neighboring routers.
26
4. Lab model of RIP,OSPF,BGP
• Lab model of BGP
3. Some common path properties of BGP
27
5. Installation and system operation
• Software installation to design system
- GNS3: GNS3 is a software used to emulate cisco router written by Cristophe
Fillot, it is similar to VMWare. However it uses real Cisco IOS to emulate the
router.
- Installing quagga,telnet (Use commandline of Linux OS):
28
5. Installation and system operation
• System Operation
29
5. Installation and system operation
• System Operation
32
6. Conclusion
Describe the most basic problem of multilayer network along with OSPF, BGP, RIP
routing.
From the deployment of multilayer network on GN3, the results have been
successfully deployed and the test operations also achieved high results.
This design has the ability to apply to the network system in practice, but cannot
create great commercial value because the model is not optimal and small.
Learned a lot about multi-layer networking as well as working and operating
systems on Linux as well as Windows Server. I have improved my skills in using C
language for programing and my ability to work on Linux.
33
THANK YOU TO THE
TEACHERS FOR LISTENING
34