PaddleFL icon indicating copy to clipboard operation
PaddleFL copied to clipboard

About Http2 communication in Paddlefl

Open Thewindrisers opened this issue 3 years ago • 2 comments

尊敬的paddlefl开发人员您好!我了解到paddlefl的通信框架是采用的Grpc的方式,通过分析通信源码,我理解到Paddlefl应该是采用了第一种Grpc通信方式:即不包含流传输,采用了一般的rpc调用,一个请求对象对应一个返回对象。 通过运行demo时采用wireshark抓包我发现,数据包全都是TCP类型,没有http2协议的握手包和传输包,其应用层数据部分也不含http包头。 对此我有个问题:Grpc作为一个基于http2开发的通信框架,为何在paddlefl的调用过程中没有使用http2协议呢?是因为paddlefl采取的是第一种通信方式(一般的rpc调用)从而不会用到http2协议吗?还是说我的抓包方式有问题,实际还是HTTP2传输的呢? 图片

Thewindrisers avatar Jul 17 '21 05:07 Thewindrisers

Grpc is used only in the horizontal learning mode. In the MPC mode, we do not use Grpc. Instead, we use gloo as communication infra.

honshj avatar Jul 21 '21 06:07 honshj

Grpc is used only in the horizontal learning mode. In the MPC mode, we do not use Grpc. Instead, we use gloo as communication infra.

您好,感谢回复!我这边跑的就是横向联邦学习,跑的是/paddlefl/example里的demo

Thewindrisers avatar Jul 21 '21 06:07 Thewindrisers