TITLE
    QuickTime Streaming Server 2.0: Setting Up a Relay
Article ID:
Created:
Modified:
75004
12/3/99
9/1/00

TOPIC

    This article describes how to set up a relay using QuickTime Streaming Server 2.0 (QTSS).

    Note: All information in this article comes from the help file distributed with QuickTime Streaming Server 2.0. The help file includes additional help topics that are not covered in the Knowledge Base.


DISCUSSION

    Setting up a Relay

    A relay listens to an incoming broadcast (either unicast or multicast), and forwards, or relays, that broadcast to one or more destination addresses. The destination addresses may be unicast or multicast. You can set up your server to relay multiple broadcasts at the same time.

    Sample Setup for Relaying a Live Broadcast

    A Mac OS computer captures and encodes video and audio. The encoded signal is sent to a QuickTime Streaming Server over an IP network.
    The destination computers receive the relayed signal and send it to client computers.
    A Mac OS X Server with QuickTime
    Streaming Server relays the signal to several destinations.
    Client computers tune in to the broadcast.

    Setting Up a Relay Configuration File

    You set up a relay by creating a relay configuration file and copying it to the /etc directory. The name of the file should be "/etc/qtssrelay.conf". If you are using DarwinStreamingServer 2.0, the name should be "/etc/streamingrelay.conf".

    The easiest way to create a relay configuration file is to edit the sample file data provided in this article. (See below.)

    A relay source and one or more relay destinations are part of a unit. Information about a relay destination must immediately follow information about a relay source. You may have more than one unit in a configuration file.

    The following example has one source and two destinations.

    IMPORTANT: Although the relay_source and relay_destination lines are each split over two lines in the example, each must be on one line in your configuration file.


    Example Relay Configuration File for QTSS 2.0:

    relay_source in_addr=224.98.98.45 src_addr=
    17.98.45.45 in_ports=5000 5002 5004 ttl=15

    relay_destination dest_addr=17.254.98.45
    out_addr=17.98.45.45 dest_ports=1980 1982 1984

    relay_destination dest_addr=226.91.45.78
    out_addr=17.98.45.45 dest_ports=10010 10012 10014 ttl=15

    Example Relay Configuration File for QTSS 2.0.1:

    In QuickTime Streaming Server 2.0.1, the syntax has changed. When entering a string that contains spaces in a configuration file, the string must be enclosed in quotation marks.

    relay_source "in_addr=224.98.98.45 src_addr=
    17.98.45.45 in_ports=5000 5002 5004 ttl=15"

    relay_destination "dest_addr=17.254.98.45
    out_addr=17.98.45.45 dest_ports=1980 1982 1984"

    relay_destination "dest_addr=226.91.45.78
    out_addr=17.98.45.45 dest_ports=10010 10012 10014 ttl=15"

    For more information on QuickTime Streaming Server Syntax Change, please see article 31237:

    " QuickTime Streaming Server: Configuration File Syntax Changed in Version 2.0.1 "

    These are the keywords and values that can appear in the relay configuration file.

    Keyword
    Value
    relay_source followed by these keywords and an appropriate value for each keyword:
    in_addr , src_addr , in_ports , ttl
    in_addr input IP address. If the source broadcast is a multicast, this is the multicast IP address. If the source broadcast is a unicast, this must be one of the IP addresses on the relay computer.
    src_addr IP address of source (optional)
    in_ports port number of the RTP streams in the source broadcast. These must be even numbers. The number of input ports should match the number of output ports; make sure port numbers are unique and do not overlap
    ttl time-to-live value (if it's a multicast source)
    relay_destination followed by these keywords and an appropriate value for each keyword:
    dest_addr , out_addr , dest_ports , ttl
    dest_addr destination IP address (unicast or multicast) of the relay
    out_addr IP address of the interface on which to send out multicast packets (optional). If not set explicitly, the output interface is chosen automatically.
    dest_ports port numbers of the RTP streams in the destination relay. These must be even numbers. The number of output ports should match the number of input ports; make sure port numbers are unique and don't overlap
    ttl time-to-live value (if it's a multicast source)
    include followed by a path and file name for a relay configuration file


    Turning a Relay on or off

    To turn off a relay, delete or remove the file from the /etc directory. Then stop and restart QuickTime streaming service.

    To turn on a relay, create or copy a relay configuration file to the /etc directory. Then stop and restart QuickTime streaming service.


Document Information
Product Area: Mac OS System Software
Category: Mac OS X Server
Sub Category: QuickTime Streaming
Keywords: kqtss, kqt4, kmosXserver

Copyright © 2000 Apple Computer, Inc. All rights reserved.