You are on page 1of 12

f

document title/ titre du document


D O C U M E N T

ISS ESA ATV D OCKING MPEG-2 E NCODER

&

T RANSPORT S TREAM OVER IP S PECIFICATION

prepared by/préparé par Fabio Sintoni

reference/réference TN-01-13082008-ATV-EDV
issue/édition 1
revision/révision 0
date of issue/date 13/08/2008
d’édition
status/état
Document type/type de Technical Note
document
Distribution/distribution

a
45938626.doc
s ISS ESA ATV DOCKING MPEG-2 ENCODER
issue 1 revision 0 - 13/08/20
TN-01-13082008-ATV-EDV
page ii of iv

A P P R O V A L

Title iss 1 revision 0


titre ue revisio
iss n
ue

author dat 13/08/20


auteur e
dat
e

approved by dat
approuvé by e
dat
e

C H A N G E L O G

reason for change /raison du changement issue/issue revision/revision date/date

C H A N G E R E C O R D

Issue: 1 Revision: 0

reason for change/raison du changement page(s)/page(s) paragraph(s)/parag


raph(s)
s ISS ESA ATV DOCKING MPEG-2 ENCODER
issue 1 revision 0 - 13/08/20
TN-01-13082008-ATV-EDV
page iii of iv

T A B L E O F C O N T E N T S

1 INTRODUCTION....................................................................................................1

2 TECHNICAL SPECIFICATION..............................................................................1
2.1 Ethernet IEEE 802.3 Frame encapsulation for MPEG-2 TS over IP.................................................3
2.2 IP addressing and UDP Ports.............................................................................................................3
2.3 MPEG-2 Transport Stream................................................................................................................3
2.4 The UDP Packet.................................................................................................................................5
2.5 The IP Packet.....................................................................................................................................6
2.6 The Ethernet Frame............................................................................................................................8

Figure 2-1: ATV docking Video E2E distribution.............................................................................................1


Figure 2-2: TS Structure....................................................................................................................................4
Figure 2-3: UDP Packet.....................................................................................................................................5
Figure 2-4: IP Packet..........................................................................................................................................6
Figure 2-5: IEEE 802.3 Ethernet Frame............................................................................................................8
Figure 2-6: Generic example of decoded Ethrnet Frame..................................................................................9
s ISS ESA ATV DOCKING MPEG-2 ENCODER
issue 1 revision 0 - 13/08/20
TN-01-13082008-ATV-EDV
page 1 of 9

1 INTRODUCTION

This document has been prepared to summarize the specification of the ISS ESA ATV docking
video digital end-to-end implementation and become part of the Section four of CCSDS White
Book , chapter 2 : “Examples of current spaceflight video systems” .

It covers the definition of the Encoding scheme and of the MPEG-2 Transport Stream produced by
the ESA Encoder mounted in the ISS Service Module and the transmission over an IP network.
These specifications are also focusing on the definition of Ethernet Frame structure which has to be
prepared by the Ethernet interface of the encoder.

The Specifications are given in form of example. All the mentioned standards such as IEEE
802.3, IPv4, MPEG-2 TS are widely documented and detailed information are easly accessible on
the Web.

2 TECHNICAL SPECIFICATION
The current baseline for the implementation of the transport of the MPEG-2 Video from the ISS to
the ground terminals (PC and TV displays) is depicted in the figure 2.1
802.1q
Trunk Routed
Smart data
Encoder Edge Router OCA C&DH
Switch Router
IP into
I-1 I-3 I-5 CCSDS
encapsulation
VLAN I-2 I-4
(switched data)

TDRSS
Laptop Laptop
CCSDS
into IP
de-encapsulation
I-7 I-6
Network MCC-H WSC
MPEG-2 IP/ASI switch FEP and
Concentrator
Converter
Demodulation
Demux and Mux
VLAN Routed
(switched data) data

ATM
I-8

Video Video Video


Distribution @ Distribution @ Distribution @
Col-CC MCC-M ATV-CC

Figure 2-1: ATV docking Video E2E distribution


s ISS ESA ATV DOCKING MPEG-2 ENCODER
issue 1 revision 0 - 13/08/20
TN-01-13082008-ATV-EDV
page 2 of 9

List of specs/parameters

1. Source signal: Analog signal from the the ATV Docking camera
distributed inside the ISS by the Video Switch (КОММУТАТОР). The Video Signal
contains telemetry and ancillary information overlay produced by the SIMBOL equipment
2. The signal is: composite 625 lines/ 50 Hz PAL
3. The encoder produces: MPEG-2 encoded Video
4. Frame Resolution: 720 x 576 pixel 24bit colour
5. Frame per second: 25
6. YUV colour space: 4:2:0
7. Colour conversion: RGB-24bit to YUV Conversion ITU-601 R
{R [0...255], G [0...255], B [0...255]} => {Y [16...235], U [16...240], V [16...240],
black: Y=16, white: Y = 235
8. Bit rate: constant bit rate
9. GOP: IPPPIPPPI without motion compensation (no B-frames
and motion vectors).
10. Transportation: MPEG-2 TS - MPEG-2 Encoded Video is transmitted at the
constant transport stream bitrate of 4000000 Bits/second.
11. Transport stream ID Yes - Transport stream consist of a single component
(video) with fixed PID.
12. Program stream ID None- No PSI (Program Specific Information) tables need be
used.
13. MPPEG-TS Packet size: Standard - Each TS packet is 188 byte long
14. 1 TS packet is written into a 1 UDP packet of 196 bytes
15. 7 UDP packets are encapsulated into a 1 IP packet
16. 1 IP packet is encapsulated into a 1 Ethernet frame
17. MTU size: 1500 Bytes
18. Every Ethernet Frame is delivers to the network by the Ethernet Interface of the Encoder
19. A single IP multicast addresses is used to group all possible destination at layer-3
20. A single Ethernet address is used to group all possible destination at layer-2
21. Every single Ethernet frame which has been send from the ESA Encoder the Russian
Smart Switch router has to be delivered to:
o Client(s) located in the Russian Segment of the ISS, belonging to the same VLAN
o OCA interface located in the American Segment of the ISS
22. The Smart Switch routes IP Multicast packets from ESA Encoder with static entry of
routing table, without processing of APR (or other) protocols.
23. The protocol between the Smart Switch Router and the Edge Router is the IEEE 802.1q
trunk protocol.
24. The Edge Router routes IP Multicast packets to the OCA interface.
25. In MCC_H the IP Multicast packet is received and delivered to the ESA MPEG-2 /IP to
ASI interface hosted inside the ESA Relay.
26. The ESA Ground Segment supports the distribution of the MPEG-2 Video to the end
systems in ATC-CC and MCC-M
s ISS ESA ATV DOCKING MPEG-2 ENCODER
issue 1 revision 0 - 13/08/20
TN-01-13082008-ATV-EDV
page 3 of 9

27. For the end-to-end compatibility, the ESA Encoder MPEG-2 Transport Stream shall be
compatible with the Client Software and the MPEG-2 /IP to ASI interface.

2.1 Ethernet IEEE 802.3 Frame encapsulation for MPEG-2 TS over


IP.
The following paragraphs describe the preparation of a single Ethernet packet which is carrying a
payload data of 1 MPEG-2 Transport Stream packet. Addresses and UDP ports are not part of this
specification, but are taken by a working example1.

2.2 IP addressing and UDP Ports


Source IP address: Encoder IP address : 192.168.100.10
Destination IP address: IP Multicast address: 239.255.100.1
UDP source port 1051
UDP destination port: 1234

2.3 MPEG-2 Transport Stream


The TS packet is the payload field of the UDP layer 4 packet
It works like this:

Each MPEG-2 TS packet carries 184 B of payload data prefixed by a 4 B (32 bit) header. MPEG-2
Transport stream:
The packet is 188 bytes = 4 header , 184 payload. Overhead 2%

1
The ATV reference video used for the MPEG-2 parameter identification has been send via IP multicast using the
VideoLAN software over a LAN in UDP Multicast. The server and the client were connected via 2 switches with a
802.1q trunk between the 2 switches. The Mpeg-2 file and the network traffic hexdump of the transmission of the file
are available on request to F. Sintoni fabio.sintoni@esa.int .
s ISS ESA ATV DOCKING MPEG-2 ENCODER
issue 1 revision 0 - 13/08/20
TN-01-13082008-ATV-EDV
page 4 of 9

Figure 2-2: TS Structure

The TS header has the following fields:


The header starts with a well-known Synchronisation Byte (8 bits). This has the bit pattern
0x47 (0100 0111).
A set of three flag bits are used to indicate how the payload should be processed.
1. The first flag indicates a transport error.
2. The second flag indicates the start of a payload (payload_unit_start_indicator)
3. The third flag indicates transport priority bit.
The flags are followed by a 13 bit Packet Identifier (PID). This is used to uniquely identify
the stream to which the packet belongs (e.g. PES packets corresponding to an ES)
generated by the multiplexer. The PID allows the receiver to differentiate the stream to
which each received packet belongs. Some PID values are predefined and are used to
indicate various streams of control information. A packet with an unknown PID, or one
with a PID which is not required by the receiver, is silently discarded. The particular PID
value of 0x1FFF is reserved to indicate that the packet is a null packet (and is to be ignored
by the receiver).
The two scrambling control bits are used by conditional access procedures to encrypted the
payload of some TS packets.
Two adaption field control bits which may take four values:
1. 01 – no adaptation field, payload only
2. 10 – adaptation field only, no payload
3. 11 – adaptation field followed by payload
4. 00 - RESERVED for future use
Finally there is a half byte Continuity Counter (4 bits)

Any transport stream packet has a single fixed PID with the value 0x85(as example, can be any).
s ISS ESA ATV DOCKING MPEG-2 ENCODER
issue 1 revision 0 - 13/08/20
TN-01-13082008-ATV-EDV
page 5 of 9

2.4 The UDP Packet


This group of 188 bytes is the "data payload" of the UDP packet, to have a complete UDP packet, you
have to had the UDP header which is very simple:

Figure 2-3: UDP Packet

In my example:
source port = 1051 (example) (2 bytes) 04.1b
destination port = 1234 (2 bytes) 04.d2
packet length =196 bytes (2 bytes) 00.c4
checksum (2 bytes)cf.61 example, must be calculated!

[UDP Header][payload = 188 bytes of the TS Packets] = 196 bytes in total.


|
[source port][destination port][packet length][checksum][ = 188 bytes of the TS Packets]
The UDP packet is now complete, but we cannot deliver it directly to any machines, since we need to add the network
information to the UDP packet.
s ISS ESA ATV DOCKING MPEG-2 ENCODER
issue 1 revision 0 - 13/08/20
TN-01-13082008-ATV-EDV
page 6 of 9

2.5 The IP Packet


We decided to use IP as network protocol.
In an IP network, we need IP addresses and some information to create an IP packet which can be transmitted
independently fro the Layer-2 implementation (Ethernet, Token Ring, FDDI, …).

Our complete UDP packet of 196 bytes must be encapsulated into an IP v4 packet.

To build and IP packet we need to build the IP header and after the header put the UDP packet. Because of the length
of the IP header of 20 bytes the total length of the new packet is 20 + 196 = 216 bytes.

Figure 2-4: IP Packet

Our IP Header will be:


version/header length : IP version 4, header length 4 octets is:
(1 byte) 45
Differ. Serv =0 (1 byte) 00
Total light =216 bytes (2 bytes)00.d8
Identification = 3454 (example) (2 bytes)0d.7e
Flags/Offset = don’t fragment
(1 bytes)40.00
Time to live = 254 (1 byte) fe
IP Subrotocol type: UDP (1 byte) 11
Header checksum: (2 bytes)32.e4 example, must be calculated!
Source IP address (4 bytes)c0.a8.64.0a (HEX equivalent to the decimal dotted notation for
192.168.100.10)
s ISS ESA ATV DOCKING MPEG-2 ENCODER
issue 1 revision 0 - 13/08/20
TN-01-13082008-ATV-EDV
page 7 of 9

Destination IP address (4 bytes)ef.ff.64.01 (HEX equivalent to the decimal dotted notation


239.255.100.1)
Our new IP packet is now:
[IP header = 20 bytes][UDP packet= 196 bytes]
I
[diff-serv][length][Id][flag][fragm.][TTL][sub-protocol][checksum][source address][destination address][UDP
packet= 196 bytes]

Now we have a complete IP packet, ready to be delivered to a lower layer: we have decided to use Ethernet.
s ISS ESA ATV DOCKING MPEG-2 ENCODER
issue 1 revision 0 - 13/08/20
TN-01-13082008-ATV-EDV
page 8 of 9

2.6 The Ethernet Frame


Our complete IP packet needs now to be encapsulated into an Ethernet Frame.

The Ethernet frame IEEE 802.3 is build like this:

Figure 2-5: IEEE 802.3 Ethernet Frame

We concentrate our attention to the header, because every Ethernet controller should prepare the preamble by itself
when are set to a certain speed 910/100/1000 Mbits) It is a sequence of 101010... to synch the transmitter and the
receiver. Also the checksum should be calculated by the Ethernet controller.
s ISS ESA ATV DOCKING MPEG-2 ENCODER
issue 1 revision 0 - 13/08/20
TN-01-13082008-ATV-EDV
page 9 of 9

Figure 2-6: Generic example of decoded Ethrnet Frame

In our case the Ethernet Header is build with:

MAC Address destination (6 bytes)01.00.5E.7F.64.01 ( Multicast MAC address which corresponds to 239.255.100.1
MAC Address source (6 bytes)00.11.85.86.8F.57 ( example)
Protocol Type = IP (2 bytes)08.00

In our case the header is always the same in every frame : the encoder doesn't chance its MAC address and since we
use a Multicast MAC address as destination, it also doesn't change and we will use IP which is "coded" as 0x08.00
according to the IEEE 802.3

In addition to that the Ethernet standard 802.3 includes 8 bytes for preamble at the beginning of the Ethernet packet
and 4 bytes for the FCS ( Frame Check Sequence ) at the end.

Preamble: an alternating 1,0 pattern provides a 5MHz clock for 10Mbits ( or 50Mhz for 100 Mbits or 500 for 1 Gbits)
at the start of each packet, which allows the receiving devices to lock the incoming bit stream. The preamble uses
either an SFD or synch field to indicate to the receiving station that the data portion of the message will follow.
Start Frame Delimiter (SFD)/Synch SFD is 1,0,1,0,1,0, etc., and the synch field is all 1s. The preamble and SFD/synch
field are 64 bits long.

Frame Check Sequence (FCS) is a field at the end of the frame that is used to store the cyclic redundancy check
(CRC).

Typically the Preamble and the FCS are prepared by the Ethernet controller "low level routines" and are typically
stripped off when you display data dumps with a LAN Sniffer.

You might also like