CN101753245B - Method and device for identifying service - Google Patents

Method and device for identifying service Download PDF

Info

Publication number
CN101753245B
CN101753245B CN 200810173091 CN200810173091A CN101753245B CN 101753245 B CN101753245 B CN 101753245B CN 200810173091 CN200810173091 CN 200810173091 CN 200810173091 A CN200810173091 A CN 200810173091A CN 101753245 B CN101753245 B CN 101753245B
Authority
CN
China
Prior art keywords
value
business
service
current
maximum
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.)
Expired - Fee Related
Application number
CN 200810173091
Other languages
Chinese (zh)
Other versions
CN101753245A (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.)
Binhai Xingguang Chemical Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200810173091 priority Critical patent/CN101753245B/en
Publication of CN101753245A publication Critical patent/CN101753245A/en
Application granted granted Critical
Publication of CN101753245B publication Critical patent/CN101753245B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例公开了一种业务识别方法和装置,所述方法包括:比较在一个预设的统计周期内所获取的多个服务帧周期中的Cn值,确定当前业务的最大Cn值和最小Cn值;查找预设的Cn库中是否存在与所述当前业务的最大Cn值和最小Cn值相匹配的业务记录;当所述预设的Cn库中存在与所述当前业务的最大Cn值和最小Cn值相匹配的业务记录时,确定所述业务记录所对应已知业务的业务类型为所述当前业务的业务类型。通过应用本发明实施例所提出的技术方案,实现了对业务类型的准确识别,达到了提高业务识别准确性,简化业务识别流程的效果。

Figure 200810173091

The embodiment of the present invention discloses a service identification method and device. The method includes: comparing the Cn values obtained in multiple service frame periods within a preset statistical period, and determining the maximum Cn value and the minimum Cn value of the current service. Cn value; find whether there is a business record matching the maximum Cn value and the minimum Cn value of the current business in the preset Cn library; when there is a maximum Cn value of the current business in the preset Cn library When the service record matches the minimum Cn value, it is determined that the service type of the known service corresponding to the service record is the service type of the current service. By applying the technical solutions proposed by the embodiments of the present invention, accurate identification of service types is realized, and the effects of improving the accuracy of service identification and simplifying the process of service identification are achieved.

Figure 200810173091

Description

一种业务识别方法和装置A business identification method and device

技术领域technical field

本发明涉及通信技术领域,特别是涉及一种业务识别方法和装置。The present invention relates to the field of communication technology, in particular to a service identification method and device.

背景技术Background technique

光传送网(Optical transport network,OTN)作为下一代传送网的核心技术,包括电层和光层的技术规范,具备丰富的操作管理维护功能(OperationAdministration and Maintenance,OAM)、强大的网格编码调制能力(terlliscoded modulation,TCM)能力和带外前向纠错(Forward Error Correction,FEC)能力,能够实现大容量业务的灵活调度和管理,日益成为骨干传送网的主流技术。Optical transport network (Optical transport network, OTN) is the core technology of the next-generation transport network, including the technical specifications of the electrical layer and optical layer, with rich operation management and maintenance functions (Operation Administration and Maintenance, OAM), and powerful trellis coding and modulation capabilities (terlliscoded modulation, TCM) capability and out-of-band forward error correction (Forward Error Correction, FEC) capability, which can realize flexible scheduling and management of large-capacity services, and have increasingly become the mainstream technology of the backbone transport network.

在客户业务处理方面,OTN提供了多种业务映射方法,包括固定比特率(Constant bit rate,CBR)业务、通用成帧协议(Generic Frame Protocol,GFP)业务、异步传递模式(Asynchronous Transfer Mode,ATM)业务的接入方法。随着数据业务的不断增长,要求光传送网全速率透明传送的需求也不断增长。目前,自适应CBR业务的通用映射规程(GMP)映射方法很好的适应了这种需求。In terms of customer service processing, OTN provides a variety of service mapping methods, including constant bit rate (Constant bit rate, CBR) service, generic framing protocol (Generic Frame Protocol, GFP) service, asynchronous transfer mode (Asynchronous Transfer Mode, ATM ) service access method. With the continuous growth of data services, the demand for full-rate transparent transmission on the optical transport network is also increasing. At present, the general mapping procedure (GMP) mapping method of the adaptive CBR service is well adapted to this requirement.

在上述的GMP映射方法中,每服务帧周期中客户实体数量(number ofClient information entities(n bits)per server frame,Cn)起着至关重要的作用,如何准确产生Cn初值已经成为GMP能否被很好地使用的重要因素。同时使用GMP映射的业务种类也在不断地增长,无需手动配置而能够自动识别其业务类型也显得是非常有必要的。In the above-mentioned GMP mapping method, the number of Client information entities (n bits) per server frame (Cn) in each service frame period plays a vital role. How to accurately generate the initial value of Cn has become a problem of whether GMP can An important factor to be used well. At the same time, the types of services that use GMP mapping are also increasing, and it is very necessary to automatically identify the types of services without manual configuration.

因此,准确产生Cn初值以及自动识别业务类型已经成为GMP映射方法需要解决的现实问题。Therefore, accurate generation of the initial value of Cn and automatic identification of business types have become practical problems to be solved by the GMP mapping method.

在现有技术中,可以通过双侧计数产生Cn初值,或通过数据缓存空满门限来控制Cn值。In the prior art, the initial value of Cn can be generated through double-sided counting, or the value of Cn can be controlled through the full threshold of the data buffer.

其中,通过双侧计数产生Cn初值的流程包括:在服务时钟域侧通过计数器A周期性计数服务时钟脉冲个数,一旦服务帧周期结束,则采集客户时钟域侧计数器B的计数值,采集到的值即为Cn值;在客户时钟域侧通过计数器B周期性计数客户时钟脉冲个数,一旦检测到服务时钟域侧计数器A计数周期结束,则计数器B开始新一轮计数。Among them, the process of generating the initial value of Cn through double-sided counting includes: periodically counting the number of service clock pulses by counter A on the service clock domain side, once the service frame period ends, collecting the count value of counter B on the client clock domain side, collecting The obtained value is the Cn value; the number of client clock pulses is periodically counted by the counter B on the client clock domain side, and once it is detected that the counting period of the counter A on the service clock domain side is over, the counter B starts a new round of counting.

通过数据缓存空满门限来控制Cn值的流程包括:根据待传业务类型给定Cn初始值;若数据缓存低于空门限,则按照一定步长负调整Cn值,即Cn=Cn-步长;若数据缓存高于满门限,则按照一定步长正调整Cn值,即Cn=Cn+步长。The process of controlling the Cn value through the empty and full threshold of the data cache includes: setting the initial value of Cn according to the type of service to be transmitted; if the data cache is lower than the empty threshold, negatively adjusting the Cn value according to a certain step size, that is, Cn=Cn-step size ; If the data cache is higher than the full threshold, the value of Cn is positively adjusted according to a certain step size, that is, Cn=Cn+step size.

在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art:

Cn值的产生不可靠,由于其方法不当导致Cn值采集或计算出现误差,从而导致业务识别错误或业务无法识别,并且对手工设置操作依赖较大,需要通过预先配置业务类型来确定Cn值,无法实现业务自动识别。The generation of the Cn value is unreliable. Due to the improper method, errors in the collection or calculation of the Cn value may occur, resulting in wrong or unrecognizable services, and it relies heavily on manual setting operations. It is necessary to determine the Cn value by pre-configuring the service type. Automatic business identification cannot be realized.

发明内容Contents of the invention

本发明实施例提供一种业务识别方法和装置,准确采集当前业务的Cn值,从而自动实现当前业务的准确识别。Embodiments of the present invention provide a service identification method and device, which can accurately collect the Cn value of the current service, thereby automatically realizing accurate identification of the current service.

为达到上述目的,本发明实施例一方面提出一种业务识别方法,包括:In order to achieve the above purpose, an embodiment of the present invention proposes a service identification method on the one hand, including:

比较在一个预设的统计周期内所获取的多个服务帧周期中的Cn值,确定当前业务的最大Cn值和最小Cn值;Comparing the Cn values in multiple service frame periods acquired within a preset statistical period, determine the maximum Cn value and the minimum Cn value of the current service;

查找预设的Cn库中是否存在与所述当前业务的最大Cn值和最小Cn值相匹配的业务记录;Find whether there is a business record matching the maximum Cn value and the minimum Cn value of the current business in the preset Cn library;

当所述预设的Cn库中存在与所述当前业务的最大Cn值和最小Cn值相匹配的业务记录时,确定所述业务记录所对应已知业务的业务类型为所述当前业务的业务类型。When there is a business record matching the maximum Cn value and the minimum Cn value of the current business in the preset Cn library, determine that the business type of the known business corresponding to the business record is the business of the current business type.

另一方面,本发明实施例还提出一种业务识别装置,包括:On the other hand, an embodiment of the present invention also proposes a service identification device, including:

确定模块,用于比较在一个预设的统计周期内所获取的多个服务帧周期中的Cn值,确定当前业务的最大Cn值和最小Cn值;The determination module is used to compare the Cn values in multiple service frame periods acquired within a preset statistical period, and determine the maximum Cn value and the minimum Cn value of the current service;

查找模块,用于查找预设的Cn库中是否存在与所述确定模块所确定的当前业务的最大Cn值和最小Cn值相匹配的业务记录;A search module, configured to find whether there is a service record matching the maximum Cn value and the minimum Cn value of the current service determined by the determination module in the preset Cn library;

业务识别模块,用于当所述查找模块在所述预设的Cn库中查找到与所述当前业务的最大Cn值和最小Cn值相匹配的业务记录时,根据所述业务记录的业务类型信息确定所述业务记录所对应已知业务的业务类型为所述当前业务的业务类型。A business identification module, configured to, when the search module finds a business record that matches the maximum Cn value and the minimum Cn value of the current business in the preset Cn library, according to the business type of the business record The information determines that the business type of the known business corresponding to the business record is the business type of the current business.

本发明实施例的技术方案具有以下优点,因为采用了根据采集的Cn值查找Cn库识别当前业务的方法和装置,从而,实现了对业务类型的准确识别,达到了提高业务识别准确性,简化业务识别流程的效果。The technical solution of the embodiment of the present invention has the following advantages, because the method and device for searching the Cn library to identify the current business according to the collected Cn value are adopted, thereby realizing the accurate identification of the business type, improving the accuracy of business identification, simplifying the The effect of the business identification process.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.

图1为本发明实施例一一种业务识别方法的流程示意图;FIG. 1 is a schematic flow diagram of a business identification method according to an embodiment of the present invention;

图2为本发明实施例二一种业务识别装置的结构示意图;FIG. 2 is a schematic structural diagram of a service identification device according to Embodiment 2 of the present invention;

图3为本发明实施例三一种业务识别方法的流程示意图;FIG. 3 is a schematic flowchart of a service identification method according to Embodiment 3 of the present invention;

图4为本发明实施例三一种Cn值产生方式的流程示意图。FIG. 4 is a schematic flowchart of a method for generating a Cn value in Embodiment 3 of the present invention.

具体实施方式Detailed ways

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

如图1所示,为本发明实施例一提出的一种业务识别方法的流程示意图,该方法包括以下步骤:As shown in FIG. 1, it is a schematic flow diagram of a service identification method proposed in Embodiment 1 of the present invention. The method includes the following steps:

步骤S101、比较在一个预设的统计周期内所获取的多个服务帧周期中的Cn值,确定当前业务的最大Cn值和最小Cn值。Step S101 , comparing the Cn values obtained in multiple service frame periods within a preset statistical period, and determining the maximum Cn value and the minimum Cn value of the current service.

具体的,在本步骤中,每个服务帧周期中的Cn值的获取是通过服务时钟域侧和客户时钟域侧的双计数和三次握手的方式来实现,具体内容如下:Specifically, in this step, the acquisition of the Cn value in each service frame period is realized by double counting and three-way handshake on the service clock domain side and the client clock domain side, and the specific content is as follows:

服务时钟域侧周期性的对服务时钟脉冲数进行计数,同时,客户时钟域侧周期性的对客户时钟脉冲数进行计数;The service clock domain side periodically counts the number of service clock pulses, and at the same time, the client clock domain side periodically counts the number of client clock pulses;

服务时钟域侧在计数达到服务帧周期时,生成结束请求标识,并开始下一轮计数,完成第一次握手;When the service clock domain side counts up to the service frame period, it generates an end request flag, starts the next round of counting, and completes the first handshake;

当客户时钟域侧检测到服务时钟域侧生成的结束请求标识时,将计数值保存为该服务帧周期的Cn值,并开始下一轮计数;When the client clock domain side detects the end request flag generated by the service clock domain side, the count value is saved as the Cn value of the service frame period, and the next round of counting begins;

当保存的Cn值稳定后,客户时钟域侧为结束请求标识生成相应的结束响应标识,完成第二次握手;When the saved Cn value is stable, the client clock domain side generates a corresponding end response identifier for the end request identifier, and completes the second handshake;

当服务时钟域侧检测到客户时钟域侧为结束请求标识生成的结束响应标识时,获取客户时钟域侧生成的该服务帧周期的Cn值;When the service clock domain side detects the end response identifier generated by the client clock domain side for the end request identifier, obtain the Cn value of the service frame period generated by the client clock domain side;

服务时钟域侧释放结束请求标识,完成第三次握手。The service clock domain side releases the end request flag to complete the third handshake.

当客户时钟域侧检测到服务时钟域释放结束请求标识时,释放结束响应标识。When the client clock domain side detects the release end request identifier of the service clock domain, it releases the end response identifier.

需要说明的是,上述的通过服务时钟域侧和客户时钟域侧的双计数和三次握手的方式来实现的服务帧周期中Cn值的获取方法仅是本发明中的一种优选实施例,其他可以实现Cn值获取的方法同样可以在本步骤中使用,这样的变化并不影响本发明的保护范围。It should be noted that the method for obtaining the Cn value in the service frame period realized by means of double counting and three-way handshake between the service clock domain side and the client clock domain side is only a preferred embodiment of the present invention, other The method that can realize the acquisition of the Cn value can also be used in this step, and such a change does not affect the protection scope of the present invention.

步骤S102、查找预设的Cn库中是否存在与当前业务的最大Cn值和最小Cn值相匹配的业务记录。Step S102 , check whether there is a service record matching the maximum Cn value and the minimum Cn value of the current service in the preset Cn library.

其中,预设的Cn库中包括多个业务记录,每个业务记录至少包括已知业务的业务类型、该已知业务的最大Cn值和该已知业务的最小Cn值。Wherein, the preset Cn library includes multiple service records, and each service record at least includes the service type of the known service, the maximum Cn value of the known service, and the minimum Cn value of the known service.

需要进一步说明的是,上述参数的具体计算方式如下:It should be further explained that the specific calculation method of the above parameters is as follows:

已知业务的最大Cn值的确定方法为:The determination method of the maximum Cn value of the known business is:

CnCn (( maxmax )) == intint (( RcRc ×× (( 11 ++ PcPC )) RsRs. ×× (( 11 -- PsPS )) ×× 38083808 ×× 44 )) ++ 11 ;;

已知业务的最小Cn值的确定方法为:The method for determining the minimum Cn value of known services is:

CnCn (( minmin )) == intint (( RcRc ×× (( 11 -- PcPC )) RsRs. ×× (( 11 ++ PsPS )) ×× 38083808 ×× 44 )) ;;

其中,Rc表示客户信号比特速率,Rs表示服务帧比特速率,Pc表示客户信号频偏,Ps表示服务帧信号频偏。Wherein, Rc represents the bit rate of the client signal, Rs represents the bit rate of the service frame, Pc represents the frequency deviation of the client signal, and Ps represents the frequency deviation of the service frame signal.

基于上述的Cn库设置,本步骤的查找过程具体为:Based on the above Cn library settings, the search process in this step is specifically:

查找预设的Cn库中是否存在一个业务记录,该业务记录所包括的已知业务的最大Cn值大于或等于当前业务的最大Cn值,且该业务记录所包括的已知业务的最小Cn值小于或等于当前业务的最小Cn值。Find whether there is a business record in the preset Cn library, the maximum Cn value of the known business included in the business record is greater than or equal to the maximum Cn value of the current business, and the minimum Cn value of the known business included in the business record Less than or equal to the minimum Cn value of the current service.

当预设的Cn库中存在与当前业务的最大Cn值和最小Cn值相匹配的业务记录时,执行步骤S103;When there is a business record matching the maximum Cn value and the minimum Cn value of the current business in the preset Cn library, step S103 is executed;

当预设的Cn库中不存在与当前业务的最大Cn值和最小Cn值相匹配的业务记录时,执行步骤S104。When there is no service record matching the maximum Cn value and the minimum Cn value of the current service in the preset Cn library, step S104 is executed.

进一步的,查找完成后,本步骤的操作内容还包括对该当前业务的实际查询次数进行计数。Further, after the search is completed, the operation content of this step also includes counting the actual query times of the current business.

步骤S103、确定业务记录所对应已知业务的业务类型为当前业务的业务类型。Step S103, determining that the business type of the known business corresponding to the business record is the business type of the current business.

在本步骤中,当预设的Cn库中还包括已知业务的正常Cn值时,本方法还包括根据业务记录所对应已知业务的的正常Cn值确定当前业务的Cn初始值,其中,该已知业务的正常Cn值的确定方法为:In this step, when the preset Cn library also includes the normal Cn value of the known business, the method also includes determining the initial Cn value of the current business according to the normal Cn value of the known business corresponding to the business record, wherein, The method for determining the normal Cn value of the known business is:

CnCn (( normalnormal )) == intint (( RcRc RsRs. ×× 38083808 ×× 44 )) ;;

其中,Rc表示用户信号比特速率,Rs表示TS比特速率,Pc表示客户信号频偏。Among them, Rc represents the bit rate of the user signal, Rs represents the bit rate of the TS, and Pc represents the frequency offset of the client signal.

具体的确定方式为Cn初始值=Cn(normal)。The specific way of determining is: initial value of Cn=Cn(normal).

步骤S104、判断当前业务的实际查询次数是否小于当前业务的最大查询次数。Step S104, judging whether the actual query times of the current business is less than the maximum query times of the current business.

当前业务的实际查询次数小于当前业务的最大查询次数时,转入步骤S101,通过下一个预设的统计周期内所确定的当前业务的最大Cn值和最小Cn值在Cn库中进行下一轮查找。When the actual number of queries of the current business is less than the maximum number of queries of the current business, go to step S101, and perform the next round in the Cn library through the maximum Cn value and the minimum Cn value of the current business determined in the next preset statistical cycle find.

当前业务的实际查询次数不小于当前业务的最大查询次数时,确定当前业务的业务识别失败,结束当前业务的业务识别。When the actual number of inquiries of the current service is not less than the maximum number of inquiries of the current service, it is determined that the service identification of the current service fails, and the service identification of the current service is terminated.

进一步的,当前业务的实际查询次数不小于当前业务的最大查询次数时,可以确认当前业务为与其他已知业务不同的新业务,所以,上述方法还可以包括将该当前业务的信息添加入Cn库,生成新的业务记录。Further, when the actual number of queries of the current business is not less than the maximum number of queries of the current business, it can be confirmed that the current business is a new business different from other known services, so the above method can also include adding the information of the current business to Cn library, generating a new business record.

需要进一步指出的是,上述的将该当前业务的信息添加入Cn库,生成新的业务记录的操作是本发明实施例所提出的技术方案的进一步优化,可以实现新的业务信息的及时采集和获取,但是否包含本步骤并不影响本发明的保护范围。It should be further pointed out that the above-mentioned operation of adding the information of the current business into the Cn library and generating a new business record is a further optimization of the technical solution proposed in the embodiment of the present invention, which can realize the timely collection and processing of new business information. acquisition, but whether this step is included does not affect the protection scope of the present invention.

本发明实施例的技术方案具有以下优点,因为采用了根据实时采集并进行统计后的Cn值查找Cn库识别当前业务的方法,从而,实现了对业务类型的准确识别,达到了提高业务识别准确性,简化业务识别流程的效果。The technical solution of the embodiment of the present invention has the following advantages, because the method of searching the Cn library to identify the current business according to the Cn value collected in real time and after statistics is adopted, thereby realizing the accurate identification of the business type and improving the accuracy of business identification The effect of simplifying the business identification process.

基于上述本发明实施例一所提出的方法,本发明实施例二还提出了一种业务识别装置,其结构示意图如图2所示,包括:Based on the method proposed in Embodiment 1 of the present invention above, Embodiment 2 of the present invention also proposes a service identification device, the structural diagram of which is shown in FIG. 2 , including:

确定模块1,用于比较在一个预设的统计周期内所获取的多个服务帧周期中的Cn值,确定当前业务的最大Cn值和最小Cn值,具体包括:The determination module 1 is used to compare the Cn values in multiple service frame periods acquired within a preset statistical period, and determine the maximum Cn value and the minimum Cn value of the current business, specifically including:

Cn值获取子模块11,用于获取每个服务帧周期中的Cn值,具体的获取方法可以通过本发明实施例一中所说明的服务时钟域侧和客户时钟域侧的双计数和三次握手的方式来实现,也可以通过其他方式来实现,具体获取方法的变化并不影响本发明的保护范围。The Cn value acquisition sub-module 11 is used to acquire the Cn value in each service frame period. The specific acquisition method can be through the double counting and three-way handshake on the service clock domain side and the client clock domain side described in Embodiment 1 of the present invention It can also be realized in other ways, and the change of the specific acquisition method does not affect the protection scope of the present invention.

查找模块2,用于查找预设的Cn库中是否存在与确定模块1所确定的当前业务的最大Cn值和最小Cn值相匹配的业务记录,具体包括:The search module 2 is used to find whether there is a business record matching the maximum Cn value and the minimum Cn value of the current business determined by the determination module 1 in the preset Cn storehouse, specifically including:

计数子模块21,用于对当前业务的实际查询次数进行计数。The counting sub-module 21 is used for counting the actual query times of the current business.

业务识别模块3,用于当查找模块3在预设的Cn库中查找到与当前业务的最大Cn值和最小Cn值相匹配的业务记录时,根据该业务记录的业务类型信息确定业务记录所对应已知业务的业务类型为当前业务的业务类型,具体包括:Business identification module 3, when searching module 3 finds the business record that matches the maximum Cn value and the minimum Cn value of current business in the preset Cn storehouse, determine the business record according to the business type information of the business record The business type corresponding to the known business is the business type of the current business, specifically including:

判断子模块31,用于判断计数子模块21所计数的当前业务的实际查询次数是否小于预设的的当前业务的最大查询次数;Judgment sub-module 31, for judging whether the actual number of inquiries of the current business counted by the counting sub-module 21 is less than the preset maximum number of inquiries of the current business;

重查询触发子模块32,用于当判断子模块31判断当前业务的实际查询次数小于预设的当前业务的最大查询次数时,触发查找模块2通过确定模块1所确定的下一个预设的统计周期内的当前业务的最大Cn值和最小Cn值在Cn库中进行下一轮查找。The re-query triggering sub-module 32 is used to trigger the next preset statistics determined by the search module 2 through the determination module 1 when the judgment sub-module 31 judges that the actual number of queries of the current business is less than the preset maximum number of queries of the current business. The maximum Cn value and the minimum Cn value of the current business within the period are searched in the Cn library for the next round.

进一步的,业务识别模块3中还包括以下子模块中的一个或多个,具体为:Further, the business identification module 3 also includes one or more of the following submodules, specifically:

添加子模块33,用于在判断子模块31判断当前业务的实际查询次数不小于预设的当前业务的最大查询次数时,将当前业务的信息添加入Cn库;Adding a submodule 33, used to add the information of the current business into the Cn storehouse when the judgment submodule 31 judges that the actual number of inquiries of the current business is not less than the preset maximum number of inquiries of the current business;

初始值确定子模块34,用于在判断子模块31判断当前业务的实际查询次数小于预设的当前业务的最大查询次数时,确定查找模块2所查找到的业务记录所对应已知业务的的正常Cn值为当前业务的Cn初始值。The initial value determination sub-module 34 is used to determine the value of the known business corresponding to the business record found by the search module 2 when the judgment sub-module 31 judges that the actual number of inquiries of the current business is less than the preset maximum number of inquiries of the current business. The normal Cn value is the initial value of Cn for the current service.

进一步的,上述装置还包括:Further, the above-mentioned device also includes:

设置模块4,用于设置包含多个服务帧周期的统计周期,当前业务的最大查询次数和Cn库,为上述的各模块提供参数依据。The setting module 4 is used to set the statistical period including multiple service frame periods, the maximum query times of the current business and the Cn library, and provide parameter basis for the above-mentioned modules.

上述模块可以分布于一个装置,也可以分布于多个装置。上述模块可以合并为一个模块,也可以进一步拆分成多个子模块。The above-mentioned modules may be distributed in one device, or may be distributed in multiple devices. The above modules can be combined into one module, or can be further split into multiple sub-modules.

本发明实施例的技术方案具有以下优点,因为采用了根据实时采集并进行统计后的Cn值查找Cn库识别当前业务的装置,从而,实现了对业务类型的准确识别,达到了提高业务识别准确性,简化业务识别流程的效果。The technical solution of the embodiment of the present invention has the following advantages, because the device for searching the Cn library to identify the current business according to the Cn value collected in real time and after statistics is used, thereby realizing accurate identification of the business type and improving the accuracy of business identification The effect of simplifying the business identification process.

在上述的本发明实施例所提出的技术方案中,包括Cn初值产生和业务识别两方面。The above-mentioned technical solutions proposed by the embodiments of the present invention include two aspects of Cn initial value generation and service identification.

下面,本发明实施例三结合具体的实施场景,对以上内容进行具体说明。In the following, Embodiment 3 of the present invention will specifically describe the above content in combination with specific implementation scenarios.

在本实施例中,首先通过利用双侧计数及三次握手机制准确获取每个服务帧周期的Cn值,通过一定时间的统计,得到Cn最大值Cn(max)、Cn最小值Cn(min),而后将产生的Cn(max)、Cn(min)同Cn库中记录进行匹配,从而获取Cn初值及业务类型。In this embodiment, at first, the Cn value of each service frame period is accurately obtained by using the double-sided counting and three-way handshake mechanism, and the Cn maximum value Cn(max) and the Cn minimum value Cn(min) are obtained through statistics for a certain period of time. Then match the generated Cn(max) and Cn(min) with the records in the Cn database to obtain the initial value of Cn and the business type.

其流程示意图如图3所示,包括以下步骤:Its flow diagram is shown in Figure 3, including the following steps:

步骤S301、确定统计周期T及匹配次数M,并设置实际匹配次数M’的初始值为0。Step S301. Determine the statistical period T and the matching times M, and set the initial value of the actual matching times M' to 0.

统计周期T包括n个服务帧周期,即统计周期T=n*服务帧周期。The statistical period T includes n service frame periods, that is, the statistical period T=n*service frame period.

其中,n值需要进行设置,且该n值至少配置为1;服务帧周期=服务帧大小/服务帧速率,服务帧速率不局限于一个具体服务帧的速率,可以为任意TS速率。Among them, the value of n needs to be set, and the value of n should be configured as at least 1; service frame period = service frame size/service frame rate, and the service frame rate is not limited to the rate of a specific service frame, and can be any TS rate.

为了方便说明,在本实施例中,以TS(支路单元,G.709建议中Clause19定义了OPUk TS)速率作为服务帧速率,服务帧大小保持不变,For convenience of description, in the present embodiment, with TS (tributary unit, Clause19 has defined OPUk TS in G.709 recommendation) rate as service frame rate, service frame size remains unchanged,

则服务帧周期变为服务帧大小/TS速率。对于当前标准定义的OTN网络来讲,OPU1作为最小TS,OPU2划分为4个时隙(TS1、TS2、TS3、TS4),OPU3划分为16个时隙(TS1、TS2、...、TS16)。这样对于承载单元ODUk(k为1、2、3)来讲,选择TS速率,统一了实现当中的频率选择,即使用实现当中的TS时隙频率,服务帧周期即为15232/TS速率。Then the service frame period becomes the service frame size/TS rate. For the OTN network defined by the current standard, OPU1 is used as the smallest TS, OPU2 is divided into 4 time slots (TS1, TS2, TS3, TS4), and OPU3 is divided into 16 time slots (TS1, TS2, ..., TS16) . In this way, for the bearer unit ODUk (k is 1, 2, 3), selecting the TS rate unifies the frequency selection in the implementation, that is, using the TS time slot frequency in the implementation, the service frame period is 15232/TS rate.

需要指出的是,TS的选择不局限于为OPU1,任意TS时隙或者最小交叉粒度等可以达到相同技术效果的参数同样可以用来实现上述步骤。It should be pointed out that the selection of TS is not limited to OPU1, and parameters that can achieve the same technical effect, such as any TS time slot or the minimum crossover granularity, can also be used to implement the above steps.

进一步的,确定匹配次数M,即通过配置M值,确定后续最多进行M次Cn库匹配,M值至少配置为1。Further, determine the number of matching times M, that is, by configuring the M value, it is determined that a maximum of M subsequent Cn library matchings will be performed, and the M value is configured to be at least 1.

步骤S302、统计Cn值,确定当前业务的最大Cn值和最小Cn值。Step S302, count the Cn value, and determine the maximum Cn value and the minimum Cn value of the current service.

Cn值统计周期T包含了n个服务帧周期,每一个服务帧周期都会产生一个Cn值,在本实施例中,Cn值产生方式优选的采用服务时钟域侧和客户时钟域侧的双计数和三次握手的方式来实现,图4为其流程示意图。The Cn value statistical period T includes n service frame periods, and each service frame period will generate a Cn value. In this embodiment, the Cn value generation method preferably adopts double counting and counting at the service clock domain side and the client clock domain side. The three-way handshake is implemented, and Figure 4 is a schematic flow chart of it.

如图4所示,虚线右侧为服务时钟域,虚线左侧为客户时钟域。As shown in Figure 4, the service clock domain is on the right side of the dotted line, and the customer clock domain is on the left side of the dotted line.

在本流程中,通过服务时钟域中计数器A和客户时钟域中计数器B分别在各自时钟域下周期性计数各自时钟脉冲,确保计数无误,通过三次握手,完成一个服务帧周期下Cn值的获取及跨时钟域的Cn值传递。In this process, the counter A in the service clock domain and the counter B in the client clock domain periodically count their respective clock pulses in their respective clock domains to ensure that the count is correct, and complete the acquisition of the Cn value in one service frame period through three-way handshake And transfer of Cn values across clock domains.

其中,三次握手的流程具体为:一次握手,获取Cn值;二次握手,传递Cn值;三次握手,结束本次产生Cn值,具体说明如下:Among them, the process of the three-way handshake is specifically: one handshake, obtain the Cn value; two handshakes, transfer the Cn value; three handshakes, end this generation of Cn value, the specific description is as follows:

步骤S401、服务时钟域侧计数器A周期性的对服务时钟脉冲数进行计数。Step S401, the counter A on the service clock domain side periodically counts the number of service clock pulses.

服务时钟域侧计数器A检测到一个服务时钟脉冲时,对服务时钟脉冲数的计数值加1。When the counter A on the side of the service clock domain detects a service clock pulse, it adds 1 to the count value of the number of service clock pulses.

步骤S402、服务时钟域侧计数器A计数到达服务帧周期时,触发结束请求标记。Step S402 , when the counter A on the service clock domain side counts up to the service frame period, an end request flag is triggered.

具体的,在本实施例中,具体的触发方式为将结束请求标记的标识位置为高电平,实现第一次握手。Specifically, in this embodiment, the specific triggering method is to set the flag position of the end request flag at a high level to implement the first handshake.

步骤S403、客户时钟域侧计数器B周期性地计数客户时钟脉冲数。Step S403, the client clock domain side counter B periodically counts the number of client clock pulses.

客户时钟域侧计数器B检测到一个客户时钟脉冲时,对客户时钟脉冲数的计数值加1。When the client clock domain side counter B detects a client clock pulse, it adds 1 to the count value of the client clock pulse number.

步骤S404、当客户时钟域侧检测到结束请求标记变为高电平时,则将计数器B的计数值保存为Cn值同时开始新一轮周期计数。Step S404, when the client clock domain side detects that the end request flag has changed to a high level, save the count value of the counter B as the Cn value and start a new round of cycle counting.

步骤S405、客户时钟域侧等待保存的Cn值稳定之后,触发结束响应标记。Step S405, after the client clock domain side waits for the stored Cn value to be stable, trigger an end response flag.

具体的,在本实施例中,具体的触发方式为将结束响应标记的标识位置为高电平,实现第二次握手。Specifically, in this embodiment, the specific triggering method is to set the flag position of the end response flag at a high level to implement the second handshake.

步骤S406、当服务时钟域侧检测到结束响应标记变为高电平时,则采集客户时钟域侧保存的Cn值。Step S406, when the service clock domain side detects that the end response flag has changed to a high level, collect the Cn value saved by the client clock domain side.

同时释放结束请求标记,将其标识位置为低电平,实现第三次握手;At the same time, the end request flag is released, and its flag position is set to low level to realize the third handshake;

当客户时钟域侧检测到结束请求标记变为低电平时,则释放结束响应标志,将其标识位置为低电平。When the client clock domain side detects that the end request flag has changed to a low level, it releases the end response flag and sets its identification position as a low level.

至此,一个服务帧周期的Cn值产生结束。So far, the generation of the Cn value for one service frame period ends.

在一个统计周期T内,对产生的n个Cn值进行进一步的统计。Within a statistical period T, further statistics are performed on the generated n Cn values.

通过比较,获取最大Cn值Cn(max)、最小Cn值Cn(min)。By comparison, the maximum Cn value Cn(max) and the minimum Cn value Cn(min) are obtained.

步骤S303、根据最大Cn值和最小Cn值查找Cn库,判断Cn库中是否存在与当前业务相匹配的业务记录。Step S303, searching the Cn library according to the maximum Cn value and the minimum Cn value, and judging whether there is a service record matching the current service in the Cn library.

Cn库内记录了目前所知业务在服务帧周期(在本实施例中服务帧速率具体为TS速率)下的Cn(max)、Cn(normal)、Cn(min),每种业务在服务帧周期下的Cn值是唯一的,不存在多种业务其Cn(max)、Cn(normal)、Cn(min)相互交叉情况,同时Cn库可以随着业务类型的增长而进行不断更新。Cn (max), Cn (normal), and Cn (min) of the currently known services under the service frame period (in this embodiment, the service frame rate is specifically the TS rate) are recorded in the Cn library. The Cn value under the cycle is unique, and there is no crossing of Cn(max), Cn(normal), and Cn(min) for multiple services. At the same time, the Cn library can be continuously updated with the growth of business types.

下面,对Cn库构造方式进行说明如下:Next, the construction method of the Cn library is explained as follows:

(1)、由多条记录构成;(1), consisting of multiple records;

(2)、每条记录可以为五元组形式,即{业务类型,X-TS,Cn(max),Cn(normal),Cn(min)},其中X-TS表示该业务需占用X个TS时隙带宽;(2) Each record can be in the form of a quintuple, namely {service type, X-TS, Cn(max), Cn(normal), Cn(min)}, where X-TS means that the service needs to occupy X TS time slot bandwidth;

在此以TS=1.3Gbits/s为实施例,计算常见的一些业务,构造的Cn库如表1所示。Taking TS=1.3Gbits/s as an example here, some common services are calculated, and the constructed Cn library is shown in Table 1.

其中Cn库中每条记录的Cn(max)、Cn(min)、Cn(normal)通过如下公式计算产生。The Cn(max), Cn(min), and Cn(normal) of each record in the Cn library are calculated by the following formula.

CnCn (( maxmax )) == intint (( RcRc ×× (( 11 ++ PcPC )) RsRs. ×× (( 11 -- PsPS )) ×× 38083808 ×× 44 )) ++ 11

CnCn (( normalnormal )) == intint (( RcRc RsRs. ×× 38083808 ×× 44 ))

CnCn (( minmin )) == intint (( RcRc ×× (( 11 -- PcPC )) RsRs. ×× (( 11 ++ PsPS )) ×× 38083808 ×× 44 ))

其中,Rc表示客户信号比特速率,Rs表示TS比特速率,Pc表示客户信号频偏,Ps表示TS信号频偏。Wherein, Rc represents the bit rate of the client signal, Rs represents the bit rate of the TS, Pc represents the frequency deviation of the client signal, and Ps represents the frequency deviation of the TS signal.

表1Cn库Table 1 Cn library

ClientClient ChannelChannel Cn(min)Cn(min) Cn(normal)Cn(normal) Cn(max)Cn(max) STM-16STM-16 2-TS2-TS 2915429154 2915529155 2915729157 STM-64STM-64 8-TS8-TS 116617116617 116621116621 116627116627 STM-256STM-256 32-TS32-TS 466468466468 466487466487 466506466506 1GE1GE TSTS 1464414644 1464614646 1464814648 10GE10GE 4-TS4-TS 120816120816 120830120830 120846120846 40GE40GE 32-TS32-TS 483265483265 483323483323 483382483382 100GE100GE 80-TS80-TS 12081621208162 12083071208307 12084531208453 FC-1GFC-1G TSTS 1247712477 1247812478 1248112481

FC-2GFC-2G 2-TS2-TS 2489524895 2489824898 2490224902 FC-4GFC-4G 4-TS4-TS 4979049790 4979649796 4980349803 FC-8GFC-8G 7-TS7-TS 9958199581 9959399593 9960699606 FC-10GFC-10G 8-TS8-TS 123247123247 123262123262 123277123277 SD-SDISD-SDI TSTS 31633163 31633163 31643164 1.5G HD-SD1.5G HD-SD 2-TS2-TS 1739917399 1739917399 1740117401 3G HD-SD3G HD-SD 3-TS3-TS 3479834798 3479934799 3480134801

需要指出的是,Cn库的构造方式不局限于上述的五元组形式,可以根据实际需要添加任何有用信息及对上述信息的排列次序进行调整。It should be pointed out that the construction method of the Cn library is not limited to the above-mentioned quintuple form, and any useful information can be added and the order of the above-mentioned information can be adjusted according to actual needs.

查找Cn库,判断Cn库中是否存在与当前业务相匹配的业务记录的具体流程为:The specific process of searching the Cn library and judging whether there is a business record matching the current business in the Cn library is as follows:

将实际匹配次数M’加1,开始第M’次Cn库匹配,即将统计得到的Cn(max)、Cn(min)与Cn库中记录进行匹配。Add 1 to the actual matching times M', and start the M'th Cn library matching, that is, to match the statistics of Cn(max), Cn(min) with the records in the Cn library.

具体的匹配原则为:查找Cn库中是否存在一个业务记录,该业务记录对应一种已知业务的信息,该已知业务的最大Cn值大于或等于当前业务的最大Cn值,且该已知业务的最小Cn值小于或等于所述当前业务的最小Cn值。The specific matching principle is: find out whether there is a business record in the Cn database, the business record corresponds to information of a known business, the maximum Cn value of the known business is greater than or equal to the maximum Cn value of the current business, and the known The minimum Cn value of the service is less than or equal to the minimum Cn value of the current service.

Figure GSB00000960831200111
即Cn库中存在与当前业务相匹配的业务记录时,则执行步骤S304;when
Figure GSB00000960831200111
That is, when there is a business record matching the current business in the Cn library, step S304 is executed;

即Cn库中不存在与当前业务相匹配的业务记录时,则执行步骤S305。when That is, when there is no service record matching the current service in the Cn database, step S305 is executed.

步骤S304、确认相匹配的业务的业务类型为当前业务的业务类型。Step S304, confirming that the service type of the matched service is the service type of the current service.

确认Cn初始值为记录中的Cn(normal)/X,业务识别流程成功结束。Confirm that the initial value of Cn is Cn(normal)/X in the record, and the business identification process ends successfully.

需要进一步指出的是,Cn初始值除了可以通过匹配Cn库成功后而获取外,还可以通过在统计Cn周期T内记录产生的n个Cn值,求其平均值而获取,这样的变化同样属于本发明的保护范围。It should be further pointed out that the initial value of Cn can be obtained not only by successfully matching the Cn library, but also by recording n Cn values generated within the statistical Cn period T and calculating their average value. Such changes also belong to protection scope of the present invention.

步骤S305、判断实际匹配次数M’是否达到匹配次数M。Step S305, judging whether the actual number of matching times M' reaches the number of matching times M.

当实际匹配次数M’达到匹配次数M配置值时,业务识别流程失败结束。When the actual number of matching times M' reaches the configuration value of the number of matching times M, the service identification process fails and ends.

当实际匹配次数M’未达到匹配次数M配置值时,执行步骤S302开始新一轮统计Cn及Cn库匹配处理。When the actual number of matching times M' does not reach the configuration value of the number of matching times M, execute step S302 to start a new round of statistical Cn and Cn library matching processing.

进一步的,当实际匹配次数M’达到匹配次数M配置值后,仍没匹配成功,则证明该业务为新业务类型,可以将新业务类型添加到Cn库中进行更新。Further, when the actual matching times M' reaches the configuration value of the matching times M, but there is still no matching success, it proves that the business is a new business type, and the new business type can be added to the Cn library for updating.

本发明实施例的技术方案具有以下优点,因为采用了根据采集的Cn值查找Cn库识别当前业务的装置,从而,实现了对业务类型的准确识别和Cn初始值的生成,达到了提高业务识别和Cn初始值的准确性,简化业务识别流程的效果。The technical solution of the embodiment of the present invention has the following advantages, because the device for searching the Cn library to identify the current business according to the collected Cn value is adopted, thereby realizing the accurate identification of the business type and the generation of the initial value of Cn, and achieving the improvement of business identification and the accuracy of the initial value of Cn, and the effect of simplifying the business identification process.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可以通过硬件实现,也可以可借助软件加必要的通用硬件平台的方式来实现基于这样的理解,本发明的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be realized by hardware, or by means of software plus a necessary general-purpose hardware platform. Based on this understanding, the technical solution of the present invention It can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.), and include several instructions to make a computer device (which can be It is a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention.

本领域技术人员可以理解附图只是一个优选实施例的示意图,附图中的模块或流程并不一定是实施本发明所必须的。Those skilled in the art can understand that the drawing is only a schematic diagram of a preferred embodiment, and the modules or processes in the drawing are not necessarily necessary for implementing the present invention.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (12)

1.一种业务识别方法,其特征在于,包括以下步骤:1. A business identification method, characterized in that, comprising the following steps: 比较在一个预设的统计周期内所获取的多个服务帧周期中的客户实体数量Cn值,确定当前业务的最大Cn值和最小Cn值;Comparing the Cn values of the number of customer entities in multiple service frame periods acquired within a preset statistical period, to determine the maximum Cn value and the minimum Cn value of the current business; 查找预设的Cn库中是否存在与所述当前业务的最大Cn值和最小Cn值相匹配的业务记录;所述预设的Cn库中包括多个业务记录,每个业务记录至少包括已知业务的业务类型、所述已知业务的最大Cn值和所述已知业务的最小Cn值;Find whether there is a service record matching the maximum Cn value and the minimum Cn value of the current service in the preset Cn storehouse; the preset Cn storehouse includes multiple service records, and each service record includes at least known The business type of the business, the maximum Cn value of the known business and the minimum Cn value of the known business; 当所述预设的Cn库中存在与所述当前业务的最大Cn值和最小Cn值相匹配的业务记录时,确定所述业务记录所对应已知业务的业务类型为所述当前业务的业务类型;When there is a business record matching the maximum Cn value and the minimum Cn value of the current business in the preset Cn library, determine that the business type of the known business corresponding to the business record is the business of the current business type; 所述查找预设的Cn库中是否存在与所述当前业务的最大Cn值和最小Cn值相匹配的业务记录,具体为:Whether there is a business record matching the maximum Cn value and the minimum Cn value of the current business in the preset Cn storehouse of the search, specifically: 查找预设的Cn库中是否存在一个业务记录,所述业务记录包括的已知业务的最大Cn值大于或等于所述当前业务的最大Cn值,且所述业务记录包括的已知业务的最小Cn值小于或等于所述当前业务的最小Cn值。Find whether there is a business record in the preset Cn library, the maximum Cn value of the known business included in the business record is greater than or equal to the maximum Cn value of the current business, and the minimum Cn value of the known business included in the business record is The Cn value is less than or equal to the minimum Cn value of the current service. 2.如权利要求1所述的方法,其特征在于,每个所述服务帧周期中的Cn值的获取方法,具体为:2. The method according to claim 1, wherein the acquisition method of the Cn value in each said service frame period is specifically: 服务时钟域侧对服务时钟脉冲数进行计数;The service clock domain side counts the number of service clock pulses; 所述服务时钟域侧在所述计数达到所述服务帧周期时,生成结束请求标识,并开始下一轮计数;When the count reaches the service frame period, the service clock domain side generates an end request flag and starts the next round of counting; 当所述服务时钟域侧检测到客户时钟域侧对所述结束请求标识生成的结束响应标识时,获取所述客户时钟域侧生成的所述服务帧周期的Cn值;When the service clock domain side detects the end response identifier generated by the client clock domain side for the end request identifier, acquire the Cn value of the service frame period generated by the client clock domain side; 所述服务时钟域侧释放所述结束请求标识。The serving clock domain side releases the end request identifier. 3.如权利要求2所述的方法,其特征在于,所述客户时钟域侧生成的Cn值具体通过以下方式生成:3. The method according to claim 2, wherein the Cn value generated by the client clock domain side is specifically generated in the following manner: 所述客户时钟域侧对客户时钟脉冲数进行计数;The client clock domain side counts the number of client clock pulses; 当所述客户时钟域侧检测到所述服务时钟域侧生成的结束请求标识时,When the client clock domain side detects the end request identifier generated by the service clock domain side, 将所述计数值保存为所述服务帧周期的Cn值,并开始下一轮计数;Save the count value as the Cn value of the service frame period, and start the next round of counting; 将所述计数值保存为所述服务帧周期的Cn值后,所述客户时钟域侧对所述结束请求标识生成结束响应标识;After saving the count value as the Cn value of the service frame period, the client clock domain side generates an end response identifier for the end request identifier; 当所述客户时钟域侧检测到所述服务时钟域侧释放所述结束请求标识时,释放所述结束响应标识。When the client clock domain side detects that the serving clock domain side releases the end request identifier, it releases the end response identifier. 4.如权利要求1所述的方法,其特征在于,所述已知业务的最大Cn值的确定方法为:4. The method according to claim 1, wherein the determination method of the maximum Cn value of the known service is: CnCn (( maxmax )) == intint (( RcRc ×× (( 11 ++ PcPC )) RsRs. ×× (( 11 -- PsPS )) ×× 38083808 ×× )) ++ 11 ;; 所述已知业务的最小Cn值的确定方法为:The method for determining the minimum Cn value of the known business is: CnCn (( minmin )) == intint (( RcRc ×× (( 11 -- PcPC )) RsRs. ×× (( 11 ++ PsPS )) ×× 38083808 ×× 44 )) ;; 其中,Rc表示客户信号比特速率,Rs表示服务帧比特速率;Pc表示客户信号频偏,Ps表示服务帧信号频偏。Among them, Rc represents the bit rate of the client signal, Rs represents the bit rate of the service frame; Pc represents the frequency deviation of the client signal, and Ps represents the frequency deviation of the service frame signal. 5.如权利要求1或4所述的方法,其特征在于,当所述预设的Cn库中存在与所述当前业务的最大Cn值和最小Cn值相匹配的业务记录,且所述预设的Cn库中还包括所述已知业务的正常Cn值时,还包括:5. The method according to claim 1 or 4, wherein when there is a service record matching the maximum Cn value and the minimum Cn value of the current service in the preset Cn library, and the preset When also including the normal Cn value of described known business in the Cn storehouse of setting, also include: 通过所述业务记录包括的已知业务的正常Cn值确定所述当前业务的Cn初始值,所述已知业务的正常Cn值的确定方法为:Determine the Cn initial value of the current business by the normal Cn value of the known business included in the business record, the method for determining the normal Cn value of the known business is: CnCn (( normalnormal )) == intint (( RcRc RsRs. ×× 38083808 ×× 44 )) 其中,Rc表示客户信号比特速率,Rs表示支路单元TS比特速率;Pc表示客户信号频偏。Wherein, Rc represents the bit rate of the client signal, Rs represents the bit rate of the tributary unit TS; Pc represents the frequency offset of the client signal. 6.如权利要求1所述的方法,其特征在于,当所述预设的Cn库中不存在与所述当前业务的最大Cn值和最小Cn值相匹配的业务记录时,所述方法还包括:6. The method according to claim 1, wherein when there is no business record matching the maximum Cn value and the minimum Cn value of the current business in the preset Cn storehouse, the method further includes include: 判断所述当前业务的实际查询次数是否小于预设的最大查询次数;judging whether the actual number of queries of the current business is less than the preset maximum number of queries; 当所述当前业务的实际查询次数小于所述预设的最大查询次数时,通过下一个预设的统计周期内所确定的所述当前业务的最大Cn值和最小Cn值在所述Cn库中进行下一轮查找;When the actual number of queries of the current business is less than the preset maximum number of queries, the maximum Cn value and the minimum Cn value of the current business determined in the next preset statistical period are in the Cn library carry out the next round of search; 当所述当前业务的实际查询次数不小于所述预设的最大查询次数时,确定所述当前业务的业务识别失败,结束所述当前业务的业务识别。When the actual number of queries of the current service is not less than the preset maximum number of queries, it is determined that the service identification of the current service has failed, and the service identification of the current service is terminated. 7.一种业务识别装置,其特征在于,包括:7. A service identification device, characterized in that it comprises: 确定模块,用于比较在一个预设的统计周期内所获取的多个服务帧周期中的客户实体数量Cn值,确定当前业务的最大Cn值和最小Cn值;A determination module, configured to compare the number of customer entities Cn values in multiple service frame periods acquired within a preset statistical period, to determine the maximum Cn value and the minimum Cn value of the current business; 查找模块,用于查找预设的Cn库中是否存在与所述确定模块所确定的当前业务的最大Cn值和最小Cn值相匹配的业务记录,具体为:查找预设的Cn库中是否存在一个业务记录,所述业务记录包括的已知业务的最大Cn值大于或等于所述当前业务的最大Cn值,且所述业务记录包括的已知业务的最小Cn值小于或等于所述当前业务的最小Cn值;所述预设的Cn库中包括多个业务记录,每个业务记录至少包括已知业务的业务类型、所述已知业务的最大Cn值和所述已知业务的最小Cn值;The search module is used to find whether there is a business record matching the maximum Cn value and the minimum Cn value of the current business determined by the determination module in the preset Cn library, specifically: to find whether there is a preset Cn library A business record, the maximum Cn value of the known business included in the business record is greater than or equal to the maximum Cn value of the current business, and the minimum Cn value of the known business included in the business record is less than or equal to the current business The minimum Cn value; the preset Cn library includes a plurality of business records, each business record includes at least the business type of the known business, the maximum Cn value of the known business and the minimum Cn value of the known business value; 业务识别模块,用于当所述查找模块在所述预设的Cn库中查找到与所述当前业务的最大Cn值和最小Cn值相匹配的业务记录时,根据所述业务记录的业务类型信息确定所述业务记录所对应已知业务的业务类型为所述当前业务的业务类型。A business identification module, configured to, when the search module finds a business record that matches the maximum Cn value and the minimum Cn value of the current business in the preset Cn library, according to the business type of the business record The information determines that the business type of the known business corresponding to the business record is the business type of the current business. 8.如权利要求7所述的装置,其特征在于,还包括:8. The device of claim 7, further comprising: 设置模块,用于设置包含多个服务帧周期的所述统计周期,当前业务的最大查询次数和所述Cn库。A setting module, configured to set the statistical period including multiple service frame periods, the maximum query times of the current business and the Cn library. 9.如权利要求7所述的装置,其特征在于,所述确定模块,还包括:9. The device according to claim 7, wherein the determining module further comprises: Cn值获取子模块,用于获取每个所述服务帧周期中的Cn值。The Cn value obtaining submodule is used to obtain the Cn value in each service frame period. 10.如权利要求7所述的装置,其特征在于,所述查找模块,还包括:10. The device according to claim 7, wherein the search module further comprises: 计数子模块,用于对所述当前业务的实际查询次数进行计数。The counting sub-module is used for counting the actual query times of the current business. 11.如权利要求7、8或10所述的装置,其特征在于,所述业务识别模块,还包括:11. The device according to claim 7, 8 or 10, wherein the service identification module further comprises: 判断子模块,用于判断所述计数子模块所计数的当前业务的实际查询次数是否小于所述设置模块所设置的当前业务的最大查询次数;A judging submodule, configured to judge whether the actual number of inquiries of the current business counted by the counting submodule is less than the maximum number of inquiries of the current business set by the setting module; 重查询触发子模块,用于当所述判断子模块判断当前业务的实际查询次数小于所述设置模块所设置的当前业务的最大查询次数时,触发所述查找模块通过所述确定模块所确定的下一个预设的统计周期内的所述当前业务的最大Cn值和最小Cn值在所述Cn库中进行下一轮查找。The re-query triggering submodule is used to trigger the search module determined by the determination module when the judgment submodule judges that the actual number of queries of the current business is less than the maximum number of queries of the current business set by the setting module. The maximum Cn value and the minimum Cn value of the current service within the next preset statistical period are searched in the Cn database for the next round. 12.如权利要求11所述的装置,其特征在于,所述业务识别模块,还包括:12. The device according to claim 11, wherein the service identification module further comprises: 初始值确定子模块,用于在所述判断子模块判断当前业务的实际查询次数小于所述设置模块所设置的当前业务的最大查询次数时,确定所述查找模块所查找到的业务记录所对应已知业务的的正常Cn值为所述当前业务的Cn初始值。The initial value determination submodule is used to determine the corresponding value of the business record found by the search module when the judgment submodule judges that the actual query times of the current business is less than the maximum query times of the current business set by the setting module. The normal Cn value of the known service is the initial Cn value of the current service.
CN 200810173091 2008-11-28 2008-11-28 Method and device for identifying service Expired - Fee Related CN101753245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810173091 CN101753245B (en) 2008-11-28 2008-11-28 Method and device for identifying service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810173091 CN101753245B (en) 2008-11-28 2008-11-28 Method and device for identifying service

Publications (2)

Publication Number Publication Date
CN101753245A CN101753245A (en) 2010-06-23
CN101753245B true CN101753245B (en) 2013-08-07

Family

ID=42479707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810173091 Expired - Fee Related CN101753245B (en) 2008-11-28 2008-11-28 Method and device for identifying service

Country Status (1)

Country Link
CN (1) CN101753245B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567901A (en) * 2012-01-16 2012-07-11 中国联合网络通信集团有限公司 Advertising method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1442020A (en) * 2000-07-13 2003-09-10 汤姆森许可贸易公司 Time stamping and time stamp validity verification system, method and device in digital broadcasting environment
CN1852297A (en) * 2005-11-11 2006-10-25 华为技术有限公司 Network data flow recognizing system and method
CN1996995A (en) * 2006-12-29 2007-07-11 信息产业部电信传输研究所 Control method for service sensing and its system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1442020A (en) * 2000-07-13 2003-09-10 汤姆森许可贸易公司 Time stamping and time stamp validity verification system, method and device in digital broadcasting environment
CN1852297A (en) * 2005-11-11 2006-10-25 华为技术有限公司 Network data flow recognizing system and method
CN1996995A (en) * 2006-12-29 2007-07-11 信息产业部电信传输研究所 Control method for service sensing and its system

Also Published As

Publication number Publication date
CN101753245A (en) 2010-06-23

Similar Documents

Publication Publication Date Title
JP6488058B2 (en) Data transmission method, transmitter, and receiver
US8179799B2 (en) Method for partitioning network flows based on their time information
WO2020221141A1 (en) Method and device for transmitting data in optical transport network
US9357081B2 (en) Method for choosing an alternate offline charging system during an overload and apparatus associated therewith
WO2019084732A1 (en) Clock synchronization method and apparatus
US20090144414A1 (en) Method for summarizing flow information from network devices
US8949285B2 (en) Systems and methods for handling performance monitoring data
WO2021057756A1 (en) Delay measurement method, system and storage medium
CN102739446B (en) The method and apparatus for selecting Network Time Protocol server
WO2012009974A1 (en) Method and system for collecting performance statistics data
US9137129B2 (en) Propagating link status across a network
CN101083567A (en) Performance monitoring of frame transmission in data network oam protocols
CN101753245B (en) Method and device for identifying service
CN105323053B (en) The method and device of business clock transparent transmission
CN108108289A (en) A kind of cluster resource statistical method, system, device and readable storage system
CN1983881A (en) Passive optical network media access controller assisted clock recovery
WO2023143577A1 (en) Method, apparatus and system for processing data frame in optical transport network
US12199747B2 (en) Data frame transmission method and related device
CN103200585B (en) Signaling traffic subsystem, extension counter treatment system and method
CN109120443A (en) A kind of management method and device of network attached storage NAS device
CN202014249U (en) Information channel multiple-connection device based on recommended standard (RS) frame structure
WO2016091134A1 (en) Counting method and device for time slot resource occupation
US10452669B2 (en) Simplifying quantitative analysis of time-bounded resource consumption
WO2022046470A1 (en) Time transfer using passive tapping
CN116074191A (en) IOAM processing method, device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: SHENZHEN LIANCHUANG INTELLECTUAL PROPERTY SERVICE

Free format text: FORMER OWNER: HUAWEI TECHNOLOGY CO., LTD.

Effective date: 20150708

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150708

Address after: 518129 Nanshan District Nanshan digital cultural industry base, east block, Guangdong, Shenzhen 407

Patentee after: Shenzhen LIAN intellectual property service center

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: Huawei Technologies Co., Ltd.

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160105

Address after: 224555 Jiangsu province Yancheng City Binhuai town head Zeng Village (Yancheng City coastal chemical industry park)

Patentee after: Binhai Xingguang Chemical Co., Ltd.

Address before: 518129 Nanshan District Nanshan digital cultural industry base, east block, Guangdong, Shenzhen 407

Patentee before: Shenzhen LIAN intellectual property service center

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

Granted publication date: 20130807

Termination date: 20151128

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