7.2. Following Protocol Streams (2024)

It can be very helpful to see a protocol in the way that the applicationlayer sees it. Perhaps you are looking for passwords in a Telnet stream,or you are trying to make sense of a data stream. Maybe you just need adisplay filter to show only the packets in a TLS or SSL stream. If so,Wireshark’s ability to follow protocol streams will be useful to you.

To filter to a particular stream,select a packet in the packet list of the stream/connection you areinterested in and then select the menu item you want under AnalyzeFollow(or in the context menu in the packet list). Wireshark will set anappropriate display filter and display a dialog box with the data from thestream laid out, as shown in Figure7.1, “The “Follow TCP Stream” dialog box”.

7.2.Following Protocol Streams (1)Tip

Following a protocol stream applies a display filter which selects allthe packets in the current stream. Some people open the “Follow TCPStream” dialog and immediately close it as a quick way to isolate aparticular stream. Closing the dialog with the “Back” button will resetthe display filter if this behavior is not desired.

Wireshark supports following the streams of many different protocols, includingTCP, UDP, DCCP, TLS, HTTP, HTTP/2, QUIC, WebSocket, SIP, and USB CDC.The dialog for following TCP streams is covered in detail here;most other supported protocols will show dialogs which are very similar.

7.2.Following Protocol Streams (2)Note

If the type of stream you wish to follow is disabled or missing from the menu,Wireshark did not find the respective protocol in the currently selected packet.

7.2.Following Protocol Streams (3)Tip

To follow TLS or SSL streams, see the wiki page onTLS for instructionson providing TLS keys.


The stream content is displayed in the same sequence as it appeared on thenetwork. Non-printable characters are replaced by dots.Traffic from the client to the server is colored red, while trafficfrom the server to the client iscolored blue. These colors can be changed by opening EditPreferences andunder AppearanceFont and Colors, selecting different colors for theSample "Follow Stream" client text and Sample "Follow Stream" server textoptions.

The stream content won’t be updated while doing a live capture. To get thelatest content you’ll have to reopen the dialog.

You can choose from the following actions:

Help
Show this help.
Filter out this stream
Apply a display filter removing the currentstream data from the display.
Print
Print the stream data in the currently selected format.
Save as…​
Save the stream data in the currently selected format.
Back
Close this dialog box and restore the previous display filter.
Close
Close this dialog box, leaving the current display filter ineffect.

By default, Wireshark displays both client and server data. You can select theEntire conversation to switch between both, client to server, orserver to client data.

You can choose to view the data in one of the following formats:

ASCII
In this view you see the data from each direction in ASCII.Obviously best for ASCII based protocols, e.g., HTTP.
C Arrays
This allows you to import the stream data into your own Cprogram.
EBCDIC
For the big-iron freaks out there.
HEX Dump
This allows you to see all the data. This will require a lot ofscreen space and is best used with binary protocols.
UTF-8
Like ASCII, but decode the data as UTF-8.
UTF-16
Like ASCII, but decode the data as UTF-16.
YAML
This allows you to load the stream as YAML.

The YAML output is divided into 2 main sections:

  • The peers section where for each peer you found the peer index, the host address and the port number.
  • The packets section where for each packet you found the packet number in the original capture, the peer index,the packet index for this peer, the timestamp in seconds and the data in base64 encoding.

Example7.1.Follow Stream YAML output

peers: - peer: 0 host: 127.0.0.1 port: 54048 - peer: 1 host: 127.0.10.1 port: 5000packets: - packet: 1 peer: 0 index: 0 timestamp: 1599485409.693955274 data: !!binary | aGVsbG8K - packet: 3 peer: 1 index: 0 timestamp: 1599485423.885866692 data: !!binary | Ym9uam91cgo=

The same example but in old YAML format (before version 3.5):

# Packet 1peer0_0: !!binary | aGVsbG8K# Packet 3peer1_0: !!binary | Ym9uam91cgo=

How the old format data can be found in the new format:

New YAML formatOld YAML format
...packets: - packet: AAA peer: BBB index: CCC data: !!binary | DDD
# Packet AAApeerBBB_CCC !!binary | DDD
AAA: packet number in the original captureBBB: peer indexCCC: packet index for this peerDDD: data in base64 encoding
Raw
This allows you to load the unaltered stream data into a differentprogram for further examination. The display will show the data as stringsof hex characters with each frame on a separate line, but “Save As”will result in a binary file without any added line separators.

You can optionally show the delta time each time the direction changes (turns) or for every packet or event.

You can switch between streams using the “Stream” selector.

You can search for text by entering it in the “Find” entry box andpressing Find Next.

Figure7.2.The “Follow HTTP/2 Stream” dialog box

7.2.Following Protocol Streams (5)


The HTTP/2 Stream dialog is similar to the "Follow TCP Stream" dialog, exceptfor an additional "Substream" dialog field. HTTP/2 Streams are identified bya HTTP/2 Stream Index (field name http2.streamid) which are unique within aTCP connection. The “Stream” selector determines the TCP connection whereas the“Substream” selector is used to pick the HTTP/2 Stream ID.

The QUIC protocol is similar, the first number selects the QUIC connection numberwhile the "Substream" field selects the QUIC Stream ID.

Figure7.3.The “Follow SIP Call” dialog box

7.2.Following Protocol Streams (6)


The SIP call is shown with same dialog, just filter is based on sip.Call-IDfield. Count of streams is fixed to 0 and the field is disabled.

7.2. Following Protocol Streams (2024)
Top Articles
What missed rent and mortgage payments mean for the financial system
How to Become Debt Free Fast - 5 Easy Steps - Ayur-Kosha
Jackerman Mothers Warmth Part 3
Occupational therapist
How To Do A Springboard Attack In Wwe 2K22
Best Private Elementary Schools In Virginia
litter - tłumaczenie słowa – słownik angielsko-polski Ling.pl
Gma Deals And Steals Today 2022
7543460065
Razor Edge Gotti Pitbull Price
Costco Gas Foster City
Accuweather Mold Count
White Pages Corpus Christi
Epguides Strange New Worlds
Busted Campbell County
Play Tetris Mind Bender
Bay Area Craigslist Cars For Sale By Owner
Cognitive Science Cornell
Gillette Craigslist
Fuse Box Diagram Honda Accord (2013-2017)
Craigs List Jax Fl
Ezstub Cross Country
R/Orangetheory
Productos para el Cuidado del Cabello Después de un Alisado: Tips y Consejos
The Rise of "t33n leaks": Understanding the Impact and Implications - The Digital Weekly
Was heißt AMK? » Bedeutung und Herkunft des Ausdrucks
Slv Fed Routing Number
Minecraft Jar Google Drive
What Time Does Walmart Auto Center Open
Navigating change - the workplace of tomorrow - key takeaways
Rise Meadville Reviews
Junee Warehouse | Imamother
Retire Early Wsbtv.com Free Book
Craigs List Stockton
Daily Jail Count - Harrison County Sheriff's Office - Mississippi
Rochester Ny Missed Connections
The Closest Walmart From My Location
Pay Entergy Bill
Shuaiby Kill Twitter
888-822-3743
Mudfin Village Wow
Nina Flowers
Shipping Container Storage Containers 40'HCs - general for sale - by dealer - craigslist
Tricare Dermatologists Near Me
2017 Ford F550 Rear Axle Nut Torque Spec
Flappy Bird Cool Math Games
Dyi Urban Dictionary
Backpage New York | massage in New York, New York
Sacramentocraiglist
Steam Input Per Game Setting
Mytmoclaim Tracking
Tìm x , y , z :a, \(\frac{x+z+1}{x}=\frac{z+x+2}{y}=\frac{x+y-3}{z}=\)\(\frac{1}{x+y+z}\)b, 10x = 6y và \(2x^2\)\(-\) \(...
Latest Posts
Article information

Author: Velia Krajcik

Last Updated:

Views: 6296

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Velia Krajcik

Birthday: 1996-07-27

Address: 520 Balistreri Mount, South Armand, OR 60528

Phone: +466880739437

Job: Future Retail Associate

Hobby: Polo, Scouting, Worldbuilding, Cosplaying, Photography, Rowing, Nordic skating

Introduction: My name is Velia Krajcik, I am a handsome, clean, lucky, gleaming, magnificent, proud, glorious person who loves writing and wants to share my knowledge and understanding with you.