[go: up one dir, main page]

CN106302321B - A kind of method and media controller for realizing service - Google Patents

A kind of method and media controller for realizing service Download PDF

Info

Publication number
CN106302321B
CN106302321B CN201510254179.8A CN201510254179A CN106302321B CN 106302321 B CN106302321 B CN 106302321B CN 201510254179 A CN201510254179 A CN 201510254179A CN 106302321 B CN106302321 B CN 106302321B
Authority
CN
China
Prior art keywords
pdu
lfu
target
service
collection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510254179.8A
Other languages
Chinese (zh)
Other versions
CN106302321A (en
Inventor
徐峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510254179.8A priority Critical patent/CN106302321B/en
Publication of CN106302321A publication Critical patent/CN106302321A/en
Application granted granted Critical
Publication of CN106302321B publication Critical patent/CN106302321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

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

Abstract

本发明实施例公开了一种提供服务的方法,用于提升服务实现的效率,节约设备成本。本发明实施例方法包括:媒体控制器根据媒体终端发送的服务请求,确定目标服务对应的目标虚拟设备单元VDU,所述目标服务为所述服务请求所请求的服务;所述媒体控制器根据预置的VDU和逻辑功能单元LFU的映射关系,查找所述目标VDU对应的目标LFU;所述媒体控制器根据预置的LFU和物理设备单元PDU集的映射关系,查找所述目标LFU对应的PDU集,所述PDU集中的PDU用于提供所述目标LFU,以实现所述目标媒体服务。本发明实施例还提供一种媒体控制器,用于提升服务实现的效率,节约设备成本。

The embodiment of the invention discloses a method for providing services, which is used to improve the efficiency of service realization and save equipment costs. The method in the embodiment of the present invention includes: the media controller determines the target virtual device unit VDU corresponding to the target service according to the service request sent by the media terminal, and the target service is the service requested by the service request; The mapping relationship between the preset VDU and the logical function unit LFU, and search for the target LFU corresponding to the target VDU; the media controller searches for the PDU corresponding to the target LFU according to the preset mapping relationship between the LFU and the physical device unit PDU set set, and the PDUs in the PDU set are used to provide the target LFU to realize the target media service. The embodiment of the present invention also provides a media controller, which is used to improve service realization efficiency and save equipment cost.

Description

一种实现服务的方法及媒体控制器A method for realizing service and media controller

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种实现服务的方法及媒体控制器。The invention relates to the technical field of communication, in particular to a method for realizing service and a media controller.

背景技术Background technique

随着网络接入、无线互联、数字媒体技术的发展,如何实现用户定制的媒体服务是一个重点的技术方向。With the development of network access, wireless interconnection, and digital media technology, how to realize user-customized media services is a key technical direction.

现有技术中,当用户订制媒体服务时,该媒体服务只能部署在一个媒体设备上,也就是说只能通过一个媒体设备实现该媒体服务,由于该媒体服务的实现要求提供相应的功能支持,因此该媒体设备必须具备提供该功能所需的功能资源。如图1-a中,数字移动网络联盟(Digital Living Network Alliance,DLNA)标准定义了数字媒体服务器(DigitalMedia Server,DMS)服务,实现该DMS服务要求提供解调(demod)功能、解复用(demux)功能、解码(decoder)功能、编码(encoder)功能和无损提取(remux)功能的支持,当该DMS服务部署在一个媒体设备上时,要求该媒体设备必须具备demod模块、demux模块、decoder模块、encoder模块和remux模块,以提供上述功能。In the prior art, when a user subscribes to a media service, the media service can only be deployed on one media device, that is, the media service can only be realized through one media device, because the realization of the media service requires the provision of corresponding functions Supported, so the media device must have the functional resources required to provide this functionality. As shown in Figure 1-a, the Digital Living Network Alliance (DLNA) standard defines a Digital Media Server (DMS) service, and the implementation of the DMS service requires demodulation (demod) function, demultiplexing ( demux) function, decoding (decoder) function, encoding (encoder) function and lossless extraction (remux) function support, when the DMS service is deployed on a media device, the media device must have demod module, demux module, decoder module, encoder module and remux module to provide the above functionality.

然而,在运用现有技术实现该媒体服务时存在如下缺陷:(1)当现有的媒体设备具备该功能资源时,该功能资源被该现有的媒体设备用于提供其他媒体服务,此时需要等待该现有的媒体设备完成其他服务以释放该功能资源,比如图1-b中的媒体设备将decoder模块用于提供数字媒体播放器(Digital Media Player,DMP)服务,此时需要等到该媒体设备完成该DMP服务之后,才能提供该DMS服务,影响媒体服务实现的效率;(2)当现有的媒体设备不具备该功能资源时,需要增加具有该功能资源的媒体设备,比如图1-c中的媒体设备1和媒体设备2中缺少实现该DMS服务所需的remux模块,此时需要增加具有该remux模块的媒体设备3,导致增加设备资产的投入。However, there are the following defects when using the existing technology to realize the media service: (1) When the existing media device has the functional resource, the functional resource is used by the existing media device to provide other media services. It is necessary to wait for the existing media device to complete other services to release the functional resources. For example, the media device in Figure 1-b uses the decoder module to provide digital media player (Digital Media Player, DMP) services. At this time, it is necessary to wait until the The DMS service can only be provided after the media device completes the DMP service, which affects the efficiency of media service implementation; (2) When the existing media device does not have this functional resource, it is necessary to add a media device with this functional resource, as shown in Figure 1 In -c, the media device 1 and media device 2 lack the remux module required to realize the DMS service. At this time, it is necessary to add the media device 3 with the remux module, resulting in an increase in investment in device assets.

发明内容Contents of the invention

本发明实施例提供了一种实现服务的方法及媒体控制器,用于提升服务实现的效率,节约设备成本。Embodiments of the present invention provide a service implementation method and a media controller, which are used to improve service implementation efficiency and save equipment costs.

本发明实施例第一方面提供了一种实现服务的方法,包括:The first aspect of the embodiment of the present invention provides a method for implementing a service, including:

媒体控制器根据媒体终端发送的服务请求,确定目标服务对应的目标虚拟设备单元VDU,所述目标服务为所述服务请求所请求的服务;The media controller determines the target virtual device unit VDU corresponding to the target service according to the service request sent by the media terminal, and the target service is the service requested by the service request;

所述媒体控制器根据预置的VDU和逻辑功能单元LFU的映射关系,查找所述目标VDU对应的目标LFU;The media controller searches for the target LFU corresponding to the target VDU according to the preset mapping relationship between the VDU and the logical function unit LFU;

所述媒体控制器根据预置的LFU和物理设备单元PDU集的映射关系,查找所述目标LFU对应的PDU集,所述PDU集中的PDU用于提供所述目标LFU,以实现所述目标媒体服务。The media controller searches for the PDU set corresponding to the target LFU according to the preset mapping relationship between the LFU and the physical equipment unit PDU set, and the PDUs in the PDU set are used to provide the target LFU to realize the target media Serve.

结合本发明实施例的第一方面,在本发明实施例第一方面的第一种实现方式中,当所述目标LFU包括第一LFU和第二LFU时,所述媒体控制器根据预置的LFU和PDU集的映射关系,查找所述目标LFU对应的PDU集包括:With reference to the first aspect of the embodiments of the present invention, in the first implementation manner of the first aspect of the embodiments of the present invention, when the target LFU includes the first LFU and the second LFU, the media controller according to the preset The mapping relationship between the LFU and the PDU set, and searching for the PDU set corresponding to the target LFU includes:

所述媒体控制器根据预置的LFU和PDU的映射关系,查找所述第一LFU对应的第一PDU集和所述第二LFU对应的第二PDU集;The media controller searches for the first PDU set corresponding to the first LFU and the second PDU set corresponding to the second LFU according to the preset mapping relationship between the LFU and the PDU;

将所述第一PDU集和所述第二PDU集按照预置规则组合,得到提供所述目标LFU的PDU集。combining the first PDU set and the second PDU set according to a preset rule to obtain a PDU set providing the target LFU.

结合本发明实施例的第一方面或第一方面的第一种实现方式,在本发明实施例第一方面的第二种实现方式中,在所述媒体控制器根据预置的LFU和物理设备单元PDU集的映射关系,查找所述目标LFU对应的PDU集之后,还包括:With reference to the first aspect of the embodiments of the present invention or the first implementation of the first aspect, in the second implementation of the first aspect of the embodiments of the present invention, the media controller according to the preset LFU and physical device The mapping relationship of the unit PDU set, after searching for the PDU set corresponding to the target LFU, also includes:

获取所述PDU集中各PDU的负荷值;Obtain the load value of each PDU in the PDU set;

根据所述PDU集中各PDU的负荷值,从所述PDU集中选取负荷值最小的第一PDU,所述第一PDU用于提供所述目标LFU,以实现所述目标服务。According to the load value of each PDU in the PDU set, select the first PDU with the smallest load value from the PDU set, and the first PDU is used to provide the target LFU to realize the target service.

结合本发明实施例的第一方面或第一方面的第一种实现方式或第一方面的第二种实现方式,在本发明实施例第一方面的第三种实现方式中,在从所述PDU集中选取负荷值最小的第一PDU之后,还包括:In combination with the first aspect of the embodiments of the present invention or the first implementation of the first aspect or the second implementation of the first aspect, in the third implementation of the first aspect of the embodiments of the present invention, from the After selecting the first PDU with the smallest load value in the PDU set, it also includes:

获取所述第一PDU发送的第一信息,所述第一信息用于指示所述第一PDU当前运行的状态;Acquire first information sent by the first PDU, where the first information is used to indicate the current running state of the first PDU;

当根据所述第一信息确定所述第一PDU运行异常时,从所述PDU集中选取第二PDU,所述第二PDU为所述PDU集中除所述第一PDU之外,负荷值最小的PDU,所述第二PDU用于提供所述目标LFU,以实现所述目标服务。When it is determined according to the first information that the first PDU is running abnormally, select a second PDU from the PDU set, and the second PDU is the one with the smallest load value except the first PDU in the PDU set PDU, the second PDU is used to provide the target LFU, so as to realize the target service.

结合本发明实施例的第一方面或第一方面的第一种实现方式或第一方面的第二种实现方式或第一方面的第三种实现方式,在本发明实施例第一方面的第四种实现方式中,在所述媒体控制器根据预置的LFU和PDU集的映射关系,确定提供所述目标LFU对应的PDU集之前,还包括:In combination with the first aspect or the first implementation of the first aspect or the second implementation of the first aspect or the third implementation of the first aspect of the embodiments of the present invention, in the first aspect of the first aspect of the embodiments of the present invention In the four implementation manners, before the media controller determines to provide the PDU set corresponding to the target LFU according to the preset mapping relationship between the LFU and the PDU set, it further includes:

创建LFU和PDU集的映射关系。Create the mapping relationship between LFU and PDU set.

结合本发明实施例第一方面的第四三种实现方式,在本发明实施例第一方面的第五种实现方式中,所述创建LFU与PDU集的映射关系包括:In combination with the fourth and third implementations of the first aspect of the embodiments of the present invention, in the fifth implementation of the first aspect of the embodiments of the present invention, the creation of the mapping relationship between the LFU and the PDU set includes:

接收所述PDU集中各PDU发送的第二信息,所述第二信息用于指示所述各PDU对应的LFU,receiving second information sent by each PDU in the PDU set, where the second information is used to indicate the LFU corresponding to each PDU,

当所述各PDU对应的LFU相同时,创建所述LFU与所述PDU集之间的映射关系。When the LFUs corresponding to the PDUs are the same, create a mapping relationship between the LFUs and the PDU set.

本发明实施例第二方面提供一种媒体控制器,包括:The second aspect of the embodiment of the present invention provides a media controller, including:

确定单元,用于根据媒体终端发送的服务请求,确定与目标服务对应的目标虚拟设备单元VDU,所述目标服务为所述服务请求所请求的服务;The determining unit is configured to determine a target virtual device unit VDU corresponding to a target service according to a service request sent by the media terminal, and the target service is the service requested by the service request;

第一查找单元,用于根据预置的VDU和逻辑功能单元LFU的映射关系,查找所述目标VDU对应的目标LFU;The first search unit is configured to search for the target LFU corresponding to the target VDU according to the preset mapping relationship between the VDU and the logical function unit LFU;

第二查找单元,用于根据预置的LFU和物理设备单元PDU集的映射关系,查找所述目标LFU对应的PDU集,所述PDU集中的PDU用于提供所述目标LFU,以实现所述目标媒体服务。The second search unit is configured to search for the PDU set corresponding to the target LFU according to the preset mapping relationship between the LFU and the physical equipment unit PDU set, and the PDUs in the PDU set are used to provide the target LFU, so as to realize the target media service.

结合本发明实施例的第二方面,在本发明实施例第二方面的第一种实现方式中,当所述目标LFU包括第一LFU和第二LFU时,所述第二查找单元具体用于:With reference to the second aspect of the embodiments of the present invention, in the first implementation manner of the second aspect of the embodiments of the present invention, when the target LFU includes the first LFU and the second LFU, the second search unit is specifically configured to :

所述媒体控制器根据预置的LFU和PDU集的映射关系,查找所述第一LFU对应的第一PDU集和所述第二LFU对应的第二PDU集;The media controller searches for the first PDU set corresponding to the first LFU and the second PDU set corresponding to the second LFU according to the preset mapping relationship between the LFU and the PDU set;

将所述第一PDU集和所述第二PDU集按照预置规则组合,得到提供所述目标LFU的PDU集。combining the first PDU set and the second PDU set according to a preset rule to obtain a PDU set providing the target LFU.

结合本发明实施例的第二方面或第二方面的第一种实现方式,在本发明实施例第二方面的第二种实现方式中,所述媒体控制器还包括第一获取单元和第一选取单元;With reference to the second aspect of the embodiment of the present invention or the first implementation manner of the second aspect, in the second implementation manner of the second aspect of the embodiment of the present invention, the media controller further includes a first acquiring unit and a first select unit;

所述第一获取单元,用于获取所述PDU集中各PDU的负荷值;The first obtaining unit is configured to obtain the load value of each PDU in the PDU set;

所述第一选取单元,用于根据所述PDU集中各PDU的负荷值,从所述PDU集中选取负荷值最小的第一PDU,所述第一PDU用于提供所述目标LFU,以实现所述目标服务。The first selection unit is configured to select the first PDU with the smallest load value from the PDU set according to the load value of each PDU in the PDU set, and the first PDU is used to provide the target LFU to achieve the target service.

结合本发明实施例的第二方面或第二方面的第一种实现方式或第二方面的第二种实现方式,在本发明实施例第二方面的第三种实现方式中,所述媒体控制器还包括第二获取单元和第二选取单元;In combination with the second aspect or the first implementation of the second aspect or the second implementation of the second aspect of the embodiments of the present invention, in the third implementation of the second aspect of the embodiments of the present invention, the media control The device also includes a second acquisition unit and a second selection unit;

所述第二获取单元,用于在从所述PDU集中选取负荷值最小的第一PDU之后,获取所述第一PDU发送的第一信息,所述第一信息用于指示所述第一PDU当前运行的状态;The second obtaining unit is configured to obtain first information sent by the first PDU after selecting the first PDU with the smallest load value from the PDU set, and the first information is used to indicate that the first PDU current running status;

所述第二选取单元,用于当根据所述第一信息确定所述第一PDU运行异常时,从所述PDU集中选取第二PDU,所述第二PDU为所述PDU集中除所述第一PDU之外,负荷值最小的PDU,所述第二PDU用于提供所述目标LFU,以实现所述目标服务。The second selection unit is configured to select a second PDU from the PDU set when it is determined according to the first information that the first PDU is running abnormally, and the second PDU is the second PDU except the first PDU in the PDU set. In addition to the first PDU, the PDU with the smallest load value, the second PDU is used to provide the target LFU to achieve the target service.

结合本发明实施例的第二方面或第二方面的第一种实现方式或第二方面的第二种实现方式或第二方面的第三种实现方式,在本发明实施例第二方面的第四种实现方式中,所述媒体控制器还包括创建单元;In combination with the second aspect of the embodiments of the present invention or the first implementation of the second aspect or the second implementation of the second aspect or the third implementation of the second aspect, in the first implementation of the second aspect of the embodiments of the present invention In the four implementation manners, the media controller also includes a creation unit;

所述创建单元,用于在根据预置的LFU与PDU集的映射关系,查找提供所述目标LFU的PDU集之前,创建所述LFU与PDU集的映射关系。The creating unit is configured to create the mapping relationship between the LFU and the PDU set before searching for the PDU set providing the target LFU according to the preset mapping relationship between the LFU and the PDU set.

结合本发明实施例第二方面的第四种实现方式,在本发明实施例第二方面的第五种实现方式中,所述创建单元具体用于:In combination with the fourth implementation manner of the second aspect of the embodiments of the present invention, in the fifth implementation manner of the second aspect of the embodiments of the present invention, the creation unit is specifically configured to:

接收所述PDU集中每个PDU发送的第二信息,所述第二信息用于指示所述每个PDU对应的LFU,receiving second information sent by each PDU in the PDU set, where the second information is used to indicate the LFU corresponding to each PDU,

当所述各PDU对应的LFU相同时,创建所述LFU与所述每个PDU之间的映射关系。When the LFUs corresponding to the PDUs are the same, create a mapping relationship between the LFU and each PDU.

应用本发明的技术方案具有如下有益效果:Applying the technical solution of the present invention has the following beneficial effects:

将媒体设备的功能资源抽象(虚拟化)得到逻辑功能单元LFU,将不同的LFU进行组合得到虚拟设备单元VDU,当媒体终端向媒体控制器发送定制服务请求时,该媒体控制器首先确定目标服务所对应的目标VDU,可以根据VDU与LFU的映射关系,确定该目标VDU对应的目标LFU,并根据LFU与PDU的映射关系,确定提供该目标LFU的PDU集,该PDU集中的PDU可用于处理媒体数据,从而提供该目标媒体服务,由于目标LFU可以由不同的PDU提供,当该PDU集中的某个PDU提供的该目标LFU被其他服务占时,可以由其他PDU提供该目标LFU,无需等待其他服务完成之后才能执行目标服务,因此提升了目标服务实现的效率,且当PDU集中的一个PDU无法提供该目标LFU时,可以由多个PDU共同提供,无需增加新设备,节约设备资产的投入。Abstract (virtualize) the functional resources of the media device to obtain the logical function unit LFU, and combine different LFUs to obtain the virtual device unit VDU. When the media terminal sends a customized service request to the media controller, the media controller first determines the target service For the corresponding target VDU, the target LFU corresponding to the target VDU can be determined according to the mapping relationship between the VDU and the LFU, and the PDU set that provides the target LFU can be determined according to the mapping relationship between the LFU and the PDU. The PDUs in the PDU set can be used for processing Media data, so as to provide the target media service. Since the target LFU can be provided by different PDUs, when the target LFU provided by a certain PDU in the PDU set is occupied by other services, the target LFU can be provided by other PDUs without waiting The target service can only be executed after other services are completed, thus improving the efficiency of the target service realization, and when a PDU in the PDU set cannot provide the target LFU, multiple PDUs can provide it together, without adding new equipment, saving investment in equipment assets .

附图说明Description of drawings

图1-a为基于DLNA标准定义的DMS服务示意图;Figure 1-a is a schematic diagram of a DMS service defined based on the DLNA standard;

图1-b为媒体设备提供服务的示意图;Figure 1-b is a schematic diagram of providing services for media devices;

图1-c为媒体设备提供MDS服务的示意图;Figure 1-c is a schematic diagram of a media device providing an MDS service;

图2为本发明实施例中PDU、LFU、VDU之间的映射关系示意图;Fig. 2 is a schematic diagram of the mapping relationship among PDU, LFU, and VDU in the embodiment of the present invention;

图3为本发明实施例中一种实现服务方法的流程示意图;FIG. 3 is a schematic flow diagram of a method for implementing a service in an embodiment of the present invention;

图4为本发明实施例中另一种实现服务方法的流程示意图;FIG. 4 is a schematic flowchart of another method for implementing a service in an embodiment of the present invention;

图5-a为本发明实施例中媒体路由器映射成LFU的示意图;Fig. 5-a is the schematic diagram that media router is mapped into LFU in the embodiment of the present invention;

图5-b为本发明实施例中媒体路由器实现转屏服务的示意图;FIG. 5-b is a schematic diagram of a media router implementing a screen switching service in an embodiment of the present invention;

图5-c为本发明实施例中媒体路由器实现转屏服务的另一示意图;Fig. 5-c is another schematic diagram of the media router implementing the screen switching service in the embodiment of the present invention;

图6为本发明实施例中一种媒体控制器的结构示意图;FIG. 6 is a schematic structural diagram of a media controller in an embodiment of the present invention;

图7为本发明实施例中另一种媒体控制器的结构示意图;FIG. 7 is a schematic structural diagram of another media controller in an embodiment of the present invention;

图8为本发明实施例中一种媒体控制器的实体装置示意图。FIG. 8 is a schematic diagram of a physical device of a media controller in an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块,本文中所出现的模块的划分,仅仅是一种逻辑上的划分,实际应用中实现时可以有另外的划分方式,例如多个模块可以结合成或集成在另一个系统中,或一些特征可以忽略,或不执行,另外,所显示的或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块之间的间接耦合或通信连接可以是电性或其他类似的形式,本文中均不作限定。并且,作为分离部件说明的模块或子模块可以是也可以不是物理上的分离,可以是也可以不是物理模块,或者可以分不到多个电路模块中,可以根据实际的需要选择其中的部分或全部模块来实现本发明实施例方案的目的。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or modules is not necessarily limited to the expressly listed Those steps or modules, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or equipment, and the division of modules presented herein is only a logical division, In actual application, there may be other division methods, for example, multiple modules may be combined or integrated in another system, or some features may be ignored, or not implemented. In addition, the mutual coupling shown or discussed Or the direct coupling or communication connection may be through some interfaces, and the indirect coupling or communication connection between modules may be electrical or other similar forms, which are not limited herein. Moreover, the modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may not be divided into multiple circuit modules, and part or sub-modules may be selected according to actual needs. All the modules are used to realize the purpose of the solution of the embodiment of the present invention.

本发明实施例提供的一种提供服务的方法及媒体控制器,主要应用于家庭互连技术领域,通过借鉴网络功能虚拟化(Network Function Virtualization,NVF)技术和软件定义网络(Software Defined Network,SDN)技术,将媒体服务抽象(虚拟化)为一个逻辑或虚拟实体(Virtual Device Unit,VDU),将多个媒体设备(Physical Device Unit,PDU)的同类别功能进行抽象,从而定义出逻辑功能单元(Logic Function Unit,LFU)集,即形成PDU与LFU之间的映射,再将该VDU映射成一系列LFU,即形成VDU与LFU之间的映射,使媒体控制器在接收到服务请求时,可以利用该VDU与LFU之间的映射和PDU与LFU之间的映射,在现有设备所具有的功能资源中,实现对服务请求中所请求的服务所需的功能资源进行调度从而达到提高服务提供的效率,且节约设备成本。A method for providing services and a media controller provided by the embodiments of the present invention are mainly used in the field of home interconnection technology, and by referring to Network Function Virtualization (Network Function Virtualization, NVF) technology and Software Defined Network (Software Defined Network, SDN) ) technology, which abstracts (virtualizes) media services into a logical or virtual entity (Virtual Device Unit, VDU), and abstracts the functions of the same category of multiple media devices (Physical Device Unit, PDU), thereby defining logical functional units (Logic Function Unit, LFU) set, which forms the mapping between PDU and LFU, and then maps the VDU into a series of LFU, that is, forms the mapping between VDU and LFU, so that when the media controller receives the service request, it can Utilizing the mapping between VDU and LFU and the mapping between PDU and LFU, among the functional resources of the existing equipment, the scheduling of the functional resources required for the service requested in the service request is realized to improve service provision. efficiency and save equipment cost.

其中,SDN技术主要将网络功能和业务处理抽象化,并且通过外置控制器来控制这些抽象化的对象,将网络业务的控制和转发进行分离,分为控制平面和转发平面,并且控制平面和转发平面之间提供一个标准接口;NFV技术主要是通过逻辑功能和物理硬件的解耦,整个通信网络中所有网元设备的虚拟化,将网络中的各种网元归一成标准的高容量的服务器、存储器和数据交换机。Among them, SDN technology mainly abstracts network functions and service processing, and controls these abstracted objects through external controllers, separates the control and forwarding of network services, and divides them into control plane and forwarding plane, and the control plane and A standard interface is provided between the forwarding planes; NFV technology mainly normalizes various network elements in the network into a standard high-capacity through the decoupling of logical functions and physical hardware, and the virtualization of all network element devices in the entire communication network servers, storage and data switches.

其中,在对媒体设备PDU进行虚拟化时,需要通过LFU模板的描述和VDU模板的描述完成对LFU到PDU的映射、VDU到LFU的映射,该LFU模板和VDU模板的描述可借鉴制造资源虚拟化模型(Virtualization Model of Manufacturing Resource,VMMR)。在进行模板描述时,具体可以参照面向对象思想,对一组相同性质的对象进行抽象,模板中需要包含至少如下六元组:Among them, when virtualizing the media device PDU, it is necessary to complete the mapping from LFU to PDU and from VDU to LFU through the description of the LFU template and the description of the VDU template. The description of the LFU template and VDU template can be used for reference. Virtualization Model (Virtualization Model of Manufacturing Resource, VMMR). When describing the template, you can refer to the object-oriented idea to abstract a group of objects of the same nature. The template needs to contain at least the following six-tuples:

全局标识符,指模板的全局唯一标示符(URI),可以通过URI可以查找和访问该类型模板。The global identifier refers to the global unique identifier (URI) of the template, and the template of this type can be found and accessed through the URI.

资源基本信息,指模板的基本信息(BasicInfo),可直观地说明该模板所描述类型的名称和作用等信息。The basic information of the resource refers to the basic information (BasicInfo) of the template, which can visually explain information such as the name and function of the type described in the template.

属性集合,指模板的属性集合,该属性集合中具体包括属性名称(AttrName)、属性的数据类型(DataType)、属性的初始值(InitValue)、属性的约束集合(ConstraintSet)。The attribute set refers to the attribute set of the template, which specifically includes the attribute name (AttrName), the data type of the attribute (DataType), the initial value of the attribute (InitValue), and the constraint set of the attribute (ConstraintSet).

操作集合,指的是某一类型资源经过服务化封装之后,用于直接使用、作业调度、信息传递的标准化接口描述集合,该标准化接口描述集合具体包括服务接口的名称(Name)、接口输入(Input)、接口输出(Output)以及接口的异常信息(FaultMessage)。The operation set refers to a set of standardized interface descriptions for direct use, job scheduling, and information transfer after a certain type of resource is service-encapsulated. The standardized interface description set specifically includes the service interface name (Name), interface input ( Input), interface output (Output) and interface exception information (FaultMessage).

状态集合,指资源的所有可能存在状态的集合,包含资源在使用、空闲、维护等阶段的各种不同状态的集合,状态的转换由接口完成。State collection refers to the collection of all possible states of resources, including the collection of various states of resources in use, idle, maintenance and other stages, and the state transition is completed by the interface.

关系集合,用于表示模板之间的继承关系,下层模板不仅继承上层模板的所有属性、操作、状态和关系,而且对其进行了扩展,通过模板的继承关系描述,既能够保证同一类型资源描述方式上的统一性,同时也可以使一些特殊属性的资源能够有效描述,发挥作用。Relationship collection, which is used to represent the inheritance relationship between templates. The lower template not only inherits all the attributes, operations, states and relationships of the upper template, but also extends it. Through the description of the inheritance relationship of the template, it can not only guarantee the same type of resource description The unity of the method can also enable some resources with special attributes to be effectively described and play a role.

在按照上述方式对模板进行描述之后,由于同一类型的设备资源使用同一种模板,可以达到对虚拟资源分类型描述的目的,进而达到具体VDU及LFU资源虚拟化的准确描述、良好管理和有效归类的目的,对这类功能相似、作用相同的设备资源,可以通过定制模板化的查询条件进行准确查询,且在设备资源使用中,对于同一模板类型的设备资源采用同一个接口,资源归一化,使得智能调度成为可能。After the template is described in the above manner, since the same type of device resources use the same template, the purpose of describing virtual resources by type can be achieved, and then the accurate description, good management and effective allocation of specific VDU and LFU resource virtualization can be achieved. The purpose of the class is to accurately query such device resources with similar functions and the same role by customizing templated query conditions, and in the use of device resources, the same interface is used for the device resources of the same template type, and the resources are normalized , making intelligent scheduling possible.

其中,如图2PDU同LFU之间的映射关系有两种类型:1:1映射、1:n映射,LFU同VDU之间的映射关系有三种类型:1:1映射、1:n映射、n:1映射,其中,VDU由来自相同或不同PDU的LFU构成,是由LFU重构产生的新的逻辑功能,并且独立于PDU存在,也就是说通过映射算法,将PDU提供的功能抽象成为相互独立的逻辑功能单元LFU,通过LFU的重组,形成VDU。Among them, as shown in Figure 2, there are two types of mapping between PDU and LFU: 1:1 mapping, 1:n mapping, and there are three types of mapping between LFU and VDU: 1:1 mapping, 1:n mapping, n :1 mapping, where the VDU is composed of LFUs from the same or different PDUs, which is a new logical function generated by LFU reconstruction and exists independently of the PDU, that is to say, through the mapping algorithm, the functions provided by the PDU are abstracted into mutual The independent logical function unit LFU forms the VDU through the reorganization of the LFU.

请参阅图3,本发明实施例中一种提供服务方法的一个实施例包括:Referring to Figure 3, an embodiment of a method for providing a service in the embodiment of the present invention includes:

101、媒体控制器根据媒体终端发送的服务请求,确定目标服务对应的目标虚拟设备单元VDU。101. The media controller determines the target virtual device unit VDU corresponding to the target service according to the service request sent by the media terminal.

可以理解的是,媒体终端可以根据业务需求确定请求的服务,向媒体控制器发送包含该目标服务的服务请求,当接收到媒体终端发送的服务请求时,所述媒体控制器根据服务请求中的目标服务,确定与所述服务对应的目标VDU。It can be understood that the media terminal can determine the requested service according to the service requirements, and send a service request containing the target service to the media controller, and when receiving the service request sent by the media terminal, the media controller For the target service, determine the target VDU corresponding to the service.

102、所述媒体控制器根据预置的VDU和LFU的映射关系,查找所述目标VDU对应的目标LFU。102. The media controller searches for the target LFU corresponding to the target VDU according to the preset mapping relationship between the VDU and the LFU.

可以理解的是,在媒体控制器中预定义有VDU模板,其中,VDU模板中定义了VDU与LFU的映射关系,所述VDU模板可以预先由人工定义,所说的定义,可以理解为给出一组参数;例如,所说的定义了VDU模板,可以理解为,给出了VDU模板的参数;所说的定义了VDU与LFU的映射关系,可以理解为,给出了VDU与LFU的映射关系的参数。It can be understood that a VDU template is predefined in the media controller, wherein the mapping relationship between VDU and LFU is defined in the VDU template, and the VDU template can be manually defined in advance. The definition can be understood as giving A set of parameters; for example, the definition of the VDU template can be understood as giving the parameters of the VDU template; the definition of the mapping relationship between VDU and LFU can be understood as giving the mapping of VDU and LFU parameters of the relationship.

由上可知,当确定目标服务的目标VDU之后,可以根据VDU和LFU的映射关系,确定与目标VDU对应的目标LFU。It can be known from the above that after the target VDU of the target service is determined, the target LFU corresponding to the target VDU can be determined according to the mapping relationship between the VDU and the LFU.

103、所述媒体控制器根据预置的LFU和PDU集的映射关系,查找提供所述目标LFU的PDU集。103. The media controller searches for the PDU set that provides the target LFU according to the preset mapping relationship between the LFU and the PDU set.

可以理解的是,在媒体控制器中还预定义有LFU模板,其中,LFU模板中定义了LFU与PDU集的映射关系,所说的定义了LFU模板,可以理解为,给出了LFU模板的参数;所述的定义了LFU与PDU集的映射关系,可以理解为,给出了LFU与PDU集的映射关系的参数。It can be understood that an LFU template is also predefined in the media controller, wherein the LFU template defines the mapping relationship between the LFU and the PDU set. The definition of the LFU template can be understood as giving the LFU template Parameters; the definition of the mapping relationship between the LFU and the PDU set can be understood as the parameters of the mapping relationship between the LFU and the PDU set.

由上可知,当确定提供服务的目标LFU之后,可以根据该LFU和PDU集的映射关系,确定与目标LFU对应的PDU集,其中该PDU集可以为一种类型的PDU集,也可以为多种类型的PDU集。It can be known from the above that after determining the target LFU to provide services, the PDU set corresponding to the target LFU can be determined according to the mapping relationship between the LFU and the PDU set, where the PDU set can be a type of PDU set or multiple Types of PDU sets.

可以理解的是,媒体控制器在确定提供所述目标LFU的PDU集之后,可以利用该PDU集中的任意PDU所提供的功能,处理该目标服务对应业务数据,从而确保能够实现该目标服务。It can be understood that after the media controller determines the PDU set providing the target LFU, it can use the functions provided by any PDU in the PDU set to process the service data corresponding to the target service, so as to ensure that the target service can be realized.

本发明实施例中,媒体控制器借鉴NVF技术和SDN技术预先将媒体服务抽象为一个逻辑或虚拟实体VDU,并将多个媒体设备(PDU)的同类别功能进行抽象,从而定义出逻辑功能单元(LFU)集,再将该VDU映射成该LFU集,当确定服务对应的目标VDU,利用VDU与LFU的映射关系,确定目标LFU,再利用LFU与PDU集的映射关系,确定提供所述目标LFU的PDU集,然后从PDU集中选取目标PDU,由于该目标LFU可以由不同的PDU提供,当该PDU集中的某个PDU提供的该目标LFU被其他服务占时,可以由其他PDU提供该目标LFU,无需等待其他服务完成之后才能执行目标服务,因此提升了目标服务提供的效率,且当PDU集中的一个PDU无法提供该目标LFU时,可以由多个PDU共同提供,无需增加新设备,节约设备资产的投入。In the embodiment of the present invention, the media controller abstracts the media service into a logical or virtual entity VDU in advance by referring to NVF technology and SDN technology, and abstracts the functions of the same category of multiple media devices (PDUs), thereby defining logical functional units (LFU) set, and then map the VDU into the LFU set, when determining the target VDU corresponding to the service, use the mapping relationship between the VDU and the LFU to determine the target LFU, and then use the mapping relationship between the LFU and the PDU set to determine the provision of the target The PDU set of LFU, and then select the target PDU from the PDU set. Since the target LFU can be provided by different PDUs, when the target LFU provided by a certain PDU in the PDU set is occupied by other services, the target can be provided by other PDUs. LFU can execute the target service without waiting for other services to be completed, thus improving the efficiency of target service provision, and when a PDU in the PDU set cannot provide the target LFU, it can be provided by multiple PDUs, without adding new equipment, saving investment in equipment assets.

本发明实施例中,VDU资源作为一种逻辑服务,通过映射关系,与LFU资源关联在一起,物理资源PDU通过抽象,表现一系列功能,这种关联是松耦合形式,从而解除PDU物理资源与VDU服务之间的紧耦合关系,即源服务能力并不与具体物理资源直接相关联,资源映射由中间控制层根据映射规则,建立服务和物理资源之间的映射关系,从而达到提高物理资源利用率的目的。In the embodiment of the present invention, as a logical service, the VDU resource is associated with the LFU resource through a mapping relationship, and the physical resource PDU expresses a series of functions through abstraction. The tight coupling relationship between VDU services, that is, the source service capability is not directly related to specific physical resources, and the resource mapping is established by the intermediate control layer according to the mapping rules to establish the mapping relationship between services and physical resources, so as to improve the utilization of physical resources rate purposes.

通过控制层中间件的适配,将具体的PDU物理资源封装为各类标准的LFU功能资源,与VDU服务资源建立映射,注册并发布为VDU服务。Through the adaptation of the control layer middleware, specific PDU physical resources are encapsulated into various standard LFU functional resources, mapped with VDU service resources, registered and published as VDU services.

为了实现服务分类型描述,定义VDU资源模板,确定其属性集合和标准化接口,该VDU资源模板不仅为控制层中具体服务的虚拟化封装提供模板和参照,而且通过标准化服务接口为上层应用的构建使用管理该类服务等提供标准规范。In order to realize the service classification description, define the VDU resource template, determine its attribute set and standardized interface. Use and manage such services to provide standard specifications.

为了屏蔽物理资源PDU的异构性,本发明实施例将PDU按照LFU接口规范进行标准化封装,对外注册发布所支持的LFU功能集合,完成PDU与LFU的映射关系。In order to shield the heterogeneity of physical resource PDUs, the embodiment of the present invention standardizes and encapsulates the PDUs according to the LFU interface specification, registers and releases the supported LFU function set, and completes the mapping relationship between the PDUs and the LFUs.

请参阅图4,基于图3所示的实施例方法,本发明实施例中另外一种提供服务的方法包括:Please refer to Figure 4, based on the embodiment method shown in Figure 3, another method for providing services in the embodiment of the present invention includes:

201、媒体控制器根据媒体终端发送的服务请求,确定目标服务对应的目标VDU。201. The media controller determines the target VDU corresponding to the target service according to the service request sent by the media terminal.

202、所述媒体控制器根据预置的VDU和LFU的映射关系,查找所述目标VDU对应的目标LFU。202. The media controller searches for the target LFU corresponding to the target VDU according to the preset mapping relationship between the VDU and the LFU.

203、所述媒体控制器根据预置的LFU和PDU集的映射关系,查找提供所述目标LFU的PDU集。203. The media controller searches for the PDU set that provides the target LFU according to the preset mapping relationship between the LFU and the PDU set.

本发明一些实施例中,当所述目标服务需要多个LFU时,即所述目标LFU包括多个LFU,比如目标LFU可以包括第一LFU和第二LFU,所述PDU集为PDU组合集,所述PDU集中的每一个PDU为一个PDU组合。In some embodiments of the present invention, when the target service requires multiple LFUs, that is, the target LFU includes multiple LFUs, for example, the target LFU may include a first LFU and a second LFU, and the PDU set is a PDU combination set, Each PDU in the PDU set is a PDU combination.

可选地,本实施例中的步骤202具体可以包括:Optionally, step 202 in this embodiment may specifically include:

202a、所述媒体控制器根据预置的VDU和LFU的映射关系,查找所述目标VDU对应的第一LFU和第二LFU。202a. The media controller searches for the first LFU and the second LFU corresponding to the target VDU according to the preset mapping relationship between the VDU and the LFU.

可以理解的是,在媒体控制器中预定义有VDU模板,所述VDU模板中定义了VDU与LFU的映射关系,所述的定义了VDU与LFU的映射关系,可以理解为,给出了VDU与LFU的映射关系的描述,根据该映射关系可以查找出目标VDU对应的第一LFU和第二LFU;比如,当目标VDU为VDU1时,该VDU1对应的目标LFU为LFU1和LFU2。It can be understood that a VDU template is predefined in the media controller, and the mapping relationship between VDU and LFU is defined in the VDU template, and the mapping relationship between VDU and LFU is defined. It can be understood that the VDU A description of the mapping relationship with the LFU. According to the mapping relationship, the first LFU and the second LFU corresponding to the target VDU can be found; for example, when the target VDU is VDU1, the target LFUs corresponding to the VDU1 are LFU1 and LFU2.

具体VDU与LFU的映射关系参数,如下表1:The specific mapping relationship parameters between VDU and LFU are shown in Table 1 below:

VDU1VDU1 LFU1、LFU2LFU1, LFU2 VDU2VDU2 LFU3、LFU4LFU3, LFU4

在本发明的一些实施例中,同一个LFU可以由多个相同类型的PDU提供,因此,一个LFU可以对应一个PDU集。In some embodiments of the present invention, the same LFU can be provided by multiple PDUs of the same type, therefore, one LFU can correspond to one PDU set.

可选地,当步骤202按照202a执行时,本实施例中的步骤203具体可以包括:Optionally, when step 202 is performed according to step 202a, step 203 in this embodiment may specifically include:

203a、所述媒体控制器根据预置的LFU和PDU的映射关系,查找提供所述第一LFU的第一PDU集,所述第二LFU的第二PDU集。203a. The media controller searches for a first PDU set providing the first LFU and a second PDU set for the second LFU according to the preset mapping relationship between LFUs and PDUs.

可以理解的是,当确定提供服务的目标LFU之后,可以根据LFU和PDU的映射关系,确定与第一LFU对应的第一PDU集,第二LFU对应的第二PDU集,比如当确定目标LFU为表1中的LFU1、LFU2时,根据表2中的映射关系可以确定提供该LFU1的PDU集中包括PDU1、PDU2,提供LFU2的PDU集中包括PDU3、PDU4。It can be understood that after determining the target LFU to provide services, the first PDU set corresponding to the first LFU and the second PDU set corresponding to the second LFU can be determined according to the mapping relationship between the LFU and the PDU. For example, when the target LFU is determined When it is LFU1 and LFU2 in Table 1, according to the mapping relationship in Table 2, it can be determined that the PDU set providing the LFU1 includes PDU1 and PDU2, and the PDU set providing LFU2 includes PDU3 and PDU4.

LFU与PDU的映射关系如下表2:The mapping relationship between LFU and PDU is shown in Table 2:

LFU1LFU1 PDU1或PDU2PDU1 or PDU2 LFU2LFU2 PDU3或PDU4PDU3 or PDU4

203b、将所述第一PDU集和所述第二PDU集按照预置规则组合。203b. Combine the first PDU set and the second PDU set according to a preset rule.

需要说明的是,可以在媒体控制器中预先设定不同类型的PDU之间进行组合的规则,比如该规则为PDU1只能与同一单板上的其他PDU组合使用,如表2中给出的多个PDU,假如PDU1和PDU3、PDU2和PDU4分别来自两个不同单板,那么按照该规则第一PDU集合和第二PDU集进行组合后,得到的PDU集为PDU1和PDU3、PDU2和PDU3、PDU2和PDU4。It should be noted that the combination rules for different types of PDUs can be preset in the media controller. For example, the rule is that PDU1 can only be used in combination with other PDUs on the same board, as shown in Table 2 Multiple PDUs, if PDU1 and PDU3, PDU2 and PDU4 come from two different boards, then according to this rule, after combining the first PDU set and the second PDU set, the obtained PDU set is PDU1 and PDU3, PDU2 and PDU3, PDU2 and PDU4.

在本发明的一些实施例中,当所述VDU只对应一个LFU时,即所述目标LFU为一个LFU,一个LFU可以由多个具有相同功能的PDU中的任意一个提供。In some embodiments of the present invention, when the VDU corresponds to only one LFU, that is, the target LFU is one LFU, one LFU can be provided by any one of multiple PDUs with the same function.

可选地,本实施例中的步骤203具体可以包括:Optionally, step 203 in this embodiment may specifically include:

203b、所述媒体控制器根据预置的LFU和PDU集的映射关系,查找提供所述目标LFU的PDU集。203b. The media controller searches for the PDU set that provides the target LFU according to the preset mapping relationship between the LFU and the PDU set.

可以理解的是,当确定提供目标VDU的目标LFU之后,可以根据LFU和PDU集的映射关系,确定所述目标LFU对应的PDU集,比如当确定目标LFU为表1中的LFU1时,根据表2中的映射关系可以确定提供该LFU1的PDU集中包括PDU1、PDU2、PDU3和PDU4。It can be understood that after the target LFU providing the target VDU is determined, the PDU set corresponding to the target LFU can be determined according to the mapping relationship between the LFU and the PDU set, for example, when the target LFU is determined to be LFU1 in Table 1, according to the table The mapping relationship in 2 can determine that the PDU set providing the LFU1 includes PDU1, PDU2, PDU3 and PDU4.

可选地,当步骤203具体按照203b执行时,本实施例中步骤204具体可以包括:Optionally, when step 203 is specifically executed according to 203b, step 204 in this embodiment may specifically include:

204c、获取PDU集中各PDU发送的负荷状态信息,所述负荷状态用于指示各PDU当前负荷值。204c. Acquire load status information sent by each PDU in the PDU set, where the load status is used to indicate a current load value of each PDU.

其中,媒体控制器可以从PDU集中各PDU发送的负荷状态信息中获取各PDU的负荷值。Wherein, the media controller may obtain the load value of each PDU from the load status information sent by each PDU in the PDU set.

如下表5,表示PDU集中各PDU的负荷值大小Table 5 below shows the load value of each PDU in the PDU set

物理设备单元Physical Equipment Unit 负荷值load value PDU1PDU1 5353 PDU2PDU2 8989 PDU3PDU3 7777 PDU4PDU4 4141

204d、根据所述PDU集中各PDU的负荷值,从所述PDU集中选取负荷值最小的PDU作为所述第一PDU。204d. According to the load value of each PDU in the PDU set, select a PDU with the smallest load value from the PDU set as the first PDU.

如表5可知,选取PDU集中负荷值最小的PDU4作为第一PDU。As can be seen from Table 5, the PDU4 with the smallest PDU concentration load value is selected as the first PDU.

需要说明的是,所述媒体控制器获取PDU集中各PDU的负荷值方式,可以由所述媒体控制器向各PDU发送指令,使PDU返回包含负荷值的信息,也可以是由PDU周期性地将包含负荷值的信息主动上报给媒体控制器。It should be noted that, the manner in which the media controller obtains the load value of each PDU in the PDU set may be that the media controller sends an instruction to each PDU to make the PDU return information containing the load value, or the PDU may periodically Actively report the information including the load value to the media controller.

在本发明的一些实施例中,在步骤203之后,还可以包括步骤204和步骤205:In some embodiments of the present invention, after step 203, step 204 and step 205 may also be included:

204、获取PDU集中各PDU发送的负荷状态信息,所述负荷状态用于指示各PDU当前负荷值。204. Acquire load status information sent by each PDU in the PDU set, where the load status is used to indicate a current load value of each PDU.

其中,媒体控制器可以从PDU集中各PDU发送的负荷状态信息中获取各PDU的负荷值。Wherein, the media controller may obtain the load value of each PDU from the load status information sent by each PDU in the PDU set.

如下表4,表示第一PDU集和第二PDU集中各PDU的负荷值大小Table 4 below shows the load value of each PDU in the first PDU set and the second PDU set

PDU组合集PDU combination set 负荷值load value PDU1和PDU4PDU1 and PDU4 5353 PDU2和PDU3PDU2 and PDU3 8989 PDU2和PDU3PDU2 and PDU3 6868

205、根据所述PDU集中各PDU的负荷值,从所述PDU集中选取负荷值最小的PDU作为所述第一PDU。205. According to the load value of each PDU in the PDU set, select a PDU with the smallest load value from the PDU set as the first PDU.

如表4可知,PDU1和PDU4组合的负荷值最小,因此选取PDU集中负荷值最小的PDU1和PDU4作为第一PDU,可以避免因为PDU组合负荷过大导致实现的目标服务不稳定。As shown in Table 4, the combined load of PDU1 and PDU4 is the smallest. Therefore, selecting PDU1 and PDU4 with the smallest combined load of PDUs as the first PDU can avoid the instability of the target service due to the excessive combined load of PDUs.

需要说明的是,所述媒体控制器获取PDU集中各PDU的负荷值方式,可以由所述媒体控制器向各PDU发送指令,使PDU返回包含负荷值的信息,也可以是由PDU周期性地将包含负荷值的信息主动上报给媒体控制器。其中,该负荷状态信息可以包括内存到总线的压力、CPU载荷等。It should be noted that, the manner in which the media controller obtains the load value of each PDU in the PDU set may be that the media controller sends an instruction to each PDU to make the PDU return information containing the load value, or the PDU may periodically Actively report the information including the load value to the media controller. Wherein, the load state information may include pressure from the memory to the bus, CPU load, and the like.

在本发明的一些实施例中,在步骤205之后,还可以包括步骤206和步骤207:In some embodiments of the present invention, after step 205, step 206 and step 207 may also be included:

206、获取所述第一PDU发送的第一信息,所述第一信息用于指示所述第一PDU当前运行的状态。206. Acquire first information sent by the first PDU, where the first information is used to indicate a current running state of the first PDU.

其中,第一PDU可以周期性或非周期性地将自身的运行状态反馈给媒体控制器,具体可向媒体控制器发送第一信息,该第一信息用于指示第一目标PDU当前的运行状态,该运行状态包括正常及异常两种。Wherein, the first PDU may periodically or non-periodically feed back its own running state to the media controller, specifically, it may send first information to the media controller, and the first information is used to indicate the current running state of the first target PDU , the running status includes normal and abnormal.

需要说明的是,该PDU可以是主动发送该第一信息,也可以是在接收到媒体控制器下发的指令时,被动发送该第一信息,具体此处不作限定。It should be noted that the PDU may actively send the first information, or may passively send the first information when receiving an instruction from the media controller, which is not specifically limited here.

207、当根据所述第一信息确定所述第一PDU运行异常时,从所述PDU集中选取第二PDU,所述第二PDU为所述PDU集中除所述第一PDU之外,负荷值最小的PDU,所述第二PDU用于提供所述目标LFU。207. When it is determined according to the first information that the first PDU is running abnormally, select a second PDU from the PDU set, and the second PDU is the load value of the PDU set except the first PDU The smallest PDU, the second PDU is used to provide the target LFU.

可以理解的是,当第一PDU发送的第一信息指示该第一PDU当前的工作状态为异常时,该媒体控制器从PDU集中选取除该第一PDU之外,负荷值最小的PDU作为第二PDU,该第二PDU用于提供所述目标LFU。比如,当步骤203按照203a执行时,可以选取PDU2和PDU3作为第二PDU,当步骤203按照203b执行时,可以选取PDU1作为第二PDU。It can be understood that when the first information sent by the first PDU indicates that the current working state of the first PDU is abnormal, the media controller selects the PDU with the smallest load value except the first PDU from the PDU set as the second PDU. Two PDUs, the second PDU is used to provide the target LFU. For example, when step 203 is performed according to 203a, PDU2 and PDU3 may be selected as the second PDU, and when step 203 is performed according to 203b, PDU1 may be selected as the second PDU.

需要说明的是,本实施例中,在确定第一PDU发生异常时,媒体控制器选取负荷值最小的PDU作为第二PDU,这样可以起到既避免目标PDU运行错误导致无法提供服务,又可以避免因为PDU负荷值太大,而导致服务不稳定的问题。在实际应用中,也可以选取PDU集中其他PDU作为第二PDU,具体此处不作限定。It should be noted that, in this embodiment, when it is determined that the first PDU is abnormal, the media controller selects the PDU with the smallest load value as the second PDU. Avoid the problem of service instability caused by too much PDU load value. In practical applications, other PDUs in the PDU set may also be selected as the second PDU, which is not specifically limited here.

可选地,在本发明实施例的步骤202之前,该媒体控制器还可以获取第三信息,所述第三信息携带有VDU与LFU的映射关系。比如,从外部储存中拷贝或下载包含该VDU和LFU的映射关系的数据信息,即安装VDU服务。Optionally, before step 202 in this embodiment of the present invention, the media controller may also acquire third information, where the third information carries a mapping relationship between VDUs and LFUs. For example, copying or downloading data information including the mapping relationship between the VDU and the LFU from the external storage is to install the VDU service.

可选地,在本发明实施例的步骤203之前,该媒体控制器还可以执行如下步骤:Optionally, before step 203 in the embodiment of the present invention, the media controller may also perform the following steps:

接收PDU发送的第二信息,所述第二信息用于指示所述PDU集中各PDU提供的LFU,当各PDU提供的LFU相同时,按照LFU模板,创建LFU与PDU集之间的映射关系。Receive the second information sent by the PDU, the second information is used to indicate the LFU provided by each PDU in the PDU set, and when the LFU provided by each PDU is the same, create a mapping relationship between the LFU and the PDU set according to the LFU template.

为了便于理解,下面结合具体应用场景对本发明实施例中的一种实现服务的方法进行了详细说明,请参阅图5-a至图5-c,以PDU为媒体路由器进行说明,媒体路由器(MediaRouter,MR)总共有4个(即MR1、MR2、MR3、MR4)。本发明实施例中利用媒体路由器提供服务的流程包括:For ease of understanding, a method for implementing services in the embodiment of the present invention is described in detail below in conjunction with specific application scenarios. Please refer to FIG. 5-a to FIG. , MR) there are 4 in total (ie MR1, MR2, MR3, MR4). In the embodiment of the present invention, the process of using the media router to provide services includes:

301、媒体控制器将媒体路由器MR1、MR2、MR3、MR4可提供的功能资源封装成LFU。301. The media controller encapsulates functional resources that can be provided by the media routers MR1, MR2, MR3, and MR4 into an LFU.

可以理解的是,媒体控制器将媒体路由器MR1、MR2、MR3、MR4可提供的功资源能封装成LFU,即该媒体控制器中LFU模板,将MR的功能资源映射成LFU,如图5-a,将MR1中功能资源封装成存取(access)功能、解复用(demux)功能、无损提取(remux)功能、编码(encoder)功能,将MR2中功能资源封装成音频解码(audio decoder)功能、图形解码(jpg decoder)功能、解复用(dumux)功能、音频编码(audio encoder)功能、将MR3中功能资源封装成音频解码(audio decoder)功能、音频编码(audio encoder)功能、无损提取(remux)、解码(decoder)功能,将MR4中功能资源封装成存取(access)功能、音频编码(audio encoder)功能、无损提取(remux)、解码(decoder)功能等LFU资源。It can be understood that the media controller encapsulates the functional resources provided by the media routers MR1, MR2, MR3, and MR4 into LFUs, that is, the LFU template in the media controller maps the functional resources of MRs into LFUs, as shown in Figure 5- a. Encapsulate the functional resources in MR1 into access function, demultiplexing (demux) function, lossless extraction (remux) function, and encoding (encoder) function, and encapsulate the functional resources in MR2 into audio decoder (audio decoder) Function, graphic decoding (jpg decoder) function, demultiplexing (dumux) function, audio encoding (audio encoder) function, encapsulation of functional resources in MR3 into audio decoding (audio decoder) function, audio encoding (audio encoder) function, lossless Extraction (remux), decoding (decoder) functions, package functional resources in MR4 into access (access) function, audio encoding (audio encoder) function, lossless extraction (remux), decoding (decoder) function and other LFU resources.

302、媒体控制器根据媒体终端发送的转屏服务请求,确定转屏服务所需的目标LFU资源。302. The media controller determines the target LFU resource required by the screen transfer service according to the screen transfer service request sent by the media terminal.

本实施例中,媒体控制器可以按照服务部署策略确定转屏服务所需的目标LFU资源为access、demux、audio decoder和audio encoder。In this embodiment, the media controller may determine that the target LFU resources required by the screen transition service are access, demux, audio decoder, and audio encoder according to the service deployment policy.

303、媒体控制器根据媒体路由器的负荷值,确定提供所述目标LFU资源的为MR1和MR2。303. The media controller determines, according to the load value of the media routers, that MR1 and MR2 provide the target LFU resources.

可以理解的是,媒体控制器可以获取LFU所在媒体路由器的当前负荷值,比如通过压力传感器检测媒体路由器的负荷值,该负荷值可以为内存到总线的压力或CPU载荷等,比如媒体控制器检测到的MR1、MR2、MR3和MR4的负荷值如下表6所示:It can be understood that the media controller can obtain the current load value of the media router where the LFU is located, such as detecting the load value of the media router through a pressure sensor. The load value can be the pressure from the memory to the bus or the CPU load, etc. The load values of MR1, MR2, MR3 and MR4 are shown in Table 6 below:

表6Table 6

MR1MR1 4343 MR2MR2 4242 MR3MR3 5555 MR4MR4 4747

由表6可知,转屏服务所需的access所在的MR1和MR4中,MR1的负荷值小于MR4,因此由将MR1的access作为转屏服务所需的LFU资源,同理,选取MR1的demux和MR2的audiodecoder和audio encoder。如图5-b,媒体控制器选取MR1中access和demux、MR2中的audiodecoder和audio encoder提供转屏服务所需的LFU资源,并利用MR1和MR2对该转屏服务的业务数据进行处理后,向媒体终端输出服务所需的数据,从而实现用户定制的转屏服务。It can be seen from Table 6 that among MR1 and MR4 where the access required for the screen transfer service is located, the load value of MR1 is smaller than that of MR4. Therefore, the access of MR1 is used as the LFU resource required for the screen transfer service. Similarly, the demux and MR1 of MR1 are selected. MR2's audiodecoder and audio encoder. As shown in Figure 5-b, the media controller selects the access and demux in MR1, and the audiodecoder and audio encoder in MR2 to provide the LFU resources required for the screen transfer service, and uses MR1 and MR2 to process the business data of the screen transfer service, Output the data required for the service to the media terminal, so as to realize the user-customized screen transfer service.

304、当确定MR1运行异常时,选取MR2中的demux和MR4中的access提供该转屏服务。304. When it is determined that MR1 is running abnormally, select demux in MR2 and access in MR4 to provide the screen switching service.

可以理解的是,该媒体控制器可以通过周期性的采样或者主动通知机制对转屏服务所关联的媒体路由器的运行状态进行监控分析以确定或预测是否发生运行时异常。如下表7为各媒体路由器的运行状态:It can be understood that the media controller can monitor and analyze the running status of the media router associated with the screen switching service through periodic sampling or an active notification mechanism to determine or predict whether a runtime exception occurs. Table 7 below shows the running status of each media router:

表7Table 7

MR1MR1 异常abnormal MR2MR2 正常normal MR3MR3 正常normal MR4MR4 正常normal

如图5-c,媒体控制器在确定MR1发生异常时,将选取MR2中的demux和MR4中的access替换MR1中demux和access,以继续实现该转屏服务。As shown in Figure 5-c, when the media controller determines that MR1 is abnormal, it will select the demux in MR2 and the access in MR4 to replace the demux and access in MR1, so as to continue to implement the screen transition service.

上面对本发明实施例中的一种提供服务的方法进行了描述,下面对本发明实施例中的一种媒体控制器进行描述,请参阅图6,本发明实施例中一种媒体控制器600的一个实施例包括:A method for providing a service in the embodiment of the present invention has been described above, and a media controller in the embodiment of the present invention will be described below. Please refer to FIG. 6 , one of a media controller 600 in the embodiment of the present invention Examples include:

确定单元601,用于根据媒体终端发送的服务请求,确定与目标服务对应的目标虚拟设备单元VDU,所述目标服务为所述服务请求所请求的服务;The determining unit 601 is configured to determine a target virtual device unit VDU corresponding to a target service according to the service request sent by the media terminal, and the target service is the service requested by the service request;

第一查找单元602,用于根据预置的VDU和LFU的映射关系,查找所述目标VDU对应的目标LFU;The first search unit 602 is configured to search for the target LFU corresponding to the target VDU according to the preset mapping relationship between the VDU and the LFU;

第二查找单元603,用于根据预置的LFU和PDU集的映射关系,查找提供所述目标LFU的PDU集所述PDU集中的PDU用于提供所述目标LFU,以实现所述目标媒体服务。The second search unit 603 is configured to search for a PDU set that provides the target LFU according to the preset mapping relationship between the LFU and the PDU set. The PDUs in the PDU set are used to provide the target LFU to achieve the target media service .

请参阅图7,本发明实施例中另一种媒体控制器700包括:Referring to FIG. 7, another media controller 700 in the embodiment of the present invention includes:

确定单元701,用于根据媒体终端发送的服务请求,确定与目标服务对应的目标虚拟设备单元VDU,所述目标服务为所述服务请求所请求的服务。The determining unit 701 is configured to determine, according to the service request sent by the media terminal, a target virtual device unit VDU corresponding to a target service, where the target service is the service requested by the service request.

可选的,所述媒体控制器700还包括创建单元702,所述创建单元702用于创建所述LFU与PDU集的映射关系。Optionally, the media controller 700 further includes a creation unit 702, and the creation unit 702 is configured to create a mapping relationship between the LFU and the PDU set.

其中,所述创建单元702具体用于接收所述PDU集中每个PDU发送的第二信息,所述第二信息用于指示所述每个PDU对应的LFU,当所述LFU相同时,创建所述LFU与所述每个PDU之间的映射关系。Wherein, the creating unit 702 is specifically configured to receive the second information sent by each PDU in the PDU set, the second information is used to indicate the LFU corresponding to each PDU, and when the LFUs are the same, create the The mapping relationship between the LFU and each PDU.

第一查找单元703,用于根据预置的VDU和LFU的映射关系,查找所述目标VDU对应的目标LFU。The first search unit 703 is configured to search for the target LFU corresponding to the target VDU according to the preset mapping relationship between the VDU and the LFU.

第二查找单元704,用于根据预置的LFU和PDU集的映射关系,查找提供所述目标LFU的PDU集所述PDU集中的PDU用于提供所述目标LFU,以实现所述目标媒体服务。The second search unit 704 is configured to search for a PDU set that provides the target LFU according to the preset mapping relationship between the LFU and the PDU set. The PDUs in the PDU set are used to provide the target LFU to achieve the target media service .

其中,当所述目标LFU包括第一LFU和第二LFU时,所述第二查找单元,具体可以通过所述第二查找单元根据预置的LFU和PDU集的映射关系,查找提供所述第一LFU的第一PDU集,所述第二LFU的第二PDU集,将所述第一PDU集和所述第二PDU集按照预置规则组合,得到提供所述目标LFU的PDU集。Wherein, when the target LFU includes the first LFU and the second LFU, the second search unit can specifically use the second search unit to search and provide the second LFU according to the preset mapping relationship between the LFU and the PDU set. A first PDU set of an LFU, a second PDU set of the second LFU, combining the first PDU set and the second PDU set according to preset rules to obtain a PDU set providing the target LFU.

可选的,所述媒体控制器700还包括第一获取单元705和第一选取单元706。Optionally, the media controller 700 further includes a first acquiring unit 705 and a first selecting unit 706 .

其中,所述第一获取单元705,用于获取所述PDU集中各PDU的负荷值;所述第一选取单元706,用于根据所述PDU集中各PDU的负荷值,从所述PDU集中选取负荷值最小的第一PDU,所述第一PDU用于提供所述目标LFU,以实现所述目标服务。Wherein, the first obtaining unit 705 is used to obtain the load value of each PDU in the PDU set; the first selection unit 706 is used to select from the PDU set according to the load value of each PDU in the PDU set A first PDU with the smallest load value, where the first PDU is used to provide the target LFU to achieve the target service.

可选的,所述媒体控制器700还包括第二获取单元707和第二选取单元708。Optionally, the media controller 700 further includes a second acquiring unit 707 and a second selecting unit 708 .

其中,所述第二获取单元707,用于在从所述PDU集中选取负荷值最小的第一PDU之后,获取所述第一PDU发送的第一信息,所述第一信息用于指示所述第一PDU当前运行的状态;第二选取单元708,用于当根据所述第一信息确定所述第一PDU运行异常时,从所述PDU集中选取第二PDU,所述第二PDU为所述PDU集中除所述第一PDU之外,负荷值最小的PDU,所述第二PDU用于提供所述目标LFU,以实现所述目标服务。Wherein, the second obtaining unit 707 is configured to obtain the first information sent by the first PDU after selecting the first PDU with the smallest load value from the PDU set, and the first information is used to indicate the The current running state of the first PDU; the second selecting unit 708, configured to select a second PDU from the PDU set when it is determined according to the first information that the first PDU is running abnormally, and the second PDU is all In the set of PDUs except the first PDU, the PDU with the smallest load value, the second PDU is used to provide the target LFU to achieve the target service.

可以理解,本发明实施例的媒体控制器的各个功能单元的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可参照上述方法实施例中的相关描述,此处不再赘述。It can be understood that the functions of each functional unit of the media controller in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment, and the specific implementation process can refer to the relevant description in the above method embodiment, and will not be repeated here.

由上可见,在本发明的一些可行的实施方式中,将媒体服务抽象为一个逻辑或虚拟实体VDU,将多个媒体设备(PDU)的同类别功能进行抽象,从而定义出逻辑功能单元(LFU)集,再将该VDU映射成一系列LFU,当确定提供服务对应的目标VDU,利用VDU与LFU的映射关系,确定目标LFU,再利用LFU与PDU集的映射关系,确定提供所述目标LFU的PDU集,取得了如下有益效果:As can be seen from the above, in some feasible embodiments of the present invention, the media service is abstracted as a logic or virtual entity VDU, and the functions of the same category of multiple media devices (PDUs) are abstracted, thereby defining a logical function unit (LFU) ) set, and then map the VDU into a series of LFUs. When the target VDU corresponding to the service is determined, the target LFU is determined by using the mapping relationship between the VDU and the LFU, and then the target LFU that provides the target LFU is determined by using the mapping relationship between the LFU and the PDU set. The PDU set has achieved the following beneficial effects:

可以通过请求的目标服务查找出具有该目标服务所需功能资源的媒体设备,当一个媒体设备不具备该目标服务所需的所有功能资源时,可以利用多个设备的组合提供该目标服务所需的所有功能资源,无需增加新设备,节约设备成本;当某个设备中实现该目标服务所需的功能资源被占用时,可以使用其他设备的功能资源实现该目标服务,提升实现服务的效率。The requested target service can be used to find the media device that has the functional resources required by the target service. When a media device does not have all the functional resources required by the target service, a combination of multiple devices can be used to provide the required functional resources for the target service. All the functional resources of the device do not need to add new equipment, which saves equipment costs; when the functional resources required to achieve the target service in a certain device are occupied, the functional resources of other devices can be used to achieve the target service, improving the efficiency of service implementation.

本发明实施例还提供一种计算机存储介质,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的提供服务方法的部分或全部步骤。An embodiment of the present invention also provides a computer storage medium, which can store a program, and when the program is executed, some or all of the steps of the service providing method described in the above method embodiments are included.

请参阅图8,本发明实施例还提供一种媒体控制器800。Referring to FIG. 8 , an embodiment of the present invention further provides a media controller 800 .

该媒体控制器800可以部署到微处理计算机。比如:该媒体控制器800可以是通用计算机、客户定制机、媒体路由器、机顶盒等便携设备中的一种。媒体控制器800可包括处理器8001,存储器8002,通信接口8003和总线8004;所述处理器8001,存储器8002和通信接口8003通过总线8004连接并完成相互间的通信。所述存储器8002用于存储程序代码;当所述计算机设备800运行时,所述处理器8001执行所述存储器8002存储的所述程序代码,以使所述计算机设备800执行上文方法实施例中记载的所述提供服务的方法。The media controller 800 can be deployed to a microprocessor computer. For example: the media controller 800 may be one of portable devices such as general-purpose computers, customized machines, media routers, and set-top boxes. The media controller 800 may include a processor 8001, a memory 8002, a communication interface 8003 and a bus 8004; the processor 8001, the memory 8002 and the communication interface 8003 are connected through the bus 8004 to complete mutual communication. The memory 8002 is used to store program codes; when the computer device 800 is running, the processor 8001 executes the program codes stored in the memory 8002, so that the computer device 800 executes the The method of providing the service as described.

具体的,specific,

所述总线8004可以是工业标准体系结构(Industry Standard Architecture,简称为ISA)总线或外部设备互连(Peripheral Component,简称为PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,简称为EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线中的一种或多种。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 8004 may be an Industry Standard Architecture (Industry Standard Architecture, referred to as ISA) bus or a Peripheral Component Interconnect (abbreviated as PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc. The bus can be classified into one or more of address bus, data bus and control bus. For ease of representation, only one thick line is used in FIG. 8 , but it does not mean that there is only one bus or one type of bus.

存储器8002用于存储可执行程序代码,该程序代码包括计算机操作指令。当计算机设备800执行该程序代码时,计算机设备800可以完成图3实施例的步骤101~104,也可以实现图4实施例的步骤201~207。存储器8002可以包含高速RAM(Ramdom Access Memory)存储器。可选地,存储器8002还可以还包括非易失性存储器(non-volatile memory)。例如存储器8002可以包括磁盘存储器。The memory 8002 is used to store executable program codes including computer operation instructions. When the computer device 800 executes the program code, the computer device 800 can complete steps 101-104 of the embodiment in FIG. 3 , and can also implement steps 201-207 of the embodiment in FIG. 4 . The memory 8002 may include a high-speed RAM (Ramdom Access Memory) memory. Optionally, the memory 8002 may further include a non-volatile memory (non-volatile memory). For example, storage 8002 may include disk storage.

处理器8001可以是一个中央处理器(Central Processing Unit,简称为CPU),或者是处理器8001可以特定集成电路(Application Specific Integrated Circuit,简称为ASIC),或者处理器8001可以是被配置成实施本发明实施例的一个或多个集成电路。The processor 8001 may be a central processing unit (Central Processing Unit, referred to as CPU), or the processor 8001 may be a specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or the processor 8001 may be configured to implement the present invention. One or more integrated circuits of an embodiment of the invention.

所述处理器8001,用于读取存储器8002中存储的指令,从而执行如下步骤:The processor 8001 is configured to read instructions stored in the memory 8002, thereby performing the following steps:

根据媒体终端发送的服务请求,确定用于提供所述服务的目标VDU;根据预置的VDU和LFU的映射关系,查找所述目标VDU对应的目标LFU;根据预置的LFU和PDU集的映射关系,查找提供所述目标LFU的PDU集;从所述PDU集中选取第一PDU,所述第一PDU组合用于提供所述目标LFU.According to the service request sent by the media terminal, determine the target VDU used to provide the service; according to the preset mapping relationship between the VDU and LFU, search for the target LFU corresponding to the target VDU; according to the preset mapping between the LFU and the PDU set Relationship, search for the PDU set that provides the target LFU; select the first PDU from the PDU set, and the first PDU combination is used to provide the target LFU.

可选地,当所述目标LFU包括第一LFU和第二LFU时,所述处理器8001还用于根据预置的LFU和PDU集的映射关系,查找提供所述第一LFU的第一PDU集,所述第二LFU的第二PDU集,并将所述第一PDU集和所述第二PDU集按照预置规则组合,得到提供所述目标LFU的所述PDU集。Optionally, when the target LFU includes the first LFU and the second LFU, the processor 8001 is further configured to search for the first PDU that provides the first LFU according to the preset mapping relationship between the LFU and the PDU set set, the second PDU set of the second LFU, and combine the first PDU set and the second PDU set according to preset rules to obtain the PDU set providing the target LFU.

可选的,所述处理器8001还用于获取所述PDU集中各PDU的负荷值,并根据所述PDU集中各PDU的负荷值,从所述PDU集中选取负荷值最小的第一PDU提供所述目标LFU,以实现所述目标服务.Optionally, the processor 8001 is further configured to acquire the load value of each PDU in the PDU set, and select the first PDU with the smallest load value from the PDU set according to the load value of each PDU in the PDU set to provide the The target LFU to achieve the target service.

可选地,所述处理器8001还用于当确定所述第一PDU运行异常时,从所述PDU集中选取第二PDU,所述第二PDU为所述PDU集中除所述第一PDU之外,负荷值最小的PDU,所述第二目标PDU用于提供所述目标LFU。Optionally, the processor 8001 is further configured to select a second PDU from the PDU set when it is determined that the first PDU is running abnormally, and the second PDU is the first PDU in the PDU set except the first PDU. In addition, the PDU with the smallest load value, the second target PDU is used to provide the target LFU.

可选地,所述处理器8001还用于通过接收PDU发送的第二信息,所述第二信息用于指示所述PDU集中各PDU提供的LFU,当所述LFU相同时,创建所述LFU和所述PDU集之间的映射关系。Optionally, the processor 8001 is further configured to receive second information sent by the PDU, the second information is used to indicate the LFU provided by each PDU in the PDU set, and when the LFUs are the same, create the LFU and the mapping relationship between the PDU set.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes.

以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (12)

1. a kind of method for realizing service characterized by comprising
The service request that media controller is sent according to media termination determines the corresponding target virtual devices unit of destination service VDU, the destination service are the requested service of the service request;
The media controller searches VDU pairs of the target according to the mapping relations of preset VDU and logic function unit LFU The target LFU, the target LFU answered includes the first LFU and the 2nd LFU;
The media controller searches the first LFU according to the mapping relations of preset LFU and physical equipment unit PDU collection Corresponding first PDU collection and the corresponding 2nd PDU collection of the 2nd LFU, the PDU that the first PDU is concentrated are used to provide the described First LFU, the PDU that the 2nd PDU is concentrated are used to provide the described the 2nd LFU.
2. the method according to claim 1, wherein the method also includes:
It combines the first PDU collection and the 2nd PDU collection according to presetting rule, is provided the PDU of the target LFU Collection, the PDU collection of the target LFU are used to provide the described target LFU.
3. according to the method described in claim 2, it is characterized in that, by the first PDU collection and the 2nd PDU collection according to Presetting rule combination, is provided after the PDU collection of the target LFU, further includes:
The PDU for obtaining the target LFU concentrates the load value of each PDU;
The load value that each PDU is concentrated according to the PDU of the target LFU is concentrated from the PDU of the target LFU and chooses load value most The first small PDU, the first PDU are used to provide the described target LFU, to realize the destination service.
4. according to the method described in claim 3, it is characterized in that, choosing load value most concentrating from the PDU of the target LFU After the first small PDU, further includes:
The first information that the first PDU is sent is obtained, the first information is used to indicate the currently running shape of the first PDU State;
When determining that the first PDU is operating abnormally according to the first information, is concentrated from the PDU of the target LFU and choose the The PDU that two PDU, the 2nd PDU are the target LFU is concentrated in addition to the first PDU, and load value the smallest PDU is described 2nd PDU is used to provide the described target LFU, to realize the destination service.
5. method according to claim 1 to 4, which is characterized in that in the media controller according to preset LFU and physical equipment unit PDU collection mapping relations, search the corresponding first PDU collection of the first LFU and described second Before the corresponding 2nd PDU collection of LFU, further includes:
Create the mapping relations of LFU and PDU collection.
6. according to the method described in claim 5, it is characterized in that, the mapping relations packet of the creation LFU and PDU collection It includes:
The second information that the PDU concentrates each PDU to send is received, it is corresponding that second information is used to indicate each PDU LFU,
When the corresponding LFU of each PDU is identical, the mapping relations between the LFU and the PDU collection are created.
7. a kind of media controller characterized by comprising
Determination unit, the service request for being sent according to media termination determine target virtual devices corresponding with destination service Unit VDU, the destination service are the requested service of the service request;
First searching unit searches the target VDU for the mapping relations according to preset VDU and logic function unit LFU Corresponding target LFU, the target LFU include the first LFU and the 2nd LFU;
Second searching unit searches described first for the mapping relations according to preset LFU and physical equipment unit PDU collection The corresponding first PDU collection of LFU and the corresponding 2nd PDU collection of the 2nd LFU, the PDU that the first PDU is concentrated is for providing institute The first LFU is stated, the PDU that the 2nd PDU is concentrated is used to provide the described the 2nd LFU.
8. media controller according to claim 7, which is characterized in that second searching unit is also used to:
It combines the first PDU collection and the 2nd PDU collection according to presetting rule, is provided the PDU of the target LFU Collection, the PDU collection of the target LFU are used to provide the described target LFU.
9. media controller according to any one of claims 8, which is characterized in that the media controller further includes first acquisition unit With the first selection unit;
The first acquisition unit, the PDU for obtaining the target LFU concentrate the load value of each PDU;
First selection unit, for concentrating the load value of each PDU according to the PDU of the target LFU, from the target LFU PDU concentrate choose the smallest first PDU of load value, the first PDU is used to provide the described target LFU, to realize the mesh Mark service.
10. media controller according to claim 9, which is characterized in that the media controller further includes the second acquisition Unit and the second selection unit;
The second acquisition unit, for from the PDU of the target LFU concentrate choose the smallest first PDU of load value after, The first information that the first PDU is sent is obtained, the first information is used to indicate the currently running state of the first PDU;
Second selection unit, for when according to the first information determine the first PDU be operating abnormally when, from the mesh The PDU for marking LFU, which is concentrated, chooses the 2nd PDU, and the PDU that the 2nd PDU is the target LFU is concentrated in addition to the first PDU, Load value the smallest PDU, the 2nd PDU are used to provide the described target LFU, to realize the destination service.
11. media controller according to any one of claims 7 to 10, which is characterized in that the media controller is also Including creating unit;
The creating unit, in the mapping relations according to preset LFU and physical equipment unit PDU collection, searching described the Before the corresponding first PDU collection of one LFU and the corresponding 2nd PDU collection of the 2nd LFU, the described of the LFU and PDU collection is created Mapping relations.
12. media controller according to claim 11, which is characterized in that the creating unit is specifically used for:
The second information that the PDU concentrates each PDU to send is received, it is corresponding that second information is used to indicate each PDU LFU,
When the corresponding LFU of each PDU is identical, the mapping relations between the LFU and each PDU are created.
CN201510254179.8A 2015-05-18 2015-05-18 A kind of method and media controller for realizing service Active CN106302321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510254179.8A CN106302321B (en) 2015-05-18 2015-05-18 A kind of method and media controller for realizing service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510254179.8A CN106302321B (en) 2015-05-18 2015-05-18 A kind of method and media controller for realizing service

Publications (2)

Publication Number Publication Date
CN106302321A CN106302321A (en) 2017-01-04
CN106302321B true CN106302321B (en) 2019-11-05

Family

ID=57632430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510254179.8A Active CN106302321B (en) 2015-05-18 2015-05-18 A kind of method and media controller for realizing service

Country Status (1)

Country Link
CN (1) CN106302321B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8005879B2 (en) * 2005-11-21 2011-08-23 Sap Ag Service-to-device re-mapping for smart items
US20070118496A1 (en) * 2005-11-21 2007-05-24 Christof Bornhoevd Service-to-device mapping for smart items
US8131838B2 (en) * 2006-05-31 2012-03-06 Sap Ag Modular monitor service for smart item monitoring
US8335841B2 (en) * 2010-09-30 2012-12-18 Microsoft Corporation Logical networks
CN103188298A (en) * 2011-12-29 2013-07-03 青岛海尔软件有限公司 Method for virtualization of traditional device
CN103312715B (en) * 2013-06-14 2016-08-10 西安交通大学 A kind of home network system architecture of web oriented service

Also Published As

Publication number Publication date
CN106302321A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN109845303B (en) Management method and management unit for network slices
KR101932872B1 (en) Methods, devices, and programs for management and orchestration of network functions virtualization
EP3701678B1 (en) Methods for defining a network service descriptor (nsd) for a network service (ns), and network functions virtualization (nfv) orchestrator (nfvo) using said nsd
EP3664372A1 (en) Network management method and related device
CN108462592A (en) Resource allocation methods based on SLA and NFVO
CN111767144B (en) Transaction route determination method, device, equipment and system for transaction data
CN108132827B (en) Network slice resource mapping method, related equipment and system
CN106790692A (en) A kind of load-balancing method and device of many clusters
CN105407138B (en) Configuration file loading method and device, communication equipment
CN106201648A (en) A kind of virtual machine creation method and device
CN113918268A (en) Multi-tenant management method and device
CN106161603B (en) A method, device and architecture for networking
WO2023086210A1 (en) Hardware accelerator service aggregation
CN104503768A (en) Call method and device for application programming interface (API)
CN116225679A (en) Computing power network scheduling method, computing power network scheduling device and storage medium
CN104331330B (en) Resource pool generation method and device
CN107276833A (en) A kind of node information management method and device
CN106302321B (en) A kind of method and media controller for realizing service
CN106330519B (en) A method and system for communicating messages between network management systems
CN103338246A (en) Method and system for selecting virtual machine in allocation process of infrastructure construction cloud resource
WO2017070963A1 (en) Method, apparatus, and system for deploying virtual resources
CN106528488B (en) Computing cluster system and control method in a kind of single machine
CN104994137B (en) A method of network transparent proxy
CN104199741A (en) Virtual data management method for cloud computing environment
CN103905534A (en) Global load balancing method and device based on operator city information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant