Internetworking in Computer Network

This tutorial explains internetworking in computer network with five key internetworking devices (hub, bridge, switch, router and multilayer). Learn basic internetworking concepts such as collision domain and broadcast domain in detail with examples.

Internetworking term in computer networking explains how computer networks connect with each other through Internetworking devices. Before we learn internetworking in details, let’s understand what computer network is first.

Computer networks are basically built from three components; End Devices, Networking Devices and Media.

End Devices: - End devices are used to access or transmit the data. Computer, laptop, data server and tablet are the example of end devices.

Networking Devices: - Networking devices are used to control the data flow. Switches, Routers, HUB, Bridges, firewalls and modems are the example of networking devices.

Media: - Media is used to transmit the data. Copper cables, fiber cable and wireless signals are the example of media.

Following figure illustrate a simple computer network

computer network

Let’s start exploring above network, assume that you are working on PC1 and want to send a file to PC3. What will you do?

Probably you will access PC3 from any network application such as Network [Available in left pane of windows explorer on any Windows OS] and drop the file in shared folder from PC3. That’s all, your job is done.

But wait…. it’s your job that is done not computer’s. Actually computer’s job is just started. Computer will start with name resolution process. In Name resolution process hostname is translated with IP address and vice versa. Its same mechanisms that mobile phone uses. When you dial someone’s number from contact what happen? Your mobile phone displays his name on screen. This feature allows us to know who is calling us or to whom we are calling.

For example in following figure SAM whose mobile number is 098765432112 calling to BOB whose mobile number is 123456789012.

mobile dns

Neither Bob nor SAM has to remember the each other’s mobile number. Because mobile numbers and contact names are stored in phonebook application. Phonebook is the smallest part of DNS service. DNS service is the database of contact numbers and names. Names are used for human reference while numbers are used for mobile network. Both are converted with each others in name resolution process. Same thing happens in computer network. You can replace name and number of mobile network with hostname and IP address in computer network.

In computer network:-

  • Destination hostname must be converted with IP address before source can access it.
  • Source PC uses DNS or ARP broadcast to resolve the hostname with IP address.

In our example we are sending a file from PC1 to PC3. Hostname of our destination address is PC3. It must be converted in IP address before PC1 can access it. PC1 uses DNS service to resolve the hostname with IP address.

Okay our source computer knows the IP address of destination computer. Will it send the file now? Not yet, it needs to know one more address; MAC address. MAC address is a hardware address and burned with Ethernet card from manufacturer.

How computer will know the MAC address of destination computer? Again it will use the ARP broadcast to find out the MAC address.

A sample broadcast from PC1 to find out the MAC address of PC3

Time  Source       Destination Protocol  Info
8.123 192.168.1.1  Broadcast   ARP       Who has 192.168.1.3? Tell 192.168.1.1

A sample response from PC3 to PC1

Time    Source       Destination  Protocol  Info
8.124   192.168.1.3  192.168.1.1  ARP       192.168.1.3 is at 00:0b:db:99:d3:5e
Key Points

Every computer in network has a unique network address. This address represents its location in network. Computer address is built from two addresses IP address and MAC address.

IP Address: - IP address is a software address. We need to configure it on each PC.

MAC Address: - MAC address is a hardware address. It is assigned with Ethernet card from its manufacture company.

Computers know their own address but they don't know others. To know others address they use two types of broadcast ARP and RARP.

Network applications rely on broadcast messages to get the necessary information. Beside ARP and RARP there are lots of broadcast in the network that create serious performance issue. To deal with broadcast issue, a large network is divided in many small networks. Each small network has its own broadcast boundaries and known as broadcast domain.

Broadcast domain

Broadcast is a destination less message. It never carries user data. It is used by computer for network functionality. Domain is the group of computers sharing same characteristics.

So broadcast domain is the group of computers those share same broadcast. Multilayer switches and routers can control the broadcast.

Collision

Collision is another bigger network issue that every network has to face. Collision occurs when two sender devices sense media at a time.

Collision domain

Collision domain is a group of computers those share same collision. More computers you put in network, more collision you will experience. Collision seriously effect network performance. Collision should be less than one percent of total traffic. If it increases, we will have to implement collision removal devices. Bridges, switches, routers, multilayer switches can control the collision.

Networking devices

In this section we will take five key networking devices those are used to connect multiple computers in single network and explain how they affect broadcast and collision.

HUB

If you have two devices, you can connect them directly with a cable. But if you have more than two devices, you need a center device that can connect them. HUB solves this issue. It has single purpose, connect multiple devices in single network.

networking device hub

Hub is a multi-port repeater. It cannot control collision and broadcast. HUB is the earliest device in computer network. Usually you will not see it in current network.

Bridge

Bridge connects devices more intelligently. It can remove collision from network.

networking device bridge

It keeps record of connected device and create separate route for each devices. Bridge have following limitations.

  • They cannot control broadcast.
  • Bridges manage collision by software that slows down overall network performance.
  • Bridges have port limitation.
  • Bridges are outdated now. They are hard to find in current time computer network. They are replaced by switches.

Switch

Switches have all goodies of bridges. They can control collision at hardware level that improves overall network performance.

networking device switch

Switches create separate route for each connected device that eliminates CSMA/CD process completely.

switch and collision

Switch keeps route information in memory. We will explain this process in detail with example in our next article. For this article just make sure that you know switch maintain a table which is used to keep track of connected devices. It is known as CAM table and also used to remove the collision.

switch cam table

Switches can control the collision but they cannot control the broadcast.

Router

Router can control both collision and broadcast. Beside this router do a lot more that we will explain in next article.

networking device router

Routers have following drawback: -

  • They are very expensive
  • They have limited ports

Multilayer switches

Multilayer switches are the most expensive device among these. They can control both collision and broadcast.

multilayer swtich

Multilayer switches are usually deployed in enterprise size company environment.

Summary
Device Collision Broadcast
HUB Single collision domain Single broadcast domain
Bridge Per port collision domain Single Broadcast domain
Switch Per port collision domain Single Broadcast domain
Router Per port collision domain Per port broadcast domain
Multilayer switch Per port collision domain Per port broadcast domain

ComputerNetworkingNotes CCNA Study Guide Internetworking in Computer Network