Professional Documents
Culture Documents
A network consists of host devices such as computers, mobile devices, and printers that are connected
by networking devices such as switches and routers. The network enables the devices to communicate
with one another and share data.
In this diagram, data from the student computer to the instructor computer travels through the switch to
the router (FastEthernet Interface 1/0), then to the next switch (FastEthernet Interface 0/0), and finally to
the instructor computer.
As you proceed through this lab, you will learn the answers to the following questions:
Office Network
The printer cannot connect to the network because it does not have a Network Interface Card (NIC) card.
Each of your computers has a NIC card and so should your printer.
NIC cards vary in size and appearance, and may look different from what is shown here. This network
card has a Registered Jack 45 port (RJ-45) that you can connect to a wired network with an Ethernet
cable. There are many types of Ethernet cables, but they all have male connectors that can plug into an
RJ-45 port.
Ethernet Cable
Each NIC card has a unique Media Access Control (MAC) address that identifies the physical device,
also known as a physical address. The MAC address is printed on the card and usually cannot be
changed. A MAC address is six bytes long, in hexadecimal format. The first three bytes are the vendor ID,
and the last three bytes are the NIC ID.
MAC Address
A NIC card also has a Internet Protocol Address (IPv4) address. You can configure a static address, or
the network card can get a dynamically-assigned address from a DHCP service on the network. An IP
address consists of four values, called octets, that range from 0 to 255 and are separated from each other
by dots. An IP address must be unique on the network.
IPv4 Address
In the use case described at the beginning, you will need to replace the printer with one that has a NIC
card. You connect the new printer's RJ-45 port to the network hub with an Ethernet cable. After
completing any additional configuration tasks required by your hardware, your computers will be able to
print to the networked printer.
The student computer needs to know the IP address of the instructor's computer. In this example, the
IPv4 address of the instructor's computer is 172.16.16.1 and the address of the student computer is
172.16.254.1. Because the instructor's computer is on another subnet, the student computer will send the
message request to its default gateway IP, belonging to the router. The network switch and router
complete the following processes to send the data.
1. Process One: MAC Address table: The switch receives the message request and looks in
its MAC Address Table for the MAC address associated with the router IP. If the switch locates
the MAC address, it sends the student message to the port connected to the router for further
processing. If the switch does not have the MAC address in its cache, it floods the request to all
ports.
2. Process Two: ARP Cache: The router receives the message request and looks in its ARP
cache for the MAC address associated with IP 172.16.16.1. If the router locates the MAC address
and other identifying information, it sends the student message to the instructor computer. If the
router does not have the MAC address in its cache, it initiates the next process.
3. Process Three: ARP request: The router uses a protocol called Address Resolution Protocol
(ARP) to broadcast an ARP request to look for the IP address 172.16.16.1 on all network devices.
If one of the devices has that IP address, the device sends an ARP response that identifies itself
and includes the MAC address. The router then passes the message to that device. However, if
no devices connected to that router have a matching IP address, the router will drop the request.
4. Process Four: MAC Address table The switch receives the message request from the router
and looks in its MAC Address Table for the MAC address associated with the instructor's
computer. If the switch locates the MAC address, it sends the student message to the port
connected to the computer. If the switch does not have the MAC address in its cache, it floods the
request to all ports.
Revisiting the Step 2 scenario: switch or hub
Step 2 described an office network in which computers and a printer were connected by a switch or a
hub. This simple network does not include a router, but may connect the devices via a switch or a hub.
Office Network
In the switch scenario, a computer must be able to identify the IP address of the printer. Because there is
no router in this network, the IPv4 addresses for all devices must be on the same network segment so
that they can find each other. To be "on the same segment" means that an IPv4 address can be found
without the need to route to another network segment.
In this example, the IPv4 address of the printer is 172.16.254.5 and the user's computer's IPv4 address is
172.16.254.1. When the user attempts to send data to the printer, the devices perform the following
processes.
1. Process One: ARP cache: The user computer looks in its ARP cache for the MAC address
associated with 172.16.254.5. If the computer locates the MAC address and other identifying
information, it sends the data to the MAC address of the printer. If the computer does not have
the MAC address in its table, it initiates the next process.
2. Process Two: ARP request: The user computer sends an ARP Request to look for the IP
address 172.16.254.5. The printer receives the request and sends an ARP Response that
identifies itself and includes the MAC address. The computer sends the data to the MAC address
of the printer.
3. Process Three: MAC Address table: The switch receives the message request and looks in
its MAC Address Table for the MAC address associated with the printer. If the switch locates the
MAC address, it sends the message out the port connected to the printer. If the switch does not
have the MAC address in its cache, it floods the request to all ports.
A hub, also known as a repeater, is less sophisticated than a switch. It sends, or repeats, all data that it
receives to all devices that are connected to it.
1. Process: Data repetition: The hub receives the data and sends it to every device that is
connected to it. If one of the devices has the matching IP address, it will respond.
Hubs are less efficient than switches, because they do not have an ARP cache and cannot use ARP.
Hubs always broadcast data to all ports, which can saturate the network, consume bandwidth, and make
computers reject data.
Many switches have a feature called microsegmentation that provides the same bandwidth to all
connected devices. However, with a hub, all connected devices must share a limited amount of
bandwidth. With microsegmentation, network traffic flows smoothly without collisions.
Finally, switches often provide many configuration options, while hubs offer little or no configuration.
Questions to consider
1. If a switch is more efficient than a hub, why would you buy a hub?
2. Now that you understand ARP, look up RARP and determine when that protocol might be used.
Next Step: Understanding and configuring switches, routers, and interfaces
A switch is a Layer 2 (Data Link Layer) device, so most interfaces do not have IPv4 addresses. Note:
Layers will be covered in another Learning Lab.
RJ45 ports connect to other devices such as a router, switches, and other network hosts (e.g.,
computers and printers). Each port has a configurable software interface.
ARP determines with which device it should exchange data.
Microsegmentation prevents network data collisions and improves traffic flow.
Interfaces can be configured to create networks such as Virtual LANs (VLANs). (This type of
configuration is not covered in this Learning Lab.)
The following diagram shows a sample configuration of a switch's interfaces. Notice that no IP addresses
are present.
Sample Switch Configuration
Router characteristics and behavior
A router is a Layer 3 (Network Layer) device. Most of its interfaces have IPv4 addresses.
RJ45 ports connect to other routers or switches. Each port has a configurable software interface.
A routing table determines which switch or router should receive data. It routes data to the proper
network device.
Interfaces and other features such as routing tables, and network address translation can be
configured by an administrator. Configuration is not covered in this Learning Lab.
The following diagram shows a sample configuration of a router's interfaces. Notice that each interface
has an IP address.
Sample Router Configuration
Interfaces
Each physical RJ45 portal has at least one interface that can be configured. A network engineer can
configure and activate or deactivate an interface via a terminal or command line interface. Configuration
commands can be extensive. They support creating virtual interfaces, trunk ports, virtual LANs, attaching
policies and functionality to various interfaces, and more.
1. Bear in mind that each of the network host devices has interfaces with defined IP addresses as
well.
A Software Defined Network (SDN) uses networking software to configure the network. SDN adds new
features and protocols to network devices. These features and protocols enable third-party applications to
dynamically configure the devices and define how the devices process data.
On a network device, data enters and leaves through the data plane. The decisions of what to do with the
data are made on the control plane. Before SDN, these two planes essentially functioned as one. SDN
separated the planes to enable completion of network configuration and decisions through a remote
control plane.
Many newer APIs are based the Representational State Transfer (REST) protocol, which is designed to
simplify function calls. If you are not familiar with REST, the Coding 101 REST Basics Learning Lab is a
good introduction.
With the implementation of SDN, Cisco and several other companies have created new technologies,
such as SDN controllers with APIs that developers can use to dynamically configure and change the
network. A few of these controllers are Cisco DNA and OpenDaylight. You can learn more about these
controllers via the DevNet Learning Labs.
Questions to Consider
What network configuration would you want to automate using SDN?
What features of REST make it simple to use?