watch> rtmp — 16 packets

RTMP · Protocol

Real-Time Messaging Protocol

ApplicationL7port 1935
STEPS
  1. 1HANDSHAKETCP, then RTMP’s own
  2. 2CONNECTTo the server’s live app
  3. 3MAKE A STREAMcreateStream returns stream 1
  4. 4PUBLISHThe stream key goes live
  5. 5VIDEO AND SOUNDMetadata, settings, then frames
  6. 6STOP STREAMINGFCUnpublish and deleteStream
NETWORK VIEW
Client192.168.1.10Router192.168.1.1InternetIngest Server203.0.113.10
STEP 1/6 · 0/16
PACKET FLOWTCPRTMP
STEPTIMESOURCEDESTPROTOINFOSIZE
10.s192.168.1.10203.0.113.10TCP52630 → 1935 [SYN] Seq=066 B
20.017s203.0.113.10192.168.1.10TCP1935 → 52630 [SYN, ACK] Seq=0 Ack=166 B
30.034s192.168.1.10203.0.113.10TCP52630 → 1935 [ACK] Seq=1 Ack=160 B
40.034s192.168.1.10203.0.113.10RTMPHandshake C0+C1, 2 segments1.6 KB
50.052s203.0.113.10192.168.1.10RTMPHandshake S0+S1+S2, 3 segments3.2 KB
60.07s192.168.1.10203.0.113.10RTMPHandshake C2, 2 segments1.6 KB
70.071s192.168.1.10203.0.113.10RTMPSet Chunk Size 4096|connect('live')257 B
80.089s203.0.113.10192.168.1.10RTMPWindow Ack Size|Set Peer Bandwidth|Set Chunk Size|_result()305 B
90.107s192.168.1.10203.0.113.10RTMPreleaseStream()|FCPublish()|createStream()203 B
100.125s203.0.113.10192.168.1.10RTMP_result()95 B
110.143s192.168.1.10203.0.113.10RTMPpublish('live_29481_xk3Qe7')113 B
120.161s203.0.113.10192.168.1.10RTMPonStatus('NetStream.Publish.Start')171 B
130.179s192.168.1.10203.0.113.10RTMP@setDataFrame()|Video Data|Audio Data500 B
140.18s192.168.1.10203.0.113.10RTMPVideo Data, 21 segments30.4 KB
151835s192.168.1.10203.0.113.10RTMPFCUnpublish()|deleteStream()156 B
161835s203.0.113.10192.168.1.10RTMPonStatus('NetStream.Unpublish.Success')174 B

Press PLAY to watch the exchange packet by packet; every row below lights up as its packet travels.

LAYERApplication (Layer 7)
PORTTCP 1935
CARRIESH.264 video, AAC audio
COMMANDSEncoded in AMF0
SECURE VERSIONRTMPS, over TLS
DEFINED INAdobe specification (2012)

What is RTMP?

RTMP is the classic protocol for pushing live streams to an ingest server over TCP 1935. Encoder and server exchange AMF commands before the H.264 and AAC data starts flowing.

Steps

  1. 1. HANDSHAKETCP, then RTMP’s own
  2. 2. CONNECTTo the server’s live app
  3. 3. MAKE A STREAMcreateStream returns stream 1
  4. 4. PUBLISHThe stream key goes live
  5. 5. VIDEO AND SOUNDMetadata, settings, then frames
  6. 6. STOP STREAMINGFCUnpublish and deleteStream

Which port does RTMP use?

RTMP primarily uses port 1935.

Which layer does RTMP run at?

RTMP sits at Application (Layer 7).

Where is RTMP defined?

Adobe specification (2012).

Related protocols

About This Tool

This page provides original, human-reviewed information about internet protocols such as RTMP (Real-Time Messaging Protocol), the Protocol Explorer and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.

If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.