Here is the main logic for jaeger agent and jaeger collector. (Based on jaeger 1.13.1)
Collect UDP packet from 6831 port, convert it to
model.Span, send to collector by gRPC
Process gRPC or process packet from Zipkin(port 9411).
Listen gRPC and HTTP request from 16686.