CN101753245B - Method and device for identifying service - Google Patents
Method and device for identifying service Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 230000004044 response Effects 0.000 claims description 10
- 230000008569 process Effects 0.000 abstract description 15
- 230000000694 effects Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000013507 mapping Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 238000012546 transfer Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000006872 improvement Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 238000012937 correction Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 101100341026 Caenorhabditis elegans inx-2 gene Proteins 0.000 description 1
- 101100341029 Caenorhabditis elegans inx-3 gene Proteins 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明实施例公开了一种业务识别方法和装置,所述方法包括:比较在一个预设的统计周期内所获取的多个服务帧周期中的Cn值,确定当前业务的最大Cn值和最小Cn值;查找预设的Cn库中是否存在与所述当前业务的最大Cn值和最小Cn值相匹配的业务记录;当所述预设的Cn库中存在与所述当前业务的最大Cn值和最小Cn值相匹配的业务记录时,确定所述业务记录所对应已知业务的业务类型为所述当前业务的业务类型。通过应用本发明实施例所提出的技术方案,实现了对业务类型的准确识别,达到了提高业务识别准确性,简化业务识别流程的效果。
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.
Description
技术领域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:
已知业务的最小Cn值的确定方法为:The method for determining the minimum Cn value of known services is:
其中,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:
其中,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
查找模块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
业务识别模块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所计数的当前业务的实际查询次数是否小于预设的的当前业务的最大查询次数;
重查询触发子模块32,用于当判断子模块31判断当前业务的实际查询次数小于预设的当前业务的最大查询次数时,触发查找模块2通过确定模块1所确定的下一个预设的统计周期内的当前业务的最大Cn值和最小Cn值在Cn库中进行下一轮查找。The
进一步的,业务识别模块3中还包括以下子模块中的一个或多个,具体为:Further, the business identification module 3 also includes one or more of the following submodules, specifically:
添加子模块33,用于在判断子模块31判断当前业务的实际查询次数不小于预设的当前业务的最大查询次数时,将当前业务的信息添加入Cn库;Adding a
初始值确定子模块34,用于在判断子模块31判断当前业务的实际查询次数小于预设的当前业务的最大查询次数时,确定查找模块2所查找到的业务记录所对应已知业务的的正常Cn值为当前业务的Cn初始值。The initial
进一步的,上述装置还包括: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.
其中,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
需要指出的是,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.
当即Cn库中存在与当前业务相匹配的业务记录时,则执行步骤S304;when 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)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567901A (en) * | 2012-01-16 | 2012-07-11 | 中国联合网络通信集团有限公司 | Advertising method, device and system |
Citations (3)
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 |
-
2008
- 2008-11-28 CN CN 200810173091 patent/CN101753245B/en not_active Expired - Fee Related
Patent Citations (3)
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 |