PS C:\Users\20511\Desktop\SPDL-main> python main.py
grpc listen port:50055
127.0.0.1:50055
start grpc_join_node thread ......
=> get new Node 127.0.0.1:50055
<= grpc link to 127.0.0.1:50055
grpc listen port:50051
127.0.0.1:50051
start grpc_join_node thread ......
=> get new Node 127.0.0.1:50051
<= grpc link to 127.0.0.1:50051
grpc listen port:50057
127.0.0.1:50057
start grpc_join_node thread ......
=> get new Node 127.0.0.1:50057
<= grpc link to 127.0.0.1:50057
grpc listen port:50053
127.0.0.1:50053
start grpc_join_node thread ......
=> get new Node 127.0.0.1:50053
<= 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:50051’, ‘127.0.0.1:50053’}
print nodes in broadcast:
{‘127.0.0.1:50055’, ‘127.0.0.1:50051’, ‘127.0.0.1:50053’}
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:50055’, ‘127.0.0.1:50057’, ‘127.0.0.1:50051’}
print nodes in broadcast:
{‘127.0.0.1:50055’, ‘127.0.0.1:50057’, ‘127.0.0.1:50051’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 0 ==============
============== time_cor= 0.010442733764648438 ==============
============== time_com= 0.018313169479370117 ==============
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.004973173141479492 ==============
============== time_com= 0.0173797607421875 ==============
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.005009651184082031 ==============
============== time_com= 0.01330709457397461 ==============
print nodes in broadcast:
{‘127.0.0.1:50055’, ‘127.0.0.1:50051’, ‘127.0.0.1:50053’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 0 ==============
============== time_cor= 0.005617618560791016 ==============
============== time_com= 0.013881206512451172 ==============
print nodes in broadcast:
{‘127.0.0.1:50055’, ‘127.0.0.1:50057’, ‘127.0.0.1:50051’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 1 ==============
============== time_cor= 0.009691953659057617 ==============
============== time_com= 0.011240005493164062 ==============
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.00812387466430664 ==============
============== time_com= 0.009665250778198242 ==============
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.00791788101196289 ==============
============== time_com= 0.010422468185424805 ==============
print nodes in broadcast:
{‘127.0.0.1:50055’, ‘127.0.0.1:50051’, ‘127.0.0.1:50053’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 1 ==============
============== time_cor= 0.012415170669555664 ==============
============== time_com= 0.009845733642578125 ==============
print nodes in broadcast:
{‘127.0.0.1:50055’, ‘127.0.0.1:50057’, ‘127.0.0.1:50051’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 2 ==============
============== time_cor= 0.011160850524902344 ==============
============== time_com= 0.01750946044921875 ==============
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.008994102478027344 ==============
============== time_com= 0.02104020118713379 ==============
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.010374069213867188 ==============
============== time_com= 0.012291908264160156 ==============
print nodes in broadcast:
{‘127.0.0.1:50055’, ‘127.0.0.1:50051’, ‘127.0.0.1:50053’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 2 ==============
============== time_cor= 0.005948781967163086 ==============
============== time_com= 0.00999903678894043 ==============
print nodes in broadcast:
{‘127.0.0.1:50055’, ‘127.0.0.1:50057’, ‘127.0.0.1:50051’}
Grad Received Successfully
Grad Received Successfully
Grad Received Successfully
============== EPOCH= 3 ==============
============== time_cor= 0.010448932647705078 ==============
============== time_com= 0.01306462287902832 ==============
============== EPOCH= 3 ==============
============== time_cor= 0.008997678756713867 ==============
============== time_com= 0.03700566291809082 ==============
============== EPOCH= 3 ==============
============== time_cor= 0.010465621948242188 ==============
============== time_com= 0.012444496154785156 ==============
============== EPOCH= 3 ==============
============== time_cor= 0.01073312759399414 ==============
============== time_com= 0.011487245559692383 ==============
All processes finished.
PS C:\Users\20511\Desktop\SPDL-main>