computer networks: hands on experience

48
Computer Networks: Hands On Experience 1 Pongpisit Wuttidittachotti, Ph.D. Faculty of Information Technology King Mongkut's University of Technology North Bangkok (KMUTNB) [email protected] http://www.it.kmutnb.ac.th/pongpisit

Upload: blithe

Post on 24-Feb-2016

52 views

Category:

Documents


0 download

DESCRIPTION

Computer Networks: Hands On Experience. Pongpisit Wuttidittachotti , Ph.D. Faculty of Information Technology King Mongkut's University of Technology North Bangkok (KMUTNB ) [email protected] http://www.it.kmutnb.ac.th/pongpisit. Outline. What is a Network? Network Components - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Computer Networks: Hands On Experience

1

Computer Networks:Hands On Experience

Pongpisit Wuttidittachotti, Ph.D.Faculty of Information Technology

King Mongkut's University of Technology North Bangkok (KMUTNB)[email protected]

http://www.it.kmutnb.ac.th/pongpisit

Page 2: Computer Networks: Hands On Experience

2

Outline• What is a Network?• Network Components• Putting It all Together• LAN & WAN• LAB #1: Testing the network

connectivity• LAB #2: Connect 2 computers

using a cable

Page 3: Computer Networks: Hands On Experience

3

What is a Network?

• A Network is two or more devices connected to a common medium.

Page 4: Computer Networks: Hands On Experience

Network Components• All networks have 4 basic elements

in common:

Rules (protocols) to govern the handling of the message.

Messages that travel from one device to another.

Medium that is used to interconnect devices and can transport the messages from one device to another.

Devices on the network that exchange messages.

Page 5: Computer Networks: Hands On Experience

DevicesDevices on a network – Common Symbols

Page 6: Computer Networks: Hands On Experience

MessagesMessages take many forms.

Page 7: Computer Networks: Hands On Experience

MediaMedia on a network can be varied.

Guided(wired)

Unguided(wireless)

•Twisted Pair Cable•Coaxial Cable•Fiber Optic Cable

AIR WATER

Page 8: Computer Networks: Hands On Experience

Rules (Protocols)Rules on a network seem almost endless – but they’re not.

• Other Application Protocols:• DNS, DHCP, FTP

• Some Other Protocols:• TCP/IP Protocol Suite, Ethernet, Routing Protocols

Page 9: Computer Networks: Hands On Experience

Communications – What is it?• We establish rules, or protocols, for

communicating with each other:– Identify the sender and receiver.– Agree on the method.– Common language.– Speed and delivery of the message.– Confirmation that the message was received.

• Communications between individuals is successful if the meaning of the received message is the same as the meaning of the message that was sent.

Page 10: Computer Networks: Hands On Experience

Putting It all Together1. Converted to Binary.

2. NIC generates signals.

3. Passed among LAN devices.

4. Exit the local area (router).

Page 11: Computer Networks: Hands On Experience

Putting It all TogetherThe many interconnected devices worldwide are often represented by a cloud.

5. Bits are transmitted to devices that interconnect the networks.

Page 12: Computer Networks: Hands On Experience

Putting It all Together

6. Passed among local devices at the destination.

7. The destination device converts the bits into human readable form.

Page 13: Computer Networks: Hands On Experience

Putting It all Together

1 2 3 4

5

6 7

At each of these steps, there are protocols that define the rules for device communication.

Page 14: Computer Networks: Hands On Experience

14

LAN & WAN

Page 15: Computer Networks: Hands On Experience

Local Area Networks• An individual network usually spans

a single geographical area, providing services and applications to people within a common organizational structure, such as a single business, campus or region.

Page 16: Computer Networks: Hands On Experience

Wide Area Networks• Networks that connect LANs in

geographically separated locations. Usually implemented with leased connections through a telecommunications service provider (TSP) network.

• A TSP traditionally transports voice and data on different networks. Now, providers are offering converged network services.

HDLC, PPP, T1, DS3, OC3, ISDN, Frame Relay

Page 17: Computer Networks: Hands On Experience

LAB #1: Testing the network connectivity

• Ping• Traceroute (tracert)

Page 18: Computer Networks: Hands On Experience

Testing the Network Layer

Page 19: Computer Networks: Hands On Experience

19

“ipconfig” command • ipconfig is a commmand line utility. • This utility allows you to get the IP address information of

a Windows computer.

Page 20: Computer Networks: Hands On Experience

Testing the Network Layer

C:>ping 10.0.0.1Verifies that the local IP configuration is correct.

C:>ping 10.0.0.254Verifies that the host can reach the gateway.

Page 21: Computer Networks: Hands On Experience

Testing the Network Layer

C:>ping 10.0.1.2

Page 22: Computer Networks: Hands On Experience

Testing the Network Layer

Page 23: Computer Networks: Hands On Experience

23

LAB #2: Connect 2 computers using a cable

Page 24: Computer Networks: Hands On Experience

24

What do you need to know?

• IPv4• Cable types

Page 25: Computer Networks: Hands On Experience

Anatomy of an IPv4 Address

• Each device on a network must be uniquely identified at the Network layer.

• For IPv4, a 32 bit source and destination address is contained in each packet.

Page 26: Computer Networks: Hands On Experience

Anatomy of an IPv4 Address

• Devices use binary logic and work with strings of binary numbers. For us, the decimal equivalent is much easier to use and remember.

32 bit Binary String

Expressed in DOTTED DECIMAL NOTATION

Divided into OCTETS

Page 27: Computer Networks: Hands On Experience

Anatomy of an IPv4 Address

• To identify a path or "route" through a network, the addressmust be composed of two parts:– Network portion– Host portion

1.1

1.2

1.3

2.1

2.2

3.1 3.2

Page 28: Computer Networks: Hands On Experience

Anatomy of an IPv4 AddressIP Address 192. 168. 1. 2

Binary IP Address 11000000 10101000 00000001 00000010

• Network Portion:– Some portion of the high-order bits

represents the network address.– We define a network as a group of

hosts that have identical bit patterns in the network address portion of their addresses.192.168.1.2 11000000 10101000 00000001 00000010

192.168.1.67 11000000 10101000 00000001 01000011

192.168.1.204 11000000 10101000 00000001 11001100

Page 29: Computer Networks: Hands On Experience

Anatomy of an IPv4 AddressIP Address 192. 168. 1. 2

Binary IP Address 11000000 10101000 00000001 00000010

• Host Portion:– There are a variable number of bits

that are called the host portion of the address.

– The number of bits used in this host portion determines the number of hosts that we can have within the network.

192.168.1.2 11000000 10101000 00000001 00000010

192.168.1.67 11000000 10101000 00000001 01000011

192.168.1.204 11000000 10101000 00000001 11001100

Page 30: Computer Networks: Hands On Experience

Binary to Decimal Conversion

• In all number systems, the digits start with 0.• A Base-n number system has n number of digits:

– Decimal:• Base-10 has 10 digits

– 9, 8, 7, 6, 5, 4, 3, 2, 1, 0– Binary:

• Base-2 has 2 digits– 1, 0

– Hexadecimal:• Base-16 has 16 digits

– F, E, D, C, B, A, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0

Page 31: Computer Networks: Hands On Experience

Binary to Decimal Conversion• Positional Notation (Decimal

Number System):– Means that a digit represents

different values depending on the position it occupies.

– The value that a digit represents is that value multiplied by the power of the base according to the position the digit occupies.

4312String

1101001,000Value

(2x103) + (1x102) + (3x101) + (4x100) = 2,134

0123Position

100101102103Base

Page 32: Computer Networks: Hands On Experience

Binary to Decimal Conversion

• Computers react only to electrical impulses.– They work with and store data

using electronic switches that are either on (1) or off (0).

– They can only understand and use data that is in this two state format.

– These 1's and 0's are called binary digits or bits.

Page 33: Computer Networks: Hands On Experience

Binary to Decimal Conversion• Positional Notation (Binary

Number System):– Means that a digit represents

different values depending on the position it occupies.

– The value that a digit represents is that value multiplied by the power of the base according to the position the digit occupies.

2021222324252627Base

01234567Position

1248163264128Value

00110110String

(1x26) + (1x25) + (1x23) + (1x22) 64 + 32 + 8 + 4 = 108

Page 34: Computer Networks: Hands On Experience

Binary to Decimal Conversion

2021222324252627Base

01234567Position

1248163264128Value00000000String10000000String01000000String

11111111String

Range: 0 to 255

Page 35: Computer Networks: Hands On Experience

Binary to Decimal Conversion

2021222324252627

1248163264128

10010011

IP Address: 11001001000100010001110100000100

11001001 00010001 0000010000011101

201

10001000

17

10111000

29 4

00100000

IP Address: 201.17.29.4

Page 36: Computer Networks: Hands On Experience

Binary to Decimal Conversion

27 26 25 24 23 22 21 20

Dec. 128 64 32 16 8 4 2 1

0 0 0 1 0 1 0 1

0 0 1 1 0 0 1 0

0 1 1 0 0 1 0 1

1 0 0 1 0 1 1 0

1 1 0 0 1 1 1 0

50

21

101

150

206

Page 37: Computer Networks: Hands On Experience

37

Managing Big Network

128.143.70.0/16

128.143.137.32/16subnetmask: 255.255.0.0

128.143.71.21/16subnetmask: 255.255.0.0

128.143.137.144/16subnetmask: 255.255.0.0

128.143.71.201/16subnetmask: 255.255.0.0

Page 38: Computer Networks: Hands On Experience

38

Managing Subnets

128.143.0.0/16

128.143.137.32/24subnetmask: 255.255.255.0

128.143.71.21/24subnetmask: 255.255.255.0

128.143.137.144/24subnetmask: 255.255.255.0

128.143.71.201/24subnetmask: 255.255.255.0

128.143.137.0/24Subnet

128.143.71.0/24Subnet

128.143.0.0/16

128.143.137.32/26subnetmask: 255.255.255.192

128.143.71.21/24subnetmask: 255.255.255.0

128.143.137.144/26subnetmask: 255.255.255.192

128.143.71.201/16subnetmask: 255.255.0.0

128.143.71.0/24Subnet128.143.137.128/26

Subnet128.143.137.0/26

Subnet

Page 39: Computer Networks: Hands On Experience

39

Different Network Size

Network Prefix # of Host Addresses Mask /30 4 255.255.255.252 /29 8 255.255.255.248

/28 16 255.255.255.240 /27 32 255.255.255.224

/26 64 255.255.255.192 /25 128255.255.255.128 /24 256255.255.255.0

Page 40: Computer Networks: Hands On Experience

40

Straight-Through, crossover, rollover

Page 41: Computer Networks: Hands On Experience

41

Straight Through- Switch to a router Ethernet port- Computer to switch- Computer to hub

Page 42: Computer Networks: Hands On Experience

42

Crossover Cables

•Switch to switch •Switch to hub •Hub to hub •Router to router Ethernet port•Computer to computer •Computer to a router Ethernet port

Page 43: Computer Networks: Hands On Experience

43

Console Cable

Page 44: Computer Networks: Hands On Experience

44

THANK YOU FOR YOUR ATTENTION

Page 45: Computer Networks: Hands On Experience

45

Reference• CCNA, St. Clair College in

Windsor, Ontario.

Page 46: Computer Networks: Hands On Experience

46

BACKUP

Page 47: Computer Networks: Hands On Experience

47

LAB#3: CREATING SUBNET

• Configure the 2 PCs to be in the same subnet– Try Pinging between the two PCs

• Configure the 2 PCs to be in different subnet– Try Pinging between the two PCs

Page 48: Computer Networks: Hands On Experience

48

IOS configuration Mode