CN107528661B - Service processing method and device - Google Patents

Service processing method and device Download PDF

Info

Publication number
CN107528661B
CN107528661B CN201610460276.7A CN201610460276A CN107528661B CN 107528661 B CN107528661 B CN 107528661B CN 201610460276 A CN201610460276 A CN 201610460276A CN 107528661 B CN107528661 B CN 107528661B
Authority
CN
China
Prior art keywords
processing
clock cycles
logic channel
client service
channel unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610460276.7A
Other languages
Chinese (zh)
Other versions
CN107528661A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610460276.7A priority Critical patent/CN107528661B/en
Priority to PCT/CN2017/089363 priority patent/WO2017219979A1/en
Publication of CN107528661A publication Critical patent/CN107528661A/en
Application granted granted Critical
Publication of CN107528661B publication Critical patent/CN107528661B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/16Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/16Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
    • H04J3/1605Fixed allocated frame structures
    • H04J3/1652Optical Transport Network [OTN]
    • H04J3/1658Optical Transport Network [OTN] carrying packets or ATM cells
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0044Arrangements for allocating sub-channels of the transmission path allocation of payload
    • H04L5/0046Determination of how many bits are transmitted on different sub-channels

Abstract

The invention provides a method and a device for processing services, relates to the field of communication, and solves the problem that a mechanism is lacked in the prior art to realize transparent transmission of customer services in an OTN (optical transport network) during FMP (frequency modulated physical layer) mapping. The method comprises the following steps: acquiring the number of reference clock cycles needed for processing the client service data of one logic channel unit according to the relation between the unit logic channel unit payload size, the client service rate and the reference clock cycles; according to the number of reference clock cycles needed for processing the client service data of one logic channel unit, the logic channel unit overhead representing the client service rate information is obtained, and the logic channel unit loaded with the logic channel unit overhead and the client service data is transmitted, so that a receiving end can recover the client service rate information according to the logic channel unit overhead. The scheme of the invention realizes the transparent transmission of the customer service in the OTN during FMP mapping.

Description

Service processing method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for service processing.
Background
In modern communication systems, the importance of Optical Transport Networks (OTN) is increasing, and especially in medium and long distance transmission scenarios, data transmission using Optical Transport networks has become the mainstream currently. When data is transmitted in an optical transport network, the data must be converted into a standard signal format that is required to be able to be transmitted in the optical transport network. An OTU (optical channel transport unit) is a signal format defined by the standard, and the OTU is composed of an OTU overhead and an ODU (optical channel data unit), and the ODU is composed of an ODU overhead and an OPU (optical channel payload unit). Customer services are loaded into the OPU by a certain method and then transmitted in the optical transport network.
There are three ways to load customer traffic into the OPU according to what is set by the current standards: BMP (Bit-synchronous Mapping Procedure), AMP (Asynchronous Mapping Procedure), and GMP (Generic Mapping Procedure). The BMP is suitable for the case that the client service rate and the OPU rate are consistent, and the AMP is suitable for the case that the client service rate and the OPU rate are not consistent, but the difference between the two rates must be within a certain range, so the applicable range of the AMP and the BMP is limited. GMP is relatively widely used, and GMP mapping can be used as long as the customer traffic rate is lower than the OPU rate carrying it.
The method adopted by GMP mapping is to divide a payload unit OPU of an OTN frame into a plurality of time slots with the same size, calculate the bandwidth of the time slots according to the OPU bandwidth and the divided number, then pack the client service into one or a plurality of time slots according to the bandwidth of the client service, and fill in the position which is not full. Although GMP mapping has a wide range of applications, it also has certain disadvantages. One disadvantage is that space and time division multiplexing interconvertions are performed, which consumes a lot of logic resources. Another disadvantage is that the rigid bandwidth partitioning method results in a large influence of the bandwidth utilization rate on the client service rate, and the bandwidth utilization rate is not high in some cases.
There is a mapping method FMP based on statistical multiplexing technology, which is to load a client signal into an OTN frame or map a lower order ODU frame into a higher order ODU frame. FMP can overcome the defects of GMP. The FMP divides a payload unit OPU of the OTN frame in a mode based on a logical channel unit, and a subspace formed by a plurality of continuous bytes is defined as the logical channel unit. The mapping method can realize that all bytes processed in one clock cycle belong to a certain logic channel unit, avoid the mutual conversion of space division multiplexing and time division multiplexing, save logic resources and reduce the complexity of hardware realization. Another difference between the logical channel unit and the timeslot is that the size of the logical channel unit can be set according to the size of the customer service bandwidth, so that the bandwidth of the OPU is fully utilized, the bandwidth waste is prevented, and the bandwidth utilization rate is improved.
The FMP mapping reflects the actual rate of the customer service in units of logical channel units, but there is no mechanism in the prior art to implement transparent transmission of the customer service in the OTN during FMP mapping.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and a device for service processing, which solve the problem that a mechanism is not available in the prior art to implement transparent transmission of customer service in an OTN during FMP mapping.
To solve the foregoing technical problem, an embodiment of the present invention provides a method for service processing, including:
acquiring the number of reference clock cycles needed for processing the client service data of one logic channel unit according to the relation between the unit logic channel unit payload size, the client service rate and the reference clock cycles;
the method comprises the steps of acquiring the overhead of a logic channel unit representing client service rate information according to the number of reference clock cycles required for processing client service data of the logic channel unit, and transmitting the logic channel unit loaded with the overhead of the logic channel unit and the client service data, so that a receiving end can recover the client service rate information according to the overhead of the logic channel unit.
Further, the step of acquiring the number of reference clock cycles required for processing the client service data of one logical channel unit according to the relationship between the payload size of the unit logical channel unit, the client service rate and the reference clock cycle includes:
acquiring a common multiple K of the payload size N of the unit logic channel unit and the data volume L processed by the unit customer service clock period;
acquiring the number W of reference clock cycles needed for processing the customer service data of the K/N logic channel units according to the common multiple K, the relation between the customer service rate and the reference clock cycles;
and acquiring Cnd the number of reference clock cycles required for processing the client service data of each of the K/N logical channel units according to the number W of reference clock cycles required for processing the client service data of the K/N logical channel units.
Further, the step of obtaining Cnd the number of reference clock cycles required for processing the customer service data of each of the K/N logical channel units according to the number W of reference clock cycles required for processing the customer service data of the K/N logical channel units includes:
acquiring theoretical values CndL of the number of reference clock cycles needed for processing the client service data of one logic channel unit according to the payload size N of the unit logic channel unit, the reference clock frequency H and the client service rate S;
obtaining theoretical value CndL of reference clock period number required for processing customer service data of K/N-j logic channel unitsK/N-jWherein, CndLK/N-jCndL, (K/N-j) j is an integer between 0 and K/N-1;
acquiring the number W of reference clock cycles required for processing the client service data of the K/N-j logic channel units according to the number W of the reference clock cycles required for processing the client service data of the K/N logic channel unitsK/N-jWherein W isK/N-j=W-(Cnd0+…+Cndj) Wherein, CndjThe number of reference clock cycles required to process the customer service data for the jth logical channel unit, Cnd0=0;
The number W of the reference clock cycles needed for processing the customer service data of the K/N-j logic channel unitsK/N-jCndL which is the theoretical value of the number of reference clock cycles needed for processing the customer service data of the K/N-j logic channel unitsK/N-jComparing, and determining Cnd the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit according to the comparison result and the theoretical value CndL of the number of reference clock cycles needed for processing the client service data of one logic channel unitj+1
Further, the number W of reference clock cycles required for processing the customer service data of the K/N-j logical channel unitsK/N-jCndL which is the theoretical value of the number of reference clock cycles needed for processing the customer service data of the K/N-j logic channel unitsK/N-jComparing, and determining Cnd the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit according to the comparison result and the theoretical value CndL of the number of reference clock cycles needed for processing the client service data of one logic channel unitj+1Step bagComprises the following steps:
if WK/N-j<CndLK/N-jDetermining the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit: cndj+1=CndL-1;
If WK/N-j=CndLK/N-jDetermining the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit: cndj+1=CndL;
If WK/N-j>CndLK/N-jDetermining the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit: cndj+1=CndL+1。
Further, before the number of reference clock cycles required for processing the client service data of one logical channel unit is obtained according to the relationship between the payload size of the unit logical channel unit, the client service rate, and the reference clock cycle, the method further includes:
counting the number V of client service effective values received in a preset number of chip processing clock cycles;
and comparing the counted number V of the client service effective values received in the preset number of chip processing clock cycles with a preset threshold value, and smoothing the counted number V of the client service effective values received in the preset number of chip processing clock cycles according to a comparison result.
Further, before comparing the counted number V of the client service effective values received in the preset number of chip processing clock cycles with a preset threshold value, the method further includes:
acquiring the duty ratio n/m of the client service effective value on the chip processing clock period according to the data volume L processed by the unit client service clock period, the chip processing clock frequency H1 and the client service rate S;
and setting the threshold values of the client service effective values received in the preset number M of chip processing clock cycles to be M (n/M) + f and M (n/M) -f according to the duty ratio n/M, wherein f is a preset constant.
Further, the step of comparing the counted number V of the client service effective values received in the preset number of chip processing clock cycles with a preset threshold value, and performing smoothing processing on the counted number V of the client service effective values received in the preset number of chip processing clock cycles according to a comparison result includes:
if V is less than M (n/M) -f, adjusting the counted number V of the client service effective values received in the preset number of chip processing clock cycles to be: v ═ M (n/M) -1;
if M is not more than (n/M) -f and not more than V is not more than M (n/M) + f, adjusting the counted number V of the client service effective values received in the preset number of chip processing clock cycles to be: v ═ M (n/M);
if V is greater than M (n/M) + f, adjusting the counted number V of the client service effective values received in the preset number of chip processing clock cycles to be: v ═ M (n/M) + 1.
Further, after comparing the counted number V of the client service effective values received in the preset number of chip processing clock cycles with a preset threshold value, and performing smoothing processing on the counted number V of the client service effective values received in the preset number of chip processing clock cycles according to a comparison result, the method further includes:
acquiring the number of the client service effective values received in the preset number of chip processing clock cycles before smoothing processing, and taking the difference value of the number of the client service effective values received in the preset number of chip processing clock cycles after smoothing processing as a remainder;
and when the number of the client service effective values received in the preset number of chip processing clock cycles is counted again, comparing the sum of the number of the client service effective values received in the preset number of chip processing clock cycles counted again and the remainder with a preset threshold value, and smoothing the number of the client service effective values received in the preset number of chip processing clock cycles counted again according to the comparison result.
To solve the foregoing technical problem, an embodiment of the present invention further provides a device for service processing, including:
the first acquisition module is used for acquiring the number of reference clock cycles needed for processing the client service data of one logic channel unit according to the relation among the payload size of the unit logic channel unit, the client service rate and the reference clock cycles;
and the transmission module is used for acquiring the logic channel unit overhead representing the client service rate information according to the number of the reference clock cycles required for processing the client service data of one logic channel unit, and transmitting the logic channel unit loaded with the logic channel unit overhead and the client service data, so that a receiving end can recover the client service rate information according to the logic channel unit overhead.
In order to solve the above technical problem, an embodiment of the present invention further provides a method for service processing, including:
extracting the overhead of the logic channel unit from the received logic channel unit, wherein the logic channel unit is loaded with the overhead of the logic channel unit and customer service data;
acquiring the number of reference clock cycles required for processing the client service data of one logic channel unit according to the overhead of the logic channel unit;
and recovering the client service rate information according to the number of the reference clock cycles, the reference clock frequency and the payload size of the unit logic channel unit required for processing the client service data of one logic channel unit.
Further, the step of recovering the rate information of the client service data according to the number of reference clock cycles, the reference clock frequency and the payload size of the unit logical channel unit required for processing the client service data of one logical channel unit includes:
acquiring a common multiple K of a unit logic channel unit payload size N and a unit customer service clock period processing data volume L;
and recovering the customer service data rate information according to the number of the reference clock cycles, the reference clock frequency and the common multiple K which are required for processing the customer service data of the K/N logic channel units.
To solve the foregoing technical problem, an embodiment of the present invention further provides a device for service processing, including:
the extraction module is used for extracting the overhead of the logic channel unit from the received logic channel unit, wherein the logic channel unit is loaded with the overhead of the logic channel unit and the client service data;
the second acquisition module is used for acquiring the number of reference clock cycles required for processing the client service data of one logic channel unit according to the overhead of the logic channel unit;
and the recovery module is used for recovering the service rate information of the client according to the number of the reference clock cycles, the reference clock frequency and the payload size of the unit logic channel unit required by processing the service data of the client of one logic channel unit.
The technical scheme of the invention has the following beneficial effects:
the method for processing the service of the embodiment of the invention comprises the steps of firstly, acquiring the number of reference clock cycles needed for processing the client service data of one logic channel unit according to the relation among the size of the payload of the unit logic channel unit, the client service rate and the reference clock cycles; and then, according to the number of reference clock cycles needed for processing the client service data of one logic channel unit, acquiring the logic channel unit overhead representing the client service rate information, and transmitting the logic channel unit loaded with the logic channel unit overhead and the client service data, so that a receiving end can recover the client service rate information according to the logic channel unit overhead, thereby realizing the transparent transmission of the client service in the OTN during FMP mapping.
Drawings
Fig. 1 is a flowchart of a service processing method applied to a transmitting end according to the present invention;
FIG. 2 is a schematic diagram illustrating a relationship between a logic channel unit and a reference clock cycle in the service processing method of the present invention;
fig. 3 is a schematic diagram of distribution of ODU2 effective values output from a module in the service processing method of the present invention;
fig. 4 is a schematic diagram of distribution of the smoothed ODU2 effective values in the service processing method according to the present invention;
fig. 5 is a schematic structural diagram of a service processing apparatus applied to a transmitting end according to the present invention;
FIG. 6 is a flow chart of the method for processing services of the present invention applied to a receiving end;
fig. 7 is a schematic structural diagram of the service processing apparatus applied to the receiving end in the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
Referring to fig. 1, a method for processing a service according to an embodiment of the present invention includes:
step 101, acquiring the number of reference clock cycles needed for processing the client service data of one logic channel unit according to the relation among the unit logic channel unit payload size, the client service rate and the reference clock cycles.
In this step, the time required for processing the client service data of one logical channel unit, that is, the time taken to load the client service data into the payload of one logical channel unit, is required to be obtained, and this time is represented by reference clock cycle number Cnd.
Step 102, according to the number of reference clock cycles needed for processing the client service data of one logic channel unit, acquiring the logic channel unit overhead representing the client service rate information, and transmitting the logic channel unit loaded with the logic channel unit overhead and the client service data, so that the receiving end can recover the client service rate information according to the logic channel unit overhead.
In this step, according to the value of Cnd used for loading the client service data into a payload of a logical channel unit, the logical channel unit overheads Cn and Cd representing the client service rate information can be calculated to realize transparent transmission of the client service.
The service processing method of the embodiment of the invention puts the customer service rate information into the overhead of the logic channel unit when FMP mapping based on the logic channel unit, so that the receiving end can recover the customer service rate information according to the overhead of the logic channel unit, thereby ensuring the transparent transmission of the customer service in the OTN.
Preferably, the step of step 101 may include:
step 1011, obtaining a common multiple K of the payload size N of the unit logic channel unit and the data volume L processed by the unit customer service clock period.
Here, since the unit logical channel unit payload size N and the amount of data L processed per unit customer service clock cycle may not be in an integer multiple relationship, it is impossible to simply calculate the time required to process the customer service data of one logical channel unit. The data amount processed in a unit customer service clock cycle is the number of bytes transmitted in the unit customer service clock cycle. Referring to fig. 2, the time required for one logic channel unit to transmit corresponds to the number of reference clock cycles.
In this step, a common multiple K of the payload size N of the unit logical channel unit and the number of bytes L transmitted in the unit customer service clock cycle is obtained. K/L bytes are transmitted in K/N logical channel units. And converting the time required for calculating and processing the client service data of one logic channel unit into the time required for calculating and processing the client service data of K/N logic channel units. Wherein the common multiple K may be a least common multiple.
And 1012, acquiring the number W of the reference clock cycles needed for processing the customer service data of the K/N logic channel units according to the common multiple K, the relation between the customer service rate and the reference clock cycles.
Here, the time for processing the client service data of the K/N logical channel units is the time required for transmitting the K/L bytes, so that the time for processing the client service data of the K/N logical channel units requires K/L client service clock cycles, and then the number W of the reference clock cycles required for processing the client service data of the K/N logical channel units is obtained according to the number of the reference clock cycles corresponding to the K/L client service clock cycles.
Step 1013, obtaining Cnd the number of reference clock cycles required for processing the customer service data of each of the K/N logical channel units according to the number W of reference clock cycles required for processing the customer service data of the K/N logical channel units.
Here, W is the sum of Cnd values required for processing the client service data of K/N logical channel units, and logical channel unit overheads Cn and Cd representing the client service rate information can be calculated only by acquiring the Cnd value required for processing the client service data of one logical channel unit according to W.
Since the Cnd values corresponding to one logic channel unit obtained by directly dividing W by K/N are not uniform, the Cnd values corresponding to each logic channel unit in K/N logic channel units are obtained by adopting homogenization processing. The following describes the homogenization procedure in detail.
Preferably, the step 1013 may include:
step 10131, obtaining the theoretical value CndL of the number of reference clock cycles needed for processing the client service data of one logic channel unit according to the payload size N of the unit logic channel unit, the reference clock frequency H and the client service rate S.
Here, as shown in fig. 2, the reference clock is a continuous clock, not a clock with a break. The number of bytes of payload of a logic channel unit is N, namely (N × 8) bit. The method comprises the following steps of processing client service data of a logic channel unit, namely loading the client service data into the logic channel unit, wherein a theoretical value CndL of the number of required reference clock cycles can be obtained through a formula: (N × 8) × H/S.
Step 10132, obtaining the theoretical value CndL of the reference clock period number needed for processing the customer service data of K/N-j logic channel unitsK/N-jWherein, CndLK/N-jCndL, (K/N-j) j is an integer between 0 and K/N-1.
10133, according to the number W of the reference clock cycles needed for processing the client service data of the K/N logic channel units, obtaining the reference clock needed for processing the client service data of the K/N-j logic channel unitsNumber of cycles WK/N-jWherein W isK/N-j=W-(Cnd0+…+Cndj) Wherein, CndjThe number of reference clock cycles required to process the customer service data for the jth logical channel unit, Cnd0=0。
Step 10134, the number W of reference clock cycles needed for processing the customer service data of K/N-j logic channel unitsK/N-jCndL which is the theoretical value of the number of reference clock cycles needed for processing the customer service data of the K/N-j logic channel unitsK/N-jComparing, and determining Cnd the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit according to the comparison result and the theoretical value CndL of the number of reference clock cycles needed for processing the client service data of one logic channel unitj+1
Here, j may be first taken to be 0, and a theoretical value CndL of the number of reference clock cycles required for processing the client service data of K/N logical channel units may be obtainedK/NAnd then the number W of reference clock cycles needed for processing the customer service data of the K/N logical channel unitsK/N(WK/NW) and the theoretical value CndLK/NComparing to obtain Cnd reference clock period number corresponding to the 1 st logic channel unit1. Then, j is taken as 1 to obtain a theoretical value CndL of the number of reference clock cycles needed for processing the customer service data of K/N-1 logic channel unitsK/N-1The number of reference clock cycles W needed for processing the customer service data of K/N-1 logic channel units is equal to (K/N-1) × CndLK/N-1(WK/N-1=W-Cnd1) To the theoretical value CndLK/N-1Comparing to obtain Cnd reference clock period number corresponding to the 2 nd logic channel unit2. According to the method, j is taken and added with 1 in turn until Cnd values corresponding to each of K/N logical channel units are obtained.
At this time, a homogenization processing mode is adopted to obtain Cnd values of the K/N logic channel units which are uniformly distributed, and then logic channel unit overheads Cn and Cd which represent the client service rate information can be obtained, so as to realize transparent transmission of the client service.
Further, the step 10134 may include:
if WK/N-j<CndLK/N-jDetermining the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit: cndj+1=CndL-1;
If WK/N-j=CndLK/N-jDetermining the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit: cndj+1=CndL;
If WK/N-j>CndLK/N-jDetermining the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit: cndj+1=CndL+1。
At this time, the Cnd value corresponding to one logic channel unit has 3 values, i.e., the theoretical value of Cnd, the theoretical value of Cnd +1, and the theoretical value of Cnd-1. By comparing WK/N-jAnd CndLK/N-jAnd determining Cnd values corresponding to the j +1 th logic channel unit in the 3 values, thereby realizing the purpose of homogenization treatment.
In order to make the calculated overhead value required for implementing FMP mapping more accurate, the client traffic valid value needs to be smoothed, and the smoothing procedure will be described in detail below.
Preferably, before the step 101, the method may further include:
step 1001, counting the number V of client service effective values received in a preset number of chip processing clock cycles.
Here, a counter may be set to count the number V of the client service valid values received in a preset number M of chip processing clock cycles.
Step 1002, comparing the counted number V of the client service effective values received in the preset number of chip processing clock cycles with a preset threshold value, and smoothing the counted number V of the client service effective values received in the preset number of chip processing clock cycles according to the comparison result.
Here, the counted number V of the client service effective values each time is different in the preset number M of chip processing clock cycles, and the number V of the client service effective values is compared with a set threshold value to obtain a smoothed client service effective value.
At this time, by performing smoothing processing on the counted client service effective values, the values of the client service effective values in a fixed number of chip processing clock cycles tend to be consistent, and the distribution is more uniform, so that a more accurate overhead value of the logic channel unit can be obtained.
Further, before the step 1002, the method may further include:
step 1003, obtaining the duty ratio n/m of the client service effective value on the chip processing clock period according to the data volume L processed by the unit client service clock period, the chip processing clock frequency H1 and the client service rate S.
Here, when performing FMP mapping, the chip processing clock frequency H1 and the amount of data processed per unit customer service clock cycle (i.e., the number of bytes transferred) L are determined, and the customer service rate S is compared with the product of the chip processing clock frequency H1 and the number of bytes processed per unit customer service clock cycle L, and the result is the duty ratio of the customer service effective value over the chip processing clock cycle, which is also a theoretical calculation value of the customer service effective value. The calculation formula is n/m ═ S/(H1 × L). The value is a fraction, where n and m are both positive integers. And smoothing the client service effective value output by the module based on the n/m fraction.
Wherein the customer service clock period is equal to the chip processing clock period multiplied by m/n.
And 1004, setting the threshold values of the client service effective values received in the preset number M of chip processing clock cycles to be M × (n/M) + f and M × (n/M) -f according to the duty ratio n/M, wherein f is a preset constant.
Here, M may take the value M × k, k is a positive integer greater than or equal to 1, and the set threshold values are n × k + f and n × k-f. Wherein f is an adjustment value, and can be adjusted according to implementation requirements. Generally, f is not large and is set to be constant.
Specifically, the step 1002 may include:
if V is less than M (n/M) -f, adjusting the counted number V of the client service effective values received in the preset number of chip processing clock cycles to be: v ═ M (n/M) -1;
if M is not more than (n/M) -f and not more than V is not more than M (n/M) + f, adjusting the counted number V of the client service effective values received in the preset number of chip processing clock cycles to be: v ═ M (n/M);
if V is greater than M (n/M) + f, adjusting the counted number V of the client service effective values received in the preset number of chip processing clock cycles to be: v ═ M (n/M) + 1.
Here, assuming that M takes the value M × k, if V < n × k-f, n × k-1 is output as the effective value of the client service; if n x k-f is not more than V and not more than n x k + f, outputting n x k as the effective value of the customer service; if V > n x k + f, outputting n x k +1 as the effective value of the customer service. Through the smoothing processing, the statistical customer service effective value tends to n x k in m x k chip processing clock cycles.
At this time, after the smoothing processing, the client service effective values tend to be consistent in value within a fixed number of chip processing clock cycles, and are distributed more uniformly.
Assuming that the client service is an ODU2, referring to fig. 3, the effective values of the ODU2 directly output from the module are unevenly distributed over a chip processing clock cycle; referring to fig. 4, after the smoothing process, the effective values of the ODU2 tend to be consistent within a fixed number of chip processing clock cycles, and exhibit uniform distribution.
When the smoothing processing is executed, a remainder problem exists, and the remainder is a difference value between the number of the client service effective values counted in the processing clock cycles of the M chips and the client service effective value output after the smoothing processing. The remainder may be a negative integer, a positive integer, or zero. If the remainder is not considered and the remainder is directly cleared, the smoothed client service rate information is inconsistent with the original client service rate information, so that the client service rate information is lost, and therefore, the remainder must be correspondingly processed. The following describes the remainder processing steps in detail.
Preferably, after the step 1002, the method further includes:
step 1005, obtaining a difference value between the number V of the client service effective values received in the preset number of chip processing clock cycles before the smoothing processing and the number VS of the client service effective values received in the preset number of chip processing clock cycles after the smoothing processing as a remainder.
Here, the obtained remainder may be stored in a counter for easy lookup and use.
For example, counting the number V of the effective values of the client business received in m × k chip processing clock cycles, if V is less than n × k-f, subtracting n × k-1 from V as a remainder, and storing the remainder in a counter, wherein the remainder is a negative value; if n x k-f is less than or equal to V is less than or equal to n x k + f, then V minus n x k is stored in the counter as a remainder, which may be a negative value, a positive value or 0; if V > n k + f, V minus n k +1 is stored as a remainder in the counter, which is a positive value.
Step 1006, when the number of the client service effective values received in the preset number of chip processing clock cycles is counted again, comparing the sum of the number of the client service effective values received in the preset number of chip processing clock cycles counted again and the remainder with a preset threshold value, and smoothing the number of the client service effective values received in the preset number of chip processing clock cycles counted again according to the comparison result.
Here, when counting the number V1 of the client service effective values received in the preset number of chip processing clock cycles again, the number V1 needs to be added to the remainder value in the counter to obtain the number V1N of the client service effective values in the current preset number of chip processing clock cycles, and then the above-mentioned steps 1001 and 1002 are repeated. And then V1N and the number V1NS of the smoothed client service effective values are subjected to remainder calculation and are provided for the next statistical value to use.
At this time, the loss of the client service rate information is avoided by processing the remainder, and the accuracy of the client service rate information after the smoothing processing is ensured.
To sum up, the method for service processing according to the embodiment of the present invention can calculate a theoretical calculation value of a client service effective value according to the client service rate, the chip processing clock frequency, and the number of bytes that can be processed in a unit client service clock cycle, and then smooth the client service based on the theoretical calculation value, so that the client service effective value tends to be consistent in a fixed number of clock cycles. The use of the smoothed customer traffic significands to generate the overhead values required to implement FMP mapping is more accurate than the use of the smoothed customer traffic significands to generate the overhead values required to implement FMP mapping. After obtaining a more uniform value representing the client signal rate information through smoothing processing, obtaining Cnd reference clock numbers for loading the client service data into a logic channel unit through homogenization processing, and finally obtaining the logic channel unit overheads Cn and Cd representing the client service rate information. The receiving end can recover the client service rate information according to the logical channel unit expenses Cn and Cd, thereby ensuring the transparent transmission of the client service in the OTN.
Taking the customer service as ODU2 as an example, a specific implementation flow of the service processing method according to the embodiment of the present invention is described as follows.
The client service is ODU2, the client service is mapped into ODU4 by an FMP method, and the effective value of ODU2 directly output from the module is subjected to smoothing and homogenization processing to obtain logical channel unit overheads Cn and Cd representing rate information of ODU 2. At a receiving end, the ODU2 service can be restored according to the extracted logical channel unit overheads Cn and Cd.
Assume that the payload size N of the logical channel unit is 475 bytes, the number L of bytes processed by the unit ODU2 in clock cycle is 40 bytes, the value of the parameter k in the smoothing process is 1, and the adjustment value f is set to 2. Since the number of bytes 3824 of a row of the ODU4 frame cannot be evenly divided by 40, 16 padding bytes are added in the implementation, so that the number of bytes of a row of the passed ODU4 frame is 3840, and it is necessary to complete the transmission of a row of ODU4 frame by 3840/40-96 chip processing clock cycles.
The method for processing the service of the embodiment of the invention comprises the following steps:
step 201, calculating a theoretical calculation result n/m of an effective value of the ODU2 according to the byte number L processed by the unit ODU2 in clock cycle, the chip processing clock frequency H1, and the ODU2 rate S.
The theoretical rate of the ODU2 is 9.95328 × 239/237Gbit/s, and the frame structure includes ODU2 overhead, OPU2 overhead, and OPU2 payload. The chip processing clock frequency H1 is 0.31104 × 15/14 Ghz. The number of bytes L processed by the unit ODU2 clock cycle is 40, and total 40 × 8 is 320 bits. Therefore, the theoretical calculation result of the effective value of the ODU2 is:
n/m=9.95328*239/237/(0.31104*15/14*320)=261/2773。
step 202, smoothing the ODU2 valid value directly output by the module according to the theoretical calculation result. And setting a counter, and counting the number V of effective values of the ODU2 in 2773 chip processing clock cycles. If V is less than 261-2, outputting 260 as an ODU2 effective value; if the V is more than or equal to 261-2 and less than or equal to 261+2, the 261 is output as a client business effective value; if V > 261+2, then 262 is output as the customer service valid value.
Step 203, the remainder is processed. If V is less than 261-2, storing V-260 as remainder in the counter; if V is not less than 261-2 and not more than 261+2, storing V-261 as remainder in a counter; if V > 261+2, then V-262 is stored as the remainder in the counter. When the ODU2 valid value received in 2773 chip processing clock cycles is counted next time, the processing of step 202 needs to be performed by adding the remainder in the counter, and the remainder is calculated and stored in the counter.
Step 204, obtaining a reference clock cycle number Cnd required for processing the ODU2 data of one logical channel unit, that is, obtaining a reference clock cycle number required for processing the 475 bytes of ODU2 data. An ODU2 clock cycle processes an ODU2 valid signal corresponding to 40 bytes, so the number of reference clocks corresponding to one 475 logic channel unit cannot be simply calculated. The least common multiple 3800 of 475 and 40 is taken, i.e., 95 40 bytes were transferred by 8 475 logical channel units. And calculating the number W of reference clock cycles corresponding to 95 ODU2 clock cycles.
In step 205, since the Cnd values of 8 logic pass cells obtained by directly dividing W by 8 are not uniform, Cnd values of 8 logic pass cells are obtained by using a homogenization treatment. Firstly, a theoretical value CndL of the number of reference clock cycles needed for processing the client service data of one logic channel unit is obtained. The payload N of a logical channel unit is 475 bytes, i.e., (475 × 8) bits. The reference clock frequency H is 1/640 of the OTU4 rate, i.e., (225/227 × 99532800 kbit/s)/640. The rate of the ODU2 is 239/237 × 9953280 kbit/s. By the formula: (N × 8) H/S, giving CndL values:
CndL=475*8*{(225/227*99532800)/640}/(239/237*9953280)≈66。
step 206, take j as 0, compare the sum W of 8 logical channel unit Cnd values8CndL, the sum of W and 8 CndL values8Size of (CndL)88 x 66 x 528 if W8> 528, Cnd is determined166+1 67; if W is8528, Cnd is determined166; if W is8< 528, then Cnd is determined1=66-1=65。
Step 207, take j as 1, compare the sum W of the remaining 7 logical channel unit Cnd values7=W-Cnd1And CndL of the sum of 7 CndL values7Size of (CndL)77, 66, 462 if W7> 462, Cnd is determined266+1 67; if W is7462, then Cnd is determined266; if W is7< 462, then determine Cnd2=66-1=65。
Step 208, take j to 2, compare the sum W of the remaining 6 logical channel unit Cnd values6=W-(Cnd1+Cnd2) And the sum CndL of 6 CndL values CndL6Size of (CndL)66 x 66 x 396 if W6> 396, Cnd is determined366+1 67; if W is6396, Cnd is determined366; if W is6< 396, then Cnd is determined3=66-1=65。
Step 209, sequentially calculate Cnd values corresponding to each of the remaining 5 logical channel units according to the method of step 206-208.
Step 210, according to the calculated Cnd values corresponding to 1 logical channel unit, calculating logical channel unit overheads Cn and Cd representing ODU2 rate information, and transmitting the logical channel unit loaded with the logical channel unit overheads and the client service data, so that the receiving end can recover the client service rate information according to the logical channel unit overheads.
The service processing method of the embodiment of the invention puts the customer service rate information into the overhead of the logic channel unit when FMP mapping based on the logic channel unit, so that the receiving end can recover the customer service rate information according to the overhead of the logic channel unit, thereby ensuring the transparent transmission of the customer service in the OTN.
Referring to fig. 5, an embodiment of the present invention further provides a service processing apparatus, including:
the first acquisition module is used for acquiring the number of reference clock cycles needed for processing the client service data of one logic channel unit according to the relation among the payload size of the unit logic channel unit, the client service rate and the reference clock cycles;
and the transmission module is used for acquiring the logic channel unit overhead representing the client service rate information according to the number of the reference clock cycles required for processing the client service data of one logic channel unit, and transmitting the logic channel unit loaded with the logic channel unit overhead and the client service data, so that a receiving end can recover the client service rate information according to the logic channel unit overhead.
The service processing device of the embodiment of the invention puts the customer service rate information into the overhead of the logic channel unit when FMP mapping based on the logic channel unit, so that the receiving end can recover the customer service rate information according to the overhead of the logic channel unit, thereby ensuring the transparent transmission of the customer service in the OTN.
Preferably, the first obtaining module includes:
the first acquisition unit is used for acquiring a common multiple K of the payload size N of the unit logic channel unit and the data volume L processed by the unit customer service clock period;
the second acquisition unit is used for acquiring the number W of the reference clock cycles required for processing the client service data of the K/N logic channel units according to the common multiple K, the relationship between the client service rate and the reference clock cycles;
and a third obtaining unit, configured to obtain Cnd numbers of reference clock cycles required for processing the client service data of each of the K/N logical channel units according to the number W of reference clock cycles required for processing the client service data of the K/N logical channel units.
Preferably, the third acquiring unit includes:
the first acquiring subunit is used for acquiring a theoretical value CndL of the number of reference clock cycles needed for processing the client service data of one logic channel unit according to the payload size N of the unit logic channel unit, the reference clock frequency H and the client service rate S;
a second obtaining subunit, configured to obtain a theoretical value CndL of the number of reference clock cycles required to process the client service data of the K/N-j logical channel unitsK/N-jWherein, CndLK/N-jCndL, (K/N-j) j is an integer between 0 and K/N-1;
a third obtaining subunit, configured to obtain, according to the number W of reference clock cycles required for processing the client service data of the K/N logical channel units, the number W of reference clock cycles required for processing the client service data of the K/N-j logical channel unitsK/N-jWherein W isK/N-j=W-(Cnd0+…+Cndj) Wherein, CndjThe number of reference clock cycles required to process the customer service data for the jth logical channel unit, Cnd0=0;
A determining subunit, configured to determine the number W of reference clock cycles required for processing the client service data of the K/N-j logical channel unitsK/N-jCndL which is the theoretical value of the number of reference clock cycles needed for processing the customer service data of the K/N-j logic channel unitsK/N-jComparing, and determining the j +1 th logic channel unit according to the comparison result and the theoretical value CndL of the reference clock period number required for processing the client service data of one logic channel unitCnd of the number of reference clock cycles required for the customer service dataj+1
Further, the determining subunit is specifically configured to:
if WK/N-j<CndLK/N-jDetermining the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit: cndj+1=CndL-1;
If WK/N-j=CndLK/N-jDetermining the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit: cndj+1=CndL;
If WK/N-j>CndLK/N-jDetermining the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit: cndj+1=CndL+1。
Preferably, the apparatus further comprises:
the counting module is used for counting the number V of the client service effective values received in the preset number of chip processing clock cycles;
and the smoothing processing module is used for comparing the counted number V of the client service effective values received in the preset number of chip processing clock cycles with a preset threshold value and smoothing the counted number V of the client service effective values received in the preset number of chip processing clock cycles according to a comparison result.
Preferably, the apparatus further comprises:
the third acquisition module is used for acquiring the duty ratio n/m of the client service effective value on the chip processing clock period according to the data volume L processed by the unit client service clock period, the chip processing clock frequency H1 and the client service rate S;
and the setting module is used for setting the threshold values of the client service effective values received in the preset number M of chip processing clock cycles to be M (n/M) + f and M (n/M) -f according to the duty ratio n/M, wherein f is a preset constant.
Further, the smoothing module is specifically configured to:
if V is less than M (n/M) -f, adjusting the counted number V of the client service effective values received in the preset number of chip processing clock cycles to be: v ═ M (n/M) -1;
if M is not more than (n/M) -f and not more than V is not more than M (n/M) + f, adjusting the counted number V of the client service effective values received in the preset number of chip processing clock cycles to be: v ═ M (n/M);
if V is greater than M (n/M) + f, adjusting the counted number V of the client service effective values received in the preset number of chip processing clock cycles to be: v ═ M (n/M) + 1.
Preferably, the apparatus further comprises:
a fourth obtaining module, configured to obtain, as a remainder, a difference between the number of client service effective values received in the preset number of chip processing clock cycles before smoothing processing and the number of client service effective values received in the preset number of chip processing clock cycles after smoothing processing;
and the smoothing processing module is also used for comparing the counted number of the client service effective values received in the preset number of chip processing clock cycles with the sum of the remainder when counting the number of the client service effective values received in the preset number of chip processing clock cycles again, and smoothing the counted number of the client service effective values received in the preset number of chip processing clock cycles according to the comparison result.
The service processing device of the embodiment of the invention puts the customer service rate information into the overhead of the logic channel unit when FMP mapping based on the logic channel unit, so that the receiving end can recover the customer service rate information according to the overhead of the logic channel unit, thereby ensuring the transparent transmission of the customer service in the OTN.
It should be noted that the device for service processing is a device corresponding to the method for service processing, and all implementation manners in the method embodiment are applicable to the embodiment of the device, so that the same technical effect can be achieved.
Referring to fig. 6, an embodiment of the present invention further provides a method for service processing, including:
step 601, extracting the overhead of the logical channel unit from the received logical channel unit, wherein the logical channel unit is loaded with the overhead of the logical channel unit and the customer service data.
Here, the logical channel unit sent by the sending end has logical channel unit overheads Cn and Cd representing client traffic rate information.
Step 602, obtaining the number of reference clock cycles needed for processing the client service data of one logical channel unit according to the logical channel unit overhead.
Here, the number Cnd of reference clock cycles required to process the client service data of one logical channel unit can be calculated according to the logical channel unit overheads Cn and Cd to recover the client service rate information.
Step 603, recovering the client service rate information according to the number of the reference clock cycles, the reference clock frequency and the payload size of the unit logic channel unit required for processing the client service data of one logic channel unit.
Here, the client service rate information is recovered, that is, the duty ratio n/m of the client service effective value on the chip processing clock period is calculated, and n effective client service data are transmitted in m chip processing clock periods. Customer traffic rate information can be recovered specifically through a sigma-delta algorithm.
The service processing method of the embodiment of the invention can recover the client service rate information according to the overhead of the logic channel unit by putting the client service rate information into the overhead of the logic channel unit when FMP mapping based on the logic channel unit is performed, thereby ensuring the transparent transmission of the client service in the OTN.
Preferably, the step 603 includes:
step 6031, obtain a common multiple K of the payload size N of the unit logical channel unit and the data volume L processed by the unit customer service clock cycle.
Here, to recover the customer traffic rate information, Cnd reference clock cycles are calculated, and the number Q of chip processing clock cycles required to deliver customer traffic of a logical channel unit payload size N is calculated. Since the payload size N of a logical channel unit and the number L of bytes transmitted in one chip processing clock cycle may not be an integer multiple, the number Q of chip processing clock cycles required for the client service of the payload size N of a logical channel unit cannot be directly calculated.
In this step, a common multiple K of the payload size N of the unit logical channel unit and the number of bytes L transmitted in the unit customer service clock cycle is obtained. K/L bytes are transmitted in K/N logical channel unit time. Thus, the number Q of chip processing clock cycles required for calculating the client service of the payload size N of one logic channel unit is converted into the number QS of chip processing clock cycles required for calculating the client service of K/N logic channel units. Here, n is equal to K/L and m is equal to QS. Wherein the common multiple K may be a least common multiple.
And step 6032, recovering the rate information of the customer service data according to the number W of the reference clock cycles, the frequency H of the reference clock and the common multiple K required for processing the customer service data of the K/N logic channel units.
Here, since the time to transmit the client traffic of K/N logical channel units is equal to the time to transmit W reference clock cycles, QS is W H3/H. Wherein, H3 is the chip processing clock frequency, W Cnd1+Cnd2+…+CndK/N,Cnd1Is the Cnd value, Cnd, of the 1 st logical channel element extracted from the Cn and Cd overheads2Is the Cnd value, …, Cnd of the 2 nd logical channel element extracted from the Cn and Cd overheadK/NIs the Cnd value for the Kth logical channel unit extracted from the Cn and Cd overheads.
The customer traffic rate information can be recovered by calculating the formula n/m ═ (K/L)/QS ═ K ═ H/(L ═ W ═ H3). Wherein, the formula can be used: h2 ═ H3 × (n/m), resulting in the customer service clock frequency H2, and then by the formula: and H2 × L, obtaining the customer traffic rate S.
Taking the customer service as the ODU2 as an example, a specific implementation flow of the service processing method according to the embodiment of the present invention is illustrated as follows.
Assuming that the payload size N of the logic channel unit is 475 bytes, the number L of bytes processed per unit chip processing clock cycle is 40 bytes. The service processing method according to the embodiment of the present invention recovers rate information of the ODU2, that is, calculates an actual duty ratio n/m of the ODU2 on a bus (chip processing clock cycle), and n effective ODU2 data are transmitted in m chip processing clock cycles. And obtaining Cnd reference clock numbers according to the extracted Cn and Cd overhead of the logic channel unit. Since the number of bytes 475 of a logical channel unit payload size is not evenly divisible with the number of bytes 40 conveyed in one ODU2 clock cycle, the least common multiple 3800 of 475 and 40 is taken. In the time of transmitting 3800/475 ═ 8 payload bytes of logical channel unit, i.e. W ═ Cnd1+Cnd2+…+Cnd8For one reference clock cycle, 3800/40-95 valid ODU2 data are transmitted. Where n is 95 and m is the number of chip processing clock cycles in the W reference clock cycles. Since the basic clock frequency H and the chip processing clock frequency H3 are determined, m is W H3/H. After n and m are obtained, customer service is recovered through a sigma-delta algorithm.
The service processing method of the embodiment of the invention can recover the client service rate information according to the overhead of the logic channel unit by putting the client service rate information into the overhead of the logic channel unit when FMP mapping based on the logic channel unit is performed, thereby ensuring the transparent transmission of the client service in the OTN.
Referring to fig. 7, an embodiment of the present invention further provides a service processing apparatus, including:
the extraction module is used for extracting the overhead of the logic channel unit from the received logic channel unit, wherein the logic channel unit is loaded with the overhead of the logic channel unit and the client service data;
the second acquisition module is used for acquiring the number of reference clock cycles required for processing the client service data of one logic channel unit according to the overhead of the logic channel unit;
and the recovery module is used for recovering the service rate information of the client according to the number of the reference clock cycles, the reference clock frequency and the payload size of the unit logic channel unit required by processing the service data of the client of one logic channel unit.
The service processing device of the embodiment of the invention can recover the client service rate information according to the overhead of the logic channel unit by putting the client service rate information into the overhead of the logic channel unit when FMP mapping based on the logic channel unit is performed, thereby ensuring the transparent transmission of the client service in the OTN.
Preferably, the recovery module includes:
the fourth acquisition unit is used for acquiring a common multiple K of the payload size N of the unit logic channel unit and the data volume L processed by the unit customer service clock period;
and the recovery unit is used for recovering the rate information of the client service data according to the number W of the reference clock cycles, the frequency H of the reference clock and the common multiple K which are required for processing the client service data of the K/N logic channel units.
It should be noted that the device for service processing is a device corresponding to the method for service processing, and all implementation manners in the method embodiment are applicable to the embodiment of the device, so that the same technical effect can be achieved.
In various embodiments of the present invention, it should be understood that the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for processing services, comprising:
acquiring the number of reference clock cycles needed for processing the client service data of one logic channel unit according to the relation between the unit logic channel unit payload size, the client service rate and the reference clock cycles;
acquiring the logic channel unit overhead representing the client service rate information according to the number of reference clock cycles required for processing the client service data of one logic channel unit, and transmitting the logic channel unit loaded with the logic channel unit overhead and the client service data, so that a receiving end can recover the client service rate information according to the logic channel unit overhead;
the step of acquiring the number of reference clock cycles required for processing the client service data of one logic channel unit according to the relation among the unit logic channel unit payload size, the client service rate and the reference clock cycle comprises the following steps:
acquiring a common multiple K of the payload size N of the unit logic channel unit and the data volume L processed by the unit customer service clock period;
acquiring the number W of reference clock cycles needed for processing the customer service data of the K/N logic channel units according to the common multiple K, the relation between the customer service rate and the reference clock cycles;
and acquiring Cnd the number of reference clock cycles required for processing the client service data of each of the K/N logical channel units according to the number W of reference clock cycles required for processing the client service data of the K/N logical channel units.
2. The method of claim 1, wherein the step of obtaining Cnd reference clock cycles required for processing customer service data for each of the K/N logical channel units based on the reference clock cycles W required for processing customer service data for the K/N logical channel units comprises:
acquiring theoretical values CndL of the number of reference clock cycles needed for processing the client service data of one logic channel unit according to the payload size N of the unit logic channel unit, the reference clock frequency H and the client service rate S;
base for acquiring customer service data required by processing K/N-j logic channel unitsTheoretical value CndL of number of punctual clock cyclesK/N-jWherein, CndLK/N-jCndL, (K/N-j) j is an integer between 0 and K/N-1;
acquiring the number W of reference clock cycles required for processing the client service data of the K/N-j logic channel units according to the number W of the reference clock cycles required for processing the client service data of the K/N logic channel unitsK/N-jWherein W isK/N-j=W-(Cnd0+…+Cndj) Wherein, CndjThe number of reference clock cycles required to process the customer service data for the jth logical channel unit, Cnd0=0;
The number W of the reference clock cycles needed for processing the customer service data of the K/N-j logic channel unitsK/N-jCndL which is the theoretical value of the number of reference clock cycles needed for processing the customer service data of the K/N-j logic channel unitsK/N-jComparing, and determining Cnd the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit according to the comparison result and the theoretical value CndL of the number of reference clock cycles needed for processing the client service data of one logic channel unitj+1
3. The method of claim 2, wherein the number of reference clock cycles W required for processing the customer service data of K/N-j logical channel unitsK/N-jCndL which is the theoretical value of the number of reference clock cycles needed for processing the customer service data of the K/N-j logic channel unitsK/N-jComparing, and determining Cnd the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit according to the comparison result and the theoretical value CndL of the number of reference clock cycles needed for processing the client service data of one logic channel unitj+1Comprises the following steps:
if WK/N-j<CndLK/N-jDetermining the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit: cndj+1=CndL-1;
If WK/N-j=CndLK/N-jDetermining the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit: cndj+1=CndL;
If WK/N-j>CndLK/N-jDetermining the number of reference clock cycles needed for processing the client service data of the j +1 th logic channel unit: cndj+1=CndL+1。
4. The method of claim 1, wherein before obtaining the number of reference clock cycles required for processing the customer service data of one logical channel unit according to the relationship between the payload size of the unit logical channel unit, the customer service rate, and the reference clock cycles, the method further comprises:
counting the number V of client service effective values received in a preset number of chip processing clock cycles;
and comparing the counted number V of the client service effective values received in the preset number of chip processing clock cycles with a preset threshold value, and smoothing the counted number V of the client service effective values received in the preset number of chip processing clock cycles according to a comparison result.
5. The method of claim 4, wherein before comparing the counted number V of valid customer service values received within the preset number of chip processing clock cycles with a preset threshold, the method further comprises:
acquiring the duty ratio n/m of the client service effective value on the chip processing clock period according to the data volume L processed by the unit client service clock period, the chip processing clock frequency H1 and the client service rate S;
and setting the threshold values of the client service effective values received in the preset number M of chip processing clock cycles to be M (n/M) + f and M (n/M) -f according to the duty ratio n/M, wherein f is a preset constant.
6. The method according to claim 5, wherein the step of comparing the counted number V of the client service effective values received in the preset number of chip processing clock cycles with a preset threshold value, and smoothing the counted number V of the client service effective values received in the preset number of chip processing clock cycles according to the comparison result comprises:
if V < M (n/M) -f, adjusting the counted number V of the client service effective values received in the preset number of chip processing clock cycles to be: v ═ M (n/M) -1;
if M is not more than (n/M) -f and not more than V is not more than M (n/M) + f, adjusting the counted number V of the client service effective values received in the preset number of chip processing clock cycles to be: v ═ M (n/M);
if V is greater than M (n/M) + f, adjusting the counted number V of the client service effective values received in the preset number of chip processing clock cycles to be: v ═ M (n/M) + 1.
7. The method according to claim 4, wherein after comparing the counted number V of valid client service values received in the preset number of chip processing clock cycles with a preset threshold value and smoothing the counted number V of valid client service values received in the preset number of chip processing clock cycles according to the comparison result, the method further comprises:
acquiring the number of the client service effective values received in the preset number of chip processing clock cycles before smoothing processing, and taking the difference value of the number of the client service effective values received in the preset number of chip processing clock cycles after smoothing processing as a remainder;
and when the number of the client service effective values received in the preset number of chip processing clock cycles is counted again, comparing the sum of the number of the client service effective values received in the preset number of chip processing clock cycles counted again and the remainder with a preset threshold value, and smoothing the number of the client service effective values received in the preset number of chip processing clock cycles counted again according to the comparison result.
8. An apparatus for traffic processing, comprising:
the first acquisition module is used for acquiring the number of reference clock cycles needed for processing the client service data of one logic channel unit according to the relation among the payload size of the unit logic channel unit, the client service rate and the reference clock cycles;
the transmission module is used for acquiring the overhead of the logic channel unit representing the client service rate information according to the number of the reference clock cycles required for processing the client service data of one logic channel unit, and transmitting the logic channel unit loaded with the overhead of the logic channel unit and the client service data, so that a receiving end can recover the client service rate information according to the overhead of the logic channel unit;
wherein the first obtaining module comprises:
the first acquisition unit is used for acquiring a common multiple K of the payload size N of the unit logic channel unit and the data volume L processed by the unit customer service clock period;
the second acquisition unit is used for acquiring the number W of the reference clock cycles required for processing the client service data of the K/N logic channel units according to the common multiple K, the relationship between the client service rate and the reference clock cycles;
and a third obtaining unit, configured to obtain Cnd numbers of reference clock cycles required for processing the client service data of each of the K/N logical channel units according to the number W of reference clock cycles required for processing the client service data of the K/N logical channel units.
9. A method for processing services, comprising:
extracting the overhead of the logic channel unit from the received logic channel unit, wherein the logic channel unit is loaded with the overhead of the logic channel unit and customer service data;
acquiring the number of reference clock cycles required for processing the client service data of one logic channel unit according to the overhead of the logic channel unit;
recovering the client service rate information according to the number of reference clock cycles, the reference clock frequency and the payload size of the unit logic channel unit required for processing the client service data of one logic channel unit;
the step of recovering the rate information of the client service data according to the number of the reference clock cycles, the reference clock frequency and the payload size of the unit logic channel unit required for processing the client service data of one logic channel unit comprises the following steps:
acquiring a common multiple K of a unit logic channel unit payload size N and a unit customer service clock period processing data volume L;
and recovering the customer service data rate information according to the number of the reference clock cycles, the reference clock frequency and the common multiple K which are required for processing the customer service data of the K/N logic channel units.
10. An apparatus for traffic processing, comprising:
the extraction module is used for extracting the overhead of the logic channel unit from the received logic channel unit, wherein the logic channel unit is loaded with the overhead of the logic channel unit and the client service data;
the second acquisition module is used for acquiring the number of reference clock cycles required for processing the client service data of one logic channel unit according to the overhead of the logic channel unit;
the recovery module is used for recovering the service rate information of the client according to the number of the reference clock cycles, the reference clock frequency and the payload size of the unit logic channel unit required by processing the service data of the client of one logic channel unit;
wherein the recovery module comprises:
the fourth acquisition unit is used for acquiring a common multiple K of the payload size N of the unit logic channel unit and the data volume L processed by the unit customer service clock period;
and the recovery unit is used for recovering the rate information of the client service data according to the number W of the reference clock cycles, the frequency H of the reference clock and the common multiple K which are required for processing the client service data of the K/N logic channel units.
CN201610460276.7A 2016-06-22 2016-06-22 Service processing method and device Active CN107528661B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610460276.7A CN107528661B (en) 2016-06-22 2016-06-22 Service processing method and device
PCT/CN2017/089363 WO2017219979A1 (en) 2016-06-22 2017-06-21 Service processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610460276.7A CN107528661B (en) 2016-06-22 2016-06-22 Service processing method and device

Publications (2)

Publication Number Publication Date
CN107528661A CN107528661A (en) 2017-12-29
CN107528661B true CN107528661B (en) 2020-03-31

Family

ID=60735483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610460276.7A Active CN107528661B (en) 2016-06-22 2016-06-22 Service processing method and device

Country Status (2)

Country Link
CN (1) CN107528661B (en)
WO (1) WO2017219979A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177142B (en) * 2018-11-13 2024-03-01 深圳市中兴微电子技术有限公司 Data conversion method and device, equipment and storage medium
US20230421264A1 (en) * 2022-06-28 2023-12-28 Ciena Corporation Time-sliced GMP mapping with modified sigma-delta mapping function

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE602007012077D1 (en) * 2007-07-18 2011-03-03 Nokia Siemens Networks Spa Method and system for data transmission via PDH channels
EP2187526B1 (en) * 2008-11-07 2013-01-02 Alcatel Lucent Fast computation of frame check sequences (FCS/CRC)
CN103067114B (en) * 2012-12-20 2017-12-05 中兴通讯股份有限公司 A kind of Transmission system asynchronous mapping clock recovery method and equipment
CN105577319A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 Signal transmitting and receiving methods of optical channel transmission unit and devices

Also Published As

Publication number Publication date
CN107528661A (en) 2017-12-29
WO2017219979A1 (en) 2017-12-28

Similar Documents

Publication Publication Date Title
JP6488058B2 (en) Data transmission method, transmitter, and receiver
WO2019128934A1 (en) Service transmitting and receiving method and device in optical transport network
US11750313B2 (en) Client signal transmission method, device and system and computer-readable storage medium
US9178638B2 (en) Method and apparatus for mapping and de-mapping service data
US11329748B2 (en) Service transmission method and device using flexible optical network, equipment and storage medium
WO2018001280A1 (en) Method for transporting client signal in optical transport network, and transport device
CN1968063B (en) Clock recovery method and apparatus
US9503191B2 (en) GMP mapping method and apparatus for optical channel data unit
WO2021190030A1 (en) Service processing method, processing apparatus and electronic device in optical transport network
CN110072163B (en) Load adaptive processing method, computer device and readable storage medium
EP2651056B1 (en) Client signal mapping circuit and mapping method
WO2020147661A1 (en) Signal transmission method and apparatus, network device and computer-readable storage medium
CN107528661B (en) Service processing method and device
US11412508B2 (en) Data transmission method and device
CN105577319A (en) Signal transmitting and receiving methods of optical channel transmission unit and devices
CN113542934A (en) Service processing method, device, network equipment and storage medium
US8644347B2 (en) Transporting optical data units in an optical transport network
WO2021190000A1 (en) Service processing method and apparatus in optical transport network, and electronic device
US7068679B1 (en) Asynchronous payload mapping using direct phase transfer
CN1695330B (en) Method and apparatus to regenerate a clock signal
CN105323053A (en) Business clock transparent transmission method and apparatus
WO2016101555A1 (en) Cross scheduling method and device, and storage medium
US20230421264A1 (en) Time-sliced GMP mapping with modified sigma-delta mapping function
CN114157383B (en) Cm clock recovery algorithm, system, storage medium and equipment based on FPGA
WO2023221966A1 (en) Data transmission method and apparatus

Legal Events

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