# Portal Devices

Portal devices (aka network devices, network nodes) are the ends of a network that are linked/connected by media.

TAGS: Computers, Hardware, Networks, TECH

## Intro

Portal devices (aka network devices, network nodes) are the ends of a network that are linked/connected by media. Common network nodes include network interface controllers (NICs), repeaters, hubs, bridges, switches, routers, modems, and firewalls.

• In OSI Physical (1) layer:
• Network interface controller (NIC). Hardware that provides a computer with access to the transmission media (network link) directly. Typically connects to copper, optical, or radio waves. Each NIC has a unique identifier that identifies the physical hardware. The unique identifieer is a Media Access Control (MAC) address (aka physical address). MAC-48 are usually represented as 6 pairs of hexadecimal (EG: 01-23-45-67-89-ab or 01:23:45:67:89:ab) or 4 sets of hexadecimal (EG: 0123.4567.89ab).
• Repeater. A repeater receives bits, then cleans, boosts, and regenerates it before retransmitting (repeating) it. Still in use mainly for long distance links. There is not filtering or intelligence.
• Hub. Simply a multiport repeater, i.e. it takes multiple network links. Most people use switches instead because switches can do what hubs can plus filtering.
• In OSI Data Link (2) layer:
• Bridge. A bridge examines the source and destination physical/MAC addresses in the data frame, then filters (drop or passes it on) depending on logic in its MAC address table.
• In OSI Data Link (2) and/or Network (3) layer:
• Switch. A switch is a multiport bridge. Switches traditionally work with data frames (MAC addresses) in the OSI Data Link (2) layer, but newer multi-layer model switches also work with data packets (IP addresses) in the OSI Network layer. Because switches focus on the Data Link layer (MAC addresses), they are great for segmenting a network into VLANs.
• In OSI Network (3) layer:
• Router. A router is like a switch just for the OSI Network (3) layer. Because routers focus on the Network layer (IPs), they are great for segmenting a network into subnets.
• Firewall. A firewall controls network security and access rules. Typically a firewall protects a more secure network (like your LAN), from a less secure network (liek the Internet). A firewall may be integrated into a switch or router, but a firewall may exist just as software in a computer as OSI Application (7) layer. Access control may depend on IP address, port, and protocol type.
• Modem (MOdulator-DEModulator). A network device that translates between analog and digital signals.

## Repeaters

A network segment can transmit data over a fixed distance before the signal degrades too much. This distance depends on the media type, eg UTP media has a range of 100 m whereas thick coaxial cable has a range of 500m.

A repeater can extend the reach of a network segment. A repeater will recognize an attenuated (weakened) baseband signal, clean it up, strengthen it, and then send it along to another network segment. A repeater operates in the OSI Physical Layer.

As a rule of thumb, no more than three repeaters should be used to extend the distance between nodes in an Ethernet LAN. Otherwise the system may experience propagation delay because of the pauses at the repeaters. Note that a repeater is for digital baseband signals, whereas an amplifier is for analog broadband signals.

## Hubs

Aka concentrator or multiport repeater. A hub connects multiple network segments in a star topology and usually operates in the OSI Physical Layer. Each network segment is connected to a port on the hub.

There are three kinds of hubs: passive, active, and intelligent.

• A passive hub merely connect network segments. It takes a signal from each port and retransmits it to the other ports without boosting the signal.
• An active hub is like a passive hub that also act as a repeater, i.e. it takes a signal from each port, cleans it up, and boosts the signal before passing it on to the other ports.
• An intelligent or switched hub is an active hub that may perform additional services such as packet switching, traffic routing, and traffic monitoring.

Hubs are commonly used in Ethernet LANs. A hub usually has 3-24 ports. One of the ports may be an uplink to another hub. Up to 3 hubs can be daisy chained together when using UTPs. If more than 3 hubs are needed, then a hub/bridge with a thin coaxial cable port is needed.

A common non-Ethernet hub is a USB hub. A USB hub connects multiple USB devices to a computer.

## Bridges

A bridge is like a repeater (which connects two network segments while boosting the signal), but a bridge also has two other main functions:

• A bridge can send some of the data packets to another LAN. In other words it can act as a bridge between two LANs. It implements this in OSI Data Link Layer in this fashion:
• The bridge examines the destination MAC address of each packet for filtering.
• If the packet has a local destination, the bridge passes the packet on to the second locally connecting network segment.
• If the packet has a remote destination, the bridge forwards the packet on to a third remotely connecting network segment.
• A bridge can connect two network segments that are of different media types. EG: The first and second segments may be UTP but the third segment may be thin coaxial cable.

A bridge helps network traffic congestion but it doesn't reduce traffic because it doesn't get rid of any of the packets like a router might. However, since all packets get passed (whether to the local or remote segment) a bridge can pass on any network protocol, eg TCP/IP or IPX/SPX. This can also make a router faster than a bridge. Of course, since both bridges and routers examine packets, both are slower than a repeater.

For a bridge to distinguish local packets from remote packets, it creates a bridging table with all the different MAC addresses and lists whether the address is local or remote. A bridge that does this automatically is called a transparent or learning bridge. A bridge that makes the LAN manager enter the table values manually is called a static bridge.

In addition to filtering local from remote packets, a bridge may also do more customized filtering. EG: A bridge may stop a particular user from sending to and/or receiving from outside of its local LAN.

The bridges so far performed transparent routing, i.e. the bridge is not aware of what route the packet will take to get to its destination, it just passes packets around. Some bridges, especially from IBM, may do source routing. In source routing the packet knows what path it needs to take to get to its destination and not merely its destination address. This means that a sending station would have do some route discovery first to acquire the route. Once the route is known, the packets it sends to the same address will go more quickly since the bridge will not have to examine each packet, instead the packet will tell the bridge where it needs to go.

## Routers

A router connects two or more network segments at the OSI Network Layer. A router is either:

• A device, with multiple ports, specifically for routing packets.
• A computer, with multiple NICs, that has routing software.

Just as a bridge makes a bridging table out of MAC addresses in the Data Link Layer, a router makes a routing table out of network addresses in the OSI Network Layer. Because network addresses have more information than MAC addresses, a router is more powerful than a bridge.

EG: Not only does a router separate local traffic from trans-LAN traffic like a bridge, but it can also discard packets. If a packet has a usable route in the routing table, then it gets sent, otherwise the packet is discarded. This reduces traffic and traffic congestion. In comparison a bridge reduces traffic congestion but not traffic since it does not delete any packets.

A router is tied to routable protocols like TCP/IP and IPX/SPX. A router cannot use non-routable protocols like NetBEUI because they don't have network address information. Routers must connect LANs using the same routable protocol and cannot pass a mix of protocols along like a bridge can.

Routers are also more extensively used to do a variety of custom filtering than bridges are.

Just as bridges come as either static or learning bridges, routers come as either static or dynamic. Static routers require the network administrator to manually build and update routing tables. Dynamic routers constantly communicate with each other to maintain current information on routes, bottlenecks, and link outages.

## Brouters

A brouter is a combination bridge and router. Like bridges and routers, a brouter connects two or more network segments together.

A brouter first checks incoming data packets to see if they are of a routable protocol. If so then the brouter acts as a router and sends or deletes the packet depending on whether a route for the packet is found. If the packet is a non-routable protocol, then the brouter acts as a bridge and either keeps the packet local or sends it off to a remote LAN.

A brouter maintains both a bridging and routing table. A brouter operates in both the OSI Data Link and Network Layers.

## Gateways

A gateway connects two or more network segments together, where the segments are of dissimilar systems (eg PC with Macintosh) or protocols (eg TCP/IP with IPX/SPX). Neither a bridge or a router can perform these functions.

A gateway is usually a computer with gateway software. A gateway is slower than either a bridge or router because of all the processing it performs.

A gateway usually operates at the OSI Transport Layer or higher.

GeorgeHernandez.comSome rights reserved