Skip to content

UDP ECHO PLUS client and server by Python

License

Notifications You must be signed in to change notification settings

uabfaho/udp-echo-plus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

udp-echo-plus

UDP ECHO PLUS client and server by Python

Copyright (C) Raymond Zhou 2018
E-Mail : raymond.zhoulei at gmail.com

Follow the Broadband Forum TR-143, A.1 UDP ECHO PLUS.

Server

Start a UDP Echo Plus server with the command
./udpecho_server.py -i 192.168.100.123 -p 30000 -u

Client

Start a UDP Echo Plus client with the data 'Hello,world!'
./udpecho_client.py -i 192.168.100.123 -p 30000 -u -d "Hello,world!" -t 3

Output

Server side

recv UDP Echo message from client ('192.168.100.83', 54142):Hello,world!
recv UDP Echo message from client ('192.168.100.83', 54142):Hello,world!
recv UDP Echo message from client ('192.168.100.83', 54142):Hello,world!
('192.168.100.83', 54142) has existed
UDPEchoConfig_PacketsReceived= 3
UDPEchoConfig_BytesReceived= 120
UDPEchoConfig_PacketsResponded= 3
UDPEchoConfig_BytesResponded= 120

Client side

connect to server: 192.168.100.123 30000
Send Echo Request Hello,world! to 12(32) bytes of data.
Reply from ('192.168.100.123', 30000): seq=1 bytes=32 rtd=1337us
Reply from ('192.168.100.123', 30000): seq=2 bytes=32 rtd=1310us
Reply from ('192.168.100.123', 30000): seq=3 bytes=32 rtd=1886us
RoundTripPacketLoss= 0
SentPacketLoss= 0
ReceivePacketLoss= 0

About

UDP ECHO PLUS client and server by Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%