mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4
500 words
3 minutes
Experiment 7: HTTP Protocol Analysis and Measurement
2022-07-01

1. Objectives#

  • Understand the HTTP protocol and its message structure
  • Understand the HTTP operation process: TCP three-way handshake, request and response interaction
  • Master the techniques for capturing and analyzing HTTP packets using tcpdump and wireshark

2. Experimental Environment#

  • Hardware requirement: One Alibaba Cloud ECS instance
  • Software requirement: Linux/Windows operating systems

3. Experimental Content#

Use wget to download Xinjiang University homepage www.xju.edu.cn, capture packets with tcpdump, and analyze with wireshark.

  1. Does the browser run HTTP version 1 or 1.1? What version is the server running?
  2. What are your computer’s IP address and the server’s?
  3. What is the status code returned from the server to the browser?
  4. When was the HTML file retrieved on the server last modified?
  5. How many bytes of content were returned to the browser?
  6. In addition to the fields already mentioned, what other header fields exist? In the data packet content window, check the raw data to see if there are headers not shown in the packet list?

4. Experimental Results and Analysis#

1. Download Xinjiang University homepage and capture packets#

IFScZVzToMAhDnd.png

2. Use wireshark to analyze the captured file#

2.1 Filter the HTTP protocol#

cVTMD8wmz9RJyNG.png

From the packet capture results, you can see that the client requests a simple HTML file from the server, and the server returns that file to the client.

2.2 Answers#

Does the browser run HTTP version 1 or 1.1? What version is the server running? The browser uses HTTP version 1.1, and the server also uses HTTP version 1.1. What are the IP addresses of your computer and the server? The computer’s IP is 172.16.2.155, the server’s IP is 100.100.109.104. What is the status code returned from the server to the browser? The status code is 200, indicating successful processing of the request. When was the HTML file on the server last modified? The time is Tue, 07 Jun 2022 07:02<12> GMT. How many bytes of content were returned to the browser? 0 bytes were returned. Besides the fields already answered above, what other header fields are there? In the data packet content window, check the raw data; are there headers not displayed in the packet list? The HTTP request message also includes Host, Connection, Accept, User-Agent, Accept-Encoding fields, etc. The HTTP response message also includes Server, Connection fields, etc.

5. Experiment Summary#

5.1 Problems and Solutions#

The problem: When using Xftp to connect to the server, a connection error occurred. The solution: After switching to the campus network, the connection returned to normal; after investigation, it was found to be caused by the server firewall.

5.2 Reflections#

  • This experiment report familiarized me with the operation of code and software during HTTP protocol analysis, validating the knowledge learned in class. Through this experiment, I mastered the concrete workflow of using the wget command, understood the basic usage of common HTTP protocol analysis software, and improved my programming ability.
  • Through these commonly used HTTP analysis command operations, the tracking and analysis of HTTP protocol usage and the structural analysis of HTTP messages reinforced the knowledge learned in class.
Share

If this article helped you, please share it with others!

Experiment 7: HTTP Protocol Analysis and Measurement
https://dreaife.tokyo/en/posts/http-http-analysis/
Author
dreaife
Published at
2022-07-01
License
CC BY-NC-SA 4.0

Some information may be outdated

Related Posts Smart
1
Experiment 6: DNS Protocol Analysis and Measurement
cs-base This experiment aims to understand the DNS protocol and its basic concepts, including domain name structure, DNS servers, and the principles of domain name resolution. It covers DNS system configuration, DNS information measurement with the dig tool, and DNS query packet analysis using tcpdump and Wireshark. The results show the fields in DNS queries and their meanings, and the experiment concludes with issues encountered and solutions, improving understanding of DNS and programming skills.
2
Experiment 2: IP Protocol Analysis
cs-base This experiment aims to understand the IP packet format and the meaning of its fields, and to master the use of tcpdump and Wireshark. The environment includes an Alibaba Cloud host and operating systems. Through packet capture with tcpdump and analysis with Wireshark, it studies the IP protocol structure and related commands, resolves traceroute and Xftp connection issues, and improves programming ability and understanding of IP.
3
Experiment 4: TCP Protocol Analysis
cs-base This experiment aims to understand the basic concepts of the TCP protocol and packet structure, analyze connection establishment and teardown, and master TCP protocol analysis using tcpdump and Wireshark. The experiment downloads a web page with wget and captures packets, analyzes TCP headers and fields, explores the three-way handshake and four-way termination processes, and summarizes issues and solutions encountered, improving understanding of IP protocols and TCP packet structure.
4
Experiment 3: UDP Protocol Analysis
cs-base This experiment aims to master UDP protocol content and working principles and analyze UDP packets from DNS queries and QQ communication. It includes packet capture and analysis using tcpdump and Wireshark, and the results show that UDP datagrams consist of source port, destination port, length, and checksum. Through the experiment, traceroute and Xftp connection issues were resolved, and understanding of IP protocol analysis and programming ability were improved.
5
Experiment 9: Encryption, Digital Signatures, and Certificates
cs-base This experiment aims to understand the concepts and applications of symmetric encryption, asymmetric encryption, hash functions, digital signatures, and digital certificates. It uses OpenSSL for related operations including encryption and decryption, key pair generation, digital signatures, and creation of self-signed certificates. Problems encountered during the experiment were solved, improving programming skills and understanding of Linux commands.

Table of Contents