Starting from:

$24.99

NET1014 Lab 5–Use a Calculator for Binary Conversions Solution

Objectives
■ Switch among Windows Calculator modes.
■ Use Windows Calculator to convert between decimal and binary.
■ Use Windows Calculator to determine the number of hosts in a network with powers of 2.
Background / Scenario
When working with networking devices, a network technician should understand binary and decimal numbers. In this lab, you will use the Windows Calculator application to convert between these numbering systems. You will also use the “powers” function to determine the number of hosts that can be addressed based on the number of bits available.
Required Resources
■ PC (Windows 10)
Instructions Part 1: Using Windows Calculator
Step 1: Access Windows Calculator and determine mode of operation.
a. Open the Windows Calculator application. Click Start, type Calculator. Select Calculator in the results.
Question:
What mode is the Calculator in?
Scientific

b. Click the Open Navigation icon (≡) located in the upper left-hand corner. The Windows calculator supports different mode of calculations.
Question:
List the five modes for the calculator.


Step 2: Switch between modes.
a. To switch between calculator modes, click the Open Navigation icon (≡) and select desired mode.
b. Practice switching between calculator modes to see which options they provide.
Question:
Briefly explain the function of each mode.
• Basic mode is used to perform basic math calculations.
• Scientific mode is used to perform more advanced math calculations such as logarithm etc..
• Graphing mode is used to trace the graph
• Converter mode is used to convert between different units.



Part 2: Binary System
Step 1: Convert between number systems.
a. Select the Programmer mode calculator.
b. The Programmer calculator supports four numbering systems — HEX (Hexadecimal), DEC (Decimal), OCT (Octal), and BIN (Binary).
Questions:
Which number system is currently active?
Decimal (DEC)


DEC
Which numbers on the number pad are active in Decimal mode?
0 to 9


0 thru 9
c. Click BIN.
Questions:
Which numbers on the number pad are now active?
0 and 1


0 and 1
Why do you think the other numbers are grayed out?
Because binary only has 2 distinct digits which are 0 and 1.


Because the only digits used in binary (Base 2) are 0 and 1
d. Click DEC. Using your mouse, click on the number 1 followed by the number 5 on the number pad. The decimal number 15 has now been entered.
e. Now click BIN.
Question:
What happened to the number 15 listed in the textbox at the top of the window?
Number switches to 1111.

It converted the decimal number 15 to four binary 1 digits (1111)
f. Enter the number 220 and select BIN. Question:
What is the binary equivalent of 220?
11011100

11011100
g. Clear the binary value representing 220 in the window. From Binary mode, type in the following binary number: 11001100. Select the DEC.
Question:
What is the decimal equivalent to the binary number of 11001100?
204

204
Step 2: Practice the conversion between binary and decimal numbering system.
Questions:


Part 3: Network Addresses
Step 1: Convert host IP addresses.
a. Computer hosts usually have two addresses, an Internet Protocol (IP) address and an Ethernet Media Access Control (MAC) address. For the benefit of humans, the IP address is normally represented in dotted decimal notation, such as 192.168.10.2.
Each of the decimal octets in the address or a mask can be converted to 8 binary bits. Remember that the computer only understands binary bits.
Question:
If all 4 octets were converted to binary, how many bits would there be? 32 bits


IP address is 32 bits, 4x8
b. IP addresses are normally shown with four decimal numbers ranging from 0 to 255 and separated by a period.
Question:
Convert the 4 parts of the IP address 192.168.10.2 to binary.

Step 2: Convert host IP subnet masks.
Subnet masks, such as 255.255.255.0, are also represented as dotted decimal. A subnet mask will always consist of four 8-bit octets, each one represented as a decimal number. With the exception of decimal 0 (all 8 binary zeros) and decimal 255 (all 8 binary ones), each octet will have some number of ones on the left and some number of zeros on the right.
Questions:
Convert the 8 possible decimal subnet octet values to binary.


Step 3: Manipulate powers of 2 to determine the number of hosts on a network.
a. Binary numbers use two digits, 0 and 1. When you calculate how many hosts can be on a subnetwork, you use powers of two because binary is being used. As an example, we have a subnet mask that leaves six bits in the host portion of the IP address. In this case, the number of hosts on that network is 2 to the 6th power minus 2 (because you need a number to represent the network and a number that can be used to reach all the hosts—the broadcast address). The number 2 is always used because we are working in binary. The number 6 is the number of bits that are used for the host bits.
b. Change the calculator view to Scientific mode. Input the number 2. Select the xy key on the calculator, the key which raises a number to a power. Input the number 6. To complete the operation, click on the = key, press Enter on the keyboard, or press the = key on the keyboard. The number 64 appears in the output. To subtract two, click on the minus (-) key and then the 2 key followed by the = key. The number 62 appears in the output. This means 62 hosts could be utilized.
Questions:
Using the previously described process, determine the number of hosts if the following number of bits are used for host bits.

Using a similar technique as learned previously, determine what 10 to the 4th power equals.
10000


10000
c. Close the Windows Calculator application. Reflection
List one other thing for which you might use the Windows Calculator scientific mode. It does not have to be related to networking.

Answers will vary. As an example, the scientific mode can be used for calculating the angles
and length of a triangle for engineering problems.

a. Within the Router IP Settings section, change the IP address to: 192.168.5.1.
b. Scroll to the bottom of the page and click Save Settings.
c. If it is done correctly, the web page will display an error message. Close the web browser.
66 Networking Essentials Lab Manual

address information from the wireless router.
e. Open the web browser and enter the IP address 192.168.5.1 in the URL field. When prompted, enter the username admin and password admin.
Part 4: Change the Default DHCP Range of Addresses
a. Notice the DHCP Server Start IP Address is updated to the same network as the Router IP.
b. Change the Starting IP Address from 192.168.5.100 to 192.168.5.126.
c. Change the Maximum Number of Users to 75.
d. Scroll to the bottom of the page and click Save Settings. Close the web browser.
f. Select Command Prompt. Enter ipconfig. Question:
Record the IP address for PC0:

192.168.5.126
Part 5: Enable DHCP on the Other PCs
a. Click PC1.
b. Select the Desktop tab.
c. Select IP Configuration.
d. Click DHCP. Question:
Record the IP address for PC1:

192.168.5.127
Chapter 9: Dynamic Addressing with DHCP 67
e. Close the configuration window.
f. Enable DHCP on PC2 following the steps for PC1.
Part 6: Verify Connectivity
a. Click PC2 and select the Desktop tab.
b. Select Command Prompt.
c. Enter ipconfig at the prompt to view the IP configuration.
d. At the prompt, enter ping 192.168.5.1 to ping the wireless router.
e. Enter ping 192.168.5.126 to ping PC0 at the prompt.

f. At the prompt, enter ping 192.168.5.127 to ping PC1.
g. The pings to all devices should be successful.
Question:
Are these private or public addresses?

Private IP address

d. Close the wireless router configuration window.
Part 3: Connect 3 PCs to the Wireless Router
a. Add 3 more PCs and connect them to the wireless router with straight-through cables. Wait for all link lights to turn green before moving on to the next step or click Fast Forward.
b. On each PC, click Desktop. Select IP Configuration. Click DHCP to enable each device to receive an IP address via the DHCP on the wireless router. Close the IP Configuration window when done.
c. Click Command Prompt to verify each device IP configuration using the ipconfig /all command.

Note: These devices will receive a private address. Private addresses are not able to cross the Internet; therefore, NAT translation must occur.

Part 4: View NAT Translation Across the Wireless Router
a. Enter Simulation Mode by clicking the Simulation tab in the lower right-hand corner. The Simulation tab is located next to the Realtime tab and has a stopwatch symbol.
b. View traffic by creating a Complex PDU in Simulation Mode:
1) From the Simulation Panel, click Show All/None to change visible events to none. Now click Edit Filters and under the Misc tab, checkmark the boxes for TCP and HTTP. Close the window when done.
2) Add a Complex PDU by clicking on the opened envelope located in upper menu.
3) Click one of the PCs to specify it as the source.
c. Specify the Complex PDU settings by changing the following within the complex PDU window:
1) Under PDU Settings > Select Application should be set to: HTTP.
2) Click ciscolearn.nat.com server to specify it as the destination device.
Chapter 10: IPv4 and IPv6 Address Management 71

3) For the Source Port, enter 1000.
4) Under Simulation Settings, select Periodic. Enter 120 seconds for the Interval. 5) Click Create PDU in the Create Complex PDU window.
d. Double-click the simulation panel to unlock it from the PT window. This enables you to move the simulation panel to view the entire network topology.
e. Observe the traffic flow by clicking Play in the simulation panel. Speed up the animation by sliding the play control slider to the right.

Note: Click View Previous Events when the Buffer Full message is displayed.



Part 5: View the Header Information of the Packets that Traveled Across the Network
a. Examine the headers of the packets sent between a PC and the web server.
1) In the Simulation Panel, double click the 3rd line down in the event list. This displays an envelope in the work area that represents that line.
2) Click the envelope in the work area window to view the packet and header information.
b. Click the Inbound PDU details tab. Examine the packet information for the source (SRC) IP address and destination IP address.
c. Click the Outbound PDU details tab. Examine the packet information for the source (SRC) IP address and destination IP address. Notice the change in SRC IP address.
d. Click through other event lines to view those headers throughout the process.
e. When finished, click Check Results to check your work.

More products