62 lines
2.1 KiB
Protocol Buffer
62 lines
2.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
option java_multiple_files = false;
|
|
option java_package = "com.yuandian.dataflow.proto.msgtype";
|
|
option go_package = "../grpc-gen;grpcgen";
|
|
|
|
|
|
package dataflow;
|
|
|
|
|
|
message DataFlow {
|
|
int32 table_id = 1;
|
|
|
|
string id = 2;
|
|
|
|
int32 msg_type = 3; //消息类型
|
|
int32 msg_version = 4; //消息版本
|
|
int32 msg_seq = 5; //序列号
|
|
int32 msg_len = 6; //消息长度
|
|
int32 probe_if = 7; //接口号
|
|
int64 timestamp = 8; //时间戳
|
|
int64 mac_src = 9; //源物理地址
|
|
int64 mac_dst = 10; //目的物理地址
|
|
int32 vlan_id = 11; //vlan_id
|
|
int64 l3_proto = 12; //l3层协议
|
|
int64 l4_proto = 13; //l4层协议
|
|
int32 tos = 14; //tos
|
|
int32 retran_count = 15; //重传次数
|
|
int32 reset_count = 16; //重置次数
|
|
int32 zerowin_count = 17; //零窗口次数
|
|
int32 protocol = 18; //协议名
|
|
int64 seq = 19;
|
|
int64 ack = 20;
|
|
int32 recog_status = 21; //识别类型标识
|
|
int64 bytes = 22; //总字节
|
|
int64 packets = 23; //总包数
|
|
int32 start_tv_sec = 24;//Web开始时间秒
|
|
int64 start_tv_usec = 25;//开始时间毫秒
|
|
int32 end_tv_sec = 26;//结束时间秒
|
|
int64 end_tv_usec = 27;//结束时间微妙
|
|
int32 server_start_tv_sec = 28;//服务器响应开始时间秒
|
|
int64 server_start_tv_usec = 29;//服务器响应开始时间毫秒
|
|
int32 server_end_tv_sec = 30;//服务器响应结束时间秒
|
|
int64 server_end_tv_usec = 31;//服务器响应结束时间微妙
|
|
|
|
int64 server_response_time = 32;//Web服务器响应时间
|
|
int64 client_translate_time = 33;//Web客户端传输耗时
|
|
int64 server_translate_time = 34;//Web服务器传输耗时
|
|
|
|
int64 bytes_in = 35;
|
|
int64 bytes_out = 36;
|
|
int64 packets_in = 37;
|
|
int64 packets_out = 38;
|
|
int64 ip_src = 39; //源IP
|
|
int64 ip_dst = 40; //目的IP
|
|
int64 port_src = 41; //源端口
|
|
int64 port_dst = 42; //目的端口
|
|
int64 probeIP = 43; //探针IP
|
|
|
|
int64 intodb_time = 44;
|
|
int64 count = 45; // 默认为1
|
|
} |