i1100 - introduction to computer science · ip address • for example, an ip address of one...

59
Networks Chapter 6 Introduction to Computer Science (I1100) 2017-2018 501

Upload: others

Post on 11-Jul-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

NetworksChapter 6

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

501

Page 2: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Outline• How does Networks and Internet Work ?

• Networking devices

• Physical Network topology

• Types of Network

• Intranets - extranets

• Copper Media

• IP Address

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

502

Page 3: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

How does Networks and Internet Work ?• Most of us know how to use the Internet without actually understanding how it works, sort of like electricity in your home.

• You use it every day but may not forcibly understand the mechanics behind it.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

503

Page 4: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

How does Networks and Internet Work ?• Whenever most people think of the Internet, this is what comes in mind.

• The Internet is not a bubble cloud.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

504

The Internet

Page 5: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

How does Networks and Internet Work ?• This is the Internet: the Internet is like a wire(buried in the ground, fiber optic, copper, satellite, through cellphone networks)

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

505

Page 6: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

How does Networks and Internet Work ?• The Internet is useful: 2 computers connected directly to this wire can communicate.

• A server is a special computer (software) connected directly to the Internet. Web pages are files on that server’s hard drive.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

506

Page 7: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

How does Networks and Internet Work ?• Every server has a unique Internet Protocol address or IP address (just like a postal address).

• IP addresses help computers find each others.

• But since 72.14.205.100 it doesn’t roll off the tongue, we also give names (called domain names)

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

507

72.14.205.100

Google.com

69.63.176.140

Facebook.com

216.27.69.178

Krispykreme.com

Page 8: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

How does Networks and Internet Work ? • The computer at home is

not a server since it’s not connected directly to the Internet. These computers are called CLIENTS.

• They are connected indirectly to the Internet through ISP (Internet Service Provider)

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

508Client

Gmail.com

Live.com

Ogero

(ISP)

Page 9: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

How does Networks and Internet Work ? • Looking at live.com web

pages

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

509Client

Gmail.com

Live.com

Ogero

(ISP)

Page 10: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

How does Networks and Internet Work ?

• 1- Log on to my email account and compose a message

• 2-Click send

• 3-myfreind retrieves the email In

tro

du

ctio

n t

o C

om

pu

ter

Sci

en

ce (

I11

00

) 2

01

7-2

01

8

510Client

Gmail.com

Live.com

Ogero

(ISP)

myfriend

• Send an email to [email protected]

Page 11: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

How does Networks and Internet Work ?• Whenever an email, picture, or webpage travels across the Internet, computers breaks the information into smaller pieces called packets.

• When information reaches its destination, the packets are reassembled in their original order.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

511

Page 12: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

512

Page 13: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Networking Benefits• Linking computers into networks provides benefits in the following areas:

• Information sharing: ability to share information and data quickly and inexpensively. Direction of transmission:

� One-way communication: some flows goes in one-way: e.g., television. Information flows in this case in one direction from the transmitter to the receiver.

� Two-way communication: the information must flow in both directions. In this case there is a dialogue between the two communicating partners. Each partner will be a transmitter and a receiver. E.g., the telephone.

• Hardware and software sharing: ability to reduce the costs drastically by making it possible for several users to share hardware and software simultaneously.

• Centralized administration and support: from just a single location, the network administrator can perform administrative tasks on any computer on the network. Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

513

Page 14: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Networking devicesNIC• NICs are used to physically connect host devices to the network media.

• A NIC is a printed circuit board that fits into the expansion slot of a bus on a computer motherboard.

• NICs are sometimes called network adapters.

• Each NIC has a unique 48-bit Media Access Control (MAC) address burned in to its ROM during manufacture.

• A MAC address is usually shown in hexadecimal format, with each octet separated by a dash or colon, for example: 00-90-47-03-B6-C4.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

514

Page 15: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Networking devicesNIC

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

515

Page 16: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Networking devices

• Network devices are used to extend cable connections, concentrate connections, convert data formats, and manage data transfers.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

516

Page 17: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Networking devicesRepeater

• A repeater is a network device used to regenerate a signal.

• Repeaters regenerate signals that are distorted by transmission loss due to attenuation.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

517

Page 18: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Networking devicesHub

• Hubs take a group of hosts and allow the network to see them as a single unit.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

518

Page 19: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Networking devicesBridge

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

519

• Bridges provide connections between LANs.

• They also check data to determine if it should cross the bridge. This makes each part of the network more efficient.

Page 20: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Networking devicesSwitch

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

520

• Switches determine if data should remain on a LAN and transfer data only to the connection that needs it.

Page 21: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Networking devicesRouter

• Routers have all the capabilities of the other devices.

• Routers can regenerate signals, concentrate multiple connections, convert data transmission formats, and manage data transfers. They can also connect to a WAN, which allows them to connect LANs that are separated by great distances. None of the other devices can provide this type of connection.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

521

Page 22: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Physical Network topology

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

522

Page 23: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Physical Network topology• A bus topology uses a single backbone cable that is terminated at both ends. All the hosts connect directly to this backbone.

• A ring topology connects one host to the next and the last host to the first. This creates a physical ring of cable.

• A star topology connects all cables to a central point.

• An extended star topology links individual stars together by connecting the hubs or switches.

• A hierarchical topology is similar to an extended star. However, instead of linking the hubs or switches together, the system is linked to a computer that controls the traffic on the topology.

• A mesh topology is implemented to provide as much protection as possible from interruption of service. For example, a nuclear power plant might use a mesh topology in the networked control systems. As seen in the graphic, each host has its own connections to all other hosts. Although the Internet has multiple paths to any one location, it does not adopt the full mesh topology.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

523

Page 24: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Logical Network topology• The logical topology of a network determines how the hosts communicate across the medium:

� broadcast : each host sends its data to all other hosts on the network medium. Ethernet works this way.

� token passing: an electronic token is passed sequentially to each host. When a host receives the token, that host can send data on the network. Token Ring and FDDI networks work that way. In

tro

du

ctio

n t

o C

om

pu

ter

Sci

en

ce (

I11

00

) 2

01

7-2

01

8

524

Page 25: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Types of Network• LAN Local Area Network (LAN) : correspond in size to intra-company

networks. They are used to transport digital information within a company.

The typical size is of a few hundred meters.

• Wide Area Network (WAN) : this network is to interconnect over long

distances. These networks are characterized by a low speed compared with

the local networks. The distances can be very important. This can be up to

several dozens kilometers in the case of satellite link. WANs are often built

on transmission media based on the phone network.

• Metropolitan Area Network (MAN) : this type of network is used for the

interconnection of several buildings in the same city. E.g., the case of a

university building. Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

525

Page 26: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Local-area networks (LANs)• A network serving a home, building or campus is considered a Local Area Network (LAN)

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

526

Page 27: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Wide-area networks (WANs)

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

527

Page 28: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Wide-area networks (WANs)• WANs interconnect LANs. WANs make it possible for businesses to communicate across great distances.

• WANs are designed to do the following:

� Operate over a large and geographically separated area

� Allow users to have real-time communication capabilities with other users

� Provide full-time remote resources connected to local services

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

528

Page 29: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Metropolitan-area networks (MANs)

• A MAN usually consists of two or more LANs in a common geographic area.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

529

Page 30: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Intranets and extranets• Intranets are designed to permit users who have access privileges to the internal LAN of the organization.

• Extranets refer to applications and services that are Intranet based, and use extended, secure access to external users or enterprises. This access is usually accomplished through passwords, user IDs, and other application-level security.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

530

Page 31: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Internet• The internet is defined as a global mesh of interconnected networks

• The set of all networks interconnected forms what is called the Internet

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

531

Page 32: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Copper Media• Cables have different specifications and expectations. Important considerations related to performance are as follows:

What speeds for data transmission can be achieved?

Will the transmissions be digital or analog?

How far can a signal travel before attenuation becomes a concern?

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

532

Page 33: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Copper MediaCoaxial cable

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

533

Page 34: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Copper MediaSTP cable

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

534

Page 35: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Copper MediaUTP cable

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

535

Page 36: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Copper MediaRJ45 Plug & Jack

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

536

Page 37: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Copper MediaUTP cable

Pin Color Function

1 White with Green +TD (Transmitting Data)

2 Green -TD (Mirrored Transmitting Data)

3 White with Orange +RD (Receiving Data)

4 Blue Not Used

5 White with Blue Not Used

6 Orange -RD (Mirrored Receiving Data)

7 White with Brown Not Used

8 Brown Not Used

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

18

-20

19

537

Page 38: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Straight-through cables VScrossover cables

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

538

Page 39: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Straight-through cables VScrossover cables

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

539

Page 40: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

IP Address• An IP address is a 32-bit unique and universal sequence of ones and zerosthat

• To make the IP address easier to work with, it is usually written as four decimal numbers separated by periods.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

540

Page 41: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

IP Address• For example, an IP address of one computer is 192.168.1.2.

• Another computer might have the address 128.10.2.1.

• This is called the dotted decimal format.

• Each part of the address is called an octet because it is made up of eight binary digits.

• For example, the IP address 192.168.1.8 would be 11000000.10101000.00000001.00001000 in binary notation.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

541

Page 42: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

IPv4 addressing• A router uses IP to forward packets from the source network to the destination network. The packets must include an identifier for both the source and destination networks.

• A router uses the IP address of the destination network to deliver a packet to the correct network. When the packet arrives at a router connected to the destination network, the router uses the IP address to locate the specific computer on the network.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

542

Page 43: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

IPv4 addressing• Every IP address has two parts.

• The first part identifies the network where the system is connected and the second part identifies the system. The second part, called the host part, identifies which particular machine it is on the network.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

543

Page 44: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

IPv4 addressing

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

544

Page 45: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

IPv4 addressingClass

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

545

Page 46: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

IPv4 addressingClass• IP addresses are divided into classes to define the large, medium, and small networks. Class A addresses are assigned to larger networks. Class B addresses are used for medium-sized networks and Class C for small networks. The first step in determining which part of the address identifies the network and which part identifies the host is identifying the class of an IP address.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

546

Page 47: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

IPv4 addressingClass A

• The Class A address was designed to support extremely large networks, with more than 16 million host addresses available.

• The first bit of a Class A address is always 0. With that first bit a 0, the lowest number that can be represented is 00000000, decimal 0. The highest number that can be represented is 01111111, decimal 127.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

547

Page 48: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

IPv4 addressingClass A

• The numbers 0 and 127 are reserved and cannot be used as network addresses. Any address that starts with a value between 1 and 126 in the first octet is a Class A address.

• The 127.0.0.0 network is reserved for loopback testing. Routers or local machines can use this address to send packets back to themselves. Therefore, this number cannot be assigned to a network.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

548

Page 49: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

IPv4 addressingClass B

• The Class B address was designed to support the needs of moderate to large-sized networks.

• The first two bits of the first octet of a Class B address are always 10. The remaining six bits may be populated with either 1s or 0s. Therefore, the lowest number that can be represented with a Class B address is 10000000, decimal 128. The highest number that can be represented is 10111111, decimal 191. Any address that starts with a value in the range of 128 to 191 in the first octet is a Class B address. In

tro

du

ctio

n t

o C

om

pu

ter

Sci

en

ce (

I11

00

) 2

01

7-2

01

8

549

Page 50: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

IPv4 addressingClass C

• The Class C address space is the most commonly used of the original address classes. This address space was intended to support small networks with a maximum of 254 hosts.

• A Class C address begins with binary 110. Therefore, the lowest number that can be represented is 11000000, decimal 192. The highest number that can be represented is 11011111, decimal 223. If an address contains a number in the range of 192 to 223 in the first octet, it is a Class C address. In

tro

du

ctio

n t

o C

om

pu

ter

Sci

en

ce (

I11

00

) 2

01

7-2

01

8

550

Page 51: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Public and private IP addresses• Address Private IP Class A: 10.0.0.1 to 10,255,255,254, allowing the creation of large private networks with thousands of computers.

• Private addresses Class B IP: 172.16.0.1 to 172.31.255.254, to create private networks of medium size.

• Class C private IP address: 192.168.0.1 to 192.168.255.254, for the establishment of small private networks.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

551

Page 52: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

References

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

552

• http://www.warriorsofthe.net/

Page 53: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Exercises

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

553

Page 54: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Review Questions1. For n devices in a network, what is the number of cable links required for

a mesh, ring, bus, and star topology?

2. For each of the following four networks, discuss the consequences if a connection fails.

a. Five devices arranged in a mesh topology

b. Five devices arranged in a star topology (not counting the hub)

c. Five devices arranged in a bus topology

d. Five devices arranged in a ring topology

3. What is the number of bits in an IPv4 address?

4. Explain why most of the addresses in class A are wasted. Explain why a medium-size or large-size corporation does not want a block of class C addresses.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

554

Page 55: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Review Questions5. Change the following IP addresses from binary notation to dotted-decimal

notation.

a. 01111111 11110000 01100111 01111101

b. 10101111 11000000 11111000 00011101

c. 11011111 10110000 00011111 01011101

d. 11101111 11110111 11000111 00011101

6. Find the class of the following IP addresses.

a. 11110111 11110011 10000111 11011101

b. 10101111 11000000 11110000 00011101

c. 11011111 10110000 00011111 01011101

d. 11101111 11110111 11000111 00011101

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

555

Page 56: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Review Questions7. In a block of addresses, we know the IP address of one host is

135.34.12.56.What are:

a. the first address (network address) in this block

b. the last address (limited broadcast address) in this block

c. the total number of usable addresses in this block

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

556

Page 57: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Review Questions8. Give the topology type of the following network

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

557

Page 58: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Review Questions9. Give the topology type of the following network

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

558

Page 59: I1100 - Introduction to Computer Science · IP Address • For example, an IP address of one computer is 192.168.1.2. • Another computer might have the address 128.10.2.1. • This

Review Questions10. Implement by drawing a local network consisting of 4 hosts using a hub as

a connecting device.

11. Implement by drawing a local network consisting of 2 hosts without using any connecting devices.

Intr

od

uct

ion

to

Co

mp

ute

r S

cie

nce

(I1

10

0)

20

17

-20

18

559