分享
 
 
 

RFC1761 - Snoop Version 2 Packet Capture File Format

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

Network Working Group B. Callaghan

Request for Comments: 1761 R. Gilligan

Category: Informational Sun Microsystems, Inc.

February 1995

Snoop Version 2 Packet Capture File Format

Status of this Memo

This memo provides information for the Internet community. This memo

does not specify an Internet standard of any kind. Distribution of

this memo is unlimited.

Abstract

This paper describes the file format used by "snoop", a packet

monitoring and capture program developed by Sun. This paper is

provided so that people can write compatible programs to generate and

interpret snoop packet capture files.

1. IntrodUCtion

The availability of tools to capture, display and interpret packets

traversing a network has proven extremely useful in debugging

networking problems. The ability to capture packets and store them

for later analysis allows one to de-couple the tasks of collecting

information about a network problem and analysing that information.

The "snoop" program, developed by Sun, has the ability to capture

packets and store them in a file, and can interpret the packets

stored in capture files. This RFCdescribes the file format that the

snoop program uses to store captured packets. This paper was written

so that others may write programs to interpret the capture files

generated by snoop, or create capture files that can be interpreted

by snoop.

2. File Format

The snoop packet capture file is an array of octets structured as

follows:

+------------------------+

File Header

+------------------------+

Packet Record

~ Number 1 ~

+------------------------+

. .

. .

. .

+------------------------+

Packet Record

~ Number N ~

+------------------------+

The File Header is a fixed-length field containing general

information about the packet file and the format of the packet

records it contains. One or more variable-length Packet Record

fields follow the File Header field. Each Packet Record field holds

the data of one captured packet.

3. File Header

The structure of the File Header is as follows:

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

+ Identification Pattern +

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Version Number = 2

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Datalink Type

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Identification Pattern:

A 64-bit (8 octet) pattern used to identify the file as

a snoop packet capture file. The Identification Pattern

consists of the 8 hexadecimal octets:

73 6E 6F 6F 70 00 00 00

This is the ASCII string "snoop" followed by three null

octets.

Version Number:

A 32-bit (4 octet) unsigned integer value representing

the version of the packet capture file being used. This

document describes version number 2. (Version number 1

was used in early implementations and is now obsolete.)

Datalink Type:

A 32-bit (4 octet) field identifying the type of

datalink header used in the packet records that follow.

The datalink type codes are listed in the table below:

Datalink Type Code

------------- ----

IEEE 802.3 0

IEEE 802.4 Token Bus 1

IEEE 802.5 Token Ring 2

IEEE 802.6 Metro Net 3

Ethernet 4

HDLC 5

Character Synchronous 6

IBM Channel-to-Channel 7

FDDI 8

Other 9

Unassigned 10 - 4294967295

4. Packet Record Format

Each packet record holds a partial or complete copy of one packet as

well as some descriptive information about that packet. The packet

may be truncated in order to limit the amount of data to be stored in

the packet file. In addition, the packet record may be padded in

order for it to align on a convenient machine-dependent boundary.

Each packet record holds 24 octets of descriptive information about

the packet, followed by the packet data, which is variable-length,

and an optional pad field. The descriptive information is structured

as six 32-bit (4-octet) integer values.

The structure of the packet record is as follows:

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Original Length

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Included Length

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Packet Record Length

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Cumulative Drops

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Timestamp Seconds

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Timestamp Microseconds

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

. .

. Packet Data .

. .

+ +- - - - - - - -+

Pad

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Original Length

32-bit unsigned integer representing the length in

octets of the captured packet as received via a network.

Included Length

32-bit unsigned integer representing the length of the

Packet Data field. This is the number of octets of the

captured packet that are included in this packet record.

If the received packet was truncated, the Included

Length field will be less than the Original Length

field.

Packet Record Length

32-bit unsigned integer representing the total length of

this packet record in octets. This includes the 24

octets of descriptive information, the length of the

Packet Data field, and the length of the Pad field.

Cumulative Drops

32-bit unsigned integer representing the number of

packets that were lost by the system that created the

packet file between the first packet record in the

file and this one. Packets may be lost because of

insufficient resources in the capturing system, or for

other reasons. Note: some implementations lack the

ability to count dropped packets. Those

implementations may set the cumulative drops value to

zero.

Timestamp Seconds

32-bit unsigned integer representing the time, in

seconds since January 1, 1970, when the packet arrived.

Timestamp Microseconds

32-bit unsigned integer representing microsecond

resolution of packet arrival time.

Packet Data

Variable-length field holding the packet that was

captured, beginning with its datalink header. The

Datalink Type field of the file header can be used to

determine how to decode the datalink header. The length

of the Packet Data field is given in the Included Length

field.

Pad

Variable-length field holding zero or more octets that

pads the packet record out to a convenient boundary.

5. Data Format

All integer values are stored in "big-endian" order, with the high-

order bits first.

6. Security Considerations

Security issues are not discussed in this memo.

Authors' Addresses

Brent Callaghan

Sun Microsystems, Inc.

2550 Garcia Avenue

Mailstop UMTV05-44

Mountain View, CA 94043-1100

Phone: 1-415-336-1051

EMail:

brent.callaghan@eng.sun.com

Robert E. Gilligan

Sun Microsystems, Inc.

2550 Garcia Avenue

Mailstop UMTV05-44

Mountain View, CA 94043-1100

Phone: 1-415-336-1012

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有