CN112738663B - Method, device, equipment and storage medium for determining double optical fiber paths of machine room - Google Patents

Method, device, equipment and storage medium for determining double optical fiber paths of machine room Download PDF

Info

Publication number
CN112738663B
CN112738663B CN202110032340.2A CN202110032340A CN112738663B CN 112738663 B CN112738663 B CN 112738663B CN 202110032340 A CN202110032340 A CN 202110032340A CN 112738663 B CN112738663 B CN 112738663B
Authority
CN
China
Prior art keywords
candidate
computer
optical fiber
building
pipeline
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
CN202110032340.2A
Other languages
Chinese (zh)
Other versions
CN112738663A (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.)
State-owned Assets Supervision and Administration Commission of the State Council
Original Assignee
State-owned Assets Supervision and Administration Commission of the State Council
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 State-owned Assets Supervision and Administration Commission of the State Council filed Critical State-owned Assets Supervision and Administration Commission of the State Council
Priority to CN202110032340.2A priority Critical patent/CN112738663B/en
Publication of CN112738663A publication Critical patent/CN112738663A/en
Application granted granted Critical
Publication of CN112738663B publication Critical patent/CN112738663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0086Network resource allocation, dimensioning or optimisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/009Topology aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application relates to the technical field of communication, and provides a method, a device, equipment and a storage medium for determining double optical fiber paths of an equipment room, which comprises the following steps: the method comprises the steps of firstly determining target buildings to which two target machine rooms to be subjected to double-optical-fiber-path configuration respectively belong, determining candidate buildings with two end buildings as the two target buildings in a plurality of pre-configured building groups, and further determining candidate optical fiber paths which can be used for double-optical-fiber-path configuration in two target machine rooms based on the pipeline overlapping degree between the candidate optical fiber paths in pipelines of the candidate optical fiber paths corresponding to the candidate buildings, so that the range of the optical fiber paths needing to be traversed and searched is reduced, the calculation amount is greatly reduced, and the calculation complexity is reduced.

Description

机房间的双光纤通路的确定方法、装置、设备和存储介质Method, device, device and storage medium for determining dual fiber paths in computer room

技术领域technical field

本申请涉及通信技术领域,特别是涉及一种机房间的双光纤通路的确定方法、装置、计算机设备和存储介质。The present application relates to the field of communication technologies, and in particular, to a method, apparatus, computer equipment and storage medium for determining a dual-fiber path in a computer room.

背景技术Background technique

随着通信技术的发展,为了保证通信为保证通信的正常进行,出现了在两个机房间配置双路由的光纤通路的技术。而在配置双路由光纤通路(可简称为双光纤通路)的过程中,快速确定合适的双光纤通路极大影响着配置效率。但是,随着移动网络和光纤到户的固网建设,运营商的机房、设备、光缆的数量呈几何倍数的增加,如果遍历已有的各机房确定双光纤通路,运算量较大,特别是在同一机楼不同机房间存在光路交叉情况(飞线)中,飞线会极大改变网状网络路径复杂度,几何级数增长。With the development of communication technology, in order to ensure the normal communication of communication, the technology of configuring dual-route optical fiber paths in two computer rooms has appeared. In the process of configuring a dual-route fiber channel (may be referred to as a dual fiber channel for short), quickly determining a suitable dual fiber channel greatly affects configuration efficiency. However, with the construction of mobile networks and fiber-to-the-home fixed networks, the number of operators' computer rooms, equipment, and optical cables has increased exponentially. In the case of optical path crossings (flying lines) in different rooms in the same building, the flying lines will greatly change the path complexity of the mesh network, and the geometric progression will increase.

发明内容SUMMARY OF THE INVENTION

基于此,有必要针对上述技术问题,提供一种机房间的双光纤通路的确定方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a method, apparatus, computer equipment, and storage medium for determining a dual-fiber path in a computer room for the above-mentioned technical problems.

一种机房间的双光纤通路的确定方法,所述方法包括:A method for determining a dual-fiber path in a computer room, the method comprising:

获取待进行双光纤通路配置的两个目标机房各自所属的目标机楼;Obtain the target computer buildings to which the two target computer rooms to be configured with dual fiber channels belong;

获取预先配置的多个机楼组,并确定各机楼组所包括的依次关联的多个机楼中的两端机楼;不同机楼组所包括的多个机楼中的至少一个机楼不同;Acquire multiple pre-configured equipment building groups, and determine the equipment buildings at both ends of the multiple equipment buildings associated in sequence included in each equipment building group; at least one equipment building among the multiple equipment buildings included in different equipment building groups different;

从所述多个机楼组中,确定所述两端机楼为所述目标机楼的多个候选机楼组;From the plurality of equipment building groups, determine that the equipment buildings at both ends are multiple candidate equipment building groups of the target equipment building;

获取所述多个候选机楼组对应的连通所述两个目标机房的候选光纤通路,并确定各候选光纤通路对应的管路;Obtaining the candidate optical fiber paths corresponding to the multiple candidate computer building groups connecting the two target computer rooms, and determining the pipeline corresponding to each candidate optical fiber path;

基于任两个候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路。Based on the degree of pipe overlap between any two candidate fiber paths, two candidate fiber paths as dual fiber paths of the two target computer rooms are determined.

在其中一个实施例中,所述获取所述多个候选机楼组对应的连通所述两个目标机房的候选光纤通路,并确定各候选光纤通路对应的管路,包括:In one embodiment, the acquiring the candidate optical fiber paths corresponding to the multiple candidate equipment building groups connecting the two target equipment rooms, and determining the pipeline corresponding to each candidate optical fiber path, includes:

从所述多个候选机楼组中确定所包括机楼数量最少的第一候选机楼组;determining, from the plurality of candidate terminal groups, a first candidate terminal group with the least number of terminals;

获取所述第一候选机楼组对应的连通所述两个目标机房的第一候选光纤通路,并确定各所述第一候选光纤通路对应的管路;acquiring the first candidate optical fiber paths connecting the two target equipment rooms corresponding to the first candidate computer building group, and determining the pipeline corresponding to each of the first candidate optical fiber paths;

若任两个所述第一候选光纤通路间的管路重叠度均小于管路重叠度阈值,则从所述多个候选机楼组中确定所包括的机楼数量为倒数第二的第二候选机楼组;If the degree of pipe overlap between any two of the first candidate optical fiber paths is less than the threshold of pipe overlap degree, the number of computer buildings included in the plurality of candidate equipment building groups is determined to be the second from the penultimate Candidate aircraft building group;

获取所述第二候选机楼组对应的连通所述两个目标机房的第二候选光纤通路,并确定各所述第二候选光纤通路对应的管路;Acquiring second candidate optical fiber paths connecting the two target computer rooms corresponding to the second candidate computer building group, and determining the pipeline corresponding to each of the second candidate optical fiber paths;

所述基于任两个候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路,包括:The determining, based on the degree of pipeline overlap between any two candidate optical fiber paths, as the dual fiber paths of the two target computer rooms, includes:

基于任一个所述第一候选光纤通路与任一个所述第二候选光纤通路间的管路重叠度,或任两个所述第二候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路。Based on the degree of pipe overlap between any one of the first candidate fiber paths and any one of the second candidate fiber paths, or the degree of pipe overlap between any two of the second candidate fiber paths Two candidate fiber paths for dual fiber paths in the target room.

在其中一个实施例中,所述基于任一个所述第一候选光纤通路与任一个所述第二候选光纤通路间的管路重叠度,或任两个所述第二候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路,包括:In one of the embodiments, the method is based on the degree of pipe overlap between any one of the first candidate fiber paths and any one of the second candidate fiber paths, or the pipe line between any two of the second candidate fiber paths. The degree of path overlap is used to determine two candidate fiber paths as dual fiber paths of the two target rooms, including:

若任一个所述第一候选光纤通路与任一个所述第二候选光纤通路间的管路重叠度和任两个所述第二候选光纤通路间的管路重叠度均大于所述管路重叠度阈值,则将任一个所述第一候选光纤通路与任一个所述第二候选光纤通路作为所述两个目标机房间的双光纤通路的两个候选光纤通路。If the degree of pipe overlap between any one of the first candidate fiber channels and any one of the second candidate fiber channels and the degree of pipe overlap between any two of the second candidate fiber channels are greater than the pipe overlap If the degree threshold is set, any one of the first candidate optical fiber channels and any one of the second candidate optical fiber channels are used as two candidate optical fiber channels of the dual optical fiber channels of the two target computer rooms.

在其中一个实施例中,光纤通路对应的管路包括物理上直通无分叉的多个物理管路段压缩形成一个逻辑管路段。In one of the embodiments, the pipeline corresponding to the optical fiber channel includes a plurality of physical pipeline segments that are physically straight without bifurcations and are compressed to form a logical pipeline segment.

在其中一个实施例中,所述逻辑管路段仅包括两个物理管路段,所述逻辑管路段所包括的两个物理管路段分别为所述多个物理管路段中的首个物理管理段和最后一个物理管路段。In one embodiment, the logical pipeline segment includes only two physical pipeline segments, and the two physical pipeline segments included in the logical pipeline segment are the first physical management segment and the first physical pipeline segment in the multiple physical pipeline segments, respectively. The last physical run segment.

在其中一个实施例中,光纤通路是基于两个机房间具备的局向光纤形成的;各局向光纤铺设在相通的多个物理管路段中;同一局向光纤的多个物理管路段形成对应的局向管路;In one of the embodiments, the optical fiber path is formed based on the office-direction optical fibers provided in the two computer rooms; each office-direction optical fiber is laid in multiple physical pipeline segments that communicate with each other; the multiple physical pipeline segments of the same office-direction optical fiber form corresponding Office direction pipeline;

若两个机房间所具备的多个局向光纤对应的局向管路间的相似度大于相似度阈值,则所述两个机房间所具备的所述多个局向光纤被归并对应于同一局向管路。If the similarity between the office-direction pipes corresponding to the multiple office-direction fibers in the two computer rooms is greater than the similarity threshold, the multiple office-direction fibers in the two computer rooms are merged to correspond to the same Office to pipeline.

一种机房间的双光纤通路的确定装置,所述装置包括:A device for determining a dual-fiber path in a computer room, the device comprising:

目标机楼确定模块,用于获取待进行双光纤通路配置的两个目标机房各自所属的目标机楼;The target computer building determination module is used to obtain the target computer buildings to which the two target computer rooms to be configured with dual fiber channels belong;

机楼组获取模块,用于获取预先配置的多个机楼组,并确定各机楼组所包括的依次关联的多个机楼中的两端机楼;不同机楼组所包括的多个机楼中存在至少一个机楼不同;The computer building group acquisition module is used to acquire multiple pre-configured computer building groups, and determine the computer buildings at both ends of the multiple computer buildings that are sequentially associated with each computer building group; There is at least one different engine building in the engine building;

候选机楼组确定模块,用于从所述多个机楼组中,确定所述两端机楼为所述两个目标机楼的多个候选机楼组;A candidate computer building group determination module, configured to determine, from the multiple computer building groups, that the two end computer buildings are multiple candidate computer building groups of the two target computer buildings;

管路确定模块,用于获取所述多个候选机楼组对应的连通所述目标机房的候选光纤通路,并确定各候选光纤通路对应的管路;a pipeline determination module, configured to acquire candidate optical fiber paths corresponding to the multiple candidate computer building groups that connect to the target computer room, and determine the pipeline corresponding to each candidate optical fiber path;

双光纤通路确定模块,用于基于任意两个候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路。The dual-fiber channel determination module is configured to determine, based on the degree of pipeline overlap between any two candidate fiber-optic channels, two candidate fiber-optic channels serving as dual-fiber channels of the two target computer rooms.

在其中一个实施例中,所述管路确定模块,还用于从所述多个候选机楼组中确定所包括机楼数量最少的第一候选机楼组;获取所述第一候选机楼组对应的连通所述两个目标机房的第一候选光纤通路,并确定各所述第一候选光纤通路对应的管路;若任两个所述第一候选光纤通路间的管路重叠度均小于管路重叠度阈值,则从所述多个候选机楼组中确定所包括的机楼数量为倒数第二的第二候选机楼组;获取所述第二候选机楼组对应的连通所述两个目标机房的第二候选光纤通路,并确定各所述第二候选光纤通路对应的管路;In one embodiment, the pipeline determination module is further configured to determine, from the plurality of candidate equipment building groups, a first candidate equipment building group that includes the least number of equipment buildings; obtain the first candidate equipment building group corresponding first candidate fiber paths connecting the two target equipment rooms, and determine the pipeline corresponding to each of the first candidate fiber paths; if the pipeline overlap between any two first candidate fiber paths is the same If it is less than the pipeline overlap threshold, the number of included airports is determined from the multiple candidate building groups as the penultimate second candidate building group; the connection location corresponding to the second candidate building group is obtained the second candidate fiber paths of the two target computer rooms, and determine the pipeline corresponding to each of the second candidate fiber paths;

所述双光纤通路确定模块,还用于基于任一个所述第一候选光纤通路与任一个所述第二候选光纤通路间的管路重叠度,或任两个所述第二候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路。The dual-fiber path determination module is further configured to, based on the degree of pipe overlap between any one of the first candidate fiber paths and any one of the second candidate fiber paths, or between any two of the second candidate fiber paths The pipeline overlap degree is determined, and two candidate fiber paths are determined as the dual fiber paths of the two target rooms.

一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述的方法。A computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the above method when executing the computer program.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述的方法。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the above-mentioned method.

上述机房间的双光纤通路的确定方法、装置、计算机设备和存储介质,获取待进行双光纤通路配置的两个目标机房各自所属的目标机楼;获取预先配置的多个机楼组,并确定各机楼组所包括的依次关联的多个机楼中的两端机楼;不同机楼组所包括的多个机楼中的至少一个机楼不同;从所述多个机楼组中,确定所述两端机楼为所述目标机楼的多个候选机楼组;获取所述多个候选机楼组对应的连通所述两个目标机房的候选光纤通路,并确定各候选光纤通路对应的管路;基于任两个候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路。可见,本申请提供的上述方法中,先确定待进行双光纤通路配置的两个目标机房各自所属的目标机楼,在多个预先配置好的机楼组中,确定两端机楼为两个目标机楼的候选机楼组,进而在候选机楼组对应的候选光纤通路的管路中,基于候选光纤通路间的管路重叠度确定可以在两个目标机房间用于进行双光纤通路配置的候选光纤通路,缩小需要遍历查找的光纤通路的范围,极大减少运算量,降低运算复杂度。The method, device, computer equipment, and storage medium for determining the dual-fiber path in the above-mentioned computer room, acquiring the target computer buildings to which two target computer rooms to be configured with dual-fiber paths belong; acquiring a plurality of pre-configured computer building groups, and determining The two terminal buildings in the sequentially associated multiple engine buildings included in each engine building group; at least one engine building among the multiple engine buildings included in different engine building groups is different; from the multiple engine building groups, Determine that the computer buildings at both ends are multiple candidate computer building groups of the target computer building; obtain the candidate optical fiber paths corresponding to the multiple candidate computer building groups connecting the two target computer rooms, and determine each candidate optical fiber path Corresponding pipelines; based on the pipeline overlapping degree between any two candidate optical fiber channels, determine two candidate optical fiber channels as dual optical fiber channels of the two target computer rooms. It can be seen that, in the above-mentioned method provided by the present application, the target computer buildings to which the two target computer rooms to be configured with dual optical fiber paths belong are first determined, and among multiple pre-configured computer building groups, it is determined that the two computer buildings at both ends are two. The candidate computer building group of the target computer building, and then in the pipeline of the candidate optical fiber channel corresponding to the candidate computer building group, it is determined based on the degree of pipeline overlap between the candidate optical fiber channels that can be used for dual optical fiber channel configuration in the two target computer rooms The candidate fiber channel can be selected to narrow down the scope of the fiber channel that needs to be traversed and searched, greatly reducing the amount of calculation and reducing the complexity of the calculation.

附图说明Description of drawings

图1为一个实施例中机房间的双光纤通路的确定方法的应用环境图;1 is an application environment diagram of a method for determining a dual-fiber path in a computer room in one embodiment;

图2为一个实施例中机房间的双光纤通路的确定方法的流程示意图;2 is a schematic flowchart of a method for determining a dual-fiber path in a computer room in one embodiment;

图3为一个实施例中机房间的双光纤通路的确定方法的流程示意图;3 is a schematic flowchart of a method for determining a dual-fiber path in a computer room in one embodiment;

图4为一个实施例中机房间的双光纤通路的确定装置的结构框图;4 is a structural block diagram of a device for determining a dual-fiber path in a computer room in one embodiment;

图5为一个实施例中计算机设备的内部结构图。FIG. 5 is a diagram of the internal structure of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

在本申请中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本申请所描述的实施例可以与其它实施例相结合。Reference in this application to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

在一个实施例中,结合图1,介绍本申请提供的一种机房间的双光纤通路的确定方法,该方法可以应用于计算机设备;计算机设备执行本方法时,可以包括以下步骤:In one embodiment, with reference to FIG. 1 , a method for determining a dual-fiber path in a computer room provided by the present application is introduced. The method can be applied to computer equipment; when the computer equipment executes the method, the following steps may be included:

步骤S201,获取待进行双光纤通路配置的两个目标机房各自所属的目标机楼。In step S201, the target computer buildings to which the two target computer rooms to be configured with dual optical fiber paths belong respectively are acquired.

其中每一机楼可以包括至少一个机房,如图1所示,机楼1可以包括一个机房①,机楼3可以包括机房③和机房④。如果当前待进行双光纤通路配置的目标机房是机房①和机房⑧,那么可以确定机房①所属的机楼1和机房⑧所属的机楼5。Each computer building may include at least one computer room. As shown in FIG. 1 , the computer building 1 may include a computer room ①, and the computer building 3 may include a computer room ③ and a computer room ④. If the target equipment rooms to be configured with dual fiber paths are equipment room ① and equipment room ⑧, then the equipment building 1 to which equipment room ① belongs and equipment building 5 to which equipment room ⑧ belongs can be determined.

步骤S202,获取预先配置的多个机楼组,并确定各机楼组所包括的依次关联的多个机楼中的两端机楼;不同机楼组所包括的多个机楼中的至少一个机楼不同;Step S202: Obtain multiple pre-configured equipment building groups, and determine the equipment buildings at both ends of the multiple equipment buildings associated in sequence included in each equipment building group; at least one of the multiple equipment buildings included in different equipment building groups A machine building is different;

步骤S203,从多个机楼组中,确定两端机楼为目标机楼的多个候选机楼组;Step S203, from a plurality of computer building groups, determine that the computer buildings at both ends are a plurality of candidate computer building groups of the target computer building;

其中,上述多个机楼组可以例如是:机楼1-机楼5、机楼1-机楼2-机楼5、机楼1-机楼2-机楼3-机楼5、机楼1-机楼2-机楼3-机楼5、机楼1-机楼6、机楼1-机楼2-机楼6……等。其中各机楼组包括依次关联的机楼,且不同机楼组所包括的多个机楼中,存在至少一个机楼不同。Wherein, the above-mentioned multiple machine building groups can be, for example: machine building 1-machine building 5, machine building 1-machine building 2-machine building 5, machine building 1-machine building 2-machine building 3-machine building 5, machine building 1-machine building 2-machine building 3-machine building 5, machine building 1-machine building 6, machine building 1-machine building 2-machine building 6...etc. Wherein, each machine building group includes sequentially associated machine buildings, and among the multiple machine buildings included in different machine building groups, there is at least one different machine building.

计算机设备在确定机房①所属的机楼1和机房⑧所属的机楼5后,可以从上述机楼组中确定两端机楼为机楼1和机楼5的各个机楼组,如机楼1-机楼5、机楼1-机楼2-机楼5、机楼1-机楼2-机楼3-机楼5、机楼1-机楼2-机楼3-机楼5,并作为候选机楼组。After the computer equipment determines the computer building 1 to which the computer room ① belongs and the computer building 5 to which the computer room ⑧ belongs, it can be determined from the above-mentioned computer building groups that the computer buildings at both ends are the computer building groups of the computer building 1 and the computer building 5, such as the computer building. 1-machine building 5, machine building 1-machine building 2-machine building 5, machine building 1-machine building 2-machine building 3-machine building 5, machine building 1-machine building 2-machine building 3-machine building 5, And as a candidate aircraft group.

步骤S204,获取多个候选机楼组对应的连通两个目标机房的候选光纤通路,并确定各候选光纤通路对应的管路;Step S204, acquiring candidate optical fiber paths corresponding to multiple candidate computer building groups that connect the two target computer rooms, and determining the pipeline corresponding to each candidate optical fiber path;

步骤S205,基于任两个候选光纤通路间的管路重叠度,确定作为两个目标机房间的双光纤通路的两个候选光纤通路。Step S205 , based on the degree of pipeline overlap between any two candidate fiber paths, determine two candidate fiber paths as dual fiber paths of the two target computer rooms.

Figure BDA0002891859940000061
Figure BDA0002891859940000061

表1Table 1

其中,各机楼组存在对应的机房组,且两个机房间可以存在多个光纤通路,例如,机房①和机房⑧间可以存在光纤通路A、B和C,机房①和机房②间也可以存在多个光纤通路,机房②和机房⑧间也可以存在多个光纤通路。若机房①和机房②间存在的光纤通路为2个,机房②和机房⑧间存在的光纤通路也为2个,那么机房组:机房①-机房②-机房⑧对应的光纤通路为4个,即如表1所示的光纤通路D、E、F和G。Among them, each computer building group has a corresponding computer room group, and two computer rooms can have multiple optical fiber paths. For example, fiber paths A, B, and C can exist between computer room ① and computer room ⑧, and between computer room ① and computer room ② can also exist There are multiple optical fiber paths, and there can also be multiple optical fiber paths between the equipment room ② and the equipment room ⑧. If there are 2 optical fiber channels between computer room ① and computer room ②, and there are also 2 optical fiber channels between computer room ② and computer room ⑧, then the number of optical fiber channels corresponding to the computer room group: computer room ① - computer room ② - computer room ⑧ is 4, That is, fiber paths D, E, F, and G as shown in Table 1.

每个光纤通路铺设在对应的管路上,因此,各光纤通路具有对应的管路;不同光纤通路所对应的管路中,可以完全相同,也可以部分相同,因此,两个光纤通路对应的管路间具有一定的重叠度。Each optical fiber channel is laid on a corresponding pipeline, therefore, each optical fiber channel has a corresponding pipeline; the pipelines corresponding to different optical fiber channels may be completely the same or partially the same. Therefore, the pipes corresponding to the two optical fiber channels There is a certain degree of overlap between the paths.

如果机楼组所包括的机楼数量越多,那么该机楼组对应的光纤通路的跳级越高,例如表1所示,机楼1-机楼5所包括的机楼数量为2,该机楼组对应的光纤通路A、B和C均为直达通路,跳级为1;又例如,机楼1-机楼5所包括的机楼数量为3,该机楼组对应的光纤通路D、E、F和G均为两跳通路,跳级为2。If the number of equipment buildings included in the equipment building group is more, then the hop level of the optical fiber path corresponding to the equipment building group will be higher. The optical fiber paths A, B, and C corresponding to the equipment building group are all direct paths, and the skip level is 1; for another example, the number of equipment buildings included in equipment building 1 to equipment building 5 is 3, and the optical fiber paths D, B and C corresponding to the equipment building group are E, F, and G are all two-hop channels, and the hop level is 2.

另外,图1示出连接机房③和机房④的虚线表示:机房③和机房④之间跳纤连接,存在光路交叉,属于机房飞线情况。此时,机楼1-机楼2-机楼3-机楼5对应的机房组中,可以包括机房①-机房②-(机房④-机房③)-机房⑧。In addition, Figure 1 shows the dotted line connecting the computer room ③ and the computer room ④, indicating that the fiber jumper connection between the computer room ③ and the computer room ④ exists, and there is a crossover of optical paths, which belongs to the situation of flying lines in the computer room. At this time, the computer room group corresponding to computer building 1 - computer building 2 - computer building 3 - computer building 5 may include computer room ① - computer room ② - (computer room ④ - computer room ③) - computer room ⑧.

上述机房间的双光纤通路的确定方法中,先确定待进行双光纤通路配置的两个目标机房各自所属的目标机楼,在多个预先配置好的机楼组中,确定两端机楼为两个目标机楼的候选机楼组,进而在候选机楼组对应的候选光纤通路的管路中,基于候选光纤通路间的管路重叠度确定可以在两个目标机房间用于进行双光纤通路配置的候选光纤通路,缩小需要遍历查找的光纤通路的范围,极大减少运算量,降低运算复杂度。In the above-mentioned method for determining the dual-fiber path of the computer room, first determine the target computer buildings to which the two target computer rooms to be configured with the dual-fiber path belong respectively, and in a plurality of pre-configured computer building groups, determine that the computer buildings at both ends are: The candidate computer building groups of the two target computer buildings, and then in the pipelines of the candidate optical fiber channels corresponding to the candidate computer building groups, it is determined based on the degree of pipeline overlap between the candidate optical fiber channels that can be used in the two target computer rooms for dual optical fibers. The candidate fiber path of the path configuration reduces the scope of the fiber path that needs to be traversed and searched, greatly reduces the amount of calculation, and reduces the complexity of the calculation.

在一个实施例中,计算机设备在执行步骤S204至步骤S205时,可以执行图3所示的步骤:步骤S301,从多个候选机楼组中确定所包括机楼数量最少的第一候选机楼组;步骤S302,获取第一候选机楼组对应的连通两个目标机房的第一候选光纤通路,并确定各第一候选光纤通路对应的管路;步骤S303,若任两个第一候选光纤通路间的管路重叠度均小于管路重叠度阈值,则从多个候选机楼组中确定所包括的机楼数量为倒数第二的第二候选机楼组;步骤S304,获取第二候选机楼组对应的连通两个目标机房的第二候选光纤通路,并确定各第二候选光纤通路对应的管路;步骤S305,基于任一个第一候选光纤通路与任一个第二候选光纤通路间的管路重叠度,或任两个第二候选光纤通路间的管路重叠度,确定作为两个目标机房间的双光纤通路的两个候选光纤通路。In one embodiment, when performing steps S204 to S205, the computer device may perform the steps shown in FIG. 3: Step S301, from a plurality of candidate computer building groups, determine the first candidate computer building that includes the least number of computer buildings group; Step S302, obtain the first candidate optical fiber channel corresponding to the first candidate computer building group and connect the two target computer rooms, and determine the pipeline corresponding to each first candidate optical fiber channel; Step S303, if any two first candidate optical fibers If the degree of pipeline overlap between the passages is less than the threshold of the pipeline overlap degree, then it is determined from the multiple candidate terminal groups that the number of terminals included is the penultimate second candidate terminal group; step S304, the second candidate terminal group is obtained. The second candidate optical fiber channels corresponding to the computer building group connecting the two target computer rooms, and the pipeline corresponding to each second candidate optical fiber channel is determined; Step S305, based on the connection between any first candidate optical fiber channel and any second candidate optical fiber channel The pipeline overlap degree of , or the pipeline overlap degree between any two second candidate optical fiber channels, determines the two candidate optical fiber channels as dual optical fiber channels of the two target computer rooms.

以表1为例介绍:计算机设备在确定各候选机楼组后,先遍历光纤通路A、B和C这三个光纤通路两两之间的管路重叠度是否大于或等于管路重叠度阈值;如果均小于管路重叠度阈值,计算机设备则将二跳光纤通路加入上述遍历比较过程,即遍历光纤通路A至G两两之间的管路重叠度,进而确定可以作为机房①和机房⑧的双光纤通路的两个光纤通路。Take Table 1 as an example to introduce: after determining each candidate building group, the computer equipment first traverses whether the pipe overlap between the three fiber paths A, B, and C is greater than or equal to the pipe overlap threshold. ; If both are less than the pipeline overlap threshold, the computer equipment adds the two-hop fiber path to the above traversal comparison process, that is, traverses the pipeline overlap between the fiber paths A to G, and then determines that they can be used as computer room ① and computer room ⑧ Two Fibre Channels of Dual Fibre Channels.

如果二跳光纤通路和直达光纤通路中的任两个光纤通路均小于管路重叠度阈值,计算机设备则将机楼数量为3个的机楼组:机楼1-机楼2-机楼3-机楼5对应的三跳光纤通路加入上述遍历比较中,直至挑选到管路重叠度是否大于或等于管路重叠度阈值的两个光纤通路。If any two fiber paths in the two-hop fiber path and the direct fiber path are less than the pipeline overlap threshold, the computer equipment will classify the equipment building group with 3 equipment buildings: equipment building 1 - computer building 2 - computer building 3 - The three-hop optical fiber channel corresponding to the computer building 5 is added to the above-mentioned traversal comparison, until two optical fiber channels whose pipeline overlap degree is greater than or equal to the pipeline overlap degree threshold are selected.

可见,上述方法中,按照机楼组包括的机楼数量由少至多的顺序,优先遍历比较机楼数量少的机楼组,可以避免运算资源的浪费的情况下,寻找到较合适的双路由光纤通路。It can be seen that, in the above method, according to the order of the number of buildings included in the engine building group from the least to the largest, the engine building group with the smaller number of engine buildings is preferentially traversed, which can avoid the waste of computing resources and find a more suitable dual route. Fibre Channel.

进一步地,计算机设备还可以执行如下步骤:若任一个第一候选光纤通路与任一个第二候选光纤通路间的管路重叠度和任两个第二候选光纤通路间的管路重叠度均大于管路重叠度阈值,则将任一个第一候选光纤通路与任一个第二候选光纤通路作为两个目标机房间的双光纤通路的两个候选光纤通路。Further, the computer equipment may also perform the following steps: if the degree of pipe overlap between any one of the first candidate fiber paths and any one of the second candidate fiber paths and the degree of pipe overlap between any two second candidate fiber paths are greater than If the pipeline overlap degree threshold is set, any one of the first candidate optical fiber channels and any one of the second candidate optical fiber channels are used as two candidate optical fiber channels of the dual optical fiber channels of the two target computer rooms.

示例性地,如果光纤通路A和光纤通路F间的管路重叠度均大于管路重叠度阈值,光纤通路D和光纤通路G间的管路重叠度也大于管路重叠度阈值,由于光纤通路A经过的机房数量较少,跳级较少,因此,为了提高通信效率,计算机设备可以优选将光纤通路A和光纤通路F作为机房①和机房⑧的双光纤通路。Exemplarily, if the degree of pipe overlap between Fibre Channel A and Fibre Channel F is both greater than the pipe overlap threshold, the degree of pipe overlap between Fibre Channel D and Fibre Channel G is also greater than the pipe overlap threshold. The number of computer rooms A passes through is small, and the number of hops is less. Therefore, in order to improve the communication efficiency, the computer equipment can preferably use the optical fiber channel A and the optical fiber channel F as the dual optical fiber channel of the computer room ① and the computer room ⑧.

在一个实施例中,光纤通路对应的管路包括物理上直通无分叉的多个物理管路段压缩形成一个逻辑管路段。In one embodiment, the pipeline corresponding to the optical fiber path includes a plurality of physical pipeline segments that are physically straight without bifurcations and are compressed to form a logical pipeline segment.

示例性地,光纤通路A铺设在依次连接管路段x1-x2-x3-x4中(管路段x1-x2-x3-x4也可以称为物理上实际的管路段,简称为物理管路段;管路段x1-x2-x3-x4形成光纤通路A所对应的管路);如果这几个管路段没有分叉,在物理上直通,那么可以将这几个物理管路段在编程逻辑上压缩为一个管路段,称为逻辑管路段。其中,分叉的情况例如是x1-x2-x3-x4且x1-x2-x3-x5,此时,可以认为在管路段x3上发生分叉,因此,x1-x2-x3-x4在物理上不直通。Exemplarily, the optical fiber path A is laid in the connecting pipeline segments x1-x2-x3-x4 in sequence (the pipeline segments x1-x2-x3-x4 may also be referred to as physically actual pipeline segments, simply referred to as physical pipeline segments; pipeline segments). x1-x2-x3-x4 form the pipeline corresponding to Fibre Channel A); if these pipeline segments are not bifurcated and are physically straight, then these physical pipeline segments can be compressed into one pipeline in programming logic A road segment, called a logical run segment. Among them, the case of bifurcation is, for example, x1-x2-x3-x4 and x1-x2-x3-x5. At this time, it can be considered that a bifurcation occurs on the pipeline segment x3. Therefore, x1-x2-x3-x4 is physically Not through.

在上述方法中,将对物理上直通不分叉的物理管路段压缩形成一个逻辑管路段,有利于降低网络复杂度,在后续比较管路间的重叠度时提高运算效率。In the above method, the physical pipeline segments that are physically straight without bifurcation are compressed to form a logical pipeline segment, which is beneficial to reduce network complexity and improve computing efficiency when comparing the degree of overlap between pipelines later.

进一步地,逻辑管路段仅包括两个物理管路段,逻辑管路段所包括的两个物理管路段分别为多个物理管路段中的首个物理管理段和最后一个物理管路段。例如,上述管路段x1-x2-x3-x4压缩为一个逻辑管路段x1-x4,通过这种方式,有利于保证管路间的重叠度比较的准确性。Further, the logical pipeline segment includes only two physical pipeline segments, and the two physical pipeline segments included in the logical pipeline segment are respectively the first physical management segment and the last physical pipeline segment among the multiple physical pipeline segments. For example, the above-mentioned pipeline segments x1-x2-x3-x4 are compressed into one logical pipeline segment x1-x4. In this way, it is beneficial to ensure the accuracy of the comparison of the degree of overlap between pipelines.

在一个实施例中,光纤通路是基于两个机房间具备的局向光纤形成的;各局向光纤铺设在相通的多个物理管路段中;同一局向光纤的多个物理管路段形成对应的局向管路。若两个机房间所具备的多个局向光纤对应的局向管路间的相似度大于相似度阈值,则两个机房间所具备的多个局向光纤被归并对应于同一局向管路。In one embodiment, the optical fiber path is formed based on the office-direction optical fibers provided in the two computer rooms; each office-direction optical fiber is laid in multiple physical pipeline segments that communicate with each other; and multiple physical pipeline segments of the same office-direction optical fiber form a corresponding office-direction fiber. to the pipeline. If the similarity between the office route pipes corresponding to the multiple office route fibers in the two computer rooms is greater than the similarity threshold, the multiple office route fibers in the two computer rooms are merged and correspond to the same office route route. .

示例性地,机房①和机房⑧间的光纤通路A是局向光纤a形成的;机房①和机房②间的光纤通路是局向光纤b、c形成的,机房②和机房⑧间的光纤通路是局向光纤d、e形成的,因此,形成光纤通路D、E、F和G的局向光纤为b-d、b-e、c-d和c-e。Exemplarily, the optical fiber path A between the computer room ① and the computer room ⑧ is formed by the office-direction fiber a; the optical fiber path between the computer room ① and the computer room ② is formed by the office-direction fibers b and c, and the optical fiber path between the computer room ② and the computer room ⑧ is formed. It is formed by the office direction fibers d and e. Therefore, the office direction fibers that form the fiber paths D, E, F and G are b-d, b-e, c-d and c-e.

在上述情况中,局向光纤b的多个物理管路段形成局向管路、局向光纤c的多个物理管路段也形成局向管路,如果这两个局向管路间较相似,可以认为这两个局向光纤满足一定的业务条件,因此,可以将局向光纤b对应的局向管路和局向光纤c对应的局向管路归并为同一个局向光路,有利于进一步减少局向管路数量,降低管路网络复杂度,减少运算量。In the above situation, the multiple physical pipeline segments of the office-direction fiber b form the office-direction pipeline, and the multiple physical pipeline segments of the office-direction fiber c also form the office-direction pipeline. If the two office-direction pipelines are similar, It can be considered that the two office-direction fibers meet certain service conditions. Therefore, the office-direction pipe corresponding to office-direction fiber b and the office-direction pipe corresponding to office-direction fiber c can be merged into the same office-direction optical path, which is conducive to further Reduce the number of office-direction pipelines, reduce the complexity of the pipeline network, and reduce the amount of computation.

应该理解的是,虽然图1至图3的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图1至图3中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIGS. 1 to 3 are sequentially displayed in accordance with the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIG. 1 to FIG. 3 may include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. The order of execution is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the steps or stages within the other steps.

在一个实施例中,如图4所示,提供了一种机房间的双光纤通路的确定装置,包括:In one embodiment, as shown in FIG. 4 , a device for determining a dual-fiber path in a computer room is provided, including:

目标机楼确定模块401,用于获取待进行双光纤通路配置的两个目标机房各自所属的目标机楼;The target computer building determination module 401 is used to obtain the target computer buildings to which the two target computer rooms to be configured with dual optical fiber paths belong;

机楼组获取模块402,用于获取预先配置的多个机楼组,并确定各机楼组所包括的依次关联的多个机楼中的两端机楼;不同机楼组所包括的多个机楼中存在至少一个机楼不同;The computer building group acquiring module 402 is used to acquire multiple pre-configured computer building groups, and determine the computer buildings at both ends of the multiple computer buildings that are sequentially associated with each computer building group; There is at least one different computer building in each computer building;

候选机楼组确定模块403,用于从所述多个机楼组中,确定所述两端机楼为所述目标机楼的多个候选机楼组;A candidate computer building group determination module 403, configured to determine, from the multiple computer building groups, that the two end computer buildings are multiple candidate computer building groups of the target computer building;

管路确定模块404,用于获取所述多个候选机楼组对应的连通所述两个目标机房的候选光纤通路,并确定各候选光纤通路对应的管路;A pipeline determination module 404, configured to acquire candidate optical fiber paths corresponding to the multiple candidate computer building groups connecting the two target computer rooms, and determine the pipeline corresponding to each candidate optical fiber path;

双光纤通路确定模块405,用于基于任意两个候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路。The dual fiber channel determination module 405 is configured to determine two candidate fiber channels as dual fiber channels of the two target computer rooms based on the degree of pipe overlap between any two candidate fiber channels.

在一个实施例中,所述管路确定模块,还用于从所述多个候选机楼组中确定所包括机楼数量最少的第一候选机楼组;获取所述第一候选机楼组对应的连通所述两个目标机房的第一候选光纤通路,并确定各所述第一候选光纤通路对应的管路;若任两个所述第一候选光纤通路间的管路重叠度均小于管路重叠度阈值,则从所述多个候选机楼组中确定所包括的机楼数量为倒数第二的第二候选机楼组;获取所述第二候选机楼组对应的连通所述两个目标机房的第二候选光纤通路,并确定各所述第二候选光纤通路对应的管路。所述双光纤通路确定模块,还用于基于任一个所述第一候选光纤通路与任一个所述第二候选光纤通路间的管路重叠度,或任两个所述第二候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路。In one embodiment, the pipeline determination module is further configured to determine, from the plurality of candidate equipment building groups, a first candidate equipment building group that includes the least number of equipment buildings; obtain the first candidate equipment building group Correspondingly connect the first candidate fiber paths of the two target computer rooms, and determine the pipeline corresponding to each of the first candidate fiber paths; if the pipeline overlap between any two of the first candidate fiber paths is less than If the pipeline overlap threshold is determined, the number of included airports is determined from the multiple candidate building groups as the penultimate second candidate building group; The second candidate fiber paths of the two target computer rooms are determined, and the pipeline corresponding to each of the second candidate fiber paths is determined. The dual-fiber path determination module is further configured to, based on the degree of pipe overlap between any one of the first candidate fiber paths and any one of the second candidate fiber paths, or between any two of the second candidate fiber paths The pipeline overlap degree is determined, and two candidate fiber paths are determined as the dual fiber paths of the two target rooms.

在一个实施例中,所述双光纤通路确定模块,还用于若任一个所述第一候选光纤通路与任一个所述第二候选光纤通路间的管路重叠度和任两个所述第二候选光纤通路间的管路重叠度均大于所述管路重叠度阈值,则将任一个所述第一候选光纤通路与任一个所述第二候选光纤通路作为所述两个目标机房间的双光纤通路的两个候选光纤通路。In one embodiment, the dual-fiber channel determining module is further configured to determine if the degree of pipe overlap between any one of the first candidate fiber channels and any one of the second candidate fiber channels and any two of the first candidate fiber channels The degree of pipe overlap between the two candidate fiber paths is greater than the pipe overlap degree threshold, and any one of the first candidate fiber paths and any one of the second candidate fiber paths are used as the two target computer rooms. Two candidate fiber paths for dual fiber paths.

在一个实施例中,光纤通路对应的管路包括物理上直通无分叉的多个物理管路段压缩形成一个逻辑管路段。In one embodiment, the pipeline corresponding to the optical fiber path includes a plurality of physical pipeline segments that are physically straight without bifurcations and are compressed to form a logical pipeline segment.

在一个实施例中,所述逻辑管路段仅包括两个物理管路段,所述逻辑管路段所包括的两个物理管路段分别为所述多个物理管路段中的首个物理管理段和最后一个物理管路段。In one embodiment, the logical pipeline segment includes only two physical pipeline segments, and the two physical pipeline segments included in the logical pipeline segment are respectively the first physical management segment and the last physical pipeline segment in the multiple physical pipeline segments. A physical run segment.

在一个实施例中,光纤通路是基于两个机房间具备的局向光纤形成的;各局向光纤铺设在相通的多个物理管路段中;同一局向光纤的多个物理管路段形成对应的局向管路;若两个机房间所具备的多个局向光纤对应的局向管路间的相似度大于相似度阈值,则所述两个机房间所具备的所述多个局向光纤被归并对应于同一局向管路。In one embodiment, the optical fiber path is formed based on the office-direction optical fibers provided in the two computer rooms; each office-direction optical fiber is laid in multiple physical pipeline segments that communicate with each other; and multiple physical pipeline segments of the same office-direction optical fiber form a corresponding office-direction fiber. If the similarity between the office-direction pipes corresponding to the multiple office-direction fibers in the two computer rooms is greater than the similarity threshold, the multiple office-direction fibers in the two computer rooms are Merge corresponds to the same office route.

关于机房间的双光纤通路的确定装置的具体限定可以参见上文中对于机房间的双光纤通路的确定方法的限定,在此不再赘述。上述机房间的双光纤通路的确定装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the device for determining the dual-fiber path in the computer room, reference may be made to the definition of the method for determining the dual-fiber path in the computer room above, which will not be repeated here. All or part of the modules in the device for determining the dual-fiber path in the computer room can be implemented by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图5所示。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储机房间的双光纤通路的确定数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种机房间的双光纤通路的确定方法。In one embodiment, a computer device is provided, and the computer device may be a server, and its internal structure diagram may be as shown in FIG. 5 . The computer device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used to store the determined data of the dual fiber paths of the computer room. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by the processor, implements a method for determining a dual fiber path in a computer room.

本领域技术人员可以理解,图5中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 5 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,处理器执行计算机程序时实现上述各个方法实施例中的步骤。In one embodiment, a computer device is provided, including a memory and a processor, the memory stores a computer program, and the processor implements the steps in the above-mentioned method embodiments when the computer program is executed.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述各个方法实施例中的步骤。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in each of the foregoing method embodiments.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the process in the method of the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a non-volatile computer-readable storage medium , when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the various embodiments provided in this application may include at least one of non-volatile and volatile memory. The non-volatile memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, and the like. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, the RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM).

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.

以上的实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (10)

1.一种机房间的双光纤通路的确定方法,其特征在于,所述方法包括:1. A method for determining a dual-fiber path in a computer room, wherein the method comprises: 获取待进行双光纤通路配置的两个目标机房各自所属的目标机楼;Obtain the target computer buildings to which the two target computer rooms to be configured with dual fiber channels belong; 获取预先配置的多个机楼组,并确定各机楼组所包括的依次关联的多个机楼中的两端机楼;不同机楼组所包括的多个机楼中的至少一个机楼不同;Acquire multiple pre-configured equipment building groups, and determine the equipment buildings at both ends of the multiple equipment buildings associated in sequence included in each equipment building group; at least one equipment building among the multiple equipment buildings included in different equipment building groups different; 从所述多个机楼组中,确定所述两端机楼为所述目标机楼的多个候选机楼组;From the plurality of equipment building groups, determine that the equipment buildings at both ends are multiple candidate equipment building groups of the target equipment building; 获取所述多个候选机楼组对应的连通所述两个目标机房的候选光纤通路,并确定各候选光纤通路对应的管路;Obtaining the candidate optical fiber paths corresponding to the multiple candidate computer building groups connecting the two target computer rooms, and determining the pipeline corresponding to each candidate optical fiber path; 基于任两个候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路。Based on the degree of pipe overlap between any two candidate fiber paths, two candidate fiber paths as dual fiber paths of the two target computer rooms are determined. 2.根据权利要求1所述的方法,其特征在于,所述获取所述多个候选机楼组对应的连通所述两个目标机房的候选光纤通路,并确定各候选光纤通路对应的管路,包括:2 . The method according to claim 1 , wherein the acquiring the candidate optical fiber paths corresponding to the multiple candidate equipment building groups connecting the two target equipment rooms, and determining the pipeline corresponding to each candidate optical fiber path. 3 . ,include: 从所述多个候选机楼组中确定所包括机楼数量最少的第一候选机楼组;determining, from the plurality of candidate terminal groups, a first candidate terminal group with the least number of terminals; 获取所述第一候选机楼组对应的连通所述两个目标机房的第一候选光纤通路,并确定各所述第一候选光纤通路对应的管路;acquiring the first candidate optical fiber paths connecting the two target equipment rooms corresponding to the first candidate computer building group, and determining the pipeline corresponding to each of the first candidate optical fiber paths; 若任两个所述第一候选光纤通路间的管路重叠度均小于管路重叠度阈值,则从所述多个候选机楼组中确定所包括的机楼数量为倒数第二少的第二候选机楼组;If the degree of pipe overlap between any two of the first candidate optical fiber paths is less than the threshold of pipe overlap degree, determine from the plurality of candidate equipment building groups that the number of equipment buildings included is the second-to-last one with the least number of equipment buildings. The second candidate aircraft building group; 获取所述第二候选机楼组对应的连通所述两个目标机房的第二候选光纤通路,并确定各所述第二候选光纤通路对应的管路;Acquiring second candidate optical fiber paths connecting the two target computer rooms corresponding to the second candidate computer building group, and determining the pipeline corresponding to each of the second candidate optical fiber paths; 所述基于任两个候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路,包括:The determining, based on the degree of pipeline overlap between any two candidate optical fiber paths, as the dual fiber paths of the two target computer rooms, includes: 基于任一个所述第一候选光纤通路与任一个所述第二候选光纤通路间的管路重叠度,或任两个所述第二候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路。Based on the degree of pipe overlap between any one of the first candidate fiber paths and any one of the second candidate fiber paths, or the degree of pipe overlap between any two of the second candidate fiber paths Two candidate fiber paths for dual fiber paths in the target room. 3.根据权利要求2所述的方法,其特征在于,所述基于任一个所述第一候选光纤通路与任一个所述第二候选光纤通路间的管路重叠度,或任两个所述第二候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路,包括:3 . The method according to claim 2 , wherein the method is based on a degree of pipe overlap between any one of the first candidate fiber paths and any one of the second candidate fiber paths, or any two of the The degree of pipe overlap between the second candidate optical fiber paths determines two candidate fiber paths as dual fiber paths of the two target computer rooms, including: 若任一个所述第一候选光纤通路与任一个所述第二候选光纤通路间的管路重叠度和任两个所述第二候选光纤通路间的管路重叠度均大于所述管路重叠度阈值,则将任一个所述第一候选光纤通路与任一个所述第二候选光纤通路作为所述两个目标机房间的双光纤通路的两个候选光纤通路。If the degree of pipe overlap between any one of the first candidate fiber channels and any one of the second candidate fiber channels and the degree of pipe overlap between any two of the second candidate fiber channels are greater than the pipe overlap If the degree threshold is set, any one of the first candidate optical fiber channels and any one of the second candidate optical fiber channels are used as two candidate optical fiber channels of the dual optical fiber channels of the two target computer rooms. 4.根据权利要求1所述的方法,其特征在于,光纤通路对应的管路包括物理上直通无分叉的多个物理管路段压缩形成一个逻辑管路段。4 . The method according to claim 1 , wherein the pipeline corresponding to the optical fiber path comprises a plurality of physical pipeline segments that are physically straight without bifurcations and are compressed to form a logical pipeline segment. 5 . 5.根据权利要求4所述的方法,其特征在于,所述逻辑管路段仅包括两个物理管路段,所述逻辑管路段所包括的两个物理管路段分别为所述多个物理管路段中的首个物理管理段和最后一个物理管路段。5 . The method according to claim 4 , wherein the logical pipeline segment includes only two physical pipeline segments, and the two physical pipeline segments included in the logical pipeline segment are respectively the multiple physical pipeline segments. 6 . The first physical management segment and the last physical run segment in the . 6.根据权利要求1至5任一项所述的方法,其特征在于,光纤通路是基于两个机房间具备的局向光纤形成的;各局向光纤铺设在相通的多个物理管路段中;同一局向光纤的多个物理管路段形成对应的局向管路;6. The method according to any one of claims 1 to 5, wherein the optical fiber path is formed based on office-direction optical fibers provided in two computer rooms; each office-direction optical fiber is laid in a plurality of interconnected physical pipeline segments; Multiple physical pipeline segments of the same office-direction fiber form corresponding office-direction pipelines; 若两个机房间所具备的多个局向光纤对应的局向管路间的相似度大于相似度阈值,则所述两个机房间所具备的所述多个局向光纤被归并对应于同一局向管路。If the similarity between the office-direction pipes corresponding to the multiple office-direction fibers in the two computer rooms is greater than the similarity threshold, the multiple office-direction fibers in the two computer rooms are merged to correspond to the same Office to pipeline. 7.一种机房间的双光纤通路的确定装置,其特征在于,所述装置包括:7. A device for determining a dual-fiber path in a computer room, wherein the device comprises: 目标机楼确定模块,用于获取待进行双光纤通路配置的两个目标机房各自所属的目标机楼;The target computer building determination module is used to obtain the target computer buildings to which the two target computer rooms to be configured with dual fiber channels belong; 机楼组获取模块,用于获取预先配置的多个机楼组,并确定各机楼组所包括的依次关联的多个机楼中的两端机楼;不同机楼组所包括的多个机楼中存在至少一个机楼不同;The computer building group acquisition module is used to acquire multiple pre-configured computer building groups, and determine the computer buildings at both ends of the multiple computer buildings that are sequentially associated with each computer building group; There is at least one different engine building in the engine building; 候选机楼组确定模块,用于从所述多个机楼组中,确定所述两端机楼为所述目标机楼的多个候选机楼组;A candidate computer building group determination module, configured to determine, from the multiple computer building groups, that the two end computer buildings are multiple candidate computer building groups of the target computer building; 管路确定模块,用于获取所述多个候选机楼组对应的连通所述目标机房的候选光纤通路,并确定各候选光纤通路对应的管路;a pipeline determination module, configured to acquire candidate optical fiber paths corresponding to the multiple candidate computer building groups that connect to the target computer room, and determine the pipeline corresponding to each candidate optical fiber path; 双光纤通路确定模块,用于基于任意两个候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路。The dual-fiber channel determination module is configured to determine, based on the degree of pipeline overlap between any two candidate fiber-optic channels, two candidate fiber-optic channels serving as dual-fiber channels of the two target computer rooms. 8.根据权利要求7所述的装置,其特征在于,所述管路确定模块,还用于从所述多个候选机楼组中确定所包括机楼数量最少的第一候选机楼组;获取所述第一候选机楼组对应的连通所述两个目标机房的第一候选光纤通路,并确定各所述第一候选光纤通路对应的管路;若任两个所述第一候选光纤通路间的管路重叠度均小于管路重叠度阈值,则从所述多个候选机楼组中确定所包括的机楼数量为倒数第二少的第二候选机楼组;获取所述第二候选机楼组对应的连通所述两个目标机房的第二候选光纤通路,并确定各所述第二候选光纤通路对应的管路;8 . The apparatus according to claim 7 , wherein the pipeline determination module is further configured to determine, from the plurality of candidate equipment building groups, a first candidate equipment building group that includes the least number of equipment buildings; 8 . Obtain the first candidate optical fiber paths connecting the two target equipment rooms corresponding to the first candidate computer building group, and determine the pipeline corresponding to each of the first candidate optical fiber paths; if any two of the first candidate optical fibers The degree of pipeline overlap between the passages is less than the threshold of pipeline overlap degree, then it is determined from the multiple candidate terminal groups that the number of terminals included is the second candidate terminal group with the penultimate least; The two candidate computer building groups correspond to the second candidate optical fiber paths connecting the two target computer rooms, and determine the pipeline corresponding to each of the second candidate optical fiber paths; 所述双光纤通路确定模块,还用于基于任一个所述第一候选光纤通路与任一个所述第二候选光纤通路间的管路重叠度,或任两个所述第二候选光纤通路间的管路重叠度,确定作为所述两个目标机房间的双光纤通路的两个候选光纤通路。The dual-fiber path determination module is further configured to, based on the degree of pipe overlap between any one of the first candidate fiber paths and any one of the second candidate fiber paths, or between any two of the second candidate fiber paths The pipeline overlap degree is determined, and two candidate fiber paths are determined as the dual fiber paths of the two target rooms. 9.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至6中任一项所述的方法。9 . A computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the method according to any one of claims 1 to 6 when the processor executes the computer program. 10 . 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至6中任一项所述的方法。10. A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
CN202110032340.2A 2021-01-11 2021-01-11 Method, device, equipment and storage medium for determining double optical fiber paths of machine room Active CN112738663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110032340.2A CN112738663B (en) 2021-01-11 2021-01-11 Method, device, equipment and storage medium for determining double optical fiber paths of machine room

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110032340.2A CN112738663B (en) 2021-01-11 2021-01-11 Method, device, equipment and storage medium for determining double optical fiber paths of machine room

Publications (2)

Publication Number Publication Date
CN112738663A CN112738663A (en) 2021-04-30
CN112738663B true CN112738663B (en) 2022-09-02

Family

ID=75590289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110032340.2A Active CN112738663B (en) 2021-01-11 2021-01-11 Method, device, equipment and storage medium for determining double optical fiber paths of machine room

Country Status (1)

Country Link
CN (1) CN112738663B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6351582B1 (en) * 1999-04-21 2002-02-26 Nortel Networks Limited Passive optical network arrangement
CN106789628A (en) * 2016-12-22 2017-05-31 浪潮通信信息系统有限公司 A kind of transmission services double route analysis method
CN111314802B (en) * 2018-12-12 2023-05-16 中兴通讯股份有限公司 Optical fiber cutting method and device, SDN controller, system and storage medium
CN111355660B (en) * 2020-03-06 2022-04-15 中国电力科学研究院有限公司 A route determination method and system based on capacity balance and relative delay

Also Published As

Publication number Publication date
CN112738663A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US9400767B2 (en) Subgraph-based distributed graph processing
CN110995348B (en) Method for troubleshooting and avoiding hidden physical routing danger of transmission network
CN109522428B (en) An external memory access method for graph computing system based on index positioning
CN101588518A (en) A transport network topology security analysis method and implementation system
WO2020134831A1 (en) Data transmission method and apparatus for network on chip, and electronic device
CN104348691B (en) A kind of fiber link dispatching method, equipment and system
CN114003775A (en) Graph data processing, query method and system thereof
CN112738663B (en) Method, device, equipment and storage medium for determining double optical fiber paths of machine room
WO2022105499A1 (en) Path selection method and path selection apparatus
CN109033603B (en) Intelligent substation secondary system simulation method based on source flow path chain
CN113282881B (en) Electric power information physical system robustness analysis method based on reachable matrix
CN111181731B (en) Execution optimization method, system and storage medium of smart contract in alliance chain
CN110932973B (en) Optical cable network point-to-point optimal route calculation method and device
CN114866463A (en) Method and device for searching double routes and electronic equipment
CN113051080A (en) Computation graph execution method and device and heterogeneous platform
CN107592368B (en) Distributed data synchronization routing method, storage medium, device and system
Qian et al. A Shortest Path Algorithm Under Specified Nodes Constraint
CN114925486B (en) A two-dimensional horizontal directional drilling trajectory calculation method, device and medium
CN120075124B (en) Routing scheduling method and device for intelligent optical fiber distribution machine cluster
CN117807939B (en) Circuit hypergraph determination method, device, computer equipment and storage medium
CN113177212B (en) Joint prediction method and device
CN113986919B (en) Partition hash connection method, device and storage medium
CN111181830B (en) TX increment calculation method and system based on network management L3vpn service
CN119309149B (en) Valve control method and device for gas pipe network pipe explosion
JP7607285B2 (en) FXC network expansion device, expansion method, and expansion program

Legal Events

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