-
Notifications
You must be signed in to change notification settings - Fork 50
NETOBSERV-2455 - Get DNS Name #820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
New images: These will expire after two weeks. To deploy this build, run from the operator repo, assuming the operator is running: USER=netobserv VERSION=34362e6 make set-agent-image |
bpf/dns_tracker.h
Outdated
| __uint(max_entries, 1); | ||
| __type(key, u32); | ||
| __type(value, struct dns_parse_buffer); | ||
| } dns_parse_buffer_map SEC(".maps"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need this additional map, u can directly read dns name from dns record and added to metric
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebased to remove the map: e7fe3e5
bpf/dns_tracker.h
Outdated
| if (buf) { | ||
| // Copy raw QNAME bytes (label-encoded) and let userspace decode to dotted form | ||
| __builtin_memset(buf->name, 0, DNS_NAME_MAX_LEN); | ||
| u32 qname_off = dns_offset + sizeof(struct dns_header); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls make sure this math aligns for both DNS over UDP and DNS over TCP , IIRC the headers are of different format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[
{"AgentIP":"172.18.0.4","Bytes":404,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":6893,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.2.13","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-tcp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-tcp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"52:33:c4:4a:12:98","DstPort":47143,"Etype":2048,"Flags":784,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth04302c7a"],"Packets":4,"Proto":6,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"0e:84:de:36:65:f6","SrcPort":53,"TimeFlowEndMs":1761648213185,"TimeFlowStartMs":1761648213184,"TimeReceived":1761648213,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":404,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":6893,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.2.13","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-tcp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-tcp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"42:6f:2b:75:9e:89","DstPort":47143,"Etype":2048,"Flags":784,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":4,"Proto":6,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648213185,"TimeFlowStartMs":1761648213184,"TimeReceived":1761648213,"Udns":[""]},
{"AgentIP":"172.18.0.2","Bytes":232,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":48277,"DnsLatencyMs":0,"DnsName":"_grpc_config.collector","Dscp":0,"DstAddr":"172.18.0.4","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"netobserv-cli-cluster-worker","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"0e:43:ac:ed:03:f4","DstPort":43215,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648213284,"TimeFlowStartMs":1761648213284,"TimeReceived":1761648213,"Udns":["",""]},
{"AgentIP":"172.18.0.2","Bytes":172,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":6893,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.1.14","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"0e:43:ac:ed:03:f4","DstPort":42136,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648213754,"TimeFlowStartMs":1761648213754,"TimeReceived":1761648213,"Udns":["",""]},
{"AgentIP":"172.18.0.2","Bytes":404,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":6893,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.2.13","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-tcp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-tcp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"0e:43:ac:ed:03:f4","DstPort":47143,"Etype":2048,"Flags":784,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":4,"Proto":6,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648213185,"TimeFlowStartMs":1761648213184,"TimeReceived":1761648213,"Udns":["",""]},
{"AgentIP":"172.18.0.2","Bytes":223,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":54591,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.4","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"netobserv-cli-cluster-worker","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"0e:43:ac:ed:03:f4","DstPort":62007,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648213282,"TimeFlowStartMs":1761648213282,"TimeReceived":1761648213,"Udns":["",""]},
{"AgentIP":"172.18.0.3","Bytes":172,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":6893,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.1.14","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"ee:c0:bd:f5:3f:9b","DstPort":42136,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648213754,"TimeFlowStartMs":1761648213754,"TimeReceived":1761648214,"Udns":[""]},
{"AgentIP":"172.18.0.3","Bytes":172,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":6893,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.1.14","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"4e:3d:b4:df:0d:9f","DstPort":42136,"Etype":2048,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth9a9a47c1"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"f2:49:c4:df:2e:bf","SrcPort":53,"TimeFlowEndMs":1761648213754,"TimeFlowStartMs":1761648213754,"TimeReceived":1761648214,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":223,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":54591,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.4","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"netobserv-cli-cluster-worker","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"42:6f:2b:75:9e:89","DstPort":62007,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648213282,"TimeFlowStartMs":1761648213282,"TimeReceived":1761648214,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":232,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":48277,"DnsLatencyMs":0,"DnsName":"_grpc_config.collector","Dscp":0,"DstAddr":"172.18.0.4","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"netobserv-cli-cluster-worker","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"42:6f:2b:75:9e:89","DstPort":43215,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648213284,"TimeFlowStartMs":1761648213284,"TimeReceived":1761648214,"Udns":[""]},
{"AgentIP":"172.18.0.2","Bytes":205,"DnsFlags":34048,"DnsFlagsResponseCode":"NoError","DnsId":35219,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.3","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"netobserv-cli-cluster-worker2","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker2","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"22:c5:11:a1:12:4b","DstPort":58887,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth23eabd9e","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.2","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-6xl5d","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"16:05:90:6e:b9:8c","SrcPort":53,"TimeFlowEndMs":1761648214157,"TimeFlowStartMs":1761648214157,"TimeReceived":1761648214,"Udns":["",""]},
{"AgentIP":"172.18.0.2","Bytes":219,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":3594,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.3","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"netobserv-cli-cluster-worker2","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker2","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"0e:43:ac:ed:03:f4","DstPort":43272,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648214156,"TimeFlowStartMs":1761648214156,"TimeReceived":1761648214,"Udns":["",""]},
{"AgentIP":"172.18.0.2","Bytes":219,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":33572,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.3","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"netobserv-cli-cluster-worker2","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker2","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"0e:43:ac:ed:03:f4","DstPort":57774,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648214156,"TimeFlowStartMs":1761648214156,"TimeReceived":1761648214,"Udns":["",""]},
{"AgentIP":"172.18.0.3","Bytes":205,"DnsFlags":34048,"DnsFlagsResponseCode":"NoError","DnsId":35219,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.3","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"netobserv-cli-cluster-worker2","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker2","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"ee:c0:bd:f5:3f:9b","DstPort":58887,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.2","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-6xl5d","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648214157,"TimeFlowStartMs":1761648214157,"TimeReceived":1761648215,"Udns":[""]},
{"AgentIP":"172.18.0.3","Bytes":219,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":3594,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.3","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"netobserv-cli-cluster-worker2","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker2","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"ee:c0:bd:f5:3f:9b","DstPort":43272,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648214156,"TimeFlowStartMs":1761648214156,"TimeReceived":1761648215,"Udns":[""]},
{"AgentIP":"172.18.0.3","Bytes":219,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":33572,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.3","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"netobserv-cli-cluster-worker2","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker2","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"ee:c0:bd:f5:3f:9b","DstPort":57774,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648214156,"TimeFlowStartMs":1761648214156,"TimeReceived":1761648215,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":404,"DnsFlags":33155,"DnsFlagsResponseCode":"NXDomain","DnsId":22691,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.2.13","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-tcp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-tcp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"42:6f:2b:75:9e:89","DstPort":41203,"Etype":2048,"Flags":784,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":4,"Proto":6,"Sampling":1,"SrcAddr":"10.244.0.2","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-6xl5d","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648263276,"TimeFlowStartMs":1761648263275,"TimeReceived":1761648263,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":404,"DnsFlags":33155,"DnsFlagsResponseCode":"NXDomain","DnsId":22691,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.2.13","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-tcp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-tcp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"52:33:c4:4a:12:98","DstPort":41203,"Etype":2048,"Flags":784,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth04302c7a"],"Packets":4,"Proto":6,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"0e:84:de:36:65:f6","SrcPort":53,"TimeFlowEndMs":1761648263276,"TimeFlowStartMs":1761648263275,"TimeReceived":1761648263,"Udns":[""]},
{"AgentIP":"172.18.0.2","Bytes":172,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":22691,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.1.14","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"22:c5:11:a1:12:4b","DstPort":39766,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth23eabd9e","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.2","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-6xl5d","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"16:05:90:6e:b9:8c","SrcPort":53,"TimeFlowEndMs":1761648263787,"TimeFlowStartMs":1761648263787,"TimeReceived":1761648263,"Udns":["",""]},
{"AgentIP":"172.18.0.2","Bytes":404,"DnsFlags":33155,"DnsFlagsResponseCode":"NXDomain","DnsId":22691,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.2.13","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-tcp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-tcp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"22:c5:11:a1:12:4b","DstPort":41203,"Etype":2048,"Flags":784,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth23eabd9e","eth0"],"Packets":4,"Proto":6,"Sampling":1,"SrcAddr":"10.244.0.2","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-6xl5d","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"16:05:90:6e:b9:8c","SrcPort":53,"TimeFlowEndMs":1761648263276,"TimeFlowStartMs":1761648263275,"TimeReceived":1761648263,"Udns":["",""]},
{"AgentIP":"172.18.0.3","Bytes":172,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":22691,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.1.14","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"ee:c0:bd:f5:3f:9b","DstPort":39766,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.2","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-6xl5d","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648263787,"TimeFlowStartMs":1761648263787,"TimeReceived":1761648264,"Udns":[""]},
{"AgentIP":"172.18.0.3","Bytes":172,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":22691,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.1.14","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"4e:3d:b4:df:0d:9f","DstPort":39766,"Etype":2048,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth9a9a47c1"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"f2:49:c4:df:2e:bf","SrcPort":53,"TimeFlowEndMs":1761648263787,"TimeFlowStartMs":1761648263787,"TimeReceived":1761648264,"Udns":[""]},
{"AgentIP":"172.18.0.2","Bytes":267,"DnsFlags":33152,"DnsFlagsResponseCode":"NoError","DnsId":38776,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.0.2","DstK8S_HostIP":"172.18.0.2","DstK8S_HostName":"netobserv-cli-cluster-control-plane","DstK8S_Name":"coredns-668d6bf9bc-6xl5d","DstK8S_Namespace":"kube-system","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"coredns","DstK8S_OwnerType":"Deployment","DstK8S_Type":"Pod","DstMac":"16:05:90:6e:b9:8c","DstPort":44522,"Etype":2048,"Flags":272,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth23eabd9e"],"Packets":3,"Proto":6,"Sampling":1,"SrcAddr":"172.18.0.1","SrcMac":"22:c5:11:a1:12:4b","SrcPort":53,"TimeFlowEndMs":1761648327877,"TimeFlowStartMs":1761648327876,"TimeReceived":1761648327,"Udns":[""]},
{"AgentIP":"172.18.0.2","Bytes":115,"DnsFlags":33152,"DnsFlagsResponseCode":"NoError","DnsId":52045,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"0e:43:ac:ed:03:f4","DstPort":47371,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648358919,"TimeFlowStartMs":1761648358919,"TimeReceived":1761648358,"Udns":["",""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":33152,"DnsFlagsResponseCode":"NoError","DnsId":52045,"DnsLatencyMs":1,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"42:6f:2b:75:9e:89","DstPort":47371,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648358919,"TimeFlowStartMs":1761648358919,"TimeReceived":1761648359,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":33152,"DnsFlagsResponseCode":"NoError","DnsId":52045,"DnsLatencyMs":1,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"c6:e1:86:de:a2:92","DstPort":47371,"Etype":2048,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth4aa36302"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"c6:85:41:ed:37:8a","SrcPort":53,"TimeFlowEndMs":1761648358919,"TimeFlowStartMs":1761648358919,"TimeReceived":1761648359,"Udns":[""]},
{"AgentIP":"172.18.0.2","DnsFlags":34176,"DnsFlagsResponseCode":"NoError","DnsId":54455,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"00:00:00:00:00:00","DstPort":41865,"Etype":2048,"FlowDirection":1,"IfDirections":[0],"Interfaces":["unknown"],"Proto":17,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"00:00:00:00:00:00","SrcPort":53,"TimeFlowEndMs":1761648398949,"TimeFlowStartMs":1761648398949,"TimeReceived":1761648398,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":34176,"DnsFlagsResponseCode":"NoError","DnsId":54455,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"42:6f:2b:75:9e:89","DstPort":41865,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648398949,"TimeFlowStartMs":1761648398949,"TimeReceived":1761648399,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":34176,"DnsFlagsResponseCode":"NoError","DnsId":54455,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"c6:e1:86:de:a2:92","DstPort":41865,"Etype":2048,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth4aa36302"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"c6:85:41:ed:37:8a","SrcPort":53,"TimeFlowEndMs":1761648398949,"TimeFlowStartMs":1761648398949,"TimeReceived":1761648399,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":33152,"DnsFlagsResponseCode":"NoError","DnsId":12786,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"c6:e1:86:de:a2:92","DstPort":59563,"Etype":2048,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth4aa36302"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"c6:85:41:ed:37:8a","SrcPort":53,"TimeFlowEndMs":1761648418964,"TimeFlowStartMs":1761648418964,"TimeReceived":1761648419,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":33152,"DnsFlagsResponseCode":"NoError","DnsId":12786,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"42:6f:2b:75:9e:89","DstPort":59563,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648418964,"TimeFlowStartMs":1761648418964,"TimeReceived":1761648419,"Udns":[""]},
{"AgentIP":"172.18.0.2","Bytes":115,"DnsFlags":33152,"DnsFlagsResponseCode":"NoError","DnsId":12786,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"0e:43:ac:ed:03:f4","DstPort":59563,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648418964,"TimeFlowStartMs":1761648418964,"TimeReceived":1761648419,"Udns":["",""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":34176,"DnsFlagsResponseCode":"NoError","DnsId":29279,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"42:6f:2b:75:9e:89","DstPort":55601,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648428971,"TimeFlowStartMs":1761648428971,"TimeReceived":1761648429,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":34176,"DnsFlagsResponseCode":"NoError","DnsId":29279,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"c6:e1:86:de:a2:92","DstPort":55601,"Etype":2048,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth4aa36302"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"c6:85:41:ed:37:8a","SrcPort":53,"TimeFlowEndMs":1761648428971,"TimeFlowStartMs":1761648428971,"TimeReceived":1761648429,"Udns":[""]}
]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've opened a PR on the CLI is someone wanna give a try: netobserv/network-observability-cli#406
pkg/decode/decode_protobuf.go
Outdated
| type Protobuf struct { | ||
| } | ||
|
|
||
| // dnsRawNameToDotted parses a label-encoded DNS QNAME (raw bytes copied from kernel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a good candidate for unit-test as it looks so convoluted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in a4849cb
pkg/decode/decode_protobuf.go
Outdated
| break | ||
| } | ||
| // Stop on compression pointer (0xC0xx) since we didn't follow it in kernel | ||
| if (l & 0xC0) == 0xC0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this 0xC0 magic number ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a skip when a DNS messageg use compression to reduce its size (repeated domain name parts are using pointers).
l is the length byte of a DNS label.
0xC0 in binary is 11000000.
The bitwise AND l & 0xC0 isolates the top two bits of l.
If the result equals 0xC0, it indicates a compression pointer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls add comments with all the above details
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in a4849cb
| uint8(mac), | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another UT is needed for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in a4849cb
.mk/bc.mk
Outdated
| "additional_flow_metrics":"per_cpu_hash", | ||
| "packet_record":"ringbuf", | ||
| "dns_flows":"hash", | ||
| "dns_parse_buffer_map":"percpu_array", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in a4849cb
a4849cb to
e7874a2
Compare
bpf/dns_tracker.h
Outdated
| #define DNS_DEFAULT_PORT 53 | ||
| #define DNS_QR_FLAG 0x8000 | ||
| #define DNS_OPCODE_MASK 0x7800 | ||
| #define DNS_RCODE_MASK 0x0F |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the above are defined but not used anywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch !
|
/LGTM |
|
@jpinsonneau I've reviewed and overall it looks good to me however I'd just like to understand how wide is the impact of not supporting the compression pointers - in your live tests, did you see it happening often, be it in k8s dns context or when connecting to a public server? |
I can run some tests and try to get some numbers 😉 |
|
New images: These will expire after two weeks. To deploy this build, run from the operator repo, assuming the operator is running: USER=netobserv VERSION=b63d880 make set-agent-image |
With current implementation on a real OCP cluster:
Increasing the max len to 64 helps a bit:
However, that would highly depend of the workload 🤔 |
|
@jpinsonneau: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/lgtm |




Description
Parse truncated DNS QNAME and append it to the flows when available
Dependencies
n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.
To run a perfscale test, comment with:
/test ebpf-node-density-heavy-25nodes