Results 1 to 7 of 7

Thread: Cannot assign requested address. Trying to input multicast on different nic

  1. #1
    Join Date
    Oct 2013
    Posts
    4

    Default Cannot assign requested address. Trying to input multicast on different nic

    Hi, I have a wowza server that has 2 nic. The multicast video udp MPEG ts is coming from eth1. Initially I saw that the IGMP joins were going out on eth0 so I change the VHOST to force rtp multicast on eth1. The config worked to trigger the IGMP join on eth1 and I can see the multicas traffic on eth1 when doing a tcpdump.

    I followed the guide to ingest mpeg2 ts. and I get the following:

    INFO server comment - RTPDePacketizerMPEGTS.init: Drop incomplete video frames
    INFO server comment - UDPPortSharingManager.bind[gt3Test/_definst_:true]: 239.20.10.1/239.20.10.1:8000
    INFO server comment - MulticastTransport.bind[gt3Test/_definst_]: 239.20.10.1/8000
    INFO stream publish mpegts.stream -
    INFO server comment - RTPMediaCaster.Reconnector[1558631662:gt3Test/_definst_:mpegts.stream]: done: 29
    INFO server comment - RTPMediaCaster.streamTimeout[1558631662:gt3Test/_definst_:mpegts.stream]: timeout:12000 diff:12013 reason:101
    INFO server comment - RTPMediaCaster.resetConnection[1558631662:gt3Test/_definst_:mpegts.stream]:
    INFO server comment - RTPMediaCaster.closeRTPSession[1558631662:gt3Test/_definst_:mpegts.stream]
    ERROR server comment - RTPMulticastListener.unbind: java.net.SocketException: Cannot assign requested address

    The mpegts.stream content:
    udp://239.20.10.1:8000

    VHOST:
    <RTP>
    <IdleFrequency>75</IdleFrequency>
    <DatagramConfiguration>
    <Incoming>
    <ReuseAddress>true</ReuseAddress>
    <ReceiveBufferSize>1024000</ReceiveBufferSize>
    <SendBufferSize>65000</SendBufferSize>
    <MulticastBindToAddress>true</MulticastBindToAddress>
    <MulticastInterfaceAddress>192.160.6.14</MulticastInterfaceAddress>
    <!-- <TrafficClass>0</TrafficClass> -->
    <MulticastTimeout>50</MulticastTimeout>
    <DatagramMaximumPacketSize>4096</DatagramMaximumPacketSize>
    </Incoming>
    Firewall is disable
    IPV6 is disabled.

    Not sure what the problem is. I also enabled port sharing but not sure why this would be a problem since I have only one channel.
    This is a fresh centos 6.4 install.
    My application requires two nic. One for management/control and one for live video ingest. ETH0 is for management/control and eth1 is for video feed.

    Any ideas/suggestions?

    Thanks

  2. #2
    Join Date
    Jun 2011
    Posts
    1,037

    Default

    Hi,
    Did you follow all the instructions here?
    Looks like you have the first part.

    Daren

  3. #3
    Join Date
    Oct 2013
    Posts
    4

    Default

    Quote Originally Posted by daren_j View Post
    Hi,
    Did you follow all the instructions here?
    Looks like you have the first part.

    Daren
    Yes I did try that. It does force the IGMP join to go on eth1 and I can see the udp multicast by doing a tcp dump. However Wowza does not see the input and throw this error :
    ERROR server comment - RTPMulticastListener.unbind: java.net.SocketException: Cannot assign requested address

    I enabled debug and it does not provide me more information.

  4. #4
    Join Date
    Oct 2013
    Posts
    4

    Default

    After further testing, it only works when the default gateway of the OS is set to use the interface for multicast.
    Example:
    ETH0:192.160.6.14
    ETH3:10.77.188.200

    My APplication RTP properties:
    <Property>
    <Name>multicastInterfaceAddress</Name>
    <Value>192.160.6.14</Value>
    </Property>

    Vhost.xml:
    <MulticastBindToAddress>true</MulticastBindToAddress>
    <MulticastInterfaceAddress>192.160.6.14</MulticastInterfaceAddress>

    When the default route for the system is using ETH0 (example gw 10.77.188.254). it does not work. (issuing a route command)
    I do see the multicast coming in on eth3 using tcpdump but wowza can't see it.

    If I change the default gateway to be 192.160.6.13 see below

    [root@localhost ~]# route
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.160.6.12 * 255.255.255.252 U 0 0 0 eth0
    10.77.188.0 * 255.255.255.0 U 0 0 0 eth3
    link-local * 255.255.0.0 U 1002 0 0 eth0
    link-local * 255.255.0.0 U 1005 0 0 eth3
    default 192.160.6.13 0.0.0.0 UG 0 0 0 eth0

    To me something is broken in wowza
    Last edited by FreeKerXLX; 10-10-2013 at 10:24 AM.

  5. #5
    Join Date
    Oct 2013
    Posts
    4

    Default

    Just to be complete. I also tried to add a static route to force multicast on eth0 and it did not help. Multicast is coming on ETH0 but wowza does not see it.

    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.160.6.12 * 255.255.255.252 U 0 0 0 eth0
    10.77.188.0 * 255.255.255.0 U 0 0 0 eth3
    link-local * 255.255.0.0 U 1002 0 0 eth0
    link-local * 255.255.0.0 U 1005 0 0 eth3
    224.0.0.0 * 240.0.0.0 U 0 0 0 eth0
    default 10.77.188.254 0.0.0.0 UG 0 0 0 eth3

  6. #6
    Join Date
    Sep 2016
    Posts
    1

    Default Is there any update of this problem !!! Did you manage to resolve the issue ?

    Quote Originally Posted by FreeKerXLX View Post
    Just to be complete. I also tried to add a static route to force multicast on eth0 and it did not help. Multicast is coming on ETH0 but wowza does not see it.

    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.160.6.12 * 255.255.255.252 U 0 0 0 eth0
    10.77.188.0 * 255.255.255.0 U 0 0 0 eth3
    link-local * 255.255.0.0 U 1002 0 0 eth0
    link-local * 255.255.0.0 U 1005 0 0 eth3
    224.0.0.0 * 240.0.0.0 U 0 0 0 eth0
    default 10.77.188.254 0.0.0.0 UG 0 0 0 eth3
    Is there any update of this problem !!! Did you manage to resolve the issue ?

  7. #7
    Join Date
    Jan 2015
    Posts
    357

    Default

    Hi,

    Have you followed the tutorial to listen for a particular interface? If so, and you continue to have issues, then there may be a different cause to your problem. Please submit a support request with a zip copy of your conf/ and logs/ folders.

    Michelle

Similar Threads

  1. UDP Multicast input issues
    By edwoodza in forum Live Streaming and Encoders
    Replies: 1
    Last Post: 06-02-2014, 10:39 AM
  2. Dual NIC support to convert UDP multicast to RTMP
    By jnamics in forum General Forum
    Replies: 2
    Last Post: 03-20-2014, 04:34 PM
  3. Cannot assign requested address
    By wordz320 in forum Tutorials Discussion
    Replies: 1
    Last Post: 02-28-2014, 05:12 AM
  4. multicast input from two interfaces
    By sgtring in forum Live Streaming and Encoder Discussion
    Replies: 7
    Last Post: 04-23-2013, 07:46 AM
  5. How to receive multicast input
    By Shyjur in forum Live Streaming and Encoder Discussion
    Replies: 4
    Last Post: 01-28-2012, 10:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •