[go: up one dir, main page]

CN106254407A - The method and device that a kind of home network service is shared - Google Patents

The method and device that a kind of home network service is shared Download PDF

Info

Publication number
CN106254407A
CN106254407A CN201510328809.1A CN201510328809A CN106254407A CN 106254407 A CN106254407 A CN 106254407A CN 201510328809 A CN201510328809 A CN 201510328809A CN 106254407 A CN106254407 A CN 106254407A
Authority
CN
China
Prior art keywords
interface
service
multicast search
local area
area network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510328809.1A
Other languages
Chinese (zh)
Other versions
CN106254407B (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
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
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
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses the method and device that a kind of home network service is shared, described method includes: the home router in home network receives the multicast searching request for the service of searching for that its lower UPNP service equipment hung is initiated;Described home router is by acting on behalf of described multicast searching request, and in each VLAN at its place, search services;Service search response to the UPNP service equipment initiating described multicast searching request.The present invention utilizes UPNP technology, is realized service search and the control of whole home network between home router by multicast message.

Description

一种家庭网络服务共享的方法及装置Method and device for home network service sharing

技术领域technical field

本发明涉及通用即插即用(Universal Plug and Play,UPNP)与家用路由器领域,特别涉及一种家庭网络服务共享的方法及装置。The present invention relates to the fields of Universal Plug and Play (UPNP) and home routers, in particular to a method and device for home network service sharing.

背景技术Background technique

目前,家用路由器不仅向用户提供基本的网络功能,如网络地址转换(Network Address Translation,NAT)和流量控制,而且一般都自带有UPNP功能,用户可以选择开启或是关闭来确定是否启用UPNP功能。通过应用UPNP功能,可以在家庭局域网内发现所有支持UPNP的服务,包括打印机、媒体播放,以及智能家电的远控等。At present, home routers not only provide users with basic network functions, such as Network Address Translation (Network Address Translation, NAT) and flow control, but also generally have their own UPNP function, which users can choose to enable or disable to determine whether to enable UPNP function . By applying the UPNP function, all UPNP-enabled services can be found in the home LAN, including printers, media players, and remote control of smart home appliances.

UPNP协议族中使用简单服务发现协议(Simple Service DiscoveryProtocol,SSDP)进行服务的发现,使用组播进行服务的查找。在家用路由器中,组播的转发不支持L3转发(即通过IP地址对组播源的数据进行复制,然后转发到各个组播接口),而支持L2转发(即对于与接收组播数据的接口处于同一个虚拟局域网(Virtual Local Area Network,VLAN)的其它组播接口,由芯片控制所述组播数据直接复制转发,不交由路由器的中央处理器(Central ProcessingUnit,CPU)处理)。也就是说,在家用路由器设备上,只能在同一个VLAN中进行UPNP的服务查找。In the UPNP protocol suite, the Simple Service Discovery Protocol (SSDP) is used for service discovery, and multicast is used for service search. In home routers, multicast forwarding does not support L3 forwarding (that is, copy the data of the multicast source through the IP address, and then forward it to each multicast interface), but supports L2 forwarding (that is, for the interface that receives multicast data For other multicast interfaces in the same virtual local area network (Virtual Local Area Network, VLAN), the chip controls the direct copying and forwarding of the multicast data, and does not hand it over to the central processing unit (Central Processing Unit, CPU) of the router for processing). That is to say, on the home router device, UPNP service lookup can only be performed in the same VLAN.

因此,如果家用路由器划分多个VLAN,或存在多级路由器串联,那么使用UPNP将无法查找并控制整个家庭网络中所有的UPNP服务设备。Therefore, if the home router is divided into multiple VLANs, or there are multi-level routers connected in series, then using UPNP will not be able to find and control all UPNP service devices in the entire home network.

发明内容Contents of the invention

本发明的目的在于提供一种家庭网络服务共享的方法及装置,能更好地解决在家庭网络中查找并控制所有UPNP设备的问题。The purpose of the present invention is to provide a method and device for home network service sharing, which can better solve the problem of finding and controlling all UPNP devices in the home network.

根据本发明的一个方面,提供了一种家庭网络服务共享的方法,包括:According to one aspect of the present invention, a method for sharing a home network service is provided, including:

家庭网络中的家用路由器接收其下挂的UPNP服务设备发起的用来搜索服务的组播搜索请求;The home router in the home network receives the multicast search request for searching services initiated by the UPNP service device attached to it;

所述家用路由器通过代理所述组播搜索请求,在其所在的各虚拟局域网中搜索服务;The home router searches for services in each virtual local area network where it is located by proxying the multicast search request;

将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备。Respond the searched service to the UPNP service device that initiated the multicast search request.

优选地,所述的家用路由器通过代理所述组播搜索请求,在其所在的各虚拟局域网中搜索服务的步骤包括:Preferably, the step of searching for services in each virtual local area network where the home router is located by proxying the multicast search request includes:

所述家用路由器判断其接口与所述组播搜索报文的入接口是否在同一虚拟局域网;The home router judges whether its interface is in the same virtual local area network as the incoming interface of the multicast search message;

若所述家用路由器的接口与所述组播搜索报文的入接口在同一虚拟局域网,则经由所述接口将组播搜索报文转发至所述虚拟局域网下的其它UPNP设备;If the interface of the home router and the incoming interface of the multicast search message are in the same virtual local area network, the multicast search message is forwarded to other UPNP devices under 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 incoming interface of the multicast search message, then forward the multicast search request to the virtual local area network where the interface is located according to the configuration attributes of the virtual local area network where the interface is located. local area network.

优选地,若所述配置属性是用来连接家庭网络的属性,则将所述组播搜索请求的作为源地址的内网地址修改为外网地址后,转发至所述接口所在的虚拟局域网。Preferably, if the configuration attribute is an attribute used to connect to a home network, the intranet address as the source address of the multicast search request is modified to an external network address, and then forwarded to the virtual local area network where the interface is located.

优选地,所述的将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备的步骤包括:Preferably, the step of responding the searched service to the UPNP service device that initiated the multicast search request includes:

接收其它UPNP服务设备通过单播方式响应所述组播搜索请求而发送的包括设备地址和服务类型的单播应答报文,所述单播应答报文包括服务类型信息和提供服务的UPNP服务设备的地址信息;Receive 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 the unicast response message includes service type information and the UPNP service device that provides the service address information;

将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备。Send the unicast response message to the UPNP service device that initiated the multicast search request.

优选地,若用来接收所述单播应答报文的接口与所述组播搜索请求的入接口的不在同一虚拟局域网,则将所述单播应答报文的作为目的地址的外网地址修改为内网地址后,转发至发起所述组播搜索请求的UPNP服务设备。Preferably, if the interface used to receive the unicast response message is not in the same virtual local area network as the incoming interface of the multicast search request, the external network address as the destination address of the unicast response message is modified After it is an intranet address, it is forwarded to the UPNP service device that initiated the multicast search request.

根据本发明的另一方面,提供了一种家庭网络服务共享的装置,包括:According to another aspect of the present invention, a device for sharing home network services is provided, including:

请求获取模块,用于接收家庭网络中家用路由器下挂的UPNP服务设备发起的用来搜索服务的组播搜索请求;The request acquisition module is used to receive a multicast search request for searching services initiated by a UPNP service device under the home router in the home network;

服务搜索模块,用于通过代理所述组播搜索请求,在家用路由器所在的各虚拟局域网中搜索服务;A service search module, configured to search for services in each virtual local area network where the home router is located by proxying the multicast search request;

请求应答模块,用于将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备。The request response module is configured to respond the searched service to the UPNP service device that initiated the multicast search request.

优选地,所述服务搜索模块判断其接口与所述组播搜索报文的入接口是否在同一虚拟局域网,若所述家用路由器的接口与所述组播搜索报文的入接口在同一虚拟局域网,则经由所述接口将组播搜索报文转发至所述虚拟局域网下的其它UPNP设备,否则根据所述接口所在虚拟局域网的配置属性,将所述组播搜索请求转发至所述接口所在的虚拟局域网。Preferably, the service search module judges whether its interface is in the same virtual local area network as the incoming interface of the multicast search message, if the interface of the home router and the incoming interface of the multicast search message are in the same virtual local area network , the multicast search message is forwarded to other UPNP devices under the virtual local area network via the interface, otherwise, the multicast search request is forwarded to the virtual local area network.

优选地,若所述配置属性是用来连接家庭网络的属性,则所述服务搜索模块将所述组播搜索请求的作为源地址的内网地址修改为外网地址后,转发至所述接口所在的虚拟局域网。Preferably, if the configuration attribute is an attribute used to connect to a home network, the service search module modifies the internal network address as the source address of the multicast search request to an external network address, and then forwards it to the interface The virtual local area network in which it is located.

优选地,所述请求应答模块接收其它UPNP服务设备通过单播方式响应所述组播搜索请求而发送的包括设备地址和服务类型的单播应答报文,并将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备,其中,所述单播应答报文包括服务类型信息和提供服务的UPNP服务设备的地址信息。Preferably, 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 To the UPNP service device that initiates the multicast search request, wherein the unicast response message includes service type information and address information of the UPNP service device that provides the service.

优选地,若用来接收所述单播应答报文的接口与所述组播搜索请求的入接口的不在同一虚拟局域网,则所述请求应答模块将所述单播应答报文的作为目的地址的外网地址修改为内网地址后,转发至发起所述组播搜索请求的UPNP服务设备。Preferably, if the interface used to receive the unicast response message is not in the same virtual local area network as the incoming interface of the multicast search request, the request response module uses the unicast response message as the destination address After the external network address of the user is modified to an internal network address, it is forwarded to the UPNP service device that initiated the multicast search request.

与现有技术相比较,本发明的有益效果在于:Compared with the prior art, the beneficial effects of the present invention are:

本发明利用UPNP技术,在家用路由器之间通过组播搜索请求(即组播报文)实现整个家庭网络的服务查找与控制。The invention utilizes the UPNP technology to realize the service search and control of the entire home network through multicast search requests (that is, multicast messages) between home routers.

附图说明Description of drawings

图1是本发明实施例提供的家用路由器示意图;FIG. 1 is a schematic diagram of a home router provided by an embodiment of the present invention;

图2是本发明实施例提供的家庭网络服务共享的方法框图;FIG. 2 is a block diagram of a method for home network service sharing provided by an embodiment of the present invention;

图3是本发明实施例提供的家庭网络服务共享的装置框图;FIG. 3 is a block diagram of a home network service sharing device provided by an embodiment of the present invention;

图4是本发明实施例提供的家庭网络组网示意图;FIG. 4 is a schematic diagram of home network networking provided by an embodiment of the present invention;

图5是基于图4所示组网图进行家庭网络服务共享的流程图。FIG. 5 is a flow chart of 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 in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described below are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

本发明基于UPNP技术,实现家庭网络服务共享,其中包括家用路由器、UPNP协议族和NAT转换,其中:The present invention realizes home network service sharing based on UPNP technology, which includes home router, UPNP protocol family and NAT conversion, wherein:

家用路由器是用于家用网络中接入公网的路由器。在家庭网络中相互连接的所有路由器设备(即家用路由器),一般指低端路由器设备,不包括交换机设备。图1是本发明实施例提供的家用路由器示意图,如图1所示,该家用路由器为单臂路由器,在其上进行NAT转换,也就是说,家用路由器上的NAT转换一般应用于单臂路由器,其划分两个不同的VLAN,即广域网(Wide Area Network,WAN)与局域网(Local Area Network,LAN)。LAN区域内下挂不同设备,为各设备分配内网地址(即内网IP地址),当LAN区域的设备访问外网服务时,在家用路由器上进行NAT转换,转化为WAN接口地址(即外网地址,外网IP地址)。A home router is a router used in a home network to access the public network. All router devices connected to each other in the home network (ie, home routers) generally refer to low-end router devices, excluding switch devices. Figure 1 is a schematic diagram of a home router provided by an embodiment of the present invention. As shown in Figure 1, the home router is a single-arm router on which NAT conversion is performed, that is to say, NAT conversion on a home router is generally applied to a single-arm router , which divides two different VLANs, that is, a wide area network (Wide Area Network, WAN) and a local area network (Local Area Network, LAN). Different devices are connected to the LAN area, and each device is assigned an internal network address (that is, an internal network IP address). When a device in the LAN area accesses external network services, NAT conversion is performed on the home router to convert it into a WAN interface address (that is, an external network IP address). network address, external network IP address).

UPNP协议族主要用于实现设备的智能互联互通,使得办公室、家庭和其它公共场所能够方便地构建设备相互联通的网络环境。UPNP是实现智能设备端到端网络连接的结构,也是一种架构在传输控制协议(Transmission ControlProtocol,TCP)/互联网络协议(Internet Protocol,IP)和超文本传输协议(Hyper Text Transfer Protocol,HTTP)技术之上的,分布式、开放的网络结构,使得在联网的设备间传递控制数据。UPNP技术实现了对控制点、设备和服务之间通讯的支持,并且设备和相关服务的也使用可扩展标记语言(ExtensibleMakup Language,XML)定义并且公布出来。通过使用UPNP,设备可以动态加入网络,并自动获得一个IP地址,向其他设备公布它的能力或者获知其他设备的存在和服务,所有这些过程都是自动完成的,此后设备能够彼此直接通讯。The UPNP protocol family is mainly used to realize the intelligent interconnection and intercommunication of devices, so that offices, homes and other public places can conveniently build a network environment in which devices are interconnected. UPNP is a structure that realizes the end-to-end network connection of smart devices. Based on technology, the distributed and open network structure enables the transfer of control data between networked devices. UPNP technology supports the communication among 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 the network, automatically obtain an IP address, announce its capabilities to other devices or know the existence and services of other devices, all these processes are automatically completed, and then the devices can communicate directly with each other.

所述UPNP的工作过程分为6步:The working process of the UPNP is divided into 6 steps:

(1)寻址(Addressing)(1) Addressing

设备获得一个IP地址,所述IP地址通过动态主机配置协议(Dynamic HostConfiguration Protocol,DHCP)或手工配置或Auto-IP方式获得。The device obtains an IP address, and the IP address is obtained through a Dynamic Host Configuration Protocol (Dynamic Host Configuration Protocol, DHCP) or manual configuration or Auto-IP.

(2)发现(Discovery)(2) Discovery

当一个设备被添加到网络后,UPNP发现协议允许该设备向网络上的其它控制点(Control Point,CP)通知(advise)自己拥有的服务。同样,当一个CP被添加到网络后,UPNP发现协议允许该CP搜索网络上可用的设备;When a device is added to the network, the UPNP discovery protocol allows the device to notify (advise) the services it owns to other control points (Control Point, CP) on the network. Similarly, when a CP is added to the network, the UPNP discovery protocol allows the CP to search for available devices on the network;

(3)描述(Description)(3) Description

设备(Device)的详细信息包含物理描述和服务描述,通过HTTP获取一个XML结构化的数据。The detailed information of the device (Device) includes physical description and service description, and an XML structured data is obtained through HTTP.

(4)控制(Control)(4) Control

采用简单对象防伪协议(Simple Object Access Protocol,SOAP)(HTTP/TCP),完成CP和各Device之间的交互。Use Simple Object Access Protocol (Simple Object Access Protocol, SOAP) (HTTP/TCP) to complete the interaction between CP and each Device.

(5)事件(Eventing)(5)Eventing

采用一般事件通知架构(Generic Event Notification Architecture,GENA)协议(HTTP/TCP),完成设备事件消息的订阅和推送,为保证可靠性,故采用TCP传输;事件的推送还有multicast(UDP),即UDP组播。The general event notification architecture (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; event push also has multicast (UDP), namely UDP multicast.

(6)表达(Presentation)(6) Expression (Presentation)

UPNP没有定义Presentation的内容,厂商自定义的设备HTML页面。UPNP does not define the content of Presentation, the HTML page of the device customized by the manufacturer.

本发明基于UPNP技术实现家庭网络中多级NAT间服务的查找与控制,以实现服务共享。在上述UPNP的工作流程的第2步,即服务的发现(Dissovery)阶段,采用SSDP协议(UDP),用组播(multicast)完成设备搜索,用单播(unicast)(UDP)响应CP的搜索。Based on the UPNP technology, the invention realizes the search and control of services between multi-level NATs in the home network, so as to realize service sharing. In the second step of the above-mentioned UPNP workflow, that is, the service discovery (Dissovery) stage, the SSDP protocol (UDP) is used to complete the device search with multicast, and the CP search is responded to with unicast (UDP) .

上述设备为能够提供服务的UPNP服务设备,例如打印机和播放器等。The above-mentioned devices are UPNP service devices capable of providing services, such as printers and players.

图2是本发明实施例提供的家庭网络服务共享的方法框图,如图2所示,步骤包括:Fig. 2 is a block diagram of a method for home network service sharing provided by an embodiment of the present invention. As shown in Fig. 2, the steps include:

步骤S101:家庭网络中的家用路由器接收其下挂的UPNP服务设备发起的用来搜索服务的组播搜索请求。Step S101: The home router in the home network receives a multicast search request for searching services initiated by a UPNP service device attached to it.

步骤S102:所述家用路由器通过代理所述组播搜索请求,在其所在的各虚拟局域网中搜索服务。Step S102: the home router searches for services in each virtual local area network where it is located by proxying the multicast search request.

具体地说,所述家用路由器判断其接口与所述组播搜索报文的入接口是否在同一虚拟局域网,若所述家用路由器的接口与所述组播搜索报文的入接口在同一虚拟局域网,例如都在VLAN1,则经由所述接口将组播搜索报文转发至所述VLAN1下的其它UPNP设备;若所述家用路由器的接口与所述组播搜索报文的入接口不在同一虚拟局域网,例如报文的入接口1在VLAN1,家用路由器的另一接口2在VLAN2,则根据接口2所在VLAN2的配置属性,将所述组播搜索请求转发至接口2所在的VLAN2。Specifically, the home router judges whether its interface and the incoming interface of the multicast search message are in the same virtual local area network, if the interface of the home router and the incoming interface of the multicast search message are in the same virtual local area network , for example, are all in VLAN1, then forward the multicast search message to other UPNP devices under the VLAN1 via the interface; if the interface of the home router is not in the same virtual local area network as the incoming interface of the multicast search message For example, the incoming interface 1 of the message is in VLAN1, and another interface 2 of the home router is in VLAN2, then according to the configuration attribute of the VLAN2 where the interface 2 is located, the multicast search request is forwarded to the VLAN2 where the interface 2 is located.

进一步地,若所述配置属性是用来连接家庭网络的属性,则将所述组播搜索请求的作为源地址的内网地址修改为外网地址后,转发至所述接口所在的虚拟局域网,例如转发至接口2所在的VLAN2。若所述配置属性是用来连接公网的属性,则不转发所述组播搜索请求。Further, if the configuration attribute is an attribute used to connect to a home network, after modifying the internal network address as the source address of the multicast search request to an external network address, forward it to the virtual local area network where the interface is located, For example, forward to VLAN2 where interface 2 resides. If the configuration attribute is an attribute for connecting to the public network, the multicast search request is not forwarded.

步骤S103:将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备。Step S103: Respond the searched service to the UPNP service device that initiated the multicast search request.

具体地说,接收其它UPNP服务设备通过单播方式响应所述组播搜索请求而发送的包括设备地址和服务类型的单播应答报文,将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备,所述单播应答报文包括服务类型信息和提供服务的UPNP服务设备的地址信息。Specifically, receive the unicast response message including device address and service type sent by other UPNP service devices in response to the multicast search request in unicast mode, and send the unicast response message to the originating group The UPNP service device that broadcasts the search request, and the unicast response message includes service type information and address information of the UPNP service device that provides the service.

进一步地,若用来接收所述单播应答报文的接口与所述组播搜索请求的入接口的不在同一虚拟局域网,例如,接收所述单播应答报文的接口2处于VLAN2,而所述组播搜索请求的报文入接口处于VLAN1,则将所述单播应答报文的作为目的地址的外网地址修改为内网地址后,转发至发起所述组播搜索请求的UPNP服务设备。.Further, if the interface used to receive the unicast response message is not in the same virtual local area network as the incoming interface of the multicast search request, for example, the interface 2 receiving the unicast response message is in VLAN2, and the If the incoming interface of the message of the multicast search request is in VLAN1, the external network address as the destination address of the unicast response message is modified to the internal network address, and forwarded to the UPNP service device that initiates the multicast search request . .

图3是本发明实施例提供的家庭网络服务共享的装置框图,如图3所示,包括请求获取模块10、服务搜索模块20和请求应答模块30。FIG. 3 is a block diagram of a home network service sharing device provided by an embodiment of the present invention. As shown in FIG. 3 , it includes a request acquisition module 10 , a service search module 20 and a request response module 30 .

请求获取模块10用于接收家庭网络中家用路由器下挂的UPNP服务设备发起的用来搜索服务的组播搜索请求。例如,经由家用路由器的接口1接收其下挂的在VLAN1的UPNP服务设备的组播搜索请求,并缓存所述组播搜索请求。The request acquisition module 10 is configured to receive a multicast search request for searching services initiated by a UPNP service device attached to a home router in the home network. For example, a multicast search request of a UPNP service device attached to the home router in VLAN1 is received via interface 1, and the multicast search request is cached.

服务搜索模块20用于通过代理所述组播搜索请求,在家用路由器所在的各虚拟局域网中搜索服务。例如,服务搜索模块20判断其某一接口与所述组播搜索报文的入接口是否在同一虚拟局域网,若所述家用路由器的接口与所述组播搜索报文的入接口在同一虚拟局域网,则经由所述接口将组播搜索报文转发至所述虚拟局域网下的其它UPNP设备,否则根据所述接口所在虚拟局域网的配置属性,将所述组播搜索请求转发至所述接口所在的虚拟局域网。进一步地,若所述配置属性是用来连接家庭网络的属性,则所述服务搜索模块将所述组播搜索请求的作为源地址的内网地址修改为外网地址后,转发至所述接口所在的虚拟局域网。若所述配置属性是用来连接公网的属性,则不转发所述组播搜索报文。The service search module 20 is configured to search for services in each virtual local area network where the home router is located by proxying the multicast search request. For example, the service search module 20 judges whether an interface of the service search message is in the same virtual local area network as the incoming interface of the multicast search message, if the interface of the home router is in the same virtual local area network , the multicast search message is forwarded to other UPNP devices under the virtual local area network via the interface, otherwise, the multicast search request is forwarded to the virtual local area network. Further, if the configuration attribute is an attribute used to connect to a home network, the service search module modifies the internal network address as the source address of the multicast search request to an external network address, and then forwards it to the interface The virtual local area network in which it is located. If the configuration attribute is an attribute for connecting to the public network, the multicast search message is not forwarded.

请求应答模块30用于将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备。具体地说,请求应答模块30接收其它UPNP服务设备通过单播方式响应所述组播搜索请求而发送的包括设备地址和服务类型的单播应答报文,并将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备,其中,所述单播应答报文包括服务类型信息和提供服务的UPNP服务设备的地址信息。其中,若用来接收所述单播应答报文的接口与所述组播搜索请求的入接口的不在同一虚拟局域网,则所述请求应答模块将所述单播应答报文的作为目的地址的外网地址修改为内网地址后,转发至发起所述组播搜索请求的UPNP服务设备。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 the unicast response message including device address and service type sent by other UPNP service devices in response to the multicast search request in unicast mode, and sends the unicast response message To the UPNP service device that initiates the multicast search request, wherein the unicast response message includes service type information and address information of the UPNP service device that provides the service. Wherein, if the interface used to receive the unicast response message is not in the same virtual local area network as the incoming 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 changed to the internal network address, it is forwarded to the UPNP service device that initiated the multicast search request.

充当UPNP控制点的家用路由器在接收到SSDP的multicast服务请求(即组播搜索请求)时,可以缓存这个请求,并自己代理此multicast服务请求,对于家用路由器划分的不同VLAN,例如WAN与LAN,搜索所处网络,将整理结果集,再回应原来缓存的服务请求,也就是实现对于特定组播报文,完成一次代理请求的过程。When the home router acting as the UPNP control point receives SSDP's multicast service request (that is, a multicast search request), it can cache the request and act as a proxy for the multicast service request. For different VLANs divided by the home router, such as WAN and LAN, Search the network where it is located, organize the result set, and then respond to the original cached service request, which is to realize the process of completing a proxy request for a specific multicast message.

图4是本发明实施例提供的家庭网络组网示意图,如图4所示。FIG. 4 is a schematic diagram of home network networking provided by an embodiment of the present invention, as shown in FIG. 4 .

实施例1Example 1

当从上一节点路由器(路由器A)发起组播的请求时,路由器A收到SSDP的组播搜索请求报文,判断自身路由器的VLAN属性,将其报文在对应接口上转发。路由器B收到路由器A转发的请求报文时,根据自身路由器的VLAN属性,将其报文在对应接口上转发。路由器B收到各接口的答复报文(即单播应答报文),将其回复给路由器A。路由器A收到各接口的答复报文,转发给请求报文入接口。具体地说,步骤包括:When a multicast request is initiated from the previous node router (router A), router A receives the SSDP multicast search request message, judges the VLAN attribute of its own router, and forwards the message on the corresponding interface. When router B receives the request packet forwarded by router A, it forwards the packet on the corresponding interface according to the VLAN attribute of its own router. Router B receives the reply message (that is, the unicast reply message) of each interface, and replies it to router A. Router A receives the reply packet from each interface and forwards it to the inbound interface of the request packet. Specifically, the steps include:

步骤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间各个接口上转发。Step 1. When the eth1 interface of router A receives an SSDP multicast discovery message (ie, a multicast search request) from the downlink device, the source IP is 192.168.1.10, the destination IP is multicast IP 239.255.255.250, and the port The number is 1900. According to the L2 multicast port forwarding table and the tag (VLAN0) of the VLAN where the inbound interface eth1 is located, the switch chip of router A forwards the multicast discovery message between the VLANs of the same tag (VLAN0). forwarded on the interface.

步骤2、路由器A的不同tag的VLAN(VLAN1),是否转发报文需要根据VLAN的配置属性进行判断。若路由器A的WAN口在VLAN1,则获取WAN口的基本配置属性,假定家庭内部路由器WAN网络配置为PPPOP等,认为此接口连接到公网,不需要转发组播discovery报文,此时不转发此组播discovery报文。Step 2. For the VLAN (VLAN1) with different tags of router A, whether to forward the message needs to be judged according to the configuration attribute of the VLAN. If the WAN port of router A is in VLAN1, obtain the basic configuration attributes of the WAN port. Assume that the WAN network of the home router is configured as PPPOP, etc., and consider that this interface is connected to the public network, and there is no need to forward multicast discovery packets. This multicast discovery packet.

步骤3、路由器B从WAN口(192.168.1.100)收到组播discovery报文,同样根据入接口WAN所在vlan的tag(vlan1),将此组播discovery报文,在同一个tag(VLAN1)间各接口转发(一般VLAN1网络划分只有WAN一个接口,所以看不到转发过程)。Step 3. Router B receives the multicast discovery message from the WAN port (192.168.1.100), and also sends the multicast discovery message between the same tag (VLAN1) according to the tag (vlan1) of the vlan where the ingress interface WAN is located. Each interface forwards (generally VLAN1 network division has only one interface of WAN, so the forwarding process cannot be seen).

步骤4、路由器B的不同tag的VLAN(VLAN0),根据其VLAN的成员的配置属性进行判断,对于DHCP或是静态配置,视其为与家庭网络相连,需要在此VLAN间(LAN)进行组播discovery报文的转发。路由器B在eth0与eth1接口上转发组播discovery报文。路由器B判断自身路由表项,若收到组播discovery报文入接口为默认网关接口,则不修改组播报文中源IP地址(192.168.1.10),直接复制转发即可。Step 4. The VLAN (VLAN0) with different tags of router B is judged according to the configuration attributes of its VLAN members. For DHCP or static configuration, it is regarded as connected to the home network and needs to be grouped between this VLAN (LAN). Broadcast discovery packet forwarding. Router B forwards multicast discovery packets on interfaces eth0 and eth1. Router B judges its own routing table entry. If the inbound interface of the multicast discovery message is the default gateway interface, it does not modify the source IP address (192.168.1.10) in the multicast message, just copy and forward it directly.

步骤5、路由器B等待各接口响应的答复报文(即单播应答报文),下挂设备符合此组播discovery报文的搜索条件,如路由器B下的192.168.2.11。此设备会以单播应答报文响应此组播discovery报文。路由器B根据自身路由表,无192.168.1.10的主机,根据默认网关转发此报文,到达路由器A的eth0接口。Step 5. Router B waits for the response message (ie, unicast response message) from 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 will respond to the multicast discovery message with a unicast reply message. According to its own routing table, router B forwards this message according to the default gateway, and reaches the eth0 interface of router A.

步骤6、路由器A将eth0接口上收到的单播应答报文和其它接口eth3收到的单播应答报文,根据单播应答报文的目的地址192.168.1.10,转发到所述组播搜索报文的入接口eth1接口。Step 6, router A forwards the unicast response message received on the eth0 interface and the unicast response message received by other interface eth3 to the multicast search according to the destination address 192.168.1.10 of the unicast response message Incoming interface eth1 for packets.

至此,一次服务的搜索过程结束。在eth1的下挂控制点上,获取到了路由器A接口直连设备上的服务,同样也获取到了路由器B接口直连设备上的服务。So far, the search process of a service ends. On the downlink control point of eth1, the service on the device directly connected to the router A interface is obtained, and the service on the device directly connected to the router B interface is also obtained.

实施例2Example 2

从低节点路由器发起组播的请求,具体搜索服务的步骤包括:Initiate a multicast request from a low-node router, and the specific steps for searching for services include:

步骤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间各个接口上转发。Step 1. When the eth1 interface of router B receives an SSDP multicast discovery message (ie, a multicast search request) from the downlink device, the source IP is 192.168.2.11, the destination IP is the multicast IP 239.255.255.250, and the port The number is 1900. According to the L2 multicast port forwarding table and the tag (VLAN 0) of the VLAN where the inbound interface eth1 is located, the switch chip of router B forwards the multicast discovery message to the VLAN with the same tag (VLAN 0). forwarded on each interface.

步骤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)。Step 2, the VLAN (VLAN 1) with different tags of router B, whether to forward the message needs to be judged according to the configuration attributes of the VLAN. If the WAN port of router B is in VLAN1, then obtain the basic configuration attributes of the WAN port, and if the network attribute of the WAN is DHCP or static configuration, then forward this IP, and at the same time, the source IP address (192.168. 2.11) Replace with the IP address after NAT conversion, or the IP address of the default gateway (192.168.1.100).

步骤3、路由器A从eth0收到组播discovery报文,同样根据入接口eth0所在VLAN的tag(v VLAN 0),将此组播discovery报文在同一个tag(VLAN0)间各接口转发(此时eth1,eth2都发送此组播discovery报文)。Step 3: Router A receives the multicast discovery message from eth0, and also forwards the multicast discovery message between interfaces with the same tag (VLAN0) according to the tag (v VLAN 0) of the VLAN where the ingress interface eth0 is located (here At this time, both eth1 and eth2 send this multicast discovery message).

步骤4、路由器A的不同tag的VLAN(VLAN 1),根据其VLAN的成员的配置属性进行判断,若是PPPOE等配置属性,假定其连接到公网,则不进行组播discovery报文的转发。Step 4, VLANs (VLAN 1) of different tags of router A are judged according to the configuration attributes of its VLAN members, if configuration attributes such as PPPOE, assuming that it is connected to the public network, then the forwarding of the multicast discovery message will not be carried out.

步骤5、路由器A等待各接口响应的答复报文(即单播应答报文),下挂设备符合此组播discovery报文的搜索条件,如路由器A下的192.168.1.10。此设备会以单播应答报文响应此组播discovery报文,此时响应报文的目的IP为192.168.1.100,源IP为192.168.1.10。路由器A根据自身路由表,找到目的IP所在接口eth0转发此报文,到达路由器B的WAN接口。Step 5. Router A waits for the response message (ie, unicast response message) from 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 will respond to the multicast discovery packet with a unicast response packet. At this time, the destination IP of the response packet is 192.168.1.100, and the source IP is 192.168.1.10. According to its own routing table, router A finds the interface eth0 where the destination IP is located and forwards the packet to the WAN interface of router B.

步骤6、路由器B从WAN接口上接收单播应答报文,根据之前发送组播discovery报文的条目,找到记录的原来组播discovery报文的源IP,将此单播应答报文的目的IP修改为NAT转换的IP地址,根据路由表查找到对应的接口eth1,转发此单播应答报文。Step 6. 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 entry of the previously sent multicast discovery message, and assigns the destination IP address of the unicast response message to Modify the IP address converted by NAT, find the corresponding interface eth1 according to the routing table, and forward the unicast response message.

至此,一次服务的搜索过程结束。在eth1的下挂控制点上,获取到了路由器B接口直连设备上的服务,同样也获取到了路由器A接口直连设备上的服务。So far, the search process of a service ends. On the downlink control point of eth1, the service on the device directly connected to the router B interface is obtained, and the service on the device directly connected to the router A interface is also obtained.

图5是基于图4所示组网图进行家庭网络服务共享的流程图,如图5所示,路由器A下挂主机A和主机B,路由器B下挂主机A’和主机B’,具体步骤包括:Figure 5 is a flow chart of home network service sharing based on the networking diagram shown in Figure 4. As shown in Figure 5, router A is connected to host A and host B, and router B is connected to host A' and host B'. The specific steps include:

步骤1、路由器A收到其下挂主机B发起的组播搜索报文(即组播搜索请求);Step 1, router A receives the multicast search message (i.e. multicast search request) initiated by host B attached to it;

步骤2a、路由器A将所述组播搜索报文转发至其下挂的另一主机A;Step 2a, router A forwards the multicast search message to another host A connected thereto;

步骤2b、路由器A将所述组播搜索报文转发至与其连接的路由器B;Step 2b, router A forwards the multicast search message to router B connected to it;

步骤2c、路由器B将所述组播搜索报文转发至其下挂的主机A’;Step 2c, router B forwards the multicast search message to the host A' attached thereto;

步骤2d、路由器B将所述组播搜索报文转发至其下挂的主机B’;Step 2d, router B forwards the multicast search message to the host B' attached thereto;

步骤3a、路由器A接收其下挂主机A响应所述组播搜索报文而回应的单播应答报文;Step 3a, router A receives the unicast response message that host A under it responds to in response to the multicast search message;

步骤3c、路由器B接收其下挂主机A’响应所述组播搜索报文而回应的单播应答报文;Step 3c, router B receives the unicast response message that host A' attached to it responds to the multicast search message;

步骤3d、路由器B接收其下挂主机B’响应所述组播搜索报文而回应的单播应答报文;Step 3d, router B receives the unicast response message that host B' attached to it responds to the multicast search message;

步骤4c、路由器A接收路由器B转发的来自主机A’的单播应答报文;Step 4c, router A receives the unicast response message from host A' forwarded by router B;

步骤4d、路由器A接收路由器B转发的来自主机B’的单播应答报文;Step 4d, router A receives the unicast response message from host B' forwarded by router B;

步骤5c、路由器A将主机A’的单播应答报文转发给主机B;Step 5c, router A forwards the unicast response message of host A' to host B;

步骤5d、路由器A将主机B’的单播应答报文转发给主机B。Step 5d, router A forwards the unicast response message of host B' to host B.

综上所述,本发明具有以下技术效果:In summary, the present invention has the following technical effects:

本发明通过添加UPNP协议功能,实现家用路由器对于组播报文的代理,实现通过一次UPNP控制点的查找能够搜索到整个家用网络中的所有指定服务。The invention realizes the agency of the home router for the multicast message by adding the function of the UPNP protocol, and realizes that all specified services in the whole home network can be searched through one search of the UPNP control point.

尽管上文对本发明进行了详细说明,但是本发明不限于此,本技术领域技术人员可以根据本发明的原理进行各种修改。因此,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。Although the present invention has been described in detail above, the present invention is not limited thereto, and various modifications can be made by those skilled in the art based on the principle of the present invention. Therefore, any modifications made according to the principles of the present invention should be understood as falling within the protection scope of the present invention.

Claims (10)

1.一种家庭网络服务共享的方法,其特征在于,包括:1. A method for home network service sharing, comprising: 家庭网络中的家用路由器接收其下挂的通用即插即用UPNP服务设备发起的用来搜索服务的组播搜索请求;The home router in the home network receives a multicast search request for searching services initiated by the UPNP service device attached to it; 所述家用路由器通过代理所述组播搜索请求,在其所在的各虚拟局域网中搜索服务;The home router searches for services in each virtual local area network where it is located by proxying the multicast search request; 将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备。Respond the searched service to the UPNP service device that initiated the multicast search request. 2.根据权利要求1所述的方法,其特征在于,所述的家用路由器通过代理所述组播搜索请求,在其所在的各虚拟局域网中搜索服务的步骤包括:2. The method according to claim 1, wherein the step of searching for services in each virtual local area network where the home router is located by acting as a proxy for the multicast search request comprises: 所述家用路由器判断其接口与所述组播搜索报文的入接口是否在同一虚拟局域网;The home router judges whether its interface is in the same virtual local area network as the incoming interface of the multicast search message; 若所述家用路由器的接口与所述组播搜索报文的入接口在同一虚拟局域网,则经由所述接口将组播搜索报文转发至所述虚拟局域网下的其它UPNP设备;If the interface of the home router and the incoming interface of the multicast search message are in the same virtual local area network, the multicast search message is forwarded to other UPNP devices under 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 incoming interface of the multicast search message, then forward the multicast search request to the virtual local area network where the interface is located according to the configuration attributes of the virtual local area network where the interface is located. local area network. 3.根据权利要求2所述的方法,其特征在于,若所述配置属性是用来连接家庭网络的属性,则将所述组播搜索请求的作为源地址的内网地址修改为外网地址后,转发至所述接口所在的虚拟局域网。3. The method according to claim 2, wherein if the configuration attribute is an attribute used to connect to a home network, modify the internal network address as the source address of the multicast search request to an external network address After that, forward to the virtual local area network where the interface is located. 4.根据权利要求3所述的方法,其特征在于,所述的将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备的步骤包括:4. The method according to claim 3, wherein the step of responding the searched service to the UPNP service device that initiates the multicast search request comprises: 接收其它UPNP服务设备通过单播方式响应所述组播搜索请求而发送的包括设备地址和服务类型的单播应答报文,所述单播应答报文包括服务类型信息和提供服务的UPNP服务设备的地址信息;Receive 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 the unicast response message includes service type information and the UPNP service device that provides the service address information; 将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备。Send the unicast response message to the UPNP service device that initiated the multicast search request. 5.根据权利要求4所述的方法,其特征在于,若用来接收所述单播应答报文的接口与所述组播搜索请求的入接口的不在同一虚拟局域网,则将所述单播应答报文的作为目的地址的外网地址修改为内网地址后,转发至发起所述组播搜索请求的UPNP服务设备。5. The method according to claim 4, wherein if the interface for receiving the unicast response message is not in the same virtual local area network as the incoming interface of the multicast search request, then the unicast After the external network address serving as the destination address of the response message is changed to an internal network address, it is forwarded to the UPNP service device that initiated the multicast search request. 6.一种家庭网络服务共享的装置,其特征在于,包括:6. A device for home network service sharing, comprising: 请求获取模块,用于接收家庭网络中家用路由器下挂的UPNP服务设备发起的用来搜索服务的组播搜索请求;The request acquisition module is used to receive a multicast search request for searching services initiated by a UPNP service device under the home router in the home network; 服务搜索模块,用于通过代理所述组播搜索请求,在家用路由器所在的各虚拟局域网中搜索服务;A service search module, configured to search for services in each virtual local area network where the home router is located by proxying the multicast search request; 请求应答模块,用于将搜索到的服务回应给发起所述组播搜索请求的UPNP服务设备。The request response module is configured to respond the searched service to the UPNP service device that initiated the multicast search request. 7.根据权利要求6所述的装置,其特征在于,所述服务搜索模块判断其接口与所述组播搜索报文的入接口是否在同一虚拟局域网,若所述家用路由器的接口与所述组播搜索报文的入接口在同一虚拟局域网,则经由所述接口将组播搜索报文转发至所述虚拟局域网下的其它UPNP设备,否则根据所述接口所在虚拟局域网的配置属性,将所述组播搜索请求转发至所述接口所在的虚拟局域网。7. The device according to claim 6, wherein the service search module judges whether its interface and the incoming interface of the multicast search message are in the same virtual local area network, if the interface of the home router is in the same virtual local area network as the If the incoming interface of the multicast search message is in the same virtual local area network, the multicast search message is forwarded to other UPNP devices under the virtual local area network via the interface; otherwise, according to the configuration attribute of the virtual local area network where the interface is located, the The multicast search request is forwarded to the virtual local area network where the interface is located. 8.根据权利要求7所述的装置,其特征在于,若所述配置属性是用来连接家庭网络的属性,则所述服务搜索模块将所述组播搜索请求的作为源地址的内网地址修改为外网地址后,转发至所述接口所在的虚拟局域网。8. The device according to claim 7, wherein if the configuration attribute is an attribute used to connect to a home network, the service search module uses the intranet address as the source address of the multicast search request After modifying it to an external network address, it is forwarded to the virtual local area network where the interface is located. 9.根据权利要求8所述的装置,其特征在于,所述请求应答模块接收其它UPNP服务设备通过单播方式响应所述组播搜索请求而发送的包括设备地址和服务类型的单播应答报文,并将所述单播应答报文发送给发起所述组播搜索请求的UPNP服务设备,其中,所述单播应答报文包括服务类型信息和提供服务的UPNP服务设备的地址信息。9. The device according to claim 8, wherein the request response module receives the unicast response report including device address and service type sent by other UPNP service devices in response to the multicast search request in unicast mode text, and send the unicast response message to the UPNP service device that initiated the multicast search request, wherein the unicast response message includes service type information and address information of the UPNP service device that provides the service. 10.根据权利要求9所述的装置,其特征在于,若用来接收所述单播应答报文的接口与所述组播搜索请求的入接口的不在同一虚拟局域网,则所述请求应答模块将所述单播应答报文的作为目的地址的外网地址修改为内网地址后,转发至发起所述组播搜索请求的UPNP服务设备。10. The device according to claim 9, wherein if the interface used to receive the unicast response message is not in the same virtual local area network as the incoming interface of the multicast search request, the request response module After modifying the external network address as the destination address of the unicast response message to an internal network address, forward it 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 Expired - Fee Related 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 true CN106254407A (en) 2016-12-21
CN106254407B CN106254407B (en) 2020-09-25

Family

ID=57544991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510328809.1A Expired - Fee Related 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)

Cited By (5)

* 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
CN110493766A (en) * 2019-08-21 2019-11-22 青岛海信电器股份有限公司 A kind of discovery method of UPNP equipment
CN114051214A (en) * 2021-11-15 2022-02-15 杭州老板电器股份有限公司 Method, device and system for sharing terminal functions
CN114697880A (en) * 2020-12-31 2022-07-01 华为技术有限公司 Cross-network segment discovery method, routing device and system
CN119561673A (en) * 2025-01-21 2025-03-04 苏州元脑智能科技有限公司 Service registration method, blockchain system, edge node, medium and product

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519149B (en) * 2018-05-21 2022-06-21 深圳市尚云互联技术有限公司 Message pushing method and application system thereof
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
CN114401429B (en) * 2022-01-14 2024-02-27 烽火通信科技股份有限公司 Remote screen projection method and electronic equipment

Citations (6)

* 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
US20140359148A1 (en) * 2013-06-03 2014-12-04 Qualcomm Incorporated Efficient infrastructure service discovery with security
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 中兴通讯股份有限公司 Access control method and device for home network multimedia content sharing

Family Cites Families (2)

* 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

Patent Citations (6)

* 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
US20140359148A1 (en) * 2013-06-03 2014-12-04 Qualcomm Incorporated Efficient infrastructure service discovery with security
CN104683320A (en) * 2013-12-03 2015-06-03 中兴通讯股份有限公司 Access control method and device for home network multimedia content sharing

Cited By (7)

* 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
US11075880B2 (en) 2017-04-27 2021-07-27 Huawei Technologies Co., Ltd. Data service implementation method and apparatus, and terminal
CN110493766A (en) * 2019-08-21 2019-11-22 青岛海信电器股份有限公司 A kind of discovery method of UPNP equipment
CN114697880A (en) * 2020-12-31 2022-07-01 华为技术有限公司 Cross-network segment discovery method, routing device and system
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
CN119561673A (en) * 2025-01-21 2025-03-04 苏州元脑智能科技有限公司 Service registration method, blockchain system, edge node, medium and product

Also Published As

Publication number Publication date
CN106254407B (en) 2020-09-25
WO2016202056A1 (en) 2016-12-22

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
US7366188B2 (en) Gateway for supporting communications between network devices of different private networks
US7724688B2 (en) Communication equipment
US8122113B2 (en) Dynamic host configuration protocol (DHCP) message interception and modification
US8176529B2 (en) Apparatus and method for controlling devices in one or more home networks
US8050282B2 (en) Universal plug and play device and method of resolving network address conflict by considering remote access
CN101971573B (en) Remote access method in network including network address translation device
CN103338151B (en) Public network client accesses the method and router of private network server
WO2015003566A1 (en) Method, device and system for transmitting packet in multicast domain name system
CN109391704B (en) Cross-private-network access method and device for video monitoring equipment
KR100429902B1 (en) Apparatus and method for controlling devices in private network from public network
CN110691150A (en) An SDN-based IPv4 and IPv6 interconnection method and system
CN101222495A (en) Method and router for IPv4 network host to access IPv6 network host
JP2004120534A (en) Router and relay device, forwarding method
CN102647483B (en) Obtain method, P2P end-point entities and the NAT entities of NAT types
JP2002141953A (en) Communication relay device, communication relay method, communication terminal device, and program storage medium
JP3858884B2 (en) Network access gateway, network access gateway control method and program
JP4292897B2 (en) Relay device and port forward setting method
EP3395049A1 (en) ROUTER AND METHOD FOR CONNECTING AN IPv4 NETWORK AND AN IPv6 NETWORK
KR100552475B1 (en) Gateway for supporting communication between network devices of different private networks
CN101572729B (en) A method for processing virtual private network node information and related equipment and system
KR20080078802A (en) Devices and methods for detecting applications running on local networks to automatically perform network address translation
JP2016146566A (en) Network system and data transfer method
KR100736037B1 (en) SYSTEM AND METHOD FOR EXPANDING UPnP FUNTION

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200925

CF01 Termination of patent right due to non-payment of annual fee