{"id":1113,"date":"2020-08-25T20:00:34","date_gmt":"2020-08-25T21:00:34","guid":{"rendered":"http:\/\/www.linux-tutorial.info\/?page_id=1113"},"modified":"2020-08-25T20:00:34","modified_gmt":"2020-08-25T21:00:34","slug":"network-hardware","status":"publish","type":"page","link":"http:\/\/www.linux-tutorial.info\/?page_id=1113","title":{"rendered":"Network Hardware"},"content":{"rendered":"\n<p><br>The saying that the chain is only as strong as it&#8217;s weakest link definitely<br>applies to the network.<br>For a network operating system<br>like Linux, the<br>network hardware can become a deciding factor in terms of how well it performs<br>(or at least how the performance is perceived). It is therefore essential that<br>your network<br>hardware can not only handle the load now, but also as you network<br>grows.<\/p>\n\n\n\n<p><br>One of the problems I encountered when researching this material is that<br>there is much material available on so many different products. In addition,<br>networking covers such a wide range of products, you could write an entire book<br>just on the networking aspects. In fact, there is a number of good books that<br>do just that.<\/p>\n\n\n\n<p><br>Since I cannot talk about every aspect, I decided that I would limit my coverage<br>to the network interface card<br>(NIC) which is the first piece of hardware in the long journey between<br>workstation and server.<br>In addition, the most common pieces of<br>hardware on this journey are routers, bridges, hubs and switches (if you have<br>a twisted pair network).<\/p>\n\n\n\n<p><br>As its name implies a router<br>routes the traffic along the network. However,<br>it more than just deciding what path to take. Instead, modern routers have the<br>ability to determine if the packet<br>should be sent at all. This can be determined<br>by which port as well as which machine is to send or receive the packet.<br>For example, it is common to have a router that only allows connections to a specific<br>machine using only the HTTP<br>or SMTP<br>(email) protocols. Other protocols or even<br>these protocols to other machines are blocked. This is the basic functionality<br>of a firewall.<\/p>\n\n\n\n<p><br>Typically, routers are a connection between two separate<br>networks. Depending on the router<br>itself, you could have several different<br>networks connected to the same router.<br>In fact, it is possible to have different<br>kinds of physical networks connected to the routers, such as having both serial (to connect<br>to modems, for example), twisted pair and optical.<\/p>\n\n\n\n<p><br>A hub is often called a repeater, because it serves as a<br>hub the network<br>cables as well as &#8220;repeats&#8221; the signal,<br>allowing you to transmit<br>over greater distances. A hub is needed when you are using twisted pair cables<br>and every node (client and server) must be connected to a hub. Since a hub sits<br>at the bottom of the protocol<br>stack,<br>it transmits every type of packet.<\/p>\n\n\n\n<p><br>Typically, hubs are used to organize the nodes on your network<br>into physical groups. However, they do not perform any logical functions, such as determining<br>routes to take (that&#8217;s what a router<br>does). Despite this, most hubs are capable of doing collision detection.<\/p>\n\n\n\n<p><br>A modification of a hub is a bridge.<br>Bridges allow<br>you to physically separate network<br>segments and can extend the length of your<br>cables. The difference lies in the fact that the bridge<br>determines if a packet<br>is intended for a machine on the same segment<br>or not. If it is, it can be<br>ignored and not passed through to other segments.<\/p>\n\n\n\n<p><br>The key lies in what is<br>called a collision domain.<br>In essence, this is the set of nodes that send out<br>packets, which collide with each other. The more collisions you have, the worse<br>your network<br>performance because it means you have more network traffic and<br>other machines need to wait. By grouping machines into groups that communicate<br>with each other, you reduce the collisions with unrelated machines.<\/p>\n\n\n\n<p><br>Because bridges block the packets for the local collision domain,<br>each domain has fewer<br>collisions. Keep in mind that this only works when there is a lot of traffic<br>between the nodes, such as in a work group. If you have a strict client-server<br>model, a bridge may not bring you much advantage.<\/p>\n\n\n\n<p><br>Another way of<br>significantly reducing collisions is using a switch. The difference is that the<br>switch analyzes packets<br>to determine the destination and makes a virtual<br>connection between the two ports, thus reducing the number of collisions. Using<br>the store-and-forward method, packets are stored within the switch before being<br>sent along. The cut-through method reads just the header<br>to determine the destination.<\/p>\n\n\n\n<p><br>An important aspect to look at is obviously the transfer speed<br>of the card. One common problem I have seen in companies without a dedicated IT<br>organization (as in some cases with one) is forgetting the saying about the<br>weakest link. This happens when they buy 10Mbit cards for their workstations (or<br>are perhaps using older models), but install a 100Mbit card in their server. The<br>problem is that the server can only send at 10Mbit, because that&#8217;s what the<br>clients can handle.<\/p>\n\n\n\n<p><br>As we discussed previously, the two most common Ethernet<br>types are twisted pair and thin-wire. Traditional Ethernet<br>was limited to only<br>10Mbit and has been essentially replaced by FastEthernet, which can handle<br>100Mbits. The problem is that you may not be able to use other existing network<br>components such as cables if you were using thin-wire. The reason is simply that<br>thin-wire is unable to transmit at the higher speed. On the other hand twisted<br>pair can handle it.<\/p>\n\n\n\n<p><br>One place this is commonly noticed is the connectors on<br>the network<br>cards themselves. You will often find many cards designated 10\/100<br>or something in their name. As you might guess, this indicates they can handle<br>either 10 or 100Mbits, depending on the speed of the hub to which they are<br>connected. I have seen some cards that require you to set the speed either in<br>software or hardware.<\/p>\n\n\n\n<p><br>However, my 3Com cards detect the speed the hub uses<br>and adjust automatically. In my office at home, I have three computers all<br>hooked through a 10Mbit hub. Since very little data is going through the<br>network, this was sufficient as well as less expensive. Even so, my 3Com cards<br>are all 10\/100 and adjust to the slower speed. When I upgrade to a faster HUB, I<br>do not need to replace the cards or do any configuration. I just plug the cables<br>into the new hub and go.<\/p>\n\n\n\n<p><br>This may sound like a minor point and it is for my<br>three node network. However, at work, with hundreds of nodes<br>it becomes a major<br>issue. Imagine having to change the hardware settings on hundreds of PCs. That<br>means opening the cases, pulling out the card, setting the jumper, putting the<br>card back in, and then closing the case. Granted most newer cards are plug and<br>play, but are you sure yours is.<\/p>\n\n\n\n<p><br>Some cards like my 3Com Fast EtherLink XL<br>3C905B-COMBO have connectors for thin-wire, thick-wire and twisted pair, only the<br>twisted pair connector allows you to use the 100Mb connector. Note also that<br>most of the 3Com Fast EtherLink 10\/100 cards, just have the twisted-pair<br>connector.<\/p>\n\n\n\n<p><br>Keep in mind that even if you do use the twisted pair connector,<br>you are limited by the speed of the other hardware. I chose a 10Mbit hub because<br>I did not want or need to spend the extra money for a 100Mbit hub. Even in a<br>business, you may not need more. If all of your applications are installed<br>locally, with only the data on the server, you probably won&#8217;t even come close to<br>needing even the 10Mbit. This is especially true if you break down your network<br>into sub-nets, which are separated by routers or you are using switches.<\/p>\n\n\n\n<p><br>However, speed is not the only<br>consideration, particularly in a server. Take the analogy of a 100 mile race<br>between a Ferrari and a Geo Metro. The winner is fairly obvious, unless you take<br>a Ferrari loaded with bricks and has to refuel every mile. In some cases, you<br>might have a Ferrari network<br>card which is slowed down by other things.<\/p>\n\n\n\n<p><br>There<br>are several things your card can do, such as what my 3Com 3C980-TX Fast<br>EtherLink Server NIC does. The first is the ability to combine multiple cards<br>into a single virtual interface. One card is processing the packet<br>while the other is receiving, for example. The load is balanced between the cards to<br>ensure that one is not overburdened.<\/p>\n\n\n\n<p><br>The next feature is what 3Com calls<br>self-healing drivers. Here the card is monitored and action is taken based on<br>what it finds. One simple example would be shutting down one card in a virtual<br>set if it appeared to be causing to many errors.<\/p>\n\n\n\n<p><br>Throughput (the true measure<br>of speed) is increased by using 3Com&#8217;s Parallel Tasking. Traditionally, network<br>cards transfer data between the card and memory in one direction at a time. 3Com<br>cards can transmit in both directions. In addition, there was a previous<br>limitation with PCI<br>cards that could transmit a maximum of 64 bytes at once. The<br>newest 3Com cards have increased this to 1514, the maximum for a standard Ethernet<br>packet.<br>This meant that with previous cards, it might need up to 24 bus cycles<br>to transmit the data, the 3Com card can do it in a single cycle.<\/p>\n\n\n\n<p><br>A moment<br>ago, I mentioned cases where people would install 100Mbit cards in their server<br>and 10Mbit cards in their clients. In those cases, they actually had 10 Mbit<br>hubs, so the problem was as much an issue with the hub as with the speed of the<br>client cards. In some cases, it actually makes sense to configure your system<br>like that, but you need a hub that can handle the job.<\/p>\n\n\n\n<p><br>One solution to the problem is<br>the 3Com SuperStack II Dual Speed Hub. The key is part of the name: &#8220;dual<br>speed.&#8221;. As its name implies it can actually handle both 10Mbit and 100Mbit<br>connections. It is able to sense the speed on the port and adjust itself for<br>that port. This means that the connection between the server could be running at<br>100Mbit, with the connection between the hub and clients running at 10 Mbit (or<br>maybe just some of the clients).<\/p>\n\n\n\n<p><br>This ends up increasing overall performance<br>since the hub can operate in duplex mode. That is, it can send and receive at<br>the same time. 10 Mbit data is being sent to the hub as it is sending 100Mbit<br>data to the server.<\/p>\n\n\n\n<p><br>Some vendors try to save a little by making hubs that<br>&#8220;pretend&#8221; to run at both 10 and 100Mbits. This is done by having a single port<br>that can handle the 100Mbits, which is typically connected to the servers.<br>However, this means that if you ever upgrade a single client,<br>you have to upgrade the hub as well. The 3Com solutions automatically make the change for<br>you.<\/p>\n\n\n\n<p><br>One thing to keep in mind here is the cabling. FastEthernet requires<br>what is referred to as category 5 cabling. However, 10Mbit can be handled by<br>category 3 or 4. Although you can certainly connect your network<br>using category 3 cable,<br>the number of errors increases dramatically. Packets need to get resend and it<br>can actually turn out to be slower than running at 10Mbit. The 3Com SuperStack<br>addresses this issue by monitoring the frequency and type of errors. Should the<br>errors be too high, it will automatically lower the speed to 10Mbit.<\/p>\n\n\n\n<p><br>In<br>principle, routers have the same limitations as hubs, in that they can limit,<br>well as are limited by, the other network<br>components. However there are several features that we ought to take a look at.<\/p>\n\n\n\n<p><br>One feature provided by 3Com&#8217;s<br>NETBuilder routers is what is referred to as bandwidth<br>grooming. Among other things, this allows you to prioritize the traffic on<br>your network, based on a<br>number of different criteria. For example, you define higher priority to<br>specific protocols or specific ports (or both). This is useful when defining<br>priority based on a specific application,<br>type of connection and many other cases.<\/p>\n\n\n\n<p><br>In addition, the NETBuilder series features dual processors. While one<br>processor is handling tradition routing functions such processing the packets,<br>the second processor concerns itself with the &#8220;grooming&#8221; functions, which<br>greatly increases the overall performance.<\/p>\n\n\n\n<p><br>There is also the issue of<br>security. Many people think of router<br>security only in terms of connections to<br>the Internet. However, some companies are concerned with internal<br>security as<br>well. For example, it is possible with the NETBuilder routers to disallow<br>connections from the warehouse to the main server, except for specifically<br>defined ports. This might give them access to the main database<br>application, but<br>prevent them from poking around the file system.<\/p>\n\n\n\n<p><br>One thing to keep in mind is<br>that there are a number of differences between the behavior of a Wide Area<br>Network (WAN) and a Local Area Network (LAN). In my opinion, the two most<br>significant aspects are the fact that a WAN has slower speeds and the routing of<br>the packets is the dominant behavior as compared to fast speeds and switching<br>for the LAN. Even if your internal network<br>only runs at 10Mbps, it is still 160<br>times faster than a typical 64Kbps WAN connection.<\/p>\n\n\n\n<p><br>The result of all of this<br>is that you typically have different kinds of equipment for both. In addition,<br>because of the slower speeds, a WAN has less bandwidth<br>and your are &#8220;encouraged&#8221;<br>to reduce unnecessary traffic. This is where routing comes in. You want to<br>limit unnecessary and even unwanted traffic. For example, we talked above<br>about the ability of 3Com routers to direct traffic based on specific ports. In<br>some cases, you may want to turn off specific ports to certain network<br>segments<br>to reduce the traffic, although other ports (and therefore other protocols) are<br>allowed. One common thing is to restrict broadcast traffic, which the 3Com<br>routers can do.<\/p>\n\n\n\n<p><br>Another thing we discussed was the ability of the 3Com<br>routers to prioritize the packets. In most cases, applications always use the same range<br>of ports to access other machines. For example, an Oracle database is usually accessed using port<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"1521\"><li>To ensure proper response times, port 1521 could be given priority<br>over something like file data transfer. Files going across the WAN can be typically given<br>lower priority than the database application. The 3Com<br>router<br>thus allows you to manage the performance on each network<br>segment.<\/li><\/ol>\n\n\n\n<p><br>A off-shoot of this is &#8220;protocol reservation.&#8221; As its name implies, a certain portion<br>of the bandwidth is reserved for specific protocols. That means that no matter what<br>other traffic is on the link, the reserved portion will always be available for that<br>protocol.<\/p>\n\n\n\n<p><br>Another thing to consider is how the routing information is transferred<br>between routers. Many routers use what is called &#8220;distance vector routing&#8221; where<br>the router can determine the shortest path between two nodes.<br>However, you may not want the router to choose the shortest path,<br>since &#8220;short&#8221; means the number of nodes it goes through (or hops) and not the length<br>of the cable or the speed. Often such routers will exchange information even though<br>the network has not changed. In essence, this wastes<br>bandwidth.<\/p>\n\n\n\n<p><br>Instead, to limit bandwidth<br>you want all packets going to a particular subnet<br>to always use a pre-defined route. This is a capability of &#8220;link state&#8221; routing.<br>Although this requires<br>more computational power than distance vector routing, it also requires a lot<br>less bandwidth.<br>Since routes are calculated, less data is transferred, so when a link goes down,<br>the updated information reaches the effected routers more quickly and the new<br>route in effect more quickly as the computation is faster<br>than thenetwork.<\/p>\n\n\n\n<p><br>Another core aspect of the vendor your choose is the after<br>sales service. For most companies, the primary concern is the warranty. That is,<br>what happens when a card malfunctions. Most warranties last a year, which is<br>normally long enough to identify any manufacturing defects. However, even within<br>the warranty period, you will generally find that you will either have to return<br>the card to the reseller or return it directly to the manufacturer. Therefore,<br>it is a good idea to have enough spares on hard. Although you might be able to<br>work out an arrangement with either the vendor or reseller to send you a replacement<br>before they receive the defective card, you are still out of work for a couple<br>days, so spares are still a good idea.<\/p>\n\n\n\n<p>Thin Wire versus Twisted Pair<\/p>\n\n\n\n<p><br>The fact that twisted pair cabling is less expensive than thin wire is deceiving. For a given<br>length of cable, the cable itself and the connectors are cheaper. However, you must keep in<br>mind that there will be a cable from the hub to each node, including the server. In contrast,<br>thin wire<br>cables are laid between the nodes, forming a &#8220;loop&#8221;.<\/p>\n\n\n\n<p><br>Let&#8217;s take an example with a server and four computers, spaced<br>evenly every ten feet. You could get away with just forty feet of thin wire cable, as you need<br>ten feet from the server to the first machine, another ten feet from the first to the second,<br>and so on.<\/p>\n\n\n\n<p><br>With twisted pair, let&#8217;s assume that the hub is right next to the server, so the cable length<br>can be ignored. You need ten feet of cable to the first computer, but twenty feet to the<br>second, thirty feet to the third, and forty feet to the fourth. This means a total of 100<br>feet. The more computers you have the greater the difference in cable lengths.<br><\/p>\n\n\n\n<p><br>In addition, there is more work.<br>You cannot just move from computer to computer, adding cable as you go. You lay the cable from the<br>hub to the first computer, then go back to the hub. You lay the cable from the hub to the<br>second computer, then go back to the hub, and so forth.<\/p>\n\n\n\n<p><br>One the other hand, twisted pair is a lot safer. As I mentioned,<br>if the connection to one computer goes down, the rest can still work.<\/p>\n\n\n\n<p>Well enough for the theory. Reality today is a lot different than it was when both of these technologies where fairly young. Today, most installations have switched to twisted pair and every new installation I know does so as well. For the system administrator or network technician any perceived disadvantage of twisted pair is easily countered by the advantages.<\/p>\n\n\n\n<p>The problems that thin-wire cabling has, such the &#8220;messy&#8221; physical connections at the back, the &#8220;loop&#8221; nature of the cabling, plus the slower speeds make thin-wire far less attractive than five years ago. Because of the loop, a problem anywhere means problems for everyone. This goes beyond finding connection breaks. For example, if one of the NICs has a problem and is causing interference on the network, all nodes are affected. Added to this is the fact \ufffdthat it is often difficult to determine which NIC is causing the problem. Each node needs to be examined individually, which means much higher costs.<\/p>\n\n\n\n<p>On the other hand with twisted pair, the cabling is easier to manage, problems are easier to \ufffdtroubleshoot and the system is generally easier to manage. As an example, take the company where I currently work. We did some renovations on an existing building, but insisted on double floor. Within the floor we laid cabling for both the telephone and the LAN. At several places in each office we installed \ufffda &#8220;well&#8221;, with receptacles for the telephone and LAN. Each was then connected to a central location, which then provided the connection to other areas of the company. For our LAN, each node is connected to a 100 Mbit switch which is then connected via optical fiber to other parts of the building and even to another office across town.<\/p>\n\n\n\n<p>For the network technicians, this means all they need to do is plug one end of the cable into the back of the computer and the other into a plug in the nearest floor well. Therefore, they don&#8217;t need to worry about ensuring the loop is complete. Just plug and go.<\/p>\n\n\n\n<p>As I mentioned, all of the cables lead to a central location, which is initially just a patch panel. From here the connection is made to the switch. Since it is the physical connection from the patch panel to a switch that determines which segment a computer is on, we can easily patch computers from one segment to another without re-wiring. This allows you to have completely seperate networks within the same room. For example, my work station needs access to customer machines, so I am on one segment. The test machines do not need that access so they are on a different segment. However, they not only can be in the same room, but can be plugged into connections in the same floor well.<\/p>\n\n\n\n<p>Another nice thing about this is that the physical connections for both the phone and LAN are the same. Although physically seperate within the patch cabinet, the wires are the same, the patch cables are the same and so forth. Since the LAN and phone patch panels are physically seperate within the cabinet, it is much each for our network technicians.<\/p>\n\n\n\n<p>Because of the explosion in computer use during the past few years, you will be able to find many motherboards with a NIC built-in. Needless to say, this will be twisted-pair and not thin-wire. These NICs, as well as new ones that you can buy seperately typically do autoswitching duplex 10\/100 Mbit.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The saying that the chain is only as strong as it&#8217;s weakest link definitelyapplies to the network.For a network operating systemlike Linux, thenetwork hardware can become a deciding factor in terms of how well it performs(or at least how the &hellip; <a href=\"http:\/\/www.linux-tutorial.info\/?page_id=1113\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1113","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/pages\/1113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1113"}],"version-history":[{"count":1,"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/pages\/1113\/revisions"}],"predecessor-version":[{"id":1114,"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/pages\/1113\/revisions\/1114"}],"wp:attachment":[{"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}