Top Banner
1 1. LEO (Quiz 1) • D * 2 / C = 1500*2/300,000 = 0.01 second • 10,000 s + 53 s = 10,053 s
15

1. LEO (Quiz 1)

Dec 30, 2015

Download

Documents

preston-ramos

1. LEO (Quiz 1). D * 2 / C = 1500*2/300,000 = 0.01 second 10,000 s + 53 s = 10,053 s. 2. Parity Bit. ‘N’ = 78 10 = 01001110 2 Even Parity  Parity Bit = 0. 3. Hidden Node Problem in A Wireless Net. Limited range Not all stations receive all transmissions Cannot use CSMA/CD - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1. LEO   (Quiz 1)

1

1. LEO (Quiz 1)

• D * 2 / C = 1500*2/300,000 = 0.01 second

• 10,000 s + 53 s = 10,053 s

Page 2: 1. LEO   (Quiz 1)

2

2. Parity Bit

• ‘N’ = 7810 = 010011102

• Even Parity Parity Bit = 0

Page 3: 1. LEO   (Quiz 1)

3

3. Hidden Node Problem in A Wireless Net

• Limited rangeLimited range– Not all stations receive all transmissionsNot all stations receive all transmissions– Cannot use CSMA/CDCannot use CSMA/CD

• Example in diagramExample in diagram– Maximum transmission distance is Maximum transmission distance is dd– Stations Stations 1 and 3 do not receive each other’s1 and 3 do not receive each other’s transmissionstransmissions

• Hidden nodeHidden node

Page 4: 1. LEO   (Quiz 1)

4

CSMA/CA

• Used on wireless LANsUsed on wireless LANs

• Both sides send a small message before Both sides send a small message before data transmissiondata transmission– ‘‘‘‘X is about to send to Y’’X is about to send to Y’’– ‘‘‘‘Y is about to receive from X’’Y is about to receive from X’’– Data frame sent from Data frame sent from X to YX to Y

• Purpose: inform all stations in range of Purpose: inform all stations in range of X or X or Y before Y before transmissiontransmission

• Known as Known as Collision Avoidance (CA)Collision Avoidance (CA)

Page 5: 1. LEO   (Quiz 1)

5

4. PSM

, /2, *3/2, *2/3

Page 6: 1. LEO   (Quiz 1)

6

5. Unix commands

• ls - list directory contents

• pwd – print working directory name

• less – similar to more; display the contents of a file and pause at each page, but allow backward movement in the file as well as forward movement.

• grep - print lines matching a pattern

• gcc - GNU C and C++ compiler

Page 7: 1. LEO   (Quiz 1)

7

6. Checksum

N C N U \n

4E 43 4E 55 0A

• 0x4E + 0x43 + 0x4E + 0x55 + 0x0A= 78+67+78+85+10 = 318= 0x13E

• There is no carry in this example.

Page 8: 1. LEO   (Quiz 1)

8

7. Distance Vector

Dst Next Cost

1 - 0

Node 3

Dst Next Cost

2 - 0

Dst Next Cost

3 - 0

Dst Next Cost

4 - 0

Node 4Node 2Node 1

Page 9: 1. LEO   (Quiz 1)

9

Establishing the Routing Table

Dst Next Cost

1 - 0

3 3 3

Node 3

Dst Next Cost

2 - 0

3 3 1

4 4 2

Dst Next Cost

3 - 0

1 1 3

2 2 1

4 4 5

Dst Next Cost

4 - 0

2 2 2

3 3 5

Node 4Node 2Node 1

Page 10: 1. LEO   (Quiz 1)

10

Establishing the Routing Table

Dst Next Cost

1 - 0

3 3 3

2 3 4

4 3 8

Node 3

Dst Next Cost

2 - 0

3 3 1

4 4 2

1 3 4

Dst Next Cost

3 - 0

1 1 3

2 2 1

4 2 3

Dst Next Cost

4 - 0

2 2 2

3 2 3

1 3 8

Node 4Node 2Node 1

Page 11: 1. LEO   (Quiz 1)

11

Establishing the Routing Table

Dst Next Cost

1 - 0

3 3 3

2 3 4

4 3 6

Node 3

Dst Next Cost

2 - 0

3 3 1

4 4 2

1 3 4

Dst Next Cost

3 - 0

1 1 3

2 2 1

4 2 3

Dst Next Cost

4 - 0

2 2 2

3 2 3

1 2 6

Node 4Node 2Node 1

Page 12: 1. LEO   (Quiz 1)

12

8. Switch

• Note that there are cycles in the network topology.– To prevent the broadcast storm, the spanning

tree algorithm must be performed to disable some links (bridges).

Page 13: 1. LEO   (Quiz 1)

13

Configuration 1

• The bridge learns the locations of U,V,Z,Y,X.

• For frames destined to V, U, Z, V, X, W, Z,– only frames 1,3,5,6

are forwarded to segment 4

B

B

B

U, V, W

X, Y, Z

U,V,Z,Y,X

segment 4

Page 14: 1. LEO   (Quiz 1)

14

Configuration 2

• The bridge learns the locations of U,V,Z,Y,X.

• For frames destined to V, U, Z, V, X, W, Z,– only frames

1,3,5,6 are forwarded to segment 4

B

B

B

U, V, W

X, Y, Z

U,V,Z,Y,X

segment 4

U,V,Z,Y,X

U,V,W

Z,Y,X

Page 15: 1. LEO   (Quiz 1)

15

Configuration 3

• The bridge learns the locations of U,V,Z,Y,X.

• For frames destined to V, U, Z, V, X, W, Z,– only frames 1,3,5,6

are forwarded to segment 4

B

B

B

U, V, W

X, Y, Z

U,V,Z,Y,X

segment 4