Slides For Parasite Computing
Slides For Parasite Computing
Slides For Parasite Computing
Seminar by
Rubia Jasmin H.N, Roll No. 54, S7 CSE, MACE
CONTENTS
• Introduction • Implementation
Time
web server SYN+ACK
• Issues
a HTTP request over ACK
Connection
Established
TCP connection
Figure 2: Establishing a TCP connection.
• TCP message is carried via IP
values of and and the checksum ( ) are shown in blue.
TCP is a connection-oriented protocol—meaning that a connection must first
INTERNET COMMUNICATION
• Whileopening a URL,
Actions at receiver :-
CALCULATING CHECKSUM
X Y X Y X
89N79?63 #=9 K585?@69 4;J9 @4698K896? 6=@? 89?K;4?9 5? 5669?6@4B 6; 6=9
0 0 0
I5H@J@6O ;A 6=9 ?;H76@;43 "? 9VK9:69J 54J LO J9?@B4M @4:;889:6
0 1 1
1 0 1
1 1 0
N bits
c M = 0x1 0x3 0x5 0x7 0x9 0x110x130x15 0
a S1 S2 Sk
E = 01 00 01 01 00 01 01 01 0
16 bit S1
S1 + d
0x1 0x3 0x5 0x7 0x9 0x11 0x130x15 S1
0x2 0x4 0x6 0x8 0x10 0x12 0x14 0x16 S2
S2 +
Parasite node (sender)
SUM
b SUM
01 10 01 01 10 01 10 01
Sk
<
4J? 5 89?K;4?9
4J98?654J 6=9 b
X Y X Y X Y X+ Y
5669?6@4B 6; 6=9
0 0 0 0 00
@B4M @4:;889:6
0 1 1 0 01
1 0 1 0 01
1 1 0 1 10
c M = 0x1 0x3 0x5 0x7 0x9 0x110x130x15 0x2 0x4 0x6 0x8 0x10 0x12 0x14 0x16
E = 01 00 01 01 00 01 01 01 00 00 01 00 01 01 01 00
S1 S2
d e
0x1 0x3 0x5 0x7 0x9 0x11 0x130x15 S1 01 00 01 01 00 01 01 01
0x2 0x4 0x6 0x8 0x10 0x12 0x14 0x16 S2 00 00 01 00 01 01 01 00
SUM 01 00 10 01 01 10 10 01
SUM 10 11 01 10 10 01 01 10
01 10 01 01 10 01 10 01 (Real checksum)
10 01 10 10 01 10 01 10
f Tc
Transmitted message
1001101001100110 0100010100010101 0000010001010100
Tc S1 S2
2 - SAT PROBLEM - DETAILED
• The 2-SAT problem involves 16 • The sum can have 4 outcomes
variables with the operations
AND and XOR • If the clause has an XOR
operator, is true only when the
• In order to get a TRUE answer checksum is (01).
for P, each clause shown in
separate parentheses needs to • If the clause has an AND
be independently TRUE operator, is true only when the
checksum is (10)
• To evaluate, we generate a 32 bit
message M that contains all 16 • To turn a package into parasitic
variables, each preceded by a message the parasitic node
zero prepares a package, preceded by
a checksum, and continued by a
• TCP groups the bits in two 16 bit 32 bit sequence(S1,S2)
segments and add them together.
ALGORITHM
S= create TCP segments (x1, x2, x3, x4……….x15)
S.checksum = checksum
for each x
S.data = pad with zeros (x)
send S
receive answer
if answer = true
write x as a solution
C9S569
FPAC9I9C6@9 :;<E7656D;4
D4698E89656D;4 6;H;8:9
:;7C> 5 89<;69
8;7698?658S96
6; ?;CI9 I5C79 ;H 6@9
:;465D4? 54 :@9:O?7<K
FP @95>98K 52@D:@ D? D4 6@9
#^P @95>98K 54>#^P
5 :5@
6 ?7:@ 54 D<EC9<94656D;4
D<EC9<946 D6 56 6@9 #^P:89569? 7425469>
;8 @DS@98 C;:5C
C9I9C?3 VI5C79?
4;>9 H;8 !#95:@
D4U9:6? Y3 #@9<9??5S9
;E9856;8?D46;
D4 6@9 \;;C954
6@9 9[756D
4962;8O 56
687CR >9C9S569
6;:;C? D4:C7>9
99> 6; D<EC9<946
?;:O96
6@9#^PK
PROTOTYPE OF PARASITIC
:;<E7656D;4
=F#PK ;86; 94:8RE6D;4X
5 89<;69 658S96
C5R98 V11*Y3D6 56 6@9 #^P ;8 @DS@98 C9I9C?3
I5C79 ;H 6@9
BRE5??D4S
4;>9
6@9 >565
#^P3
D4U9:6?
:@9:O?7<K 2@D:@ D?6@9
"H698 89:9DID4S
95:@ <9??5S9
D469S8D6R ;H 6@9D46;#^P
D4 <9??5S9K
6@9 #^P @95
6@9 4962;8O
6@9
?9S<94656 6@9
BR
?9:789 ?;:O96 C5R98 V11*Y3 COMPUTER
>569 E8;6;:;C? D4:C7>9 #^PK =F#PK ;8 94:8RE6D;4X BRE5??D4S #^P3 "H698 89:9DID4S 6@9 <9??5S9K 6@9 658
6@9 >565 D469S8D6R ;H 6@9 #^P ?9S<946 BR :5
interfaces
node ... HTTP HTTP
0 0} NIF
{00 0
interfaces
... HTTP HTTP
0
{00 ALUNIF
} {00 TCP TCP Segment
1 1 0 ALU
TCP TCP dropped
Logical
... 1} ..{.000 Segment
0 1 10 .. dropped
due to invalid
Logical
1 d . . . } .1
{0 a li 10 0} due to invalid
checksum
V {0 l id IP IP
Va IP IP checksum
Physical
Physical
Network
Network interface Network
Network
interface
)(&*+&% ,- ,.+ /+,','0/$ /&+&1('(" ",%/.'$+2 (3 4 1(5*6$ /&+&1('$ ",51'+."'(,5 ,- '#$ %$11&*$ (1 1."# '#&' &5 (5=&6() 1,6.'(,5 -&(61 '#$
-'$1
,.+'#$/+,','0/$ /&+&1('(" ",%/.'$+2 (3 4 1(5*6$ /&+&1('$
",%/.'&'(,51 ,"".++(5* +$%,'$60 (5 '#$ 95'$+5$' /+,',",612 9'
",51'+."'(,5 ,- '#$ %$11&*$ (1 1."# '#&' &5 (5=&6() 1,6.'(,5 -&(
)+,//$)3 <#("# (1 (66.1'+&'$) :0 '#$ :6&"@ /&'# 6&:$66$) H-&(6.+$F2 G
%/.'&'(,51
+."'$) ,"".++(5*
%$11&*$1 +$%,'$60
', 1,%$ 5.%:$+(5,-'#$ 95'$+5$'
'&+*$'$) /+,',",612
5,)$1 9'
7:6.$ :,;$183 )+,//$)3
1,6.'(,51<#("# (1 (66.1'+&'$)
/+,/&*&'$ ./ '#+,.*#:0'#$
'#$DGE
:6&"@ /&'#6&0$+
/+,',",6 6&:$66$) H-&(6.+$
', JDDE3 (66.
COMPONENTS
•A single parasite node coordinates the computations
occurring remotely in the internet protocols.
• Parasite
computing does not need special software on any
target machine, as in cluster computing
• For servers
• Parasitic
Computing logically moves computation onto the
communication infrastructure of internet, blurring the distance
between computation and communication
• www.hindu.com/thehindu/2001/09/13/stories/08130001.htm
• http://en.wikipedia.org/wiki/Parasitic_computing
QUESTIONS
?
THANK YOU
SUPPLEMENTARY
TCP MESSAGE FORMAT
EXAMPLE HTTP - HTML
RESPONSE
<html>
<head>
<Title> Notre Dame Computer Science and Engineering </Title>
</head>
<body bgcolor=white>
<center>
<img align=middle src=http://www.nd.edu/NDGrafix/NDCSE.gif
alt="[ U_N_I_V_E_R_S_I_T_Y___o_f___N_O_T_R_E___D_A_M_E ]">
<h1></h1><h2><p> That feature is not implelemented on this server (501): <br> /index.html </h2>
therefore, there is a single checksum for all tests. In the main loop of the algorithm, a test solution is placed
into the data field of the segment. Then the packet is sent, and we wait for an answer.