CN106254407B - Method and device for sharing home network service - Google Patents

Method and device for sharing home network service Download PDF

Info

Publication number
CN106254407B
CN106254407B CN201510328809.1A CN201510328809A CN106254407B CN 106254407 B CN106254407 B CN 106254407B CN 201510328809 A CN201510328809 A CN 201510328809A CN 106254407 B CN106254407 B CN 106254407B
Authority
CN
China
Prior art keywords
local area
virtual local
service
address
multicast
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.)
Active
Application number
CN201510328809.1A
Other languages
Chinese (zh)
Other versions
CN106254407A (en
Inventor
刘爱喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing ZTE New Software Co Ltd
Original Assignee
Nanjing ZTE New Software Co Ltd
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 Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN201510328809.1A priority Critical patent/CN106254407B/en
Priority to PCT/CN2016/078595 priority patent/WO2016202056A1/en
Publication of CN106254407A publication Critical patent/CN106254407A/en
Application granted granted Critical
Publication of CN106254407B publication Critical patent/CN106254407B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The invention discloses a method and a device for sharing home network services, wherein the method comprises the following steps: a home router in a home network receives a multicast search request which is initiated by UPNP service equipment hung under the home router and is used for searching services; the home router searches services in each virtual local area network in which the home router is located by acting on the multicast search request; and responding the searched service to the UPNP service equipment which initiates the multicast search request. The invention uses UPNP technique to realize service search and control of whole family network between family routers through multicast message.

Description

Method and device for sharing home network service
Technical Field
The invention relates to the field of Universal Plug and Play (UPNP) and home routers, in particular to a method and a device for sharing home network services.
Background
At present, a home router not only provides basic network functions such as Network Address Translation (NAT) and flow control for a user, but also generally has a UPNP function, and the user can select to turn on or off to determine whether to enable the UPNP function. By applying the UPNP function, all services supporting UPNP, including printers, media playing, remote control of intelligent household appliances and the like, can be found in the home LAN.
In the UPNP Protocol family, a Simple Service Discovery Protocol (SSDP) is used to discover services, and a multicast is used to search for services. In the home router, the multicast forwarding does not support L3 forwarding (i.e., data of a multicast source is copied by an IP address and then forwarded to each multicast interface), but supports L2 forwarding (i.e., for other multicast interfaces in the same Virtual Local Area Network (VLAN) as an interface receiving the multicast data, the multicast data is directly copied and forwarded under the control of a chip and is not processed by a Central Processing Unit (CPU) of the router). That is, at the home router device, service lookup of UPNP can be performed only in the same VLAN.
Therefore, if the home router divides a plurality of VLANs or there are multi-level router concatenation, it is impossible to find and control all UPNP service devices in the entire home network using UPNP.
Disclosure of Invention
The invention aims to provide a method and a device for sharing home network services, which can better solve the problem of searching and controlling all UPNP equipment in a home network.
According to an aspect of the present invention, there is provided a home network service sharing method, including:
a home router in a home network receives a multicast search request which is initiated by UPNP service equipment hung under the home router and is used for searching services;
the home router searches services in each virtual local area network in which the home router is located by acting on the multicast search request;
and responding the searched service to the UPNP service equipment which initiates the multicast search request.
Preferably, the step of the home router searching for a service in each virtual local area network in which the home router is located by proxying the multicast search request includes:
the home router judges whether an interface of the home router and an input interface of the multicast search message are in the same virtual local area network or not;
if the interface of the home router and the input interface of the multicast search message are in the same virtual local area network, forwarding the multicast search message to other UPNP equipment under the virtual local area network through the interface;
and if the interface of the household router and the input interface of the multicast search message are not in the same virtual local area network, forwarding the multicast search request to the virtual local area network in which the interface is located according to the configuration attribute of the virtual local area network in which the interface is located.
Preferably, if the configuration attribute is an attribute for connecting to a home network, the internal network address serving as the source address of the multicast search request is modified to an external network address, and then the internal network address is forwarded to the virtual local area network where the interface is located.
Preferably, the step of responding the searched service to the UPNP service device which initiates the multicast search request includes:
receiving a unicast response message which is sent by other UPNP service equipment in a unicast mode in response to the multicast search request and comprises an equipment address and a service type, wherein the unicast response message comprises service type information and address information of UPNP service equipment for providing service;
and sending the unicast response message to the UPNP service equipment which initiates the multicast search request.
Preferably, if the interface for receiving the unicast response packet is not in the same virtual local area network as the access interface of the multicast search request, the external network address serving as the destination address of the unicast response packet is modified into the internal network address, and then the modified external network address is forwarded to the UPNP service device which initiates the multicast search request.
According to another aspect of the present invention, there is provided an apparatus for home network service sharing, including:
the request acquisition module is used for receiving a multicast search request which is initiated by UPNP service equipment hung under a home router in a home network and is used for searching services;
the service searching module is used for searching services in each virtual local area network where the home router is located by acting on the multicast searching request;
and the request response module is used for responding the searched service to the UPNP service equipment which initiates the multicast search request.
Preferably, the service search module determines whether an interface of the service search module and an incoming interface of the multicast search packet are in the same virtual local area network, if the interface of the home router and the incoming interface of the multicast search packet are in the same virtual local area network, the service search module forwards the multicast search packet to other UPNP devices under the virtual local area network via the interface, and otherwise, forwards 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.
Preferably, if the configuration attribute is an attribute for connecting to a home network, the service search module modifies an internal network address serving as a source address of the multicast search request into an external network address, and forwards the modified internal network address to the virtual local area network where the interface is located.
Preferably, the request response module receives a unicast response message including a device address and a service type, which is sent by another UPNP service device in a unicast manner in response to the multicast search request, and sends the unicast response message to the UPNP service device that initiated the multicast search request, where the unicast response message includes service type information and address information of the UPNP service device that provides the service.
Preferably, if the interface for receiving the unicast response packet is not in the same virtual local area network as the access interface of the multicast search request, the request response module modifies the external network address serving as the destination address of the unicast response packet into an internal network address, and forwards the modified external network address to the UPNP service device initiating the multicast search request.
Compared with the prior art, the invention has the beneficial effects that:
the invention uses UPNP technique to realize service search and control of whole family network through multicast search request (i.e. multicast message) between family routers.
Drawings
Fig. 1 is a schematic diagram of a home router provided by an embodiment of the present invention;
fig. 2 is a block diagram of a method for sharing home network services provided by an embodiment of the present invention;
fig. 3 is a block diagram of an apparatus for home network service sharing provided by an embodiment of the present invention;
fig. 4 is a schematic diagram of home network networking provided by an embodiment of the invention;
fig. 5 is a flowchart for home network service sharing based on the networking diagram shown in fig. 4.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
The invention realizes the sharing of home network service based on UPNP technology, which comprises a home router, a UPNP protocol family and NAT conversion, wherein:
a home router is a router for accessing a public network in a home network. All router devices (i.e., home routers) interconnected in a home network are typically referred to as low-end router devices, excluding switch devices. Fig. 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 single-arm router on which NAT translation is performed, that is, NAT translation on the home router is generally applied to the single-arm router, and the single-arm router divides two different VLANs, namely, a Wide Area Network (WAN) and a Local Area Network (LAN). Different devices are hung in the LAN area, an intranet address (namely an intranet IP address) is allocated to each device, and when the devices in the LAN area access the extranet service, NAT conversion is carried out on the household router and the devices are converted into WAN interface addresses (namely the extranet address and the extranet IP address).
The UPNP protocol family is mainly used for realizing intelligent interconnection and intercommunication of equipment, so that offices, families and other public places can conveniently construct a network environment in which the equipment is mutually communicated. UPNP is a structure for implementing end-to-end network connection of intelligent devices, and is also a distributed and open network structure that is structured on the Transmission Control Protocol (TCP)/Internet Protocol (IP) and hypertext Transfer Protocol (HTTP) technologies, so that Control data is transmitted between networked devices. The UPNP technology enables support for communication between control points, devices and services, and the devices and related services are also defined and published using Extensible markup Language (XML). By using UPNP, a device can dynamically join a network and automatically obtain an IP address, publish its capabilities to other devices or learn about the presence and services of other devices, all of which are done automatically, after which the devices can communicate directly with each other.
The working process of the UPNP is divided into 6 steps:
(1) addressing (Addressing)
The device obtains an IP address, which is obtained through a Dynamic Host Configuration Protocol (DHCP) or a manual configuration or Auto-IP manner.
(2) Discovery (Discovery)
When a device is added to a network, the UPNP discovery protocol allows the device to inform (advise) other Control Points (CPs) on the network of the services that the device owns. Similarly, when a CP is added to a network, the UPNP discovery protocol allows the CP to search for devices available on the network;
(3) description (Description)
The detailed information of the Device (Device) contains the physical description and the service description, and an XML structured data is obtained through HTTP.
(4) Control (Control)
The Simple Object Access Protocol (SOAP) (HTTP/TCP) is used to complete the interaction between the CP and each Device.
(5) Event (Eventing)
A General Event Notification Architecture (GENA) protocol (HTTP/TCP) is adopted to complete subscription and push of device Event messages, and TCP transmission is adopted to ensure reliability; also, the event is pushed by multicast (UDP), i.e., UDP multicast.
(6) Expression (Presentation)
UPNP does not define the content of the Presentation, a vendor-defined device HTML page.
The invention realizes the searching and control of the service among the multi-level NAT in the home network based on the UPNP technology so as to realize the service sharing. In step 2 of the UPNP workflow, i.e. the discovery (discovery) phase, the SSDP protocol (UDP) is used, the device search is completed by multicast (multicast), and the search of the CP is responded by Unicast (UDP).
The device is a UPNP service device capable of providing service, such as a printer, a player and the like.
Fig. 2 is a block diagram of a method for sharing home network services according to an embodiment of the present invention, and as shown in fig. 2, the steps include:
step S101: a home router in a home network receives a multicast search request for searching services, which is initiated by a UPNP service device which is hung down by the home router.
Step S102: and the home router searches services in each virtual local area network in which the home router is positioned by acting the multicast search request.
Specifically, the home router determines whether an interface of the home router and an incoming interface of the multicast search packet are in the same virtual local area network, and if the interface of the home router and the incoming interface of the multicast search packet are in the same virtual local area network, for example, both are in VLAN1, forwards the multicast search packet to other UPNP devices under VLAN1 via the interfaces; if the interface of the home router and the ingress interface of the multicast search packet are not in the same virtual local area network, for example, the ingress interface 1 of the packet is in VLAN1, and the other interface 2 of the home router is in VLAN2, forwarding the multicast search request to the VLAN2 where the interface 2 is according to the configuration attribute of the VLAN2 where the interface 2 is located.
Further, if the configuration attribute is an attribute for connecting to a home network, the internal network address serving as the source address of the multicast search request is modified to an external network address, and then the multicast search request is forwarded to the virtual local area network where the interface is located, for example, to the VLAN2 where the interface 2 is located. And if the configuration attribute is used for connecting a public network, not forwarding the multicast search request.
Step S103: and responding the searched service to the UPNP service equipment which initiates the multicast search request.
Specifically, a unicast response message including a device address and a service type, which is sent by another UPNP service device in a unicast manner in response to the multicast search request, is received, and the unicast response message is sent to the UPNP service device initiating the multicast search request, where the unicast response message includes service type information and address information of the UPNP service device providing the service.
Further, if the interface for receiving the unicast response packet is not in the same virtual local area network as the ingress interface of the multicast search request, for example, the interface 2 for receiving the unicast response packet is in VLAN2, and the ingress interface of the multicast search request is in VLAN1, the external network address serving as the destination address of the unicast response packet is modified to the internal network address, and then the modified external network address is forwarded to the UPNP service device that initiated the multicast search request. .
Fig. 3 is a block diagram of a home network service sharing apparatus according to an embodiment of the present invention, as shown in fig. 3, including a request acquiring module 10, a service searching module 20, and a request responding module 30.
The request obtaining module 10 is configured to receive a multicast search request initiated by a UPNP service device hung down by a home router in a home network, where the multicast search request is used to search for a service. For example, the multicast search request of the UPNP service device on VLAN1, which is hung down by it, is received via 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 service search module is in the same vlan as an incoming interface of the multicast search packet, and if the interface of the home router is in the same vlan as the incoming interface of the multicast search packet, forwards the multicast search packet to other UPNP devices under the vlan via the interface, otherwise forwards the multicast search request to the vlan where the interface is located according to the configuration attribute of the vlan where the interface is located. Further, if the configuration attribute is an attribute for connecting to a home network, the service search module modifies an internal network address serving as a source address of the multicast search request into an external network address, and forwards the modified internal network address to the virtual local area network where the interface is located. And if the configuration attribute is used for connecting a public network, not forwarding the multicast search message.
The request response module 30 is configured to respond the searched service to the UPNP service device that initiated the multicast search request. Specifically, the request response module 30 receives a unicast response message including a device address and a service type, which is sent by another UPNP service device in a unicast manner in response to the multicast search request, and sends the unicast response message to the UPNP service device that initiated the multicast search request, where the unicast response message includes service type information and address information of the 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 access interface of the multicast search request, the request response module modifies the external network address of the unicast response message as the destination address into an internal network address, and then forwards the modified external network address to the UPNP service device initiating the multicast search request.
When receiving a multicast service request (i.e., a multicast search request) from an SSDP, a home router acting as a UPNP control point may cache the request, and proxy the multicast service request itself, search a network where the home router is located for different VLANs divided by the home router, such as WAN and LAN, arrange a result set, and then respond to the originally cached service request, that is, implement a process of proxying a request for a specific multicast packet.
Fig. 4 is a schematic diagram of home network networking provided by an embodiment of the present invention, as shown in fig. 4.
Example 1
When a multicast request is initiated from the previous node router (router a), the router a receives a multicast search request message of the SSDP, determines the VLAN attribute of its own router, and forwards the message on the corresponding interface. When receiving the request message forwarded by the router A, the router B forwards the message on the corresponding interface according to the VLAN attribute of the router. The router B receives the reply message (i.e., unicast reply message) from each interface, and replies the reply message to the router a. The router A receives the reply messages of each interface and forwards the reply messages to the request message input interface. Specifically, the steps include:
step 1, when an eth1 interface of a router a receives an SSDP multicast discovery message (i.e., a multicast search request) sent by a drop-on device, a source IP is 192.168.1.10, a destination IP is multicast IP239.255.255.250, and a port number is 1900, a switch chip of the router a forwards the multicast discovery message on each interface between VLANs of the same tag (VLAN0) according to a tag (VLAN0) of a VLAN where the message entry interface eth1 is located according to a multicast port forwarding table of L2.
And 2, judging whether the message is forwarded by the VLAN (VLAN1) of different tags of the router A according to the configuration attribute of the VLAN. If the WAN port of the router A is in the VLAN1, the basic configuration attribute of the WAN port is obtained, and if the WAN network of the router A in the family is configured to be PPPOP and the like, the interface is considered to be connected to the public network, the multicast discovery message does not need to be forwarded, and the multicast discovery message is not forwarded at the moment.
And 3, the router B receives the multicast discovery message from the WAN port (192.168.1.100), and forwards the multicast discovery message on each interface between the same tag (VLAN1) according to the tag (VLAN1) of the VLAN where the input interface WAN is located (generally, the VLAN1 network is divided into only one WAN interface, so that the forwarding process cannot be seen).
And 4, judging the VLANs (VLAN0) of different tags of the router B according to the configuration attributes of the members of the VLAN, and if the DHCP or the static configuration is connected with the home network, forwarding the multicast discovery message between the VLANs (LAN). And the router B forwards the multicast discovery message on the eth0 and eth1 interfaces. And the router B judges the routing table item of the router B, and directly copies and forwards the source IP address (192.168.1.10) in the multicast message without modifying the source IP address if the received multicast discovery message input interface is the default gateway interface.
Step 5, the router B waits for the reply message (i.e. unicast reply message) responded by each interface, and the drop device meets the search condition of the multicast discovery message, such as 192.168.2.11 under the router B. The device will respond to the multicast discovery message with a unicast reply message. The router B forwards the message according to the default gateway and reaches an eth0 interface of the router A according to the own routing table without 192.168.1.10 hosts.
And step 6, the router A forwards the unicast response message received on the eth0 interface and the unicast response messages received on other interfaces eth3 to the ingress interface eth1 interface of the multicast search message according to the destination address 192.168.1.10 of the unicast response message.
By this, the search process for one service is ended. And acquiring services on the router A interface direct connection equipment and also acquiring services on the router B interface direct connection equipment at the down-hanging control point of eth 1.
Example 2
Initiating a request for multicast from a low node router, the step of searching for a specific service comprising:
step 1, when an eth1 interface of a router B receives an SSDP multicast discovery message (i.e., a multicast search request) sent by a drop-on device, a source IP is 192.168.2.11, a destination IP is multicast IP239.255.255.250, and a port number is 1900, a switch chip of the router B forwards the multicast discovery message on each interface between VLANs of the same tag (VLAN0) according to a tag (VLAN0) of a VLAN where the message entry interface eth1 is located according to a multicast port forwarding table of L2.
And step 2, judging whether the message is forwarded by the VLAN (VLAN1) of different tags of the router B according to the configuration attribute of the VLAN. If the WAN port of the router B is located in the VLAN1, the basic configuration attribute of the WAN port is obtained, the network attribute of the WAN is DHCP obtaining or static configuration, the IP is forwarded, and meanwhile, the source IP address (192.168.2.11) in the multicast discovery message is replaced by the IP address after NAT conversion or the IP address (192.168.1.100) of a default gateway.
Step 3, the router a receives the multicast discovery message from eth0, and forwards the multicast discovery message on each interface between the same tag (VLAN0) according to the tag (v VLAN0) of the VLAN where the ingress interface eth0 is located (at this time, eth1 and eth2 both send the multicast discovery message).
And 4, judging the VLANs (VLAN1) of different tags of the router A according to the configuration attributes of the members of the VLAN, and if the configuration attributes are PPPOE and the like, assuming that the VLAN is connected to a public network, not forwarding the multicast discovery message.
Step 5, the router a waits for the reply message (i.e. unicast reply message) responded by each interface, and the drop device meets the search condition of the multicast discovery message, such as 192.168.1.10 under the router a. The device will respond to the multicast discovery message with a unicast reply message, where the destination IP of the response message is 192.168.1.100 and the source IP is 192.168.1.10. The router A finds the interface eth0 where the destination IP is according to the routing table of the router A, and forwards the message to reach the WAN interface of the router B.
And 6, the router B receives the unicast response message from the WAN interface, finds the recorded source IP of the original multicast discovery message according to the item of the multicast discovery message sent before, modifies the target IP of the unicast response message into the IP address converted by the NAT, finds the corresponding interface eth1 according to the routing table, and forwards the unicast response message.
By this, the search process for one service is ended. And acquiring services on the router B interface direct connection equipment and also acquiring services on the router A interface direct connection equipment at the down-hanging control point of eth 1.
Fig. 5 is a flowchart of home network service sharing based on the networking diagram shown in fig. 4, where as shown in fig. 5, a router a hangs down a host a and a host B, and a router B hangs down hosts a 'and B', and the specific steps include:
step 1, a router A receives a multicast search message (namely a multicast search request) initiated by a host B which is hung below the router A;
step 2a, the router A forwards the multicast search packet to another host A which is hung down;
step 2B, the router A forwards the multicast search packet to a router B connected with the router A;
step 2c, the router B forwards the multicast search packet to a host A' hung below the router B;
step 2d, the router B forwards the multicast search packet to a host B' which is hung down;
step 3a, the router A receives a unicast response message responded by the host A which is hung down to respond to the multicast search message;
step 3c, the router B receives the unicast response message responded by the host A' of the lower hook thereof in response to the multicast search message;
step 3d, the router B receives the unicast response message responded by the host B' which is hung down to respond to the multicast search message;
step 4c, the router A receives the unicast response message from the host A' forwarded by the router B;
step 4d, the 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;
and step 5d, the router A forwards the unicast response message of the host B' to the host B.
In summary, the present invention has the following technical effects:
the invention realizes the proxy of the home router for the multicast message by adding the UPNP protocol function, and can search all the designated services in the whole home network by searching the UPNP control point once.
Although the present invention has been described in detail hereinabove, the present invention is not limited thereto, and various modifications can be made by those skilled in the art in light of the principle of the present invention. Thus, modifications made in accordance with the principles of the present invention should be understood to fall within the scope of the present invention.

Claims (8)

1. A method for home network service sharing, comprising:
a home router which divides a plurality of virtual local area networks in a home network receives a multicast search request which is initiated by a universal plug and play (UPNP) service device hung under the home router and is used for searching services;
the home router judges whether the interfaces of the home router and the incoming interfaces of the multicast search messages are in the same virtual local area network one by one, if so, the multicast search messages are forwarded to the virtual local area network through the interfaces to search services in the virtual local area network, and if not, the multicast search requests are forwarded to the virtual local area network where the interfaces are located according to the configuration attributes of the virtual local area network where the interfaces are located to search the services in the virtual local area network where the interfaces are located;
and the home router responds the service searched in each divided virtual local area network to the UPNP service equipment which initiates the multicast search request.
2. The method according to claim 1, wherein if the configuration attribute is an attribute for connecting to a home network, the intranet address serving as the source address of the multicast search request is modified to an extranet address, and then the intranet address is forwarded to the virtual local area network where the interface is located.
3. The method according to claim 2, wherein the step of the home router responding the service searched in each of the divided virtual local area networks to the UPNP service device that initiated the multicast search request comprises:
receiving a unicast response message sent by other UPNP service equipment responding to the multicast search request in a unicast mode, wherein the unicast response message comprises service type information and address information of UPNP service equipment providing services;
and sending the unicast response message to the UPNP service equipment which initiates the multicast search request.
4. The method according to claim 3, wherein if the interface for receiving the unicast response packet is not in the same virtual local area network as the input interface of the multicast search request, the external network address serving as the destination address of the unicast response packet is modified into an internal network address, and then the modified external network address is forwarded to the UPNP service device that initiated the multicast search request.
5. An apparatus for home network service sharing, comprising:
the request acquisition module is used for receiving a multicast search request which is initiated by UPNP service equipment hung under a home router for dividing a plurality of virtual local area networks and is used for searching services in a home network;
the service searching module is used for judging whether the interfaces of the household router and the incoming interfaces of the multicast search messages are in the same virtual local area network one by one, if so, the multicast search messages are forwarded to the virtual local area network through the interfaces to search services in the virtual local area network, and if not, the multicast search requests are forwarded to the virtual local area network where the interfaces are located according to the configuration attributes of the virtual local area network where the interfaces are located to search the services in the virtual local area network where the interfaces are located;
and the request response module is used for responding the service searched in each virtual local area network divided by the home router to the UPNP service equipment initiating the multicast search request.
6. The apparatus according to claim 5, wherein if the configuration attribute is an attribute for connecting to a home network, the service search module modifies an intranet address as a source address of the multicast search request into an extranet address, and forwards the modified intranet address to the virtual local area network where the interface is located.
7. The apparatus of claim 6, wherein the request response module receives a unicast response message including a device address and a service type sent by other UPNP service devices in response to the multicast search request in a unicast manner, and sends the unicast response message to the UPNP service device initiating the multicast search request, wherein the unicast response message includes service type information and address information of a UPNP service device providing a service.
8. The apparatus according to claim 7, wherein if the interface for receiving the unicast response packet is not in the same virtual local area network as the ingress interface of the multicast search request, the request response module modifies an extranet address as a destination address of the unicast response packet into an intranet address, and forwards the modified extranet address to the UPNP service device that initiated the multicast search request.
CN201510328809.1A 2015-06-15 2015-06-15 Method and device for sharing home network service Active CN106254407B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510328809.1A CN106254407B (en) 2015-06-15 2015-06-15 Method and device for sharing home network service
PCT/CN2016/078595 WO2016202056A1 (en) 2015-06-15 2016-04-06 Home network service sharing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510328809.1A CN106254407B (en) 2015-06-15 2015-06-15 Method and device for sharing home network service

Publications (2)

Publication Number Publication Date
CN106254407A CN106254407A (en) 2016-12-21
CN106254407B true CN106254407B (en) 2020-09-25

Family

ID=57544991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510328809.1A Active CN106254407B (en) 2015-06-15 2015-06-15 Method and device for sharing home network service

Country Status (2)

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

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018196468A1 (en) * 2017-04-27 2018-11-01 华为技术有限公司 Method, device and terminal for realizing data service
CN110519149B (en) * 2018-05-21 2022-06-21 深圳市尚云互联技术有限公司 Message pushing method and application system thereof
CN110493766A (en) * 2019-08-21 2019-11-22 青岛海信电器股份有限公司 A kind of discovery method of UPNP equipment
CN111314132B (en) * 2020-02-14 2022-09-30 上海市共进通信技术有限公司 Method for setting intelligent networking configuration between wireless gateway router and wireless amplifier
CN112187486B (en) * 2020-09-29 2023-07-18 青岛海信传媒网络技术有限公司 Interaction method between intelligent devices and intelligent device
CN114697880B (en) * 2020-12-31 2023-05-12 华为技术有限公司 Cross-network segment discovery method, routing equipment and system
CN114051214A (en) * 2021-11-15 2022-02-15 杭州老板电器股份有限公司 Method, device and system for sharing terminal functions
CN114401429B (en) * 2022-01-14 2024-02-27 烽火通信科技股份有限公司 Remote screen projection method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977147B (en) * 2010-10-25 2012-07-04 中山大学 Message forwarding based new method for accessing NAT (Network Address Translation) router into 802.1X certification network
CN103152234A (en) * 2013-02-20 2013-06-12 广州市佳思信息科技有限公司 Method for implementing interconnection of digital home network devices
CN103563298A (en) * 2011-03-18 2014-02-05 三星电子株式会社 Method and system for managing contact information in universal plug and play home network environment
CN104488222A (en) * 2012-07-20 2015-04-01 三星电子株式会社 Home network system and network setting method of router therein
CN104683320A (en) * 2013-12-03 2015-06-03 中兴通讯股份有限公司 Home network multimedia content sharing access control method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9203694B2 (en) * 2013-03-15 2015-12-01 Telefonaktiebolaget L M Ericsson (Publ) Network assisted UPnP remote access
WO2014144753A1 (en) * 2013-03-15 2014-09-18 Ruckus Wireless, Inc. Localizing a multicast service
US9674048B2 (en) * 2013-06-03 2017-06-06 Qualcomm Incorporated Efficient infrastructure service discovery with security

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977147B (en) * 2010-10-25 2012-07-04 中山大学 Message forwarding based new method for accessing NAT (Network Address Translation) router into 802.1X certification network
CN103563298A (en) * 2011-03-18 2014-02-05 三星电子株式会社 Method and system for managing contact information in universal plug and play home network environment
CN104488222A (en) * 2012-07-20 2015-04-01 三星电子株式会社 Home network system and network setting method of router therein
CN103152234A (en) * 2013-02-20 2013-06-12 广州市佳思信息科技有限公司 Method for implementing interconnection of digital home network devices
CN104683320A (en) * 2013-12-03 2015-06-03 中兴通讯股份有限公司 Home network multimedia content sharing access control method and device

Also Published As

Publication number Publication date
WO2016202056A1 (en) 2016-12-22
CN106254407A (en) 2016-12-21

Similar Documents

Publication Publication Date Title
CN106254407B (en) Method and device for sharing home network service
US10630543B1 (en) Wireless mesh network implementation for IOT devices
JP4537357B2 (en) Dynamic construction of VLAN interface based on subscriber information string
KR100717057B1 (en) Method and system for aggregating the control of middleware control points
US10469444B2 (en) System and method for direct connections between previously unconnected network devices across one or more unknown networks
US8077632B2 (en) Automatic LAN/WAN port detection
EP1625726B1 (en) Universal plug-and-play (upnp) mirroring device
KR100791298B1 (en) Apparatus and method for controlling device of home network
KR101028138B1 (en) A method for assigning address to the intelligent information household appliance and the sub-equipment in the household network
WO2015003566A1 (en) Method, device and system for transmitting packet in multicast domain name system
JP2002189649A (en) Method of providing service in network system based on the internet
KR20020026745A (en) IP based network system and networking method thereof
JP2007513403A (en) Discovering bandwidth savings for dual stack UPnP devices
KR100429902B1 (en) Apparatus and method for controlling devices in private network from public network
JP3858884B2 (en) Network access gateway, network access gateway control method and program
EP1693997A2 (en) Interworking from Internet Protocol to virtual private LAN service
JP2005510181A (en) Method for connecting HAVi cluster and IP cluster using bridge device and related bridge device
JP4292897B2 (en) Relay device and port forward setting method
JP2023510707A (en) Method for sending reply packet, method for sending route advertisement message, network device and computer program
KR100975232B1 (en) network apparatus having port auto-configuration function and method thereof
KR100736037B1 (en) SYSTEM AND METHOD FOR EXPANDING UPnP FUNTION
KR100455123B1 (en) Control message multicasting method and apparatus for universal plug and play network system
JP6002642B2 (en) Communication node, network system, and device control method
Ogawa et al. Transparent UPnP interactions over global network
JP3808471B2 (en) Network and router apparatus and address notification method used therefor

Legal Events

Date Code Title Description
C06 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: 20200827

Address after: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Applicant after: Nanjing Zhongxing Software Co.,Ltd.

Address before: 518057 Nanshan District science and Technology Industrial Park, Guangdong high tech Industrial Park, ZTE building

Applicant before: ZTE Corp.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant