SlideShare ist ein Scribd-Unternehmen logo
1 von 22
Reconsider TCPdump and
Move Forward with Modern
Troubleshooting
Chad Tripod, Avi Networks
TCPdump to the Rescue
7 6 5 4 3 2 1 0 0*2 + 0*2 + 0*2 + 1*2 + 0*2 + 0*2 + 1*2 + 0*2 = 18
Now we can't just use 'tcp[13] == 18' in the tcpdump filter expression, because that would select only those packets that have
SYN-ACK set, but not those with only SYN set. Remember that we don't care if ACK or any other control bit is set as long as
SYN is set.
In order to achieve our goal, we need to logically AND the binary value of octet 13 with some other value to preserve the
SYN bit. We know that we want SYN to be set in any case, so we'll logically AND the value in the 13th octet with the binary
value of a SYN:
00010010 SYN-ACK 00000010 SYN AND 00000010 (we want SYN) AND 00000010 (we want SYN) -------- -------- = 00000010 = 00000010
We see that this AND operation delivers the same result regardless whether ACK or another TCP control bit is set. The
decimal representation of the AND value as well as the result of this operation is 2 (binary 00000010), so we know that for
packets with SYN set the following relation must hold true:
( ( value of octet 13 ) AND ( 2 ) ) == ( 2 )
This points us to the tcpdump filter expression
tcpdump -i xl0 'tcp[13] & 2 == 2'
Some offsets and field values may be expressed as names rather than as numeric values. For example tcp[13] may be
replaced with tcp[tcpflags]. The following TCP flag field values are also available: tcp-fin, tcp-syn, tcp-rst, tcp-push, tcp-ack,
tcp-urg.
This can be demonstrated as:
tcpdump -i xl0 'tcp[tcpflags] & tcp-push != 0'
Note that you should use single quotes or a backslash in the expression to hide the AND ('&') special character from the
shell.
UDP Packets
UDP format is illustrated by this rwho packet:
https://www.tcpdump.org/manpages/tcpdump.1.html
For the past 30 years
• Powerful
• Detailed
• Specialized
For the next 30 years
• Speed and time
• Predictability
• Future-proofing
TCPdump Timeline
State of the
affairs
• Real-time
triage
• Multi-cloud
• Predictive
analytics
Immediate
future
• HTTP/2
• PFS impact:
NPM / APM
• TLS 1.3
Not-so-distant
future
• HTTP/3
• Kubernetes
container
clusters
• Blue/Green
deployments
Copyright © 2018 Avi Networks
State of the affairs
Copyright © 2018 Avi Networks
Triage Challenges
• You must know an issue exists in order to find it with TCPdump
• You must capture packets while the issue is occurring
• The issue must be in the network segment you are capturing
• You must have all the correct parameters, such as snaplen
App has incorrect
permissions set for
an HTTP imageTap Tap
Do More with Less in a Multi-Cloud World
TCPdump may be old, but does that matter?
• Application proliferation as apps move from bare metal to virtual machine to containers
• Network teams are asked to do more with the same number of people
• Network analysis in public clouds and containers requires different tools
Technology Has Changed for the Better
• Artificial Intelligence (applied Machine Learning)
• Visibility / Analytics
• Shift from data points to actionable information
• With Avi, Analytics do not put pressure on the load balancer (service engine)
because the data is being processed on the controller
Troubleshoot
transient issue?
Side effects vs.
root cause?
Baseline for
detection?
Technology Has Changed for the Better: Artificial Intelligence
• Anomaly detection algorithms swiftly sift through data to provide intelligent insights
• Automation detects and even correct problems before end users feel or report them
Anomaly detection: A slow server is degrading end user experience of a virtual service
Immediate future
Copyright © 2018 Avi Networks
Technology Has Changed: HTTP/2
• Multiple streams (requests) are multiplexed over a single connection
• Headers are compressed with HPACK
• Most browsers require HTTP/2
use modern TLS encryption
• HTTP/2 has strict requirements for TLS cipher
suites, preferring connections over PFS
HTTP/2 connection to www.google.com
Technology Has Changed: Perfect Forward Secrecy
• TCPdump and Wireshark can decrypt SSL with the private keys
• Modern TLS is moving to ephemeral key exchange (PFS)
– The private key is rotated, often every day
– The client and server can still decrypt the connection and view clear text
– Man in the middle devices, such as NPMs, aren’t able to view traffic
Tap
NPM
Technology Has Changed: TLS 1.3
• TLS 1.3 introduces SSL certificate encryption
• Breaking “middlebox” scenarios
• SNI fields will be encrypted and tunneled
• MITM mitigation
• Removal of RSA and Diffie-Hellman Ciphers Suites
Copyright © 2018 Avi Networks
Not-so-distant future
Copyright © 2018 Avi Networks
Real Game Changers: HTTP/3
• Soon HTTP / 3 (HTTP over QUIC) - UDP
Real Game Changers: Container and Kubernetes
• Containers and Kubernetes require service mesh to network services
• Dynamic scale of microservices
• Sheer volume of microservices (adoption will increase)
• Deployed in multi-cloud for no vendor lock-in
• In 5 years, more applications will be written in micro services architecture
Real Game Changers: Microservices
• Rapid CI/CD deployment
• Blue/Green code version updates
• Tracing
• Ingress
• East-West
• Service mesh
BARE METAL VIRTUALIZED CONTAINERSON PREMISES PUBLIC CLOUDVIRTUALIZED CONTAINERS
Modern, Scalable, Multi-Cloud Architecture
CONTROLLER
(SaaS / Customer-Managed)
SERVICE
ENGINE
SEPARATE CONTROL
& DATA PLANE
ELASTICITY
INTELLIGENCE AUTOMATION
Copyright © 2019 Avi Networks
MULTI-CLOUD
Demo
TCPdump: Tool of Last Resort
• What if I still need to do TCPdump on Avi?
• Available within the Avi Controller UI
– Perform traffic capture on a virtual service
– Traffic capture is executed on all Service Engines hosting the VS
– A single PCAP file is created from traffic aggregated across all Service Engines
CONTROLLER
SERVICE
ENGINE
VS1 VS1 VS1
Network Analytics with TLS and Forward Secrecy
• What if I still need to do capture traffic elsewhere on the network?
• Avi Service Engines can mirror or clone traffic to NPM or network analytics tools
• Cloned traffic may be clear text or re-encrypted with non-PFS TLS for wire to wire encryption
• Traffic sent to public networks is encrypted with modern TLS encryption
NPM
Modernize Your World
• Troubleshoot faster
• Do more with less… even as network and apps grow
Happy birthday TCPdump…
but it’s time to let go of those red balloons
Thank You!
Chad Tripod, Avi Networks
chad@avinetworks.com
avinetworks.com
Watch webinars:
avinetworks.com/webinars-avi-tech-corner/
Try out Avi:
Request a demo @ avinetworks.com
Learn more:
avinetworks.com/workshops

Weitere ähnliche Inhalte

Was ist angesagt?

Thunder Series Unified Application Service Gateway (UASG): 3030S, 1030S and 930
Thunder Series Unified Application Service Gateway (UASG): 3030S, 1030S and 930Thunder Series Unified Application Service Gateway (UASG): 3030S, 1030S and 930
Thunder Series Unified Application Service Gateway (UASG): 3030S, 1030S and 930
A10 Networks
 

Was ist angesagt? (20)

An SD-WAN Bill of Rights
An SD-WAN Bill of RightsAn SD-WAN Bill of Rights
An SD-WAN Bill of Rights
 
Deploying mobile unified communications and collaboration (UCC) with Microsof...
Deploying mobile unified communications and collaboration (UCC) with Microsof...Deploying mobile unified communications and collaboration (UCC) with Microsof...
Deploying mobile unified communications and collaboration (UCC) with Microsof...
 
Shanghai Breakout: Location Analytics – Key Considerations and Use Cases
Shanghai Breakout: Location Analytics – Key Considerations and Use CasesShanghai Breakout: Location Analytics – Key Considerations and Use Cases
Shanghai Breakout: Location Analytics – Key Considerations and Use Cases
 
Tech Talk by Tim Van Herck: SDN & NFV for WAN
Tech Talk by Tim Van Herck: SDN & NFV for WANTech Talk by Tim Van Herck: SDN & NFV for WAN
Tech Talk by Tim Van Herck: SDN & NFV for WAN
 
Thunder Series Unified Application Service Gateway (UASG): 3030S, 1030S and 930
Thunder Series Unified Application Service Gateway (UASG): 3030S, 1030S and 930Thunder Series Unified Application Service Gateway (UASG): 3030S, 1030S and 930
Thunder Series Unified Application Service Gateway (UASG): 3030S, 1030S and 930
 
A Software Defined WAN Architecture
A Software Defined WAN ArchitectureA Software Defined WAN Architecture
A Software Defined WAN Architecture
 
Case Study: Responsive Networks with Closed Loop Automation
Case Study: Responsive Networks with Closed Loop AutomationCase Study: Responsive Networks with Closed Loop Automation
Case Study: Responsive Networks with Closed Loop Automation
 
SD-WAN for Service Providers - VeloCloud
SD-WAN for Service Providers - VeloCloudSD-WAN for Service Providers - VeloCloud
SD-WAN for Service Providers - VeloCloud
 
SD-WAN for Public & Private Clouds - VeloCloud
SD-WAN for Public & Private Clouds - VeloCloudSD-WAN for Public & Private Clouds - VeloCloud
SD-WAN for Public & Private Clouds - VeloCloud
 
China Telecom Americas: SD-WAN Overview
China Telecom Americas:  SD-WAN OverviewChina Telecom Americas:  SD-WAN Overview
China Telecom Americas: SD-WAN Overview
 
Verizon Managed SD-WAN with Cisco IWAN
Verizon Managed SD-WAN with Cisco IWAN Verizon Managed SD-WAN with Cisco IWAN
Verizon Managed SD-WAN with Cisco IWAN
 
Cisco Connect Halifax 2018 Understanding Cisco's next generation sd-wan sol...
Cisco Connect Halifax 2018   Understanding Cisco's next generation sd-wan sol...Cisco Connect Halifax 2018   Understanding Cisco's next generation sd-wan sol...
Cisco Connect Halifax 2018 Understanding Cisco's next generation sd-wan sol...
 
Software defined networking (sdn) deep dive 3rd-party ecosystem apps and the ...
Software defined networking (sdn) deep dive 3rd-party ecosystem apps and the ...Software defined networking (sdn) deep dive 3rd-party ecosystem apps and the ...
Software defined networking (sdn) deep dive 3rd-party ecosystem apps and the ...
 
How I learned to stop worrying and love the cloud
How I learned to stop worrying and love the cloudHow I learned to stop worrying and love the cloud
How I learned to stop worrying and love the cloud
 
Enhance network security with Multi-Factor Authentication for BYOD and guest ...
Enhance network security with Multi-Factor Authentication for BYOD and guest ...Enhance network security with Multi-Factor Authentication for BYOD and guest ...
Enhance network security with Multi-Factor Authentication for BYOD and guest ...
 
SD-WAN Economics 101 - VeloCloud
SD-WAN Economics 101 - VeloCloudSD-WAN Economics 101 - VeloCloud
SD-WAN Economics 101 - VeloCloud
 
09 (IDNOG02) Services SDN & NFV Delivering more with less by Mochammad Irzan
09 (IDNOG02) Services SDN & NFV Delivering more with less by Mochammad Irzan09 (IDNOG02) Services SDN & NFV Delivering more with less by Mochammad Irzan
09 (IDNOG02) Services SDN & NFV Delivering more with less by Mochammad Irzan
 
Fast Kafka Apps! (Edoardo Comar and Mickael Maison, IBM) Kafka Summit London ...
Fast Kafka Apps! (Edoardo Comar and Mickael Maison, IBM) Kafka Summit London ...Fast Kafka Apps! (Edoardo Comar and Mickael Maison, IBM) Kafka Summit London ...
Fast Kafka Apps! (Edoardo Comar and Mickael Maison, IBM) Kafka Summit London ...
 
Getting the most out of the aruba policy enforcement firewall
Getting the most out of the aruba policy enforcement firewallGetting the most out of the aruba policy enforcement firewall
Getting the most out of the aruba policy enforcement firewall
 
Software-Defined WAN: A Real World Success Story
Software-Defined WAN: A Real World Success StorySoftware-Defined WAN: A Real World Success Story
Software-Defined WAN: A Real World Success Story
 

Ähnlich wie Reconsider TCPdump for Modern Troubleshooting

Dccp evaluation for sip signaling ict4 m
Dccp evaluation for sip signaling   ict4 m Dccp evaluation for sip signaling   ict4 m
Dccp evaluation for sip signaling ict4 m
Agus Awaludin
 
Programming TCP for responsiveness
Programming TCP for responsivenessProgramming TCP for responsiveness
Programming TCP for responsiveness
Kazuho Oku
 

Ähnlich wie Reconsider TCPdump for Modern Troubleshooting (20)

Abandon Decades-Old TCPdump for Modern Troubleshooting
Abandon Decades-Old TCPdump for Modern TroubleshootingAbandon Decades-Old TCPdump for Modern Troubleshooting
Abandon Decades-Old TCPdump for Modern Troubleshooting
 
Tuning TCP and NGINX on EC2
Tuning TCP and NGINX on EC2Tuning TCP and NGINX on EC2
Tuning TCP and NGINX on EC2
 
Dccp evaluation for sip signaling ict4 m
Dccp evaluation for sip signaling   ict4 m Dccp evaluation for sip signaling   ict4 m
Dccp evaluation for sip signaling ict4 m
 
Real-time in the real world: DIRT in production
Real-time in the real world: DIRT in productionReal-time in the real world: DIRT in production
Real-time in the real world: DIRT in production
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3
 
Insights into the performance and configuration of TCP in Automotive Ethernet...
Insights into the performance and configuration of TCP in Automotive Ethernet...Insights into the performance and configuration of TCP in Automotive Ethernet...
Insights into the performance and configuration of TCP in Automotive Ethernet...
 
User Datagram Protocol
User Datagram ProtocolUser Datagram Protocol
User Datagram Protocol
 
UAV Data Link Design for Dependable Real-Time Communications
UAV Data Link Design for Dependable Real-Time CommunicationsUAV Data Link Design for Dependable Real-Time Communications
UAV Data Link Design for Dependable Real-Time Communications
 
Lecture set 7
Lecture set 7Lecture set 7
Lecture set 7
 
Beyond TCP: The evolution of Internet transport protocols
Beyond TCP: The evolution of Internet transport protocolsBeyond TCP: The evolution of Internet transport protocols
Beyond TCP: The evolution of Internet transport protocols
 
Master Class : TCP/IP Mechanics from Scratch to Expert
Master Class : TCP/IP Mechanics from Scratch to ExpertMaster Class : TCP/IP Mechanics from Scratch to Expert
Master Class : TCP/IP Mechanics from Scratch to Expert
 
Primer to Browser Netwroking
Primer to Browser NetwrokingPrimer to Browser Netwroking
Primer to Browser Netwroking
 
A REPORT ON CITRIX INDEPENDENT COMPUTING ARCHITECTURE (ICA) PROTOCOL
A REPORT ON CITRIX INDEPENDENT COMPUTING  ARCHITECTURE (ICA) PROTOCOL A REPORT ON CITRIX INDEPENDENT COMPUTING  ARCHITECTURE (ICA) PROTOCOL
A REPORT ON CITRIX INDEPENDENT COMPUTING ARCHITECTURE (ICA) PROTOCOL
 
Programming TCP for responsiveness
Programming TCP for responsivenessProgramming TCP for responsiveness
Programming TCP for responsiveness
 
F5 tcpdump
F5 tcpdumpF5 tcpdump
F5 tcpdump
 
Pipelined Compression in Remote GPU Virtualization Systems using rCUDA: Early...
Pipelined Compression in Remote GPU Virtualization Systems using rCUDA: Early...Pipelined Compression in Remote GPU Virtualization Systems using rCUDA: Early...
Pipelined Compression in Remote GPU Virtualization Systems using rCUDA: Early...
 
07 coms 525 tcpip - udp
07    coms 525 tcpip - udp07    coms 525 tcpip - udp
07 coms 525 tcpip - udp
 
Network performance overview
Network  performance overviewNetwork  performance overview
Network performance overview
 
wireshark.pdf
wireshark.pdfwireshark.pdf
wireshark.pdf
 
Tcp congestion avoidance algorithm identification
Tcp congestion avoidance algorithm identificationTcp congestion avoidance algorithm identification
Tcp congestion avoidance algorithm identification
 

Mehr von Avi Networks

Mehr von Avi Networks (20)

DR On Demand At Fraction of the Cost (1).pptx
DR On Demand At Fraction of the Cost (1).pptxDR On Demand At Fraction of the Cost (1).pptx
DR On Demand At Fraction of the Cost (1).pptx
 
Cloud_controllers_public_webinar_aug31_v1.pptx
Cloud_controllers_public_webinar_aug31_v1.pptxCloud_controllers_public_webinar_aug31_v1.pptx
Cloud_controllers_public_webinar_aug31_v1.pptx
 
Top 4 Reasons to Migrate From NSX Load Balancing to NSX Advanced Load Balancer
Top 4 Reasons to Migrate From NSX Load Balancing to NSX Advanced Load BalancerTop 4 Reasons to Migrate From NSX Load Balancing to NSX Advanced Load Balancer
Top 4 Reasons to Migrate From NSX Load Balancing to NSX Advanced Load Balancer
 
23.06.15 NSX ALB and vCD integration deepdive_webinar0615.pptx
23.06.15 NSX ALB and vCD integration deepdive_webinar0615.pptx23.06.15 NSX ALB and vCD integration deepdive_webinar0615.pptx
23.06.15 NSX ALB and vCD integration deepdive_webinar0615.pptx
 
Enterprises-Have-Replaced-12000-ADCs-See-Why.pptx
Enterprises-Have-Replaced-12000-ADCs-See-Why.pptxEnterprises-Have-Replaced-12000-ADCs-See-Why.pptx
Enterprises-Have-Replaced-12000-ADCs-See-Why.pptx
 
One And Done Multi-Cloud Load Balancing Done Right.pptx
One And Done Multi-Cloud Load Balancing Done Right.pptxOne And Done Multi-Cloud Load Balancing Done Right.pptx
One And Done Multi-Cloud Load Balancing Done Right.pptx
 
Virtualize Application Security Today - Hardware is No Longer Needed.pptx
 Virtualize Application Security Today - Hardware is No Longer Needed.pptx Virtualize Application Security Today - Hardware is No Longer Needed.pptx
Virtualize Application Security Today - Hardware is No Longer Needed.pptx
 
Deploying Elastic Self-Service Load Balancing
Deploying Elastic Self-Service Load BalancingDeploying Elastic Self-Service Load Balancing
Deploying Elastic Self-Service Load Balancing
 
NSX_Advanced_Load_Balancer_Solution_with_Oracle.pptx
NSX_Advanced_Load_Balancer_Solution_with_Oracle.pptxNSX_Advanced_Load_Balancer_Solution_with_Oracle.pptx
NSX_Advanced_Load_Balancer_Solution_with_Oracle.pptx
 
Delivering Turnkey Load Balancing in VMware Cloud with Day 0 Automation
Delivering Turnkey Load Balancing in VMware Cloud with Day 0 Automation Delivering Turnkey Load Balancing in VMware Cloud with Day 0 Automation
Delivering Turnkey Load Balancing in VMware Cloud with Day 0 Automation
 
Bringing SaaS Simplicity to Proactive Support & Live Threat Updates
Bringing SaaS Simplicity to Proactive Support & Live Threat UpdatesBringing SaaS Simplicity to Proactive Support & Live Threat Updates
Bringing SaaS Simplicity to Proactive Support & Live Threat Updates
 
Avi workshop-101
Avi workshop-101Avi workshop-101
Avi workshop-101
 
Working From Anywhere​ with​ Advanced Load Balancing​ and ​ VMware Horizon VDI
Working From Anywhere​ with​ Advanced Load Balancing​ and ​ VMware Horizon VDI Working From Anywhere​ with​ Advanced Load Balancing​ and ​ VMware Horizon VDI
Working From Anywhere​ with​ Advanced Load Balancing​ and ​ VMware Horizon VDI
 
Deploying Elastic, Self-Service Load Balancing for VMware NSX-T
Deploying Elastic, Self-Service Load Balancing for VMware NSX-TDeploying Elastic, Self-Service Load Balancing for VMware NSX-T
Deploying Elastic, Self-Service Load Balancing for VMware NSX-T
 
Avi v20.1 — What’s New in Scalable, Multi-Cloud Load Balancing
Avi v20.1 — What’s New in Scalable, Multi-Cloud Load BalancingAvi v20.1 — What’s New in Scalable, Multi-Cloud Load Balancing
Avi v20.1 — What’s New in Scalable, Multi-Cloud Load Balancing
 
Enterprise-Grade Load Balancing for VMware Cloud on AWS (VMC)
Enterprise-Grade Load Balancing for VMware Cloud on AWS (VMC)Enterprise-Grade Load Balancing for VMware Cloud on AWS (VMC)
Enterprise-Grade Load Balancing for VMware Cloud on AWS (VMC)
 
Multi Cloud Load Balancing 101 and Hands On Lab
Multi Cloud Load Balancing 101 and Hands On LabMulti Cloud Load Balancing 101 and Hands On Lab
Multi Cloud Load Balancing 101 and Hands On Lab
 
Deliver Modern Applications with an Elastic Load Balancing Fabric Powered by ...
Deliver Modern Applications with an Elastic Load Balancing Fabric Powered by ...Deliver Modern Applications with an Elastic Load Balancing Fabric Powered by ...
Deliver Modern Applications with an Elastic Load Balancing Fabric Powered by ...
 
Multi Cloud Load balancing 101 and Hands-on Lab
Multi Cloud Load balancing 101 and Hands-on LabMulti Cloud Load balancing 101 and Hands-on Lab
Multi Cloud Load balancing 101 and Hands-on Lab
 
Multi-Cloud Load Balancing 101 and Hands-On Lab
Multi-Cloud Load Balancing 101 and Hands-On LabMulti-Cloud Load Balancing 101 and Hands-On Lab
Multi-Cloud Load Balancing 101 and Hands-On Lab
 

Kürzlich hochgeladen

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 

Reconsider TCPdump for Modern Troubleshooting

  • 1. Reconsider TCPdump and Move Forward with Modern Troubleshooting Chad Tripod, Avi Networks
  • 2. TCPdump to the Rescue 7 6 5 4 3 2 1 0 0*2 + 0*2 + 0*2 + 1*2 + 0*2 + 0*2 + 1*2 + 0*2 = 18 Now we can't just use 'tcp[13] == 18' in the tcpdump filter expression, because that would select only those packets that have SYN-ACK set, but not those with only SYN set. Remember that we don't care if ACK or any other control bit is set as long as SYN is set. In order to achieve our goal, we need to logically AND the binary value of octet 13 with some other value to preserve the SYN bit. We know that we want SYN to be set in any case, so we'll logically AND the value in the 13th octet with the binary value of a SYN: 00010010 SYN-ACK 00000010 SYN AND 00000010 (we want SYN) AND 00000010 (we want SYN) -------- -------- = 00000010 = 00000010 We see that this AND operation delivers the same result regardless whether ACK or another TCP control bit is set. The decimal representation of the AND value as well as the result of this operation is 2 (binary 00000010), so we know that for packets with SYN set the following relation must hold true: ( ( value of octet 13 ) AND ( 2 ) ) == ( 2 ) This points us to the tcpdump filter expression tcpdump -i xl0 'tcp[13] & 2 == 2' Some offsets and field values may be expressed as names rather than as numeric values. For example tcp[13] may be replaced with tcp[tcpflags]. The following TCP flag field values are also available: tcp-fin, tcp-syn, tcp-rst, tcp-push, tcp-ack, tcp-urg. This can be demonstrated as: tcpdump -i xl0 'tcp[tcpflags] & tcp-push != 0' Note that you should use single quotes or a backslash in the expression to hide the AND ('&') special character from the shell. UDP Packets UDP format is illustrated by this rwho packet: https://www.tcpdump.org/manpages/tcpdump.1.html For the past 30 years • Powerful • Detailed • Specialized For the next 30 years • Speed and time • Predictability • Future-proofing
  • 3. TCPdump Timeline State of the affairs • Real-time triage • Multi-cloud • Predictive analytics Immediate future • HTTP/2 • PFS impact: NPM / APM • TLS 1.3 Not-so-distant future • HTTP/3 • Kubernetes container clusters • Blue/Green deployments Copyright © 2018 Avi Networks
  • 4. State of the affairs Copyright © 2018 Avi Networks
  • 5. Triage Challenges • You must know an issue exists in order to find it with TCPdump • You must capture packets while the issue is occurring • The issue must be in the network segment you are capturing • You must have all the correct parameters, such as snaplen App has incorrect permissions set for an HTTP imageTap Tap
  • 6. Do More with Less in a Multi-Cloud World TCPdump may be old, but does that matter? • Application proliferation as apps move from bare metal to virtual machine to containers • Network teams are asked to do more with the same number of people • Network analysis in public clouds and containers requires different tools
  • 7. Technology Has Changed for the Better • Artificial Intelligence (applied Machine Learning) • Visibility / Analytics • Shift from data points to actionable information • With Avi, Analytics do not put pressure on the load balancer (service engine) because the data is being processed on the controller Troubleshoot transient issue? Side effects vs. root cause? Baseline for detection?
  • 8. Technology Has Changed for the Better: Artificial Intelligence • Anomaly detection algorithms swiftly sift through data to provide intelligent insights • Automation detects and even correct problems before end users feel or report them Anomaly detection: A slow server is degrading end user experience of a virtual service
  • 9. Immediate future Copyright © 2018 Avi Networks
  • 10. Technology Has Changed: HTTP/2 • Multiple streams (requests) are multiplexed over a single connection • Headers are compressed with HPACK • Most browsers require HTTP/2 use modern TLS encryption • HTTP/2 has strict requirements for TLS cipher suites, preferring connections over PFS HTTP/2 connection to www.google.com
  • 11. Technology Has Changed: Perfect Forward Secrecy • TCPdump and Wireshark can decrypt SSL with the private keys • Modern TLS is moving to ephemeral key exchange (PFS) – The private key is rotated, often every day – The client and server can still decrypt the connection and view clear text – Man in the middle devices, such as NPMs, aren’t able to view traffic Tap NPM
  • 12. Technology Has Changed: TLS 1.3 • TLS 1.3 introduces SSL certificate encryption • Breaking “middlebox” scenarios • SNI fields will be encrypted and tunneled • MITM mitigation • Removal of RSA and Diffie-Hellman Ciphers Suites Copyright © 2018 Avi Networks
  • 14. Real Game Changers: HTTP/3 • Soon HTTP / 3 (HTTP over QUIC) - UDP
  • 15. Real Game Changers: Container and Kubernetes • Containers and Kubernetes require service mesh to network services • Dynamic scale of microservices • Sheer volume of microservices (adoption will increase) • Deployed in multi-cloud for no vendor lock-in • In 5 years, more applications will be written in micro services architecture
  • 16. Real Game Changers: Microservices • Rapid CI/CD deployment • Blue/Green code version updates • Tracing • Ingress • East-West • Service mesh
  • 17. BARE METAL VIRTUALIZED CONTAINERSON PREMISES PUBLIC CLOUDVIRTUALIZED CONTAINERS Modern, Scalable, Multi-Cloud Architecture CONTROLLER (SaaS / Customer-Managed) SERVICE ENGINE SEPARATE CONTROL & DATA PLANE ELASTICITY INTELLIGENCE AUTOMATION Copyright © 2019 Avi Networks MULTI-CLOUD
  • 18. Demo
  • 19. TCPdump: Tool of Last Resort • What if I still need to do TCPdump on Avi? • Available within the Avi Controller UI – Perform traffic capture on a virtual service – Traffic capture is executed on all Service Engines hosting the VS – A single PCAP file is created from traffic aggregated across all Service Engines CONTROLLER SERVICE ENGINE VS1 VS1 VS1
  • 20. Network Analytics with TLS and Forward Secrecy • What if I still need to do capture traffic elsewhere on the network? • Avi Service Engines can mirror or clone traffic to NPM or network analytics tools • Cloned traffic may be clear text or re-encrypted with non-PFS TLS for wire to wire encryption • Traffic sent to public networks is encrypted with modern TLS encryption NPM
  • 21. Modernize Your World • Troubleshoot faster • Do more with less… even as network and apps grow Happy birthday TCPdump… but it’s time to let go of those red balloons
  • 22. Thank You! Chad Tripod, Avi Networks chad@avinetworks.com avinetworks.com Watch webinars: avinetworks.com/webinars-avi-tech-corner/ Try out Avi: Request a demo @ avinetworks.com Learn more: avinetworks.com/workshops

Hinweis der Redaktion

  1. Next, I am going to talk about how Avi delivers these fundamental values. They need a solid foundation and 5 key building blocks. Avi Vantage Platform – 100% software defined, scalable and distributed modern architecture that best matches the new generation of applications Analytics – visibility is to see which is an important first step. The true value to businesses however comes from actionable insights that can help make better decisions Automation – again it’s more than REST APIs and Ecosystem integration. What makes automation increasingly important is that it’s the critical step to finally operationalize digital transformation – from vision to reality. Let me now go through each of these steps in details. Software defined principle – our architecture separates the control plane and data plane. It allows centralized management and policies with distributed data plane referred to as Ses. SEs can scale out and in automatically – seamless scaling based on workloads. Automation is really the invisible secret sauce that makes this possible. And to make full-stack automation, it’s key to integrate into a rich set of ecosystem with 100% clean REST APIs. SEs can be deployed across heterogeneous environment – x86 bare metal servers, in virtualized environments or along side containers in both on-prem data centers, private clouds and public clouds. Multi-cloud is important not only due to the flexibility and freedom it allows but also reduces your risk of being forced to put all your eggs in one basket. Ultimately, what’s driving all these is the intelligence Avi’s built in analytics brings. It helps your teams work smarter, your infrastructure to react to changing demands faster and enable you to make wiser decisions.