初步完成所有协议命名

This commit is contained in:
eson 2022-06-13 15:38:56 +08:00
parent 86e84ca612
commit 4e1e7b42e6
4 changed files with 242 additions and 0 deletions

View File

@ -0,0 +1,81 @@
syntax = "proto3";
option java_package = "com.yuandian.dataflow.proto";
option go_package = "../grpc-gen;grpcgen";
package dataflow;
message BussFlowWeb {
int32 table_id = 1;
string id = 2; //id
int32 msg_len = 3; //
int32 msg_type = 4; //
int64 src_mac = 5;
int64 dst_mac = 6;
int32 protocol = 7; //
string session_serial_number = 8;//
string buss_type = 9;//C_01
// string net_segment = 10;//(-web)
int64 request_ip = 11;//Web客户端IP
int32 request_port = 12;//Web客户端端口
int64 response_ip = 13;//Web服务器IP
int32 response_port = 14;//Web服务器端口
int64 start_tv_sec = 15;//Web开始时间秒
int64 start_tv_usec = 16;//
int64 end_tv_sec = 17;//
int64 end_tv_usec = 18;//
string disc_resource_ident = 19; //weburl mid:apiBody dbsql
string operating_system = 20; //web: middinterfaceName db:db_name
//web midd
string session_id = 21;//sessionid
int32 request_msg_length = 22; //
string request_msg_detail = 23; //
int32 response_msg_length = 24; //
string response_msg_detail = 25; //
//web段
string reter_url = 26;
string x_requested_with = 27;
int64 req_method = 28; //
string content_type = 29; //
string accept = 30; //jieshou
int32 req_cookie_leng = 31;//cookie报文长度
string req_cookie_detail = 32;//cookie报文详情
int64 t_intodb_time = 33;
int32 load_or_step = 34; //0: 1 2web段数据
string business_detail_mesg = 35;
string bussiness_key_mesg = 36; // key=val|key=val....
int32 is_uncomplete = 37; // 0 1
int32 deal_state = 38; // 1
int32 server_res_code = 39;
int64 server_response_time = 40;
int64 client_translate_time = 41;
string browser = 42;
int32 server_start_tv_sec = 43;
int64 server_start_tv_usec = 44;
int32 server_end_tv_sec = 45;
int64 server_end_tv_usec = 46;
string probe_ip = 47;
int32 probe_if = 48;
int64 server_translate_time = 49;
int64 time_flag = 50;
string channel = 51;
string base_code = 52;
string ori_url = 53;
string remain_data = 54;
int64 bytes_in = 55;
int64 bytes_out = 56;
int32 package_in = 57;
int32 package_out = 58;
string data_id = 59;
int32 filter_id = 60;
string white_character = 61;
// tokenId
string token_id = 62;
// ( 2 )
int32 segment_id = 63;
}

View File

@ -0,0 +1,61 @@
syntax = "proto3";
option java_package = "com.yuandian.dataflow.proto";
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
}

View File

@ -0,0 +1,50 @@
syntax = "proto3";
option java_package = "com.yuandian.dataflow.proto";
option go_package = "../grpc-gen;grpcgen";
package dataflow;
message QoeFlow {
int32 table_id = 1;
//
int32 src_ip = 2; //uint32_t 4 ip地址
int32 dst_ip = 3; //uint32_t 4 ip地址
int32 stv_sec = 4; //uint32_t 4
int32 stv_usec = 5; //uint32_t 4
int32 ltv_sec = 6; //uint32_t 4
int32 ltv_usec = 7; //uint32_t 4
int32 dst2_respon_num = 8; //uint32_t 4
int32 dst2_fast = 9; //uint32_t 4
int32 dst2_fast_expected = 10; //uint32_t 4
int32 dst2_expected_degrated = 11; //uint32_t 4
int32 dst2_degrated_service = 12; //uint32_t 4
int32 dst2_service_availability = 13; //uint32_t 4
int32 dst2_respon_timeout = 14; //uint32_t 4
int32 dst2_respon_success = 15; //uint32_t 4
int32 dst2_respon_fail = 16; //uint32_t 4
int32 dst2_respon_peek = 17; //uint32_t 4
int32 dst2_respon_average = 18; //uint32_t 4
int32 cs_window = 19; //uint32_t 4
int32 sc_window = 20; //uint32_t 4
int32 cs_reset = 21; //uint32_t 4
int32 sc_reset = 22; //uint32_t 4
int32 cs_retran = 23; //uint32_t 4
int32 sc_retran = 24; //uint32_t 4
int32 app_id = 25; //uint32_t 4 Aphid
int32 app_group_id = 26; //uint32_t 4 app组id
int32 probe_if = 27; //uint32_t 4 id
int32 app_style = 28; //uint32_t 4
int32 time_flag = 29; //uint32_t 4
int32 conn_setup_tm = 30; //uint32_t 4
int32 data_transfer_tm = 31; //uint32_t 4
int32 retrans_delay_tm = 32; //uint32_t 4
int32 network_inbound = 33; //uint32_t 4 c->s
int32 network_outbound = 34; //uint32_t 4 s->c
int32 new_session = 35; //uint32_t 4
int32 user_events = 36; //uint32_t 4
int32 server_events = 37; //uint32_t 4
int32 conn_setup_peek = 38; //uint32_t 4
int32 vlan_id = 39; //uint32_t 4
}

View File

@ -0,0 +1,50 @@
syntax = "proto3";
option java_package = "com.yuandian.dataflow.proto";
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;
}