Skip to content

Instantly share code, notes, and snippets.

@DukeyToo
Created March 26, 2020 21:24
Show Gist options
  • Save DukeyToo/a1ba08bc92e83cb822fbdff1ab534efd to your computer and use it in GitHub Desktop.
Save DukeyToo/a1ba08bc92e83cb822fbdff1ab534efd to your computer and use it in GitHub Desktop.

Revisions

  1. DukeyToo created this gist Mar 26, 2020.
    116 changes: 116 additions & 0 deletions curl_good_behavior.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,116 @@
    1 2020-03-26 15:22:56.490142 172.22.0.104 172.22.0.33 TCP 74 49202 → 9445 [SYN] Seq=0 Win=42600 Len=0 MSS=1420 SACK_PERM=1 TSval=111349014 TSecr=0 WS=2048

    Frame 1: 74 bytes on wire (592 bits), 74 bytes captured (592 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 49202, Dst Port: 9445, Seq: 0, Len: 0

    2 2020-03-26 15:22:56.490259 172.22.0.33 172.22.0.104 TCP 74 9445 → 49202 [SYN, ACK] Seq=0 Ack=1 Win=43648 Len=0 MSS=1420 SACK_PERM=1 TSval=16024870 TSecr=111349014 WS=2048

    Frame 2: 74 bytes on wire (592 bits), 74 bytes captured (592 bits)
    Ethernet II, Src: 42:01:ac:16:00:21 (42:01:ac:16:00:21), Dst: 42:01:ac:16:00:01 (42:01:ac:16:00:01)
    Internet Protocol Version 4, Src: 172.22.0.33, Dst: 172.22.0.104
    Transmission Control Protocol, Src Port: 9445, Dst Port: 49202, Seq: 0, Ack: 1, Len: 0

    3 2020-03-26 15:22:56.490810 172.22.0.104 172.22.0.33 TCP 66 49202 → 9445 [ACK] Seq=1 Ack=1 Win=43008 Len=0 TSval=111349015 TSecr=16024870

    Frame 3: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 49202, Dst Port: 9445, Seq: 1, Ack: 1, Len: 0

    4 2020-03-26 15:22:56.490890 172.22.0.104 172.22.0.33 HTTP 176 GET /minion/v3/userloyaltyoffer/sss HTTP/1.1

    Frame 4: 176 bytes on wire (1408 bits), 176 bytes captured (1408 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 49202, Dst Port: 9445, Seq: 1, Ack: 1, Len: 110
    Hypertext Transfer Protocol

    5 2020-03-26 15:22:56.490912 172.22.0.33 172.22.0.104 TCP 66 9445 → 49202 [ACK] Seq=1 Ack=111 Win=45056 Len=0 TSval=16024871 TSecr=111349015

    Frame 5: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:21 (42:01:ac:16:00:21), Dst: 42:01:ac:16:00:01 (42:01:ac:16:00:01)
    Internet Protocol Version 4, Src: 172.22.0.33, Dst: 172.22.0.104
    Transmission Control Protocol, Src Port: 9445, Dst Port: 49202, Seq: 1, Ack: 111, Len: 0

    6 2020-03-26 15:22:56.494000 172.22.0.33 172.22.0.104 HTTP 233 HTTP/1.1 200 OK

    Frame 6: 233 bytes on wire (1864 bits), 233 bytes captured (1864 bits)
    Ethernet II, Src: 42:01:ac:16:00:21 (42:01:ac:16:00:21), Dst: 42:01:ac:16:00:01 (42:01:ac:16:00:01)
    Internet Protocol Version 4, Src: 172.22.0.33, Dst: 172.22.0.104
    Transmission Control Protocol, Src Port: 9445, Dst Port: 49202, Seq: 1, Ack: 111, Len: 167
    Hypertext Transfer Protocol

    7 2020-03-26 15:22:56.494115 172.22.0.104 172.22.0.33 TCP 66 49202 → 9445 [ACK] Seq=111 Ack=168 Win=45056 Len=0 TSval=111349018 TSecr=16024874

    Frame 7: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 49202, Dst Port: 9445, Seq: 111, Ack: 168, Len: 0

    8 2020-03-26 15:22:56.494186 172.22.0.33 172.22.0.104 HTTP 72 Continuation

    Frame 8: 72 bytes on wire (576 bits), 72 bytes captured (576 bits)
    Ethernet II, Src: 42:01:ac:16:00:21 (42:01:ac:16:00:21), Dst: 42:01:ac:16:00:01 (42:01:ac:16:00:01)
    Internet Protocol Version 4, Src: 172.22.0.33, Dst: 172.22.0.104
    Transmission Control Protocol, Src Port: 9445, Dst Port: 49202, Seq: 168, Ack: 111, Len: 6
    Hypertext Transfer Protocol

    9 2020-03-26 15:22:56.494303 172.22.0.104 172.22.0.33 TCP 66 49202 → 9445 [ACK] Seq=111 Ack=174 Win=45056 Len=0 TSval=111349018 TSecr=16024874

    Frame 9: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 49202, Dst Port: 9445, Seq: 111, Ack: 174, Len: 0

    10 2020-03-26 15:22:56.497475 172.22.0.33 172.22.0.104 HTTP 72 Continuation

    Frame 10: 72 bytes on wire (576 bits), 72 bytes captured (576 bits)
    Ethernet II, Src: 42:01:ac:16:00:21 (42:01:ac:16:00:21), Dst: 42:01:ac:16:00:01 (42:01:ac:16:00:01)
    Internet Protocol Version 4, Src: 172.22.0.33, Dst: 172.22.0.104
    Transmission Control Protocol, Src Port: 9445, Dst Port: 49202, Seq: 174, Ack: 111, Len: 6
    Hypertext Transfer Protocol

    11 2020-03-26 15:22:56.497592 172.22.0.33 172.22.0.104 HTTP 71 Continuation

    Frame 11: 71 bytes on wire (568 bits), 71 bytes captured (568 bits)
    Ethernet II, Src: 42:01:ac:16:00:21 (42:01:ac:16:00:21), Dst: 42:01:ac:16:00:01 (42:01:ac:16:00:01)
    Internet Protocol Version 4, Src: 172.22.0.33, Dst: 172.22.0.104
    Transmission Control Protocol, Src Port: 9445, Dst Port: 49202, Seq: 180, Ack: 111, Len: 5
    Hypertext Transfer Protocol

    12 2020-03-26 15:22:56.497625 172.22.0.104 172.22.0.33 TCP 66 49202 → 9445 [ACK] Seq=111 Ack=180 Win=45056 Len=0 TSval=111349022 TSecr=16024877

    Frame 12: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 49202, Dst Port: 9445, Seq: 111, Ack: 180, Len: 0

    13 2020-03-26 15:22:56.497721 172.22.0.104 172.22.0.33 TCP 66 49202 → 9445 [ACK] Seq=111 Ack=185 Win=45056 Len=0 TSval=111349022 TSecr=16024878

    Frame 13: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 49202, Dst Port: 9445, Seq: 111, Ack: 185, Len: 0

    14 2020-03-26 15:22:56.497743 172.22.0.104 172.22.0.33 TCP 66 49202 → 9445 [FIN, ACK] Seq=111 Ack=185 Win=45056 Len=0 TSval=111349022 TSecr=16024878

    Frame 14: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 49202, Dst Port: 9445, Seq: 111, Ack: 185, Len: 0

    15 2020-03-26 15:22:56.497874 172.22.0.33 172.22.0.104 TCP 66 9445 → 49202 [FIN, ACK] Seq=185 Ack=112 Win=45056 Len=0 TSval=16024878 TSecr=111349022

    Frame 15: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:21 (42:01:ac:16:00:21), Dst: 42:01:ac:16:00:01 (42:01:ac:16:00:01)
    Internet Protocol Version 4, Src: 172.22.0.33, Dst: 172.22.0.104
    Transmission Control Protocol, Src Port: 9445, Dst Port: 49202, Seq: 185, Ack: 112, Len: 0

    16 2020-03-26 15:22:56.498090 172.22.0.104 172.22.0.33 TCP 66 49202 → 9445 [ACK] Seq=112 Ack=186 Win=45056 Len=0 TSval=111349022 TSecr=16024878

    Frame 16: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 49202, Dst Port: 9445, Seq: 112, Ack: 186, Len: 0
    130 changes: 130 additions & 0 deletions envoy_bad_behavior.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,130 @@
    1 2020-03-26 14:54:13.511814 172.22.0.104 172.22.0.33 TCP 74 47376 → 9445 [SYN] Seq=0 Win=42600 Len=0 MSS=1420 SACK_PERM=1 TSval=109626034 TSecr=0 WS=2048

    Frame 1: 74 bytes on wire (592 bits), 74 bytes captured (592 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 47376, Dst Port: 9445, Seq: 0, Len: 0

    2 2020-03-26 14:54:13.511915 172.22.0.33 172.22.0.104 TCP 74 9445 → 47376 [SYN, ACK] Seq=0 Ack=1 Win=43648 Len=0 MSS=1420 SACK_PERM=1 TSval=14301892 TSecr=109626034 WS=2048

    Frame 2: 74 bytes on wire (592 bits), 74 bytes captured (592 bits)
    Ethernet II, Src: 42:01:ac:16:00:21 (42:01:ac:16:00:21), Dst: 42:01:ac:16:00:01 (42:01:ac:16:00:01)
    Internet Protocol Version 4, Src: 172.22.0.33, Dst: 172.22.0.104
    Transmission Control Protocol, Src Port: 9445, Dst Port: 47376, Seq: 0, Ack: 1, Len: 0

    3 2020-03-26 14:54:13.512528 172.22.0.104 172.22.0.33 TCP 66 47376 → 9445 [ACK] Seq=1 Ack=1 Win=43008 Len=0 TSval=109626036 TSecr=14301892

    Frame 3: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 47376, Dst Port: 9445, Seq: 1, Ack: 1, Len: 0

    4 2020-03-26 14:54:13.512641 172.22.0.104 172.22.0.33 HTTP 396 GET /minion/v3/userloyaltyoffer/sss HTTP/1.1

    Frame 4: 396 bytes on wire (3168 bits), 396 bytes captured (3168 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 47376, Dst Port: 9445, Seq: 1, Ack: 1, Len: 330
    Hypertext Transfer Protocol
    GET /minion/v3/userloyaltyoffer/sss HTTP/1.1\r\n
    host: microservices-stage-gs-user-loyalty-offers-ms\r\n
    user-agent: curl/7.29.0\r\n
    accept: */*\r\n
    x-forwarded-for: 172.22.0.104\r\n
    x-forwarded-proto: https\r\n
    x-envoy-internal: true\r\n
    x-request-id: 2f3387a3-7dc5-4bb4-a0a7-dd09fcaf4ef0\r\n
    x-envoy-expected-rq-timeout-ms: 15000\r\n
    content-length: 0\r\n
    \r\n
    [Full request URI: http://microservices-stage-gs-user-loyalty-offers-ms/minion/v3/userloyaltyoffer/sss]
    [HTTP request 1/1]
    [Response in frame: 6]

    5 2020-03-26 14:54:13.512656 172.22.0.33 172.22.0.104 TCP 66 9445 → 47376 [ACK] Seq=1 Ack=331 Win=45056 Len=0 TSval=14301893 TSecr=109626036

    Frame 5: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:21 (42:01:ac:16:00:21), Dst: 42:01:ac:16:00:01 (42:01:ac:16:00:01)
    Internet Protocol Version 4, Src: 172.22.0.33, Dst: 172.22.0.104
    Transmission Control Protocol, Src Port: 9445, Dst Port: 47376, Seq: 1, Ack: 331, Len: 0

    6 2020-03-26 14:54:13.515883 172.22.0.33 172.22.0.104 HTTP 233 HTTP/1.1 200 OK

    Frame 6: 233 bytes on wire (1864 bits), 233 bytes captured (1864 bits)
    Ethernet II, Src: 42:01:ac:16:00:21 (42:01:ac:16:00:21), Dst: 42:01:ac:16:00:01 (42:01:ac:16:00:01)
    Internet Protocol Version 4, Src: 172.22.0.33, Dst: 172.22.0.104
    Transmission Control Protocol, Src Port: 9445, Dst Port: 47376, Seq: 1, Ack: 331, Len: 167
    Hypertext Transfer Protocol
    HTTP/1.1 200 OK\r\n
    transfer-encoding: chunked\r\n
    X-Trace-Enabled: true\r\n
    Date: Thu, 26 Mar 2020 19:54:13 GMT\r\n
    transfer-encoding: chunked\r\n
    content-type: application/json\r\n
    \r\n
    [HTTP response 1/1]
    [Time since request: 0.003242000 seconds]
    [Request in frame: 4]

    7 2020-03-26 14:54:13.516031 172.22.0.104 172.22.0.33 TCP 66 47376 → 9445 [ACK] Seq=331 Ack=168 Win=45056 Len=0 TSval=109626039 TSecr=14301896

    Frame 7: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 47376, Dst Port: 9445, Seq: 331, Ack: 168, Len: 0

    8 2020-03-26 14:54:13.516115 172.22.0.33 172.22.0.104 HTTP 72 Continuation

    Frame 8: 72 bytes on wire (576 bits), 72 bytes captured (576 bits)
    Ethernet II, Src: 42:01:ac:16:00:21 (42:01:ac:16:00:21), Dst: 42:01:ac:16:00:01 (42:01:ac:16:00:01)
    Internet Protocol Version 4, Src: 172.22.0.33, Dst: 172.22.0.104
    Transmission Control Protocol, Src Port: 9445, Dst Port: 47376, Seq: 168, Ack: 331, Len: 6
    Hypertext Transfer Protocol
    File Data: 6 bytes
    Data (6 bytes)

    0000 31 0d 0a 5b 0d 0a 1..[..
    Data: 310d0a5b0d0a
    [Length: 6]

    9 2020-03-26 14:54:13.516163 172.22.0.104 172.22.0.33 TCP 66 47376 → 9445 [FIN, ACK] Seq=331 Ack=168 Win=45056 Len=0 TSval=109626039 TSecr=14301896

    Frame 9: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 47376, Dst Port: 9445, Seq: 331, Ack: 168, Len: 0

    10 2020-03-26 14:54:13.516228 172.22.0.104 172.22.0.33 TCP 54 47376 → 9445 [RST] Seq=331 Win=0 Len=0

    Frame 10: 54 bytes on wire (432 bits), 54 bytes captured (432 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 47376, Dst Port: 9445, Seq: 331, Len: 0

    11 2020-03-26 14:54:13.516240 172.22.0.33 172.22.0.104 TCP 66 9445 → 47376 [ACK] Seq=174 Ack=332 Win=45056 Len=0 TSval=14301896 TSecr=109626039

    Frame 11: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:21 (42:01:ac:16:00:21), Dst: 42:01:ac:16:00:01 (42:01:ac:16:00:01)
    Internet Protocol Version 4, Src: 172.22.0.33, Dst: 172.22.0.104
    Transmission Control Protocol, Src Port: 9445, Dst Port: 47376, Seq: 174, Ack: 332, Len: 0

    12 2020-03-26 14:54:13.516351 172.22.0.104 172.22.0.33 TCP 54 47376 → 9445 [RST] Seq=332 Win=0 Len=0

    Frame 12: 54 bytes on wire (432 bits), 54 bytes captured (432 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 47376, Dst Port: 9445, Seq: 332, Len: 0

    13 2020-03-26 14:54:13.516370 172.22.0.33 172.22.0.104 TCP 66 9445 → 47376 [FIN, ACK] Seq=174 Ack=332 Win=45056 Len=0 TSval=14301896 TSecr=109626039

    Frame 13: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
    Ethernet II, Src: 42:01:ac:16:00:21 (42:01:ac:16:00:21), Dst: 42:01:ac:16:00:01 (42:01:ac:16:00:01)
    Internet Protocol Version 4, Src: 172.22.0.33, Dst: 172.22.0.104
    Transmission Control Protocol, Src Port: 9445, Dst Port: 47376, Seq: 174, Ack: 332, Len: 0

    14 2020-03-26 14:54:13.516444 172.22.0.104 172.22.0.33 TCP 54 47376 → 9445 [RST] Seq=332 Win=0 Len=0

    Frame 14: 54 bytes on wire (432 bits), 54 bytes captured (432 bits)
    Ethernet II, Src: 42:01:ac:16:00:01 (42:01:ac:16:00:01), Dst: 42:01:ac:16:00:21 (42:01:ac:16:00:21)
    Internet Protocol Version 4, Src: 172.22.0.104, Dst: 172.22.0.33
    Transmission Control Protocol, Src Port: 47376, Dst Port: 9445, Seq: 332, Len: 0