Commit 036a0325 authored by Marlene Böhmer's avatar Marlene Böhmer
Browse files

Replace bandwidth by datarate.

parent 212fbc08
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ local pf_data_btl_pace = ProtoField.uint32("prrt.data.btl_pace", "Bottleneck Pac
local pf_data_timestamp = ProtoField.uint32("prrt.data.timestamp", "Timestamp")
local pf_data_groupRTprop = ProtoField.uint32("prrt.data.grouprtprop", "Group RTprop")
local pf_data_packettimeout = ProtoField.uint32("prrt.data.packettimeout", "Packet Timeout")
local pf_data_btlbw = ProtoField.uint32("prrt.data.btlbw", "Bottleneck Datarate")
local pf_data_btlDatarate = ProtoField.uint32("prrt.data.btl_datarate", "Bottleneck Datarate")

local pf_red = ProtoField.new("Redundancy", "prrt.redundancy", ftypes.BYTES, base.NONE)
local pf_red_baseSeqN = ProtoField.uint16("prrt.redundancy.baseSequenceNumber", "Base Sequence Number", base.DEC)
@@ -61,7 +61,7 @@ prrt_proto.fields = {
    pf_data_timestamp,
    pf_data_groupRTprop,
    pf_data_packettimeout,
    pf_data_btlbw,
    pf_data_btlDatarate,

    pf_red,
    pf_red_baseSeqN,
@@ -124,7 +124,7 @@ local function dissect_data(buffer, pinfo, root)
    tree:add(pf_data_timestamp, buffer:range(8,4))
    tree:add(pf_data_groupRTprop, buffer:range(12,4))
    tree:add(pf_data_packettimeout, buffer:range(16,4))
    tree:add(pf_data_btlbw, buffer:range(20,4))
    tree:add(pf_data_btlDatarate, buffer:range(20,4))

    local label = "[D] Idx=" .. getIndex() .. " Len=" .. getDataLength()
    tree:set_text(label)
+6 −6
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ static int hf_prrt_payload = -1; /* payload with arbitrary length, depend
static int hf_prrt_receiver_addr = -1;  /* 32 bits IP address of the receiver */
static int hf_prrt_rtt_probe = -1;      /* 32 bits timestamp of most recent data packet plus delay since reception of this packet. */
static int hf_prrt_plr = -1;            /* 32 bits packet loss rate measured at the receiver. */
static int hf_prrt_bw_est = -1;         /* 32 bits bandwidth estimated at the receiver. */
static int hf_prrt_datarate_est = -1;         /* 32 bits datarate estimated at the receiver. */
/* The following two fields are the payload of PRRT feedback packet (packet type: 3). */
static int hf_prrt_packet_no = -1;      /* 16 bits packet no of the first lost packet. */
static int hf_prrt_retr_round = -1;     /* 16 bits retransmission round of the first lost. (first transmission is 0.) */
@@ -323,7 +323,7 @@ dissect_prrt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
      offset += 4;
      proto_tree_add_item(prrt_tree, hf_prrt_plr, tvb, offset, 4, FALSE);
      offset += 4;
      proto_tree_add_item(prrt_tree, hf_prrt_bw_est, tvb, offset, 4, FALSE);
      proto_tree_add_item(prrt_tree, hf_prrt_datarate_est, tvb, offset, 4, FALSE);
      offset += 4;

      if (len == 24) {
@@ -364,7 +364,7 @@ dissect_prrt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
      offset += 4;
      proto_tree_add_item(prrt_tree, hf_prrt_plr, tvb, offset, 4, FALSE);
      offset += 4;
      proto_tree_add_item(prrt_tree, hf_prrt_bw_est, tvb, offset, 4, FALSE);
      proto_tree_add_item(prrt_tree, hf_prrt_datarate_est, tvb, offset, 4, FALSE);
      offset += 4;

      if (len == 28) {
@@ -484,10 +484,10 @@ proto_register_prrt(void)
      FT_UINT32, BASE_DEC, NULL, 0x0,
      "The packet loss rate measured at the receiver, stored in general PRRT feedback header", HFILL }
    },
    { &hf_prrt_bw_est,
      { "Estimated Bandwidth", "prrt.feedback.bw",
    { &hf_prrt_datarate_est,
      { "Estimated Datarate", "prrt.feedback.datarate",
      FT_UINT32, BASE_DEC, NULL, 0x0,
      "The bandwidth estimated at the receiver, stored in general PRRT feedback header", HFILL }
      "The datarate estimated at the receiver, stored in general PRRT feedback header", HFILL }
    },
    { &hf_prrt_packet_no,
      { "Packet No", "prrt.feedback.packetno",
+6 −6
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ static int hf_prrt_payload = -1; /* payload with arbitrary length, depend
static int hf_prrt_receiver_addr = -1;  /* 32 bits IP address of the receiver */
static int hf_prrt_rtt_probe = -1;      /* 32 bits timestamp of most recent data packet plus delay since reception of this packet. */
static int hf_prrt_plr = -1;            /* 32 bits packet loss rate measured at the receiver. */
static int hf_prrt_bw_est = -1;         /* 32 bits bandwidth estimated at the receiver. */
static int hf_prrt_datarate_est = -1;         /* 32 bits datarate estimated at the receiver. */
/* The following two fields are the payload of PRRT feedback packet (packet type: 3). */
static int hf_prrt_packet_no = -1;      /* 16 bits packet no of the first lost packet. */
static int hf_prrt_retr_round = -1;     /* 16 bits retransmission round of the first lost. (first transmission is 0.) */
@@ -361,7 +361,7 @@ dissect_prrt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
      offset += 4;
      proto_tree_add_item(prrt_tree, hf_prrt_plr, tvb, offset, 4, FALSE);
      offset += 4;
      proto_tree_add_item(prrt_tree, hf_prrt_bw_est, tvb, offset, 4, FALSE);
      proto_tree_add_item(prrt_tree, hf_prrt_datarate_est, tvb, offset, 4, FALSE);
      offset += 4;

      if (len == 24) {
@@ -402,7 +402,7 @@ dissect_prrt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
      offset += 4;
      proto_tree_add_item(prrt_tree, hf_prrt_plr, tvb, offset, 4, FALSE);
      offset += 4;
      proto_tree_add_item(prrt_tree, hf_prrt_bw_est, tvb, offset, 4, FALSE);
      proto_tree_add_item(prrt_tree, hf_prrt_datarate_est, tvb, offset, 4, FALSE);
      offset += 4;

      if (len == 28) {
@@ -524,10 +524,10 @@ proto_register_prrt(void)
      FT_UINT32, BASE_DEC, NULL, 0x0,
      "The packet loss rate measured at the receiver, stored in general PRRT feedback header", HFILL }
    },
    { &hf_prrt_bw_est,
      { "Estimated Bandwidth", "prrt.feedback.bw",
    { &hf_prrt_datarate_est,
      { "Estimated Datarate", "prrt.feedback.datarate",
      FT_UINT32, BASE_DEC, NULL, 0x0,
      "The bandwidth estimated at the receiver, stored in general PRRT feedback header", HFILL }
      "The datarate estimated at the receiver, stored in general PRRT feedback header", HFILL }
    },
    { &hf_prrt_packet_no,
      { "Packet No", "prrt.feedback.packetno",
+5 −5
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ static int hf_prrt_gap = -1;
static int hf_prrt_ngap = -1;
static int hf_prrt_burst = -1;
static int hf_prrt_nburst = -1;
static int hf_prrt_bw_est = -1;
static int hf_prrt_datarate_est = -1;
static int hf_prrt_buf_fb = -1;

/* Payload */
@@ -206,7 +206,7 @@ static void dissect_prrt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                        offset += 2;
                        proto_tree_add_item(prrt_tree, hf_prrt_nburst, tvb, offset, 2, FALSE);
                        offset += 2;
                        proto_tree_add_item(prrt_tree, hf_prrt_bw_est, tvb, offset, 4, FALSE);
                        proto_tree_add_item(prrt_tree, hf_prrt_datarate_est, tvb, offset, 4, FALSE);
                        offset += 4;
                        proto_tree_add_item(prrt_tree, hf_prrt_buf_fb, tvb, offset, 4, FALSE);
                } else if(packet_type == 4) {
@@ -236,7 +236,7 @@ static void dissect_prrt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                        offset += 2;
                        proto_tree_add_item(prrt_tree, hf_prrt_nburst, tvb, offset, 2, FALSE);
                        offset += 2;
                        proto_tree_add_item(prrt_tree, hf_prrt_bw_est, tvb, offset, 4, FALSE);
                        proto_tree_add_item(prrt_tree, hf_prrt_datarate_est, tvb, offset, 4, FALSE);
                        offset += 4;
                        proto_tree_add_item(prrt_tree, hf_prrt_buf_fb, tvb, offset, 4, FALSE);
                } else {
@@ -292,8 +292,8 @@ void proto_register_prrt(void)
                  { "Aggregated Burst Length", "prrt.feedback.burst", FT_UINT16, BASE_DEC, NULL, 0x0, "", HFILL }},
                { &hf_prrt_nburst,
                  { "Burst Count", "prrt.feedback.nburst", FT_UINT16, BASE_DEC, NULL, 0x0, "", HFILL }},
                { &hf_prrt_bw_est,
                  { "Estimated Bandwidth", "prrt.feedback.bw", FT_UINT32, BASE_DEC, NULL, 0x0, "The bandwidth estimated at the receiver, stored in general PRRT feedback header", HFILL }},
                { &hf_prrt_datarate_est,
                  { "Estimated Datarate", "prrt.feedback.datarate", FT_UINT32, BASE_DEC, NULL, 0x0, "The datarate estimated at the receiver, stored in general PRRT feedback header", HFILL }},
                { &hf_prrt_buf_fb,
                  { "Buffer Feedback", "prrt.feedback.buf_fb", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
                { &hf_prrt_payload,
+3 −3
Original line number Diff line number Diff line
@@ -145,11 +145,11 @@ cdef extern from "proto/socket.h":
    uint32_t PrrtSocket_get_rtprop_fwd(PrrtSocket *socket)
    float PrrtSocket_get_plr_fwd(PrrtSocket *socket)
    uint32_t PrrtSocket_get_delivery_rate_fwd(PrrtSocket *socket)
    uint32_t PrrtSocket_get_btlbw_fwd(PrrtSocket *s);
    uint32_t PrrtSocket_get_btlbw_back(PrrtSocket *s);
    uint32_t PrrtSocket_get_btldatarate_fwd(PrrtSocket *s);
    uint32_t PrrtSocket_get_btldatarate_back(PrrtSocket *s);

    uint32_t PrrtSocket_get_bbr_state(PrrtSocket *s)
    uint64_t PrrtSocket_get_full_bw(PrrtSocket *s)
    uint64_t PrrtSocket_get_full_datarate(PrrtSocket *s)
    bint PrrtSocket_get_filled_pipe(PrrtSocket *s)
    uint32_t PrrtSocket_get_cycle_index(PrrtSocket *s)
    float PrrtSocket_get_pacing_gain(PrrtSocket *s)
Loading