You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened and what you expected to happen:
I have written a WebSocket program in Python and used it to test the latency increase caused by using Edgemesh. Experiment one involved directly running the Python program between two hosts to test the transmission latency. Experiment two involved packaging the program into a container image and running it in a KubeEdge environment with Edgemesh deployed, again to test transmission latency. The test data is as follows: there was a noticeable increase in latency when using Edgemesh. I would like to inquire about the specific reasons for this latency increase and whether there are ways to reduce it.
How to reproduce it (as minimally and precisely as possible):
import socket
import numpy as np
import json
import time
#创建 socket 对象
socket_client = socket.socket()
socket_client.connect(("10.107.198.254", 8888))
while True:
#用户输入第一维度大小
first_dim = int(input("Enter the size of the first dimension of the array: "))
#定义数组维度并生成数组
dimensions = (first_dim, 56, 56)
np_array = np.random.rand(*dimensions).astype(np.float32)
#发送数组维度信息
dim_info = json.dumps(dimensions)
socket_client.send(dim_info.encode())
#等待确认
ack = socket_client.recv(1024)
if ack.decode() != "ACK":
print("No ACK received")
break
#发送数组数据
time_start = time.time()
binary_data = np_array.tobytes()
socket_client.sendall(binary_data)
#接收响应
data = socket_client.recv(1024).decode("UTF-8")
print(f"服务器回复的消息为:{data}")
time_end = time.time()-time_start
print('所用时间为:',time_end)
#关闭连接
socket_client.close()
Anything else we need to know?:
I conducted several sets of experiments, and the latency with Edgemesh was three to five times higher than the baseline experiment. Moreover, in high-bandwidth networks, Edgemesh showed even worse performance. Surprisingly, it demonstrated more ideal performance in complex network environments across different LANs.
Environment:
Kubernetes version (use kubectl version): 1.23.7
KubeEdge version(e.g. cloudcore --version and edgecore --version): v1.23.17 & v1.22.6-kubeedge-v1.12.1
Edgemesh version: v1.12.1
The text was updated successfully, but these errors were encountered:
What happened and what you expected to happen:
I have written a WebSocket program in Python and used it to test the latency increase caused by using Edgemesh. Experiment one involved directly running the Python program between two hosts to test the transmission latency. Experiment two involved packaging the program into a container image and running it in a KubeEdge environment with Edgemesh deployed, again to test transmission latency. The test data is as follows: there was a noticeable increase in latency when using Edgemesh. I would like to inquire about the specific reasons for this latency increase and whether there are ways to reduce it.
How to reproduce it (as minimally and precisely as possible):
server.py
client.py
Anything else we need to know?:
I conducted several sets of experiments, and the latency with Edgemesh was three to five times higher than the baseline experiment. Moreover, in high-bandwidth networks, Edgemesh showed even worse performance. Surprisingly, it demonstrated more ideal performance in complex network environments across different LANs.
Environment:
kubectl version
): 1.23.7cloudcore --version
andedgecore --version
): v1.23.17 & v1.22.6-kubeedge-v1.12.1The text was updated successfully, but these errors were encountered: