Tor61 P P R2 Time Note on Relay Packets A relay does not look - - PowerPoint PPT Presentation

tor61 p p r2 time note on relay packets
SMART_READER_LITE
LIVE PREVIEW

Tor61 P P R2 Time Note on Relay Packets A relay does not look - - PowerPoint PPT Presentation

Tor61 P P R2 Time Note on Relay Packets A relay does not look inside Relay cells unless it is the end of the circuit. Relay Cell Cell Arrives. Control Cell Type? Process Cell Am I the end No Yes of the circuit? Forward to


slide-1
SLIDE 1

Tor61

slide-2
SLIDE 2

R2 Time P P

slide-3
SLIDE 3

Note on Relay Packets

 A relay does not look inside Relay cells

unless it is the end of the circuit.

Cell Arrives. Type? Process Cell Am I the end

  • f the circuit?

Process Cell Forward to next hop Control Cell Relay Cell No Yes

slide-4
SLIDE 4

Time P P

slide-5
SLIDE 5

Blocking is bad

 We expect a response for:

 Open  Create  Relay Extend

 Can we block the TCP socket waiting for

the response?

 Yes and No

slide-6
SLIDE 6

Server Time P P

slide-7
SLIDE 7

Blocking is mostly bad

 Can block waiting for Opened  Cannot block waiting for Relay Extended

  • r Created
slide-8
SLIDE 8

Separate Proxy and Router

 You already made the proxy  Make the Tor61 router functionality

completely separate

 Don’t try to share threads!

Proxy Router

slide-9
SLIDE 9

Routing Tables

 How should we structure a routing table?  We’re a router, what do we know?

 List of our Circuit #s  List of our Stream #s  List of our Tor-to-Tor TCP Sockets  List of our HTTP-to-Proxy TCP Sockets

slide-10
SLIDE 10

Routing Tables

 A Relay Cell comes into a Relay TCP

socket, it has:

 Circuit #  Stream #

 How do we know what to do with it?

slide-11
SLIDE 11

C-11 C-1 C-3 Cell arrives: C#: 3 S#: 1 C-2 WHAT DO WE DO? S-1 S-1 S-1 S-1 C-5 C-7 Route through green to D A B C D E W X U V

slide-12
SLIDE 12

C-3 C-1 C-3 Cell arrives: C#: 3 S#: 1 C-2 WHAT DO WE DO? S-1 S-1 S-1 S-1 C-5 C-7 IS IT GREEN OR BLUE?!? A B C D E W X U V

slide-13
SLIDE 13

A C-1 C-3 X U S-1 S-1

Hopping through Yourself

slide-14
SLIDE 14

A C-1 C-3 X U S-1 S-1

Hopping through Yourself

with only 1 TCP socket

slide-15
SLIDE 15

Additional Advice

 Read the project, including all the design

notes

 Understand the project  Be the project  Threading Example Code:

 https://courses.cs.washington.edu/courses/

cse461/14sp/threading.html