WO2016202056A1 - 一种家庭网络服务共享的方法及装置 - Google Patents

一种家庭网络服务共享的方法及装置 Download PDF

Info

Publication number
WO2016202056A1
WO2016202056A1 PCT/CN2016/078595 CN2016078595W WO2016202056A1 WO 2016202056 A1 WO2016202056 A1 WO 2016202056A1 CN 2016078595 W CN2016078595 W CN 2016078595W WO 2016202056 A1 WO2016202056 A1 WO 2016202056A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
service
multicast search
local area
search request
Prior art date
Application number
PCT/CN2016/078595
Other languages
English (en)
French (fr)
Inventor
刘爱喜
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016202056A1 publication Critical patent/WO2016202056A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • H04L61/2582NAT traversal through control of the NAT server, e.g. using universal plug and play [UPnP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1061Peer-to-peer [P2P] networks using node-based peer discovery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4645Details on frame tagging
    • H04L12/465Details on frame tagging wherein a single frame includes a plurality of VLAN tags

Definitions

  • This document relates to, but is not limited to, the field of Universal Plug and Play (UPNP) and home routers, and more particularly to a method and apparatus for sharing home network services.
  • UPNP Universal Plug and Play
  • the home router not only provides basic network functions to the user, such as Network Address Translation (NAT) and flow control, but generally has a UPNP function, and the user can select whether to enable or disable the UPNP function. .
  • NAT Network Address Translation
  • the user can select whether to enable or disable the UPNP function.
  • all UPNP-enabled services can be found in the home LAN, including printing, media playback, and remote control of smart appliances.
  • the UPNP protocol family uses the Simple Service Discovery Protocol (SSDP) to discover services and uses multicast to perform service lookups.
  • SSDP Simple Service Discovery Protocol
  • multicast forwarding does not support L3 forwarding (that is, the IP address is copied to the multicast source and then forwarded to each multicast interface), and L2 forwarding is supported (that is, for receiving and receiving multicast data).
  • the interface is in other multicast interfaces of the same virtual local area network (VLAN).
  • the multicast data is directly copied and forwarded by the chip, and is not processed by the central processing unit (CPU) of the router. That is to say, on the home router device, UPNP service lookup can only be performed in the same VLAN.
  • UPNP will not be able to find and control all UPNP service devices in the entire home network.
  • Embodiments of the present invention provide a method and device for sharing a home network service, which can implement a home Find and control all UPNP devices in the network.
  • a method for sharing a home network service including:
  • the home router in the home network receives a multicast search request initiated by the UPNP service device under it to search for the service;
  • the home router searches for a service in each virtual local area network in which it resides by proxying the multicast search request;
  • the searched service is replied to the UPNP service device that initiated the multicast search request.
  • the step of searching, by the home router, the service in each of the virtual local area networks in which the home router is located by proxying the multicast search request includes:
  • the home router determines whether an interface of the interface and the multicast search packet is in the same virtual local area network
  • the interface of the home router is in the same virtual local area network as the inbound interface of the multicast search packet, forward the multicast search message to other UPNP devices under the virtual local area network via the interface;
  • the interface of the home router If the interface of the home router is not in the same virtual local area network as the inbound interface of the multicast search packet, forward the multicast search request to the virtual interface where the interface is located according to the configuration attribute of the virtual local area network where the interface is located. local area network.
  • forwarding the multicast search request to the virtual local area network where the interface is located according to the configuration attribute of the virtual local area network where the interface is located including: if the configuration attribute is used to connect to a home network, After the intranet address of the multicast search request is modified as the external network address, the intranet address is forwarded to the virtual local area network where the interface is located.
  • the step of responding to the UPNP service device that initiates the multicast search request by the searched service includes:
  • the unicast response message including a device address and a service type sent by the other UPNP service device in response to the multicast search request by using a unicast mode, the unicast response message including the service type information and the UPNP service device providing the service Address information;
  • the sending the unicast response message to the UPNP service device that initiates the multicast search request includes: an interface for receiving the unicast response message and the multicast search request After the inbound interface is not in the same virtual local area network, the external network address of the unicast response message as the destination address is modified to the internal network address, and then forwarded to the UPNP service device that initiates the multicast search request.
  • an apparatus for sharing a home network service including:
  • the request obtaining module is configured to receive a multicast search request initiated by the UPNP service device connected to the home router in the home network to search for a service;
  • a service search module configured to search for a service in each virtual local area network where the home router is located by proxying the multicast search request;
  • the request response module is configured to respond to the searched service to the UPNP service device that initiated the multicast search request.
  • the service search module is configured to: by searching for the multicast search request by proxying, searching for a service in each virtual local area network in which it is located: determining an interface of the home router and the multicast search message Whether the inbound interface is in the same virtual local area network, and if the interface of the home router is in the same virtual local area network as the inbound interface of the multicast search packet, forwarding the multicast search message to the virtual local area network via the interface If the interface of the home router is not in the same virtual local area network as the inbound interface of the multicast search packet, forwarding the multicast search request to the The virtual LAN where the interface is located.
  • the service search module is configured to forward the multicast search request to a virtual local area network where the interface is located according to a configuration attribute of a virtual local area network where the interface is located: if the configuration attribute is And the service search module is configured to modify the intranet address of the multicast search request as the source address to the external network address, and then forward the IP address to the virtual local area network where the interface is located.
  • the request response module is configured to: respond to the searched service to the UPNP service device that initiates the multicast search request by: receiving other UPNP service devices.
  • a unicast response message including a device address and a service type, which is sent by the unicast mode in response to the multicast search request, and sends the unicast response message to the UPNP service device that initiates the multicast search request,
  • the unicast response message includes service type information and address information of a UPNP service device that provides a service.
  • the request response module is configured to: send the unicast response message to the UPNP service device that initiates the multicast search request by: if used to receive the unicast response message If the interface is not in the same virtual local area network as the inbound interface of the multicast search request, the request response module modifies the external network address of the unicast response message as the destination address to the intranet address, and then forwards the packet to the initiator station.
  • the UPNP service device that describes the multicast search request.
  • the embodiment of the present invention utilizes the UPNP technology to implement service search and control of the entire home network through a multicast search request (ie, a multicast message) between the home routers.
  • a multicast search request ie, a multicast message
  • FIG. 1 is a schematic diagram of a home router according to an embodiment of the present invention.
  • FIG. 2 is a block diagram of a method for sharing a home network service according to an embodiment of the present invention
  • FIG. 3 is a block diagram of a device for sharing a home network service according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a home network networking provided by an embodiment of the present invention.
  • FIG. 5 is a flowchart of home network service sharing based on the networking diagram shown in FIG. 4.
  • the embodiment of the present invention implements home network service sharing based on UPNP technology, including a home router, a UPNP protocol suite, and a NAT translation, where:
  • a home router is a router for accessing a public network in a home network. Connected to each other in the home network All router devices (ie, home routers) are generally referred to as low-end router devices, excluding switch devices.
  • 1 is a schematic diagram of a home router according to an embodiment of the present invention. As shown in FIG. 1, the home router is a one-arm router, and NAT conversion is performed thereon, that is, NAT conversion on a home router is generally applied to a one-arm router. It is divided into two different VLANs, namely a Wide Area Network (WAN) and a Local Area Network (LAN). Different devices are connected in the LAN area, and each device is assigned an intranet address (that is, an intranet IP address). When the device in the LAN area accesses the external network service, NAT is performed on the home router and converted into a WAN interface address (ie, External network address, external network IP address).
  • WAN Wide Area Network
  • LAN Local Area Network
  • the UPNP protocol family is mainly used to implement intelligent interconnection of devices, enabling offices, homes, and other public places to easily construct a network environment in which devices are connected to each other.
  • UPNP is a structure for implementing end-to-end network connection of smart devices, and is also a structure of Transmission Control Protocol (TCP)/Internet Protocol (IP) and Hypertext Transfer Protocol (HTTP).
  • TCP Transmission Control Protocol
  • IP Internet Protocol
  • HTTP Hypertext Transfer Protocol
  • Technology-based, distributed, open network architecture that enables the transfer of control data between networked devices.
  • UPNP technology enables support for communication between control points, devices, and services, and devices and related services are also defined and published using Extensible Markup Language (XML).
  • XML Extensible Markup Language
  • the device obtains an IP address obtained by Dynamic Host Configuration Protocol (DHCP) or manually configured or Auto-IP.
  • DHCP Dynamic Host Configuration Protocol
  • Auto-IP Auto-IP
  • the UPNP Discovery Protocol allows the device to notify other Control Points (CPs) on the network of its own services. Similarly, when a CP is added to the network, the UPNP discovery protocol allows the CP to search for devices available on the network;
  • the device details include a physical description and a service description, and an XML structured data is obtained via HTTP.
  • SOAP Simple Object Access Protocol
  • the Generic Event Notification Architecture (GENA) protocol (HTTP/TCP) is used to complete the subscription and push of device event messages. To ensure reliability, TCP transmission is used.
  • the event push also has multicast (UDP). UDP multicast.
  • UPNP does not define the content of the Presentation, the vendor-defined device HTML page.
  • the embodiment of the invention implements the search and control of the multi-level NAT service in the home network based on the UPNP technology to implement service sharing.
  • the SSDP protocol UDP
  • the device search is completed by multicast
  • the CP search is performed by unicast (UDP).
  • the above devices are UPNP service devices capable of providing services, such as printers and players.
  • FIG. 2 is a block diagram of a method for sharing a home network service according to an embodiment of the present invention. As shown in FIG. 2, the steps include:
  • Step S101 The home router in the home network receives a multicast search request initiated by the UPNP service device connected thereto for searching for a service.
  • Step S102 The home router searches for a service in each virtual local area network where it is located by proxying the multicast search request.
  • the home router determines whether the interface of the home router and the multicast search packet are in the same virtual local area network, if the interface of the home router and the inbound interface of the multicast search packet are in the same virtual local area network. For example, in VLAN 1, the multicast search message is forwarded to other UPNP devices in the VLAN 1 via the interface; if the interface of the home router and the multicast The inbound interface of the search packet is not in the same virtual local area network. For example, the inbound interface 1 of the packet is in VLAN 1, and the other interface 2 of the home router is in VLAN 2. The multicast search request is forwarded according to the configuration attribute of the VLAN 2 where the interface 2 is located. VLAN 2 where interface 2 is located.
  • the intranet address of the multicast search request as the source address is modified to an external network address, and then forwarded to the virtual local area network where the interface is located. For example, forward to VLAN 2 where interface 2 is located. If the configuration attribute is an attribute used to connect to the public network, the multicast search request is not forwarded.
  • Step S103 The home router responds to the searched service to the UPNP service device that initiates the multicast search request.
  • the UPNP service device of the request is broadcasted, and the unicast response message includes service type information and address information of the UPNP service device providing the service.
  • the interface for receiving the unicast response message is not in the same virtual local area network as the inbound interface of the multicast search request, for example, the interface 2 that receives the unicast response message is in VLAN 2, and After the inbound interface of the multicast search request is in the VLAN 1, the external network address of the unicast response packet is modified as the internal network address, and then forwarded to the UPNP service that initiates the multicast search request. device.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the above method.
  • FIG. 3 is a block diagram of a device for sharing a home network service according to an embodiment of the present invention. As shown in FIG. 3, the device includes a request acquisition module 10, a service search module 20, and a request response module 30.
  • the request obtaining module 10 is configured to receive a multicast search request initiated by the UPNP service device connected to the home router in the home network for searching for a service. For example, the multicast search request of the UPNP service device under VLAN 1 is received via the interface 1 of the home router, and the multicast search request is cached.
  • the service search module 20 is configured to search for a service in each virtual local area network in which the home router is located by proxying the multicast search request. For example, the service search module 20 determines whether an interface of the same interface and the multicast search packet is in the same virtual local area network, if the interface of the home router and the inbound interface of the multicast search packet are in the same virtual local area network. Transmitting, by the interface, the multicast search message to other UPNP devices in the virtual local area network, or forwarding the multicast search request to the interface according to the configuration attribute of the virtual local area network where the interface is located. Virtual local area network.
  • the service search module modifies the intranet address as the source address of the multicast search request to an external network address, and then forwards to the The virtual LAN where the interface is located. If the configuration attribute is used to connect to the public network, the multicast search packet is not forwarded.
  • the request response module 30 is configured to respond to the searched service to the UPNP service device that initiated the multicast search request.
  • the request response module 30 receives the unicast response message including the device address and the service type sent by the other UPNP service device in response to the multicast search request by using the unicast mode, and sends the unicast response message.
  • the UPNP service device that initiates the multicast search request wherein the unicast response message includes service type information and address information of a UPNP service device that provides the service. If the interface for receiving the unicast response message is not in the same virtual local area network as the inbound interface of the multicast search request, the request response module uses the unicast response message as the destination address. After the external network address is modified to the internal network address, it is forwarded to the UPNP service device that initiated the multicast search request.
  • the home router acting as the UPNP control point can cache the request and proxy the multicast service request for the different VLANs of the home router, such as WAN and LAN. Searching the network, the result set will be collated, and then the original cached service request will be responded to, that is, the process of completing a proxy request for a specific multicast message.
  • FIG. 4 is a schematic diagram of a home network networking provided by an embodiment of the present invention, as shown in FIG. 4 .
  • Router A When a multicast request is initiated from the device connected to the previous node router (Router A), Router A receives the SSDP multicast search request packet and determines the VLAN attribute of its own router. The packet is forwarded on the corresponding interface.
  • Router B When receiving the request packet forwarded by Router A, Router B forwards its packet to the corresponding interface according to the VLAN attribute of its own router.
  • Router B receives the reply packet (that is, the unicast response packet) of each interface and replies it to Router A.
  • Router A receives the reply packet of each interface and forwards it to the incoming interface of the request packet.
  • the steps include:
  • Step 1 When the eth1 interface of Router A receives the SSDP multicast discovery packet (that is, the multicast search request) sent by the connected device, the source IP address is 192.168.1.10, and the destination IP address is multicast IP 239.255.255.250. No. 1900, the switch chip of Router A is based on the multicast port forwarding table of L2. According to the tag (VLAN0) of the VLAN where the packet incoming interface eth1 is located, this multicast discovery packet is between the VLANs of the same tag (VLAN0). Forward on the interface.
  • the tag (VLAN0) of the VLAN where the packet incoming interface eth1 is located this multicast discovery packet is between the VLANs of the same tag (VLAN0). Forward on the interface.
  • Step 2 The VLAN (VLAN 1) of the different VLANs of Router A needs to be judged according to the configuration attributes of the VLAN. If the WAN port of Router A is in VLAN 1, the basic configuration attribute of the WAN port is obtained. It is assumed that the WAN network of the home router is configured as PPPOP. The interface is connected to the public network and does not need to forward multicast discovery packets. This multicast discovery packet.
  • Step 3 Router B receives the multicast discovery packet from the WAN port (192.168.1.100), and also sets the multicast discovery packet between the same tag (VLAN1) according to the tag (vlan1) of the vlan of the inbound interface WAN. Forwarding on each interface (General VLAN1 network partitioning only has one WAN interface, so the forwarding process is not visible).
  • Step 4 The VLAN (VLAN 0) of the different tags of Router B is judged according to the configuration attributes of the members of the VLAN. For DHCP or static configuration, it is connected to the home network and needs to be grouped in this VLAN (LAN). Broadcast the discovery of the packet. Router B forwards multicast discovery packets on the eth0 and eth1 interfaces. Router B determines its own routing entry. If the inbound interface of the multicast discovery packet is the default gateway interface, the source IP address (192.168.1.10) in the multicast packet is not modified.
  • Step 5 Router B waits for the reply message (that is, the unicast response message) of each interface, and the connected device meets the search condition of the multicast discovery message, such as 192.168.2.11 under Router B. The device responds to this multicast discovery packet with a unicast reply message. Router B, according to its own routing table, does not have a host of 192.168.1.10. It forwards this packet according to the default gateway and reaches the eth0 interface of Router A.
  • the reply message that is, the unicast response message
  • Step 6 Router A forwards the unicast response message received on the eth0 interface and the unicast response message received by the other interface eth3 to the multicast search according to the destination address 192.168.1.10 of the unicast response message.
  • the inbound interface of the packet is the eth1 interface.
  • the search process for one service ends.
  • the service on the directly connected device of the router A interface is obtained, and the service on the directly connected device of the router B interface is also obtained.
  • the multicast request is initiated from the low-node router.
  • the specific search service steps include:
  • Step 1 When the eth1 interface of Router B receives the SSDP multicast discovery packet (that is, the multicast search request) sent by the connected device, the source IP address is 192.168.2.11, and the destination IP address is multicast IP 239.255.255.250. No. 1900, the switching chip of Router B is based on the multicast port forwarding table of L2, and the multicast discovery packet is in the same tag (VLAN 0) VLAN according to the tag (VLAN 0) of the VLAN where the packet incoming interface eth1 is located. Forwarded on each interface.
  • the switching chip of Router B is based on the multicast port forwarding table of L2, and the multicast discovery packet is in the same tag (VLAN 0) VLAN according to the tag (VLAN 0) of the VLAN where the packet incoming interface eth1 is located. Forwarded on each interface.
  • Step 2 The VLAN of the different tag of the router B (VLAN 1), whether to forward the packet, needs to be judged according to the configuration attribute of the VLAN. If the WAN port of Router B is located in VLAN 1, the basic configuration attribute of the WAN port is obtained. If the network attribute of the WAN is DHCP acquisition or static configuration, the IP address is forwarded and the source IP address in the multicast discovery packet is received (192.168. 2.11) Replace with the NAT translated IP address or the default gateway IP address (192.168.1.100).
  • Step 3 Router A receives the multicast discovery packet from eth0, and forwards the multicast discovery packet to each interface between the same tag (VLAN0) according to the tag (v VLAN 0) of the VLAN where the eth0 is located. At this time, eth1 and eth2 both send this multicast discovery packet).
  • Step 4 The VLANs of different tags of Router A (VLAN 1) are judged according to the configuration attributes of the members of the VLAN. If the configuration attributes such as PPPOE are connected to the public network, the multicast discovery packets are not forwarded.
  • Step 5 Router A waits for the reply message (that is, the unicast response message) of each interface, and the connected device meets the search condition of the multicast discovery message, such as 192.168.1.10 under Router A.
  • the device responds to the multicast discovery packet with a unicast response packet.
  • the destination IP address of the response packet The value is 192.168.1.100 and the source IP is 192.168.1.10.
  • Router A finds the interface eth0 where the destination IP address forwards the packet and reaches the WAN interface of Router B.
  • Step 6 Router B receives the unicast response packet from the WAN interface, and finds the source IP address of the original multicast discovery packet according to the previous entry of the multicast discovery packet, and the destination IP address of the unicast response packet. Change the IP address to NAT, and find the corresponding interface eth1 according to the routing table to forward the unicast response packet.
  • the search process for one service ends.
  • the service on the directly connected device of the router B interface is obtained, and the service on the directly connected device of the router A interface is also obtained.
  • FIG. 5 is a flow chart of the home network service sharing based on the network diagram shown in FIG. 4. As shown in FIG. 5, the host A and the host B are connected to the router A, and the host A' and the host B' are connected to the router B. include:
  • Step 1 Router A receives the multicast search packet (that is, the multicast search request) initiated by the host B.
  • Step 2a the router A forwards the multicast search packet to another host A that is connected to it;
  • Step 2b the router A forwards the multicast search packet to the router B connected thereto;
  • Step 2c Router B forwards the multicast search packet to the host A' to which it is attached;
  • Step 2d Router B forwards the multicast search message to the host B' to which it is attached;
  • Step 3a Router A receives a unicast response message that the host A replies to in response to the multicast search packet.
  • Step 3c Router B receives a unicast response message that is responded to by the host A' in response to the multicast search message.
  • Step 3d Router B receives a unicast response message that is sent by the host B' to respond to the multicast search message.
  • Step 4c Router A receives the unicast response message from the host A' forwarded by the router B.
  • Step 4d Router A receives the unicast response message from the host B' forwarded by the router B.
  • Step 5c the router A forwards the unicast response message of the host A' to the host B;
  • step 5d the router A forwards the unicast response packet of the host B' to the host B.
  • the home router can proxy the multicast message, and the search of one UPNP control point can search all the specified services in the entire home network.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • the invention is not limited to any specific form of combination of hardware and software.
  • the above technical solution realizes service search and control of the entire home network through a multicast search request (ie, a multicast message) between the home routers.

Abstract

一种家庭网络服务共享的方法及装置,所述方法包括:家庭网络中的家用路由器接收其下挂的UPNP服务设备发起的用来搜索服务的组播搜索请求;所述家用路由器通过代理所述组播搜索请求,在其所在的每个虚拟局域网中搜索服务;将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备。上述技术方案利用UPNP技术,在家用路由器之间通过组播报文实现整个家庭网络的服务查找与控制。

Description

一种家庭网络服务共享的方法及装置 技术领域
本文涉及但不限于通用即插即用(Universal Plug and Play,UPNP)与家用路由器领域,特别涉及一种家庭网络服务共享的方法及装置。
背景技术
目前,家用路由器不仅向用户提供基本的网络功能,如网络地址转换(Network Address Translation,NAT)和流量控制,而且一般都自带有UPNP功能,用户可以选择开启或是关闭来确定是否启用UPNP功能。通过应用UPNP功能,可以在家庭局域网内发现所有支持UPNP的服务,包括打印、媒体播放,以及智能家电的远控等。
UPNP协议族中使用简单服务发现协议(Simple Service Discovery Protocol,SSDP)进行服务的发现,使用组播进行服务的查找。在家用路由器中,组播的转发不支持L3转发(即通过IP地址对组播源的数据进行复制,然后转发到每个组播接口),而支持L2转发(即对于与接收组播数据的接口处于同一个虚拟局域网(Virtual Local Area Network,VLAN)的其它组播接口,由芯片控制所述组播数据直接复制转发,不交由路由器的中央处理器(Central Processing Unit,CPU)处理)。也就是说,在家用路由器设备上,只能在同一个VLAN中进行UPNP的服务查找。
因此,如果家用路由器划分多个VLAN,或存在多级路由器串联,那么使用UPNP将无法查找并控制整个家庭网络中所有的UPNP服务设备。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提供一种家庭网络服务共享的方法及装置,能够实现在家 庭网络中查找并控制所有UPNP设备。
根据本发明实施例的一个方面,提供了一种家庭网络服务共享的方法,包括:
家庭网络中的家用路由器接收其下挂的UPNP服务设备发起的用来搜索服务的组播搜索请求;
所述家用路由器通过代理所述组播搜索请求,在其所在的每个虚拟局域网中搜索服务;
将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备。
可选地,所述的家用路由器通过代理所述组播搜索请求,在其所在的每个虚拟局域网中搜索服务的步骤包括:
所述家用路由器判断其接口与所述组播搜索报文的入接口是否在同一虚拟局域网;
若所述家用路由器的接口与所述组播搜索报文的入接口在同一虚拟局域网,则经由所述接口将组播搜索报文转发至所述虚拟局域网下的其它UPNP设备;
若所述家用路由器的接口与所述组播搜索报文的入接口不在同一虚拟局域网,则根据所述接口所在虚拟局域网的配置属性,将所述组播搜索请求转发至所述接口所在的虚拟局域网。
可选地,根据所述接口所在虚拟局域网的配置属性,将所述组播搜索请求转发至所述接口所在的虚拟局域网,包括:若所述配置属性是用来连接家庭网络的属性,则将所述组播搜索请求的作为源地址的内网地址修改为外网地址后,转发至所述接口所在的虚拟局域网。
可选地,所述的将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备的步骤包括:
接收其它UPNP服务设备通过单播方式响应所述组播搜索请求而发送的包括设备地址和服务类型的单播应答报文,所述单播应答报文包括服务类型信息和提供服务的UPNP服务设备的地址信息;
将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备。
可选地,所述将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备,包括:若用来接收所述单播应答报文的接口与所述组播搜索请求的入接口的不在同一虚拟局域网,则将所述单播应答报文的作为目的地址的外网地址修改为内网地址后,转发至发起所述组播搜索请求的UPNP服务设备。
根据本发明实施例的另一方面,提供了一种家庭网络服务共享的装置,包括:
请求获取模块,设置为接收家庭网络中家用路由器下挂的UPNP服务设备发起的用来搜索服务的组播搜索请求;
服务搜索模块,设置为通过代理所述组播搜索请求,在家用路由器所在的每个虚拟局域网中搜索服务;
请求应答模块,设置为将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备。
可选地,所述服务搜索模块是设置为通过如下方式实现通过代理所述组播搜索请求,在其所在的每个虚拟局域网中搜索服务:判断家用路由器的接口与所述组播搜索报文的入接口是否在同一虚拟局域网,若所述家用路由器的接口与所述组播搜索报文的入接口在同一虚拟局域网,则经由所述接口将组播搜索报文转发至所述虚拟局域网下的其它UPNP设备;若所述家用路由器的接口与所述组播搜索报文的入接口不在同一虚拟局域网,根据所述接口所在虚拟局域网的配置属性,将所述组播搜索请求转发至所述接口所在的虚拟局域网。
可选地,所述服务搜索模块是设置为通过如下方式实现根据所述接口所在虚拟局域网的配置属性,将所述组播搜索请求转发至所述接口所在的虚拟局域网:若所述配置属性是用来连接家庭网络的属性,则所述服务搜索模块将所述组播搜索请求的作为源地址的内网地址修改为外网地址后,转发至所述接口所在的虚拟局域网。
可选地,所述请求应答模块是设置为通过如下方式实现将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备:接收其它UPNP服务设备 通过单播方式响应所述组播搜索请求而发送的包括设备地址和服务类型的单播应答报文,并将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备,其中,所述单播应答报文包括服务类型信息和提供服务的UPNP服务设备的地址信息。
可选地,所述请求应答模块是设置为通过如下方式实现将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备:若用来接收所述单播应答报文的接口与所述组播搜索请求的入接口的不在同一虚拟局域网,则所述请求应答模块将所述单播应答报文的作为目的地址的外网地址修改为内网地址后,转发至发起所述组播搜索请求的UPNP服务设备。
与相关技术相比较,本发明实施例的有益效果在于:
本发明实施例利用UPNP技术,在家用路由器之间通过组播搜索请求(即组播报文)实现整个家庭网络的服务查找与控制。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1是本发明实施例提供的家用路由器示意图;
图2是本发明实施例提供的家庭网络服务共享的方法框图;
图3是本发明实施例提供的家庭网络服务共享的装置框图;
图4是本发明实施例提供的家庭网络组网示意图;
图5是基于图4所示组网图进行家庭网络服务共享的流程图。
本发明的实施方式
以下结合附图对本发明的可选实施例进行详细说明,应当理解,以下所说明的可选实施例仅用于说明和解释本发明,并不用于限定本发明。
本发明实施例基于UPNP技术,实现家庭网络服务共享,其中包括家用路由器、UPNP协议族和NAT转换,其中:
家用路由器是用于家用网络中接入公网的路由器。在家庭网络中相互连 接的所有路由器设备(即家用路由器),一般指低端路由器设备,不包括交换机设备。图1是本发明实施例提供的家用路由器示意图,如图1所示,该家用路由器为单臂路由器,在其上进行NAT转换,也就是说,家用路由器上的NAT转换一般应用于单臂路由器,其划分两个不同的VLAN,即广域网(Wide Area Network,WAN)与局域网(Local Area Network,LAN)。LAN区域内下挂不同设备,为每个设备分配内网地址(即内网IP地址),当LAN区域的设备访问外网服务时,在家用路由器上进行NAT转换,转化为WAN接口地址(即外网地址,外网IP地址)。
UPNP协议族主要用于实现设备的智能互联互通,使得办公室、家庭和其它公共场所能够方便地构建设备相互联通的网络环境。UPNP是实现智能设备端到端网络连接的结构,也是一种架构在传输控制协议(Transmission Control Protocol,TCP)/互联网络协议(Internet Protocol,IP)和超文本传输协议(Hyper Text Transfer Protocol,HTTP)技术之上的,分布式、开放的网络结构,使得在联网的设备间传递控制数据。UPNP技术实现了对控制点、设备和服务之间通讯的支持,并且设备和相关的服务也使用可扩展标记语言(Extensible Makup Language,XML)定义并且公布出来。通过使用UPNP,设备可以动态加入网络,并自动获得一个IP地址,向其他设备公布它的能力或者获知其他设备的存在和服务,所有这些过程都是自动完成的,此后设备能够彼此直接通讯。
所述UPNP的工作过程分为6步:
(1)寻址(Addressing)
设备获得一个IP地址,所述IP地址通过动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)或手工配置或Auto-IP方式获得。
(2)发现(Discovery)
当一个设备被添加到网络后,UPNP发现协议允许该设备向网络上的其它控制点(Control Point,CP)通知(advise)自己拥有的服务。同样,当一个CP被添加到网络后,UPNP发现协议允许该CP搜索网络上可用的设备;
(3)描述(Description)
设备(Device)的详细信息包含物理描述和服务描述,通过HTTP获取一个XML结构化的数据。
(4)控制(Control)
采用简单对象防伪协议(Simple Object Access Protocol,SOAP)(HTTP/TCP),完成CP和每个Device之间的交互。
(5)事件(Eventing)
采用一般事件通知架构(Generic Event Notification Architecture,GENA)协议(HTTP/TCP),完成设备事件消息的订阅和推送,为保证可靠性,故采用TCP传输;事件的推送还有multicast(UDP),即UDP组播。
(6)表达(Presentation)
UPNP没有定义Presentation的内容,厂商自定义的设备HTML页面。
本发明实施例基于UPNP技术实现家庭网络中多级NAT间服务的查找与控制,以实现服务共享。在上述UPNP的工作流程的第2步,即服务的发现(Dissovery)阶段,采用SSDP协议(UDP),用组播(multicast)完成设备搜索,用单播(unicast)(UDP)响应CP的搜索。
上述设备为能够提供服务的UPNP服务设备,例如打印机和播放器等。
图2是本发明实施例提供的家庭网络服务共享的方法框图,如图2所示,步骤包括:
步骤S101:家庭网络中的家用路由器接收其下挂的UPNP服务设备发起的用来搜索服务的组播搜索请求。
步骤S102:所述家用路由器通过代理所述组播搜索请求,在其所在的每个虚拟局域网中搜索服务。
可选的,所述家用路由器判断其接口与所述组播搜索报文的入接口是否在同一虚拟局域网,若所述家用路由器的接口与所述组播搜索报文的入接口在同一虚拟局域网,例如都在VLAN1,则经由所述接口将组播搜索报文转发至所述VLAN1下的其它UPNP设备;若所述家用路由器的接口与所述组播 搜索报文的入接口不在同一虚拟局域网,例如报文的入接口1在VLAN1,家用路由器的另一接口2在VLAN2,则根据接口2所在VLAN2的配置属性,将所述组播搜索请求转发至接口2所在的VLAN2。
可选地,若所述配置属性是用来连接家庭网络的属性,则将所述组播搜索请求的作为源地址的内网地址修改为外网地址后,转发至所述接口所在的虚拟局域网,例如转发至接口2所在的VLAN2。若所述配置属性是用来连接公网的属性,则不转发所述组播搜索请求。
步骤S103:所述家用路由器将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备。
可选的,接收其它UPNP服务设备通过单播方式响应所述组播搜索请求而发送的包括设备地址和服务类型的单播应答报文,将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备,所述单播应答报文包括服务类型信息和提供服务的UPNP服务设备的地址信息。
可选地,若用来接收所述单播应答报文的接口与所述组播搜索请求的入接口的不在同一虚拟局域网,例如,接收所述单播应答报文的接口2处于VLAN2,而所述组播搜索请求的报文入接口处于VLAN1,则将所述单播应答报文的作为目的地址的外网地址修改为内网地址后,转发至发起所述组播搜索请求的UPNP服务设备。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法。
图3是本发明实施例提供的家庭网络服务共享的装置框图,如图3所示,包括请求获取模块10、服务搜索模块20和请求应答模块30。
请求获取模块10,设置为接收家庭网络中家用路由器下挂的UPNP服务设备发起的用来搜索服务的组播搜索请求。例如,经由家用路由器的接口1接收其下挂的在VLAN1的UPNP服务设备的组播搜索请求,并缓存所述组播搜索请求。
服务搜索模块20,设置为通过代理所述组播搜索请求,在家用路由器所在的每个虚拟局域网中搜索服务。例如,服务搜索模块20判断其某一接口与所述组播搜索报文的入接口是否在同一虚拟局域网,若所述家用路由器的接口与所述组播搜索报文的入接口在同一虚拟局域网,则经由所述接口将组播搜索报文转发至所述虚拟局域网下的其它UPNP设备,否则根据所述接口所在虚拟局域网的配置属性,将所述组播搜索请求转发至所述接口所在的虚拟局域网。可选地,若所述配置属性是用来连接家庭网络的属性,则所述服务搜索模块将所述组播搜索请求的作为源地址的内网地址修改为外网地址后,转发至所述接口所在的虚拟局域网。若所述配置属性是用来连接公网的属性,则不转发所述组播搜索报文。
请求应答模块30,设置为将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备。可选的,请求应答模块30接收其它UPNP服务设备通过单播方式响应所述组播搜索请求而发送的包括设备地址和服务类型的单播应答报文,并将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备,其中,所述单播应答报文包括服务类型信息和提供服务的UPNP服务设备的地址信息。其中,若用来接收所述单播应答报文的接口与所述组播搜索请求的入接口的不在同一虚拟局域网,则所述请求应答模块将所述单播应答报文的作为目的地址的外网地址修改为内网地址后,转发至发起所述组播搜索请求的UPNP服务设备。
充当UPNP控制点的家用路由器在接收到SSDP的multicast服务请求(即组播搜索请求)时,可以缓存这个请求,并自己代理此multicast服务请求,对于家用路由器划分的不同VLAN,例如WAN与LAN,搜索所处网络,将整理结果集,再回应原来缓存的服务请求,也就是实现对于特定组播报文,完成一次代理请求的过程。
图4是本发明实施例提供的家庭网络组网示意图,如图4所示。
实施例1
当从上一节点路由器(路由器A)的下挂设备发起组播的请求时,路由器A收到SSDP的组播搜索请求报文,判断自身路由器的VLAN属性,将其 报文在对应接口上转发。路由器B收到路由器A转发的请求报文时,根据自身路由器的VLAN属性,将其报文在对应接口上转发。路由器B收到每个接口的答复报文(即单播应答报文),将其回复给路由器A。路由器A收到每个接口的答复报文,转发给请求报文入接口。可选的,步骤包括:
步骤1、当路由器A的eth1接口收到下挂设备发来的SSDP组播discovery报文(即组播搜索请求),源IP为192.168.1.10,目的IP为组播IP239.255.255.250,端口号为1900,路由器A的交换芯片根据L2的组播端口转发表,根据报文入接口eth1所在VLAN的tag(VLAN0),将此组播discovery报文在同一个tag(VLAN0)的VLAN间每个接口上转发。
步骤2、路由器A的不同tag的VLAN(VLAN1),是否转发报文需要根据VLAN的配置属性进行判断。若路由器A的WAN口在VLAN1,则获取WAN口的基本配置属性,假定家庭内部路由器WAN网络配置为PPPOP等,认为此接口连接到公网,不需要转发组播discovery报文,此时不转发此组播discovery报文。
步骤3、路由器B从WAN口(192.168.1.100)收到组播discovery报文,同样根据入接口WAN所在vlan的tag(vlan1),将此组播discovery报文,在同一个tag(VLAN1)间每个接口转发(一般VLAN1网络划分只有WAN一个接口,所以看不到转发过程)。
步骤4、路由器B的不同tag的VLAN(VLAN0),根据其VLAN的成员的配置属性进行判断,对于DHCP或是静态配置,视其为与家庭网络相连,需要在此VLAN间(LAN)进行组播discovery报文的转发。路由器B在eth0与eth1接口上转发组播discovery报文。路由器B判断自身路由表项,若收到组播discovery报文入接口为默认网关接口,则不修改组播报文中源IP地址(192.168.1.10),直接复制转发即可。
步骤5、路由器B等待每个接口响应的答复报文(即单播应答报文),下挂设备符合此组播discovery报文的搜索条件,如路由器B下的192.168.2.11。此设备会以单播应答报文响应此组播discovery报文。路由器B根据自身路由表,无192.168.1.10的主机,根据默认网关转发此报文,到达路由器A的eth0接口。
步骤6、路由器A将eth0接口上收到的单播应答报文和其它接口eth3收到的单播应答报文,根据单播应答报文的目的地址192.168.1.10,转发到所述组播搜索报文的入接口eth1接口。
至此,一次服务的搜索过程结束。在eth1的下挂控制点上,获取到了路由器A接口直连设备上的服务,同样也获取到了路由器B接口直连设备上的服务。
实施例2
从低节点路由器发起组播的请求,具体搜索服务的步骤包括:
步骤1、当路由器B的eth1接口收到下挂设备发来的SSDP组播discovery报文(即组播搜索请求),源IP为192.168.2.11,目的IP为组播IP239.255.255.250,端口号为1900,路由器B的交换芯片根据L2的组播端口转发表,根据报文入接口eth1所在VLAN的tag(VLAN 0),将此组播discovery报文在同一个tag(VLAN 0)的VLAN间每个接口上转发。
步骤2、路由器B的不同tag的VLAN(VLAN 1),是否转发所述报文需要根据VLAN的配置属性进行判断。若路由器B的WAN口所在VLAN1,则获取WAN口的基本配置属性,WAN的网络属性为DHCP获取或是静态配置,则转发此IP,同时将组播discovery报文中的源ip地址(192.168.2.11)替换为NAT转换后的IP地址,或是默认网关的IP地址(192.168.1.100)。
步骤3、路由器A从eth0收到组播discovery报文,同样根据入接口eth0所在VLAN的tag(v VLAN 0),将此组播discovery报文在同一个tag(VLAN0)间每个接口转发(此时eth1,eth2都发送此组播discovery报文)。
步骤4、路由器A的不同tag的VLAN(VLAN 1),根据其VLAN的成员的配置属性进行判断,若是PPPOE等配置属性,假定其连接到公网,则不进行组播discovery报文的转发。
步骤5、路由器A等待每个接口响应的答复报文(即单播应答报文),下挂设备符合此组播discovery报文的搜索条件,如路由器A下的192.168.1.10。此设备会以单播应答报文响应此组播discovery报文,此时响应报文的目的IP 为192.168.1.100,源IP为192.168.1.10。路由器A根据自身路由表,找到目的IP所在接口eth0转发此报文,到达路由器B的WAN接口。
步骤6、路由器B从WAN接口上接收单播应答报文,根据之前发送组播discovery报文的条目,找到记录的原来组播discovery报文的源IP,将此单播应答报文的目的IP修改为NAT转换的IP地址,根据路由表查找到对应的接口eth1,转发此单播应答报文。
至此,一次服务的搜索过程结束。在eth1的下挂控制点上,获取到了路由器B接口直连设备上的服务,同样也获取到了路由器A接口直连设备上的服务。
图5是基于图4所示组网图进行家庭网络服务共享的流程图,如图5所示,路由器A下挂主机A和主机B,路由器B下挂主机A’和主机B’,具体步骤包括:
步骤1、路由器A收到其下挂主机B发起的组播搜索报文(即组播搜索请求);
步骤2a、路由器A将所述组播搜索报文转发至其下挂的另一主机A;
步骤2b、路由器A将所述组播搜索报文转发至与其连接的路由器B;
步骤2c、路由器B将所述组播搜索报文转发至其下挂的主机A’;
步骤2d、路由器B将所述组播搜索报文转发至其下挂的主机B’;
步骤3a、路由器A接收其下挂主机A响应所述组播搜索报文而回应的单播应答报文;
步骤3c、路由器B接收其下挂主机A’响应所述组播搜索报文而回应的单播应答报文;
步骤3d、路由器B接收其下挂主机B’响应所述组播搜索报文而回应的单播应答报文;
步骤4c、路由器A接收路由器B转发的来自主机A’的单播应答报文;
步骤4d、路由器A接收路由器B转发的来自主机B’的单播应答报文;
步骤5c、路由器A将主机A’的单播应答报文转发给主机B;
步骤5d、路由器A将主机B’的单播应答报文转发给主机B。
综上所述,本发明实施例具有以下技术效果:
本发明实施例通过添加UPNP协议功能,实现家用路由器对于组播报文的代理,实现通过一次UPNP控制点的查找能够搜索到整个家用网络中的所有指定服务。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。
尽管上文对本发明进行了详细说明,但是本发明不限于此,本技术领域技术人员可以根据本发明的原理进行各种修改。因此,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。
工业实用性
上述技术方案在家用路由器之间通过组播搜索请求(即组播报文)实现了整个家庭网络的服务查找与控制。

Claims (10)

  1. 一种家庭网络服务共享的方法,包括:
    家庭网络中的家用路由器接收其下挂的通用即插即用UPNP服务设备发起的用来搜索服务的组播搜索请求;
    所述家用路由器通过代理所述组播搜索请求,在其所在的每个虚拟局域网中搜索服务;
    将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备。
  2. 根据权利要求1所述的方法,其中,所述家用路由器通过代理所述组播搜索请求,在其所在的每个虚拟局域网中搜索服务的步骤包括:
    所述家用路由器判断其接口与所述组播搜索报文的入接口是否在同一虚拟局域网;
    若所述家用路由器的接口与所述组播搜索报文的入接口在同一虚拟局域网,则经由所述接口将组播搜索报文转发至所述虚拟局域网下的其它UPNP设备;
    若所述家用路由器的接口与所述组播搜索报文的入接口不在同一虚拟局域网,则根据所述接口所在虚拟局域网的配置属性,将所述组播搜索请求转发至所述接口所在的虚拟局域网。
  3. 根据权利要求2所述的方法,其中,根据所述接口所在虚拟局域网的配置属性,将所述组播搜索请求转发至所述接口所在的虚拟局域网,包括:
    若所述配置属性是用来连接家庭网络的属性,则将所述组播搜索请求的作为源地址的内网地址修改为外网地址后,转发至所述接口所在的虚拟局域网。
  4. 根据权利要求3所述的方法,其中,所述将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备的步骤包括:
    接收其它UPNP服务设备通过单播方式响应所述组播搜索请求而发送的包括设备地址和服务类型的单播应答报文,所述单播应答报文包括服务类型信息和提供服务的UPNP服务设备的地址信息;
    将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备。
  5. 根据权利要求4所述的方法,其中,所述将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备,包括:
    若用来接收所述单播应答报文的接口与所述组播搜索请求的入接口的不在同一虚拟局域网,则将所述单播应答报文的作为目的地址的外网地址修改为内网地址后,转发至发起所述组播搜索请求的UPNP服务设备。
  6. 一种家庭网络服务共享的装置,包括:
    请求获取模块,设置为接收家庭网络中家用路由器下挂的通用即插即用UPNP服务设备发起的用来搜索服务的组播搜索请求;
    服务搜索模块,设置为通过代理所述组播搜索请求,在家用路由器所在的每个虚拟局域网中搜索服务;
    请求应答模块,设置为将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备。
  7. 根据权利要求6所述的装置,其中,所述服务搜索模块是设置为通过如下方式实现通过代理所述组播搜索请求,在其所在的每个虚拟局域网中搜索服务:
    判断家用路由器的接口与所述组播搜索报文的入接口是否在同一虚拟局域网,若所述家用路由器的接口与所述组播搜索报文的入接口在同一虚拟局域网,则经由所述接口将组播搜索报文转发至所述虚拟局域网下的其它UPNP设备;若所述家用路由器的接口与所述组播搜索报文的入接口不在同一虚拟局域网,根据所述接口所在虚拟局域网的配置属性,将所述组播搜索请求转发至所述接口所在的虚拟局域网。
  8. 根据权利要求7所述的装置,其中,所述服务搜索模块是设置为通过如下方式实现根据所述接口所在虚拟局域网的配置属性,将所述组播搜索请求转发至所述接口所在的虚拟局域网:
    若所述配置属性是用来连接家庭网络的属性,则所述服务搜索模块将所述组播搜索请求的作为源地址的内网地址修改为外网地址后,转发至所述接口所在的虚拟局域网。
  9. 根据权利要求8所述的装置,其中,所述请求应答模块是设置为通过如下方式实现将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备:
    接收其它UPNP服务设备通过单播方式响应所述组播搜索请求而发送的包括设备地址和服务类型的单播应答报文,并将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备,其中,所述单播应答报文包括服务类型信息和提供服务的UPNP服务设备的地址信息。
  10. 根据权利要求9所述的装置,其中,所述请求应答模块是设置为通过如下方式实现将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备:
    若用来接收所述单播应答报文的接口与所述组播搜索请求的入接口的不在同一虚拟局域网,则所述请求应答模块将所述单播应答报文的作为目的地址的外网地址修改为内网地址后,转发至发起所述组播搜索请求的UPNP服务设备。
PCT/CN2016/078595 2015-06-15 2016-04-06 一种家庭网络服务共享的方法及装置 WO2016202056A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510328809.1 2015-06-15
CN201510328809.1A CN106254407B (zh) 2015-06-15 2015-06-15 一种家庭网络服务共享的方法及装置

Publications (1)

Publication Number Publication Date
WO2016202056A1 true WO2016202056A1 (zh) 2016-12-22

Family

ID=57544991

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/078595 WO2016202056A1 (zh) 2015-06-15 2016-04-06 一种家庭网络服务共享的方法及装置

Country Status (2)

Country Link
CN (1) CN106254407B (zh)
WO (1) WO2016202056A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519149A (zh) * 2018-05-21 2019-11-29 深圳市尚云互联技术有限公司 消息推送方法及其应用系统
CN111314132A (zh) * 2020-02-14 2020-06-19 上海市共进通信技术有限公司 基于UPnP协议实现无线网关路由器与无线放大器间智能组网配置设定的方法
CN112187486A (zh) * 2020-09-29 2021-01-05 青岛海信传媒网络技术有限公司 智能设备之间的交互方法及智能设备
CN114401429A (zh) * 2022-01-14 2022-04-26 烽火通信科技股份有限公司 远程投屏方法和电子设备

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109314723B (zh) 2017-04-27 2020-10-27 华为技术有限公司 一种实现数据业务的方法、装置及终端
CN110493766A (zh) * 2019-08-21 2019-11-22 青岛海信电器股份有限公司 一种upnp设备的发现方法
CN114697880B (zh) * 2020-12-31 2023-05-12 华为技术有限公司 跨网段发现的方法、路由设备及系统
CN114051214A (zh) * 2021-11-15 2022-02-15 杭州老板电器股份有限公司 终端功能共享的方法、装置和系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014144753A1 (en) * 2013-03-15 2014-09-18 Ruckus Wireless, Inc. Localizing a multicast service
US20140280938A1 (en) * 2013-03-15 2014-09-18 Telefonaktiebolaget L M Ericsson (Publ) Network Assisted UPnP Remote Access
US20140359148A1 (en) * 2013-06-03 2014-12-04 Qualcomm Incorporated Efficient infrastructure service discovery with security
CN104488222A (zh) * 2012-07-20 2015-04-01 三星电子株式会社 家庭网络系统及其中的路由器的网络设置方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977147B (zh) * 2010-10-25 2012-07-04 中山大学 基于报文转发的nat路由器接入802.1x认证网络新方法
US9191501B2 (en) * 2011-03-18 2015-11-17 Samsung Electronics Co., Ltd. Method and system for managing contact information in a universal plug and play home network environment
CN103152234A (zh) * 2013-02-20 2013-06-12 广州市佳思信息科技有限公司 一种实现数字家庭网络设备间互联的方法
CN104683320A (zh) * 2013-12-03 2015-06-03 中兴通讯股份有限公司 一种家庭网络多媒体内容共享的访问控制方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104488222A (zh) * 2012-07-20 2015-04-01 三星电子株式会社 家庭网络系统及其中的路由器的网络设置方法
WO2014144753A1 (en) * 2013-03-15 2014-09-18 Ruckus Wireless, Inc. Localizing a multicast service
US20140280938A1 (en) * 2013-03-15 2014-09-18 Telefonaktiebolaget L M Ericsson (Publ) Network Assisted UPnP Remote Access
US20140359148A1 (en) * 2013-06-03 2014-12-04 Qualcomm Incorporated Efficient infrastructure service discovery with security

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519149A (zh) * 2018-05-21 2019-11-29 深圳市尚云互联技术有限公司 消息推送方法及其应用系统
CN111314132A (zh) * 2020-02-14 2020-06-19 上海市共进通信技术有限公司 基于UPnP协议实现无线网关路由器与无线放大器间智能组网配置设定的方法
CN112187486A (zh) * 2020-09-29 2021-01-05 青岛海信传媒网络技术有限公司 智能设备之间的交互方法及智能设备
CN114401429A (zh) * 2022-01-14 2022-04-26 烽火通信科技股份有限公司 远程投屏方法和电子设备
CN114401429B (zh) * 2022-01-14 2024-02-27 烽火通信科技股份有限公司 远程投屏方法和电子设备

Also Published As

Publication number Publication date
CN106254407A (zh) 2016-12-21
CN106254407B (zh) 2020-09-25

Similar Documents

Publication Publication Date Title
WO2016202056A1 (zh) 一种家庭网络服务共享的方法及装置
US10630543B1 (en) Wireless mesh network implementation for IOT devices
JP6934142B2 (ja) データ処理
US8122113B2 (en) Dynamic host configuration protocol (DHCP) message interception and modification
US7921194B2 (en) Method and system for remote access to universal plug and play devices
US8176529B2 (en) Apparatus and method for controlling devices in one or more home networks
US8861522B2 (en) Method for providing an internal server with reduced IP addresses
US8307093B2 (en) Remote access between UPnP devices
US8077632B2 (en) Automatic LAN/WAN port detection
WO2015003566A1 (zh) 组播域名系统中报文传输的方法、装置及系统
JP2009503923A (ja) ローカル・エリア・ネットワークへ遠隔アクセスする方法、及び当該方法を実行する交換ノード
JP2002502152A (ja) Tcp/ipネットワーク・アドレス携帯端末のためのプロキシ・サーバ
WO2019128273A1 (zh) 确定网络设备连接关系的方法、设备及系统
WO2015124041A1 (zh) 虚拟子网中的主机路由处理方法及相关设备和通信系统
KR20090078716A (ko) Nat 디바이스로 구성된 네트워크에서의 원격 접속 방법
WO2012103721A1 (zh) 终端访问数字家庭设备的方法和设备
KR100429902B1 (ko) 공중망에서 사설망 내의 디바이스를 제어하기 위한 장치및 방법
US20130064250A1 (en) Remotely accessing and controlling user equipment in a private network
JP3858884B2 (ja) ネットワークアクセスゲートウェイ及びネットワークアクセスゲートウェイの制御方法並びにプログラム
US10404485B2 (en) Method and apparatus for restricting disclosure of network information during remote access service
JP2005210265A (ja) ネットワーク・システム、端末設定方法、アドレス解決サーバ、およびクライアント
JP2023510707A (ja) 返信パケットを送信するための方法、経路広告メッセージを送信するための方法、ネットワークデバイス、および、コンピュータプログラム
WO2017113302A1 (zh) 一种媒体服务代理的方法、设备及系统
KR100736037B1 (ko) UPnP기능의 확장 시스템 및 방법
KR100975232B1 (ko) 포트 자동 설정 기능을 구비한 네트워크 장치 및 이를 위한방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16810797

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16810797

Country of ref document: EP

Kind code of ref document: A1