User Tools

Site Tools


kb:labview:networking

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kb:labview:networking [2017/09/04 14:01] joerg.hampelkb:labview:networking [2024/04/26 08:00] (current) joerg.hampel
Line 1: Line 1:
-====== 13 Networking ======+====== 21 Networking ======
  
-===== Fallstricke =====+===== Firewall Configuration =====
  
-==== TCP TIME-WAIT ==== +[[https://www.ni.com/en-us/support/documentation/supplemental/10/configuring-software-and-hardware-firewalls-to-support-national-.html|Configuring Software and Hardware Firewalls to Support NI Products]]
-  +
-//Why Do I Get Error 60 When Closing and Opening a TCP Connection on the Same Local Port?//+
  
-Siehe http://digital.ni.com/public.nsf/allkb/119D334B8B78732E862574E1006D1839 
  
 ----  ---- 
  
-===== NI Discovery Protocol =====+===== Pitfalls =====
  
-Discovery of networked National Instruments devices (targets) by other devices (hosts) requires bi-directional communication between host and targetBy default, National Instruments devices do not have communication restrictionsHoweverdevices that are not produced by National Instruments may use firewall software as security measure to restrict communication. National Instruments network device discovery requires access to the following ports.+=== IP to String === 
 + 
 +The //IP to String// function converts an IP network address to a string. 
 + 
 +{{:kb:labview:pasted:20240426-075804.png}} 
 + 
 +The ''dot notation?'' input indicates whether ''name'' is in dot-notation format. The default is FALSEwhich makes LabVIEW try to resolve the name. This can take a long time depending on the specific DNS setup of the computer this function is executed on 
 + 
 +To avoid timeoutsif a resolved name is not required, make sure to wire ''true'' constant to this function. 
 + 
 + 
 + 
 +=== TCP TIME-WAIT ===
    
-^Port ^Protocol ^Description    ^ +//Why Do I Get Error 60 When Closing and Opening a TCP Connection on the Same Local Port?// 
-|5353 |UDP |Discovery of devices using the multicast Domain Name System (mDNS) protocol     | + 
-|44515 |UDP |Discovery of legacy devices in safe-mode when routable IP address is not known  | +  * Take look at: http://digital.ni.com/public.nsf/allkb/119D334B8B78732E862574E1006D1839 
-|44516 |TCP |Discovery of legacy devices in safe-mode when routable IP address is known   | + 
-|44525 |UDP |Discovery of legacy devices in run-mode   |+=== Nagle Algorithm === 
 + 
 +By default, LabVIEW uses the [[https://en.wikipedia.org/wiki/Nagle%27s_algorithm|Nagle algorithm]] when doing TCP communication.  
 + 
 +The Nagle algorithm is one of the basic algorithms of TCP that helps reduce Internet traffic by combining several small packets into single large one. While this increases the efficiency of sending large messages such as those commonly sent in normal Internet traffic, the algorithm can introduce some latency for situations where small amounts of information are being sent back and forth, such as in instrument handshaking.
  
-//Siehe http://digital.ni.com/public.nsf/$CXIV/ATTACH-AEEE-9Y9P55/$FILE/Network%20Ports%20Used%20for%20Device%20Discovery.pdf//+  * https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019NZfSAM&l=en-US
kb/labview/networking.1504533716.txt.gz · Last modified: 2017/09/04 14:01 by joerg.hampel