So sánh classless interdomain routing và classfull intradomain routing

Classless Inter-Domain Routing (CIDR ) là một phương pháp phân bổ các địa chỉ IP và định tuyến IP. lực lượng đặc nhiệm kỹ thuật Internet đã giới thiệu CIDR vào năm 1993 để thay thế kiến trúc địa chỉ trước đây của thiết kế mạng đầy đủ trong Internet. Mục tiêu của nó là làm chậm sự tăng trưởng của bảng định tuyến trên bộ định tuyến trên Internet và để giúp làm chậm sự nhanh chóng sự cạn kiệt địa chỉ IPv4 nhanh chóng.

Địa chỉ IP được mô tả là bao gồm hai nhóm bit trong địa chỉ: các bit quan trọng nhất là tiền tố mạng, xác định toàn bộ mạng hoặc mạng con và tập hợp ít quan trọng nhất tạo thành định danh máy chủ, chỉ định giao diện cụ thể của máy chủ lưu trữ trên mạng đó Bộ phận này được sử dụng làm cơ sở định tuyến lưu lượng giữa các mạng IP và cho các chính sách phân bổ địa chỉ.

Trong khi thiết kế mạng đầy đủ cho IPv4 có kích thước tiền tố mạng là một hoặc nhiều nhóm 8 bit, dẫn đến các khối địa chỉ Lớp A, B hoặc C, Định tuyến liên miền không phân bổ phân bổ không gian địa chỉ cho nhà cung cấp dịch vụ Internet và người dùng cuối trên bất kỳ ranh giới bit địa chỉ. Tuy nhiên, trong IPv6, định danh giao diện có kích thước cố định 64 bit theo quy ước và các mạng con nhỏ hơn không bao giờ được phân bổ cho người dùng cuối.

CIDR bao gồm một số khái niệm. Nó dựa trên kỹ thuật mặt nạ mạng con có độ dài thay đổi (VLSM), cho phép đặc tả các tiền tố có độ dài tùy ý. CIDR đã giới thiệu một phương thức biểu diễn mới cho các địa chỉ IP, thường được gọi là ký hiệu CIDR, trong đó một địa chỉ hoặc tiền tố định tuyến được viết với một hậu tố chỉ ra số bit của tiền tố, chẳng hạn như 192.0.2.0/24 cho IPv4 và 2001: db8:: / 32 cho IPv6. CIDR đã giới thiệu một quy trình hành chính phân bổ các khối địa chỉ cho các tổ chức dựa trên nhu cầu dự kiến ​​thực tế và ngắn hạn của họ. Tổng hợp của nhiều tiền tố liền kề dẫn đến các siêu dữ liệu trong Internet lớn hơn, mà bất cứ khi nào có thể được quảng cáo là tổng hợp, do đó làm giảm số lượng mục trong bảng định tuyến toàn cầu.

Classful or classless routing refers to how the routing protocol handes the IP addresses. In classful addresses there is the specific address, and the host address of the server that address is connected to. Classless addresses use a combination of IP address and netmask.

Classless Inter-Domain Routing (CIDR) was introduced in 1993 (originally with RFC 1519 and most recently with RFC 4632) to keep routing tables from getting too large. With Classful routing, each IP address requires its own entry in the routing table. With Classless routing, a series of addresses can be combined into one entry potentially saving vast amounts of space in routing tables.

Current routing protocols that support classless routing out of necessity include RIPv2, BGP, IS-IS, and OSPF. Older protocols such as RIPv1 do not support CIDR addresses.

Having trouble configuring your Fortinet hardware or have some questions you need answered? Check Out The Fortinet Guru Youtube Channel! Want someone else to deal with it for you? Get some consulting from Fortinet GURU!

A classful routing protocol will not send the subnet mask along with the routing update so, in the routing table this is what will advertised:

172.16.1.0/24 became 172.16.0.0

172.16.2.0/24 became 172.16.0.0

192.168.12.0 and 192.168.23.0 do not change because they are a class C range.

Examples of classful routing protocols include RIPv1 and IGRP.

RIPv1 and IGRP, are legacy protocols and are only used in older networks.

classful routing protocols

Classless routing protocols do send the subnet mask with their updates.

Variable Length Subnet Masks (VLSMs) are allowed when using classless routing protocols.

In classless routing, subnet mask is not same throughout, it may vary for all devices, as illustrated in the figure below.

Routing Protocols help the routers to guide them in transferring the data from source to destination. Routing protocols are broadly classified based on their operation, behavior, and purpose. The purpose involves the gateway protocols and the operation deals with distance vector and link state routing protocol. Classful and Classless routing comes under the category of behavior. The primary difference between the classful and classless protocols is that the routing updates do not include subnet mask information and include subnet mask information respectively. In the current trend, modern networks do not use classful routing.

What is Classful Routing?

In routing updates, Classful Routing does not include the subnet mask and when a route update is sent the same subnet mask must be used by all connected devices. The subnet mask is nothing but the 32-bit number with all the bits as 0 on the host side and all 1’s on the network side. Some examples of classful routing protocols are RIP and IGRP.

RIPv1 and IGRP were the first two Internet Protocol version 4 (IPv4) routing protocols to be created. They emerged as a result of the allocation of network addresses based on classes A, B, and C. At that time the purpose of developing classful routing is that the first octet of the network address could be used to determine the network mask.

Example of Classful Routing

Let A and B be two routers and Router A does not include the subnet mask for carrying the routing update.

Case-1 − If the routers are directly connected, the host will use the subnet mask of the interface network.

Case-2 − If the routers are not directly connected, the routing difficulties occur and it assigns based on the order of classes.

What is Classless Routing?

During routing, it will send the subnet mask along with the routing update information. Variable Length Subnet Masking is used by classless routing. Some of the newer protocols that use this classless routing are RIP-2, OSPF, and EIGRP. Routing protocols using IPv6 are classless. Only IPv4 routing protocols normally fall under the classification of being classful or classless. Since all IPv6 routing protocols incorporate the prefix length with the IPv6 address, they are all regarded as classless.

On the other hand, classless routing protocols send an IP address along with a prefix length. As a result, classless routing protocols can aggregate networks into a single entry and identify those groups using the prefix length. Furthermore, unlike the classful scheme, which limited prefix lengths to 8, 16, or 24, classless routing protocols accept any prefix length.

Example of Classless Routing

Let A and B be routers, the Router A carries the route update information along with the subnet mask. The Router A interface receives the update when belonging to the same major network then Router B will recognize it after accepting the routing update.

Difference between Classful and Classless Routing

Classful and classless routing is one of the categories of routing protocol that also provides major characteristics while transferring data through the routers. The Classful is a type of traditional method and classless routing is used in the latest networks.

Basis of Difference

Classful Routing

Classless Routing

Definition

It does not forward subnet mask information and routing updates simultaneously.

It would forward subnet mask information and the routing update simultaneously.

Variable Length Subnet Masking (VLSM) subnet

VLSM is a subnet or a piece of a large network that is not supported in classful routing.

In classless routing, VLSM is supported during the routing update.

Hello message parameter

This routing does not use a “Hello message” for checking the status.

“Hello Status” is used to check the status of neighbors.

Bandwidth

The Bandwidth consumption is very high in classful routing.

Classless routing consumes less bandwidth.

Addresses

The Addresses are classified into three parts subnets, networks, and hosts.

The Addresses are classified into three parts subnets and hosts.

Routing updates

There are regular or periodic updates of the routing information.

Triggered updates (only partial) are used in classless routing.

Discontiguous network

It does not support a discontiguous network but the subnets are not visible to each other.

It supports a discontiguous network but the subnets are visible to each other.

Major Protocols and their network size

RIP-1 and IGRP have small network sizes.

The Network size of RIP-2 is small, while EIGRP and OSPF are larger.

Implementation and Maintenance

The cost of implementation and maintenance is low.

The cost of implementation and maintenance is high due to modern networks.

Error Detection

If any flaw occurs, it can be detected easily.

While in classless routing, error detection is tough.

Conclusion

The Routing protocols target to transmit data from one network to another or with the same network. Here the subnet which is a part of the large network plays a major role during update routing. Depending on the criteria for using the subnet masks, classful and classless routing protocols are used.