help me with Splunk search to display the traffic on Splunk source and destination ports.
You have given us almost nothing but here is a totally wild guess:
index=* | stats sum(bytes) BY src_ip dest_ip