查看: 3485|回复: 7

这是我抓的包``有点疑问请教大家

[复制链接]
发表于 2006-10-23 23:11:50 | 显示全部楼层 |阅读模式
如图

后面概要显示的序列号,注册号这是什么东西啊```

知道的朋友帮忙解释下

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?CSNA会员注册

×
回复

使用道具 举报

发表于 2006-10-23 23:51:07 | 显示全部楼层
这是FTP数据包解码的信息呀,查相关协议资料吧。

RFC 959 http://www.cis.ohio-state.edu/htbin/rfc/rfc959.html
RFC 2228 http://www.cis.ohio-state.edu/htbin/rfc/rfc2228.html
RFC 2640 http://www.cis.ohio-state.edu/htbin/rfc/rfc2640.html


The File Transfer Protocol (FTP) provides the basic elements of file sharing between hosts. FTP uses TCP to create a virtual connection for control information and then creates a separate TCP connection for data transfers. The control connection uses an image of the TELNET protocol to exchange commands and messages between hosts.

Commands

FTP control frames are TELNET exchanges and can contain TELNET commands and option negotiation. However, most FTP control frames are simple ASCII text and can be classified as FTP commands or FTP messages. The standard FTP commands are as follows:

Command  Description  
ABOR  Abort data connection process.  
ACCT <account>  Account for system privileges.  
ALLO <bytes>  Allocate bytes for file storage on server.  
APPE <filename>  Append file to file of same name on server.  
CDUP <dir path>  Change to parent directory on server.  
CWD <dir path>  Change working directory on server.  
DELE <filename>  Delete specified file on server.  
HELP <command>  Return information on specified command.  
LIST <name>  List information if name is a file or list files if name is a directory.  
MODE <mode>  Transfer mode (S=stream, B=block, C=compressed).  
MKD <directory>  Create specified directory on server.  
NLST <directory>  List contents of specified directory.  
NOOP  Cause no action other than acknowledgement from server.  
PASS <password>  Password for system log-in.  
PASV  Request server wait for data connection.  
PORT <address>  IP address and two-byte system port ID.  
PWD  Display current working directory.  
QUIT  Log off from the FTP server.  
REIN  Reinitialize connection to log-in status.  
REST <offset>  Restart file transfer from given offset.  
RETR <filename>  Retrieve (copy) file from server.  
RMD <directory>  Remove specified directory on server.  
RNFR <old path>  Rename from old path.  
RNTO <new path>  Rename to new path.  
SITE <params>  Site specific parameters provided by server.  
SMNT <pathname>  Mount the specified file structure.  
STAT <directory>  Return information on current process or directory.  
STOR <filename>  Store (copy) file to server.  
STOU <filename>  Store file to server name.  
STRU <type>  Data structure (F=file, R=record, P=page).  
SYST  Return operating system used by server.  
TYPE <data type>  Data type (A=ASCII, E=EBCDIC, I=binary).  
USER <username>  User name for system log-in.  

Messages

FTP messages are responses to FTP commands and consist of a response code followed by explanatory text. Standard FTP messages are as follows:

Response Code  Explanatory Text  
110  Restart marker at MARK yyyy=mmmm (new file pointers).  
120  Service ready in nnn minutes.  
125  Data connection open, transfer starting.  
150  Open connection.  
200  OK.  
202  Command not implemented.  
211  (System status reply).  
212  (Directory status reply).  
213  (File status reply).  
214  (Help message reply).  
215  (System type reply).  
220  Service ready.  
221  Log off network.  
225  Data connection open.  
226  Close data connection.  
227  Enter passive mode (IP address, port ID).  
230  Log on network.  
250  File action completed.  
257  Path name created.  
331  Password required.  
332  Account name required.  
350  File action pending.  
421  Service shutting down.  
425  Cannot open data connection.  
426  Connection closed.  
450  File unavailable.  
451  Local error encountered.  
452  Insufficient disk space.  
500  Invalid command.  
501  Bad parameter.  
502  Command not implemented.  
503  Bad command sequence.  
504  Parameter invalid for command.  
530  Not logged onto network.  
532  Need account for storing files.  
550  File unavailable.  
551  Page type unknown.  
552  Storage allocation exceeded.  
553  File name not allowed.
回复

使用道具 举报

发表于 2006-10-23 23:51:58 | 显示全部楼层
E文啊~让我欢喜让我忧
回复

使用道具 举报

 楼主| 发表于 2006-10-23 23:58:20 | 显示全部楼层
谢谢2楼的大哥```
不过并不是这样啊```
抓的http的包```后面也跟的有序列号,确认号等东西```

不是解码之类的东西,那里全是空的
回复

使用道具 举报

发表于 2006-10-24 09:39:14 | 显示全部楼层

TCP的同步数据包

首先来说一下科来网络分析系统的解码信息:
有概要解码,字段解码,16进制解码(包括ASCII和EBCDIC解码)。而你现在附图中的,就是其中的概要解码信息,它默认显示它支持解码的最上层协议的解码内容。

现在我们来看你的附图。
第1项0.096168表示的是相对时间或时间差;
第2项192.18.0.7:4084表示的是该数据包的源端,包括源IP和源端口;
第3项61.1.....(图中不完整)表示的是该数据包的目的端,包括目的IP和目的端口;
第4项FTP Ctrl表示的是该数据包的协议,这里是FTP Ctrl,表示是FTP控制连接;
第5项82表示该数据包的长度是82字节(包括FCS在内);
下面详细来看第6项“序列号=0759880168,确认号=0000000000,标志=....S.,长度=  0,窗口=...”。
其中这里的序列号和确认号是TCP协议里的概念,表示该数据包是基于TCP进行通讯的,由于TCP提供的是可靠的有连接传输服务,所以它是在通讯里使用了序列号和确认号的机制,以便确认数据包是否正确到达。
标志位的S表示这是一个TCP的同步数据包,即TCP三次握手数据包的第一步。
后面的长度位和窗口位表示该数据包的应用层数据长度和提供的窗口大小。

建议楼主在使用科来网络分析系统查看解码信息时,将上面的概要解码和下面的字段解码及16进制解码对应起来看,它们之间是一种从属联动关系的。

另外,建议楼主看看TCP/IP详解。
回复

使用道具 举报

 楼主| 发表于 2006-10-24 18:13:30 | 显示全部楼层
谢谢斑竹
现在还在看网络基础```基础学完了再详细的去看TCP这些协议
回复

使用道具 举报

发表于 2007-5-4 15:43:53 | 显示全部楼层
TCP.IP学玩了差不多啊 可以搞懂这个问题
回复

使用道具 举报

发表于 2007-5-4 15:52:10 | 显示全部楼层
楼主重头看TCP吧
回复

使用道具 举报

您需要登录后才可以回帖 登录 | CSNA会员注册

本版积分规则

快速回复 返回顶部 返回列表