protocol stack through a role playing game Based on : Norman - - PowerPoint PPT Presentation

protocol stack through a role
SMART_READER_LITE
LIVE PREVIEW

protocol stack through a role playing game Based on : Norman - - PowerPoint PPT Presentation

Introduction to the TCP IP protocol stack through a role playing game Based on : Norman Pendegraft. 2003. The TCP/IP game. In Current issues in IT education, Tanya McGill (Ed.). IGI Publishing, Hershey, PA, USA 117-124 Acknowledgment: Many


slide-1
SLIDE 1

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Introduction to the TCP IP protocol stack through a role playing game

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Based on : Norman Pendegraft. 2003. The TCP/IP game. In Current issues in IT education, Tanya McGill (Ed.). IGI Publishing, Hershey, PA, USA 117-124

Acknowledgment: Many thanks to Ozden Nyiaz for assisting in the preparation of these slides

slide-2
SLIDE 2

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Players are organized into four-person teams that represent different computers in the network.

slide-3
SLIDE 3

Δρ. Χαράλαμπος Ζ. Πατρικάκης

NETWORK MAP

slide-4
SLIDE 4

Δρ. Χαράλαμπος Ζ. Πατρικάκης

2.2.2.2 22-22 1.1.1.1 11-11 3.3.3.3 33-33 4.4.4.4 44-44 5.5.5.5 55-55 6.6.6.6 66-66 7.7.7.7 77-77 8.8.8.8 88-88 9.9.9.9 99-99

NETWORK MAP

slide-5
SLIDE 5

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Each person in the team assumes the role of one layer.

slide-6
SLIDE 6

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Outgoing Messages

slide-7
SLIDE 7

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Creates messages Breaks the message into several smaller messages if necessary Addresses and routes the message Formats the message and performs error control Transmits the message to the physical layer of the destination computer

slide-8
SLIDE 8

Δρ. Χαράλαμπος Ζ. Πατρικάκης

SMTP From To Message Message (Continued)

_ _

ID of your computer ID of destination computer Type any message you wish to send up to 20 characters. Use a hyphen (-) to indicate spaces between words

  • Write the message and the name of the computer to which you send the

message on the blank piece of paper. This will help you understand the responses you get to your messages.

APPLICATION LAYER

  • Pass the message to the transport layer.
slide-9
SLIDE 9

Δρ. Χαράλαμπος Ζ. Πατρικάκης

SMTP From To Message Message (Continued)

_

_

TRANSPORT LAYER

Break the SMTP message into smaller packets. Cut the SMTP packet into two parts at the dotted line.

slide-10
SLIDE 10

Δρ. Χαράλαμπος Ζ. Πατρικάκης

TC P Sequence Number User Data

_ of _

If there is only one part of the SMTP packet, write "1 of 1" in the Sequence Number box.

SMTP

From To

Message

If it’s blank

Message (Continued)

Find one or two blank TCP packets.

slide-11
SLIDE 11

Δρ. Χαράλαμπος Ζ. Πατρικάκης

TC P Sequence Number User Data

_ of _

If there are two parts of the SMTP packet, write "1 of 2" on the first TCP packet.

SMTP

From To

Message

TC P Sequence Number User Data

_ of _

"2 of 2" on the second TCP packet.

Message (Continued)

slide-12
SLIDE 12

Δρ. Χαράλαμπος Ζ. Πατρικάκης

TC P Sequence Number User Data _ of _ SMTP From To Message Pass the message to the network layer. Tape the SMTP packet(s) to the TCP packet(s) over the User Data space.

slide-13
SLIDE 13

Δρ. Χαράλαμπος Ζ. Πατρικάκης

IP Final Destination Next Node User Data _ . _ . _ . _ _ . _ . _ . _ Put the IP address of the PC corresponding to the PC of the To box of the SMTP packet

SMTP

From To

Message

Next computer’s IP address in the network map

TC P Sequence Number User Data

SMTP

From To

Message

NETWORK LAYER

Find a blank IP packet.

slide-14
SLIDE 14

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Final Destination Your Computer

If your computer is directly connected to the final destination computer, the “Next Node” is the same as the final destination.

slide-15
SLIDE 15

Δρ. Χαράλαμπος Ζ. Πατρικάκης

If your computer is not directly connected to the destination, you must select the best route that the message should follow and specify one of the computers to which you are connected.

Your Computer Final Destination

slide-16
SLIDE 16

Δρ. Χαράλαμπος Ζ. Πατρικάκης

IP

Final Destination Next Node User Data

_ . _ . _ . _ _ . _ . _ . _

TC P Sequence Number User Data

_ of _

SMTP From To Message _ _

Pass the message to the data link layer.

Tape the TCP + SMTP packet to the IP packet over the User Data space.

slide-17
SLIDE 17

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Ethernet Source Destination Control Message# Error User Data _ _:_ _ _ _:_ _ _ _

Your computer’s MAC address

IP Final Destination Next Node User Data _ . _ . _ . _ _ . _ . _ . _

TC P Sequence Number User Data

_ of _

SMTP

From To

Message

_ _

*

1st message 01 2nd message 02

DATA LINK LAYER

Number of hyphens

Put the MAC address of the PC corresponding to the PC of the Next Node box of the IP packet.

slide-18
SLIDE 18

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Ethernet Source Destination Control Message# Error User Data _ _:_ _ _ _:_ _ _ _ IP Final Destination Next Node User Data _ ._. _ ._ _ ._. _ ._ TC P Sequence Number User Data _ of _

SMTP From To

Message

_ _

Pass the message to the physical layer. In a few moments, the physical layer will return the packet to you. Tape the SMTP + TCP + IP packet to the Ethernet packet over the User Data space.

slide-19
SLIDE 19

Δρ. Χαράλαμπος Ζ. Πατρικάκης

PHYSICAL LAYER

Ethernet Source Destination Control Message# Error User Data _ _:_ _ _ _:_ _ * _ _ IP Final Destination Next Node User Data _ ._. _ ._ _ ._. _ ._ TC P Sequence Number User Data _ of _

SMTP From To

Message

_ _

  • If the Control box contains an asterisk (*) this is a data message.

Data Messages

slide-20
SLIDE 20

Δρ. Χαράλαμπος Ζ. Πατρικάκης

  • Before transmitting the message. Determine if there will be an

error in transmission by tossing two coins; if they are both heads, you will introduce an error. Change the number in the error box to your new calculation.

  • Alternative version: You will transmit a message by giving it to

the supervisor of the lab/course. He/she may decide to introduce an error (you will not know about it)

slide-21
SLIDE 21

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Ethernet Source Destination Control Message# Error User Data _ _:_ _ _ _:_ _ _ _

IP Final Destination Next Node User Data TC P Sequence Number User Data

SMTP

From To

Message

Take a picture of the original packets via your mobile phone. Save the picture for next steps.

slide-22
SLIDE 22

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Ethernet Source Destination Control Message# Error User Data _ _:_ _ _ _:_ _ _ _ IP Final Destination Next Node User Data _ ._. _ ._ _ ._. _ ._ TC P Sequence Number User Data _ of _

SMTP From To

Message

_ _

ORIGINAL PACKET

Pass the original SMTP + TCP + IP + Ethernet packet back to the data link layer and make sure that that person understands that you are giving back the message that he/she just gave you to transmit.

slide-23
SLIDE 23

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Ethernet Source Destination Control Message# Error User Data _ _:_ _ _ _:_ _

ACK

  • r

NAK

_ _ IP Final Destination Next Node User Data _ ._. _ ._ _ ._. _ ._ TC P Sequence Number User Data _ of _

SMTP From To

Message

_ _

  • If the Control box contains an ACK or an NAK, this is a control message.
  • Simply pass the Ethernet packet to the physical layer of the computer whose

address is listed in the Destination box. Things are complicated enough without ACKs and NAKs getting destroyed.

Control Messages

slide-24
SLIDE 24

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Incoming Messages

slide-25
SLIDE 25

Δρ. Χαράλαμπος Ζ. Πατρικάκης

DATA LINK LAYER

Ethernet Source Destination Control Message# Error User Data _ _:_ _ _ _:_ _

*

_ _ IP Final Destination Next Node User Data _ ._. _ ._ _ ._. _ ._ TC P Sequence Number User Data _ of _

SMTP From To

Message

_ _

If the Control box contains an asterisk (*), this is a data message. Perform error

  • checking. Count the number of hyphens in the user data (the SMTP packet, the

TCP packet, and the IP packet [but not the Ethernet packet]). If this number is the same as the number in the Error box, no errors have occurred. If they are different, an error has occurred.

slide-26
SLIDE 26

Δρ. Χαράλαμπος Ζ. Πατρικάκης

If no errors have occurred in data message

Ethernet Source Destination Control Message# Error User Data

_ _ : _ _ _ _ : _ _ _ _

Find a blank Ethernet packet.

Your MAC address

Write the Ethernet address contained in the Source box of the incoming message

ACK

Write the two-digit number contained in the Message Number box of the incoming message in the Message Number box Pass the outgoing ACK message to the physical layer.

slide-27
SLIDE 27

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Ethernet Source Destination Control Message# Error User Data _ _:_ _ _ _:_ _

*

_ _ IP Final Destination Next Node User Data _ ._. _ ._ _ ._. _ ._ TC P Sequence Number User Data _ of _

SMTP From To

Message

_ _

Remove the Ethernet packet from the incoming message, and throw the Ethernet packet away.

Pass the incoming SMTP + TCP + IP packet to the network layer.

slide-28
SLIDE 28

Δρ. Χαράλαμπος Ζ. Πατρικάκης

If an error has occurred in data message

Ethernet Source Destination Control Message# Error User Data

_ _ : _ _ _ _ : _ _ _ _

Find a blank Ethernet packet.

Your MAC address

Write the Ethernet address contained in the Source box of the incoming message

NAK

Write the two-digit number contained in the Message Number box of the incoming message in the Message Number box Pass the outgoing NAK message to the physical layer. Throw away the incoming message containing the error.

slide-29
SLIDE 29

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Ethernet Source Destination Control Message# Error User Data _ _:_ _ _ _:_ _

ACK

_ _

If the Control box contains an ACK, this is an ACK message.

Find the original message you sent, from the photo that you have taken for next steps, that has the same message number as the ACK. Destroy the original message and the ACK.

slide-30
SLIDE 30

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Ethernet Source Destination Control Message# Error User Data _ _:_ _ _ _:_ _

NAK

_ _ IP Final Destination Next Node User Data _ ._. _ ._ _ ._. _ ._ TC P Sequence Number User Data _ of _

SMTP From To

Message

_ _

If the Control box contains an NAK, this is an NAK message.

Find the original message you sent, from the photo that you have taken for next steps, that has the same message number as the NAK. Give the original message to the physical layer to transmit again. In a few moments, the physical layer will return the packet to you. Destroy the NAK.

slide-31
SLIDE 31

Δρ. Χαράλαμπος Ζ. Πατρικάκης

  • If the message is addressed to you

IP Final Destination Next Node User Data _ ._. _ ._ _ ._. _ ._ TC P Sequence Number User Data _ of _

SMTP From To

Message

_ _

If it’s your IP address

NETWORK LAYER

slide-32
SLIDE 32

Δρ. Χαράλαμπος Ζ. Πατρικάκης

IP Final Destination Next Node User Data _ ._. _ ._ _ ._. _ ._ TC P Sequence Number User Data _ of _

SMTP From To

Message

_ _

Remove the IP packet from the SMTP + TCP packet and throw the IP packet away Pass the SMTP + TCP packet to the transport layer

slide-33
SLIDE 33

Δρ. Χαράλαμπος Ζ. Πατρικάκης

  • If the message is not addressed to you

IP Final Destination Next Node User Data _ ._. _ ._ _ ._. _ ._ TC P Sequence Number User Data _ of _

SMTP From To

Message

_ _

If it’s someone else’s IP address

slide-34
SLIDE 34

Δρ. Χαράλαμπος Ζ. Πατρικάκης

IP Final Destination Next Node User Data _ ._. _ ._ _ ._. _ ._ TC P Sequence Number User Data _ of _

SMTP From To

Message

_ _

Scratch out or erase the address in the Next Node

  • box. Route the message by finding the next

computer in the network map to which the message should be sent and writing its data link layer address in the Next Node box.

slide-35
SLIDE 35

Δρ. Χαράλαμπος Ζ. Πατρικάκης

IP Final Destination Next Node User Data _ ._. _ ._ Old IP _ ._. _ ._

Remove the IP packet from the SMTP + TCP packet and throw the IP packet away Substitute the IP part with the new one Pass the message to the transport layer.

IP Final Destination Next Node User Data _ ._. _ ._

New IP

_ ._. _ ._ TC P Sequence Number User Data _ of _

SMTP From To

Message

_ _

slide-36
SLIDE 36

Δρ. Χαράλαμπος Ζ. Πατρικάκης

TC P Sequence Number User Data _ of _ If the Sequence Number box says "1 of 1": The message is completed.

SMTP From To Message _ _

TRANSPORT LAYER

slide-37
SLIDE 37

Δρ. Χαράλαμπος Ζ. Πατρικάκης

Pass the SMTP packet to the application layer Take the TCP packet off of the SMTP packet and throw away the TCP packet TC P Sequence Number User Data _ of _

SMTP From To Message _ _

slide-38
SLIDE 38

Δρ. Χαράλαμπος Ζ. Πατρικάκης

TC P Sequence Number User Data _ of _ If the Sequence Number box says "1 of 2": The message is not completed.

SMTP

From To

Message

_ _

TC P Sequence Number User Data _ of _ Wait for the second part of the message (2 of 2) to arrive.

Message (Continued)

slide-39
SLIDE 39

Δρ. Χαράλαμπος Ζ. Πατρικάκης

TC P Sequence Number User Data _ of _

SMTP

From To

Message

_ _

TC P Sequence Number User Data _ of _

Message (Continued)

Take the TCP packets off of both SMTP packets and throw away the TCP packets

slide-40
SLIDE 40

Δρ. Χαράλαμπος Ζ. Πατρικάκης

SMTP From To Message _ _ Message (Continued) Tape the two parts of the SMTP packet back together.

slide-41
SLIDE 41

Δρ. Χαράλαμπος Ζ. Πατρικάκης

SMTP From To Message Message (Continued)

_ _

Pass the SMTP packet to the application layer

slide-42
SLIDE 42

Δρ. Χαράλαμπος Ζ. Πατρικάκης

APPLICATION LAYER

Eventually, you will receive an incoming message from the transport layer that was sent to you by some other computer asking you a question. To respond to the message, you will send a message that answers the question. Follow the same steps above to send a message write your answer in the Message box. For example, if the message you received asked what your favorite color was, you might write red or blue in the Message box.