CN104052826B - Method and apparatus based on the discovery dhcp network media server - Google Patents

Method and apparatus based on the discovery dhcp network media server Download PDF

Info

Publication number
CN104052826B
CN104052826B CN 201310077792 CN201310077792A CN104052826B CN 104052826 B CN104052826 B CN 104052826B CN 201310077792 CN201310077792 CN 201310077792 CN 201310077792 A CN201310077792 A CN 201310077792A CN 104052826 B CN104052826 B CN 104052826B
Authority
CN
Grant status
Grant
Patent type
Application number
CN 201310077792
Other languages
Chinese (zh)
Other versions
CN104052826A (en )
Inventor
黄志钢
程剑
夏晖
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Grant date

Links

Abstract

本发明提供一种基于DHCP的发现网络媒体服务器的方法和装置。 The present invention provides a method and apparatus for a DHCP based server discovery network media. 涉及通信领域。 It relates to the communication field. 解决了在DLNA客户端发现DLNA服务器时,对DLNA服务器向下经过的网络设备要求较高,且当网络上存在多个DLNA服务器时,DLNA客户端将发现多个DLNA服务器,无法进行负载均衡的问题。 Found solved DLNA server DLNA client, higher downwardly through a DLNA server on network equipment requirements, and when a plurality of DLNA server present on the network, a plurality of DLNA client will find the DLNA server, load balancing can not be performed problem. 具体可以包括:DHCP设备根据DHCP设备获取的网关位置信息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器;向网关发送确定的网络媒体服务器的地址。 It may specifically include: DHCP server device according to the network load information media gateway DHCP DHCP device and position information acquired from the device stored in the network to determine a media server in communication with client; address to send the determined media server to the gateway network. 可应用于发现网络媒体服务器中。 It can be used to discover network media server.

Description

基于DHCP的发现网络媒体服务器的方法和装置 Method and apparatus for a DHCP based server discovery network media

技术领域 FIELD

[0001] 本发明涉及通信技术领域,尤其涉及基于DHCP (Dynamic Host Configuration Protocol动态主机设置协议)的发现网络媒体服务器的方法和装置。 [0001] The present invention relates to communication technologies, particularly to a method and apparatus is directed to a network based on the media server DHCP (Dynamic Host Configuration Protocol Dynamic Host Configuration Protocol) Discovery.

背景技术 Background technique

[0002]在基于DHCP的DLNA (Digital Living Network Alliance数字生活网络联盟)标准中,DLNA客户端在获取到IP (Internet Protocol,网络之间互连的协议)地址后,需要进行发现过程,即DLNA客户端需要发现DLNA服务器以便于进行通信。 After [0002] In DHCP-based DLNA (Digital Living Network Alliance Digital Living Network Alliance) standard, DLNA client to obtain IP (Internet Protocol, the interconnection between network protocol) address the need for the discovery process, namely DLNA The client needs to find the DLNA server for communication.

[0003] 具体的,DLNA服务器(即网络媒体服务器)可以主动组播发送SSDP (Simple Service Discovery Protocol简单业务发现协议)的Notify消息至DLNA客户端,SSDP Not i fy消息中可以包含DLNA服务器信息(如该DLNA服务器的设备描述对应的URL,USN (Unique Service Name)等);或者,还可以为当DLNA服务器接收到DLNA客户端发送的M-Search (—种消息名称)消息后,向发送该M-Search消息的DLNA客户端单播发送DLNA服务器伯息。 [0003] Specifically, a DLNA server (i.e., network media server) may take the initiative to send a multicast SSDP (Simple Service Discovery Protocol Simple Service Discovery Protocol) Notify message to the DLNA client, SSDP Not i fy DLNA server message may include information ( the apparatus described in the corresponding DLNA server URL, USN (Unique Service name), etc.); or, when a DLNA server may also be received M-Search (DLNA sent by the client - the latter message name) message, and sends the M-Search message DLNA client terminal primary DLNA server unicast transmission rate.

[0004] 但是上述方法只可以应用于单一网络中(即DLNA服务器与DLNA客户端位于同一网络中),当DLNA客户端与DLNA服务器位于不同网络的时,DLNA客户端可能无法直接发现DLNA 服务器。 [0004] However, the above method may be applied only to a single network (i.e., with the DLNA client DLNA server on the same network), when a DLNA server DLNA client located in a different network, the DLNA client may not discover DLNA server directly.

[0005] 为了解决在不同网络中DLNA客户端无法发现DLNA服务器的问题,一种方法是将相邻网络之间的网关设置为中继服务器。 [0005] In order to solve the DLNA client in different networks can not be found in the DLNA server problem, a method is provided adjacent a gateway between the network as a relay server. 中继服务器主要用于接收DLNA服务器发送的DLNA服务器信息,并将该DLNA服务器信息广播给DLNA客户端。 The relay server information is mainly used to receive a DLNA server DLNA server transmission, and the DLNA server broadcasts information to the DLNA client.

[0006] 在实现上述发现网络媒体服务器的过程中,发明人发现现有技术中至少存在如下问题:该技术方案要求DLNA服务器向下经过的网络设备均支持组播报文复制,一直到家庭网关为止,对网络设备要求较高;另外,当网络上存在多个DLNA服务器时,DLNA客户端将发现多个DLNA服务器,无法进行负载均衡。 [0006] In the process of implementing the network media server discovery, the inventors found that at least the following problems in the prior art: this solution requires a DLNA server through the network device downwardly and multicast replication support, until the home gateway So far, the network equipment demanding; Further, when a plurality of DLNA server present on the network, a plurality of DLNA client will find DLNA servers, load balancing can not be performed.

发明内容 SUMMARY

[0007] 本发明的实施例提供一种基于DHCP的发现网络媒体服务器的方法和装置,解决了在DLNA客户端发现DLNA服务器时,对DLNA服务器向下经过的网络设备要求较高,且当网络上存在多个DLNA服务器时,DLNA客户端将发现多个DLNA服务器,无法进行负载均衡的问题。 [0007] Embodiments of the present invention provides a method and apparatus based on the DHCP discover network media server, when the solution was found in the DLNA server DLNA client, higher downwardly through a DLNA server on a network equipment requirements, and when the network when multiple DLNA servers exist on, DLNA client will find multiple DLNA server, you can not load balance.

[0008] 为达到上述目的,本发明的实施例采用如下技术方案: [0008] To achieve the above object, embodiments of the present invention adopts the following technical solutions:

[0009]第一方面,提供一种基于DHCP的发现网络媒体服务器的方法,包括: [0009] In a first aspect, there is provided a method for a DHCP based server discovery network media, comprising:

[0010] DHCP设备根据DHCP设备获取的网关位置信息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器; [0010] The load information apparatus DHCP server network media gateway DHCP DHCP device and position information acquired from the device stored in the media server determining a network to communicate with the client;

[0011]向网关发送确定的网络媒体服务器的地址。 [0011] address to send the determined media server to the gateway network.

[0012] 在第一种可能的实现方式中,所述DHCP设备为DHCP中继设备或DHCP服务器,其中, 所述网络媒体服务器的地址包括所述网络媒体服务器的网际IP地址,或,所述网络媒体服务器的地址包括所述网络媒体服务器的网际IP地址和所述网络媒体服务器上与所述客户端进行通信的端口的端口号。 [0012] In a first possible implementation, the device is a DHCP DHCP relay or DHCP server, wherein said network address comprises a media server to the Internet network IP address of the media server, or the port number of a port to communicate with the client IP address of an Internet media server and the network address of the network media server comprises a media network server.

[0013]结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,若所述DHCP设备为DHCP中继设备,则在所述DHCP设备根据DHCP设备获取的网关位置信息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器之前,所述方法还包括: [0013] The first possible implementation of the first aspect, in a second possible implementation, if the device is a DHCP DHCP relay device, DHCP apparatus in accordance with the position of the gateway device acquires a DHCP before the information stored in the device and DHCP server load information network media, the media server determines the network in communication with a client, the method further comprising:

[0014] 接收所述网关发送的地址分配请求,所述地址分配请求为DHCP发现报文或DHCP请求报文; [0014] the gateway sends the received address assignment request, the address allocation request is a DHCP discovery message, or a DHCP request message;

[0015] 根据所述DHCP中继设备上接收所述地址分配请求的第一端口的端口号确定所述网关位置信息,其中,所述网关位置信息包括第一端口的端口号,或,所述网关位置信息包括第一端口的端口号和第一端口所在的单板的单板号,或,所述网关位置信息包括第一端口的端口号、第一端口所在的单板的单板号和所述单板所在的框的框号。 [0015] On receiving the DHCP relay apparatus according to the address allocation request a port number of the first port position information of the gateway, wherein the gateway comprises a location information of a first port of the port number, or the gateway location information comprises port number and port number of the first board of the board where the first port, or a port number of the gateway location information comprises a first port, the first port number where the board and the board the frame number of the frame card.

[0016] 结合第一方面的第一种可能的实现方式,在第三种可能的实现方式中,若所述DHCP设备为DHCP服务器,则在所述DHCP设备根据DHCP设备获取的网关位置信息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器之前,所述方法还包括: [0016] The first possible implementation of the first aspect, in a third possible implementation, if the device is a DHCP DHCP server, the DHCP apparatus in accordance with the information acquired from the device DHCP gateway location and DHCP network media stored in the device information server load, prior to the network media server in communication with client determining, said method further comprising:

[0017] 接收DHCP中继设备发送的第一地址分配请求,所述第一地址分配请求携带所述网关的网关位置信息,所述网关位置信息包括所述DHCP中继设备接收所述网关发送的第二地址分配请求的第一端口的端口号,或,所述网关位置信息包括所述DHCP中继设备接收所述网关发送的第二地址分配请求的第一端口的端口号和第一端口所在的单板的单板号,或, 所述网关位置信息包括所述DHCP中继设备接收所述网关发送的第二地址分配请求的第一端口的端口号、第一端口所在的单板的单板号和单板所在的框的框号; [0017] receiving a first DHCP address assignment request transmitted from the relay device, the first gateway address allocation request carries the location information of the gateway, the gateway to the location information comprises receiving a DHCP relay device sent by the gateway a second port number of the first port address allocation request, or the gateway location information comprises a first port of a second port number of the DHCP address assignment relay apparatus receives the request sent by the gateway and the first port is located number of veneer board, or the gateway location information comprises a second port number of the address assignment request to the first port of the gateway device receives a DHCP relay transmission, the first port of the board where the single plate and the frame number of the frame number of the card is located;

[0018] 其中,所述第二地址分配请求为所述网关发送的DHCP发现报文,所述第一地址分配请求为所述DHCP中继设备收到所述网关发送的所述DHCP发现报文后,根据DHCP获得的、 携带有选项0ption82的DHCP发现报文; [0018] wherein said second address allocation request sent to the gateway DHCP discover packet, the first address assignment request to the gateway receiving the DHCP relay device sends the DHCP discovery packet after, according to the DHCP acquired carries options for DHCP 0ption82 discovery packet;

[0019]或者, [0019] Alternatively,

[0020] 其中,第二地址分配请求为所述网关发送的DHCP请求报文,所述第一地址分配请求为所述DHCP中继设备收到所述网关发送的所述DHCP请求报文后,根据DHCP获得的、携带有选项0ption82的DHCP请求报文。 [0020] wherein the second address assignment request to the gateway DHCP request packet, the first address after the allocation request is sent by the gateway DHCP request packet is received by the DHCP relay device, according DHCP acquired carries options 0ption82 DHCP request packet.

[0021]结合第一方面或第一方面的第一种可能的实现方式至第三种可能的实现方式中的任意一种方式,在第四种可能的实现方式中,所述网络媒体服务器为数字生活网络联盟DLNA服务器或基于超文本传输协议HTTP的服务器;所述客户端为DLNA客户端; [0021] with the first aspect or the first possible implementation of the first aspect in any way to a third possible implementation manner in a fourth possible implementation, the media server to the network digital living network Alliance DLNA server or hypertext transfer protocol (HTTP) server; the client as a DLNA client;

[0022] 所述方法还包括: [0022] The method further comprises:

[0023] 所述DHCP设备将基于DHCP获取到的所述网关的地址发送至所述网关。 [0023] device transmits to the DHCP address based on DHCP to obtain the gateway to the gateway.

[0024] 第二方面,提供另一种基于DHCP的发现网络媒体服务器的方法,包括: [0024] In a second aspect, there is provided another DHCP based server discovery network media, comprising:

[0025] 网关向DHCP设备发送地址分配请求; [0025] The gateway device transmits the allocation request to the DHCP address;

[0026] 接收所述DHCP设备发送的地址分配响应,所述地址分配响应包括所述DHCP设备确定的网络媒体服务器的地址; [0026] The receiving device sends a DHCP address assignment response, said address assignment response to the address of the DHCP server includes a network media device determined;

[0027] 网关在没有收到数字生活网络联盟DLNA客户端发送的触发网关进行认证的请求的情况下,向确定的网络媒体服务器发送认证请求; [0027] In the case of the gateway does not receive a trigger gateway Digital Living Network Alliance DLNA client sends a request to authenticate sends an authentication request to determine the network media server;

[0028] 在通过所述确定的网络媒体服务器认证后,接收所述确定的网络媒体服务器发送的所述确定的网络媒体服务器相关信息; The [0028] network media after determining the authentication server, and receiving the determined network media server sends the media server determined network related information;

[0029]向所述DLNA客户端发送所述确定的网络媒体服务器相关信息,所述确定的网络媒体服务器相关信息用于响应所述注册请求。 [0029] transmitting the determination to the DLNA client server network media related information, information relevant to the network media server determined in response to the registration request.

[0030] 在第一种可能的实现方式中,所述向所述DLNA客户端发送所述确定的网络媒体服务器相关信息包括: [0030] In a first possible implementation, the transmitting the determination to the client network DLNA media server related information comprises:

[0031] 向所述DLNA客户端组播发送所述确定的网络媒体服务器相关信息;或者, [0031] network media server transmits the determined information related to the multicast DLNA client; or

[0032] 在接收到请求消息后,向发送所述请求消息的DLNA客户端单播发送所述确定的网络媒体服务器相关信息。 [0032] Upon receiving the request message, DLNA client request message to the sending end unicast network related information transmitted to the media server determined.

[0033] 结合第二方面或第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述网络媒体服务器的地址包括所述网络媒体服务器的网际IP地址,或,所述网络媒体服务器的地址包括所述网络媒体服务器的网际IP地址和所述网络媒体服务器上与所述客户端进行通信的端口的端口号。 [0033] combination with the second aspect or the first possible implementation of the second aspect, in a second possible implementation, the network address of the media server include an Internet IP address of the network media server, or, port number of a port to communicate with the client IP address on the Internet and the network address of the media server, network media server comprising the network media server.

[0034]结合第二方面或第二方面的第一种可能的实现方式或第二种可能的实现方式,在第三种可能的实现方式中,所述网络媒体服务器相关信息包括:所述确定的网络媒体服务器能够提供的业务。 [0034] combination with the second aspect or the first possible implementation of the second aspect or the second possible implementation manner, in a third possible implementation, the network media server related information comprises: determining the the network media server capable of providing the services.

[0035]结合第二方面或第二方面的第一种可能的实现方式至第三种可能的实现方式中任意一项方式,在第四种可能的实现方式中,所述地址分配响应还包括:所述DHCP设备基于DHCP获取到的所述网关的地址。 [0035] The binding of the second aspect or the first possible implementation of the second aspect to the third possible implementation manner of any one embodiment, in a fourth possible implementation manner, the address assignment response further comprises : address in the DHCP device based on the acquired DHCP gateway.

[0036] 第三方面,提供一种DHCP设备,包括: [0036] a third aspect, there is provided a DHCP apparatus, comprising:

[0037] 处理器,用于根据DHCP设备获取的网关位置信息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器; [0037] processor, load information for the media server according to the network gateway device location information and the DHCP acquired DHCP device stored in the media server determining a network to communicate with the client;

[0038] 发送器,用于向网关发送确定的网络媒体服务器的地址。 [0038] a transmitter for transmitting the determined address to the media gateway web server.

[0039] 在第一种可能的实现方式中,所述DHCP设备为DHCP中继设备或DHCP服务器,其中, 所述网络媒体服务器的地址包括所述网络媒体服务器的网际IP地址,或,所述网络媒体服务器的地址包括所述网络媒体服务器的网际IP地址和所述网络媒体服务器上与所述客户端进行通信的端口的端口号。 [0039] In a first possible implementation, the device is a DHCP DHCP relay or DHCP server, wherein said network address comprises a media server to the Internet network IP address of the media server, or the port number of a port to communicate with the client IP address of an Internet media server and the network address of the network media server comprises a media network server.

[0040]结合第二方面的一种可能的实现方式中,在第二种可能的实现方式中,若所述DHCP设备为DHCP中继设备,则所述DHCP设备还包括: [0040] The second aspect in conjunction with one possible implementation mode, in a second possible implementation, if the device is a DHCP DHCP relay device, DHCP then the apparatus further comprises:

[0041]接收器,用于在所述DHCP设备根据DHCP设备获取的网关位置信息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器之前,接收所述网关发送的地址分配请求,所述地址分配请求为DHCP发现报文或DHCP请求报文; [0041] The receiver for the apparatus prior to the DHCP server according to the network load information media gateway DHCP DHCP device and position information acquired from the device stored in the media server determining a network to communicate with the client, the gateway receives transmission an address allocation request, the address allocation request is a DHCP discover message or DHCP request packet;

[0042] 所述处理器,还用于根据所述DHCP中继设备上接收所述地址分配请求的第一端口的端口号确定所述网关位置信息,其中,所述网关位置信息包括第一端口的端口号,或,所述网关位置信息包括第一端口的端口号和第一端口所在的单板的单板号,或,所述网关位置信息包括第一端口的端口号、第一端口所在的单板的单板号和所述单板所在的框的框号。 [0042] The processor further configured to receive the DHCP relay device on the position information of the gateway address assignment request port of the first port number is determined, wherein the location information comprises a first gateway port port number, or the gateway location information comprises port number and a first port number of a card board where a first port, or a port number of the gateway location information comprises a first port, the first port is located the card number and the frame number of the board where the board frame.

[0043]结合第二方面的一种可能的实现方式中,在第三种可能的实现方式中,若所述DHCP设备为DHCP服务器,则所述接收器,还用于在所述DHCP设备根据DHCP设备获取的网关位置信息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器之前,接收DHCP中继设备发送的第一地址分配请求,所述第一地址分配请求携带所述网关的网关位置信息,所述网关位置信息包括所述DHCP中继设备接收所述网关发送的第二地址分配请求的第一端口的端口号,或,所述网关位置信息包括所述DHCP中继设备接收所述网关发送的第二地址分配请求的第一端口的端口号和第一端口所在的单板的单板号,或,所述网关位置信息包括所述DHCP中继设备接收所述网关发送的第二地址分配请求的第一端口的端口号、第一端口所在的单板的单板号和单板所在的框的 [0043] in conjunction with one possible implementation of the second aspect, in a third possible implementation, if the device is a DHCP DHCP server, then the receiver is further configured DHCP apparatus in accordance with the DHCP gateway device acquires position information stored in a device and a DHCP server load information network media, prior to determining the network media server in communication with client receiving a first address allocation request sent by the DHCP relay device, the first address assignment gateway location request carries information of the gateway, the gateway location information comprises a first port of the port number assigned to the second address of the gateway DHCP relay device receives the transmission request, or the location information comprises gateway the second address allocation request port number of the first port receiving said DHCP relay device sent by the gateway and the board where the board number of the first port, or the gateway location information to the DHCP relay device comprising a second port number of the first port address allocation request sent by the gateway to receive said first port number where the board and the board where the board frame 号; number;

[0044] 其中,所述第二地址分配请求为所述网关发送的DHCP发现报文,所述第一地址分配请求为所述DHCP中继设备收到所述网关发送的所述DHCP发现报文后,根据DHCP获得的、 携带有选项0pti〇n82的DHCP发现报文; [0044] wherein said second address allocation request sent to the gateway DHCP discover packet, the first address assignment request to the gateway receiving the DHCP relay device sends the DHCP discovery packet after, according to the DHCP acquired carries DHCP options 0pti〇n82 discovery packet;

[0045] 或者, [0045] Alternatively,

[0046] 其中,第二地址分配请求为所述网关发送的DHCP请求报文,所述第一地址分配请求为所述DHCP中继设备收到所述网关发送的所述DHCP请求报文后,根据DHCP获得的、携带有选项0ption82的DHCP请求报文。 [0046] wherein the second address assignment request to the gateway DHCP request packet, the first address after the allocation request is sent by the gateway DHCP request packet is received by the DHCP relay device, according DHCP acquired carries options 0ption82 DHCP request packet.

[0047] 结合第二方面或第二方面的第一种可能的实现方式至第三种可能的实现方式中任意一种可能的实现方式,在第四种可能的实现方式中,所述网络媒体服务器为数字生活网络联盟DLNA服务器或基于超文本传输协议HTTP的服务器;所述客户端为DLNA客户端; [0047] combination with the second aspect or the first possible implementation of the second aspect to the third possible implementation manner any possible implementation manner, in a fourth possible implementation, the network media server is digital living network Alliance DLNA server or hypertext transfer protocol (HTTP) server; the client as a DLNA client;

[0048] 所述发送器,还用于将基于DHCP获取到的所述网关的地址发送至所述网关。 [0048] The transmitter is further configured to address based on DHCP to obtain the sending gateway to the gateway.

[0049] 第四方面,提供一种网关,包括: [0049] The fourth aspect, there is provided a gateway, comprising:

[0050] 发送器,用于向DHCP设备发送地址分配请求;在没有收到数字生活网络联盟DLNA 客户端发送的触发网关进行认证的请求的情况下,向确定的网络媒体服务器发送认证请求;向所述DLNA客户端发送所述确定的网络媒体服务器相关信息,所述确定的网络媒体服务器相关信息用于响应所述注册请求; [0050] The transmitter device for transmitting the allocation request to the DHCP address; in the case of the gateway does not receive a trigger DLNA client sends a request to a Digital Living Network Alliance the authentication, the network sends an authentication request to determine a media server; and to the DLNA client sending the determined network related information media server, the media server determined network related information in response to the registration request;

[0051] 接收器,用于接收所述DHCP设备发送的地址分配响应,所述地址分配响应包括所述DHCP设备确定的网络媒体服务器的地址;在通过所述确定的网络媒体服务器认证后,接收所述确定的网络媒体服务器发送的所述确定的网络媒体服务器相关信息。 [0051] a receiver for receiving the DHCP address assignment response transmission apparatus, said address assignment response to the address of the DHCP server includes a network media device is determined; the media server through the network after the determination of the authentication, receiving the determined network media server sends the media server determined network related information.

[0052] 在第一种可能的实现方式中,所述发送器,具体用于向所述DLNA客户端组播发送所述确定的网络媒体服务器相关信息;或者,在接收到请求消息后,向发送所述请求消息的DLNA客户端单播发送所述确定的网络媒体服务器相关信息。 [0052] In a first possible implementation, the transmitter, network media server is configured to transmit the determined information related to the multicast DLNA client; Alternatively, after receiving the request message, to the sending the request message to the DLNA client unicast network related information transmitted to the media server determined.

[0053]结合第四方面或第四方面的第一种可能的实现方式,在第二种可能的实现方式中,所述网络媒体服务器的地址包括所述网络媒体服务器的网际IP地址,或,所述网络媒体服务器的地址包括所述网络媒体服务器的网际IP地址和所述网络媒体服务器上与所述客户端进行通信的端口的端口号。 [0053] The binding of the fourth aspect or the first possible implementation of the fourth aspect, in a second possible implementation, the network address of the media server include an Internet IP address of the network media server, or, port number of a port to communicate with the client IP address on the Internet and the network address of the media server, network media server comprising the network media server.

[0054] 结合第四方面或第四方面的第一种可能的实现方式或第二种可能的实现方式,在第三种可能的实现方式中,所述网络媒体服务器相关信息包括:所述确定的网络媒体服务器能够提供的业务。 [0054] The fourth aspect of the bound or the first possible implementation of the fourth aspect or the second possible implementation mode, in a third possible implementation, the network media server related information comprises: determining the the network media server capable of providing the services.

[0055] 结合第四方面或第四方面的第一种可能的实现方式至第三种可能的实现方式中任意一种方式,在第四种可能的实现方式中,所述地址分配响应还包括:所述DHCP设备基于DHCP获取到的所述网关的地址。 [0055] The binding of the fourth aspect or the first possible implementation of the fourth aspect in any way to a third possible implementation manner, in a fourth possible implementation manner, the address assignment response further comprises : address in the DHCP device based on the acquired DHCP gateway.

[0056] 本发明实施例提供的基于DHCP的发现网络媒体服务器的方法和装置,采用上述方案后,DHCP设备确定为DLNA客户端提供服务的网络媒体服务器卿DLNA服务器)并把DLNA服务器的地址和端口信息在DHCP消息中通知给网关,以便于网关在没有收到数字生活网络联盟DLNA客户端发送的触发网关进行认证的请求的情况下,向DLNA服务器发起认证过程,认证成功之后DLNA服务器返回具体的相关信息(如Location,USN等)。 [0056] The method and apparatus provided by the DHCP-based discovery network media server of the embodiment of the present invention, the above-described embodiment, DHCP device determines that the network media server Qing DLNA server providing services to the DLNA client) and the address of the DLNA server, and the case of port information to the gateway in the DHCP message, in order to trigger a gateway gateway does not receive digital living network Alliance DLNA client sends a request to authenticate, and initiates an authentication process to DLNA server DLNA server returns after successful authentication specific related information (e.g., Location, USN, etc.). 这样,网关可以向DLNA 客户端通知上述网络媒体服务器相关信息,以便DLNA客户端与网络媒体服务器进行通信, 不需要从DLNA服务器向下的网络设备支持组播报文复制。 Thus, the gateway can notify the client DLNA media server said network related information, the DLNA client to communicate with the network media server, does not need to replicate multicast packets from network devices DLNA server downward support group. 因此,本实施例可以避免或减少对DLNA服务器向下的网络设备的组播报文复制的要求。 Thus, the present embodiment can avoid or reduce the embodiment set down DLNA server network devices and multicast replication requirements. 此外,可选地,DHCP设备根据获取的位置信息和存储的网络媒体服务器负载信息,确定与DLNA客户端进行通信的网络媒体服务器,当网络上存在多个DLNA服务器时,DHCP设备可以为DLNA客户端确定位置较近的和/或且负载较小的DLNA服务器,以便对DLNA服务器进行负载均衡。 Further, optionally, the DHCP apparatus in accordance with the acquired network media server load information and position information stored in the media server determines the network in communication with the DLNA client, when a plurality of DLNA servers exist on networks, DHCP client device may be a DLNA determining a position nearer the end and / or the load is small and the DLNA server for DLNA server load balancing.

附图说明 BRIEF DESCRIPTION

[0057]为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0057] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, as briefly described in the introduction to the accompanying drawings required for use in describing the embodiments. Apparently, the drawings in the following description are only some of the present invention. embodiments, those of ordinary skill in the art is concerned, without creative efforts, can derive from these drawings other drawings.

[0058]图1为本实施例提供的一种以DHCP设备为执行主体的基于DHCP的发现网络媒体服务器的方法流程图; In one kind of embodiment provided is a flowchart of a method apparatus DHCP discover a DHCP server-based network media execution subject [0058] The present embodiment of FIG. 1;

[0059]图2为本实施例提供的一种以网关为DHCP中继设备的基于DHCP的发现网络媒体服务器的方法交互图; One kind is provided in the gateway DHCP relay process interaction diagram of a DHCP based server discovery network media [0059] FIG. 2 of the present embodiment;

[0060] 图3为本实施例提供的一种DHCP设备为DHCP中继设备的基于DHCP的发现网络媒体服务器的方法交互图; One kind of DHCP device [0060] Figure 3 of the present embodiment is provided to DHCP discover network media server based interactive FIG DHCP relay device;

[0061]图4为图3所示的方法的流程图; [0061] FIG 4 is a flowchart of a method shown in Figure 3;

[0062]图5为本实施例提供的一种DHCP设备为DHCP服务器的基于DHCP的发现网络媒体服务器的方法交互图; [0062] FIG. 5 is one kind of DHCP apparatus according to an embodiment of the method of FIG interactive media network DHCP based server discovery DHCP server;

[0063]图6为图5所示的方法的流程图; [0063] FIG 6 is a flowchart of a method illustrated in FIG 5;

[0064]图7为本实施例提供的一种DHCP设备结构示意图; [0064] Figure 7 a schematic view of one kind of structural diagram of a DHCP apparatus of the present embodiment;

[0065]图8为本实施例提供的另一种DHCP设备结构示意图; [0065] Figure 8 a schematic view of another structural diagram of a DHCP apparatus of the present embodiment;

[0066]图9为本实施例提供的一种网关结构示意图; [0066] FIG. 9 is a schematic view of one kind of structure of the gateway according to an embodiment;

[0067]图10为本实施例提供的一种基于DHCP的发现网络媒体服务器的系统结构示意图。 [0067] Figure 10 provides one kind of a system structure diagram of the DHCP server based network media discovery of the present embodiment.

具体实施方式 detailed description

[0068]下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 [0068] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are merely part of embodiments of the present invention, but not all embodiments example. 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, those of ordinary skill in the art to make all other embodiments without creative work obtained by, it falls within the scope of the present invention.

[0069]本实施例提供的基于DHCP的发现网络媒体服务器的方法中,可以包括但不限于以下实体装置:DLNA服务器、DHCP中继设备、DHCP服务器、网关、DLNA客户端等。 [0069] The present embodiment provides a method to discover DHCP server-based network media can include but are not limited to physical devices: DLNA server, DHCP relay device, DHCP server, a gateway, like the DLNA client.

[0070] 为了更清楚的对实施例进行描述,首先对上述实体、和DLNA、和DHCP等进行简单描述。 [0070] To more clearly describe the embodiments, the above-described first entity, and the DLNA, a brief description and DHCP.

[0071] —、DLNA [0071] -, DLNA

[0072] DLNA是一个由消费电子、移动电话以及电脑厂商组成的联盟组织。 [0072] DLNA is organized by a coalition of consumer electronics, mobile phone and computer makers composition. 该组织的目标在于建立一套可以使得各厂商的产品互相连接,互相适应的工业标准,从而为消费者实现数字化生活。 The organization's goal is to establish a set of product manufacturers can make connections with each other, each other to adapt to industry standards, enabling digital lifestyle for consumers.

[0073] DLNA的主要定义了数种装置(S卩DLNA服务器可以包括但不限于): [0073] The main DLNA defines several means (S Jie DLNA server may include but are not limited to):

[0074] 数字媒体服务器(DMS,Digital Media Server),提供了媒体的获取、录制、储存以及作为源头的装置; [0074] Digital Media Server (DMS, Digital Media Server), offers media acquisition, recording, and storage device as the source;

[0075] 数字媒体播放器(DMP,Digital Media Player),可寻找并播放或输出任何由DMS 所提供的媒体的装置; [0075] The digital media player (DMP, Digital Media Player), and any media playback apparatus or outputs may be provided by the DMS to find;

[0076] 数字媒体控制器(DMC,Digital Media Controller),作为遥控装置使用,可寻找DMS上的多媒体文件,并指定可播放该媒体文件的DMP进行播放或控制多媒体文件上传到DMS或从DMS下载的装置; [0076] Digital Media Controller (DMC, Digital Media Controller), is used as a remote control device, can find a multimedia file on the DMS, DMP and specify play the media file for playback control or multimedia files uploaded or downloaded from the DMS to the DMS s installation;

[0077] 其中,DLNA的核心协议为UPnP (The Universal Plug and Play,通用即插即用)协议。 [0077] wherein, DLNA core protocol UPnP (The Universal Plug and Play, Universal Plug and Play) protocol.

[0078]二、DHCP [0078] bis, DHCP

[0079] 本实施例中可以通过DHCP方式自动获取用于通信的网关的IP地址,具体步骤可以包括: [0079] The present embodiment can obtain the IP address of a gateway for communication through DHCP manner, the step may specifically include:

[0080] 1) DHCP发现(DISCOVER) [0080] 1) DHCP discovery (DISCOVER)

[0081] 网关可以申请它使用的最后一个IP地址。 [0081] The gateway can apply for the last IP address it uses. 如果该网关所在的网络中此IP仍然可用,DHCP服务器就可以准许该申请。 If the network where the gateway is still available in the IP, DHCP server may grant the application. 否则,就要看该DHCP服务器是授权的还是非授权的。 Otherwise, you should see the DHCP server is authorized or unauthorized. 授权DHCP服务器会拒绝请求,使得网关立刻申请一个新的IP。 Authorize the DHCP server will reject the request, so that the gateway immediately apply for a new IP. 非授权DHCP服务器仅仅忽略掉请求,导致网关请求的超时,于是网关就会放弃此请求而去申请一个新的IP地址。 Unauthorized DHCP server just ignores the request, leading to a timeout request gateway, then the gateway will give away this request to apply for a new IP address.

[0082] 2) DHCP提供(OFFER) [0082] 2) DHCP offer (OFFERs)

[0083]当DHCP服务器收到一个来自网关的IP租约请求时,它会为该网关提供一个IP租约。 [0083] When the DHCP server receives an IP lease request from the gateway, it will provide a lease for the IP gateway. DHCP服务器为网关保留一个IP地址,然后通过网络发送DHCP OFFER消息给客户。 DHCP server keeps a gateway IP address, and then send a DHCP OFFER message to the client over the network. 该DHCP OFFER消息可以包含但不限于:发送DHCP OFFER的DHCP服务器的MAC地址、服务器提供的IP 地址、子网掩码、租期以及提供IP的DHCP服务器的IP等。 The DHCP OFFER message may include, but are not limited to: MAC address of the DHCP server sending DHCP OFFER, the server provides an IP address, subnet mask, and IP lease other DHCP server to provide IP.

[0084] 3) DHCP请求(REQUEST) [0084] 3) DHCP requests (the REQUEST)

[0085] 当网关收到包含有IP租约的DHCP OFFER消息时,它必须告诉所有其他的DHCP服务器它己经接受了一个租约提供。 [0085] When the gateway receives a DHCP OFFER message containing the IP lease, it must tell all the other DHCP server that it has received a lease offer. 因此,该网关会发送DHCP REQUEST消息,该DHCP REQUEST消息可以包含但不限于提供租约的DHCP服务器的IP。 Accordingly, the gateway sends the DHCP REQUEST message, the DHCP REQUEST message may include, but are not limited to, providing a DHCP server lease IP. 当其他DHCP服务器收到了DHCP REQUEST 消息后,它们会收回所有可能已提供给网关的租约。 When the other DHCP server receives the DHCP REQUEST message, they will recover all the lease may have been provided to the gateway. 然后它们把曾经给网关保留的IP地址重新放回到可用地址中,这样,它们就仍可以为其他计算机分配这个IP地址。 They then turned the once reserved to the gateway IP address to be placed back in the available addresses so that they can still assign the IP address of the other computer. 任意数量的DHCP服务器都可以响应同一个IP租约请求,但是每一个网关只能接受一个租约提供。 Any number of DHCP servers can respond to the same IP lease request, but each gateway can only accept a lease offer.

[0086] 4) DHCP确认(ACK) [0086] 4) DHCP acknowledgment (ACK)

[0087] 当DHCP服务器收到来自网关的DHCP REQUEST消息后,它就开始了配置过程的最后阶段。 [0087] When the DHCP server receives the DHCP REQUEST message from the gateway, it begins the final stage of the configuration process. 这个响应阶段包括发送DHCP ACK消息给网关。 The phase response message comprises sending a DHCP ACK to the gateway. 该DHCP ACK消息可以包含但不限于:租期和网关可能请求的其他所有配置信息。 The DHCP ACK message may include, but are not limited to: all other configuration information may lease request and gateway.

[0088]三、DHCP中继设备(即DHCP RELAY) [0088] III, DHCP relay device (i.e. DHCP RELAY)

[0089] 早期的DHCP协议只适合DLNA客户端与DHCP服务器处于同一个子网内的情况,不可以跨网段工作。 [0089] The early DHCP protocol is only suitable for DLNA client and DHCP server are within the same subnet and can not work across network segments. DHCP RELAY在处于不同子网间的DLNA客户端与DHCP服务器承担中继服务, 可以将DHCP协议报文中继到跨网段的目的DHCP服务器或DLNA客户端中。 DHCP RELAY relay services for DLNA client and the DHCP server are in different subnets, DHCP protocol message can be relayed to the destination DHCP server or a DLNA client cross-segment of.

[0090] 如图1所示,DHCP RELAY的工作流程可以包括: [0090] FIG 1, DHCP RELAY FIG workflow may include:

[0091] 1)网关向DHCP RELAY发送地址配置请求。 [0091] 1) a configuration request to the gateway DHCP RELAY transmitted address. 如果本子网存在DHCP服务器则不需要DHCP RELAY直接就可以进行DHCP地址配置;如果本子网里没有DHCP服务器,则发往本网络相连的带DHCP RELAY功能的网络设备; If this is not required subnet DHCP server can directly DHCP RELAY DHCP address configuration; if no DHCP server present subnet, the DHCP RELAY hair network device to function with the present connected to the network;

[0092] 2) DHCP RELAY收到网关的地址配置请求后,将0ption82 (—种消息名称)选项添加到此地址配置请求中,并将添加了0ption82选项后的地址配置请求以单播方式发送给DHCP 服务器; [0092] 2) the address of the gateway DHCP RELAY received configuration request, the 0ption82 (- Add this address configuration request message Species name) option, and adding the address to a configuration request option 0ption82 unicast mode DHCP server;

[0093] 3) DHCP服务器在接收到添加了0pti〇n82选项后的地址配置请求后,为网关配置IP 地址,并向DHCP RELAY发送DHCP OFFER消息,该DHCP OFFER消息中被添加了0ption82选项; [0094] 4) DHCP RELAY在接收到DHCP OFFER消息后,删除DHCP OFFER消息中添加的0ption82选项,并将删除了0ption82选项的DHCP OFFER消息发送至网关; After [0093] 3) DHCP server receiving the request for adding the 0pti〇n82 address configuration option to configure a gateway IP address, and sends a DHCP OFFER message DHCP RELAY, the DHCP OFFER message is added 0ption82 option; [ 0094] 4) DHCP RELAY after receiving the DHCP OFFER message, DHCP OFFER message delete option 0ption82 added and removed 0ption82 option DHCP OFFER message to the gateway;

[0095] 5)网关在接收到DHCP OFFER消息后向DHCP RELAY发送DHCP REQUEST消息; [0095] 5) DHCP REQUEST message transmitted to the gateway DHCP RELAY after receiving the DHCP OFFER message;

[0096] 6) DHCP RELAY收到网关的DHCP REQUEST消息后,将0ption82 (—种消息名称)选项添加到此DHCP REQUEST消息中,并将添加了0ption82选项后的DHCPREQUEST消息以单播方式发送给DHCP服务器; After [0096] 6) DHCP RELAY gateway DHCP REQUEST message is received, the 0ption82 (- adding seed message name) this option in the DHCP REQUEST message, and add a DHCPREQUEST message to the DHCP option to send the 0ption82 unicast mode server;

[0097] 7) DHCP服务器在接收到添加了0ption82选项后的DHCP REQUEST消息后,向DHCP RELAY发送DHCP ACK消息,该DHCP ACK消息中被添加了0ption82选项; After [0097] 7) DHCP server receives the DHCP REQUEST message to the added after 0ption82 option, sending DHCP ACK message to the DHCP RELAY, the DHCP ACK message is added 0ption82 options;

[0098] 8) DHCP RELAY将DHCP服务器配置的IP地址发送至DLNA客户端,以便DLNA客户端进行通信。 [0098] 8) DHCP RELAY DHCP server is configured to send the IP address to the DLNA client, to communicate with the DLNA client.

[0099]四、选项0ption82 [0099] Fourth, the option 0ption82

[0100] 1) DLNA客户端在初始化时广播发送请求报文,这时的请求报文并不包含option82; [0100] 1) DLNA client broadcasts transmitted in the initialization request packet, when the request packet does not contain Option82;

[0101] 2) DHCP RELAY将options添加到接收到的请求报文尾部后中继转发给DHCP服务器。 [0101] 2) DHCP RELAY to relay forwarding options added to the DHCP server to the tail of the received request packet. DHCP 〇pti〇n82的子选项可以是但不限于网关所连接的交换机的接口信息; DHCP option sub 〇pti〇n82 interface information may be, but is not limited to the gateway switch is connected;

[0102] 3) DHCP服务器收到DHCP RELAY转发的请求报文后,可以根据请求报文中opti〇n82 选项所携带的信息和预定策略分配IP地址和其它信息,然后将带着DHCP配置信息以及option82信息的DHCP REQUEST报文发给DHCP RELAY。 After [0102] 3) DHCP server receives the DHCP RELAY request packet forwarding may then, and with the DHCP configuration information according to the option request message carried opti〇n82 predetermined policy information and assign IP addresses and other information option82 DHCP REQUEST packet of information sent to DHCP RELAY.

[0103] 4) DHCP RELAY收到DHCP服务器的DHCP REQUEST报文后将剥离报文中的〇Ption82 信息,然后将带有DHCP配置信息的报文转发给网关。 [0103] 4) DHCP RELAY receives the DHCP server, DHCP REQUEST message after the release of 〇Ption82 information packet, then the DHCP configuration information with the packet to the gateway.

[0104]本实施例应用的场景可以为但不限于:DLNA客户端与DLNA服务器位于不同的两个子网中,DHCP服务器可以与DLNA服务器位于同一子网中,网关担任中继。 [0104] The present application scenario of this embodiment may be, but are not limited to: DLNA DLNA client and server are on different subnets of two, the DHCP server may be located in the same subnet with a DLNA server, the gateway as a relay.

[0105]本实施例提供一种基于DHCP的发现网络媒体服务器的方法,该方法的执行主体为DHCP设备,如图1所示,可以包括: [0105] The present embodiment provides a DHCP-based network media server discovery method, the method of execution subject DHCP device shown in Figure 1, may include:

[0106] 101、DHCP设备根据DHCP设备获取的网关位置信息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器; [0106] 101, DHCP device load information according to the network position information and the media gateway DHCP server device storing the acquired DHCP device determines a network server in communication with the media client;

[0107] 102、向网关发送确定的网络媒体服务器的地址,以便网关在通过确定的网络媒体服务器的认证后,将接收到的确定的网络媒体服务器相关信息发送至DLNA客户端,且使DLNA客户端与确定的网络媒体服务器进行通信。 [0107] 102, address of the network media server transmits the determined to the gateway, to the gateway after certified determined network media server, the received determined network media server related information to the DLNA client, and that the DLNA client end communicates with the media server determined network.

[0108] 采用上述方案后,DHCP设备确定与客户端进行通信的网络媒体服务器,并把网络媒体服务器的地址和端口信息通知给网关,然后,网关在没有收到数字生活网络联盟DLNA 客户端发送的触发网关进行认证的请求的情况下,向该网络媒体服务器发起认证过程;在认证成功之后,网络媒体服务器返回具体的相关信息,最后网关向客户端通知上述网络媒体服务器相关信息,以便客户端与网络媒体服务器进行通信,这样,不需要从网络媒体服务器向下的网络设备支持组播报文复制,因此,避免了对网络媒体服务器向下的网络设备的组播报文复制的要求;同时,DHCP设备根据获取的位置信息和存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器,当网络上存在多个网络媒体服务器时, DHCP设备可以为客户端确定位置较近的,且负载较小的 [0108] With the above-described embodiment, a network device determines the DHCP server in communication with the media client, and the network address and port information of the media server notifies the gateway, then the gateway does not receive Digital Living Network Alliance (DLNA) client sends in the case of triggering a request for authentication of the gateway, the media server to the network initiates an authentication process; after the successful authentication, network media server returns specific information, the last notification to the gateway network media server information to the client so that the client communicate, so, do not need network support devices and multicast replication downwardly from the network media server and network media server, thereby avoiding the requirement for the multicast network media server downwardly by copying the network device; while , location information of the DHCP apparatus in accordance with the load and store the obtained network information media server, the media server determines the network in communication with the client, when a plurality of servers exists on the network media networks, DHCP device may determine a position close to the client and a smaller load 络媒体服务器,以便对网络媒体服务器进行负载均衡。 Network media server for load balancing of network media server.

[0109] 本实施例提供另一种基于DHCP的发现网络媒体服务器的方法,该方法的执行主体为网关,如图2所示,可以包括: [0109] The present embodiment provides another network media DHCP based server discovery method, the method of execution subject gateway 2 may include:

[0110] 201、网关向DHCP设备发送地址分配请求,以便DHCP设备根据地址分配请求确定与客户端进行通信的网络媒体服务器; [0110] 201, the gateway sends an address request to the DHCP dispensing device, so that the DHCP request determining a network device in communication with the media server according to the client address assignment;

[0111] 202、接收DHCP设备发送的地址分配响应,地址分配响应包括DHCP设备确定的网络媒体服务器的地址; [0111] 202, the receiving device sends a DHCP address assignment response, the address assignment response to the address DHCP server device includes a network media determined;

[0112] 203、网关在没有收到数字生活网络联盟DLNA客户端发送的触发网关进行认证的请求的情况下,向确定的网络媒体服务器发送认证请求。 [0112] 203, the gateway without receiving the trigger gateway Digital Living Network Alliance DLNA client sends a request to authenticate sends an authentication request to determine the network media server.

[0113] 204、在通过确定的网络媒体服务器认证后,接收确定的网络媒体服务器发送的确定的网络媒体服务器相关信息; [0113] 204, the media server through the network after the authentication determination, the determined network received the media server sends the media server determined network related information;

[0114] 205、向客户端发送确定的网络媒体服务器相关信息,以便客户端与确定的网络媒体服务器进行通信。 [0114] 205, network media server transmits the determined information to the client so that the client communicates with the media server determined network.

[0115] 采用上述方案后,DHCP设备确定与客户端进行通信的网络媒体服务器,并把网络媒体服务器的地址和端口信息通知给网关,然后,网关在没有收到数字生活网络联盟DLNA 客户端发送的触发网关进行认证的请求的情况下,向该网络媒体服务器发起认证过程;在认证成功之后,网络媒体服务器返回具体的相关信息,最后网关向客户端通知上述网络媒体服务器相关信息,以便客户端与网络媒体服务器进行通信,这样,不需要从网络媒体服务器向下的网络设备支持组播报文复制,因此,避免了对网络媒体服务器向下的网络设备的组播报文复制的要求;同时,DHCP设备根据获取的位置信息和存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器,当网络上存在多个网络媒体服务器时, DHCP设备可以为客户端确定位置较近的,且负载较小的 [0115] With the above-described embodiment, a network device determines the DHCP server in communication with the media client, and the network address and port information of the media server notifies the gateway, then the gateway does not receive Digital Living Network Alliance (DLNA) client sends in the case of triggering a request for authentication of the gateway, the media server to the network initiates an authentication process; after the successful authentication, network media server returns specific information, the last notification to the gateway network media server information to the client so that the client communicate, so, do not need network support devices and multicast replication downwardly from the network media server and network media server, thereby avoiding the requirement for the multicast network media server downwardly by copying the network device; while , location information of the DHCP apparatus in accordance with the load and store the obtained network information media server, the media server determines the network in communication with the client, when a plurality of servers exists on the network media networks, DHCP device may determine a position close to the client and a smaller load 络媒体服务器,以便对网络媒体服务器进行负载均衡。 Network media server for load balancing of network media server.

[0116]网络媒体服务器可以但不限于为:DLNA服务器或其他基于HTTP (HTTP-Hypertext transfer protocol,超文本传输协议)的服务器,客户端也可以为与网络媒体服务器向对应的客户端。 [0116] network media server may be but are not limited to: DLNA server-based or other HTTP (HTTP-Hypertext transfer protocol, Hypertext Transfer Protocol) server, the client may be a network media server to the corresponding client. 下面提供的实施例均以网络媒体服务器为DLNA服务器,且客户端为DLNA客户端为例进行说明。 The following embodiments are provided as a DLNA media server, network server, and the client as an example will be described as a DLNA client.

[0117] 本实施例提供另一种基于DHCP的发现网络媒体服务器的方法,该方法是对图1和图2所示的方法的进一步扩展,其中,DHCP设备可以为:DHCP中继设备或DHCP服务器,本实施例以DHCP设备为DHCP中继设备为例进行说明。 [0117] This embodiment provides another method for a DHCP based server discovery network media, the method is an extension of the method illustrated in FIGS. 1 and 2, wherein, the device may be a DHCP: DHCP or DHCP relay device server, DHCP apparatus in the present embodiment will be described as an example of DHCP relay device. 为了使更容易理解本实施例,如图3所示,提供本实施例的基于DHCP的发现网络媒体服务器的方法的数据交互图。 In order to make easier to understand the present embodiment, as shown in FIG. 3, FIG provide this data exchange network media DHCP based server discovery method according to an embodiment.

[0118] 如图4所示,还提供本实施例的基于DHCP的发现网络媒体服务器的方法流程图。 [0118] As shown in FIG 4, this flowchart further provides a DHCP based network media server discovery method according to the embodiment.

[0119] 具体的,如图4所示,本实施例具体可以包括: [0119] Specifically, as shown in Example 4 of the present embodiment may specifically include:

[0120] 401、网关向DHCP中继设备发送地址分配请求。 [0120] 401, the gateway device allocation request sent to the DHCP relay address.

[0121] 402、DHCP中继设备接收网关发送的地址分配请求。 [0121] 402, DHCP relay device receives the address allocation request sent by the gateway.

[0122] DLNA客户端在通过网关与网络进行通信之前(可以为但不限于DLNA客户端),网关需要一个IP地址,因此,DHCP中继设备接收并向DHCP服务器转发网关发送的地址分配请求, 以便DHCP服务器为网关分配IP地址。 [0122] Before DLNA client communicates with the network through the gateway (which may be but not limited to the DLNA client), the gateway needs an IP address, therefore, DHCP relay device receives and forwards the DHCP server address assignment request transmitted from the gateway, DHCP server to assign IP addresses to the gateway.

[0123] 进一步的,地址分配请求可以但不限于:为DHCP发现报文或DHCP请求报文。 [0123] Further, the address assignment request may be, but are not limited to: a DHCP discovery packet or a DHCP request packet.

[0124] 403、DHCP中继设备添加option82到地址分配请求中,并将添加有option82的地址分配请求发送至DHCP服务器,以便DHCP服务器为网关分配用于通信的地址(即IP地址), option82可以包括位置信息。 [0124] 403, DHCP relay device to add option82 address allocation request, and added with the address allocation option82 request to the DHCP server to the DHCP server for the address (i.e., IP address) for communications gateway allocates, can option82 including location information.

[0125] 本实施例对DHCP服务器为网关分配地址的方法不作限定,为本领域技术人员熟知的技术,在此不再赘述。 The method of allocating an address to the gateway DHCP server [0125] The present embodiment is not limited, and well known to those skilled in the art, not described herein again.

[0126] 本实施例对为网关分配IP地址的方法不作限定,为本领域技术人员熟知的技术, 且可以根据实际需要进行设定,在此不再赘述。 [0126] This embodiment of the method of allocating an IP address to the gateway is not limited, and well known to those skilled in the art, and may be set according to actual needs, not described herein again.

[0127] 404、DHCP中继设备根据DHCP设备获取的网关位置信息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器,并接收DHCP服务器发送的地址分配响应。 [0127] 404, DHCP relay device according to the network media gateway server load information and the location information acquired from the device DHCP DHCP device stored in the media server determining a network to communicate with the client, the DHCP server transmits and receives the address assignment response.

[0128] 地址分配响应可以但不限于包括:DHCP服务器为网关分配的用于通信的IP地址。 [0128] address assignment response may include but are not limited to: DHCP server gateway allocates an IP address for communication. [0129] 进一步的,DHCP中继设备可以根据DHCP中继设备上接收地址分配请求的第一端口的端口号确定网关位置信息,其中,网关位置信息包括第一端口的端口号,或,网关位置信息包括第一端口的端口号和第一端口所在的单板的单板号,或,网关位置信息包括第一端口的端口号、第一端口所在的单板的单板号和单板所在的框的框号。 [0129] Further, the gateway DHCP relay device location information may be determined based on the port number of the first port receives an address assignment request on the DHCP relay device, wherein the gateway comprises a location information of a first port of the port number, or the gateway location information includes a port number and port number of the first card board where a first port, or a port number of the gateway location information comprises a first port, the first port number where the board and the board where the board frame number box.

[0130] 作为本实施例的一种实施方式,DHCP中继设备还可以将获取到的网关位置信息添加到相应的option82中。 [0130] As an embodiment according to the present embodiment Currently, DHCP relay device may also be a gateway to acquire position information added to the corresponding in option82.

[0131] 作为本实施例的一种实施方式,DHCP中继设备根据获取的网关位置信息和存储的网络媒体服务器负载信息,确定与DLNA客户端进行通信的网络媒体服务器的方法(即可以称为DLNA服务器,以下实施例均以DLNA服务器为例进行说明)可以为但不限于:DHCP中继设备获取距离网关位置较近,且负载较小的DLNA服务器。 [0131] As an embodiment according to the present embodiment Currently, DHCP relay device according to the load information and the location information stored in the gateway web server acquired media, network media server determining method of communication with the DLNA client (i.e., may be referred to DLNA server, the following examples are DLNA server as an example) may be, but are not limited to: DHCP relay device acquires from the position near the gateway, and a small load DLNA server.

[0132] DHCP中继设备可以代替DLNA客户端并根据获取的DLNA客户端的地址和存储的网络媒体服务器负载信息,确定与DLNA客户端进行通信的DLNA服务器。 [0132] DHCP relay device can replace the DLNA client and the media server according to the network load information acquired DLNA client terminal address and stored for determining the DLNA server in communication with the DLNA client. 这样,与现有技术中的DLNA客户端确定DLNA服务器相比,规避了DLNA服务器需要通过其向下的网络设备向DLNA客户端广播DLNA服务器可以提供的服务以及其他信息等,而导致对该网络设备的要求较高的问题。 Thus, the prior art determined DLNA client compared DLNA server, avoiding the need to service the DLNA server its downward DLNA client device to the network broadcast DLNA server can provide additional information and the like, resulting in the network demanding equipment problems. 同时,当系统中存在至少一个DLNA服务器时,DHCP中继设备可以根据DLNA服务器的负载信息,为DLNA客户端确定一个负载较小的DLNA服务器,使得至少一个DLNA服务器的负载较均衡。 Meanwhile, when the presence of at least one of the DLNA server system, the DHCP relay device according to the DLNA server load information, to determine a DLNA client smaller DLNA server load, such that the at least one load is more balanced DLNA server.

[0133] 本实施例对获取DLNA服务器的方法不作限定,可以根据实际需要进行设定,在此不再赘述。 [0133] Examples of the method for obtaining the present embodiment is not limited in the DLNA server, can be set according to actual needs, not described herein again.

[0134] 405、DHCP中继设备将确定的网络媒体服务器的地址添加到地址分配响应中,并向网关发送添加有确定的网络媒体服务器的地址的地址分配响应。 [0134] 405, the address of the DHCP relay device determines the media server to the network address assignment response, the address is added to the gateway sends the determined network address allocation in response to the media server.

[0135] 此时,地址分配响应还可以包括:确定的网络媒体服务器的地址和为网关分配的用于通信的IP地址,即DHCP中继设备将基于DHCP获取到的网关的地址发送至网关。 [0135] In this case, the address assignment response may further include: determining the network address of the media server and the gateway allocated IP address for communication, i.e., DHCP relay device sends to the gateway based on the acquired address of the DHCP gateway.

[0136] 网络媒体服务器的地址可以但不限于包括:网络媒体服务器的网际IP地址,或,网络媒体服务器的地址包括网络媒体服务器的网际IP地址和网络媒体服务器上与客户端进行通信的端口的端口号。 [0136] address of the network media server may be, but is not limited to comprising: an Internet IP address of the network media server, or address of the network media server on a network including a media server's Internet IP address and network media server port for communication with the client The port number.

[0137] 进一步的,确定的DLNA服务器地址可以被添加到DHCP ACK消息中一同被发送至网关,也可以与其他消息一起发送至网关。 [0137] Further, the determined DLNA server address may be added to the DHCP ACK message is sent to the gateway together, may be transmitted to the gateway along with other messages. 其中,DHCP ACK消息已在上述说明书中介绍过,在此不再赘述。 Wherein, DHCP ACK message has been introduced in the above description, and are not repeated herein.

[0138] 本实施例对向网关发送确定的网络媒体服务器信息的方法不作限定,可以根据实际需要进行设定,在此不再赘述。 [0138] The method of the present embodiment of the network media server transmits the determined information to the gateway is not limited, and can be set according to actual needs, not described herein again.

[0139] 进一步的,接收到的DHCP服务器发送的地址分配响应中可能被添加了〇Pti〇n82, 在DHCP中继设备向网关发送地址分配响应之前删除地址分配响应中的〇ption82,S卩DHCP中继设备向网关发送的地址分配响应中不包含〇ption82。 [0139] Further, the address of the DHCP server transmits the received assignment response 〇Pti〇n82 may be added, deleted assigned address assignment response 〇ption82 response prior to sending the DHCP relay gateway address, S DHCP Jie address of the relay device sends the response to the gateway does not contain 〇ption82 distribution.

[0140] 406、网关在没有收到数字生活网络联盟DLNA客户端发送的触发网关进行认证的请求的情况下,向确定的网络媒体服务器发送认证请求。 [0140] 406, the gateway without receiving the trigger gateway Digital Living Network Alliance DLNA client sends a request to authenticate sends an authentication request to determine the network media server.

[0141] 407、在通过确定的网络媒体服务器认证后,接收确定的网络媒体服务器发送的确定的网络媒体服务器相关信息。 [0141] 407, the media server through the network after the authentication determination, the determined network received the media server sends the media server determined network related information.

[0142] 本实施例对网络媒体服务器相关信息包含的内容不作限定,可以根据实际需要进行设定,例如,可以包括网络媒体服务器可以提供的业务等,在此不再赘述。 [0142] Example embodiment of the present web content related information included in the media server is not limited, and may be set according to actual needs, for example, may include both traffic and other network media server can provide, not described herein again.

[0143] 本实施例对网络媒体服务器对网关进行认证的方法不作限定,为本领域技术人员熟知的技术,在此不再赘述。 [0143] This embodiment of the method of network media gateway server authentication is not limited, and well known to those skilled in the art, not described herein again.

[0144] 40S、网关向DLNA客户端发送确定的网络媒体服务器相关信息,以便DLNA客户端与确定的网络媒体服务器进行通信。 [0144] 40S, network media gateway server transmits the determined information to the DLNA client, the DLNA client to communicate with the media server determined network.

[0145] 进一步的,向DLNA客户端发送确定的网络媒体服务器相关信息的方法可以包括: [0145] Further, the method of network media server transmits the determined information related to the DLNA client may include:

[0146] 向DLNA客户端组播发送确定的网络媒体服务器相关信息;或者, [0146] transmitted to the determined multicast network DLNA media server, client-related information; or

[0147]在接收到请求消息后,向发送请求消息的DLNA客户端单播发送确定的网络媒体服务器相关fe息。 [0147] Upon receiving the request message, DLNA client request message to the sender unicast network media server transmits the determined information related to fe.

[0148] 其中,请求消息可以包括但不限于:SSDP m-search消息(SSDP m-查询消息)等,其中,SSDP m-search消息是在SSDP中定义的。 [0148] wherein the request message may include but are not limited to: SSDP m-search message (message query M- SSDP), etc., wherein, SSDP m-search message in SSDP is defined.

[0149] 本实施例对网关向DLNA客户端发送确定的网络媒体服务器相关信息的方法不作限定,可以根据实际需要进行设定,在此不再赘述。 [0149] Examples of the method of the present embodiment network media gateway server transmits the determined information to the DLNA client is not limited, and can be set according to actual needs, not described herein again.

[0150]本实施例对DLNA客户端与确定的网络媒体服务器进行通信的方法不作限定,为本领域技术人员熟知的技术,且可以根据实际需要进行设定,在此不再赘述。 [0150] Examples of the method of the present embodiment DLNA client communicating with a media server determined network is not limited, and well known to those skilled in the art, and may be set according to actual needs, not described herein again.

[0151] 采用上述方案后,DHCP设备确定与DLNA客户端进行通信的网络媒体服务器(即DLNA服务器),并把DLNA服务器的地址和端口信息通知给网关,然后,网关在没有收到数字生活网络联盟DLNA客户端发送的触发网关进行认证的请求的情况下,向该DLNA服务器发起认证过程;在认证成功之后,DLNA服务器返回具体的相关信息(如Location,USN等),最后网关向DLNA客户端通知上述网络媒体服务器相关信息,以便DLNA客户端与DLNA服务器进行通信,这样,不需要从DLNA服务器向下的网络设备支持组播报文复制,因此,避免了对DLNA服务器向下的网络设备的组播报文复制的要求;同时,DHCP设备根据获取的位置信息和存储的DLNA服务器负载信息,确定与DLNA客户端进行通信的DLNA服务器,当网络上存在多个DLNA服务器时,DHCP设备可以为DLNA客户端确定位置较近的,且负载较小的DLNA服务 After [0151] the above embodiment, the DHCP communication device determines a network media server (DLNA server) with the DLNA client, and the address and port information of the DLNA server notifies the gateway, then the gateway does not receive a Digital Living Network the case of trigger gateway Alliance DLNA client sends a request to authenticate, to which DLNA server initiates an authentication process; after the successful authentication, DLNA server returns specific information (such as Location, USN, etc.), and finally a gateway to the DLNA client the media server notifies said network related information to the DLNA client communicates this way, no multicast packet is copied from the DLNA server downwardly network device supports a DLNA server group, thus avoiding the downward DLNA server network device multicast packets required replication; simultaneously, the DHCP server communications device in accordance with DLNA DLNA server load information acquired by the location information and the stored, determined with the DLNA client, when a plurality of DLNA servers exist on networks, DHCP device may be DLNA client determines the location closer and smaller load DLNA service 器,以便对DLNA服务器进行负载均衡。 Is, for load balancing DLNA server.

[0152] 本实施例提供另一种基于DHCP的发现网络媒体服务器的方法,该方法是对图1和图2所示的方法的进一步扩展,且该方法的执行主体为DHCP服务器。 [0152] The present embodiment provides another DHCP-discover network-based media server, the method is an extension of the method illustrated in FIGS. 1 and 2, the main body and performs the process for the DHCP server.

[0153] 为了使更容易理解本实施例,如图5所示,提供本实施例的基于DHCP的发现网络媒体服务器的方法的数据交互图。 [0153] In order to make easier understanding of the present embodiment, as shown in Figure 5, a method based on the present discovery DHCP server network media data interaction diagram of the embodiment.

[0154] 如图6所示,还提供本实施例的基于DHCP的发现网络媒体服务器的方法流程图。 As shown in [0154] FIG 6, this flowchart further provides a DHCP based network media server discovery method according to the embodiment. [0155] 如图6所示,可以包括: [0155] As shown in FIG. 6, comprising:

[0156] 601、01«^服务器接收01«^中继设备发送的添加了〇的1〇1182的第一地址分配请求。 [0156] 601,01 «^ server 01 receives the« ^ adds the relay device transmits a first address assignment request 1〇1182 of the square. [0157] option82可以包含:网关位置信息。 [0157] option82 may comprise: a gateway location information.

[0158] 第一地址分配请求可以但不限于包括:网关的网关位置信息。 [0158] The first address assignment request may include but are not limited to: the gateway location information to the gateway.

[0159] 网关位置信息可以但不限于包括:DHCP中继设备接收网关发送的第二地址分配请求的第一端口的端口号;或, [0159] gateway location information may include but is not limited to: a port number of the first port of the second relay device receives a DHCP address allocation request sent by the gateway; or,

[0160] 网关位置信息可以但不限于包括:DHCP中继设备接收网关发送的第二地址分配请求的第一端口的端口号和第一端口所在的单板的单板号;或, [0160] gateway location information may include but is not limited to: a second relay device receives a DHCP address allocation request sent by the gateway port of the first port number and the port where the first card board number; or,

[0161] 网关位置信息可以但不限于包括:DHCP中继设备接收网关发送的第二地址分配请求的第一端口的端口号、第一端口所在的单板的单板号和单板所在的框的框号。 [0161] gateway location information may include but is not limited to: a port number of the first port of the second relay device receives a DHCP address assignment request frame sent by the gateway, the first port number of the board where the board and where the board the frame number.

[0162] 其中,第二地址分配请求可以但不限于为网关发送的DHCP发现报文,第一地址分配请求可以但不限于为DHCP中继设备收到网关发送的DHCP发现报文后,根据DHCP获得的、 携带有选项0ption82的DHCP发现报文; After [0162] wherein the second address allocation request can be sent to the gateway, but not limited to a DHCP discovery packet, the first address assignment request can be but is not limited to the gateway receives a DHCP relay device transmits a DHCP discover packet, in accordance with DHCP obtained carrying options 0ption82 the DHCP discovery packet;

[0163] 或者, [0163] Alternatively,

[0164] 其中,第二地址分配请求可以但不限于为网关发送的DHCP请求报文,第一地址分配请求为DHCP中继设备收到网关发送的DHCP请求报文后,根据DHCP获得的、携带有选项0ption82的DHCP请求报文。 [0164] wherein the second address allocation request can be but is not limited to DHCP request message sent by the gateway, the first address allocation request to the DHCP relay receives the DHCP gateway sends a request message, in accordance with DHCP obtained, carrying there are options 0ption82 DHCP request packet.

[0165] 进一步的,为了使DHCP服务器为网关分配IP地址,网关向DHCP中继设备发送地址分配请求,再由DHCP中继设备将option82添加到该地址分配请求中后发送至DHCP服务器。 [0165] Further, in order to enable the DHCP server to assign an IP address to the gateway, the gateway sends an address request to the DHCP relay agent dispensing device, and then by the DHCP relay device option82 added to the address allocation request sent to the DHCP server. [0166] 602、DHCP服务器根据DHCP服务器获取的网关位置信息和DHCP服务器中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器,并为网关分配用于通信的IP地址。 [0166] 602, DHCP server load according to the gateway server obtains the location information of the DHCP server and the DHCP server information stored in the network media, the media server determines the network in communication with the client, and assign an IP address for communication to the gateway.

[0167] 进一步的,DHCP设备将基于DHCP获取到的网关的地址发送至网关。 [0167] Further Currently, DHCP sends to the gateway device based on the acquired address of the DHCP gateway.

[0168] DHCP服务器不仅可以为网关分配IP地址,而且还可以代替DLNA客户端根据从op ti on82中获取的网关位置信息和存储的网络媒体服务器负载信息,确定与DLNA客户端进行通信的DLNA服务器。 [0168] DHCP server only allocates IP addresses to the gateway, but also can place the DLNA client according to the obtained from the op ti on82 gateway location information stored in the network media server load information, to determine for DLNA server in communication with the DLNA client . 这样,与现有技术中的DLNA客户端确定DLNA服务器相比,规避了DLNA 服务器需要通过其向下的网络设备向DLNA客户端广播DLNA服务器可以提供的服务以及其他信息等,而导致对该网络设备的要求较高的问题。 Thus, the prior art determined DLNA client compared DLNA server, avoiding the need to service the DLNA server its downward DLNA client device to the network broadcast DLNA server can provide additional information and the like, resulting in the network demanding equipment problems. 同时,当系统中存在至少一个DLNA服务器时,DHCP中继设备可以根据DLNA服务器的负载信息,为DLNA客户端确定一个负载较小的DLNA服务器,使得至少一个DLNA服务器的负载较均衡。 Meanwhile, when the presence of at least one of the DLNA server system, the DHCP relay device according to the DLNA server load information, to determine a DLNA client smaller DLNA server load, such that the at least one load is more balanced DLNA server.

[0169] 本实施例对为网关分配IP地址的方法不作限定,为本领域技术人员熟知的技术, 且可以根据实际需要进行设定,在此不再赘述。 [0169] This embodiment of the method of allocating an IP address to the gateway is not limited, and well known to those skilled in the art, and may be set according to actual needs, are not repeated here.

[0170] 603、DHCP服务器向DHCP中继设备发送地址分配响应。 [0170] 603, DHCP server assigns a response to the DHCP relay device transmits address.

[0171] 地址分配响应可以但不限于包括:确定的网络媒体服务器的地址和为网关分配的用于通信的IP地址,以便DHCP中继设备向网关发送地址分配响应。 [0171] address assignment response may include but are not limited to: determining the network address of the media server and the gateway allocated IP address for communication, so that the DHCP relay device transmits an address assignment response to the gateway.

[0172] 进一步的,网络媒体服务器的地址可以但不限于包括:网络媒体服务器的网际IP 地址,或,网络媒体服务器的地址包括网络媒体服务器的网际IP地址和网络媒体服务器上与客户端进行通信的端口的端口号。 [0172] Further, the address of the network media server may be, but is not limited to comprising: an Internet IP address of the network media server, or address of the network media server on a network including a media server's Internet IP address and network media server communicates with the client the number of the port.

[0173] 604、DHCP中继设备相网关发送地址分配响应。 [0173] 604, DHCP relay apparatus transmits an address assignment response gateway.

[0174] 605、网关在没有收到数字生活网络联盟DLNA客户端发送的触发网关进行认证的请求的情况下,向确定的网络媒体服务器发送认证请求。 [0174] 605, the gateway without receiving the trigger gateway Digital Living Network Alliance DLNA client sends a request to authenticate sends an authentication request to determine the network media server.

[0175] 606、在通过确定的网络媒体服务器认证后,接收确定的网络媒体服务器发送的确定的网络媒体服务器相关信息。 [0175] 606, the media server through the network after the authentication determination, the determined network received the media server sends the media server determined network related information.

[0176] 607、网关向DLNA客户端发送确定的网络媒体服务器相关信息,以便DLNA客户端与确定的网络媒体服务器进行通信。 [0176] 607, network media gateway server transmits the determined information to the DLNA client, the DLNA client to communicate with the media server determined network.

[0177] 本实施例各步骤的具体实施方式,与图5所示的实施例的实施方式类似,在此不再赘述。 [0177] DETAILED embodiment of the present embodiment each step of the embodiment, the implementation of the embodiment shown in FIG. 5 is similar to, and is not repeated herein.

[0178] 采用上述方案后,DHCP设备确定与DLNA客户端进行通信的网络媒体服务器(SP DLNA服务器),并把DLNA服务器的地址和端口信息通知给网关,然后,网关在没有收到数字生活网络联盟DLNA客户端发送的触发网关进行认证的请求的情况下,向该DLNA服务器发起认证过程;在认证成功之后,DLNA服务器返回具体的相关信息(如Location,USN等),最后网关向DLNA客户端通知上述网络媒体服务器相关信息,以便DLNA客户端与DLNA服务器进行通信,这样,不需要从DLNA服务器向下的网络设备支持组播报文复制,因此,避免了对DLNA服务器向下的网络设备的组播报文复制的要求;同时,DHCP设备根据获取的位置信息和存储的DLNA服务器负载信息,确定与DLNA客户端进行通信的DLNA服务器,当网络上存在多个DLNA服务器时,DHCP设备可以为DLNA客户端确定位置较近的,且负载较小的DLNA服务 After [0178] the above embodiment, the DHCP communication device determines a network media server (the SP DLNA server) with the DLNA client, and the address and port information of the DLNA server notifies the gateway, then the gateway does not receive a Digital Living Network the case of trigger gateway Alliance DLNA client sends a request to authenticate, to which DLNA server initiates an authentication process; after the successful authentication, DLNA server returns specific information (such as Location, USN, etc.), and finally a gateway to the DLNA client the media server notifies said network related information to the DLNA client communicates this way, no multicast packet is copied from the DLNA server downwardly network device supports a DLNA server group, thus avoiding the downward DLNA server network device multicast packets required replication; simultaneously, the DHCP server communications device in accordance with DLNA DLNA server load information acquired by the location information and the stored, determined with the DLNA client, when a plurality of DLNA servers exist on networks, DHCP device may be DLNA client determines the location closer and smaller load DLNA service 器,以便对DLNA服务器进行负载均衡。 Is, for load balancing DLNA server.

[0179] 下面提供一些装置实施例,且提供的装置实施例与上述方法实施例相对应,且装置以及装置包含的接收器、确定器以及发送器等的实施方法与相应的方法实施例中记载的方法相同。 [0179] The following provide some device embodiments, the device and provided embodiment the method of Example corresponding to Example the above-described method embodiments, and the means and the receiver means comprises a determining unit and a transmitter or the like and a corresponding method described in the Examples the same method.

[0180] 本实施例提供一种DHCP设备,如图7所示,可以包括: [0180] The present embodiment provides a DHCP apparatus, as shown in FIG. 7, comprising:

[0181]处理器71,用于根据DHCP设备获取的网关位置信息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器; [0181] processor 71, according to the network load information for the media server and DHCP gateway device location information acquired DHCP device stored in the media server determining a network to communicate with the client;

[0182] 发送器72,用于向网关发送确定的网络媒体服务器的地址。 [0182] transmitter 72 for sending the determined network media server to the gateway address.

[0183] 采用上述方案后,确定器根据DHCP设备获取的网关位置信息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器,发送器向网关发送确定的网络媒体服务器的地址,然后,在没有收到数字生活网络联盟DLNA客户端发送的触发网关进行认证的请求的情况下,向该网络媒体服务器发起认证过程;在认证成功之后,网络媒体服务器返回具体的相关信息,最后网关向客户端通知上述网络媒体服务器相关信息,以便客户端与网络媒体服务器进行通信,这样,不需要从网络媒体服务器向下的网络设备支持组播报文复制,因此,避免了对网络媒体服务器向下的网络设备的组播报文复制的要求;同时,确定器根据获取的位置信息和存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器,当网络上存在多个网络媒 [0183] With the above-described embodiment, it is determined according to network media server load information to the gateway location information and the DHCP apparatus DHCP apparatus acquired stored, determining a network media server in communication with the client, the transmitter transmits determination to the gateway network media server address, and then, in the absence of receiving the trigger gateway DLNA client sends a request to the digital living network Alliance certification, the media server to the network initiates an authentication process; after the successful authentication, network media server returns the relevant specific information, and then notifies the client gateway media server said network related information, so that clients communicate with the network media server, so, do not need to copy the multicast packets from the network media server network equipment supports downwardly group, thus avoiding the network media server device downwardly network multicast packet replication requirements; the same time, determined according to the acquired network media server load and store the position information, the media server determining a network to communicate with the client, when present on the network a plurality of network media 服务器时,确定器可以为客户端确定位置较近的,且负载较小的网络媒体服务器,以便对网络媒体服务器进行负载均衡。 The server, the client may be determined to determine the position close to and a small load network media server for load balancing network media server.

[0184] 本实施例提供另一种DHCP设备,该DHCP设备是对图7所示的DHCP设备的进一步扩展,如图8所示,DHCP设备可以包括: [0184] The present embodiment provides another apparatus DHCP, the DHCP device DHCP is an extension of the apparatus shown in FIG. 7, 8, DHCP device may comprise:

[0185] 处理器81,用于根据DHCP设备获取的网关位置信息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器; [0185] processor 81, according to the network load information for the media server and DHCP gateway device location information acquired DHCP device stored in the media server determining a network to communicate with the client;

[0186] 发送器82,用于向网关发送确定的网络媒体服务器的地址。 [0186] transmitter 82 for sending the determined network media server to the gateway address.

[0187] 进一步的,DHCP设备为DHCP中继设备或DHCP服务器,其中,网络媒体服务器的地址包括网络媒体服务器的网际IP地址,或,网络媒体服务器的地址包括网络媒体服务器的网际IP地址和网络媒体服务器上与客户端进行通信的端口的端口号。 [0187] Further, the device is a DHCP or DHCP server DHCP relay device, wherein the network address of the media server includes the IP address of Internet network media server, or a network address of the media server and the network address comprises an internet IP network media server the port number of a port to communicate with clients on a media server.

[0188] 进一步的,若DHCP设备为DHCP中继设备,则DHCP设备还包括: [0188] Further, if the device is a DHCP relay device DHCP, the DHCP apparatus further comprising:

[0189] 接收器83,用于在DHCP设备根据DHCP设备获取的网关位置信息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器之前,接收网关发送的地址分配请求,地址分配请求为DHCP发现报文或DHCP请求报文; [0189] Receiver 83 for the device before the DHCP server according to the network load information media gateway device acquires position information of the DHCP and DHCP stored in the device, the media server determining a network to communicate with the client, the gateway receives the address assignment transmitted request, the address allocation request is a DHCP discovery message, or a DHCP request message;

[0190] 处理器81,还用于根据DHCP中继设备上接收地址分配请求的第一端口的端口号确定网关位置信息,其中,网关位置信息包括第一端口的端口号,或,网关位置信息包括第一端口的端口号和第一端口所在的单板的单板号,或,网关位置信息包括第一端口的端口号、 第一端口所在的单板的单板号和单板所在的框的框号。 [0190] processor 81, the gateway further configured to determine location information based on the port number of the first port receives an address assignment request on the DHCP relay device, wherein the gateway comprises a location information of a first port of the port number, or the gateway location include the port number and port number of the first board of the board where the first port, or a port number of the gateway location information comprises a first port, a first port located block board and the board where the board number the frame number.

[0191] 进一步的,若DHCP设备为DHCP服务器,则接收器83,还用于在DHCP设备根据DHCP设备获取的网关位置伯息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器之前,接收DHCP中继设备发送的第一地址分配请求,第一地址分配请求携带网关的网关位置信息,网关位置信息包括DHCP中继设备接收网关发送的第二地址分配请求的第一端口的端口号,或,网关位置信息包括DHCP中继设备接收网关发送的第二地址分配请求的第一端口的端口号和第一端口所在的单板的单板号,或,网关位置信息包括DHCP中继设备接收网关发送的第二地址分配请求的第一端口的端口号、第一端口所在的单板的单板号和单板所在的框的框号; [0191] Further, if the DHCP server as a DHCP apparatus, the receiver 83 is further configured DHCP server apparatus according to the network media device obtains load information of DHCP primary gateway location information stored in the device and DHCP, it is determined with the client before communication network media server, receiving a first address allocation request sent by the DHCP relay device, a first gateway address assignment request carries the location information of the gateway, the gateway location information comprises a second relay device receives a DHCP address allocation request sent by the gateway the first port of the port number, or the gateway location information comprises a second relay device receives a DHCP address allocation request sent by the gateway port of the first port number and port number of the first board of the board is located, or the position of gateway information includes a port number of the first port of the second relay device receives a DHCP address allocation request sent by the gateway, the first port of the board where the board and the board number of the frame where the frame number;

[0192] 其中,第二地址分配请求为网关发送的DHCP发现报文,第一地址分配请求为DHCP 中继设备收到网关发送的DHCP发现报文后,根据DHCP获得的、携带有选项0ption82的DHCP 发现报文; [0192] wherein the second address allocation request sent by the gateway DHCP discovery packet, the first address allocation request is sent by the gateway device receives the DHCP relay after the DHCP discovery message, in accordance with DHCP obtained, carrying the options 0ption82 DHCP discovery packet;

[0193] 或者, [0193] Alternatively,

[0194] 其中,第二地址分配请求为网关发送的DHCP请求报文,第一地址分配请求为DHCP 中继设备收到网关发送的DHCP请求报文后,根据DHCP获得的、携带有选项0ption82的DHCP 请求报文。 [0194] wherein the second address allocation request sent by the gateway DHCP request packet, the first address assignment request received is sent by the gateway DHCP relay after the DHCP request packet, in accordance with DHCP obtained, carrying the options 0ption82 DHCP request packet.

[0195] 进一步的,网络媒体服务器为数字生活网络联盟DLNA服务器或基于超文本传输协议HTTP的服务器;客户端为DLNA客户端; [0195] Further, network media server for the Digital Living Network Alliance DLNA server or Hypertext Transfer Protocol (HTTP) server; client as a DLNA client;

[0196] 发送器82,还用于将基于DHCP获取到的网关的地址发送至网关。 [0196] The transmitter 82, further configured to send to the gateway based on the acquired address of the DHCP gateway.

[0197] 采用上述方案后,确定器根据DHCP设备获取的网关位置信息和DHCP设备中存储的网络媒体服务器负载信息,确定与客户端进行通信的网络媒体服务器,发送器向网关发送确定的网络媒体服务器的地址,然后,在没有收到数字生活网络联盟DLNA客户端发送的触发网关进行认证的请求的情况下,向该DLNA服务器发起认证过程;在认证成功之后,DLNA服务器返回具体的相关信息(如L〇cati〇n,USN等),最后网关向DLNA客户端通知上述网络媒体服务器相关信息,以便DLNA客户端与DLNA服务器进行通信,这样,不需要从DLNA服务器向下的网络设备支持组播报文复制,因此,避免了对DLNA服务器向下的网络设备的组播报文复制的要求;同时,确定器根据获取的位置信息和存储的DLNA服务器负载信息,确定与DLNA客户端进行通信的DLNA服务器,当网络上存在多个DLNA服务器时,确 [0197] With the above-described embodiment, it is determined according to network media server load information to the gateway location information and the DHCP apparatus DHCP apparatus acquired stored, determining a network media server in communication with the client, the transmitter transmits determination to the gateway network media server address, and then, in the absence of receiving the trigger gateway DLNA client sends a request to the digital living network Alliance certification, the DLNA server to initiate the certification process; after the successful authentication, DLNA server returns specific information ( as L〇cati〇n, a USN, etc.), and finally the gateway notifies said network related information to the media server DLNA client, and the DLNA client to communicate DLNA server so that the server does not need downwardly from the DLNA network device supports multicast duplicate packets, thus obviating the group DLNA server downwardly network devices and multicast replication requirements; the same time, information determined according to load and store the position information acquired DLNA server, determines in communication with the DLNA client DLNA server, when a plurality of DLNA server present on the network, indeed 器可以为DLNA客户端确定位置较近的,且负载较小的DLNA服务器,以便对DLNA服务器进行负载均衡。 It may determine the position close to the DLNA client, and a small load DLNA server for DLNA server load balancing.

[0198] 本实施例提供一种网关,如图9所示,可以包括: [0198] The present embodiment provides a gateway, shown in Figure 9, may include:

[0199] 发送器91,用于向DHCP设备发送地址分配请求;在没有收到数字生活网络联盟DLNA客户端发送的触发网关进行认证的请求的情况下,向确定的网络媒体服务器发送认证请求;向DLNA客户端发送确定的网络媒体服务器相关信息,确定的网络媒体服务器相关信息用于响应注册请求; [0199] The transmitter 91, for requesting allocation of an address to the DHCP transmitting device; in the absence of a gateway receives a trigger Digital Living Network Alliance DLNA client sends a request to the authentication, send an authentication request to the determined media server network; network media server transmits the determined information to the DLNA client, the determined network related information for the media server in response to the registration request;

[0200] 接收器92,用于接收DHCP设备发送的地址分配响应,地址分配响应包括DHCP设备确定的网络媒体服务器的地址;在通过确定的网络媒体服务器认证后,接收确定的网络媒体服务器发送的确定的网络媒体服务器相关信息。 [0200] a receiver 92 for receiving a DHCP response sent by the address allocation, the address includes a network address allocation in response to a media server device DHCP determined; the media server through the network after the authentication determination, the determined network received the media server sends determine the network media server related information.

[0201] 进一步的,发送器91,具体用于向DLNA客户端组播发送确定的网络媒体服务器相关信息;或者,在接收到请求消息后,向发送请求消息的DLNA客户端单播发送确定的网络媒体服务器相关信息。 [0201] Further, the transmitter 91, specifically for network media server transmits the determined information to the DLNA client multicast; Alternatively, after receiving the request message, the request message sent to the DLNA client unicasts the determined network media server related information.

[0202] 进一步的,网络媒体服务器的地址包括网络媒体服务器的网际IP地址,或,网络媒体服务器的地址包括网络媒体服务器的网际IP地址和网络媒体服务器上与客户端进行通信的端口的端口号。 [0202] Further, the address of the network media server includes a network media server's Internet IP address, or address of the network media server on the Internet IP address and network media server includes a network media server port number of a port to communicate with the client .

[0203]进一步的,网络媒体服务器相关信息包括:确定的网络媒体服务器能够提供的业务。 [0203] Further, network media server related information comprises: determining a media server can provide web services.

[0204] 进一步的地址分配响应还包括:DHCP设备基于DHCP获取到的网关的地址。 [0204] A further address assignment response further comprises: based on DHCP DHCP acquired device address of the gateway.

[0205] 采用上述方案后,DHCP设备确定与DLNA客户端进行通信的网络媒体服务器(即DLNA服务器),并把DLNA服务器的地址和TCP端口信息通知给网关,然后,网关在没有收到数字生活网络联盟DLNA客户端发送的触发网关进行认证的请求的情况下,向该DLNA服务器发起认证过程;在认证成功之后,DLNA服务器返回具体的相关信息(如L〇cati〇n,USN等),最后发送器向DLNA客户端通知上述网络媒体服务器相关信息,以便DLNA客户端与DLNA服务器进行通信,这样,不需要从DLNA服务器向下的网络设备支持组播报文复制,因此,避免了对DLNA服务器向下的网络设备的组播报文复制的要求;同时,DHCP设备根据获取的位置信息和存储的DLNA服务器负载信息,确定与DLNA客户端进行通信的DLNA服务器,当网络上存在多个DLNA服务器时,DHCP设备可以为DLNA客户端确定位置较近的,且负载较小 After [0205] the above embodiment, the DHCP communication device determines a network media server (DLNA server) with the DLNA client, and the DLNA server address and TCP port information to the gateway, then the gateway does not receive a Digital Living gateway network Alliance case trigger DLNA client sends a request to the authentication, to the DLNA server initiates an authentication process; after the successful authentication, the DLNA server returns specific information (e.g. L〇cati〇n, a USN, etc.), and finally transmitting the media server notifies said network related information to the DLNA client, and the DLNA client to communicate DLNA server so that the network device does not need to support multicast packet replicated from the DLNA server downward, thus avoiding the DLNA server network device downwardly multicast packet replication requirements; the same time, the DHCP apparatus in accordance with the DLNA server load information acquired by the position information and stored, for determining the DLNA server in communication with the DLNA client, when there are multiple servers on the network DLNA when, the DHCP device may determine a position close to the DLNA client, and the load is small DLNA服务器,以便对DLNA服务器进行负载均衡。 DLNA server for load balancing on a DLNA server.

[0206] 本实施例提供一种基于DHCP的发现网络媒体服务器的系统,如图10所示,可以包括: [0206] The present embodiment provides a system for finding DHCP server based network media, shown in Figure 10, may include:

[0207] 装置实施例中提供的DHCP设备101和网关10 2。 DHCP gateway device 101 and provided in the Examples [0207] Embodiment 102 apparatus.

[0208] 本实施例中提供的DHCP设备101和网关102的实施方式与上述装置实施例中提供的DHCP设备101和网关102的实施方式相同,在此不再赘述。 [0208] DHCP embodiment and the gateway device 101 of the present embodiment provided in the embodiment 102 of the same embodiment of the apparatus 102 with the above embodiment DHCP gateway device 101 and provided in the Examples, which are not repeated herein.

[0209] 采用上述方案后,DHCP设备确定与DLNA客户端进行通信的网络媒体服务器(即DLNA服务器),并把DLNA服务器的地址和端口信息通知给网关,然后,网关在没有收到数字生活网络联盟DLNA客户端发送的触发网关进行认证的请求的情况下,向该DLNA服务器发起认证过程;在认证成功之后,DLNA服务器返回具体的相关信息(如L〇Cati〇n,USN等),最后网关向DLNA客户端通知上述网络媒体服务器相关信息,以便DLNA客户端与DLNA服务器进行通信,这样,不需要从DLNA服务器向下的网络设备支持组播报文复制,因此,避免了对DLNA服务器向下的网络设备的组播报文复制的要求;同时,DHCP设备根据获取的位置信息和存储的DLNA服务器负载信息,确定与DLNA客户端进行通信的DLNA服务器,当网络上存在多个DLNA服务器时,DHCP设备可以为DLNA客户端确定位置较近的,且负载较小的DLNA After [0209] the above embodiment, the DHCP communication device determines a network media server (DLNA server) with the DLNA client, and the address and port information of the DLNA server notifies the gateway, then the gateway does not receive a Digital Living Network the case of trigger gateway Alliance DLNA client sends a request to authenticate, to which DLNA server initiates an authentication process; after the successful authentication, DLNA server returns specific information (such as L〇Cati〇n, USN, etc.), and finally gateway the media server notifies said network related information to the DLNA client, and the DLNA client to communicate DLNA server so that the network device does not need to support multicast packet replicated from the DLNA server downwardly, thereby avoiding the down on a DLNA server At the same time, the DHCP apparatus in accordance with the position information and the load information stored in DLNA server acquired, for determining DLNA server in communication with the DLNA client, when there are a plurality DLNA server on the network; multicast packet replication requires a network device DHCP device may determine a position close to the DLNA client, and a small load DLNA 务器,以便对DLNA服务器进行负载均衡。 Service is to load balance DLNA server.

[0210] 通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。 [0210] By the above described embodiments, those skilled in the art may clearly understand that the present invention may be implemented by software plus necessary universal hardware implemented, also be implemented by hardware, but the former is preferred in many cases embodiments. 基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器,或者网络设备等)执行本发明各个实施例所述的方法。 Based on such understanding, the technical solutions of the present invention in essence or the part contributing to the prior art may be embodied in a software product out, in the storage medium may be readable, such as a floppy disk of the computer software product is stored and the like, a hard disk or optical disk, and include several instructions that enable a computer device (may be a personal computer, a server, or network device) to execute the methods according to embodiments of the present invention.

[0211]以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明掲露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。 [0211] The above are only specific embodiments of the present invention, but the scope of the present invention is not limited thereto, any skilled in the art in the art within the technical scope of the present invention kei exposed, changes may be easily thought of or alternatively, shall fall within the protection scope of the present invention. 因此,本发明的保护范围应所述以权利要求的保护范围为准。 Accordingly, the scope of the present invention should be in the scope of the claims and their equivalents.

Claims (10)

  1. 1. 一种基于DHCP的发现网络媒体服务器的方法,其特征在于,包括: 网关向DHCP设备发送地址分配请求; 接收所述DHCP设备发送的地址分配响应,所述地址分配响应包括所述DHCP设备确定的网络媒体服务器的地址; 网关在没有收到数字生活网络联盟DLNA客户端发送的触发网关进行认证的请求的情况下,向确定的网络媒体服务器发送认证请求; 在通过所述确定的网络媒体服务器认证后,接收所述确定的网络媒体服务器发送的所述确定的网络媒体服务器相关信息; 向所述DLNA客户端发送所述确定的网络媒体服务器相关信息,所述确定的网络媒体服务器相关信息用于响应注册请求。 1. A method of DHCP discover network-based media server, wherein, comprising: a gateway device transmits allocation request to the DHCP address; the receiving device sends a DHCP address assignment response, the DHCP address assignment response comprises the apparatus address of the network media server determined; gateway in a gateway without receiving a trigger DLNA client sends a request to a digital living network Alliance authentication, the network media server sends an authentication request to the determined; determined by the network media after the authentication server, the network media server receives the information related to the determined network media server sends determined; the DLNA client sends the determined network related information media server, the media server determined network related information in response to the registration request.
  2. 2. 根据权利要求1所述的方法,其特征在于,所述向所述DLNA客户端发送所述确定的网络媒体服务器相关信息包括: 向所述DLNA客户端组播发送所述确定的网络媒体服务器相关信息;或者, 在接收到请求消息后,向发送所述请求消息的DLNA客户端单播发送所述确定的网络媒体服务器相关信息。 2. The method according to claim 1, wherein the transmitting to the DLNA client network related information of the media server determining comprises: determining the transmission to the multicast client online media DLNA server related information; Alternatively, after receiving the request message, the DLNA client sending a request message to the end of the unicast transmission media server determined network related information.
  3. 3. 根据权利要求1或2所述的方法,其特征在于,所述网络媒体服务器的地址包括所述网络媒体服务器的网际IP地址,或,所述网络媒体服务器的地址包括所述网络媒体服务器的网际IP地址和所述网络媒体服务器上与所述客户端进行通信的端口的端口号。 3. The method of claim 1 or claim 2, wherein said network address comprises a media server to the Internet network IP address of the media server, or network address of the media server comprises a media server to the network the Internet and IP address of the media server on the network port number of a port to communicate with the client.
  4. 4. 根据权利要求1至3中任意一项所述的方法,其特征在于,所述网络媒体服务器相关信息包括:所述确定的网络媒体服务器能够提供的业务。 4. The method according to any one of claim 3, characterized in that the network media server related information comprises: determining a media server capable of providing network services.
  5. 5. 根据权利要求1至4中任意一项所述的方法,其特征在于,所述地址分配响应还包括: 所述DHCP设备基于DHCP获取到的所述网关的地址。 5. The method according to any one of claim 4, characterized in that said address assignment response further comprises: an address of the DHCP device based on the acquired DHCP gateway.
  6. 6.—种网关,其特征在于,包括: 发送器,用于向DHCP设备发送地址分配请求;在没有收到数字生活网络联盟DLNA客户端发送的触发网关进行认证的请求的情况下,向确定的网络媒体服务器发送认证请求;向所述DLNA客户端发送所述确定的网络媒体服务器相关信息,所述确定的网络媒体服务器相关信息用于响应注册请求; 接收器,用于接收所述DHCP设备发送的地址分配响应,所述地址分配响应包括所述DHCP设备确定的网络媒体服务器的地址;在通过所述确定的网络媒体服务器认证后,接收所述确定的网络媒体服务器发送的所述确定的网络媒体服务器相关信息。 6.- species gateway, characterized by, comprising: a transmitter device for transmitting the allocation request to the DHCP address; in the case of the gateway does not receive a trigger DLNA client sends a request to a Digital Living Network Alliance authentication, and to determine the the media server sends the authentication request to a network; sending the determination to the DLNA client server network media related information, the determined network related information for the media server in response to the registration request; a receiver for receiving the DHCP apparatus address assignment response sent, said address assignment response to the address of the DHCP server includes a network media device is determined; the media server through the network after the authentication of the determination, the determined network to receive the media server sends the determined network media server related information.
  7. 7. 根据权利要求6所述的网关,其特征在于,所述发送器,具体用于向所述DLNA客户端组播发送所述确定的网络媒体服务器相关信息;或者,在接收到请求消息后,向发送所述请求消息的DLNA客户端单播发送所述确定的网络媒体服务器相关信息。 7. The gateway according to claim 6, wherein said transmitter, network media server is configured to transmit the determined information related to the multicast DLNA client; Alternatively, after receiving the request message , DLNA client sending a request message to the end of the unicast transmission media server determined network related information.
  8. 8. 根据权利要求6或7所述的网关,其特征在于,所述网络媒体服务器的地址包括所述网络媒体服务器的网际IP地址,或,所述网络媒体服务器的地址包括所述网络媒体服务器的网际IP地址和所述网络媒体服务器上与所述客户端进行通信的端口的端口号。 Gateway according to claim 6 or claim 7, wherein said network address comprises a media server to the Internet network IP address of the media server, or network address of the media server comprises a media server to the network the Internet and IP address of the media server on the network port number of a port to communicate with the client.
  9. 9. 根据权利要求6至8中任意一项所述的网关,其特征在于,所述网络媒体服务器相关信息包括:所述确定的网络媒体服务器能够提供的业务。 Gateway according to claim 6 to 8 to any preceding claim, wherein said network media server related information comprises: determining a media server capable of providing network services.
  10. 10. 根据权利要求6至9中任意一项所述的网关,其特征在于,所述地址分配响应还包括:所述DHCP设备基于DHCP获取到的所述网关的地址。 10. The gateway of claims 6 to 9 in any preceding claim, wherein said address assignment response further comprises: an address of the DHCP device based on the acquired DHCP gateway.
CN 201310077792 2013-03-12 2013-03-12 Method and apparatus based on the discovery dhcp network media server CN104052826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310077792 CN104052826B (en) 2013-03-12 2013-03-12 Method and apparatus based on the discovery dhcp network media server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310077792 CN104052826B (en) 2013-03-12 2013-03-12 Method and apparatus based on the discovery dhcp network media server

Publications (2)

Publication Number Publication Date
CN104052826A true CN104052826A (en) 2014-09-17
CN104052826B true CN104052826B (en) 2017-09-05

Family

ID=51505177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310077792 CN104052826B (en) 2013-03-12 2013-03-12 Method and apparatus based on the discovery dhcp network media server

Country Status (1)

Country Link
CN (1) CN104052826B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9917746B2 (en) * 2014-11-04 2018-03-13 Futurewei Technologies, Inc. Adaptive allocation of server resources

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854336A (en) * 2009-03-31 2010-10-06 华为技术有限公司 Method, system and device for obtaining address of video transmission management server
CN102123065A (en) * 2010-12-29 2011-07-13 东软集团股份有限公司 Inter-home digital living network alliance (DLNA) equipment discovering and controlling method and device
CN102291628A (en) * 2011-08-11 2011-12-21 华为技术有限公司 Acquiring network information service server method, client apparatus and dhcp

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7954133B2 (en) * 2007-10-22 2011-05-31 Sony Ericsson Mobile Communications Ab Digital living network alliance (DLNA) enabled portable electronic devices, DLNA management consoles and related methods of operating DLNA enabled portable electronic devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854336A (en) * 2009-03-31 2010-10-06 华为技术有限公司 Method, system and device for obtaining address of video transmission management server
CN102123065A (en) * 2010-12-29 2011-07-13 东软集团股份有限公司 Inter-home digital living network alliance (DLNA) equipment discovering and controlling method and device
CN102291628A (en) * 2011-08-11 2011-12-21 华为技术有限公司 Acquiring network information service server method, client apparatus and dhcp

Also Published As

Publication number Publication date Type
CN104052826A (en) 2014-09-17 application

Similar Documents

Publication Publication Date Title
US20100135279A1 (en) Method and Arrangement for Remotely Controlling Multimedia Communication Across Local Networks
US20070280230A1 (en) Method and system for service discovery across a wide area network
US20090327496A1 (en) REMOTE ACCESS BETWEEN UPnP DEVICES
US20130091279A1 (en) Architecture for Virtualized Home IP Service Delivery
US20060106939A1 (en) Method and system for transmitting and receiving data using multicasting
US20070011301A1 (en) Provisioning relay and re-direction server for service implementation on generic customer premises equipment
CN1744612A (en) DHCP address allocation method
CN1949784A (en) IP address requesting method for DHCP client by DHCP repeater
CN101692674A (en) Method and equipment for double stack access
US20050108431A1 (en) Handover method in DHCPV4, handover apparatus and medium having instructions for performing the method
CN101056178A (en) A method and system for controlling the user network access right
US20130138822A1 (en) Method and system for establishing media channel based on relay
US20100281093A1 (en) Sharing Media Content Based on a Media Server
KR20070018196A (en) Method and apparatus for guaranteeing security on remote access to a local network
CN101895875A (en) Method and system of using gateway device to provide differentiated services in wireless network
US20090089431A1 (en) System and method for managing resources in access network
CN101888389A (en) Method and system for realizing uniform authentication of ICP union
CN101447879A (en) Charging method and access equipment therefor
CN101478493A (en) Method and device for NAT through communication
CN101656725A (en) Method for implementing safety access and access equipment
US20100281534A1 (en) Network-Based Digital Media Server
JP2004007671A (en) Device and method for connecting network apparatuses existing in home networks different from each other
CN101471966A (en) Method for preventing IP address from leakage
CN1859409A (en) Method and system for improving network dynamic host configuration DHCP safety
CN101800760A (en) Realization method and system for accessing data service

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01