3 Connecting To The Network 3.1 Introduction To Network 3.1.1 What Is Network?
3 Connecting To The Network 3.1 Introduction To Network 3.1.1 What Is Network?
There are many types of networks that provide us with different kinds of services. In the course of a day, a person might make a phone call, watch a television show, listen to the radio, look up something on the Internet, or even play a video game with someone in another country. All of these activities depend on robust, reliable networks. Networks provide the ability to connect people and equipment no matter where they are in the world. People use networks without ever thinking about how they work or what it would be like if the networks did not exist. This picture of the airport illustrates people using networks to share information, use resources and communicate with others. There are multiple types of networks shown in this scene. How many can you find? Communication technology in the 1990s, and before, required separate, dedicated networks for voice, video and computer data communications. Each of these networks required a different type of device in order to access the network. Telephones, televisions, and computers used specific technologies and different dedicated network structures, to communicate. But what if people want to access all of these network services at the same time, possibly using a single device? New technologies create a new kind of network that delivers more than a single type of service. Unlike dedicated networks, these new converged networks are capable of delivering voice, video and data services over the same communication channel or network structure. New products are coming to market that take advantage of the capabilities of converged information networks. People can now watch live video broadcasts on their computers, make a telephone call over the Internet, or search the Internet using a television. Converged networks make this possible. In this course, the term network refers to these new multi-purpose, converged information networks.
Servers are hosts that have software installed that enable them to provide information, like email or web pages, to other hosts on the network. Each service requires separate server software. For example, a host requires web server software in order to provide web services to the network. Clients are computer hosts that have software installed that enable them to request and display the information obtained from the server. An example of client software is a web browser, like Internet Explorer.
A computer with server software can provide services simultaneously to one or many clients. Additionally, a single computer can run multiple types of server software. In a home or small business, it may be necessary for one computer to act as a file server, a web server, and an email server. A single computer can also run multiple types of client software. There must be client software for every service required. With multiple clients installed, a host can connect to multiple servers at the same time. For example, a user can check email and view a web page while instant messaging and listening to Internet radio.
Common language Grammar and sentence structure Speed and timing of delivery
Imagine what would happen if no protocols or rules existed to govern how people communicate with each other. Would you be able to understand them? Are you able to read the paragraph that does not follow commonly accepted protocols? Protocols are specific to the characteristics of the source, channel and destination of the message. The rules used to communicate over one medium, like a telephone call, are not necessarily the same as communication using another medium, such as a letter. Protocols define the details of how the message is transmitted, and delivered. This includes issues of: Message format Message size Timing Encapsulation Encoding Standard message pattern Many of the concepts and rules that make human communication reliable and understandable also apply to computer communication.
Imagine a person watching a sunset and then calling someone else to talk about how beautiful the sunset looks. To communicate the message, the sender must first convert, or encode, their thoughts and perceptions about the sunset into words. The words are spoken into the telephone using the sounds and inflections of spoken language that convey the message. On the other end of the telephone line, the person listening to the description, receives and decodes the sounds in order to visualize the image of the sunset described by the sender. Encoding also occurs in computer communication. Encoding between hosts must be in an appropriate form for the medium. Messages sent across the network are first converted into bits by the sending host. Each bit is encoded into a pattern of sounds, light waves, or electrical impulses depending on the network media over which the bits are transmitted. The destination host receives and decodes the signals in order to interpret the message.
In addition to having the correct format, most personal letters must also be enclosed, or encapsulated, in an envelope for delivery. The envelope has the address of the sender and receiver on it, each located at the proper place on the envelope. If the destination address and formatting are not correct, the letter is not delivered. The process of placing one message format (the letter) inside another message format (the envelope) is called encapsulation. De-encapsulation occurs when the process is reversed by the recipient and the letter is removed from the envelope. A letter writer uses an accepted format to ensure that the letter is delivered and understood by the recipient. In the same way, a message that is sent over a computer network follows specific format rules for it to be delivered and processed. Just as a letter is encapsulated in an envelope for delivery, so computer messages are encapsulated. Each computer message is encapsulated in a specific format, called a frame, before it is sent over the network. A frame acts like an envelope; it provides the address of the intended destination and the address of the source host. The format and contents of a frame are determined by the type of message being sent and the channel over which it is communicated. Messages that are not correctly formatted are not successfully delivered to or processed by the destination host.
The size restrictions of frames require the source host to break a long message into individual pieces that meet both the minimum and maximum size requirements. Each piece is encapsulated in a separate frame with the address information, and is sent over the network. At the receiving host, the messages are de-encapsulated and put back together to be processed and interpreted.
There are also times when the sender of a message needs to be sure that the message is delivered successfully to the destination. In these cases, it is necessary for the recipient to return an acknowledgement to the sender. If no acknowledgement is required, the message pattern is referred to as unacknowledged. Hosts on a network use similar message patterns to communicate. A one-to-one message pattern is referred to as a unicast, meaning that there is only a single destination for the message. When a host needs to send messages using a one-to-many pattern, it is referred to as a multicast. Multicasting is the delivery of the same message to a group of host destinations simultaneously. If all hosts on the network need to receive the message at the same time, a broadcast is used. Broadcasting represents a one-to-all message pattern. Additionally, hosts have requirements for acknowledged versus unacknowledged messages.
12
There is no official local networking standard protocol, but over time, one technology, Ethernet, has become more common than the others. It has become a de facto standard.
The Institute of Electrical and Electronic Engineers, or IEEE (pronounced eye-triple-e), maintains the networking standards, including Ethernet and wireless standards. IEEE committees are responsible for approving and maintaining the standards for connections, media requirements and communications protocols. Each technology standard is assigned a number that refers to the committee that is responsible for approving and maintaining the standard. The committee responsible for the Ethernet standards is 802.3. Since the creation of Ethernet in 1973, standards have evolved for specifying faster and more flexible versions of the technology. This ability for Ethernet to improve over time is one of the main reasons that it has become so popular. Each version of Ethernet has an associated standard. For example, 802.3 100BASE-T represents the 100 Megabit Ethernet using twisted pair cable standards. The standard notation translates as: 100 is the speed in Mbps BASE stands for baseband transmission T stands for the type of cable, in this case, twisted pair. Early versions of Ethernet were relatively slow at 10 Mbps. The latest versions of Ethernet operate at 10 Gigabits per second and faster. Imagine how much faster these new versions are than the original Ethernet networks.
14
15
16
17
18
Core Layer devices typically include very powerful, high-speed switches and routers. The main goal of the Core Layer is to transport data quickly. Hubs, switches, and routers are discussed in more detail in the next two sections.
3.4 Building the Access layer of Ethernet Network 3.4.1 Access Layer
The Access Layer is the most basic level of the network. It is the part of the network in which people gain access to other hosts and to shared files and printers. The Access Layer is composed of host devices, as well as the first line of networking devices to which they are attached. Networking devices enable us to connect many hosts with each other and also provide those hosts access to services offered over the network. Unlike the simple network consisting of two hosts connected by a single cable, in the Access Layer, each host is connected to a networking device. This type of connectivity is shown in the graphic. Within an Ethernet network, each host is able to connect directly to an Access Layer networking device using a point-to-point cable. These cables are manufactured to meet specific Ethernet standards. Each cable is plugged into a host NIC and then into a port on the networking device. There are several types of networking devices that can be used to connect hosts at the Access Layer, including Ethernet hubs and switches.
20
Only one message can be sent through an Ethernet hub at a time. It is possible for two or more hosts connected to a hub to attempt to send a message at the same time. If this happens, the electronic signals that make up the messages collide with each other at the hub. A collision causes the messages to become garbled and unreadable by the hosts. A hub does not decode the messages; therefore it does not detect that the message is garbled and repeats it out all the ports. The area of the network where a host can receive a garbled message resulting from a collision is known as a collision domain. Inside a collision domain, when a host receives a garbled message, it detects that a collision has occurred. Each sending host waits a short amount of time and then attempts to send, or retransmit, the message again. As the number of hosts connected to the hub increases, so does the chance of collisions. More collisions cause more retransmissions. Excessive retransmissions can clog up the network and slow down network traffic. For this reason, it is necessary to limit the size of a collision domain. 21
22
What happens when the switch receives a frame addressed to a new host that is not yet in the MAC address table? If the destination MAC address is not in the table, the switch does not have the necessary information to create an individual circuit. When the switch cannot determine where the destination host is located, it uses a process called flooding to forward the message out to all attached hosts. Each host compares the destination MAC address in the message to its own MAC address, but only the host with the correct destination address processes the message and responds to the sender. How does the MAC address of a new host get into the MAC address table? A switch builds the MAC address table by examining the source MAC address of each frame that is sent between hosts. When a new host sends a message or responds to a flooded message, the switch immediately learns its MAC address and the port to which it is connected. The table is dynamically updated each time a new source MAC address is read by the switch. In this way, a switch quickly learns the MAC addresses of all attached hosts.
Sometimes, it is necessary to connect another networking device, like a hub, to a switch port. This is done to increase the number of hosts that can be connected to the network. When a hub is connected to a switch port, the switch associates the MAC addresses of all hosts connected to that hub with the single port on the switch. Occasionally, one host on the attached hub sends a message to another host attached to the same hub. In this case, the switch receives the frame and checks the table to see where the destination host is located. If both the source and destination hosts are located on the same port, the switch discards the message. When a hub is connected to a switch port, collisions can occur on the hub. The hub forwards to all ports the damaged messages resulting from a collision. The switch receives the garbled message, but, unlike a hub, a switch does not forward the damaged messages caused by collisions. As a result, every switch port creates a separate collision domain. This is a good thing. The fewer hosts contained in a collision domain, the less likely it is that a collision will occur. 23
24
When a host receives a message addressed to the broadcast address, it accepts and processes the message as though the message was addressed directly to it. When a host sends a broadcast message, hubs and switches forward the message to every connected host within the same local network. For this reason, a local network is also referred to as a broadcast domain. If too many hosts are connected to the same broadcast domain, broadcast traffic can become excessive. The number of hosts and the amount of network traffic that can be supported on the local network is limited by the capabilities of the hubs and switches used to connect them. As the network grows and more hosts are added, network traffic, including broadcast traffic, increases. It is often necessary to divide one local network, or broadcast domain, into multiple networks to improve performance.
25
26
27
How does the router determine what path to send the message to get to the destination network? Each port, or interface, on a router connects to a different local network. Every router contains a table of all locally-connected networks and the interfaces that connect to them. These routing tables can also contain information about the routes, or paths, that the router uses to reach other remote networks that are not locally attached. When a router receives a frame, it decodes the frame to get to the packet containing the destination IP address. It matches the address of the destination to all of the networks that are contained in the routing table. If the destination network address is in the table, the 28
router encapsulates the packet in a new frame in order to send it out. It forwards the new frame out of the interface associated with the path, to the destination network. The process of forwarding the packets toward their destination network is called routing. Router interfaces do not forward messages that are addressed to the broadcast MAC address. As a result, local network broadcasts are not sent across routers to other local networks.
29
It is important that the correct default gateway be configured on each host on the local network. If no default gateway is configured in the host TCP/IP settings, or if the wrong default gateway is specified, messages addressed to hosts on remote networks cannot be delivered.
30
A router forwards a frame to one of two places: a directly connected network containing the actual destination host, or to another router on the path to reach the destination host. When a router encapsulates the frame to forward it out of an Ethernet interface, it must include a destination MAC address. This is the MAC address of the actual destination host, if the destination host is part of a network locally connected to the router. If the router must forward the packet to another router, it will use the MAC address of the connected router. Routers obtain these MAC addresses from ARP tables. Each router interface is part of the local network to which it is attached and maintains its own ARP table for that network. The ARP tables contain the MAC addresses and IP addresses of all of the individual hosts on that network.
31
32
3.6 Plan and Connect a local Network 3.6.1 Plan and Document an Ethernet Network
Most local networks are based on Ethernet technology. This technology is both fast and efficient when used in a properly designed and constructed network. The key to installing a good network is planning before the network is actually built. A network plan starts with the gathering of information about how the network will be used. This information includes: The number and type of hosts to be connected to network The applications to be used Sharing and Internet connectivity requirements Security and privacy considerations Reliability and uptime expectations Connectivity requirements including, wired and wireless
3.6.2 Prototypes
Once the network requirements are documented, and the physical and logical topology maps created, the next step in the implementation process is to test the network design. One of the ways to test a network design is to create a working model, or prototype, of the network. Prototyping is essential as networks grow in size and complexity. A prototype allows a network administrator to test whether or not the planned network will operate as 33
expected, before money is spent on equipment and installation. Documentation should be maintained on all aspects of the prototyping process. Various tools and techniques are available for network prototyping; this includes real equipment set up in a lab environment, modeling and simulation tools. Packet Tracer is one example of a simulation and modeling tool that can be used for prototyping.
34
There are low-cost multi-function devices available for home and small business networks that offer integrated routing, switching, wireless and security capabilities. An example of this type of integrated router is a Linksys wireless router. They are simple in design and do not typically have separate components. In the event of a failure, it is not possible to replace any single failed component. As such, they create a single point of failure, and are not optimized for any one function. Another example of an integrated router is the Cisco integrated services router or ISR. The Cisco ISR product family offers a wide range of products, including those designed for small office and home office environments as well as those designed for larger networks. Many of the ISRs offer modularity and have separate components for each function, such as a switch component and a router component. This enables individual components to be added, replaced and upgraded as necessary.
36
3.7.1 Summary
37
38
39
40