PS C:\Users\20511\Desktop\SPDL-main> python main.py
grpc listen port:50055
127.0.0.1:50055
start grpc_join_node thread ......
<= grpc link to 127.0.0.1:50055
grpc listen port:50051
127.0.0.1:50051
start grpc_join_node thread ......
<= grpc link to 127.0.0.1:50051
grpc listen port:50057
127.0.0.1:50057
start grpc_join_node thread ......
<= grpc link to 127.0.0.1:50057
grpc listen port:50053
127.0.0.1:50053
start grpc_join_node thread ......
<= grpc link to 127.0.0.1:50053
hello message: 127.0.0.1:50055
print in Hello:
127.0.0.1:50055
=> Node Port:50055
hello message: 127.0.0.1:50051
print in Hello:
127.0.0.1:50051
=> Node Port:50051
hello message: 127.0.0.1:50057
print in Hello:
127.0.0.1:50057
=> Node Port:50057
hello message: 127.0.0.1:50053
print in Hello:
127.0.0.1:50053
=> Node Port:50053
hello_response value: “50056”
hello_response value: “50052”
hello_response value: “50058”
hello_response value: “50054”
=> hello port:50056
<= connect to socket will get myIP
=> Node IP:127.0.0.1
=> get myIP:127.0.0.1
print in grpcJoinNode:
127.0.0.1:50055
start exchange_loop thread ......
exchange loop is ended
<= exchange list broadcast [‘127.0.0.1:50055’, ‘127.0.0.1:50051’, ‘127.0.0.1:50057’, ‘127.0.0.1:50053’]
[‘127.0.0.1:50055’, ‘127.0.0.1:50051’, ‘127.0.0.1:50057’, ‘127.0.0.1:50053’]
print nodes in broadcast:
{‘127.0.0.1:50053’, ‘127.0.0.1:50057’, ‘127.0.0.1:50051’}
print nodes in broadcast:
{‘127.0.0.1:50053’, ‘127.0.0.1:50057’, ‘127.0.0.1:50051’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
=> hello port:50052
<= connect to socket will get myIP
=> Node IP:127.0.0.1
=> get myIP:127.0.0.1
print in grpcJoinNode:
127.0.0.1:50051
start exchange_loop thread ......
exchange loop is ended
<= exchange list broadcast [‘127.0.0.1:50055’, ‘127.0.0.1:50051’, ‘127.0.0.1:50057’, ‘127.0.0.1:50053’]
[‘127.0.0.1:50055’, ‘127.0.0.1:50051’, ‘127.0.0.1:50057’, ‘127.0.0.1:50053’]
print nodes in broadcast:
{‘127.0.0.1:50057’, ‘127.0.0.1:50053’, ‘127.0.0.1:50055’}
print nodes in broadcast:
{‘127.0.0.1:50057’, ‘127.0.0.1:50053’, ‘127.0.0.1:50055’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
=> hello port:50058
<= connect to socket will get myIP
=> Node IP:127.0.0.1
=> get myIP:127.0.0.1
print in grpcJoinNode:
127.0.0.1:50057
start exchange_loop thread ......
exchange loop is ended
<= exchange list broadcast [‘127.0.0.1:50055’, ‘127.0.0.1:50051’, ‘127.0.0.1:50057’, ‘127.0.0.1:50053’]
[‘127.0.0.1:50055’, ‘127.0.0.1:50051’, ‘127.0.0.1:50057’, ‘127.0.0.1:50053’]
print nodes in broadcast:
{‘127.0.0.1:50055’, ‘127.0.0.1:50053’, ‘127.0.0.1:50051’}
print nodes in broadcast:
{‘127.0.0.1:50055’, ‘127.0.0.1:50053’, ‘127.0.0.1:50051’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
=> hello port:50054
<= connect to socket will get myIP
=> Node IP:127.0.0.1
=> get myIP:127.0.0.1
print in grpcJoinNode:
127.0.0.1:50053
start exchange_loop thread ......
exchange loop is ended
<= exchange list broadcast [‘127.0.0.1:50055’, ‘127.0.0.1:50051’, ‘127.0.0.1:50057’, ‘127.0.0.1:50053’]
[‘127.0.0.1:50055’, ‘127.0.0.1:50051’, ‘127.0.0.1:50057’, ‘127.0.0.1:50053’]
print nodes in broadcast:
{‘127.0.0.1:50051’, ‘127.0.0.1:50055’, ‘127.0.0.1:50057’}
print nodes in broadcast:
{‘127.0.0.1:50051’, ‘127.0.0.1:50055’, ‘127.0.0.1:50057’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 0 ==============
============== time_cor= 0.010061025619506836 ==============
============== time_com= 0.022408008575439453 ==============
print nodes in broadcast:
{‘127.0.0.1:50053’, ‘127.0.0.1:50057’, ‘127.0.0.1:50051’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 0 ==============
============== time_cor= 0.009228706359863281 ==============
============== time_com= 0.02202010154724121 ==============
print nodes in broadcast:
{‘127.0.0.1:50057’, ‘127.0.0.1:50053’, ‘127.0.0.1:50055’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 0 ==============
============== time_cor= 0.009593725204467773 ==============
============== time_com= 0.028870820999145508 ==============
print nodes in broadcast:
{‘127.0.0.1:50055’, ‘127.0.0.1:50053’, ‘127.0.0.1:50051’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 0 ==============
============== time_cor= 0.006794452667236328 ==============
============== time_com= 0.028125762939453125 ==============
print nodes in broadcast:
{‘127.0.0.1:50051’, ‘127.0.0.1:50055’, ‘127.0.0.1:50057’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 1 ==============
============== time_cor= 0.009354114532470703 ==============
============== time_com= 0.012994527816772461 ==============
print nodes in broadcast:
{‘127.0.0.1:50053’, ‘127.0.0.1:50057’, ‘127.0.0.1:50051’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 1 ==============
============== time_cor= 0.009210348129272461 ==============
============== time_com= 0.047998905181884766 ==============
print nodes in broadcast:
{‘127.0.0.1:50057’, ‘127.0.0.1:50053’, ‘127.0.0.1:50055’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 1 ==============
============== time_cor= 0.007086038589477539 ==============
============== time_com= 0.048995256423950195 ==============
print nodes in broadcast:
{‘127.0.0.1:50055’, ‘127.0.0.1:50053’, ‘127.0.0.1:50051’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 1 ==============
============== time_cor= 0.009991645812988281 ==============
============== time_com= 0.012011289596557617 ==============
print nodes in broadcast:
{‘127.0.0.1:50051’, ‘127.0.0.1:50055’, ‘127.0.0.1:50057’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 2 ==============
============== time_cor= 0.008996963500976562 ==============
============== time_com= 0.01698446273803711 ==============
print nodes in broadcast:
{‘127.0.0.1:50053’, ‘127.0.0.1:50057’, ‘127.0.0.1:50051’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 2 ==============
============== time_cor= 0.009229898452758789 ==============
============== time_com= 0.01952219009399414 ==============
print nodes in broadcast:
{‘127.0.0.1:50057’, ‘127.0.0.1:50053’, ‘127.0.0.1:50055’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 2 ==============
============== time_cor= 0.008509635925292969 ==============
============== time_com= 0.012726068496704102 ==============
print nodes in broadcast:
{‘127.0.0.1:50055’, ‘127.0.0.1:50053’, ‘127.0.0.1:50051’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 2 ==============
============== time_cor= 0.010016679763793945 ==============
============== time_com= 0.009711742401123047 ==============
print nodes in broadcast:
{‘127.0.0.1:50051’, ‘127.0.0.1:50055’, ‘127.0.0.1:50057’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 3 ==============
============== time_cor= 0.00924992561340332 ==============
============== time_com= 0.015358686447143555 ==============
============== EPOCH= 3 ==============
============== time_cor= 0.00943136215209961 ==============
============== time_com= 0.02849721908569336 ==============
============== EPOCH= 3 ==============
============== time_cor= 0.008000612258911133 ==============
============== time_com= 0.014923334121704102 ==============
============== EPOCH= 3 ==============
============== time_cor= 0.008779287338256836 ==============
============== time_com= 0.009000062942504883 ==============
All processes finished.
PS C:\Users\20511\Desktop\SPDL-main>