CN107493213A - A kind of method for improving lan device ability of discovery - Google Patents
A kind of method for improving lan device ability of discovery Download PDFInfo
- Publication number
- CN107493213A CN107493213A CN201710884302.3A CN201710884302A CN107493213A CN 107493213 A CN107493213 A CN 107493213A CN 201710884302 A CN201710884302 A CN 201710884302A CN 107493213 A CN107493213 A CN 107493213A
- Authority
- CN
- China
- Prior art keywords
- server end
- client
- broadcast
- thread
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a kind of method for improving lan device ability of discovery, after A, server end network, server end establishes two threads;The service IP of server end itself, port information are periodically carried out overseas broadcast by first thread, first thread of server end at interval of the overseas broadcast of time T1 once;Second thread starts at interval of service IP, the port information for using mDNS agreements to announce server end itself in 30 seconds;B, after client networks, client receives service IP, the port information for the server end that two threads of server end send over, and client inquires server end according to service IP, the port information of service end;Meanwhile server end sends broadcast, multicast, mDNS messages to client in LAN;C, client terminal start-up thread is periodically inquired every time T2 to server end.Multicast+broadcast and mDNS discovery techniques are combined by the present invention, improve the ability of discovery of client device in LAN.
Description
Technical field
The present invention relates to the mutual discovery technique field of equipment under the more equipment of LAN, complex environment, more particularly to one kind
The method for improving lan device ability of discovery.
Background technology
At present, the mutual discovery between equipment is carried out in a local network, is in communication with each other often by following four individually
Mode carries out broadcast transmission:
The first, unicast (Unicast) transmission:Realize that point to point network connects between sender and each recipient.
If a sender transmits identical data to multiple recipients simultaneously, it is also necessary to replicates more parts of identical data accordingly
Bag.When wishing to obtain the same copy of packet if a large amount of main frames, causing sender, overburden, delay is long, net
Network congestion;Service quality to ensure certain need to increase hardware and bandwidth.
Secondth, (Broadcast) transmission is broadcasted:Refer to the broadcast data packet in IP subnets, it is all inside subnet
Main frame will all receive these packets.Broadcast means that each main frame delivers a packet to network to subnet, no matter this
Whether a little main frames are happy to receive the packet.So the use range of broadcast is very small, only in local subnet effectively, pass through road
By device and network equipment control broadcast transmission.
The third, multicast:Solve the problems, such as that unicast and broadcast mode efficiency are low.When certain user's demand in network is special
When determining information, multicast source (i.e. multicast information sender) only sends primary information, and multicast router is by multicast routing protocol
Multicast packet establishes tree route, and the information being passed just starts to replicate and distribute in fork on the road as far as possible.
4th kind, mDns:In a mininet without conventional dns server, class can be realized using mDNS
DLL, bag form and operational semantics like DNS.Multicast DNS be IETF zero configurations network (zeroconf) participant and
The result that DNS extensions (dnsext) working group makes joint efforts.Zeroconf working groups propose demand, and DNSEXT groups are speciallyyed permit
Carry out details realization.Most of people for mDNS work simultaneously participates in Liang Ge working groups at present.At present, mDNS is mainly realized
Realize the main frame in LAN in the case of no legacy DNS server mutually to find and communicate.
The content of the invention
Part in view of the shortcomings of the prior art, improve lan device it is an object of the invention to provide one kind and find
The method of ability, multicast+broadcast and mDNS discovery techniques are combined, and establish two threads in server end and carry out two kinds
Technology synchronization discovering device, improves the ability of discovery of client device in LAN, compatible low side and high-end router.
The purpose of the present invention is achieved through the following technical solutions:
A kind of method for improving lan device ability of discovery, including server end and client, the server end with
Client is connected into same LAN, and its method is as follows:
A, after the server end networks, server end establishes two threads;First thread periodically carries out multicast, broadcast
Message send, the service IP of server end itself, port information are subjected to overseas broadcast, first thread of server end be every
The overseas broadcast of interval time T1 is once;Second thread starts uses mDNS agreements to announce server end itself at interval of in 30 seconds
Service IP, port information, second thread be also used for the inquiry message at customer in response end;
B, after the client networks, the client receives the server end that two threads of server end send over
IP, port information are serviced, the client inquires server end according to service IP, the port information of service end;Meanwhile the clothes
Be engaged in device end LAN send broadcast, multicast, mDNS messages, the client receive server end send broadcast, multicast,
MDNS messages;
C, the client terminal start-up thread repeats at periodic or other desired every time T2 and server end is inquired.
Preferably, the time T1 is more than 30 seconds, the time T2 is more than 60 seconds.
The present invention compared with the prior art, has advantages below and beneficial effect:
Multicast+broadcast and mDNS discovery techniques are combined by the present invention, and are established two threads in server end and carried out
Two kinds of technology synchronization discovering devices, under the various environment such as complicated networking, more equipment, low end router, are improved in LAN
The ability of discovery of client device.
Embodiment
The present invention is described in further detail with reference to embodiment:
Embodiment
A kind of method for improving lan device ability of discovery, including server end and client, the server end with
Client is connected into same LAN, and its method is as follows:
A, after the server end networks, server end establishes two threads;First thread periodically carries out multicast, broadcast
Message send, the service IP of server end itself, port information are subjected to overseas broadcast, first thread of server end be every
The overseas broadcast of interval time T1 is once;Second thread starts uses mDNS agreements to announce server end itself at interval of in 30 seconds
Service IP, port information, second thread be also used for the inquiry message at customer in response end;
B, after the client networks, the client receives the server end that two threads of server end send over
IP, port information are serviced, the client inquires server end according to service IP, the port information of service end;Meanwhile the clothes
Be engaged in device end LAN send broadcast, multicast, mDNS messages, the client receive server end send broadcast, multicast,
MDNS messages;
C, the client terminal start-up thread repeats at periodic or other desired every time T2 and server end is inquired.
The preferable time T1 of the present embodiment is more than 30 seconds (being set with specific reference to being actually needed), and the present embodiment is preferable
Time T2 is more than 60 seconds (being set with specific reference to being actually needed).
The simple LAN discovery technique for using broadcast and multicast, following many limitations be present:
1st, the designs of UDP in itself, multicast and broadcast is caused packet loss to be present, complicated in LAN environment, interference is larger,
Thing more than equipment is especially apparent.
2nd, some relatively large hotspot, in order to prevent network load overweight or even produce broadcast storm problem, can close
Close common multicast and broadcast capability.
Found using mDNS merely, had the disadvantage that relatively using multicast and broadcast merely:
1st, on some low end routers compared with old type tube, it is general that actual test result shows that mDNS has found that effect also can not show a candle to
Logical multicast, broadcast.
Therefore present disclosure is to be combined above two technology, i.e. multicast+broadcast and mDNS discovery technique phases
With reference to, and establish two threads in server end and carry out two kinds of technology synchronization discovering devices, in complicated networking, more equipment, low side
Under the various environment such as router, the ability of discovery of client device in LAN is improved.Wherein, the mDNS of the server end
Following benefit be present in agreement and mDNS Emulated LANs:1st, mDNS Emulated LANs DNS bag forms, router can be prior to them
His multicast message is handled.2nd, it is still preferable support in some relatively large focuses for closing common multicast and broadcast
MDNS agreements.3rd, mDNS agreements are a kind of puppy parcs, can realize the general discovery feature of industry.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.
Claims (2)
- A kind of 1. method for improving lan device ability of discovery, it is characterised in that:Including server end and client, the clothes Business device end is connected into same LAN with client, and its method is as follows:A, after the server end networks, server end establishes two threads;First thread periodically carries out multicast, the report of broadcast Text is sent, and the service IP of server end itself, port information carried out into overseas broadcast, first thread of server end at interval of The overseas broadcast of time T1 is once;Second thread starts at interval of the clothes for using mDNS agreements to announce server end itself in 30 seconds Business IP, port information, second thread are also used for the inquiry message at customer in response end;B, after the client networks, the client receives the service for the server end that two threads of server end send over IP, port information, the client inquire server end according to service IP, the port information of service end;Meanwhile the server End LAN send broadcast, multicast, mDNS messages, the client receive server end transmission broadcast, multicast, mDNS report Text;C, the client terminal start-up thread repeats at periodic or other desired every time T2 and server end is inquired.
- 2. according to a kind of method of raising lan device ability of discovery described in claim 1, it is characterised in that:The time T1 is more than 30 seconds, and the time T2 is more than 60 seconds.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710884302.3A CN107493213A (en) | 2017-09-26 | 2017-09-26 | A kind of method for improving lan device ability of discovery |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710884302.3A CN107493213A (en) | 2017-09-26 | 2017-09-26 | A kind of method for improving lan device ability of discovery |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107493213A true CN107493213A (en) | 2017-12-19 |
Family
ID=60653183
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710884302.3A Pending CN107493213A (en) | 2017-09-26 | 2017-09-26 | A kind of method for improving lan device ability of discovery |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107493213A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108234518A (en) * | 2018-02-06 | 2018-06-29 | 深圳创维-Rgb电子有限公司 | A kind of method, apparatus, terminal and the storage medium of terminal communication |
CN109361551A (en) * | 2018-11-21 | 2019-02-19 | 四川长虹电器股份有限公司 | A kind of local area network dual channel devices discovery method |
CN110493766A (en) * | 2019-08-21 | 2019-11-22 | 青岛海信电器股份有限公司 | A kind of discovery method of UPNP equipment |
CN113067737A (en) * | 2021-03-30 | 2021-07-02 | 重庆邮电大学 | Time-sensitive network configuration management system and method |
CN113840004A (en) * | 2021-05-28 | 2021-12-24 | 善理通益信息科技(深圳)有限公司 | Method and device for realizing service discovery mechanism in local area network |
CN114268543A (en) * | 2021-12-21 | 2022-04-01 | 上海市共进通信技术有限公司 | Method, device, processor and computer readable storage thereof for realizing configuration synchronization between paired network terminal devices |
CN114679483A (en) * | 2022-03-01 | 2022-06-28 | 南京巨鲨显示科技有限公司 | Communication method, system and storage medium of distributed service communication system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516567A (en) * | 2012-06-26 | 2014-01-15 | 腾讯科技(深圳)有限公司 | Method and system for equipment discovery and server |
US20150109924A1 (en) * | 2013-10-22 | 2015-04-23 | Aruba Networks, Inc. | Selective service based virtual local area network flooding |
CN104935564A (en) * | 2015-04-14 | 2015-09-23 | 闪联信息技术工程中心有限公司 | Method of enabling devices and services based on mDNS protocol to discover mutually in local area network |
US20170025861A1 (en) * | 2015-07-23 | 2017-01-26 | General Electric Company | Detecting the presence or absence of a user |
-
2017
- 2017-09-26 CN CN201710884302.3A patent/CN107493213A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516567A (en) * | 2012-06-26 | 2014-01-15 | 腾讯科技(深圳)有限公司 | Method and system for equipment discovery and server |
US20150109924A1 (en) * | 2013-10-22 | 2015-04-23 | Aruba Networks, Inc. | Selective service based virtual local area network flooding |
CN104935564A (en) * | 2015-04-14 | 2015-09-23 | 闪联信息技术工程中心有限公司 | Method of enabling devices and services based on mDNS protocol to discover mutually in local area network |
US20170025861A1 (en) * | 2015-07-23 | 2017-01-26 | General Electric Company | Detecting the presence or absence of a user |
Non-Patent Citations (1)
Title |
---|
冀博,李宥谋,杨清娜: "基于IP组播的Web服务推送技术的研究与实现", 《物联网技术》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108234518A (en) * | 2018-02-06 | 2018-06-29 | 深圳创维-Rgb电子有限公司 | A kind of method, apparatus, terminal and the storage medium of terminal communication |
WO2019153722A1 (en) * | 2018-02-06 | 2019-08-15 | 深圳创维-Rgb电子有限公司 | Terminal communication method and device, terminal and storage medium |
CN109361551A (en) * | 2018-11-21 | 2019-02-19 | 四川长虹电器股份有限公司 | A kind of local area network dual channel devices discovery method |
CN110493766A (en) * | 2019-08-21 | 2019-11-22 | 青岛海信电器股份有限公司 | A kind of discovery method of UPNP equipment |
CN113067737A (en) * | 2021-03-30 | 2021-07-02 | 重庆邮电大学 | Time-sensitive network configuration management system and method |
CN113067737B (en) * | 2021-03-30 | 2022-07-01 | 重庆邮电大学 | Time-sensitive network configuration management system and method |
CN113840004A (en) * | 2021-05-28 | 2021-12-24 | 善理通益信息科技(深圳)有限公司 | Method and device for realizing service discovery mechanism in local area network |
CN114268543A (en) * | 2021-12-21 | 2022-04-01 | 上海市共进通信技术有限公司 | Method, device, processor and computer readable storage thereof for realizing configuration synchronization between paired network terminal devices |
CN114679483A (en) * | 2022-03-01 | 2022-06-28 | 南京巨鲨显示科技有限公司 | Communication method, system and storage medium of distributed service communication system |
CN114679483B (en) * | 2022-03-01 | 2023-07-25 | 南京巨鲨显示科技有限公司 | Communication method, system and storage medium for distributed service communication system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107493213A (en) | A kind of method for improving lan device ability of discovery | |
US8625465B1 (en) | Auto-discovery of virtual private networks | |
Rosen et al. | Multicast in mpls/bgp ip vpns | |
US7499445B2 (en) | System and method for routing ISIS traffic through unidirectional links of a computer network | |
US8638787B2 (en) | Multicast hello on demand | |
US20180167231A1 (en) | Managing multiple virtual network memberships | |
CN104410560A (en) | Method for realizing BUM packet forwarding through NVGRE unicast | |
Bettstetter et al. | Interoperation of Mobile IPv6 and protocol independent multicast dense mode | |
Cisco | Configuring IP Multicast Routing | |
Braun et al. | Multicast for small conferences | |
Cisco | Configuring Network Protocols | |
Cisco | Configuring Network Protocols | |
Cisco | Configuring IP Multicast Routing | |
Cisco | Configuring IP Multicast Routing | |
Cisco | Configuring IP Multicast Routing | |
Cisco | Multicasting in IP and AppleTalk Networks | |
Calvert et al. | Implementing a concast service | |
Gebert et al. | Comparison of Provider Backbone Bridging, TRILL, GRE and GTP-U in 5G for Time Sensitive Industrial Applications | |
CN104348797B (en) | A kind of dynamic vlan attribute logging method and device | |
Wen et al. | An integrated two-tier multicast-agent architecture for All-IP multicast transport services | |
Rosen et al. | RFC 6513: Multicast in MPLS/BGP IP VPNs | |
Cheng et al. | Utilizing the broadcast medium while maintaining per-link information: A practical approach | |
Aweya | IP Multicast Routing Protocols: Concepts and Designs | |
Boudani et al. | An hybrid explicit multicast/recursive unicast approach for multicast routing | |
Kim et al. | Deployment issues for application level multicast |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200113 Address after: 610000 Chengdu City, Sichuan Province, China (Sichuan) Free Trade Pilot Area, No. 199 Tianfu Fourth Street, Chengdu High-tech Zone, 33 floors Applicant after: Panovasic Co., Ltd. Address before: 621000 Mianyang province high tech Zone, East Hing Road, No. 35 cotton Applicant before: Sichuan Changhong Electrical Appliance Co., Ltd. |
|
TA01 | Transfer of patent application right | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171219 |
|
RJ01 | Rejection of invention patent application after publication |