Question / Help NDI adds ping ms to my game

wolverin0

New Member
Hi
I have a secondary pc setup, works like charm, NDI works, it throughputs 110-130MB through the Gigabit network, which my router can handle, but my ingame ping goes from 40ms to 70-80ms, whenever i stop streaming, goes back to 40, on a single pc streaming setup the ms stays the same... 40...45...50
Im streaming 5000kbps and have 10MB upload connection, so thats not the issue...
Trying to find a solution for
 

Narcogen

Active Member
When you stop streaming, or when you quit OBS?

When you quit OBS on both machines, or just on one?
 

wolverin0

New Member
I think I don't understand what you mean, or you dont understand what i posted

When I start streaming on OBS, and the ethernet starts sending 120~mb to the other PC, the ping in-game goes from 40 to 80.
 

koala

Active Member
If it's really 120 mbyte/s that is being transferred via ethernet, it's no surprise if the ingame ping raises. 120 mbyte/s is the capacity limit of gbit ethernet (1000 mbit/s / 8 bit = 125 mbyte/s), so the ingame data packets are slowed by the ndi data.
 

wolverin0

New Member
And theres no way to use 2 network cables with NDI for what i've read, is there?
I have 2 and tried, the option in OBS doesnt work and NDI has no options at all... any workaround besides lowering quality ?
 

koala

Active Member
Of course it's possible to add an additional NIC in both PCs, connect the additional NICs with a cable and route the NDI traffic exclusively through the additional line. However, the network and firewall configuration is not trivial. You will not be successful if you don't have solid ipv4 knowledge that enables you to create local ip networks, know what ip routing is, and are able to configure appropriate firewall rules.
 
Last edited:

Narcogen

Active Member
I think I don't understand what you mean, or you dont understand what i posted

When I start streaming on OBS, and the ethernet starts sending 120~mb to the other PC, the ping in-game goes from 40 to 80.

The NDI plugin operates whenever OBS is running and the NDI plugin is installed, as long as it's either receiving an NDI source from another computer, or producing an NDI feed onto the network.

It does not start and stop when you start and stop streaming or recording.

That's why I ask-- is your ping affected by you stopping and starting a stream or recording session, or by having OBS open with an active NDI source or output?

Because if the increased ping is caused by starting a streaming session, then NDI is not the cause, because that is running before you start streaming and continues to run after you stop streaming as long as you have an active NDI input or output. If you look at your logs you'll see that NDI output starts before streaming does, and if you have an active NDI output or active NDI source, these are started before streaming starts.
 

wolverin0

New Member
yes I'm aware of that, its when i open the obs and the network data is being sent (just opening does this as you say)... its probably
The NDI plugin o...

Of course it's possible to add an additional NIC in both PCs, connect the additional NICs with a cable and route the NDI traffic exclusively through the additional line. However, the network and firewall configuration is not trivial. You will not be successful if you solid ipv4 knowledge that enables you to create local ip networks, know what ip routing is and are able to configure appropriate firewall rules.

i make a living with networks so yes, i've tried one card with only private ip address, whenever i stop the "main network" (internet access one) it stops streaming, i close obs on both pc, restart the ndi plugin, everything with the secondary network, and it doesnt work.
i dont really know where to look where to route the traffic of ndi as it has no advanced options or anything
 

koala

Active Member
A network schema with a private network just for NDI traffic will look like this:

1565086491210.png


In each PC, you add an additional network card (nic2) and connect both with a cable. In Windows, you configure the additional NICs with static ip addresses like 10.0.1.1/24 (network mask 255.255.255.0) and 10.0.1.2 on the gaming PC. Don't configure any dns or gateway for this nic.
In NDI, you send from 10.0.1.1 to 10.0.1.2, resp. on 10.0.1.2 you receive from 10.0.1.1. You use these ip addresses in the ndi setup, and the ndi traffic will flow automatically through the extra network.
Everything else in OBS stays as if you don't have the additional network in the first place.
Windows will detect the network 10.0.1.0/24 as additional network. Configure this as private network, and make sure that in the Windows firewall on both PC the ndi port is allowed on this network and that OBS is allowed to use this network.

I used the private range of 10.0.1.0/24 for the private network to make it totally clear that is completely distinct from the standard network of your internet-facing network that probably has some 192.168.x.y addresses internally. You should do the same.
 
Last edited:

j0n550n

New Member
The NDI plugin is not using 120megabytes its using 120 meagabits, im using 4 NDI sources and its no problem my netowrk is pushing about 600mbits on my 1Gbit cable. the question is whatt is yout PC setup that shuld process the data?
 

wolverin0

New Member
The NDI plugin is not using 120megabytes its using 120 meagabits, im using 4 NDI sources and its no problem my netowrk is pushing about 600mbits on my 1Gbit cable. the question is whatt is yout PC setup that shuld process the data?

my gaming pc is a i7 6700k the streaming one a i7 4770k ...
 
Top