IP_Addressing_HW

.docx

School

California State University, Northridge *

*We aren’t endorsed by this school

Course

312

Subject

Computer Science

Date

Apr 3, 2024

Type

docx

Pages

7

Uploaded by LieutenantSnow6770

Report
IS 312 Network Addressing Homework Problem 1 (78.25 to Binary) 78 At 128-column: Does 78 contain 128? No, put 0 in the 128-column; 78 - 0 = 78 At 64-Column: Does 78 contain 64? Yes, put 1 in the 64-column; 78 - 64 = 14 At 32-column: Does 14 contain 32? No, put 0 in the 32-column; 14 - 0 = 14 At 16-column: Does 14 contain 16? No, put 0 in the 16-column; 14 - 0 = 14 At 8-Column: Does 14 contain 8? Yes, put 1 in the 8-column; 14 - 8 = 6 At 4-Column: Does 6 contain 4? Yes, put 1 in the 4-column; 6 - 4 = 2 At 2-Column: Does 2 contain 2? Yes, put 1 in the 2-column; 2 - 2 = 0 No value left for 1-column, so 0 is put in this column. 78 in Binary: 0100 1110
25 At 128-column: Does 25 contain 128? No, put 0 in the 128-column; 25 - 0 = 25 At 64-column: Does 25 contain 64? No, put 0 in the 64-column; 25 - 0 = 25 At 32-column: Does 25 contain 32? No, put 0 in the 32-column; 25 - 0 = 25 At 16-Column: Does 25 contain 16? Yes, put 1 in the 16-column; 25 - 16 = 9 At 8-Column: Does 9 contain 8? Yes, put 1 in the 8-column; 9 - 8 = 1 At 4-column: Does 1 contain 4? No, put 0 in the 4-column; 1 - 0 = 1 At 2-column: Does 1 contain 2? No, put 0 in the 2-column; 1 - 0 = 1 1 is left, so 1 is put in the 1-column. 25 in Binary: 0001 1001 Column 128 64 32 16 8 4 2 1 Octet 1 (78) 0 1 0 0 1 1 1 0 Octet 2 (25) 0 0 0 1 1 0 0 1
Problem 2 ( 122.65.44.13 to Binary ) 122 At 128-column: Does 122 contain 128? No, put 0 in the 128-column; 122 - 0 = 122 At 64-Column: Does 122 contain 64? Yes, put 1 in the 64-column; 122 - 64 = 58 At 32-Column: Does 58 contain 32? Yes, put 1 in the 32-column; 58 - 32 = 26 At 16-Column: Does 26 contain 16? Yes, put 1 in the 16-column; 26 - 16 = 10 At 8-Column: Does 10 contain 8? Yes, put 1 in the 8-column; 10 - 8 = 2 At 4-column: Does 2 contain 4? No, put 0 in the 4-column; 2 - 0 = 2 At 2-Column: Does 2 contain 2? Yes, put 1 in the 2-column; 2 - 2 = 0 No value left for 1-column, so 0 is put in this column. 65 At 128-column: Does 65 contain 128?
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help