Cześć, nie wiem za bardzo gdzie umieścić te pytanie, kieruję je bardziej do osób zajmujących się sieciami. Posiadam extender HDMI -> Ethernet, który zamienia dane przesyłane za pomocą przewodu hdmi na Ethernet, dokładniej na protokół UDP a jeszcze dokładniej na MPEG TS. Dużo więcej na temat samego extendera można znaleźć tutaj. Extender wysyła dane na broadcast o adresie 239.255.42.42. Ramki wyglądają mniej więcej tak:
root@NanoPi-NEO:~# sudo tshark -i eth1 -f "udp"
Running as user "root" and group "root". This could be dangerous.
Capturing on 'eth1'
1 0.000000000 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
2 0.000877299 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
3 0.002019296 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
4 0.002401448 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 NULL packet Network Information Table (NIT) Service Description Table (SDT) Program Association Table (PAT)
5 0.002636439 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 5004 ? 5004 Len=1316 Program Map Table (PMT) NULL packet
6 0.003136669 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
7 0.003634358 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 NULL packet [MP2T fragment of a reassembled packet]
8 0.003889098 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
9 0.004629153 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
10 0.004792688 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
11 0.005144508 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
12 0.015751095 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
13 0.015754095 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
14 0.015756136 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
15 0.015757969 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
16 0.015768011 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
17 0.015769511 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
18 0.015773136 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
19 0.015775885 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
20 0.015777510 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
21 0.015779344 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
22 0.015782760 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
23 0.015784135 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
24 0.015785927 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
25 0.015787718 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
26 0.015789468 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
27 0.015791385 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
28 0.016122330 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
29 0.016125247 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
30 0.016187119 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
31 0.016872801 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
32 0.017984924 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
33 0.018982719 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
34 0.019346621 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 NULL packet
35 0.019606445 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 NULL packet
36 0.020231504 192.168.1.238 ? 239.255.42.42 UDP 60 5004 ? 5004 Len=0
37 0.033033047 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 video-stream [MP2T fragment of a reassembled packet]
38 0.033035255 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
39 0.033036797 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
40 0.033038088 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
41 0.033039338 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
42 0.033045963 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
43 0.033047546 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
44 0.033048796 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
45 0.033050088 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
46 0.033052254 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
47 0.033053629 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
48 0.033055504 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
49 0.033057171 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
50 0.033058463 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
51 0.033059963 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
52 0.033062129 192.168.1.238 ? 239.255.42.42 MPEG TS 1358 [MP2T fragment of a reassembled packet]
Gdy podłączam wyjście Ethernet extendera do switcha lub routera to, należąc do tej samej sieci co router lub switch, w programie vlc jestem w stanie odpalić streaming wpisując adres udp://@239.255.42.42:5004 i wszystko działa jak należy.
Mam urządzenie z dwoma portami ethernet. Moim celem jest podłączenie do jednego portu (eth0) przewodu Ethernet który doprowadza internet do urządzenia a do drugiego portu (eth1) wyjście z tego extendera. Jednak gdy podłączam bezpośrednio Extender do eth1 pomijając switch czy router to mimo że tshark
pokazuje jakie ramki dochodzą do mojego urządzenia to nie jestem w stanie odpalić streamingu. Jak muszę skonfigurować urządzenie?
Tak wyglądają obecne ustawienia sieciowe:
root@NanoPi-NEO:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default linksys.l 0.0.0.0 UG 0 0 0 eth0
192.168.4.0 * 255.255.255.0 U 0 0 0 eth0
192.168.4.0 * 255.255.255.0 U 0 0 0 eth1
root@NanoPi-NEO:~# ifconfig
eth0 Link encap:Ethernet HWaddr 02:81:c7:2e:2c:32
inet addr:192.168.4.246 Bcast:192.168.4.255 Mask:255.255.255.0
inet6 addr: fe80::81:c7ff:fe2e:2c32/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:76987 errors:0 dropped:0 overruns:0 frame:0
TX packets:3534 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8855725 (8.8 MB) TX bytes:493970 (493.9 KB)
Interrupt:40
eth1 Link encap:Ethernet HWaddr 7e:7e:f7:a1:01:63
inet addr:192.168.4.163 Bcast:192.168.4.255 Mask:255.255.255.0
inet6 addr: fe80::7c7e:f7ff:fea1:163/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3572 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1649224 (1.6 MB) TX bytes:10172 (10.1 KB)
root@NanoPi-NEO:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
root@NanoPi-NEO:~# cat /etc/network/interfaces.d/eth1
auto eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168.69.1
netmask 255.255.255.0
root@NanoPi-NEO:~# cat /etc/default/isc-dhcp-server
# Defaults for isc-dhcp-server initscript
# sourced by /etc/init.d/isc-dhcp-server
# installed at /etc/default/isc-dhcp-server by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPD_CONF=/etc/dhcp/dhcpd.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPD_PID=/var/run/dhcpd.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES=""
INTERFACESv4="eth1"
#INTERFACESv6=""
root@NanoPi-NEO:~# cat /etc/default/isc-dhcp-server
[..]
[..]
subnet 192.168.69.0 netmask 255.255.255.0 {
range 192.168.69.10 192.168.69.10;
}
Mogłem coś namieszać w konfiguracji bo korzystałem z różnych poradników i słaby jestem z sieci. Ogólnie to gdy Extender jest podłaczony do switcha to mogę uruchomić streaming, jednak gdy jest od podłączony bezpośrednio do portu urządzenia do mimo iż jestem w stanie podejrzeć tsharkiem ramki to nie jestem w stanie uruchomić streamingu.