First job: HTTP packet analysis using Packet Tracer

0 Personal Information

  • Zhang Ying Zi
  • 201821121038
  • Calculated 1812

1 Purpose

Familiar with Packet Tracer tool. Analysis caught HTTP packets, in-depth understanding: HTTP protocol, including syntax, semantics, timing.

2 Experimental content

The client sends a request message to the server, the server sends a response message to the client.

  • Establish a network topology
  • Configuration parameters
  • Ethereal
  • Analysis of the data packet

3 test report

In this study, the use of this platform to Cisco Packet Tracer network simulation environment.

3.1 Establish a network topology

 As shown, a PC connected to the terminal end and a Server.

Analysis: The client (PC end) and server (Sever end) are two application processes involved in the communication, to achieve the capture of purpose, it is necessary to establish communication relationships that need the same network segment.

3.2 IP Configuration

IP address of the PC side: 192.168.1.38, Subnet Mask: 255.255.255.0

IP address of the server: 192.168.1.100, Subnet Mask: 255.255.255.0

Analysis: for the IP configuration of the PC and the server, which is the same as the subnet mask, the same network segment, may communicate with each other.

 3.3 arrested HTTP packets and analysis

3.3.1  using the PC end Web Browser, access the URL bar, enter the IP address of the server.

3.3.2  right corner Simulation key simulation.

3.3.3 check only supports the HTTP protocol:

 

 3.3.4  information transmission result of the simulation are as follows:

 

3.3.5  request packet analysis:

 

 Note: the packet is omitted here the Get /HTTP/1.1 , the Get representation, the URL request information reading flag, followed by a space followed by a full URL (URL relative used herein, i.e., is omitted host's domain name), is a space behind the last HTTP / 1.1 indicates that the HTTP version is 1.1.

  • HTTP Data: Accept-Language: en -us indicates that the user priority hope to get the English version of the document
  • Accept: * / * indicates that the user wishes to receive any data type
  • Connection: close representation After telling the server to send the requested document can release link
  • Host: 192.168.1.100 is the domain of the host access

3.3.6 response packet analysis:

NOTE: omitted herein HTTP / 1.1 200 OK indicates that the HTTP version is 1.1,200 is a status code indicating OK.

  • The Data HTTP: Connection: use Close expressed tell the server response after sending the document can be released link
  • Content-Length: 369 indicates the length of the HTTP message transmission entity
  • Content-Type: text / xml representation settings page content is html
  • Server: PT-Server / 5.2 represents a back-end server

 3.4 Q&A

Q: workflow on the HTTP protocol?

A: (from FIG the CSDN blog)

Q:关于响应报文的状态码?

A:状态码可分为5大类:

  • 1XX通知信息
  • 2XX成功
  • 3XX重定向
  • 4XX客户端出错
  • 5XX服务器出错

Q:常用的状态码?

A:

  • 200:请求成功,请求内容与该响应一起返回
  • 202:请求已被接受,但还没处理
  • 301:请求的资源已被永久移动到新的位置
  • 302:请求的资源被临时移动到新的位置
  • 400:请求参数有误,当前请求无法被服务器理解
  • 403:不允许访问该地址
  • 404:Not Found
  • 408:请求超时
  • 500:服务器内部错误
  • 502:Bad Gateway(网关出错)

3.5 Reference

计算机网络基础:这是一份详细 HTTP 学习指南----Carson_ho的CSDN博客

https://blog.csdn.net/carson_ho/article/details/82106781

Guess you like

Origin www.cnblogs.com/MilkoSilver/p/11462707.html