51 lines
1.5 KiB
Protocol Buffer
51 lines
1.5 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 SstFlow {
|
||
int32 table_id = 1;
|
||
|
||
int64 mac_src = 2; //源MAC
|
||
int64 mac_dst = 3; //目标MAC
|
||
int64 ip_src = 4; //源IP
|
||
int64 ip_dst = 5; //目标IP
|
||
int32 port_src = 6; //源端口,如果没有,为-1
|
||
int32 port_dst = 7; //目标端口,如果没有,为-1
|
||
int32 l3_proto = 8; //第三层协议ID,如果没有,为-1
|
||
int32 l4_proto = 9; //第四层协议ID,如果没有,为-1
|
||
int32 tos = 10; //Tos,一个字节,如果没有,为-1
|
||
int32 vlan_id = 11; //vlan ID,如果没有,为-1
|
||
|
||
int64 bytes = 12; //字节总数
|
||
int64 packets = 13; //数据包总数
|
||
|
||
int64 packets_syn = 14; //TCP同步包数
|
||
int64 packets_syn_ack = 15; //TCP同步确认包数
|
||
int64 packets_syn_rst = 16; //TCP同步重置包数
|
||
|
||
int64 timestamp = 17; //时间戳,秒
|
||
|
||
int64 appid = 18;//应用ID
|
||
int64 app_group_id = 19;
|
||
int32 mpls_label = 20;
|
||
|
||
int64 pkts_syn_rx = 21; //tcp同步包,接收
|
||
int64 pkts_syn_ack_rx = 22;//tcp同步确认包,接收
|
||
int64 pkts_syn_rst_rx = 23; //tcp同步重置包,接收
|
||
int64 pkts_fin = 24;//tcp终止包,接收
|
||
int64 pkts_rst = 25;//tcp重置包,接收
|
||
|
||
int64 bytes_rx = 26;//字节收
|
||
int64 packets_rx = 27;//数据包收
|
||
|
||
int64 probe_time_sec = 28;
|
||
int64 probe_time = 29;
|
||
int64 create_time = 30;
|
||
|
||
int32 probe_if = 31;
|
||
} |