CCNA Class 04: Work Functionality of the required Network Components & Number System
In computer networking, collision domains, and broadcast domains are key concepts that define how devices interact within a network. They play an essential role in managing data flow, traffic segmentation, and network performance.
Collision Domain
A collision domain is a part of a network where packet collisions can happen when two or more devices try to send data simultaneously on a shared medium. Collisions occur because devices compete for the same bandwidth in this segment, which can slow down data transfer and require packets to be resent.
Characteristics:
Common in traditional Ethernet networks using hubs, which do not segment traffic.
Every device in a collision domain shares the same communication channel.
Collisions are detected and managed by Carrier Sense Multiple Access with Collision Detection (CSMA/CD) in Ethernet networks.
Switches break up collision domains by creating a separate collision domain for each port, isolating devices and reducing the chance of collisions.
Impact: In networks with a single, large collision domain (like those with hubs), collisions become more frequent, leading to network inefficiency. Switches reduce collision domains significantly, creating more efficient network segments.
Example:
A hub with four connected devices has one large collision domain, so any device sending data at the same time as another will cause a collision. In a switch, each port forms its collision domain. So, if four devices are connected to a switch, each device operates in an independent collision domain.
Broadcast Domain
A broadcast domain is a part of a network where broadcast frames sent by one device are received by all other devices in the same domain. Broadcasts are typically used for functions like address resolution, where a device needs to identify the MAC address of another device on the same network.
Characteristics:
All devices connected through a switch or hub are in the same broadcast domain since they receive all broadcast messages.
Routers, however, create separate broadcast domains for each interface, preventing broadcasts from crossing between networks.
Broadcast domains are essential for communication within a local network but can cause congestion if too many broadcasts are present, especially in large networks.
Example:
In a local network with a switch, all connected devices are in the same broadcast domain. A broadcast message sent by one device is forwarded to all other devices by the switch.
A router separates broadcast domains, so a device in one segment won’t receive broadcasts from another segment.
How to calculate the Collision Domain and Broadcast Domain
- Hub - Single collision domain and single broadcast domain.
- Switch - Multiple collision domain and Single broadcast domain.
- Router - multiple collision and multiple broadcast domain.
- Bridges - A bridge breaks collision domains into two, but it doesn't segment broadcast domains.
Digital Number System in Computer Science -
In digital computing, number systems represent and process data. Digital systems typically use binary, but other number systems like decimal, octal, and hexadecimal also play roles. Here’s a breakdown of these systems and their classifications are -
Binary (Base-2)
Digits: 0, 1
Use: Binary is the fundamental number system in digital computing since computers operate using bits (binary digits).
Example: (1101)2
Decimal (Base 10)
Digits: 0 to 9
Use: This is the standard number system for human-readable information.
Example: (13)10
Octal (Base 8)
Digits: 0 to 7
Use: Occasionally used in computing as a shorthand for binary; it groups binary digits in sets of three
Example: (15)8, (Which is equivalent to 11012 in Binary)
Hexa-Decimal (Base 16)
Digits: 0 to 9 and A=10 to F=15
Use: Widely used in computing for memory addresses, colors in graphics, and as a compact representation of binary data (groups binary digits in sets of four).
Example: D16, (Which is equivalent to 11012 in Binary and 1310 in Decimal.)
- Binary to Decimal Conversion
Example 01: let's convert the binary number 11112 to decimal:
- Decimal to Binary Conversion
To convert a decimal number to a binary number, we need to follow these steps:
Divide the decimal number by 2 and get the quotient and the remainder.
Write down the remainder as the rightmost bit of the binary number.
Repeat the process with the quotient until it becomes zero.
Write down the final quotient as the leftmost bit of the binary number.
Read the binary number from left to right.
Let’s see an example:
Convert the decimal number (87)10 =(?)2 to a binary number.
Solution:
- How to Convert Decimal Fractions to Binary Fractions?
To convert a decimal fraction to a binary fraction, we need to follow these steps:
Multiply the decimal fraction by 2 and get the integer part and the fractional part.
Write down the integer part as the leftmost bit of the binary fraction.
Repeat the process with the fractional part until it becomes zero or repeats.
Write down the final integer part as the rightmost bit of the binary fraction.
Read the binary fraction from left to right.
Let’s see an example: Convert the decimal fraction (0.95)10 to a binary fraction.
- How to Convert Binary Fractions to Decimal Fractions?
For example,