chapter 8 · 2015. 6. 17. · ©the mcgraw-hill companies, inc., 2000 © adapted for use at jmu by...

21
©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl , 2003 1 1 Chapter 8 Internet Protocol (IP)

Upload: others

Post on 02-Mar-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200311

Chapter 8

Internet Protocol(IP)

Page 2: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200322

CONTENTSCONTENTS• DATAGRAM• FRAGMENTATION• OPTIONS• CHECKSUM• IP PACKAGE

Page 3: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200333

FragmentationFragmentation--relatedrelated

Fixed values

Page 4: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200344

OPTIONS8.38.3

• Used for network testing and debugging• Each option follows the TLV (Type-Length-Value) format

Page 5: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200355

Record route optionHow did it arrive?

Up to 9 Up to 9 placeholdersplaceholders

created by created by Source hostSource host

Page 6: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200366

Record route concept

Page 7: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200377

Strict source route optionHow should it travel?

• Route strictly dictated by Source– For performance,

reliability, testing, ..etc.• All pre-specified routers

MUST be visited, and nothing else.– Otherwise: discard

datagram and send error message.

Page 8: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200388

Strict source route exampleFigure after corrections

67.14.10.22

140.10.5.4

200.14.7.14

140.10.6.3

140.10.5.4

200.14.7.14

200.14.7.9

200.14.7.14 138.6.22.26

140.10.6.3 140.10.6.3

200.14.7.9

Page 9: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200399

Loose source route option

• Minimum portion of Route is dictated by Source

• All pre-specified routers MUST be visited, and possibly others as well.– Otherwise: discard

datagram and send error message.

Page 10: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031010

Timestamp optionWhen did each visited router process a datagram?

#routers in excess of space provided

Page 11: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031111

Use of flag in timestamp

Outgoing

Page 12: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031212

Timestamp concept

Page 13: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031313

Example 10Example 10

Which of the six options must be copied to each fragment?

SolutionSolution

We look at the first (left-most) bit of the code for each option.

No operation: Code is 00000001; no copy.

End of option: Code is 00000000; no copy.

Record route: Code is 00000111; no copy.

Strict source route: Code is 10001001; copied.

Loose source route: Code is 10000011; copied.

Timestamp: Code is 01000100; no copy.

Page 14: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031414

Example 11Example 11

Which of the six options are used for datagram control and whichare used for debugging and management?

SolutionSolution

We look at the second and third (left-most) bits of the code.

No operation: Code is 00000001; control.

End of option: Code is 00000000; control.

Record route: Code is 00000111; control.

Strict source route: Code is 10001001; control.

Loose source route: Code is 10000011; control.

Timestamp: Code is 01000100; debugging

Page 15: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031515

CHECKSUM8.48.4

To create the checksum the sender does the following:

1. The packet is divided into k sections, each of n bits.

2. All sections are added together using one’s complement arithmetic.

3. The final result is complemented to make the checksum.

Page 16: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031616

Checksum concept

Page 17: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031717

Checksum in one’s complement arithmetic

Page 18: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031818

Example of checksum calculationin binary

Page 19: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031919

Example of checksum calculation

in hexadecimal

Page 20: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032020

IP PACKAGE8.58.5

Page 21: Chapter 8 · 2015. 6. 17. · ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 8 Internet Protocol (IP)

©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032121

MTU table

Reassembly tableSorted LinkedSorted Linked--List of List of fragments of the same fragments of the same

datagramdatagram