• what is Hub , Bridge and Router,switch?

     What is Hub, Bridge, Router  & Switch in Networking?  


    Everyone is use all of them in general life but we don't know how they works and what is the difference between hub bridges etc so lets discuss all of them. 


    Hubs


    Hubs and switches serve as a central connection for all of your network equipment and handles a data type known as frames. Frames carry your data. When a frame is received, it is amplified and then transmitted on to the port of the destination PC

    Hub Icon
    Image: Hub and wireless hub network icons

    In a hub, a frame is passed along or “broadcast” to every one of its ports. It doesn’t matter that the frame is only destined for one port. The hub has no way of distinguishing which port a frame should be sent to. Passing it along to every port ensures that it will reach its intended destination. This places a lot of traffic on the network and can lead to poor network response times

    A hub is a physical layer networking device which is used to connect multiple devices in a network. They are generally used to connect computers in a LAN.

    A hub has many  ports in it. A computer which intends to be connected to the network is plugged in to one of these ports. When a data frame arrives at a port, it is broadcast to every other port, without considering whether it is destined for a particular destination or not.


    Usage:-

    Now suppose that your office issues you a laptop, and you want to be able to telecommute (work from home) at times. Because you already have an Internet connection to your home, you might want to share that connection, rather than install a second connection for your laptop; a small hub enables you share this connection, as illustrated in Figure.




    Bridge 

    A bridge in a computer network is one kind of network device, used to separate a network into sections. 





    Every section in the network represents a collision domain that has separate bandwidth. So that network performance can be improved using a bridge. In the OSI model, a bridge works at layer-2 namely the data link layer. The main function of this is to examine the incoming traffic and examine whether to filter it or forward it.

    Working Principle

    The working principle of a bridge is, it blocks or forwards the data depending on the destination MAC address and this address is written into every data frame.

    Bridge-in-Computer-Network
    bridge-in-computer-network

    In a computer network, a bridge separates a LAN into different segments like segment1 & segment2, etc and the MAC address of all the PCs can be stored into the table. For instance, PC1 transmits the data to PC2, where the data will transmit to the bridge first. So the bridge reads the MAC address & decides whether to transmit the data to segment1 or segment2. Therefore, the PC2 is accessible in segment1, which means the bridge transmits the data in segment1 only & eliminates all the connected PCs in segment2. In this way, the bridge reduces traffic in a computer network.


    Types of Bridges

    Transparent Bridge

    Translational Bridge

    Source-route Bridge

    Functions of Bridges in Network

    Advantages/Disadvantages of Bridge in Computer Network

    The advantages are

    • It acts as a repeater to extend a network
    • Network traffic on a segment can be reduced by subdividing it into network communications
    • Collisions can be reduced.
    • Some types of bridges connect the networks with the help of architectures & types of media.
    • Bridges increase the available bandwidth to individual nodes because fewer network nodes share a collision domain
    • It avoids waste BW (bandwidth)
    • The length of the network can be increased.
    • Connects different segments of network transmission

    The disadvantages are

    • It is unable to read specific IP addresses because they are more troubled with the MAC addresses.
    • They cannot help while building the network between the different architectures of networks.
    • It transfers all kinds of broadcast messages, so they are incapable to stop the scope of messages.
    • These are expensive as we compare with repeaters
    • It doesn’t handle more variable & complex data load which occurs from WAN.

    Router

    Routers are networking devices operating at layer 3 or a network layer of the OSI model. 




    They are responsible for receiving, analysing, and forwarding data packets among the connected computer networks. When a data packet arrives, the router inspects the destination address, consults its routing tables to decide the optimal route and then transfers the packet along this route.




    Features of Routers




    • A router is a layer 3 or network layer device.

    • It connects different networks together and sends data packets from one network to another.

    • A router can be used both in LANs (Local Area Networks) and WANs (Wide Area Networks).

    • It transfers data in the form of IP packets. In order to transmit data, it uses IP address mentioned in the destination field of the IP packet.

    • Routers have a routing table in it that is refreshed periodically according to the changes in the network. In order to transmit data packets, it consults the table and uses a routing protocol.

    • In order to prepare or refresh the routing table, routers share information among each other.

    • Routers provide protection against broadcast storms.

    • Routers are more expensive than other networking devices like hubs,bridges and switches.




    Routing Table

    The functioning of a router depends largely upon the routing table stored in it. The routing table stores the available routes for all destinations. The router consults the routing table to determine the optimal route through which the data packets can be sent.

    A routing table typically contains the following entities −

    • IP addresses and subnet mask of the nodes in the network
    • IP addresses of the routers in the network
    • Interface information among the network devices and channels

    Routing tables are of two types −

    • Static Routing Table − Here, the routes are fed manually and are not refreshed automatically. It is suitable for small networks containing 2-3 routers.

    • Dynamic Routing Table − Here, the router communicates with other routers using routing protocols to determine the available routes. It is suited for larger networks having large number of routers.


           Difference b/w Switch and Hub

    What is a Switch?

    A network switch is a computer networking device that connects various devices together on a single computer network. It may also be used to route information in the form of electronic data sent over networks. Since the process of linking network segments is also called bridging, switches are usually referred to as bridging devices.





    What is Hub?

    A Hub is a networking device that allows you to connect multiple PCs to a single network. It is used to connect segments of a LAN. A hub stores various ports, so when a packet arrives at one port, it is copied to various other ports. Hub works as a common connection point for devices in a network.







    Thanks For Reading

    Shivanshu Tiwari








  • 1 comment:

    SSKKT

    .

    SSKKT

    if you want to be happy, set a goal that commands your thoughts, liberates your energy and inspires your hopes.

    SSKKT

    System programmers are the high priests of a low cult.

    SSKKT

    Without programming, life would be a mistake.

    Hello

    Author Name

    Shivanshu Tiwari

    Contact Info

    shivanshut9889@gmail.com

    My Hobbies & Interests

    My hobby is playing cricket. It makes me feel fresh and energetic.I have made so many friends while playing cricket. Cricket encourages teamwork.
    My second hobby is playing chess ,Chess Teaches You Problem Solving and making complex decision it helps me in programming.

    Carrier

    Shivanshu Tiwari is a game developer with 5 year of experience working with online companies. He specializes in using Java, c,c++,c#, to build customer facing APIs, and also has experience of software programmer.

    Hello, I am Shivanshu Tiwari