CN101006686A - Method and device for universal plug and play communications - Google Patents
Method and device for universal plug and play communications Download PDFInfo
- Publication number
- CN101006686A CN101006686A CNA2005800284572A CN200580028457A CN101006686A CN 101006686 A CN101006686 A CN 101006686A CN A2005800284572 A CNA2005800284572 A CN A2005800284572A CN 200580028457 A CN200580028457 A CN 200580028457A CN 101006686 A CN101006686 A CN 101006686A
- Authority
- CN
- China
- Prior art keywords
- address
- dhcp server
- existence
- internet protocol
- network
- 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
Images
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
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
-
- 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]
- H04L12/2803—Home automation networks
-
- 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]
- H04L12/2803—Home automation networks
- H04L2012/2847—Home automation networks characterised by the type of home appliance used
- H04L2012/2849—Audio/video appliances
-
- 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/50—Address allocation
- H04L61/5076—Update or notification mechanisms, e.g. DynDNS
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
提供一种用于通用即插即用通信的方法和装置,其中,所述方法包括:检查在通信装置所属的网络中动态主机配置协议(DHCP)服务器的存在的改变;如果作为检查的结果确定DHCP服务器的存在发生改变,则将通信装置使用的互联网协议地址改变为适合于改变的环境而分配的互联网协议地址;和将改变的互联网协议地址通知给另一通信装置。
A method and apparatus for Universal Plug and Play (UPUP) communication are provided, wherein the method includes: checking for a change in the presence of a Dynamic Host Configuration Protocol (DHCP) server in a network to which the communication device belongs; if the check determines that the presence of the DHCP server has changed, changing the Internet Protocol (IP) address used by the communication device to an IP address assigned to suit the changed environment; and notifying another communication device of the changed IP address.
Description
技术领域technical field
与本发明一致的装置、系统和方法涉及通用即插即用通信,更具体地讲,涉及通过对互联网协议(IP)地址改变的迅速响应的通用即插即用通信,从而降低通信的中断时间。Apparatuses, systems and methods consistent with the present invention relate to Universal Plug and Play communications, and more particularly, to Universal Plug and Play communications through rapid response to Internet Protocol (IP) address changes, thereby reducing communication interruption times .
背景技术Background technique
通常,使用家庭网络通过经称为中间件的虚拟计算环境将包括个人计算机(PC)、智能产品、无线装置等的各种装置互连到单个网络来控制所述各种装置。Generally, various devices including personal computers (PCs), smart products, wireless devices, etc. are controlled by interconnecting them to a single network through a virtual computing environment called middleware using a home network.
中间件以对等方式连接各种数字装置,从而使得在装置之间能够进行通信。这种中间件采用家庭音频/视频互操作(HAVI)、通用即插即用(UPnP)、Java智能网络架构(JINI)、家庭宽带网(HWW)等。The middleware connects various digital devices in a peer-to-peer manner, thereby enabling communication between the devices. This middleware employs Home Audio/Video Interoperability (HAVI), Universal Plug and Play (UPnP), Java Intelligent Networking Infrastructure (JINI), Home Broadband Network (HWW), and others.
构成UPnP网络的UPnP通信装置包括将被控制的受控装置和控制受控装置的控制点。受控装置和控制点基于IP进行通信。A UPnP communication device constituting a UPnP network includes controlled devices to be controlled and a control point that controls the controlled devices. The controlled device and the control point communicate based on IP.
以两种方法来分配对于UPnP通信装置之间的通信所需的IP地址。依据网络内是否存在动态主机配置协议(DHCP)服务器来确定IP地址分配方法。IP addresses required for communication between UPnP communication devices are allocated in two methods. The IP address allocation method is determined according to whether there is a Dynamic Host Configuration Protocol (DHCP) server in the network.
如果DHCP服务器被连接到网络,则通过DHCP服务器向UPnP通信装置分配IP地址。然而,如果网络上不存在DHCP服务器,则UPnP通信装置使用通过自动IP(自动IP)分配功能选择的IP地址。在这种情况下,每个UPnP通信装置在自动IP分配范围(例如,169.254.1~169.254.255)内以任意方式为自己使用选择IP地址。具有选择的IP地址的UPnP通信装置确定所选择的IP地址是否正被另一UPnP通信装置使用,然后确定是否使用为自己使用而选择的IP地址。If a DHCP server is connected to the network, an IP address is assigned to the UPnP communication device by the DHCP server. However, if no DHCP server exists on the network, the UPnP communication device uses an IP address selected by an auto IP (auto IP) assignment function. In this case, each UPnP communication device selects an IP address for its own use in an arbitrary manner within an automatic IP allocation range (for example, 169.254.1˜169.254.255). The UPnP communication device having the selected IP address determines whether the selected IP address is being used by another UPnP communication device, and then determines whether to use the IP address selected for its own use.
通过这种方式,每个UPnP通信装置定期检查网络中是否存在DHCP服务器。在构成家庭网络的UPnP通信装置由DHCP服务器分配IP地址并使用所述IP地址的同时,在家庭网络中所述UPnP通信装置到DHCP服务器的连接可被解除。在这种情况下,UPnP通信装置检测这种断开,UPnP通信装置使用自动IP分配功能设置将被它们使用的新的IP地址。类似的,在构成家庭网络的UPnP通信装置正使用自动IP分配功能设置的IP地址的同时,DHCP服务器可能被连接到家庭网络。在这种情况下,如果UPnP通信装置检测到这种连接,则它们请求由DHCP服务器分配IP地址。根据该请求,UPnP通信装置设置由DHCP服务器分配的IP地址作为自己使用的新的IP地址,随后使用所述IP地址。In this way, each UPnP communication device periodically checks whether a DHCP server exists in the network. While the UPnP communication device constituting the home network is assigned an IP address by the DHCP server and uses the IP address, the connection of the UPnP communication device to the DHCP server in the home network may be released. In this case, the UPnP communication devices detect this disconnection, and the UPnP communication devices set a new IP address to be used by them using an automatic IP allocation function. Similarly, a DHCP server may be connected to the home network while the UPnP communication devices constituting the home network are using the IP addresses set by the automatic IP assignment function. In this case, if UPnP communication devices detect such a connection, they request an IP address to be assigned by a DHCP server. According to the request, the UPnP communication device sets the IP address assigned by the DHCP server as a new IP address for its own use, and then uses the IP address.
如上所述,UPnP通信装置定期检查它们所属的网络内DHCP服务器的存在,当DHCP服务器的存在发生改变时,UPnP通信装置使用适合于改变的环境的新的IP地址。As described above, UPnP communication devices periodically check the existence of a DHCP server within a network to which they belong, and when the existence of a DHCP server changes, the UPnP communication device uses a new IP address suitable for the changed environment.
发明内容Contents of the invention
技术问题technical problem
根据这种传统技术,虽然检测到DHCP服务器的存在的改变的UPnP通信装置根据改变的环境改变IP地址,但指示不同子网的IP地址可能存在于相同的网络中。在这种情况下,UPnP通信装置之间的通信可能中断,这种通信中断可能持续,直到构造相同网络的所有UPnP通信装置检测到DHCP服务器的存在的改变并根据改变的环境被分配新的IP地址。因此,通信中断可能持续UPnP通信装置确定DHCP服务器的存在那么长的时间,从而导致用户的不方便。According to this conventional technique, although a UPnP communication device that detects a change in the presence of a DHCP server changes an IP address according to a changed environment, IP addresses indicating different subnets may exist in the same network. In this case, communication between UPnP communication devices may be interrupted, and this communication interruption may continue until all UPnP communication devices constructing the same network detect a change in the presence of a DHCP server and are assigned a new IP according to the changed environment address. Therefore, communication interruption may last for as long as the UPnP communication device determines the existence of the DHCP server, thereby causing user's inconvenience.
技术方案Technical solutions
根据本发明,可通过允许首先检测到网络上DHCP服务器的存在的改变的UPnP通信装置将与这种改变相关的信息发送到其他UPnP通信装置,来减小由于IP地址改变而导致的通信的中断时间。According to the present invention, interruption of communication due to IP address change can be reduced by allowing a UPnP communication device that first detects a change in the presence of a DHCP server on a network to transmit information related to such a change to other UPnP communication devices time.
根据本发明的一方面,提供了一种用于通信装置执行的通用即插即用通信的方法,所述方法包括:检查在通信装置所属的网络中DHCP服务器的存在的改变;如果作为检查的结果确定DHCP服务器的存在发生改变,则将通信装置使用的互联网协议地址改变为适合于改变的环境而分配的互联网协议地址;和将改变的互联网协议地址通知给另一通信装置。According to an aspect of the present invention, there is provided a method for Universal Plug and Play communication performed by a communication device, the method comprising: checking for a change in the presence of a DHCP server in the network to which the communication device belongs; As a result, it is determined that the presence of the DHCP server has changed, changing the IP address used by the communication device to an IP address assigned suitable for the changed environment; and notifying another communication device of the changed IP address.
根据本发明的一方面,提供了一种用于通用即插即用通信的装置,所述装置包括:收发单元,将数据发送到另一通信装置,以及从另一通信装置接收数据;地址设置单元,如果确定在所述装置通过收发单元连接到的网络中DHCP服务器的存在发生改变,则地址设置单元将所述装置使用的互联网协议地址改变为适合于改变的环境而分配的互联网协议地址;和控制单元,检查DHCP服务器的存在,并通过收发单元将改变的互联网协议地址发送到其他通信装置。According to an aspect of the present invention, there is provided a device for universal plug and play communication, the device includes: a transceiver unit for sending data to and receiving data from another communication device; address setting a unit, if it is determined that the presence of a DHCP server in the network to which the device is connected through the transceiver unit has changed, the address setting unit changes the Internet Protocol address used by the device to an Internet Protocol address assigned suitable for the changed environment; and the control unit, check the existence of the DHCP server, and transmit the changed internet protocol address to other communication devices through the transceiver unit.
附图说明Description of drawings
通过参照附图对本发明示例性实施例的详细描述,本发明的上述和/或其他方面将变得更清楚,其中:The above and/or other aspects of the invention will become more apparent from the detailed description of exemplary embodiments of the invention with reference to the accompanying drawings, in which:
图1示出根据本发明示例性实施例的UPnP通信装置构成的网络;FIG. 1 shows a network composed of UPnP communication devices according to an exemplary embodiment of the present invention;
图2是示出根据本发明示例性实施例的用于UPnP通信的操作的流程图;2 is a flowchart illustrating operations for UPnP communication according to an exemplary embodiment of the present invention;
图3示出根据本发明示例性实施例的公告包的结构;FIG. 3 shows the structure of an announcement package according to an exemplary embodiment of the present invention;
图4示出根据本发明示例性实施例的搜索包的结构;FIG. 4 shows the structure of a search package according to an exemplary embodiment of the present invention;
图5是示出根据本发明另一示例性实施例的用于UPnP通信的操作的流程图;5 is a flowchart illustrating operations for UPnP communication according to another exemplary embodiment of the present invention;
图6是示出根据本发明另一示例性实施例的用于UPnP通信的操作的流程图;6 is a flowchart illustrating operations for UPnP communication according to another exemplary embodiment of the present invention;
图7是示出根据本发明另一示例性实施例的用于UPnP通信的操作的流程图;和7 is a flowchart illustrating operations for UPnP communication according to another exemplary embodiment of the present invention; and
图8是示出根据本发明示例性实施例的UPnP通信装置的方框图。FIG. 8 is a block diagram illustrating a UPnP communication device according to an exemplary embodiment of the present invention.
具体实施方式Detailed ways
通过参照以下对将被详细描述的示例性实施例的详细描述和附图,本发明和实现本发明的方法可更容易理解。然而,本发明可以以许多不同的形式被实现,不应该被解释为限于于此阐述的示例性实施例。此外,提供这些示例性实施例以便本公开是彻底的和完整的,并将本发明的发明构思完全传达给本领域的技术人员,本发明仅由权利要求限定。在整个说明书中,相同的标号表示相同的部件。The present invention and methods for carrying out the present invention can be better understood by referring to the following detailed description and accompanying drawings of exemplary embodiments which will be described in detail. This invention may, however, be embodied in many different forms and should not be construed as limited to the exemplary embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete and will fully convey the inventive concept of the present invention to those skilled in the art, and the present invention will only be defined by the appended claims. Throughout the specification, the same reference numerals refer to the same parts.
以下,将参照附图详细描述本发明的示例性实施例。Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
在图1中,示出了根据本发明示例性实施例的由UPnP通信装置构成的网络。In FIG. 1 , a network composed of UPnP communication devices according to an exemplary embodiment of the present invention is shown.
如图所示,所述网络包括:受控装置110和130;控制点120和140,控制受控装置110和130;和DHCP服务器150,向UPnP通信装置110至140分配IP地址。在描述该示例性实施例中,在所述网络中大致可能引起四种状态。将参照图2至图7来描述每种状态。As shown, the network includes: controlled
将参照图2来描述受控装置首先检测到DHCP服务器从网络断开的第一种状态。A first state in which the controlled device first detects disconnection of the DHCP server from the network will be described with reference to FIG. 2 .
在该示例性实施例中,将省略对控制点140的描述,但是可从控制点120的操作来类推控制点140的操作。In this exemplary embodiment, the description of the
在DHCP服务器150被连接到网络的情况下,UPnP通信装置110至140通过使用DHCP服务器150分配的IP地址进行通信。然后,UPnP通信装置110至140定期检查DHCP服务器150的存在。如果DHCP服务器150与网络断开,则检测到该断开的UPnP通信装置110至140将通过使用自动IP分配功能来选择新的IP地址。In case the
如果受控装置110首先检测到DHCP服务器150的不存在(S110),则受控装置110通过使用自动IP分配功能重新设置自己的IP地址(S115)。DHCP服务器150的不存在表示DHCP服务器150与网络断开。此时,受控装置110可与传统技术一样执行操作,以确定网络内的任何其他UPnP通信装置是否使用为自己使用而选择的新的IP地址。If the controlled
为自己使用设置了新的IP地址的受控装置110可通过使用改变的IP地址将IP地址已经改变通知给控制点120和140(S120)。可通过UPnP中定义的公告包来进行该通知,图3中示出了根据本发明示例性实施例的公告包的结构。公告包可被多播发送。The controlled
接收到公告包的控制点120确定接收的包的源IP是否具有与自己的地址相同的子网地址(S125)。即,控制点120可确定公告包的源IP地址是否超出自动IP分配功能设置的地址范围。The
如果源IP地址具有与自己的地址不同的子网地址,则控制点120可确定DHCP服务器150是否存在,而不管检测DHCP服务器150的存在的改变的检查周期(S130)。If the source IP address has a subnet address different from its own address, the
结果,如果确定DHCP服务器150不存在,则控制点120通过自动IP分配功能设置新的IP地址(S135)。还可由控制点140来执行该操作。据此,网络中存在的所有控制点可通过自动IP分配功能为它们自己使用设置新的IP地址。As a result, if it is determined that the
使用新的IP地址的控制点120将它自己IP地址已经改变通知给受控装置130(S140)。可通过UPnP中定义的搜索包来进行该通知,在图4中示出根据本发明示例性实施例的搜索包的结构。搜索包可被多播发送。The
受控装置130确定接收的包的源IP地址是否具有与自己的地址相同的子网地址(S145)。即,受控装置130可确定搜索包的源IP地址是否超出通过自动IP分配功能设置的地址范围。The controlled
如果源IP地址具有与自己的地址不同的子网地址,则受控装置130可确定DHCP服务器150是否存在,而不管用于检查DHCP服务器150的存在的改变的检查周期(S150)。If the source IP address has a subnet address different from its own address, the controlled
结果,如果确定DHCP服务器150不存在,则受控装置130通过自动IP分配功能设置新的IP地址(S155)。还由网络中存在的其他受控装置(未示出)来执行该操作。据此,所有UPnP通信装置可通过自动IP分配功能为自己使用设置新的IP地址。As a result, if it is determined that the
通过自动IP分配功能设置了将被使用的新的IP地址的受控装置130可通过使用自己的改变的IP地址将响应包搜索包发送到控制点120。The controlled
将参照图5来描述控制点首先检测到DHCP服务器与网络断开的第二种状态。A second state in which the control point first detects that the DHCP server is disconnected from the network will be described with reference to FIG. 5 .
在该示例性实施例中,将省略对受控装置130的描述,但是可从受控装置110的操作来类推受控装置130的操作。In this exemplary embodiment, the description of the controlled
在DHCP服务器150被连接到网络的情况下,UPnP通信装置110至140通过使用DHCP服务器150分配的IP地址进行通信。然后,UPnP通信装置110至140定期检查DHCP服务器150的存在。如果DHCP服务器150与网络断开,则检测到该断开的UPnP通信装置110至140将通过使用自动IP分配功能来设置新的IP地址。In case the
如果控制点120首先检测到DHCP服务器150的不存在(S210),则控制点120通过使用自动IP分配功能重新设置自己的IP地址(S215)。DHCP服务器150的不存在表示DHCP服务器150与网络断开。此时,控制点120可与传统技术中一样执行操作,以确定网络内的任何其他UPnP装置是否使用为自己使用而选择的新的IP地址。If the
为自己使用设置了新的IP地址的控制点120可通过使用改变的IP地址将它自己的IP地址已经改变通知给受控装置110和130(S220)。如上所述,可通过搜索包来进行该通知。The
接收到搜索包的受控装置110确定接收的包的源IP是否具有与自己的地址相同的子网地址(S225)。即,受控装置110可确定搜索包的源IP地址是否超出自动IP分配功能设置的地址范围。The controlled
如果源IP地址具有与自己的地址不同的子网地址,则受控装置110可确定DHCP服务器150是否存在,而不管用于检查DHCP服务器150的存在的改变的检查周期(S230)。If the source IP address has a subnet address different from its own address, the controlled
结果,如果确定DHCP服务器150不存在,则受控装置110通过自动IP分配功能设置新的IP地址(S235)。还可由受控装置130来执行该操作。据此,网络中存在的所有受控装置可通过自动IP分配功能为它们自己使用设置新的IP地址。As a result, if it is determined that the
使用新的IP地址的受控装置110将它自己IP地址已经改变通知给控制点140(S240)。如上所述,可通过公告包来进行该通知。The controlled
控制点140确定接收的包的源IP地址是否具有与自己的地址相同的子网地址(S245)。即,控制点140可确定公告包的源IP地址是否超出自动IP分配功能设置的地址范围。The
如果源IP地址具有与自己的地址不同的子网地址,则控制点140可确定DHCP服务器150是否存在,而不管用于检查DHCP服务器150的存在的改变的检查周期(S250)。If the source IP address has a subnet address different from its own address, the
结果,如果确定DHCP服务器150不存在,则控制点140通过自动IP分配功能设置新的IP地址(S255)。还由网络中存在的其他控制点(未示出)来执行该操作。据此,所有UPnP通信装置可通过自动IP分配功能为自己使用设置新的IP地址。As a result, if it is determined that the
将参照图6来描述受控装置首先检测到DHCP服务器被连接到网络的第三种状态。A third state in which the controlled device first detects that the DHCP server is connected to the network will be described with reference to FIG. 6 .
在该示例性实施例中,将省略对控制点140的描述,但是可从控制点120的操作来类推控制点140的操作。In this exemplary embodiment, the description of the
在DHCP服务器150与网络断开的情况下,UPnP通信装置110至140使用通过自动IP分配功能设置的IP地址来进行通信。然后,UPnP通信装置110至140定期检查DHCP服务器150的存在。如果DHCP服务器150被连接到网络,则检测到该连接的UPnP通信装置110至140请求DHCP服务器150向它们分配IP地址,并使用DHCP服务器150分配的IP地址。In a case where the
如果受控装置110首先检测到DHCP服务器150的存在(S310),则DHCP服务器150向受控装置110分配新的IP地址,并且受控装置110使用该IP地址(S315)。DHCP服务器150的存在表示DHCP服务器150被连接到网络。If the controlled
通过DHCP服务器150分配了新的IP地址的受控装置110可通过使用改变的IP地址将它自己的IP地址已经改变通知给控制点120和140(S320)。如上所述,可通过公告包来进行该通知。The controlled
接收到公告包的控制点120确定接收的包的源IP是否具有与自己的地址相同的子网地址(S325)。即,控制点120可确定公告包的源IP地址是否超出自动IP分配功能设置的地址范围。The
如果源IP地址具有与自己的地址不同的子网地址,则控制点120可确定DHCP服务器150是否存在,而不管用于检查DHCP服务器150的存在的改变的检查周期(S330)。If the source IP address has a subnet address different from its own address, the
结果,如果确定DHCP服务器150存在,则可由DHCP服务器150向控制点120设置新的IP地址(S335)。还可由控制点140来执行该操作。据此,可由DHCP服务器150向网络中存在的所有控制点分配新的IP地址。As a result, if it is determined that the
使用新的IP地址的控制点120将它自己IP地址已经改变通知给受控装置130(S340)。如上所述,可通过搜索包来进行该通知。The
接收到搜索包的受控装置130确定接收的包的源IP地址是否具有与自己的地址相同的子网地址(S345)。即,受控装置130可确定搜索包的源IP地址是否在自动IP分配功能设置的地址范围内。The controlled
如果源IP地址具有与自己的地址不同的子网地址,则受控装置130可确定DHCP服务器150是否存在,而不管用于检查DHCP服务器150的存在的改变的检查周期(S350)。If the source IP address has a subnet address different from its own address, the controlled
结果,如果确定DHCP服务器150存在,则由DHCP服务器150向受控装置130分配其自己使用的新的IP地址(S355)。还由网络中存在的其他受控装置(未示出)来执行该操作。据此,可由DHCP服务器向所有的UPnP通信装置分配新的IP地址。As a result, if it is determined that the
分配了将被使用的新的IP地址的受控装置130可通过使用自己的改变的IP地址将响应包搜索包发送到控制点120。The controlled
将参照图7来描述控制点首先检测到DHCP服务器被连接到网络的第四种状态。A fourth state in which the control point first detects that the DHCP server is connected to the network will be described with reference to FIG. 7 .
在该示例性实施例中,将省略对受控装置130的描述,但是可从受控装置110的操作来类推受控装置130的操作。In this exemplary embodiment, the description of the controlled
在网络中不存在DHCP服务器150的情况下,UPnP通信装置110至140使用通过自动IP分配功能设置的IP地址来进行通信。然后,UPnP通信装置110至140定期检查DHCP服务器150的存在。如果DHCP服务器150被连接到网络,则检测到该连接的UPnP通信装置110至140请求DHCP服务器150向它们分配IP地址,从而由DHCP服务器150向它们分配新的IP地址。In the case where the
如果控制点120首先检测到DHCP服务器150的存在(S410),则控制点120请求DHCP服务器150向其分配IP地址,并接收分配的新的IP地址(S415)。DHCP服务器150的存在表示DHCP服务器150被连接到网络。If the
分配了自己使用的新的IP地址的控制点120可通过使用改变的IP地址将它自己的IP地址已经改变通知给受控装置110和130(S420)。如上所述,可通过搜索包来进行该通知。The
接收到搜索包的受控装置110确定接收的包的源IP是否具有与自己的地址相同的子网地址(S425)。即,受控装置110可确定搜索包的源IP地址是否在自动IP分配功能设置的地址范围内。The controlled
如果源IP地址具有与自己的地址不同的子网地址,则受控装置110可确定DHCP服务器150是否存在,而不管用于检查DHCP服务器150的存在的改变的检查周期(S430)。If the source IP address has a subnet address different from its own address, the controlled
结果,如果确定DHCP服务器150存在,则受控装置110请求DHCP服务器150分配IP地址,并接收分配的新地址(S435)。据此,可由DHCP服务器150向网络中存在的所有受控装置分配新的IP地址。As a result, if it is determined that the
分配了新的IP地址的受控装置110将它自己IP地址已经改变通知给控制点140(S440)。如上所述,可通过公告包来进行该通知。The controlled
接收到公告包的控制点140确定接收的包的源IP地址是否具有与自己的地址相同的子网地址(S445)。即,控制点140可确定公告包的源IP地址是否在自动IP分配功能设置的地址范围内。The
如果源IP地址具有与自己的地址不同的子网地址,则控制点140可确定DHCP服务器150是否存在,而不管用于检查DHCP服务器150的存在的改变的检查周期(S450)。If the source IP address has a subnet address different from its own address, the
结果,如果确定DHCP服务器150存在,则由DHCP服务器150向控制点140分配新的IP地址(S455)。还由网络中存在的其他控制点(未示出)来执行该操作。据此,可由DHCP服务器向所有的UPnP通信装置分配新的IP地址。As a result, if it is determined that the
如上所述,当UPnP通信装置在网络上检测到DHCP服务器的存在的改变时,则它将这种改变通知给其他UPnP通信装置。据此,UPnP通信装置可确定DHCP服务器的存在,而不管用于检查DHCP服务器150的存在的改变的检查周期。结果,可减少当因为DHCP服务器的存在的改变而改变IP地址时导致的通信的中断时间。As described above, when a UPnP communication device detects a change in the presence of a DHCP server on the network, it notifies other UPnP communication devices of the change. According to this, the UPnP communication device may determine the presence of the DHCP server regardless of the changed check cycle for checking the presence of the
图8是示出根据本发明示例性实施例的UPnP通信装置的方框图。FIG. 8 is a block diagram illustrating a UPnP communication device according to an exemplary embodiment of the present invention.
如图所示,UPnP通信装置包括:地址设置单元210,设置IP地址;控制单元220,确定DHCP服务器的存在;和收发单元230,通信连接到有线或无线媒介,将数据包发送到其他UPnP通信装置,并从其他UPnP通信装置接收数据包。As shown in the figure, the UPnP communication device includes: an
地址设置单元210设置将被UPnP通信装置使用的IP地址。设置的IP地址可以是通过DHCP服务器分配的IP地址,或者是通过执行自动分配功能分配的IP地址。The
控制单元220定期检查DHCP服务器是否存在于UPnP通信装置连接到的网络中。如果DHCP服务器的存在发生改变,则控制单元220控制地址设置单元210从而设置适合于改变的环境的IP地址。The
例如,如果检测到网络上存在的DHCP服务器与网络断开,则控制单元220控制地址设置单元210从而执行自动IP分配功能。如果检测到不存在于网络上的DHCP服务器被连接到网络,则控制单元220控制地址设置单元210从而通过DHCP服务器设置IP地址。在这种情况下,地址设置单元210可创建用于IP分配的请求包,将其发送到DHCP服务器,结果,设置由DHCP服务器分配的IP地址作为将被UPnP通信装置使用的IP地址。For example, if it is detected that a DHCP server present on the network is disconnected from the network, the
如果因为DHCP服务器的存在发生改变而地址设置单元210设置新的IP地址,则控制单元220创建数据包,并通过收发单元230发送该数据包,其中,可用该数据包将改变的IP地址发送到其他UPnP通信装置。数据包可以是如上所述的公告包或搜索包。依据UPnP通信装置是控制点还是受控装置来确定包的类型。If the
当从其他UPnP通信装置接收到预定数据包(例如,公告包或搜索包)时,控制单元220确定接收的包的源IP地址是否在与地址设置单元210设置的IP地址相同的子网内。如果接收的包的源IP地址属于与地址设置单元210设置的IP地址不同的子网,则控制单元220确定DHCP服务器的存在,而不管用于检查DHCP服务器的存在的改变的检查周期。结果,如果DHCP服务器的存在发生改变,则控制单元220控制地址设置单元210设置适合于改变的环境的IP地址。When receiving a predetermined data packet (for example, an advertisement packet or a search packet) from another UPnP communication device, the
从图2至图7的详细描述可理解UPnP装置的操作。The operation of the UPnP device can be understood from the detailed description of FIGS. 2 to 7 .
产业上的可利用性Industrial availability
如上所述,本发明的UPnP通信方法和装置通过允许检测到网络上DHCP服务器的存在的改变的UPnP通信装置改变适合于改变的环境的IP地址,来有效地减小由于IP地址改变而导致的通信的中断时间。As described above, the UPnP communication method and device of the present invention effectively reduce the trouble caused by the IP address change by allowing the UPnP communication device that detects the change of the presence of the DHCP server on the network to change the IP address suitable for the changed environment. Communication interruption time.
本领域的普通技术人员将理解,在不脱离权利要求限定的本发明的精神和范围的情况下,可在形式和细节上对此进行各种替换、修改和改变。因此,应该理解,上述示例性实施例仅仅为了说明的目的,不应该被解释为限制本发明。It will be understood by those of ordinary skill in the art that various substitutions, modifications and changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the claims. Therefore, it should be understood that the above-described exemplary embodiments are for illustrative purposes only and should not be construed as limiting the present invention.
Claims (7)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020040068256 | 2004-08-28 | ||
| KR1020040068256A KR100608582B1 (en) | 2004-08-28 | 2004-08-28 | Universal Plug and Play Communication Method and Device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN101006686A true CN101006686A (en) | 2007-07-25 |
Family
ID=36000270
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNA2005800284572A Pending CN101006686A (en) | 2004-08-28 | 2005-07-20 | Method and device for universal plug and play communications |
Country Status (6)
| Country | Link |
|---|---|
| US (1) | US20060056408A1 (en) |
| EP (1) | EP1784951A1 (en) |
| JP (1) | JP2008510413A (en) |
| KR (1) | KR100608582B1 (en) |
| CN (1) | CN101006686A (en) |
| WO (1) | WO2006025651A1 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101431456A (en) * | 2007-11-05 | 2009-05-13 | 三星电子株式会社 | Upnp-based network system and control method thereof |
| CN101365002B (en) * | 2007-08-07 | 2012-11-21 | 友讯科技股份有限公司 | Method for Obtaining Dual Network Protocol Address by Plug and Play Network Device |
| JP2017225016A (en) * | 2016-06-16 | 2017-12-21 | 三菱電機株式会社 | Plug-and-play transmission device |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7881295B2 (en) | 2006-03-24 | 2011-02-01 | Scenera Technologies, Llc | Establishing directed communication based upon physical interaction between two devices |
| CN100505672C (en) * | 2006-07-03 | 2009-06-24 | 三捷科技股份有限公司 | Method for plug-and-play and connection backup of network device with IP address |
| US8667076B2 (en) | 2006-07-28 | 2014-03-04 | Microsoft Corporation | Mapping universal plug and play discovered items to an SMB location |
| US8902449B1 (en) * | 2007-01-03 | 2014-12-02 | Crimson Corporation | Systems and methods for determining when results from a criteria scan are deleted from a computing device |
| KR101495536B1 (en) * | 2007-06-22 | 2015-02-25 | 삼성전자주식회사 | Method and apparatus for providing dynamically changed description of Universal Plug and Play |
| JP5041020B2 (en) | 2010-03-25 | 2012-10-03 | ブラザー工業株式会社 | Communication device |
| US9749435B2 (en) | 2012-01-20 | 2017-08-29 | Apple Inc. | Proxy-based push service |
Family Cites Families (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7171475B2 (en) * | 2000-12-01 | 2007-01-30 | Microsoft Corporation | Peer networking host framework and hosting API |
| US20020078161A1 (en) * | 2000-12-19 | 2002-06-20 | Philips Electronics North America Corporation | UPnP enabling device for heterogeneous networks of slave devices |
| WO2002057917A2 (en) * | 2001-01-22 | 2002-07-25 | Sun Microsystems, Inc. | Peer-to-peer network computing platform |
| JP4804672B2 (en) * | 2001-08-29 | 2011-11-02 | 富士通株式会社 | Mobile IP network system |
| JP4339536B2 (en) * | 2001-11-02 | 2009-10-07 | ソニー株式会社 | Automatic address assignment apparatus, control method therefor, and program |
| US20030140344A1 (en) * | 2002-01-21 | 2003-07-24 | Ghulam Bhatti | Wireless control for universal plug and play networks and devices |
| US7461169B2 (en) * | 2002-03-05 | 2008-12-02 | Cisco Technology, Inc. | DHCP based home address management of mobile IP clients |
| US7533161B2 (en) * | 2002-08-08 | 2009-05-12 | Sun Microsystems, Inc. | System and method for multiplatform implementation of abstract software modules in peer-to-peer network environments |
| US20040120344A1 (en) * | 2002-12-20 | 2004-06-24 | Sony Corporation And Sony Electronics, Inc. | Device discovery application interface |
| US7899932B2 (en) * | 2003-01-15 | 2011-03-01 | Panasonic Corporation | Relayed network address translator (NAT) traversal |
| US20040193609A1 (en) * | 2003-03-26 | 2004-09-30 | Sony Corporation | Master content directory service server for providing a consolidated network-wide content directory |
| KR20050035038A (en) * | 2003-10-11 | 2005-04-15 | 엘지전자 주식회사 | Method for setting internet protocol address for network based universal plug and play |
| US20050108331A1 (en) * | 2003-10-31 | 2005-05-19 | Osterman Lawrence W. | Presence tracking for datagram based protocols with search |
| US7668939B2 (en) * | 2003-12-19 | 2010-02-23 | Microsoft Corporation | Routing of resource information in a network |
-
2004
- 2004-08-28 KR KR1020040068256A patent/KR100608582B1/en not_active Expired - Fee Related
-
2005
- 2005-07-20 EP EP05780709A patent/EP1784951A1/en not_active Withdrawn
- 2005-07-20 CN CNA2005800284572A patent/CN101006686A/en active Pending
- 2005-07-20 WO PCT/KR2005/002342 patent/WO2006025651A1/en not_active Ceased
- 2005-07-20 JP JP2007527034A patent/JP2008510413A/en active Pending
- 2005-08-10 US US11/199,998 patent/US20060056408A1/en not_active Abandoned
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101365002B (en) * | 2007-08-07 | 2012-11-21 | 友讯科技股份有限公司 | Method for Obtaining Dual Network Protocol Address by Plug and Play Network Device |
| CN101431456A (en) * | 2007-11-05 | 2009-05-13 | 三星电子株式会社 | Upnp-based network system and control method thereof |
| CN101431456B (en) * | 2007-11-05 | 2014-07-09 | 三星电子株式会社 | Upnp-based network system and control method thereof |
| JP2017225016A (en) * | 2016-06-16 | 2017-12-21 | 三菱電機株式会社 | Plug-and-play transmission device |
Also Published As
| Publication number | Publication date |
|---|---|
| KR100608582B1 (en) | 2006-08-03 |
| JP2008510413A (en) | 2008-04-03 |
| EP1784951A1 (en) | 2007-05-16 |
| US20060056408A1 (en) | 2006-03-16 |
| WO2006025651A1 (en) | 2006-03-09 |
| KR20060020750A (en) | 2006-03-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN100411352C (en) | Method for exchanging information between devices when network configuration changes and home network system thereof | |
| CN100388704C (en) | Controlled device, network system and method providing a list of controlled devices | |
| US7411952B2 (en) | Communication scheme with arbitration mechanism for cases of address initialization and server setting | |
| US20110026535A1 (en) | Bridge apparatus and bridge system | |
| US8194663B2 (en) | Method and apparatus for operating network application in communication devices in power save mode | |
| CN102763373B (en) | The method and apparatus using the service of local network devices based on remote access | |
| JP4452283B2 (en) | Method and system for optimizing data transfer between network devices | |
| CN101772920A (en) | Method and apparatus for discovering universal plug and play device using resource information | |
| CN107528919A (en) | The method and device that a kind of lan device is found and driver is installed automatically | |
| CN101006686A (en) | Method and device for universal plug and play communications | |
| CN101785245B (en) | Method and apparatus for managing resources of a universal plug and play device based on a connection status of a control point | |
| CN106856415B (en) | Off-line reconnection method based on MOST optical fiber network | |
| JP5940566B2 (en) | Network system, constant connection method, server, electronic device, program | |
| JP2006171917A (en) | Protocol for radio multi-hop ad hoc network | |
| CN108667944A (en) | A kind of DHCP configuration methods and dhcp client | |
| CN101262390A (en) | Action method, method of controlling controlled device, controlled device and control point | |
| JP4482011B2 (en) | COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD | |
| JP2000295294A (en) | Network system, network control method, and signal transmitting / receiving device | |
| JP4087366B2 (en) | COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD | |
| KR101062219B1 (en) | Data transmission and reception control method in data link layer | |
| CN113497794A (en) | Method and device for switching route | |
| JP2005110309A (en) | Communication device | |
| JP2009071866A (en) | Communication device | |
| KR20050076964A (en) | Controlling method for response message based to universal plug and play | |
| CN101164294A (en) | Network control protocol device and network connection method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20070725 |
|
| C20 | Patent right or utility model deemed to be abandoned or is abandoned |