Version: v1.0
Abstract: This Application Note provides technical information on multicast video and how this relates to
the various devices in the Thomson Gateway family. First, we provide some background
information on multicast video. Next, a tested and proven scenario shows how to integrate the
Thomson Gateway in a multicast network. In the described scenario, the Thomson Gateway
supports a routed Internet connection using a PVC and routed multicast traffic using an Ethernet
WAN port. We present the mechanisms that are used to set up the scenario, the configuration of
the Thomson Gateway using CLI commands and an illustration of the resulting configuration.
Applicability: This Application Note is relevant to all Thomson Gateway devices that support Flexiport with a
single PVC and IGMP proxying:
Flexiport with a single PVC is supported since R5.3.2.
IGMP proxying is supported since R5.4.
The scenario presented has been tested on:
The THOMSON ST780 (Wireless) R6.2.16.3.
Updates: THOMSON continuously develops new solutions, but is also committed to improving its
existing products.
For more information on THOMSON's latest technological innovations, documents and
software releases, visit us at http://www.thomson-broadband.com
Chapter 1
Multicast video
From an end user’s point of view, multicast video over IP is similar to broadcast TV:
The video server sends a number of continuous digitized and packetized video streams into the network.
Each video stream has its own multicast group address. The various multicast group addresses can be
compared to the channel frequencies for broadcast TV. A video display application can become a
member of a multicast group, and thus receives a particular video stream. This is just like tuning to the
frequency of the channel you would like to watch for broadcast TV.
Differences between multicast video over IP and broadcast TV exist in network and traffic features:
While broadcast TV channels are broadcast at all times to all subscribers, a multicast video stream is only
forwarded on the links that lead to the multicast group members.
While broadcast TV sets tune in locally to a particular channel, a multicast client announces its
membership to a particular multicast group by means of IGMP signalling.
Differences between multicast video and unicast video are:
While a unicast video stream is dedicated to a single client, a multicast video stream is shared by many
clients. A multicast stream is only put once on a logical link that leads to the multicast group members.
As a result, a multicast video stream only uses a fraction of the bandwidth used by a large number of
duplicated unicast video streams.
While unicast video streams can use both TCP and UDP as transport protocol, multicast streams can only
use UDP.
While a unicast video stream starts on request of the video client, multicast video streams are always on.
The multicast video clients join the group at a certain moment in time.
Multicast group
A multicast group consists of a number of devices that share a multicast group address for communication.
The information is sent no more than once on each link.
The devices are:
Server(s): a multicast server sends multicast streams, each with a “pre-defined” multicast group
address.
Routers: a multicast router receives the multicast streams. The router forwards each multicast stream to
its multicast peers that are member of the corresponding multicast group. This requires that the multicast
peers have announced to which multicast groups they belong by means of IGMP.
Clients: multicast clients receive multicast streams to which they subscribed themselves and decode the
data to display them to the end users.
1 E-DOC-CTC-20080401-0010 v1.0
Chapter 2
Introduction
Several mechanisms can be used by Thomson Gateway devices to support multicast video:
Port-to-PVC mapping.
Flexiport mechanism.
Internet Group Management Protocol (IGMP) proxying and IGMP snooping.
The mechanisms that are used to set up the scenario described in this document are the Flexiport mechanism
and IGMP proxying. These mechanisms are shortly described in following subsections.
Advantages of Flexiport
The Flexiport mechanism has following advantages:
Pre-defined LAN devices can be recognized on-the-fly and be mapped to the PVC offering the services
that are needed. For example, a certain type of STB can be recognized and automatically linked with the
PVC towards the video network - no matter which Ethernet port they are plugged in to. This is done by
placing the MAC address of the device in a VLAN which has the proper PVC mapped to it. Other devices
that are not recognized are still routed over the same default PVC.
Multicast traffic is sent to the STB port only, which is similar to IGMP snooping. When connecting another
device to the STB port, it will be routed again.
Wireless ports and WDS ports can also be configured as Flexiport. This can be used to overcome larger
distances without the hassle of cables. When running voice or video services over wireless it is
recommended to use WMM (WiFi MultiMedia). This feature ensures some kind of Quality of Service.
E-DOC-CTC-20080401-0010 v1.0
2
Chapter 2
Introduction
Following illustration shows the concept of the Flexiport mechanism:
Ethernet port1
Internet
Ethernet port 2
BRAS
Ethernet port 4
DHCP Server
Video Server
Video Network
Concept
The STB is recognized as soon as it is plugged into the Thomson Gateway. This is done in seven steps:
1 The Thomson Gateway is up and running, PCs are surfing the Internet through one PVC.
2 The STB is added to one of the ports of the Thomson Gateway and sends out a DHCP discover message.
3 The DHCP relay identifies the STB by its Vendor Class Identifier or MAC address and moves the STB’s
MAC address into a second VLAN.
4 The STB re-sends the DHCP discover message, but now as member of the second VLAN.
5 The STB now receives an IP address from the video DHCP server and can start receiving video.
6 The STB’s MAC address is saved, and the next time the Thomson Gateway reboots, it remembers to
which VLAN the STB belongs.
7 When the STB reboots, it re-sends a DHCP discover message and restarts the procedure from step 4.
The Flexiport mechanism can also be used for wired and wireless IP phones. This way, the data
from the IP phone is bridged to the Voice PVC while other wireless devices can still surf the web
over the default PVC.
3 E-DOC-CTC-20080401-0010 v1.0
Chapter 2
Introduction
The Flexiport mechanism combines several features of the Thomson Gateway, such as VLANs, DHCP,
dynamic VLANs and scripts. In this section, we shortly describe the configuration of some Flexiport-related
features. For the complete configuration of the Flexiport mechanism, we refer to the description of the
scenario.
DHCP rules
A device can be identified based on its MAC address or Vendor Class Identifier (VCI), which are sent out with
the DHCP request of the device. The DHCP relay handles received DHCP requests and recognizes devices by
the use of DHCP rules.
Configure DHCP rules as follows:
MAC address:
VCI code:
An exclamation mark (“!”) is used to indicate that the device’s MAC address or VCI must differ from
the specified value.
VCI code: here, we only put part of the VCI code in the rule and add the option match=as_substring.
Following rule recognizes any device with ST20 in its VCI as a VoIP device, e.g. devices with VCI ST2030
or ST2020:
E-DOC-CTC-20080401-0010 v1.0
4
Chapter 2
To assign more than one DHCP rule to a single forwarding entry, keys are used:
AND key: the AND key indicates that a rule applies if all conditions are fulfilled.
OR key: the OR key indicates that a rule applies as soon as one of the conditions if fulfilled.
Flexiport script
A Flexiport script makes use of dynamic VLANs, moving the MAC address of the recognized device to a
specified VLAN.
Create a Flexiport script as follows:
The DHCP relay can trigger a Flexiport script, if it is assigned to a DHCP relay forwarding entry as follows:
Here, the name of the script must be entered without the dhcr_ prefix.
If a DHCP relay forwarding entry applies, the corresponding Flexiport script is triggered. The script stores the
MAC address of the recognized device in the dynVLAN membership table.
5 E-DOC-CTC-20080401-0010 v1.0
Chapter 2
If the parameter is enabled, the MAC address is not stored in the dynVLAN membership table. This
allows that more than four devices make use of the Flexiport mechanism. In addition, if the Thomson
Gateway reboots, the entries are removed from the dynVLAN membership table.
For example, following Flexiport script enables the use of dynamic MAC addresses:
If this script is triggered, an entry is added to the dynVLAN membership table. The asterisk indicates that a
dynamic MAC address is used:
Parameter remVLAN
In most scenarios, the Flexiport script moves the MAC address of a STB to a separate VLAN. However, it is
also possible that the MAC address of a data PC (e.g. connected to LAN port ethport3) is moved to a separate
VLAN and the STB (e.g. connected to LAN port ethport1) remains in the default VLAN. In this case, the
dynVLAN membership table and the resulting VLAN membership information look as follows:
Following behaviour can be expected: when the STB requests a multicast video stream, these video packets
are also sent out on ethport3 and thus are received by the data PC. This is unwanted behaviour. To obtain the
desired behaviour, there is a parameter remvlan in the Flexiport script to explicitly remove the MAC address
from a specific VLAN. If the data PC is removed from the default VLAN, it does not receive any multicast
packets. For example, following Flexiport script uses the remvlan parameter:
In this case, the dynVLAN membership table and the resulting VLAN membership information look as
follows:
E-DOC-CTC-20080401-0010 v1.0
6
Chapter 2
Introduction
When a multicast client wants to receive a specific multicast stream, it must join the corresponding multicast
group. IGMP is the protocol used by IPv4 systems, i.e. clients and routers, to report their multicast group
memberships to neighbouring multicast routers.
7 E-DOC-CTC-20080401-0010 v1.0
Chapter 3
Introduction
In this scenario, we configure the Thomson Gateway with a single PVC and an Ethernet WAN port:
The PVC is used for data traffic via a routed PPPoE Internet connection.
The Ethernet WAN port is used for routed multicast traffic.
Following illustration shows the scenario “Ethernet WAN port for routed multicast“:
Internet
Private IP
from DHCP Pool 1
BRAS
Thomson Gateway
PPPoE
NATed IP Connection
NATed IP Routed
Ethernet DSLAM
Connection
Private IP
from DHCP Pool 2
Video Server
Video Network
Mechanisms
To set up this scenario, we use following mechanisms:
VLANs: the Ethernet bridge of the Thomson Gateway uses a separate video VLAN for multicast video
traffic. This results in a Layer 2 isolation of the STB and the other LAN devices.
Flexiport: this mechanism assigns the MAC address of the STB to the video VLAN. When the STB
connects to a bridge port, that bridge port is automatically added to the video VLAN.
IGMP proxying: this mechanism enables the Thomson Gateway to work as multicast router.
E-DOC-CTC-20080401-0010 v1.0
8
Chapter 3
Configuration overview
Following configuration steps have to be performed to configure the Thomson Gateway for this scenario:
1 Configure the WAN interfaces for the routed PPPoE Internet connection.
2 Create the necessary VLANs.
3 Configure the WAN interfaces for the routed multicast video connection.
4 Configure video LAN interfaces.
5 Configure the Flexiport mechanism.
6 Configure IGMP proxying.
7 Save the configuration.
=>:saveall
9 E-DOC-CTC-20080401-0010 v1.0
Chapter 3
Video VLANs
Proceed as follows:
Make the Ethernet bridge VLAN aware:
The video WAN VLAN must only be created if the video server is directly connected to the
Ethernet WAN port and uses VLAN tags. In this case, the VID of the created video WAN VLAN
must be the same as the VID of the multicast video streams.
Create a video VLAN:
E-DOC-CTC-20080401-0010 v1.0
10
Chapter 3
Create another logical Ethernet interface. Connect it to the first one and place it in the video WAN VLAN:
DHCP client
Proceed as follows:
Configure the DHCP client for the video IP WAN interface:
11 E-DOC-CTC-20080401-0010 v1.0
Chapter 3
DHCP pool
Proceed as follows:
Create a DHCP server pool for the video network:
E-DOC-CTC-20080401-0010 v1.0
12
Chapter 3
Create a first DHCP relay forwarding entry that will check the MAC address of the device in the DHCP
request. If the MAC address of the device matches the MAC address in the rule, the Flexiport script will be
triggered. If the MAC address does not match the MAC address in the rule, the DHCP request will be
forwarded to the default internal DHCP server:
Create a second DHCP relay forwarding entry that will forward a new DHCP request towards the internal
video DHCP server:
DHCP rules
Proceed as follows:
Create DHCP rules to recognize the STB based on its MAC address:
Flexiport script
Proceed as follows:
Create a Flexiport script to move the MAC address of the STB to the video VLAN:
13 E-DOC-CTC-20080401-0010 v1.0
Chapter 3
Here, the name of the script must be entered without the dhcr_ prefix.
These CLI commands apply to a residential device (500 or 700 series). In case you have a
business device (600 series), use lan1 instead of LocalNetwork.
IGMP proxy
Proceed as follows:
Enable the IGMP proxy to forward all multicast traffic from the WAN side to the video VLAN:
=>:saveall
E-DOC-CTC-20080401-0010 v1.0
14
Chapter 3
3.3 Result
Following illustration shows the resulting configuration of the Thomson Gateway:
Router
IGMP Proxy
DOWN UP
OBC
Bridge
default (vid=1) video (vid=2)
Flexiport
1 2 3 ethport ...
PC STB
15 E-DOC-CTC-20080401-0010 v1.0
Visit us at:
www.thomson-broadband.com
Coordinates:
THOMSON Telecom
Prins Boudewijnlaan 47
B-2650 Edegem
Belgium
Copyright