UDP and TCP
I'm trying to verify my understanding of how the ports work here for both UDP and TCP (I think I know how TCP works, but definately not UDP). Assume this is the TCP session. Client ip = 188.8.131.52, Web Server ip = 184.108.40.206.
Client initiates connection to the web server
Client sends SYN to Server. src IP=220.127.116.11:src_port_X dst IP=18.104.22.168:dst_port_80
Server sends SYN ACK to Client. src IP=22.214.171.124:src_port_80 dst IP=126.96.36.199dst_port_X
Client sends ACK to Server. src IP=188.8.131.52:src_port_X dst IP=184.108.40.206:dst_port_80
I believe the above is correct. But now, I would like someone to explain this exact process for UDP (I appreciate there is not a 3 way handshake), but how do the src/dst port's work with UDP. Is it simply this?
Client sends DNS query to server
Client's connection = src IP=220.127.116.11:src_port_X dst IP=18.104.22.168:dst_port_53
Server's connection = src IP=2.2.2:src_port_53 dst IP=22.214.171.124:dst_port_X