Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

What do the colors in wireshark mean

29/11/2021 Client: muhammad11 Deadline: 2 Day

Packet Sniffing and Wireshark

Introduction

The first part of the lab introduces packet sniffer, Wireshark. Wireshark is a free opensource network protocol analyzer. It is used for network troubleshooting and communication protocol analysis. Wireshark captures network packets in real time and

display them in human-readable format. It provides many advanced features including

live capture and offline analysis, three-pane packet browser, coloring rules for analysis.

This document uses Wireshark for the experiments, and it covers Wireshark installation,

packet capturing, and protocol analysis.

Figure 1: Wireshark opening screen

Background

TCP/IP Network Stack

Figure 2: Encapsulation of Data in the TCP/IP Network Stack

This background section briefly explains the concept of TCP/IP network stack to help you better understand the experiments. TCP/IP is the most commonly used network model for Internet services. Because its most important protocols, the Transmission Control Protocol (TCP) and the Internet Protocol (IP) were the first networking protocols defined in this standard, it is named as TCP/IP. However, it contains multiple layers including application layer, transport layer, network layer, and data link layer.

· Application Layer: The application layer includes the protocols used by most applications for providing user services. Examples of application layer protocols are Hypertext Transfer Protocol (HTTP), Secure Shell (SSH), File Transfer Protocol (FTP), and Simple Mail Transfer Protocol (SMTP).

· Transport Layer: The transport layer establishes process-to-process connectivity, and it provides end-to-end services that are independent of underlying user data. To implement the process-to-process communication, the protocol introduces a concept of port. The examples of transport layer protocols are Transport Control Protocol (TCP) and User Datagram Protocol (UDP). The TCP provides flow control, connection establishment, and reliable transmission of data, while the UDP is a connectionless transmission model.

· Internet Layer: The Internet layer is responsible for sending packets to across networks. It has two functions: 1) Host identification by using IP addressing system (IPv4 and IPv6); and 2) packets routing from source to destination. The examples of Internet layer protocols are Internet Protocol (IP), Internet Control Message Protocol (ICMP), and Address Resolution Protocol (ARP).

· Link Layer: The link layer defines the networking methods within the scope of the local network link. It is used to move the packets between two hosts on the same link. A common example of link layer protocols is Ethernet.

Packet Sniffer

Packet sniffer is a basic tool for observing network packet exchanges in a computer. As the name suggests, a packet sniffer captures (“sniffs”) packets being sent/received from/by your computer; it will also typically store and/or display the contents of the various protocol fields in these captured packets. A packet sniffer itself is passive. It observes messages being sent and received by applications and protocols running on your computer, but never sends packets itself.

Figure 3 shows the structure of a packet sniffer. At the right of Figure 3 are the protocols (in this case, Internet protocols) and applications (such as a web browser or ftp client) that normally run on your computer. The packet sniffer, shown within the dashed rectangle in Figure 3 is an addition to the usual software in your computer, and consists of two parts. The packet capture library receives a copy of every link-layer frame that is sent from or received by your computer. Messages exchanged by higher layer protocols such as HTTP, FTP, TCP, UDP, DNS, or IP all are eventually encapsulated in link-layer frames that are transmitted over physical media such as an Ethernet cable. In Figure 1, the assumed physical media is an Ethernet, and so all upper-layer protocols are eventually encapsulated within an Ethernet frame. Capturing all link-layer frames thus gives you access to all messages sent/received from/by all protocols and applications executing in your computer.

The second component of a packet sniffer is the packet analyzer, which displays the

contents of all fields within a protocol message. In order to do so, the packet analyzer

Figure 3: Packet Sniffer Structure

must “understand” the structure of all messages exchanged by protocols. For example, suppose we are interested in displaying the various fields in messages exchanged by the HTTP protocol in Figure 3. The packet analyzer understands the format of Ethernet frames, and so can identify the IP datagram within an Ethernet frame. It also understands the IP datagram format, so that it can extract the TCP segment within the IP datagram. Finally, it understands the TCP segment structure, so it can extract the

HTTP message contained in the TCP segment. Finally, it understands the HTTP

protocol and so, for example, knows that the first bytes of an HTTP message will

contain the string “GET,” “POST,” or “HEAD”.

We will be using the Wireshark packet sniffer [http://www.wireshark.org/] for this lab,

allowing us to display the contents of messages being sent/received from/by protocols

at different levels of the protocol stack. (Technically speaking, Wireshark is a packet

analyzer that uses a packet capture library in your computer). Wireshark is a free

network protocol analyzer that runs on Windows, Linux/Unix, and Mac computers.

Getting Wireshark

Wireshark can also be downloaded from here: https://www.wireshark.org/download.html

Starting Wireshark

When you run the Wireshark program, the Wireshark graphic user interface will be

shown as Figure 4. Currently, the program is not capturing the packets.

Figure 4: Initial Graphic User Interface of Wireshark

Then, you need to choose an interface. If you are running the Wireshark on your laptop,

you need to select WiFi interface. If you are at a desktop, you need to select the

Ethernet interface being used. Note that there could be multiple interfaces. In general,

you can select any interface but that does not mean that traffic will flow through that

interface. The network interfaces (i.e., the physical connections) that your computer has

to the network are shown.

The attached Figure 5 was taken from my computer.

After you select the interface, Wireshark will start to capture the packets as shown in

Figure 6.

Figure 5: Capture Interfaces in Wireshark

Figure 6: Capturing Packets in Wireshark

Figure 7: Wireshark Graphical User Interface on Microsoft Windows

The Wireshark interface has five major components:

The command menus are standard pulldown menus located at the top of the window. Of interest to us now is the File and Capture menus. The File menu allows you to save

captured packet data or open a file containing previously captured packet data, and exit

the Wireshark application. The Capture menu allows you to begin packet capture.

The packet-listing window displays a one-line summary for each packet captured,

including the packet number (assigned by Wireshark; this is not a packet number

contained in any protocol’s header), the time at which the packet was captured, the

packet’s source and destination addresses, the protocol type, and protocol-specific

information contained in the packet. The packet listing can be sorted according to any of

these categories by clicking on a column name. The protocol type field lists the highest-level protocol that sent or received this packet, i.e., the protocol that is the source or

ultimate sink for this packet.

The packet-header details window provides details about the packet selected

(highlighted) in the packet-listing window. (To select a packet in the packet-listing

window, place the cursor over the packet’s one-line summary in the packet-listing

window and click with the left mouse button.). These details include information about

the Ethernet frame and IP datagram that contains this packet. The amount of Ethernet

and IP-layer detail displayed can be expanded or minimized by clicking on the rightpointing or down-pointing arrowhead to the left of the Ethernet frame or IP datagram line in the packet details window. If the packet has been carried over TCP or UDP, TCP or UDP details will also be displayed, which can similarly be expanded or minimized. Finally, details about the highest-level protocol that sent or received this packet are also provided.

The packet-contents window displays the entire contents of the captured frame, in

both ASCII and hexadecimal format.

Towards the top of the Wireshark graphical user interface, is the packet display filter

field, into which a protocol name or other information can be entered in order to filter the information displayed in the packet-listing window (and hence the packet-header and packet-contents windows). In the example below, we’ll use the packet-display filter

field to have Wireshark hide (not display) packets except those that correspond to HTTP

messages.

Capturing Packets

After downloading and installing Wireshark, you can launch it and click the name of an

interface under Interface List to start capturing packets on that interface. For example, if

you want to capture traffic on the wireless network, click your wireless interface.

Test Run

Do the following steps:

1. Start up the Wireshark program (select the WiFi interface).

2. Start up your favorite browser.

3. In your browser, go to the ESPN homepage by typing www.espn.com.

4. After your browser has displayed the http://www.espn.com page, stop Wireshark packet capture by selecting stop in the Wireshark capture window.

5. Color Coding: You’ll probably see packets highlighted in green, blue, and black. Wireshark uses colors to help you identify the types of traffic at a glance. By default, green is TCP traffic, dark blue is DNS traffic, light blue is UDP traffic, and black identifies TCP packets with problems — for example, they could have been delivered out-of-order.

6. You now have live packet data that contains all protocol messages exchanged between your computer and other network entities! However, as you will notice the HTTP messages are not clearly shown because there are many other packets included in the packet capture. Even though the only action you took was to open your browser, there are many other programs in your computer that communicate via the network in the background. To filter the connections to the ones we want to focus on, we have to use the filtering functionality of Wireshark by typing “http” in the filtering field as shown below:

7. Notice that we now view only the packets that are of protocol HTTP. However, we also still do not have the exact communication we want to focus on because using HTTP as a filter is not descriptive enough to allow us to find our connection to http://www.espn.com. We need to be more precise if we want to capture the correct set of packets.

8. To further filter packets in Wireshark, we need to use a more precise filter. By setting the http.host==www.espn.com, we are restricting the view to packets that have as an http host the www.espn.com website. Notice that we need two equal signs to perform the match “==” not just one. See the screenshot below:

9. Now, we can try another protocol. Let’s use Domain Name System (DNS) protocol as an example here.

10. Let’s try now to find out what are those packets contain by following one of the conversations (also called network flows), select one of the packets. Click on Analyze then Follow then UDP Stream, and then you will see following screen.

11. If we close this window and change the filter to “http” and then follow a packet from the list of packets that match that filter, we should get the something similar to the following screens. Note that we click on Analyze then Follow then TCP Stream this time.

Questions for the Lab

1. Carefully read the lab instructions and finish all tasks above.

2. If a packet is highlighted by black, what does it mean for the packet?

3. What is the filter command for listing all outgoing http traffic?

4. Why does DNS use Follow UDP Stream while HTTP use Follow TCP Stream?

5. Using Wireshark to capture the FTP password.

Use the FTP site ftp://test.rebex.net/

The username for the FTP server is “demo”, and the password is “password”.

You will use the username and password to login the FTP server while

Wireshark is running. Note that the FTP server is a public FTP server, make sure you select the right interface for the capturing. You need to explain to me how you find the password and a screenshot of the password packet. Have fun!

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Top Quality Assignments
University Coursework Help
Academic Master
Unique Academic Solutions
Premium Solutions
Professor Smith
Writer Writer Name Offer Chat
Top Quality Assignments

ONLINE

Top Quality Assignments

I can assist you in plagiarism free writing as I have already done several related projects of writing. I have a master qualification with 5 years’ experience in; Essay Writing, Case Study Writing, Report Writing.

$47 Chat With Writer
University Coursework Help

ONLINE

University Coursework Help

I have written research reports, assignments, thesis, research proposals, and dissertations for different level students and on different subjects.

$30 Chat With Writer
Academic Master

ONLINE

Academic Master

I am a professional and experienced writer and I have written research reports, proposals, essays, thesis and dissertations on a variety of topics.

$30 Chat With Writer
Unique Academic Solutions

ONLINE

Unique Academic Solutions

I have written research reports, assignments, thesis, research proposals, and dissertations for different level students and on different subjects.

$33 Chat With Writer
Premium Solutions

ONLINE

Premium Solutions

I have worked on wide variety of research papers including; Analytical research paper, Argumentative research paper, Interpretative research, experimental research etc.

$19 Chat With Writer
Professor Smith

ONLINE

Professor Smith

I have written research reports, assignments, thesis, research proposals, and dissertations for different level students and on different subjects.

$22 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Barriers to Communication - Marcos no es tan inteligente como jorge. - St maurice's high school - Size of a3 in cm - 2020 vcaa exam timetable - Comedy express bandu ani guruji - Year 12 biology syllabus - The percentage of receivables basis for estimating uncollectible accounts emphasizes - NEED IN 15 HOURS or LESS - Ben and jerry's red velvet target - Silver company makes a product that is very popular - In the article “magnanimity and integrity as military virtues,” robinson argues that honor can: - Paid $7,000 of accrued taxes at the time the plant site was acquired. - ITGE_Discussion5 - The beatles eleanor rigby meaning - How to solve lim x 0 - Barium sulfate baso4 is made by the following reaction - How to create a fixture - Pre ductal sats explained - Te sugiero que primero (tú) (1) (escribir) una lista de las cosas que quieres en un apartamento. - Case study vignette revisited - Discuss gatsby's five years as cody's associate - Solahart hot water not working - Chapter 2 The Cultural Context - The case for short words richard lederer - Discussion - Active and passive voice exercises - Illusion of explanatory depth meaning - The other side of outsourcing video - MS-13 - OE W 6 A - Kpi for industrial relations manager - What is the purpose of commutator in dc motor - Sun protection policy child care - Ronald takaki a different mirror pdf - Alcohol to alkyl halide socl2 - Ucla physics and astronomy - Quantum ahima org 8080 topaz main - Collective noun for umbrellas - Why america is self segregating thesis - Individual professional development plan - Amazon's international strategy - Polish national folk costume - Assignment - How many words for 10 minute presentation - Sophia amoruso nasty gal ebay - No title need it 5 to 6 paragraph, it is a Reflection Paper!!!!! It is important to add my working style is Examine extreme, explore deliberate, excite deliberate and execute deliberate, My report is attach, - Secret code for sheep bounce - Blueprint for better business - A Homework for HURM, Compensation Class - Alert and oriented x4 questions - Worksheet 2 while you watch 2.1 hutu and tutsi - Eurodocsis 3.0 cable modem - Edna st vincent millay facts - Hm - Yarrows frozen dough australia - Discussion - Essay - History is bunk brave new world - Oxted health centre surrey - Pollan botany of desire pdf - Hydrolysis of phenyl benzoate - Regulatory and Compliance, 2 - Real Estate Research Paper - English-Discussion: What's in a Epigraph? - Systems Thinking in Advanced Nursing Practice - James madison research paper - New lithographic equipment acquired at a cost of - Talk in the intimate relationship his and hers - Tim hawkins ageing rockers - Course weighted average calculator curtin - 2 reports each 2 pages due on 23rd before 2;00 pm est - Team operating principles project charter example - Boxing day tsunami facts - Repo 105 journal entry - Biointeractive virus explorer answer key - Information technology in Global Economy - Assignment #022 - Module 11 Assignment - Linkers & Loaders - Wk 5, IOP/470: DR 1 - Needed in 6 hours - Within a cubic unit cell sketch the following directions - Map of university of california campuses - Assume the speed of vehicles along a stretch of i-10 has an approximately - Medicare levy variation declaration - Error 1920 service tenable nessus - How to fold napkins nicely - Nick scali reporting date - Cross-functional team - Under pure competition in the long run - Yeast two hybrid library - Discussion Question #3: Background Check - 2x 100 WORD POSITIVE FEEDBACK RESPONSE DUE 9/11 - Research - Data - Lab 1 introduction to science exercise 1 data interpretation - Here comes amazon here comes amazon - Arnot mall bridal expo 2019 - Dji assistant verification code - Cognitive behavioral family therapy treatment plan