Latest / CyberSecurity Summary / Practical Packet Analysis, 3rd Edition: Using Wireshark to Solve Real-World Network Problems
Transcript
- 0:00Speaker 1: Hey everyone, and welcome back for another deep dive.
- 0:02Speaker 2: It's great to be here.
- 0:03Speaker 1: Today. We're going to be taking a look at practical
- 0:06Speaker 1: packet analysis. Oh yeah, by Chris Sanders. Love that book,
- 0:10Speaker 1: really fantastic book about understanding how data moves online.
- 0:14Speaker 2: Yeah, one of the definitive guides to.
- 0:16Speaker 1: This whole topic, and it gets rave reviews for making
- 0:20Speaker 1: this complex topic approachable.
- 0:22Speaker 2: Absolutely, which I gon a need.
- 0:23Speaker 1: Yeah, So before we get lost in the weeds, can
- 0:25Speaker 1: you give me the high level view? What exactly is
- 0:29Speaker 1: packet analysis?
- 0:30Speaker 2: So you know, when you order something online, packet analysis
- 0:34Speaker 2: lets you sort of track every step of that package's journey.
- 0:38Speaker 2: But instead of a physical package, we're talking about data,
- 0:40Speaker 2: got it, So emails, web pages, videos, anything you send
- 0:46Speaker 2: or receive online.
- 0:48Speaker 1: So it's more than just seeing the data arrived. You
- 0:50Speaker 1: can actually examine how it traveled across.
- 0:53Speaker 2: The network exactly. So every piece of data that you
- 0:56Speaker 2: send is broken down into these small units called packets,
- 0:59Speaker 2: and each has instructions on where it came from, where
- 1:02Speaker 2: it's going, and what type of data it contains.
- 1:05Speaker 1: Data travels and packets, But how did these packets actually
- 1:07Speaker 1: know where to go?
- 1:08Speaker 2: Right?
- 1:09Speaker 1: I mean, computers don't speak English, right.
- 1:11Speaker 2: No, they don't, and that's where network protocols come in.
- 1:15Speaker 2: These are the languages that computers use to communicate with
- 1:17Speaker 2: each other.
- 1:18Speaker 1: Got it.
- 1:18Speaker 2: Two of the most important ones are TCP and IP.
- 1:22Speaker 1: TCP and IP. Yeah, I've definitely heard those terms thrown around,
- 1:25Speaker 1: but I think most people have. But can you break
- 1:28Speaker 1: down what each one does?
- 1:29Speaker 2: Sure? So think of TCP as the meticulous organizer, making
- 1:34Speaker 2: sure that all the packets arrive in the correct order
- 1:37Speaker 2: and that none get lost along the way.
- 1:39Speaker 1: Gotcha.
- 1:40Speaker 2: So it's kind of like a numbered list. You can't
- 1:42Speaker 2: proceed to step two until step one is complete.
- 1:45Speaker 1: So TCP is all about reliability, Yeah, making sure the
- 1:48Speaker 1: data arrives intact and in order.
- 1:51Speaker 2: Yes.
- 1:51Speaker 1: What about IP? What's its role in this process?
- 1:54Speaker 2: IP is the addressing system. It ensures that each packet
- 1:58Speaker 2: gets delivered to the correct location, like a super efficient
- 2:01Speaker 2: postal service that never mixes up addresses.
- 2:03Speaker 1: So KECP is about reliable delivery. Yes, IP handles the addressing,
- 2:08Speaker 1: that's right, and together they make sure that data gets
- 2:11Speaker 1: where it needs to go. Yes, but how does this
- 2:13Speaker 1: all connect to packet analysis?
- 2:15Speaker 2: Okay?
- 2:16Speaker 1: What are we actually looking at when we analyze these packets.
- 2:19Speaker 2: So packet analysis is about peering into these packets okay,
- 2:23Speaker 2: deciphering the information they contain to understand how data is
- 2:27Speaker 2: flowing on the network.
- 2:29Speaker 1: Huh.
- 2:29Speaker 2: We can see things like the source and destination of
- 2:32Speaker 2: each packet okay, the protocols being used, and even the
- 2:35Speaker 2: content of the data itself.
- 2:37Speaker 1: So it's like having this behind the scenes look at
- 2:39Speaker 1: how the Internet operates. Yeah, what kind of insights can
- 2:42Speaker 1: we gain from this? Oh?
- 2:43Speaker 2: So many things. You can troubleshoot network problems, identify security
- 2:47Speaker 2: threats okay, you can even understand how new technologies work.
- 2:51Speaker 1: That's a pretty wide range of applications.
- 2:53Speaker 2: Yeah.
- 2:53Speaker 1: So it sounds like packet analysis is more than just
- 2:56Speaker 1: this technical skill. Yes, it's a way of thinking, I think,
- 2:59Speaker 1: a way of un understanding this digital world around us.
- 3:02Speaker 2: Absolutely, it's about connecting the dots, seeing the patterns in
- 3:05Speaker 2: the data, and using that knowledge to solve problems and
- 3:08Speaker 2: uncover insights.
- 3:09Speaker 1: All right, so we've got the basics down, Data travels
- 3:11Speaker 1: and packets. Yeah, TCP and IP make sure it gets
- 3:15Speaker 1: there safely. But the Internet isn't just a bunch of
- 3:18Speaker 1: computers talking to each other. No, there's actual hardware involved.
- 3:21Speaker 2: Yes, there is.
- 3:22Speaker 1: What's that hardware?
- 3:23Speaker 2: So there are a number of devices that manage and
- 3:26Speaker 2: direct network traffic.
- 3:27Speaker 1: Okay.
- 3:28Speaker 2: Three of the most common are hubs, switches, and routers.
- 3:32Speaker 1: Hubs, switches and routers. Yeah, can we start with hubs.
- 3:34Speaker 1: What's their deal?
- 3:35Speaker 2: Think of a hub like a very basic, old fashioned
- 3:39Speaker 2: party line.
- 3:39Speaker 1: Okay.
- 3:40Speaker 2: Everyone connected to a hub receives every piece of data,
- 3:43Speaker 2: even if it's not meant for them.
- 3:45Speaker 1: Ah.
- 3:45Speaker 2: So it's simple, but not very efficient or secure.
- 3:49Speaker 1: So it's like a town square where everyone is shouting
- 3:51Speaker 1: their messages and whoever needs to hear it will hopefully.
- 3:53Speaker 2: Catch it exactly. And that's why hubs are rarely used
- 3:56Speaker 2: in modern networks.
- 3:57Speaker 1: Yeah makes sense.
- 3:58Speaker 2: Yeah, they're prone to congestion and security issues.
- 4:01Speaker 1: So switches are kind of like the upgrade from the
- 4:04Speaker 1: town square shouting match.
- 4:05Speaker 2: Yes, much more sophisticated solution, make some different. So switches
- 4:09Speaker 2: act like intelligent traffic directors. They keep track of which
- 4:13Speaker 2: devices are connected to each port and only send data
- 4:16Speaker 2: to the intended recipient. Okay, so it's much more efficient
- 4:20Speaker 2: and secure than a hub.
- 4:21Speaker 1: Makes sense. No more wasted bandwidth or eavedropping on everyone
- 4:25Speaker 1: else's conversations exactly. So switches handle traffic within a local network. Yeah,
- 4:30Speaker 1: what about routers? What do they do? So?
- 4:32Speaker 2: Routers are the masterminds of the Internet. Okay, they connect
- 4:34Speaker 2: different networks together, ensuring that data can travel across vast distances.
- 4:39Speaker 1: So if switches are the local traffic cops, yeah, routers
- 4:43Speaker 1: are the global air traffic controllers.
- 4:45Speaker 2: That's a great analogy, keeping everything moving. They're the ones
- 4:48Speaker 2: who know how to get your data from point A
- 4:50Speaker 2: to point B, no matter how far apart those points
- 4:52Speaker 2: may be.
- 4:53Speaker 1: I think I've started to grasp the big picture here.
- 4:58Speaker 1: Data travels and packets and IP make sure it arrives safely. Right, Hubs,
- 5:03Speaker 1: switches and routers, they all manage the flow of traffic. Yes,
- 5:07Speaker 1: but this is all theoretical so far. How do we
- 5:10Speaker 1: actually see these packets in action?
- 5:12Speaker 2: Okay, so this is where things get really interesting, right.
- 5:16Speaker 2: We need to sniff the data from the network, which
- 5:19Speaker 2: involves capturing the packets as they are being transmitted.
- 5:22Speaker 1: Sounds a bit sneaky.
- 5:23Speaker 2: It is a little bit like tapping into a phone line. Okay,
- 5:27Speaker 2: but instead of listening to voices, we are analyzing digital data.
- 5:31Speaker 1: How do we actually capture these packets.
- 5:33Speaker 2: Well, there are a few different techniques, okay, and the
- 5:36Speaker 2: method we use depends on the type of network hardware
- 5:39Speaker 2: we are dealing with. Okay, remember those hubs we talked about, Yeah,
- 5:42Speaker 2: well they are actually the easiest to sniff because they
- 5:45Speaker 2: broadcast all data to every connected device.
- 5:48Speaker 1: So going back to the town square analogy, if you're
- 5:50Speaker 1: standing in the middle of the square, you can hear
- 5:51Speaker 1: everything everyone's shouting exactly.
- 5:53Speaker 2: But this makes hubs incredibly insecure. Anyone with access to
- 5:57Speaker 2: the network can see all the data flowing through through it.
- 6:00Speaker 2: That's one reason why they really use these days.
- 6:02Speaker 1: What about switches, They seem trickier to sniff since they
- 6:07Speaker 1: direct data to specific devices.
- 6:10Speaker 2: They are more challenging. But there are ways to get
- 6:12Speaker 2: around this.
- 6:13Speaker 1: Yeah.
- 6:13Speaker 2: One common technique is called port mirroring, where we configure
- 6:17Speaker 2: the switch to copy all the traffic from a specific
- 6:20Speaker 2: port to another port where our sniffing device is connected.
- 6:23Speaker 1: So it's like setting up a surveillance camera to monitor
- 6:26Speaker 1: a particular location exactly.
- 6:28Speaker 2: Port mirroring allows us to see all the data passing
- 6:31Speaker 2: through a specific device or segment of the network.
- 6:33Speaker 1: That's pretty clever, yeah, but it's not always reliable.
- 6:37Speaker 2: Right, you are right. Port mirroring can sometimes misspackets, which
- 6:41Speaker 2: would give us an incomplete picture of the data flow.
- 6:44Speaker 2: We don't want that, No, we don't. That's why for
- 6:46Speaker 2: the most accurate and reliable packet capture, we use a
- 6:49Speaker 2: special device called a.
- 6:50Speaker 1: Network tap, a network tap. What is that? So?
- 6:53Speaker 2: Tap is a hardware device that physically connects to the
- 6:56Speaker 2: network cable okay, splitting the data streams so we can
- 6:59Speaker 2: capture a copy of all the traff and passing through it.
- 7:02Speaker 1: Okay. So it's like having a perfect mirror that reflects
- 7:04Speaker 1: every single bit.
- 7:05Speaker 2: Of data exactly. A tap provides the most accurate and
- 7:09Speaker 2: reliable data for our analysis.
- 7:12Speaker 1: So a tap gives us a completely unobstructed view of
- 7:15Speaker 1: the network traffic. Yeah, no misspackets, no drop data. Yes,
- 7:19Speaker 1: it's the gold standard for packet capture.
- 7:22Speaker 2: It is.
- 7:23Speaker 1: Okay, So we've got our sniffers set up. Whether it's
- 7:25Speaker 1: a simple connection to a hub, port mirring set up
- 7:28Speaker 1: on a switch, or a dedicated network tap. We are
- 7:32Speaker 1: capturing packets left and right. Yes, but now we have
- 7:34Speaker 1: this flood of data coming in. How do we make
- 7:37Speaker 1: sense of it all?
- 7:38Speaker 2: That is the million dollar question that is the question.
- 7:40Speaker 2: That's where the magic of wire Shark comes in.
- 7:42Speaker 1: Wire Shark, I've heard it mentioned in hush tones, like
- 7:46Speaker 1: it's this mythical software for tech wizards. Yeah, is it
- 7:49Speaker 1: really that powerful?
- 7:50Speaker 2: It is incredibly powerful, but don't let that intimidate you, Okay.
- 7:54Speaker 2: Wire Shark has a surprisingly user friendly interface that makes
- 7:57Speaker 2: packet analysis accessible even for beginners.
- 8:00Speaker 1: Well, it's good to hear. I'm eager to dive in
- 8:03Speaker 1: and see what it can do. But before we get
- 8:05Speaker 1: lost in the weeds, can you give me a sneak
- 8:07Speaker 1: peek at some of its coolest features.
- 8:09Speaker 2: Sure. Imagine having this giant spreadsheet filled with millions of
- 8:13Speaker 2: rows of data, each row representing a single packet, got it.
- 8:17Speaker 2: Wire Shark gives you the tools to quickly sift through
- 8:20Speaker 2: all of that data, find the specific packets you're interested in, okay,
- 8:24Speaker 2: and analyze their contents in detail.
- 8:26Speaker 1: So it's more than just this passive viewer of packets.
- 8:30Speaker 1: We can actually interact with the data, manipulate it, yeah,
- 8:34Speaker 1: and extract meaningful insights.
- 8:36Speaker 2: Precisely, we can apply filters to isolate specific types of traffic.
- 8:40Speaker 1: Okay.
- 8:41Speaker 2: We can reconstruct entire conversations between devices, wow, and even
- 8:46Speaker 2: create visual representations of data flow to spot patterns and anomalies.
- 8:51Speaker 1: So wire Shark really is the ultimate tool for unraveling
- 8:54Speaker 1: the mysteries of the network, I think. So I can't
- 8:57Speaker 1: wait to roll up my sleeves and start playing with it.
- 8:59Speaker 2: All right, let's do it.
- 9:00Speaker 1: Before we do that, we going to take a quick
- 9:01Speaker 1: break and we'll be back in just a moment. All right,
- 9:06Speaker 1: I am fired up and ready to dive into wire Shark.
- 9:09Speaker 1: It's free to download, right absolutely.
- 9:10Speaker 2: You can find it at wireshark.
- 9:12Speaker 1: Dot org wireshark dot org.
- 9:14Speaker 2: And one of the things that makes it so powerful
- 9:16Speaker 2: is that it's open source, meaning anyone can contribute to
- 9:20Speaker 2: its development.
- 9:21Speaker 1: So I've got wire shark installed, okay, and I'm staring
- 9:24Speaker 1: at the interface. All right, where do we even begin.
- 9:27Speaker 2: Well, we've already captured some packets using our trusty sniffing techniques.
- 9:31Speaker 2: Remember we talked about connecting to a hub, setting up port,
- 9:35Speaker 2: mirroring on a switch, or using a network tap. So
- 9:39Speaker 2: wire Shark lets us open those captured files and start
- 9:43Speaker 2: digging into the data.
- 9:44Speaker 1: It's a little overwhelming at first glance, it can be.
- 9:47Speaker 1: There's so much information rows and columns, of data, timestamps,
- 9:52Speaker 1: cryptic codes.
- 9:53Speaker 2: I know what you mean.
- 9:54Speaker 1: It's like staring into the matrix.
- 9:56Speaker 2: Yeah, it can feel like drinking from a fire hose
- 9:59Speaker 2: of information, especially when you're first starting out.
- 10:02Speaker 1: Give me an example, what's one feature that can help
- 10:06Speaker 1: tame this wild beast of data?
- 10:09Speaker 2: So one of the most powerful features is filtering. It
- 10:12Speaker 2: lets you narrow down the millions of packets to just
- 10:14Speaker 2: the ones that you're interested in.
- 10:16Speaker 1: Botcha.
- 10:16Speaker 2: So let's say you're trying to troubleshoot a slow internet connection. Okay,
- 10:21Speaker 2: you could apply a filter to show only the traffic
- 10:23Speaker 2: related to your web browsing.
- 10:25Speaker 1: So instead of seeing packets from every single application on
- 10:28Speaker 1: my computer, right, I can laser focus on just the
- 10:31Speaker 1: web traffic. Yeah. How would I actually create a filter
- 10:33Speaker 1: like that?
- 10:34Speaker 2: It's surprisingly easy. You just type in a simple expression
- 10:37Speaker 2: in the filter box at the top of the window.
- 10:39Speaker 2: For example, to see only HTTP traffic, you would type http.
- 10:44Speaker 2: To see traffic to or from a specific IP address,
- 10:48Speaker 2: you'd use something like ip dot adr equals one ninety
- 10:52Speaker 2: two point one sixty eight one point one hundred zero.
- 10:55Speaker 1: Ah. So it's a bit like searching on Google, but
- 10:58Speaker 1: instead of keywords, we're using these filter expressions to pinpoint
- 11:02Speaker 1: the packets we need. Exactly what other kinds of filters
- 11:05Speaker 1: can we create?
- 11:05Speaker 2: The possibilities are pretty much endless.
- 11:07Speaker 1: Okay.
- 11:08Speaker 2: You can filter by protocol, port number, packet length, a
- 11:12Speaker 2: specific data patterns within the packets. You can even combine
- 11:15Speaker 2: multiple filters to create highly specific views of the traffic.
- 11:20Speaker 1: So I could create a filter to see only the
- 11:22Speaker 1: traffic going to a specific website, or only the DNS
- 11:26Speaker 1: request that my computer's making, exactly.
- 11:28Speaker 2: Filtering is the key to navigating the vast sea of
- 11:32Speaker 2: data in a wire shark capture.
- 11:34Speaker 1: It's how we separate the signal from the noise, that's right. Okay,
- 11:37Speaker 1: filtering helps us narrow things down.
- 11:39Speaker 2: Yep.
- 11:39Speaker 1: But I'm still a bit intimidated by the actual packets themselves. Okay,
- 11:43Speaker 1: all these hexadecimal values and cryptic abbreviations. Sure, how do
- 11:47Speaker 1: we actually read these packets once we've isolated them?
- 11:49Speaker 2: Okay? So each packet is like a miniature story, okay,
- 11:53Speaker 2: and learning to read those stories is the essence of
- 11:56Speaker 2: packet analysis, got it. Every packet has a header and
- 11:59Speaker 2: a payload.
- 12:00Speaker 1: We packets have anatomy in a way.
- 12:02Speaker 2: Yes, So the header contains all the essential information about
- 12:05Speaker 2: the packet, like the source and destination IP addresses, the
- 12:09Speaker 2: protocol being used, the packet length, and so on.
- 12:11Speaker 1: Gotcha.
- 12:12Speaker 2: So it's like the addressing and metadata on an envelope.
- 12:14Speaker 1: So the header tells us where the packet came from,
- 12:17Speaker 1: where it's going, and what kind of information it's carrying exactly.
- 12:21Speaker 1: What about the payload?
- 12:22Speaker 2: So the payload is the actual data being transported, Okay,
- 12:26Speaker 2: like the contents of the letter inside the envelope.
- 12:29Speaker 1: Gotcha.
- 12:29Speaker 2: It could be the text of an email, the code
- 12:31Speaker 2: for a web page, or the audio data from a
- 12:36Speaker 2: video stream.
- 12:37Speaker 1: So if we want to see what someone is actually
- 12:39Speaker 1: typing in an email or what data is being sent
- 12:41Speaker 1: to a website, we look at the payload exactly.
- 12:44Speaker 2: Wire Shark displays both the header and the payload in
- 12:48Speaker 2: a way that's easy to read. Ok You can click
- 12:50Speaker 2: on a packet in the list and wire Shark will
- 12:52Speaker 2: dissect it, showing you all the fields in the header
- 12:55Speaker 2: and the raw data in the payload.
- 12:57Speaker 1: So we can see the nitty gritty details of what's
- 13:00Speaker 1: being sent across the network, right down to the individual
- 13:03Speaker 1: bits and bites.
- 13:04Speaker 2: That's right.
- 13:04Speaker 1: But even if you're not fluent in binary code, you
- 13:08Speaker 1: can still glean a lot of information just from the
- 13:10Speaker 1: header fields. You can see which protocols are being used,
- 13:13Speaker 1: which ports are being accessed, and the size and timing
- 13:16Speaker 1: of data transfers.
- 13:17Speaker 2: Yeah.
- 13:18Speaker 1: You mentioned earlier that wire shark can reconstruct entire conversations
- 13:21Speaker 1: between devices. Yeah, this sounds fascinating. It is, but I'm
- 13:26Speaker 1: having trouble wrapping my head around how it actually works.
- 13:28Speaker 2: So it's one of the most amazing features of wire
- 13:31Speaker 2: short Okay, and it's called following streams.
- 13:33Speaker 1: Following streams.
- 13:34Speaker 2: Remember that TCP ensures reliable data transfer. Yes, well, it
- 13:39Speaker 2: does this by breaking the data into segments and numbering them. Okay,
- 13:42Speaker 2: wire shark can reassemble those segments in the correct order,
- 13:46Speaker 2: even if they arrive out of order or are spread
- 13:48Speaker 2: across multiple packets.
- 13:50Speaker 1: So we can essentially easedrop on a complete back and
- 13:53Speaker 1: forth exchange between two devices. Yeah, even if that conversation
- 13:57Speaker 1: is chopped up into tiny packets and scattered across the network.
- 14:00Speaker 2: Precisely, it's like listening in on a phone call or
- 14:03Speaker 2: reading a chat log. Wow, you can see the entire
- 14:06Speaker 2: conversation unfold packet by back.
- 14:08Speaker 1: It Yeah, so this following streams features seems like a
- 14:10Speaker 1: powerful tool for understanding how applications actually communicate with each other.
- 14:14Speaker 2: It is. It's incredibly useful for troubleshooting application level problems. Okay,
- 14:19Speaker 2: So let's say you're having trouble logging into a website. Yeah,
- 14:22Speaker 2: you could use wire shark to capture the traffic and
- 14:25Speaker 2: follow the TCP stream for the login process.
- 14:28Speaker 1: Okay.
- 14:29Speaker 2: You might see that the server is rejecting your credentials
- 14:32Speaker 2: or that there's a problem with the authentication protocol.
- 14:34Speaker 1: So instead of just seeing that the login failed, right,
- 14:38Speaker 1: we can actually see why it failed by examining the
- 14:41Speaker 1: individual messages exchanged between the client and the server exactly.
- 14:45Speaker 2: And it's not just limited to text based protocols like HDPP. Okay,
- 14:49Speaker 2: you can follow streams for all sorts of protocols, from
- 14:52Speaker 2: email to file transfers to video streaming.
- 14:56Speaker 1: Wow, the possibilities seem mless. Yeah, it's like having a
- 14:59Speaker 1: backstay past the entire Internet.
- 15:01Speaker 2: That's a good way to put it.
- 15:03Speaker 1: You also mentioned that wire shark can create visual representations
- 15:07Speaker 1: of data flow, right, what kind of magic is this?
- 15:10Speaker 2: So these visualizations can help you see patterns and trends okay,
- 15:14Speaker 2: that might not be obvious from just looking at the
- 15:16Speaker 2: raw packet data. For example, you can create a graph
- 15:21Speaker 2: of packet lengths over time, okay, which can help you
- 15:24Speaker 2: identify bursts of activity or periods of inactivity.
- 15:28Speaker 1: So instead of trying to decipher numbers in a spreadsheet,
- 15:31Speaker 1: we can actually see the data flowing like a river
- 15:34Speaker 1: with peaks and valleys representing different types of traffic.
- 15:37Speaker 2: That's a great way to put it.
- 15:38Speaker 1: Another useful visualization is a graph of TCP round trip times. Yeah,
- 15:44Speaker 1: this can help you identify network latency issuesact, which can
- 15:47Speaker 1: manifest as slow website load times or laggy online games.
- 15:53Speaker 1: So if I'm experiencing lag while playing an online game,
- 15:56Speaker 1: I could use wire shark to see if there are any
- 15:57Speaker 1: spikes in the round trip times. Yep, wh might indicate
- 16:00Speaker 1: a problem with my internet connection or the game server exactly.
- 16:04Speaker 2: These visualizations are a powerful tool for understanding network performance
- 16:08Speaker 2: and identifying bottlenecks.
- 16:09Speaker 1: Okay, I'm starting to see the like sniffer, wire Shark
- 16:13Speaker 1: is more than just a packet sniffer. It's a complete
- 16:16Speaker 1: network analysis toolkit. It is, But I have to admit
- 16:19Speaker 1: I'm still a bit intimidated by the technical detail. Sure,
- 16:23Speaker 1: do I need a computer science degree to use this
- 16:25Speaker 1: stuff effectively?
- 16:26Speaker 2: No, not at all. Okay, remember that book we mentioned,
- 16:29Speaker 2: Practical Packet Analysis. Yes, it's a fantastic resource for learning
- 16:33Speaker 2: the ropes, and it's written in a way that's accessible
- 16:36Speaker 2: even for beginners.
- 16:37Speaker 1: So with a little bit of effort and the right resources,
- 16:40Speaker 1: anyone can learn to use wider shark absolutely and become
- 16:44Speaker 1: a packet analysis pro.
- 16:45Speaker 2: Yeah. The key is to start with the basics, experiment
- 16:48Speaker 2: with different features, and don't be afraid to ask questions. Okay,
- 16:51Speaker 2: the more you use wire Shark, the more comfortable and
- 16:53Speaker 2: confident you'll become.
- 16:55Speaker 1: You've inspired me to roll up my sleeves and start
- 16:57Speaker 1: digging into the data. But let's be realistic. What are
- 17:02Speaker 1: some everyday problems that I could actually solve with this
- 17:07Speaker 1: newfound knowledge of packet analysis.
- 17:09Speaker 2: Okay?
- 17:10Speaker 1: You mentioned slow internet speeds earlier. Yeah, can you walk
- 17:12Speaker 1: me through how i'd use wire shark to diagnose that.
- 17:15Speaker 2: Okay, So let's say you're trying to stream a video
- 17:17Speaker 2: and it keeps buffering.
- 17:19Speaker 1: Yep, I've been there first.
- 17:20Speaker 2: You'd start a capture and wire shark, Oh yeah, making
- 17:23Speaker 2: sure to select the correct network interface. Then you would
- 17:26Speaker 2: initiate the video stream and watch the packets flow in.
- 17:30Speaker 1: Okay, I'm seeing a floory of packets, all different colors
- 17:33Speaker 1: and sizes. Now what all right?
- 17:35Speaker 2: So you'd want to filter the traffic to focus on
- 17:37Speaker 2: the communication between your computer and the video streaming server.
- 17:41Speaker 1: Okay.
- 17:42Speaker 2: You could filter by your IP address and the server's
- 17:45Speaker 2: IP address, or by the port number used for video
- 17:49Speaker 2: stream and traffic.
- 17:50Speaker 1: That way I can isolate just the packets relevant to
- 17:52Speaker 1: the video stream exactly.
- 17:54Speaker 2: Then you'd look for signs of trouble.
- 17:55Speaker 1: Okay.
- 17:56Speaker 2: Remember our discussion about TCP or retransmissions and duplicate acknowledgements. Yeah,
- 18:02Speaker 2: those are often indicators of network congestion or packet loss, right,
- 18:06Speaker 2: which can definitely lead to buffering issues.
- 18:09Speaker 1: Right. Retransmissions happen when a packet gets lost in transit
- 18:12Speaker 1: and has to be sent again. Duplicate acknowledgments are like
- 18:16Speaker 1: the receiver saying, hey, I got this packet twice. Did
- 18:19Speaker 1: you miss my last acknowledgement?
- 18:20Speaker 2: You got it. If you see a lot of retransmissions
- 18:23Speaker 2: or duplicate ACKs, it could mean there's a problem with
- 18:26Speaker 2: your Internet connection, your router, or even the video streaming
- 18:30Speaker 2: server itself, so wire.
- 18:32Speaker 1: Shark can help me pinpoint where the bottleneck is. Yeah,
- 18:35Speaker 1: whether it's on my end, the server's end, or somewhere
- 18:38Speaker 1: in between.
- 18:38Speaker 2: It's like having X ray vision into your network.
- 18:41Speaker 1: That's pretty amazing. It's like having a secret weapon against
- 18:44Speaker 1: those frustrating tech problems that always seem to pop up
- 18:47Speaker 1: at the worst possible time.
- 18:48Speaker 2: Yeah.
- 18:49Speaker 1: You also mentioned that packet analysis can be used for
- 18:51Speaker 1: security purposes.
- 18:52Speaker 2: Absolutely.
- 18:53Speaker 1: Can you give me a concrete example of how I
- 18:55Speaker 1: might use it to protect myself from attax?
- 18:57Speaker 2: Sure, let's revisit that ARP cash poisoning attack we talked
- 19:01Speaker 2: about earlier. Okay, Remember that's where an attacker tricks your
- 19:04Speaker 2: computer and descending traffic to them instead of the legitimate destination.
- 19:08Speaker 1: Right, It's like the attacker is intercepting my mail before
- 19:11Speaker 1: it reaches the intended recipient.
- 19:13Speaker 2: Exactly. If you suspect that someone might be trying to
- 19:16Speaker 2: ARP poison your network, you can use wire shark to
- 19:20Speaker 2: monitor the ARP traffic.
- 19:22Speaker 1: So I'd be looking for any suspicious ARP packets that
- 19:24Speaker 1: don't seem quite right.
- 19:26Speaker 2: Precisely, Remember that ARP maps IP addresses to MC addresses. Yes,
- 19:31Speaker 2: if you see an ARP packet that claims to have
- 19:34Speaker 2: the MC address of your router, but it's coming from
- 19:37Speaker 2: a different device on your network. Okay, that's a huge
- 19:41Speaker 2: red flag.
- 19:42Speaker 1: Ah, so the attacker is essentially trying to impersonate my router,
- 19:46Speaker 1: tricking my computer and descending traffic their way.
- 19:49Speaker 2: Exactly.
- 19:50Speaker 1: Wire Shark can help me expose this deception.
- 19:53Speaker 2: That's right. Packet analysis can be an incredibly powerful tool
- 19:56Speaker 2: for detecting and preventing security threats.
- 19:58Speaker 1: This is eye opening. I'm starting to I think that
- 20:00Speaker 1: everyone should have at least a basic understanding of packet analysis.
- 20:03Speaker 2: I think so too.
- 20:04Speaker 1: It's like having this superpower that lets you see through
- 20:07Speaker 1: the illusions of the digital world. Yeah.
- 20:09Speaker 2: The more people understand how networks work and how to
- 20:11Speaker 2: analyze packets, yeah, the more resilient and secure our digital
- 20:15Speaker 2: world will be.
- 20:16Speaker 1: Okay, we've covered a lot of ground here, from capturing
- 20:19Speaker 1: packets to filtering traffic, to analyzing specific protocols. Yeah, and
- 20:24Speaker 1: even using visualizations to spot patterns. Right, but we've only
- 20:27Speaker 1: scratched the surface of what packet analysis can do. We
- 20:31Speaker 1: have I'm eager to hear about some more advanced applications
- 20:34Speaker 1: and the ethical considerations we need to keep in mind
- 20:37Speaker 1: when using this powerful tool.
- 20:38Speaker 2: All right, Well that's a perfect topic for our next segment.
- 20:41Speaker 1: Let's do it. All right, So we're back and we've
- 20:45Speaker 1: journeyed pretty deep into the world of packet analysis. Yeah,
- 20:47Speaker 1: we ah exploring how data travels the Internet and how
- 20:51Speaker 1: wire Shark helps us decode these digital conversations.
- 20:54Speaker 2: Yeah, it's been fun.
- 20:56Speaker 1: But what are some of the more advanced uses of
- 20:58Speaker 1: this knowledge?
- 20:59Speaker 2: Okay?
- 21:00Speaker 1: I feel like we've just learned the alphabet and there
- 21:01Speaker 1: are these whole novels out there.
- 21:03Speaker 2: That's a great way to put it.
- 21:04Speaker 1: What can we do?
- 21:05Speaker 2: And you're right, there's so much more we can do.
- 21:07Speaker 2: Let's say you're struggling with a website that suddenly stopped working. Okay,
- 21:11Speaker 2: pack and analysis can be like having a mechanics diagnostic
- 21:14Speaker 2: tool for the Internet.
- 21:16Speaker 1: So instead of just seeing like an error message, I
- 21:18Speaker 1: can use wire Shark to actually trace the communication between
- 21:23Speaker 1: my browser and the website server exactly.
- 21:26Speaker 2: You can see the HTTP requests your browser sends, the
- 21:29Speaker 2: service responses, and pinpoint where the brickdown occurs is the
- 21:33Speaker 2: server down? Is their DNS issue preventing the connection? Pack
- 21:38Speaker 2: and analysis can reveal the answer.
- 21:41Speaker 1: That's incredibly helpful. It's like being able to see the
- 21:43Speaker 1: gears turning behind the scenes, not just the final outcome.
- 21:47Speaker 1: But is this just for websites or can we use
- 21:49Speaker 1: this for other online applications too?
- 21:52Speaker 2: Almost anything that communicates over a network can be analyzed. Okay, email,
- 21:56Speaker 2: file sharing, video calls, you name it, wow back at
- 22:00Speaker 2: analysis gives you this universal translator for understanding how these
- 22:03Speaker 2: applications work and troubleshooting problems.
- 22:06Speaker 1: So it's not just about fixing things when they break.
- 22:09Speaker 1: We could use this to learn about new technologies, new protocols,
- 22:13Speaker 1: even reverse engineer things to understand how they're built.
- 22:16Speaker 2: Absolutely, Let's say you encounter a brand new protocol you've
- 22:19Speaker 2: never seen before. You can use wire shark to dissect
- 22:23Speaker 2: the packets, examine those header fields we discussed, and start
- 22:27Speaker 2: piecing together what each part means.
- 22:30Speaker 1: So it's like solving a puzzle, decoding a secret language exact.
- 22:33Speaker 1: But where do you even begin with something completely new?
- 22:35Speaker 2: Well, it's a bit like detective work. You use your
- 22:37Speaker 2: knowledge of networking fundamentals, online resources, and good old fashioned
- 22:42Speaker 2: trial and error. Okay, you might look for patterns in
- 22:46Speaker 2: the data, compare it to known protocols and gradually build
- 22:50Speaker 2: a picture of how it functions.
- 22:52Speaker 1: So within a patience and persistence, we could uncover the
- 22:55Speaker 1: secrets of even the most obscure protocols.
- 22:58Speaker 2: We can.
- 22:58Speaker 1: That's amazing. Yeah, but this brings up a question. With
- 23:02Speaker 1: such power at our fingertips, how do we ensure that
- 23:06Speaker 1: packet analysis is used responsibly and ethically.
- 23:10Speaker 2: Yeah, that's a crucial point. It's like any powerful tool,
- 23:12Speaker 2: it can be used for good or for ill. Respecting
- 23:14Speaker 2: privacy is paramount. We should never analyze traffic that we
- 23:18Speaker 2: don't have permission to access.
- 23:20Speaker 1: So even though I technically could snoop on my roommate's
- 23:23Speaker 1: online activity, yeah, I absolutely should not.
- 23:26Speaker 2: No, you should not. Ethical considerations are really vital in
- 23:29Speaker 2: this field.
- 23:30Speaker 1: Okay.
- 23:30Speaker 2: Packet analysis should be used for legitimate purposes like troubleshooting problems,
- 23:36Speaker 2: improving security, or advancing our understanding of technology, guide not
- 23:41Speaker 2: for spying or violating someone's privacy.
- 23:43Speaker 1: Okay, So what about in a workplace setting?
- 23:45Speaker 2: Yeah?
- 23:46Speaker 1: Are there guidelines to keep in mind?
- 23:48Speaker 2: Absolutely? In most cases, you'd need explicit authorization from your
- 23:52Speaker 2: employer or clients before capturing and analyzing network traffic, and
- 23:57Speaker 2: even then, transparency is key, explain what you're doing and
- 24:00Speaker 2: why so.
- 24:01Speaker 1: No secretly monitoring coworkers' Internet usage to see who's slacking off.
- 24:05Speaker 2: Definitely not. It's all about using these skills responsibly and ethically.
- 24:10Speaker 2: The power to analyze network traffic comes with the responsibility
- 24:13Speaker 2: to use it wisely.
- 24:15Speaker 1: This has been an incredible deep dive. I feel like
- 24:17Speaker 1: I've gained a whole new perspective on how the Internet works,
- 24:20Speaker 1: and I'm excited to explore further with wire Shark.
- 24:23Speaker 2: Yeah.
- 24:23Speaker 1: Any final words of wisdom for our listeners who are
- 24:26Speaker 1: eager to embark on their own packet analysis adventures.
- 24:30Speaker 2: Yeah, just remember this is a journey of continuous learning.
- 24:33Speaker 1: Okay.
- 24:34Speaker 2: The world of networking is constantly evolving, so stay curious, experiment,
- 24:39Speaker 2: and never stop exploring. The more you understand how networks function,
- 24:43Speaker 2: the better equipped you'll be to navigate the digital world.
- 24:46Speaker 1: What a fantastic way to wrap things up. If you're
- 24:49Speaker 1: intrigued by the possibilities of packet analysis, grab a copy
- 24:53Speaker 1: of Practical Packet Analysis, download Wireshark, and start your own
- 24:56Speaker 1: journey of discovery. Who knows what secrets you might uncover.
- 25:00Speaker 1: Until next time, Happy packet hunting.