WO2013041012A1 - Ptn设备中的资源配置方法及装置 - Google Patents

Ptn设备中的资源配置方法及装置 Download PDF

Info

Publication number
WO2013041012A1
WO2013041012A1 PCT/CN2012/081534 CN2012081534W WO2013041012A1 WO 2013041012 A1 WO2013041012 A1 WO 2013041012A1 CN 2012081534 W CN2012081534 W CN 2012081534W WO 2013041012 A1 WO2013041012 A1 WO 2013041012A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
configuration
service
module
service layer
Prior art date
Application number
PCT/CN2012/081534
Other languages
English (en)
French (fr)
Inventor
刘伟
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013041012A1 publication Critical patent/WO2013041012A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/72Admission control; Resource allocation using reservation actions during connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
    • H04L47/762Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions triggered by the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/74Admission control; Resource allocation measures in reaction to resource unavailability
    • H04L47/748Negotiation of resources, e.g. modification of a request

Definitions

  • the present invention relates to the field of communications, and in particular to a resource allocation method and apparatus in a PTN (Packet Transport Network) device.
  • PTN Packet Transport Network
  • a PTN device there are various resources such as tunnels, pseudowires, tags, and ports.
  • resources such as tunnels, pseudowires, tags, and ports.
  • customer layer and service layer associations among various resources.
  • A occupies resources
  • A is a client layer
  • B is a service layer. Relationships can be divided into two types: exclusive and shared. The meaning of sharing is that if the same type of resource Al, A2 can simultaneously serve as the client layer of resource B, then Al, A2 is the shared resource B.
  • Exclusive means: If the same type of resource A1 is used as the client layer of resource B, the resource A2 of the same type as A1 may not be the client layer of resource B or the resource C of the same type as A1 or the resource B.
  • Customer layer If the same type of resource A1 is used as the client layer of resource B, the resource A2 of the same type as A1 may not be the client layer of resource B or the resource C of the same type as A1 or the resource B.
  • a resource configuration method in a PTN device including: registering an association relationship between a first resource and a second resource in a resource pool, where the association relationship includes exclusive or sharing of the first resource
  • the second resource is configured to determine whether to configure the second resource as the service layer of the third resource according to the association relationship between the first resource and the second resource and the service configuration manner of the third resource.
  • the third resource requests the second resource, determining whether to configure the second resource as the service layer of the third resource according to the association relationship between the first resource and the second resource and the service configuration manner of the third resource, including : When the third resource application shares the second resource, and the service configuration mode of the third resource is the full amount configuration, the second resource is configured as the service layer of the third resource.
  • the third resource requests the second resource, determining whether to configure the second resource as the service layer of the third resource according to the association relationship between the first resource and the second resource and the service configuration manner of the third resource, including When the third resource applies for the second resource and the service configuration mode of the third resource is incremental configuration, the resource conflict error message is returned.
  • the third resource requests the second resource, determining whether to configure the second resource as the service layer of the third resource according to the association relationship between the first resource and the second resource and the service configuration manner of the third resource, including
  • the third resource requests to share the second resource
  • the first resource exclusively uses the second resource
  • the service configuration mode of the third resource is an incremental configuration, and the resource conflict error information is returned.
  • the third resource requests the second resource, determining whether to configure the second resource as the service layer of the third resource according to the association relationship between the first resource and the second resource and the service configuration manner of the third resource, including
  • the third resource requests to share the second resource
  • the first resource shares the second resource
  • the service configuration mode of the third resource is an incremental configuration
  • the second resource is configured as a service layer of the third resource.
  • the first resource or the second resource or the third resource is at least one of the following: a tunnel, a pseudowire, a label, a port.
  • a resource configuration apparatus which is applied to a PTN device, and includes: a registration module, configured to register an association relationship between a first resource and a second resource in a resource pool, where The association relationship includes: the first resource exclusive or the second resource is shared; the configuration module is configured to: when the third resource requests the second resource, determine the association relationship between the first resource and the second resource, and the service configuration mode of the third resource Whether to configure the second resource as the service layer of the third resource.
  • the configuration module includes: a first configuration sub-module, configured to configure the second resource as the third resource when the third resource application shares the second resource and the service configuration mode of the third resource is the full-scale configuration Service layer.
  • the configuration module includes: a second configuration sub-module, configured to return a resource conflict error message when the third resource application monopolizes the second resource and the service configuration mode of the third resource is an incremental configuration.
  • the configuration module includes: the configuration module includes: a third configuration sub-module, where the third resource is configured to share the second resource, the first resource is the second resource, and the third resource is configured in the incremental configuration , set to return a resource conflict error message.
  • the configuration module includes: a fourth configuration sub-module, configured to: when the third resource application shares the second resource, the first resource shares the second resource, and the service configuration mode of the third resource is incrementally configured, The second resource is configured as a service layer of the third resource.
  • FIG. 3 is a flow chart of a resource configuration method according to Embodiment 2 of the present invention
  • Figure 4 is a block diagram of a resource configuration apparatus according to a second embodiment of the present invention
  • Figure 5 is a block diagram showing a structure of a resource configuration apparatus according to a third embodiment of the present invention
  • FIG. 7 is a structural block diagram of a resource configuration apparatus according to Embodiment 5 of the present invention.
  • Step S202 Register an association relationship between a first resource and a second resource in a resource pool, where the association relationship includes the first resource exclusive or sharing the second resource.
  • Step S204 when the third resource applies for the second resource, determining, according to the association relationship between the first resource and the second resource, and the service configuration manner of the third resource, whether to configure the second resource as the The service layer of the third resource.
  • Step S204 when comprehensively referring to resource sharing or exclusive mode, and service configuration mode, resources are effectively occupied or released, resource conflicts are avoided, and the stability of the system is improved.
  • step S204 the following resource allocation situation is included:
  • the third resource application shares the second resource, and the service configuration mode of the first resource is the full amount configuration
  • the second resource is configured as the service layer of the third resource.
  • the third resource requests exclusive second resource, and the service configuration mode of the first resource is incremental configuration
  • the resource conflict error information is returned.
  • the third resource requests to share the second resource, and the first resource occupies the second resource, and the service configuration mode of the third resource is incremental configuration
  • the resource conflict error information is returned.
  • the third resource requests to share the second resource the first resource shares the second resource, and the service configuration mode of the third resource is an incremental configuration
  • the second resource is configured as a service layer of the third resource.
  • the first resource, the second resource, and the third resource may be tunnels, pseudowires, labels, or ports in the PTN device.
  • Embodiment 2 This embodiment describes resource sharing and mutual exclusion to implement sharing or mutual exclusion of a group of client layer resources to a service layer resource to improve system reliability.
  • FIG. 3 is a flowchart of a resource configuration method according to Embodiment 2 of the present invention. As shown in FIG. 3, the following steps are included: Step S302: Define a resource possession group. In this embodiment, the following definition of the resource possession group is performed: typedef enum
  • the resource occupancy group means different types of resources. Eight, C, D, E can be used as the client layer with resources B.
  • the shared bit of A to B is 0x1, the shared bit of C to B is 0x2, and the shared bit of D to B is 0x8.
  • Step S302 defining whether the resources A, C, and E share or mutually exclusive attributes for the resource B. If resource A needs to monopolize resource B, then the shared sum of A is 0.
  • Step S306 Perform service configuration of the resource, and use the resource management module to perform service configuration.
  • the resource management module is mainly responsible for resource registration, conflict detection, resource preemption, and release. When a resource is first used, it needs to be registered in the resource pool. When the resource is used for the second time, if it is a sharing mode, whether it is an incremental or a full amount, the usage information of the resource is added in the resource pool. If it is exclusive, in the case of incremental configuration, an error is returned, indicating that the resource is already occupied.
  • Step S402 Perform a resource application.
  • step S404 it is determined whether the resource is already occupied. If it is not occupied, step S416 is performed, and if it is occupied, step S406 is performed.
  • step S406 it is determined whether the current configuration is an incremental configuration. If yes, step S412 is performed. If the configuration is full, step S408 is performed.
  • Step S410 notifying the original occupant to release the resource, and executing step S416.
  • Step S412 determining the current resource application mode, if it is the exclusive mode, executing step S418. If it is the sharing mode, step S414 is performed.
  • Step S414 determining whether the resource is occupied by sharing, if yes, executing step S416; if otherwise, performing step S418.
  • the resource group contains resources eight, C, and D. Among them, A, C and D can occupy resources.
  • the shared bit of A is 0x1, the shared bit of C is 0x2, and the shared bit of D is 0x8.
  • FIG. 5 is a flowchart of a resource configuration method according to Embodiment 3 of the present invention. As shown in FIG. 5, the method includes the following steps: Step S502: Resource C occupies resource 3. If the resource pool is found, it is found that B is occupied for the first time, and the information of resource B occupied by resource C is registered in the resource pool. In step S504, the resource D occupies the resource 3. Find the resource pool and find that B is already occupied by C.
  • step S506 the resource A occupies the resource 3. If it is the incremental configuration mode, go to step S508, if it is the full amount configuration, go to step S510; Step S508, because A is occupying the resource B in an exclusive manner, look up the resource pool, and find that the resource B has been occupied by the resource C and the resource D. , then an error is returned, indicating that resource B is already occupied.
  • Step S510 Since A is occupying the resource B in an exclusive manner, and searching for the resource pool, and discovering that the resource B has been occupied by the resource C and the resource D, respectively, the resource C and the resource D are respectively notified to release the binding relationship with the resource B. Delete the binding relationship between 1), C, and B in the resource pool, and then register the binding relationship between resource A and resource B in the resource pool.
  • FIG. 6 is a structural block diagram of a resource configuration apparatus according to Embodiment 4 of the present invention. As shown in FIG. 6, the resource configuration apparatus includes: a registration module 10 and a configuration module 20.
  • the registration module 10 is configured to register an association relationship between the first resource and the second resource in the resource pool, where the association relationship includes the first resource exclusive or sharing the second resource.
  • the configuration module 20 is configured to determine, according to the association relationship between the first resource and the second resource and the service configuration manner of the third resource, whether to configure the second resource as the service of the third resource, when the third resource requests the second resource. Floor.
  • resources are occupied or released by comprehensively referring to resource sharing or exclusive mode, and service configuration mode, thereby avoiding resource conflicts.
  • FIG. 7 is a structural block diagram of a resource configuration apparatus according to Embodiment 5 of the present invention. As shown in FIG. 7, in the embodiment, the functional modules in the implementation four are included: the registration module 10 and the configuration module 20.
  • the configuration module includes: a first configuration sub-module 21, a second configuration sub-module 22, a third configuration sub-module 23, and a fourth configuration sub-module 24.
  • the first configuration sub-module 21 configures the second resource as the service layer of the third resource, when the third resource is configured to share the second resource and the service configuration mode of the third resource is the full-scale configuration.
  • the service configuration mode of the third resource is an incremental configuration
  • the second configuration sub-module 22 returns the resource conflict error information.
  • the third configuration sub-module 23 returns the resource conflict error information.
  • the third resource requests to share the second resource
  • the first resource shares the second resource
  • the service configuration mode of the third resource is an incremental configuration
  • the fourth configuration sub-module 24 configures the second resource as the service layer of the third resource.
  • a method for realizing sharing and mutual exclusion of resources is provided. By applying this method, a group of client layer resources can be shared or mutually exclusive to a service layer resource to improve system reliability.
  • the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • the computing device may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明提供了一种PTN设备中的资源配置方法及装置,该方法包括:在资源池中注册第一资源与第二资源之间的关联关系,其中,关联关系包括第一资源独占或共享第二资源;当第三资源申请第二资源时,根据第一资源与第二资源之间的关联关系以及第三资源的业务配置方式确定是否将第二资源配置为第三资源的服务层。在本发明中,通过综合参考资源共享或独占的方式,以及业务配置方式,从而有效地对资源进行占用或者释放,避免了资源的冲突,达到了提高系统稳定性的效果。

Description

PTN设备中的资源配置方法及装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种 PTN (Packet Transport Network, 分 组传送网) 设备中的资源配置方法及装置。 背景技术
PTN设备中, 存在着隧道、 伪线、标签、 端口等多种资源。各种资源间有客户层、 服务层关联关系。如图 1所示, 如果资源 A占有资源 则 A是客户层, B是服务层。 关联关系可以分为两种: 独占和共享。 共享的意思是, 如果相同类型的资源 Al, A2 可以同时作为资源 B的客户层, 则 Al, A2是共享资源 B。 独占的意思是: 如果相同 类型的资源 A1作为资源 B的客户层,那么与 A1是相同类型的资源 A2不可以作为资 源 B的客户层或者与 A1不是相同类型的资源 C也不可以作为资源 B的客户层。 配置业务的方式可以分为两种类型: (1 ) 增量; (2) 全量。 这两种配置方式的区 别是: 对于独占的方式, 假如资源 A1作为资源 B的客户层, 这个时候用增量的方式 配置业务 A2作为资源 B的客户层时, 则返回错误, 提示资源 B已经被占用, 但是用 全量的方式配置业务 A2作为资源 B的客户层时, 需要先解除 A1和 B的关联关系, 然后建立 A2和 B的关联关系。 在现有技术中, 当进行资源配置的时候, 如果出现资源冲突错误, 需要人工干预, 处理比较复杂。 发明内容 本发明提供了一种 PTN设备中的资源配置方法及装置, 以至少解决上述资源配置 中出现资源冲突错误时, 处理比较复杂的问题。 根据本发明的一个方面, 提供了一种 PTN设备中的资源配置方法, 包括: 在资源 池中注册第一资源与第二资源之间的关联关系, 其中, 关联关系包括第一资源独占或 共享第二资源; 当第三资源申请第二资源时, 根据第一资源与第二资源之间的关联关 系以及第三资源的业务配置方式确定是否将第二资源配置为第三资源的服务层。 优选地, 当第三资源申请第二资源时, 根据第一资源与第二资源之间的关联关系 以及第三资源的业务配置方式确定是否将第二资源配置为第三资源的服务层, 包括: 当第三资源申请共享第二资源, 第三资源的业务配置方式为全量配置, 则将第二资源 配置为第三资源的服务层。 优选地, 当第三资源申请第二资源时, 根据第一资源与第二资源之间的关联关系 以及第三资源的业务配置方式确定是否将第二资源配置为第三资源的服务层, 包括: 当第三资源申请独占第二资源, 第三资源的业务配置方式为增量配置, 则返回资源冲 突错误信息。 优选地, 当第三资源申请第二资源时, 根据第一资源与第二资源之间的关联关系 以及第三资源的业务配置方式确定是否将第二资源配置为第三资源的服务层, 包括: 当第三资源申请共享第二资源, 第一资源独占第二资源, 第三资源的业务配置方式为 增量配置, 则返回资源冲突错误信息。 优选地, 当第三资源申请第二资源时, 根据第一资源与第二资源之间的关联关系 以及第三资源的业务配置方式确定是否将第二资源配置为第三资源的服务层, 包括: 当第三资源申请共享第二资源, 第一资源共享第二资源, 第三资源的业务配置方式为 增量配置, 将第二资源配置为第三资源的服务层。 优选地, 第一资源或第二资源或第三资源至少为以下一种: 隧道、 伪线、 标签、 端口。 根据本发明的另一方面, 提供了一种资源配置装置, 应用于 PTN设备, 该装置包 括: 注册模块, 设置为在资源池中注册第一资源与第二资源之间的关联关系, 其中, 关联关系包括第一资源独占或共享第二资源; 配置模块, 设置为当第三资源申请第二 资源时, 根据第一资源与第二资源之间的关联关系以及第三资源的业务配置方式确定 是否将第二资源配置为第三资源的服务层。 优选地, 配置模块包括: 第一配置子模块, 在当第三资源申请共享第二资源, 第 三资源的业务配置方式为全量配置的情况下, 设置为将第二资源配置为第三资源的服 务层。 优选地, 配置模块包括: 第二配置子模块, 在当第三资源申请独占第二资源, 第 三资源的业务配置方式为增量配置的情况下, 设置为返回资源冲突错误信息。 优选地, 配置模块包括: 配置模块包括: 第三配置子模块, 在当第三资源申请共 享第二资源,第一资源独占第二资源,第三资源的业务配置方式为增量配置的情况下, 设置为返回资源冲突错误信息。 优选地, 配置模块包括: 第四配置子模块, 在当第三资源申请共享第二资源, 第 一资源共享第二资源, 第三资源的业务配置方式为增量配置的情况下, 设置为将第二 资源配置为第三资源的服务层。 在本发明中, 通过综合参考资源共享或独占的方式, 以及业务配置方式, 从而有 效地对资源进行占用或者释放, 避免了资源的冲突, 达到了提高系统稳定性的效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中- 图 1是根据相关技术的资源之间的关联关系示意图; 图 2是根据本发明实施例一的资源配置方法流程图; 图 3是根据本发明实施例二的资源配置方法流程图; 图 4是根据本发明实施例二的业务配置流程图; 图 5是根据本发明实施例三的资源配置装置结构框图; 图 6是根据本发明实施例四的资源配置装置结构框图; 以及 图 7是根据本发明实施例五的资源配置装置结构框图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 实施例一 图 2是根据本发明实施例一的资源配置方法流程图。如图 2所示,包括以下步骤: 步骤 S202, 在资源池中注册第一资源与第二资源之间的关联关系, 其中, 所述关 联关系包括第一资源独占或共享所述第二资源。 步骤 S204, 当第三资源申请所述第二资源时, 根据所述第一资源与第二资源之间 的关联关系以及第三资源的业务配置方式确定是否将所述第二资源配置为所述第三资 源的服务层。 在本实施例中, 通过综合参考资源共享或独占的方式, 以及业务配置方式, 从而 有效地对资源进行占用或者释放,避免了资源的冲突,达到了提高系统稳定性的效果。 在上述步骤 S204中, 包括以下资源分配情况: 当第三资源申请共享第二资源, 第 资源的业务配置方式为全量配置, 则将第二 资源配置为第三资源的服务层。 当第三资源申请独占第二资源, 第 资源的业务配置方式为增量配置, 则返回资 源冲突错误信息。 当第三资源申请共享第二资源, 第 资源独占第二资源, 第三资源的业务配置方 式为增量配置, 则返回资源冲突错误信息。 当第三资源申请共享第二资源, 第一资源共享第二资源, 第三资源的业务配置方 式为增量配置, 将第二资源配置为第三资源的服务层。 在上述实施例中, 第一资源、 第二资源和第三资源可以为 PTN设备中的隧道、 伪 线、 标签或端口。 实施例二 本实施例描述的是资源的共享、 互斥, 以实现一组客户层资源对一个服务层资源 的共享或者互斥, 以提高系统的可靠性。 图 3是根据本发明实施例二的资源配置方法流程图。如图 3所示,包括以下步骤: 步骤 S302, 定义资源占有组。 在本实施例中, 进行如下资源占有组的定义: typedef enum
AGT_RESGROUP_B_A = 0x1, AGT RESGROUP B C = 0x2. AGT RESGROUP B D = 0x4, AGT RESGROUP B E = 0x8 } E AGT RESGROUP PORT; 资源占用组的意思是不同类型的资源八, C, D, E都可以作为资源有 B的客户层。 其中, A对 B的共享位为 0x1, C对 B的共享位为 0x2, D对 B的共享位为 0x8。 步骤 S302, 定义资源 A、 C和 E对于资源 B的共享还是互斥属性。 如果资源 A 需要独占资源 B, 则 A的共享和为 0, 如果 C和 D,E可以共享 则 C的共享和为 C, D, E的共享位之和, 即 C的共享和为 0xE。 步骤 S306, 进行资源的业务配置, 可使用资源管理模块来进行业务配置, 资源管 理模块主要负责资源的注册、 冲突检测、 资源抢占与释放。 当资源第一次被使用时, 需要把该资源注册到资源池中。 当该资源第二次被使用时, 如果是共享方式, 不管是 增量还是全量的方式, 在资源池里增加该资源的使用信息。 如果是独占方式, 增量配 置时, 返回错误, 提示该资源已经被占用; 全量配置时, 先解除原来的资源占有关系, 再增加这次配置时的资源占有关系。 其中, 图 4是根据实施例二的业务配置流程图, 如图 4所示, 包括以下步骤: 步骤 S402, 进行资源申请。 步骤 S404, 判断该资源是否已经被占用, 如果没有被占用, 则执行步骤 S416, 如果被占用, 则执行步骤 S406。 步骤 S406, 判断本次配置是否是增量配置, 如果是则执行步骤 S412, 如果是全 量配置, 则执行步骤 S408。 步骤 S408, 判断本次申请资源方式, 如果是独占方式, 则执行步骤 S418。 如果 是共享方式, 则执行步骤 S410。 步骤 S410, 通知原来的占用者释放资源, 并执行步骤 S416。 步骤 S412, 判断本次申请资源方式, 如果是独占方式, 则执行步骤 S418。 如果 是共享方式, 则执行步骤 S414。 步骤 S414, 判断该资源是否被共享占用, 如果是, 则执行步骤 S416; 如果否则 执行步骤 S418。 步骤 S416, 增加资源拥有者信息。 步骤 S418, 提示资源冲突错误。 实施例三 在本实施例中, 资源组包含资源八、 C和 D。 其中 A、 C和 D都可以占用资源^ A的共享位为 0x1, C的共享位 0x2, D的共享位为 0x8。 A是独占方式占用资源 B, 则 A的共享和为 0x0, C和 D共享方式占用资源 B, 则 C的共享和为 0xa, D的共享 和为 0x10。 图 5是根据本发明实施例三的资源配置方法流程图, 如图 5所示,包括以下步骤: 步骤 S502, 资源 C占用资源3。 查找资源池, 发现 B是第一次被占用, 则在资源 池中注册资源 C占用资源 B的信息。 步骤 S504, 资源 D占用资源3。 查找资源池, 发现 B已经被 C占用。 而且 D和 C是可以共享方式占用 B, 则在资源池里继续注册资源 D占用资源 B的信息。 步骤 S506, 资源 A占用资源3。 如果是增量配置的方式, 转步骤 S508, 如果是 全量配置的时候, 转步骤 S510; 步骤 S508, 由于 A是独占方式占用资源 B, 查找资源池, 发现资源 B已经被资 源 C和资源 D占用, 则返回错误, 提示资源 B已经被占用。 步骤 S510, 由于 A是独占方式占用资源 B, 查找资源池, 发现资源 B已经被资 源 C和资源 D占用, 则分别通知资源 C和资源 D解除与资源 B的绑定关系。 在资源 池里删除1)、 C与 B的绑定关系, 然后在资源池中注册资源 A和资源 B的绑定关系。 实施例四 图 6是根据本发明实施例四的资源配置装置结构框图。 如图 6所示, 该资源配置 装置包括: 注册模块 10和配置模块 20。 其中, 注册模块 10设置为在资源池中注册第一资源与第二资源之间的关联关系, 其中, 关联关系包括第一资源独占或共享第二资源。 配置模块 20, 设置为当第三资源 申请第二资源时, 根据第一资源与第二资源之间的关联关系以及第三资源的业务配置 方式确定是否将第二资源配置为第三资源的服务层。 在本实施例中, 通过综合参考资源共享或独占的方式, 以及业务配置方式, 从而 有效地对资源进行占用或者释放, 避免了资源的冲突。 实施例五 图 7是根据本发明实施例五的资源配置装置结构框图。 如图 7所示, 在本实施例 中包括实施四中的功能模块: 注册模块 10和配置模块 20。 其中, 配置模块包括: 第一配置子模块 21、 第二配置子模块 22、 第三配置子模块 23和第四配置子模块 24。 其中, 在当第三资源申请共享第二资源, 第三资源的业务配置方式为全量配置的 情况下, 第一配置子模块 21将第二资源配置为第三资源的服务层。 当第三资源申请独占第二资源, 第三资源的业务配置方式为增量配置, 第二配置 子模块 22返回资源冲突错误信息。 当第三资源申请共享第二资源, 第一资源独占第二资源, 第三资源的业务配置方 式为增量配置, 第三配置子模块 23返回资源冲突错误信息。 当第三资源申请共享第二资源, 第一资源共享第二资源, 第三资源的业务配置方 式为增量配置, 第四配置子模块 24将第二资源配置为第三资源的服务层。 在本发明的上述各实施例中, 提供了一种实现资源的共享、 互斥的方法。 通过应 用该方法可实现一组客户层资源对一个服务层资源的共享或者互斥, 以提高系统的可 靠性。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种分组传送网 PTN设备中的资源配置方法, 包括:
在资源池中注册第一资源与第二资源之间的关联关系, 其中, 所述关联关 系包括第一资源独占或共享所述第二资源;
当第三资源申请所述第二资源时, 根据所述第一资源与第二资源之间的关 联关系以及第三资源的业务配置方式确定是否将所述第二资源配置为所述第三 资源的服务层。
2. 根据权利要求 1所述的方法, 其中, 当第三资源申请所述第二资源时, 根据所 述第一资源与第二资源之间的关联关系以及第三资源的业务配置方式确定是否 将所述第二资源配置为所述第三资源的服务层, 包括:
当所述第三资源申请共享所述第二资源, 所述第三资源的业务配置方式为 全量配置, 则将所述第二资源配置为所述第三资源的服务层。
3. 根据权利要求 1所述的方法, 其中, 当第三资源申请所述第二资源时, 根据所 述第一资源与第二资源之间的关联关系以及第三资源的业务配置方式确定是否 将所述第二资源配置为所述第三资源的服务层, 包括:
当所述第三资源申请独占所述第二资源, 所述第三资源的业务配置方式为 增量配置, 则返回资源冲突错误信息。
4. 根据权利要求 1所述的方法, 其中, 当第三资源申请所述第二资源时, 根据所 述第一资源与第二资源之间的关联关系以及第三资源的业务配置方式确定是否 将所述第二资源配置为所述第三资源的服务层, 包括:
当所述第三资源申请共享所述第二资源,所述第一资源独占所述第二资源, 所述第三资源的业务配置方式为增量配置, 则返回资源冲突错误信息。
5. 根据权利要求 1所述的方法, 其中, 当第三资源申请所述第二资源时, 根据所 述第一资源与第二资源之间的关联关系以及第三资源的业务配置方式确定是否 将所述第二资源配置为所述第三资源的服务层, 包括:
当所述第三资源申请共享所述第二资源,所述第一资源共享所述第二资源, 所述第三资源的业务配置方式为增量配置, 将所述第二资源配置为所述第三资 源的服务层。
6. 根据权利要求 1所述的方法, 其中, 所述第一资源或第二资源或第三资源至少 为以下一种- 隧道、 伪线、 标签、 端口。
7. 一种资源配置装置, 应用于分组传送网 PTN设备, 包括:
注册模块, 设置为在资源池中注册第一资源与第二资源之间的关联关系, 其中, 所述关联关系包括第一资源独占或共享所述第二资源;
配置模块, 设置为当第三资源申请所述第二资源时, 根据所述第一资源与 第二资源之间的关联关系以及第三资源的业务配置方式确定是否将所述第二资 源配置为所述第三资源的服务层。
8. 根据权利要求 7所述的装置, 其中, 所述配置模块包括:
第一配置子模块, 在当所述第三资源申请共享所述第 资源, 所述第三资 源的业务配置方式为全量配置的情况下, 设置为将所述第 资源配置为所述第 三资源的服务层。
9. 根据权利要求 7所述的装置, 其中, 所述配置模块包括:
第二配置子模块, 在当所述第三资源申请独占所述第二资源, 所述第三资 源的业务配置方式为增量配置的情况下, 设置为返回资源冲突错误信息。
10. 根据权利要求 7所述的装置, 其中, 所述配置模块包括:
第三配置子模块, 在当所述第三资源申请共享所述第 资源, 所述第 源独占所述第二资源, 所述第三资源的业务配置方式为增 配置的情况下 置为返回资源冲突错误信息。
11. 根据权利要求 7所述的装置, 其中, 所述配置模块包括:
第四配置子模块, 在当所述第三资源申请共享所述第二资源, 所述第一资 源共享所述第二资源, 所述第三资源的业务配置方式为增量配置的情况下, 设 置为将所述第二资源配置为所述第三资源的服务层。
PCT/CN2012/081534 2011-09-22 2012-09-18 Ptn设备中的资源配置方法及装置 WO2013041012A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110284003.9 2011-09-22
CN201110284003.9A CN103023677B (zh) 2011-09-22 2011-09-22 Ptn设备中的资源配置方法及装置

Publications (1)

Publication Number Publication Date
WO2013041012A1 true WO2013041012A1 (zh) 2013-03-28

Family

ID=47913879

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/081534 WO2013041012A1 (zh) 2011-09-22 2012-09-18 Ptn设备中的资源配置方法及装置

Country Status (2)

Country Link
CN (1) CN103023677B (zh)
WO (1) WO2013041012A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869007A (zh) * 2014-02-26 2015-08-26 中兴通讯股份有限公司 一种实现区域自动繁殖的方法及相关设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1459933A (zh) * 2002-05-23 2003-12-03 深圳市中兴通讯股份有限公司 同步数字体系光传输系统中电路业务自动指配的方法
CN101599862A (zh) * 2009-06-30 2009-12-09 中兴通讯股份有限公司 传送多协议标签交换环网保护维护实体组配置方法和装置
US20100107205A1 (en) * 2008-10-27 2010-04-29 Telefonaktiebolaget Lm Ericsson (Publ) Methods and systems for resuming, transferring or copying a multimedia session
CN102137014A (zh) * 2011-03-11 2011-07-27 华为技术有限公司 资源管理方法、系统和资源管理器

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7506090B2 (en) * 2006-06-14 2009-03-17 Honeywell International Inc. System and method for user-configurable resource arbitration in a process control system
CN101155133B (zh) * 2006-09-26 2011-04-20 华为技术有限公司 流量工程链路的信息的处理方法
CN101155064A (zh) * 2006-09-26 2008-04-02 华为技术有限公司 流量工程链路资源信息的处理方法
CN101656630B (zh) * 2009-09-09 2015-09-16 中兴通讯股份有限公司 一种业务保护方法和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1459933A (zh) * 2002-05-23 2003-12-03 深圳市中兴通讯股份有限公司 同步数字体系光传输系统中电路业务自动指配的方法
US20100107205A1 (en) * 2008-10-27 2010-04-29 Telefonaktiebolaget Lm Ericsson (Publ) Methods and systems for resuming, transferring or copying a multimedia session
CN101599862A (zh) * 2009-06-30 2009-12-09 中兴通讯股份有限公司 传送多协议标签交换环网保护维护实体组配置方法和装置
CN102137014A (zh) * 2011-03-11 2011-07-27 华为技术有限公司 资源管理方法、系统和资源管理器

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869007A (zh) * 2014-02-26 2015-08-26 中兴通讯股份有限公司 一种实现区域自动繁殖的方法及相关设备
CN104869007B (zh) * 2014-02-26 2019-11-15 中兴通讯股份有限公司 一种实现区域自动繁殖的方法及相关设备

Also Published As

Publication number Publication date
CN103023677B (zh) 2017-11-24
CN103023677A (zh) 2013-04-03

Similar Documents

Publication Publication Date Title
US10459777B2 (en) Packet processing on a multi-core processor
JP2021516485A (ja) ユーザーデバイス及びユーザーデバイスの間の測位信号の送受信方法
US20140056152A1 (en) Port mirroring in distributed switching systems
US20140122683A1 (en) System and Method for Virtual Network Abstraction and Switching
CN115280735B (zh) 第五代蜂窝网络切片的应用容器的安全创建
CN104937885A (zh) 用于结构交换机的全局vlan
CN102349280A (zh) 用于合并对等覆盖网络的方法和装置
US20150309808A1 (en) Method and System on Chip (SoC) for Adapting a Reconfigurable Hardware for an Application in Runtime
US10470111B1 (en) Protocol to detect if uplink is connected to 802.1D noncompliant device
WO2017012383A1 (zh) 一种服务注册方法、使用方法及相关装置
CA3030250A1 (en) File storage method and apparatus for blockchain network
WO2015113387A1 (zh) 一种相邻节点注册方法和装置、跨节点注册方法和系统
CN107005435A (zh) 一种网络服务描述符上架方法及装置
EP2310952A2 (en) A method and system on chip (soc) for adapting a reconfigurable hardware for an application at runtime
CN106909197B (zh) 一种虚拟化主机时间管理方法及虚拟化主机系统
WO2013041012A1 (zh) Ptn设备中的资源配置方法及装置
WO2015024388A1 (zh) 主机路由获取方法、装置及系统
US10728178B2 (en) Apparatus and method for distribution of congestion information in a switch
CN103501260A (zh) 企业网的网络配置方法和接入设备
US8830854B2 (en) System and method for managing parallel processing of network packets in a wireless access device
US20170046306A1 (en) Data processing method, processor, and data processing device
US9007910B2 (en) Load balancing across a link aggregation group
US20180109401A1 (en) Data transfer system, data transfer server, data transfer method, and program recording medium
US10462099B2 (en) Auto-attach signaling used as wireless local area network (WLAN) selection criterion
US20230131771A1 (en) Security policy enforcement for resources in bridge mode

Legal Events

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

Ref document number: 12834256

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12834256

Country of ref document: EP

Kind code of ref document: A1