WO2013029411A1 - Hybrid granularity virtual concatenation delay compensation method and device - Google Patents

Hybrid granularity virtual concatenation delay compensation method and device Download PDF

Info

Publication number
WO2013029411A1
WO2013029411A1 PCT/CN2012/077372 CN2012077372W WO2013029411A1 WO 2013029411 A1 WO2013029411 A1 WO 2013029411A1 CN 2012077372 W CN2012077372 W CN 2012077372W WO 2013029411 A1 WO2013029411 A1 WO 2013029411A1
Authority
WO
WIPO (PCT)
Prior art keywords
read
memory
write
data
control pointer
Prior art date
Application number
PCT/CN2012/077372
Other languages
French (fr)
Chinese (zh)
Inventor
张艳辉
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201110258753.9A external-priority patent/CN102983929B/en
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013029411A1 publication Critical patent/WO2013029411A1/en

Links

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
    • H04J3/1605Fixed allocated frame structures
    • H04J3/1611Synchronous digital hierarchy [SDH] or SONET
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J2203/00Aspects of optical multiplex systems other than those covered by H04J14/05 and H04J14/07
    • H04J2203/0001Provisions for broadband connections in integrated services digital network using frames of the Optical Transport Network [OTN] or using synchronous transfer mode [STM], e.g. SONET, SDH
    • H04J2203/0089Multiplexing, e.g. coding, scrambling, SONET
    • H04J2203/0094Virtual Concatenation

Definitions

  • the present invention relates to a signal transmission processing method for SDH (Synchronous Digital Hierarchy), and more particularly to a method and apparatus for hybrid granularity cascading delay compensation.
  • SDH Synchronous Digital Hierarchy
  • the frame information structure of the SDH system has a rich overhead byte, which facilitates the transmission of information and network management.
  • the unified interface parameters enable the devices of different vendors to work together to realize the communication between the regional and even global communication networks.
  • data services have developed rapidly, and people have strong demand for data services.
  • the establishment of a complete data network has a large investment and a long period of time, and makes full use of existing SDH network resources to achieve high-speed, large-capacity, and long-distance data. Transfer is a more appropriate way.
  • SDH is a hierarchy of standardized digital signals that can be used for simultaneous information transmission, multiplexing, add-drop, and cross-connect.
  • the frame structure of SDH is a block frame structure, which has rich control information for network management, and has flexible multiplexing and mapping structure, allowing different levels of signals to be processed and put into different VCs (Virtual Container, Virtual container).
  • VC-11, VC-12, VC-3 and VC-2 are called low-order virtual containers because of their low code rate, while VC-4 is called high-order virtual container because of its high code rate.
  • VC-ll, VC-12, VC-3, and VC-4 of the SDH standard can be used to carry TDM (Time Division Multiplex) services with fixed bandwidths such as E1/T1, E3/T3, and E4.
  • TDM Time Division Multiplex
  • VCs of the same type can be cascaded according to a virtual concatenation protocol to form a cascading virtual container VC-n-xV, where VC-n represents the type of virtual container in the virtual concatenation container, x represents the number of virtual containers, and the last V represents the virtual concatenation mode, for example, 8 VC-3s pass the virtual concatenation mode.
  • VC-n represents the type of virtual container in the virtual concatenation container
  • x represents the number of virtual containers
  • the last V represents the virtual concatenation mode, for example, 8 VC-3s pass the virtual concatenation mode.
  • Cascading is the combination of multiple containers of the same type to deliver rate services between two SDH standard containers.
  • Cascading includes Continuous Concatenation and Virtual Concatenation.
  • the concept of cascading in SDH is to adapt to the suddenness of data services and the variable bandwidth.
  • the so-called real cascading is to transmit adjacent virtual containers in the same STM-N (Synchronous Transport Module level n) data frame as a whole structure along the same path.
  • the service it transmits is a whole, and the various parts of the data do not generate delay, and the signal transmission quality is high.
  • the application of the real cascading mode has certain limitations. It requires that the path transmitted by each virtual container must be the same, and the network and nodes that it passes through support the real cascading mode.
  • Virtual cascading is a logical cascading relationship that is independent of the container transport path that is cascaded.
  • Virtual concatenation is a mechanism that logically bundles multiple containers of the same type to deliver traffic. Physically, these containers are delivered in the same way as they were originally. In other words, how SDH originally transmitted such a container is now also used, which ensures compatibility with existing SDH networks.
  • logically bundled containers are issued simultaneously at the transmitting end, but different delays are generated due to different transmission paths. At the receiving end, these delays need to be compensated to enable the service to recover normally at the receiving end.
  • Figure 1, Figure 2, Figure 3 and Figure 4 show the virtual cascade of VC-4, VC-3, VC-12 and VC-11 virtual containers. Virtual concatenation is widely used because it has no special requirements for SDH equipment on the transmission path.
  • each VC-n acts as the smallest "particle" of the virtual concatenation, and its transmission can be performed independently.
  • the source or the sender simultaneously transmits 8 virtual containers in the virtual concatenated virtual container VC-3-8V through the path.
  • VC-3 frames these frames can be transmitted independently in the SDH network and have the same complex The frame number but the serial number is different. Since the delays of different paths in the SDH network are different, the VC-3 frames simultaneously transmitted at the transmitting end are not necessarily received at the receiving end at the same time, which becomes a delay.
  • the main technical issue that virtual concatenation needs to consider is latency. Since the path through which each virtual container of the virtual concatenation is transmitted may be different, a transmission time difference may occur between the virtual containers. In an extreme case, the virtual container with the serial number may be earlier than the serial number. The virtual container first reaches the destination node, which undoubtedly brings difficulties to the restoration of the signal. In order to correctly extract the original service signal, the receiving end must perform synchronous alignment processing on the received virtual concatenated signal. The current solution is to use the delay sufficient to compensate the memory to buffer the data and perform sequence rearrangement. The general method is to time The extended data is buffered in internal or external RAM (Random Access Memory). The size of the memory determines the ability of virtual cascade recovery.
  • the object of the present invention is to provide a method and a device for the hybrid granularity cascading delay compensation, which can better solve the problem of excessive resources occupied by the hybrid virtual cascade service delay compensation.
  • a method for hybrid granularity cascading delay compensation comprising:
  • the VC member is a reference structure for reading the read direction control pointer of the VC in each VCG from the first memory, and each read direction control pointer contains the VC slot number and the offset;
  • the step C includes:
  • the step D includes:
  • D1 determining, according to the read direction, the offset of the pointer and the first memory read operation data bit width, determining the state of the read direction VC, if the data amount of the VC represented by the offset satisfies the first memory read operation data Bit width, then the status is determined to be valid;
  • the method further includes the virtual concatenation recovery service data step E performed after the step D, comprising: storing the data read from the first memory in a second memory in a read control pointer; performing the VCG port number Adding addresses to obtain the current read location of the second memory Address to read data from the second memory.
  • the step E further includes:
  • Reading data from the second memory if a current read address of the second memory is less than a write address read from the third memory;
  • a device for mixing granularity cascading delay compensation comprising:
  • Double rate synchronous dynamic random access memory DDR SDRAM read/write control processor for generating write direction control pointers for writing VC data for each memory according to received data, data position indication and VC time slot number, each The write direction control pointer includes a VC slot number and an offset; and is further configured to specify a VCG port number for each VC, and is configured to read each VCG from the first memory with reference to a VC member that is finally reached by each VCG.
  • the read direction control pointer of the VC, each read direction control pointer contains a VC slot number and an offset;
  • a DDR SDRAM controller configured to: control an offset of the pointer and a first memory write operation data bit width according to the write direction, and write data of the state-effective VC into the first memory; and further, according to the read direction The offset of the pointer and the first memory read operation data bit width are controlled, and the data of the state-active VC is read from the first memory.
  • the DDR SDRAM read/write control processor further includes a DDR SDRAM write control pointer/state processor;
  • the DDR SDRAM write control pointer/status processor is configured to determine a state of the write direction VC according to the offset of the write direction control pointer and the first memory write operation data bit width, if the offset represents a VC The amount of data satisfies the first memory write operation data bit width, and the state is determined Effective
  • the DDR SDRAM write control pointer/status processor is further configured to query the write direction VC state according to the VC slot number, so as to read the write direction control pointer of the write direction VC whose state is valid; the DDR SDRAM write control pointer/state The processor is further configured to convert the read write direction control pointer to a first memory write address and write the data to the first memory in accordance with the write address.
  • the DDR SDRAM read/write control processor further includes a DDR SDRAM read control pointer/state processor;
  • the DDR SDRAM read control pointer/status processor is configured to determine a state of the read direction VC according to the read direction control pointer offset and the first memory read operation data bit width, if the offset represents a VC The amount of data satisfies the memory read operation data bit width, and the determined state is valid;
  • the DDR SDRAM read control pointer/status processor is further configured to query a read direction VC state according to a VC slot number to read a read direction control pointer of a read direction VC whose state is valid; the DDR SDRAM read control pointer/state The processor is further configured to convert the read read direction control pointer to a first memory read address and read data from the first memory by the read address.
  • the data recovery processor further includes:
  • a second memory for storing data read from the DDR SDRAM with the read control pointer as an address
  • a third memory configured to store a write address of the second memory
  • An adder configured to store, by the VCG port number, a write address of the second memory into a third memory; a comparator, configured to compare a write address read from the third memory with a current read address of the second memory, if a current read address of the second memory is smaller than a write address read from the third memory And reading data from the second memory; if the current read address of the second memory is greater than or equal to a write address read from the third memory, stopping reading data from the second memory .
  • the present invention utilizes the SDH time division multiplexing structure to use a serial manner, completes virtual granular data recovery with a mixed granularity with a small resource, and supports up to 64 virtual concatenation groups. Delay compensation. DRAWINGS
  • FIG. 2 is a schematic diagram of a virtual concatenation of VC-3 provided by the prior art
  • FIG. 3 is a schematic diagram of a virtual cascade of VC-12 provided by the prior art
  • FIG. 4 is a schematic diagram of a virtual concatenation of a VC-11 provided by the prior art
  • FIG. 5 is a schematic diagram of a method for hybrid granularity cascading delay compensation according to an embodiment of the present invention
  • FIG. 6 is a flow chart of a method for hybrid granularity cascading delay compensation according to an embodiment of the present invention
  • FIG. 6a is a schematic diagram of allocating 8 VCs of 8 STM-1 into 3 virtual container groups (VCGs);
  • Figure 6b is a schematic diagram of the hybrid VC slot numbering
  • FIG. 6c is a schematic diagram of a VC3 state processing in a DDR SDRAM read/write control processor
  • FIG. 7 is a schematic structural diagram of an apparatus for mixing granularity virtual cascade recovery delay compensation according to an embodiment of the present invention
  • FIG. 8 is a schematic structural diagram of a data recovery processor according to an embodiment of the present invention
  • FIG. 8a is a read/write address display of a RAMI in a data recovery processor according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a method for hybrid granularity cascading delay compensation according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
  • Step S501 Generate, according to the received data, the data location indication, and the virtual container VC time slot number, a write direction control pointer for writing each VC data of the first memory, where each write direction control pointer includes a VC slot number and Offset;
  • Step S502 Specify a VCG port number for each VC, and configure a read direction control pointer for reading VCs in each VCG from the first memory with reference to the VC member finally arrived by each VCG, and each read direction control pointer includes VC slot number and offset;
  • Step S503 according to the offset of the write direction control pointer and the first memory write operation data bit width, write the data of the state-effective VC into the first memory;
  • Step S504 according to the read direction control pointer offset and the first memory read operation data bit width, read the data of the valid VC from the first memory.
  • FIG. 6 is a flow chart of a method for hybrid granularity cascading delay compensation according to an embodiment of the present invention.
  • the virtual concatenation technology of eight STM-1 hybrid virtual containers is used to transmit data.
  • VCG-M VCG-M
  • Figure 6a The VC member's slot number and virtual container type are stored in the VCG-M correspondence table.
  • the slot number of the hybrid VC member is shown in Figure 6b.
  • the method includes the following steps:
  • Step S601 generating a DDR SDRAM write direction control pointer.
  • the offset of the DDR SDRAM write direction control pointer is generated according to the received data, the data position indication SPE (Synchronous Payload Envelope) and the VC slot number.
  • the maximum offset is equal to ⁇ 260 (column) x9 (row) xl6 (multiframe) xMFI2 (Multiframe Indicator) ⁇ ; for VC3, the maximum offset is equal to ⁇ 84 ( Column) x9 (row) xl6 (multiframe) xMFI2 ⁇ ;
  • the maximum offset is equal to ⁇ 34 (column) x4 (row) x32 (multiframe) xMFI2 ⁇ ; for VC11, offset The maximum value is equal to ⁇ 25 (column) x4 (row) x32 (multiframe) xMFI2 ⁇ .
  • the write direction control pointer format is ⁇ VC slot number, write direction control pointer offset ⁇ . The VC slot number in the write direction control pointer is extracted from the input data.
  • Step S602 generating a DDR SDRAM read direction control pointer.
  • the VC slot number RD_VCNUM of 8xSTM-l is constructed with a 155.52Mhz clock.
  • the read direction control pointer offset and the read direction control pointer multiframe number are generated based on the latest arrival member of each VCG in the receiving direction.
  • a VCG read direction control pointer offset keeps track of the write direction control pointer offset of the latest member received by the VCG. When the write direction control pointer is incremented, the read direction control pointer can be increased.
  • the DDR SDRAM read direction control pointer format is ⁇ RD_VCNUM, read direction control pointer offset ⁇ .
  • the VC slot number of the read direction control pointer is obtained by loop counting.
  • Step S603 performing a merge/decomposition process on the read/write direction control pointer.
  • the state of the VC (STATE) is set to be valid, waiting for the DDR SDRAM to read the write direction control pointer.
  • STATE the state of the VC
  • the read pointer offset of a VC's DDR SDRAM counts up to 16
  • the state STATE of the VC is set to be valid, waiting for the DDR SDRAM to read the direction control. pointer.
  • Step S604 the DDR SDRAM controller constructs the VC slot number VCNUM according to the VC multiplexing structure of the mixed granularity.
  • the DDR SDRAM controller generates the slot number 0 ⁇ 7 of VC4, the time slot number of each VC3 is 0 ⁇ 2, and the slot number of each VC12 is 0 ⁇ 20.
  • the slot number is used to query the VC status in the read or write direction. Assuming that the array of DDR SDRAM (BANK) is 8, then the read/write frequency can be set to 8, that is, 8 consecutive read and 8 consecutive write interleaving operations.
  • the controller fetches a VC's read direction control pointer or write direction control pointer, the VC's STATE is invalid.
  • Figure 6c depicts a schematic diagram of the state of the VC3 type read direction control pointer set to active and inactive.
  • Step S605 the DDR SDRAM converts the read/write direction control pointer into a read/write address according to the hybrid VC type.
  • the BANK and column addresses of DDR SDRAM are independent of the mixed VC type.
  • the VC4 type directly reads the read/write direction control address; when the VC3 type, the row address is equal to ⁇ VC3 slot number, read/write/control address ⁇ ; when VC12 type, the row address is equal to ⁇ VC12 slot number, Read/write direction control address ⁇ ; When VC11 type, the row address is equal to ⁇ VC11 slot number, read/write direction control address ⁇ .
  • Step S606 the virtual concatenation recovers the service data.
  • the virtual cascade recovery service data is mainly completed by the data recovery processor.
  • the data recovery processor consists of RAMI, adder, RAM2 and comparator.
  • the data recovery processor stores the data read from the DDR SDRAM in the RAMI with the read direction control pointer.
  • the adder generates the read address of the RAMI, and the read address of the RAMI is accumulated by the VCG number, so that the read data is the recombined VCG data.
  • RAM2 is used to store the write address of RAMI.
  • the comparator is used to control the read progress of the RAMI. When the read address of the RAMI is smaller than the address read from the RAM 2, it is necessary to read data from the RAMI; when the read address of the RAMI is equal to the address read from the RAM 2, the read data is stopped.
  • the VC slot in the write address of the RAMI is obtained by loop counting, and the byte count of each VC takes the read pointer offset in the read direction control pointer; the VC slot of the RAMI read address is the VC member of the VCG.
  • the VC slot of the read address and the VC slot of the write address are not in the same order.
  • the VC byte count of the RAMI read address is accumulated by the VCG number, so the byte count of each member of each VCG is required to be the same, so that each member of each VCG can be read from the RAMI by the same byte count.
  • the data is output, so the data read out is the result of the recovery.
  • FIG. 7 is a schematic structural diagram of a device for hybrid granularity cascading recovery delay compensation according to an embodiment of the present invention. As shown in FIG. 7, the device includes: DDR SDRAM, DDR SDRAM controller, DDR SDRAM read/write control processing. , data recovery processor.
  • DDR SDRAM used to store received data.
  • a DDR SDRAM controller configured to control the offset of the pointer and the first memory write operation data bit width according to the write direction, and write the data of the valid VC to the first memory, and further, according to the read direction
  • the offset of the pointer and the first memory read operation data bit width are controlled, and the data of the state-active VC is read from the first memory.
  • a DDR SDRAM read/write control processor configured to generate a write direction control pointer for each VC data written in the memory according to the received data, the data location indication, and the VC time slot number, and each write direction control pointer includes a VC
  • the slot number and the offset are also used to specify a VCG port number for each VC, and are configured to read a read direction control pointer of the VC in each VCG from the first memory, based on the VC member that is finally reached by each VCG.
  • Each read direction control pointer contains a VC slot number and an offset.
  • the DDR SDRAM read/write control processor further includes a DDR SDRAM write direction control pointer/state processor, a DDR SDRAM read direction control pointer/state processor, and a VC configuration storage. Device.
  • the DDR SDRAM write direction control pointer/status processor is configured to determine a state of the write direction VC according to the offset of the write direction control pointer and the first memory write operation data bit width, if the offset represents a VC The amount of data satisfies the first memory write operation data bit width, and then determines that the state is valid; the DDR SDRAM write direction control pointer/status processor is further configured to query the write direction VC state according to the VC slot number, so as to read the state The write direction control pointer of the write direction VC; the DDR SDRAM write direction control pointer/status processor is further configured to convert the read write direction control pointer into a first memory write address, and write the data to the memory according to the write address in.
  • the DDR SDRAM read direction control pointer/status processor is configured to determine a state of the read direction VC according to the read direction control pointer offset and the first memory read operation data bit width, if the offset represents The data amount of the VC satisfies the memory read operation data bit width, and then determines that the state is valid; the DDR SDRAM read direction control pointer/status processor is further configured to query the read direction VC state according to the VC slot number, so as to read the state of the VC state. a read direction control pointer of the read direction VC; the DDR SDRAM read direction control pointer/status processor is further configured to convert the read read direction control pointer into a first memory read address, and read the address from the first memory Read data in.
  • the VC configuration memory is used to store VC attributes such as VC type and VCG port number.
  • a data recovery processor configured to store data read from the first memory in a read direction control pointer into a second memory, perform address accumulation by using the VCG port number, and obtain a current read address of the second memory To read data from the second memory.
  • FIG. 8 is a schematic structural diagram of a data recovery processor according to an embodiment of the present invention.
  • the data recovery processor includes a second memory RAM1, an adder, a comparator, and a third memory RAM2.
  • the RAMI is used to store the data read from the DDR SDRAM with the read direction control pointer as an address;
  • the RAM2 is used to store the write address of the RAMI;
  • the adder Storing a write address of the RAMI to the RAM 2 according to the VCG port number; a comparator for comparing a write address read from the RAM 2 with a current read address of the RAMI, if the current RAMI is current Reading data from the RAMI when the read address is smaller than the write address read from the RAM 2; stopping from the RAMI if the current read address of the RAMI is greater than or equal to the write address read from the RAM 2 Read data in.
  • FIG. 8a is a diagram showing the read and write addresses of the RAMI in the data recovery processor according to the embodiment of the present invention.
  • the member type is VC4, and the VCG numbers are 0 and 1.
  • VCG0 has 3 members, VC slot number is 0, 2, 3, VCG1 has 5 members, which are 1, 4, 5, 6, 7.
  • the slot number of the write address of the RAMI is 8 VC4 sequential counts, and the byte count of the write address is counted according to the order of each VC member; the VC slot of the RAMI read address is each VC member of the VCG. After sorting, the VC slot of the read address and the VC slot of the write address are not in the same order.
  • the VC byte count of the RAMI read address is accumulated by the VCG number.
  • the VC byte count of the RAMI read address follows the VC byte count of the RAMI write address.
  • the present invention solves the problem of excessive data occupation resources by using the SDH time division multiplexing structure using a serial mode with less imaginary cascading.
  • the present invention discloses a method and apparatus for hybrid granularity cascading delay compensation, and generates write direction control for each VC data written in the first memory according to received data, data position indication, and VC slot number a pointer; a VCG port number is assigned to each VC, and the read direction control pointer of the VC in each VCG is read from the first memory according to the VC member finally arrived at each VCG; the offset of the pointer is controlled according to the write direction and The first memory write operation data bit width, the state is valid The data of the VC is written into the memory; the offset of the pointer is controlled according to the read direction and the bit width of the first memory read operation data, and the data of the VC that is valid is read from the first memory.
  • the invention utilizes the SDH time division multiplexing structure to use the serial mode and complete the virtual cascading data recovery with mixed granularity with smaller resources

Abstract

Disclosed are a hybrid granularity virtual concatenation delay compensation method and device, comprising: generating a write direction control pointer used for writing data of each VC into a first memory according to received data, data location indicators and VC time slot serial numbers; designating a VCG port number for each VC, and constructing a read direction control pointer used for reading VCs in each VCG from the first memory based on a VC member that arrives last in each VCG; according to an offset of the write direction control pointer and a write operation data bit width of the first memory, writing the data of the VC in a valid state into the first memory; and according to an offset of the read direction control pointer and a read operation data bit width of the first memory, reading the data of the VC in a valid state from the first memory. The present invention adopts an SDH time division multiplexing structure to complete the virtual concatenation data recovery of the hybrid granularity in a serial manner with small resources, which better solves the problem that the virtual concatenation data recovery takes up too many resources.

Description

一种混合粒度虚级联延时补偿的方法及装置 技术领域  Method and device for mixing granularity virtual cascade delay compensation
本发明涉及 SDH ( Synchronous Digital Hierarchy, 同步数字体系 )的信 号传输处理方法, 特别涉及一种混合粒度虚级联延时补偿的方法与装置。 背景技术  The present invention relates to a signal transmission processing method for SDH (Synchronous Digital Hierarchy), and more particularly to a method and apparatus for hybrid granularity cascading delay compensation. Background technique
SDH设备作为传送网的主流设备,在通信领域业已得到广泛应用。 SDH 体系的帧信息结构有着丰富的开销字节, 方便信息的传输和网络管理, 统 一的接口参数能使不同厂商的设备一起组网工作, 实现地域甚至全球的通 讯网络互通。 近年来, 数据业务得到飞速发展, 人们对于数据业务的需求 强劲, 但是建立完全的数据网络投资大, 周期长, 而充分利用现有的 SDH 网络资源, 实现高速率、 大容量和长距离的数据传送是一个比较合适的方 式。  As the mainstream equipment of the transmission network, SDH equipment has been widely used in the field of communication. The frame information structure of the SDH system has a rich overhead byte, which facilitates the transmission of information and network management. The unified interface parameters enable the devices of different vendors to work together to realize the communication between the regional and even global communication networks. In recent years, data services have developed rapidly, and people have strong demand for data services. However, the establishment of a complete data network has a large investment and a long period of time, and makes full use of existing SDH network resources to achieve high-speed, large-capacity, and long-distance data. Transfer is a more appropriate way.
SDH是一套可进行同步信息传输、 复用、 分插和交叉连接的标准化数 字信号的结构层次。 SDH的帧结构为块状帧结构, 其中有丰富的控制信息, 用于网络管理, 同时具备灵活的复用与映射结构, 允许将不同级别的信号 经处理后放入不同的 VC ( Virtual Container, 虚容器)。  SDH is a hierarchy of standardized digital signals that can be used for simultaneous information transmission, multiplexing, add-drop, and cross-connect. The frame structure of SDH is a block frame structure, which has rich control information for network management, and has flexible multiplexing and mapping structure, allowing different levels of signals to be processed and put into different VCs (Virtual Container, Virtual container).
VC-n ( n=2、 3、 4、 11、 12 )是用来支持 SDH通道层连接的信息机构, 它是 SDH通道的信息终端, 由安排在块状帧结构中的信息静负荷和通道开 销组成。 VC-11、 VC-12、 VC-3和 VC-2因为码速较低, 称为低阶虚容器, 而 VC-4因为码速较高,称为高阶虚容器。 SDH标准的 VC-ll、VC-12、VC-3、 VC-4可以分别用于承载 E1/T1、 E3/T3、 E4等固定带宽的 TDM( Time Division Multiplex, 时分复用)业务。  VC-n (n=2, 3, 4, 11, 12) is an information mechanism used to support the SDH channel layer connection. It is an information terminal of the SDH channel, and is composed of information static load and channel arranged in the block frame structure. The cost is composed. VC-11, VC-12, VC-3 and VC-2 are called low-order virtual containers because of their low code rate, while VC-4 is called high-order virtual container because of its high code rate. VC-ll, VC-12, VC-3, and VC-4 of the SDH standard can be used to carry TDM (Time Division Multiplex) services with fixed bandwidths such as E1/T1, E3/T3, and E4.
多个同类 VC 可按照虚级联协议级联在一起从而构成级联虚容器 VC-n-xV, 此处的 VC-n表示虚级联容器中虚容器的类型, x表示虚容器个 数, 最后一个 V表示虚级联方式, 例如 8个 VC-3通过虚级联方式可构成 一个虚级联虚容器 VC-3-8V。 Multiple VCs of the same type can be cascaded according to a virtual concatenation protocol to form a cascading virtual container VC-n-xV, where VC-n represents the type of virtual container in the virtual concatenation container, x represents the number of virtual containers, and the last V represents the virtual concatenation mode, for example, 8 VC-3s pass the virtual concatenation mode. Can form a virtual cascade virtual container VC-3-8V.
级联就是将多个同一种容器组合在一起, 来传送速率介于两种 SDH标 准容器之间的速率业务。 级联包括实级联 ( Continuous Concatenation )和虚 级联 ( Virtual Concatenation )。在 SDH中引入级联的概念是为了适应数据业 务的突发性, 带宽可变化的特点。  Cascading is the combination of multiple containers of the same type to deliver rate services between two SDH standard containers. Cascading includes Continuous Concatenation and Virtual Concatenation. The concept of cascading in SDH is to adapt to the suddenness of data services and the variable bandwidth.
所谓实级联就是将同一 STM-N ( Synchronous Transport Module level n, 同步传输模块 n级)数据帧中相邻的虚容器作为一个整体结构沿相同路径 进行传输。 它所传输的业务是一个整体, 数据的各个部分不产生时延, 信 号传输质量高。 实级联方式的应用存在着一定的局限性, 它要求每个虚容 器传送的路径必须相同, 且其经过的网络和节点均支撑实级联方式。  The so-called real cascading is to transmit adjacent virtual containers in the same STM-N (Synchronous Transport Module level n) data frame as a whole structure along the same path. The service it transmits is a whole, and the various parts of the data do not generate delay, and the signal transmission quality is high. The application of the real cascading mode has certain limitations. It requires that the path transmitted by each virtual container must be the same, and the network and nodes that it passes through support the real cascading mode.
所谓虚级联是一种逻辑上的级联关系, 与具体级联在一起的容器传送 路径无关。 虚级联是将多个同一种容器在逻辑上捆绑在一起传送业务的机 制。 在物理上, 这些容器的传送方式和原来没有任何区别。 也就是说, SDH 原来如何传送这种容器, 现在还采用该方式, 这就保证了和现有 SDH网络 的兼容性。 在实际运行中, 逻辑上捆绑在一起的容器, 在发送端同时发出, 但是由于传输路径的不同, 产生了不同的延时。 在接收端, 需要将这些延 时补偿, 使业务在接收端能够正常恢复。 图 1、 图 2、 图 3和图 4所示为分 别 VC-4、 VC-3, VC-12、 VC-11虚容器的虚级联示意图。 虚级联由于对传 送路径上的 SDH设备没有特殊要求而得到了广泛应用。  Virtual cascading is a logical cascading relationship that is independent of the container transport path that is cascaded. Virtual concatenation is a mechanism that logically bundles multiple containers of the same type to deliver traffic. Physically, these containers are delivered in the same way as they were originally. In other words, how SDH originally transmitted such a container is now also used, which ensures compatibility with existing SDH networks. In actual operation, logically bundled containers are issued simultaneously at the transmitting end, but different delays are generated due to different transmission paths. At the receiving end, these delays need to be compensated to enable the service to recover normally at the receiving end. Figure 1, Figure 2, Figure 3 and Figure 4 show the virtual cascade of VC-4, VC-3, VC-12 and VC-11 virtual containers. Virtual concatenation is widely used because it has no special requirements for SDH equipment on the transmission path.
在虚级协议下, 每个 VC-n作为虚级联的最小 "颗粒", 其传输可以独 立进行。 比如, 在 8个 VC3虚级联形成的虚级联虚容器 VC-3-8V的传输过 程中, 源或发送端通过通路同时传送虚级联虚容器 VC-3-8V中的 8个虚容 器 VC-3帧, 这些帧都可以独立地在 SDH网络中传输, 并且具有相同的复 帧号但是序列号各不相同。 由于 SDH网络内不同路径的时延不同, 因此在 发送端同时发送的 VC-3帧不一定在接收端被同时接收到, 这成为延时。 Under the virtual level protocol, each VC-n acts as the smallest "particle" of the virtual concatenation, and its transmission can be performed independently. For example, in the transmission process of the virtual concatenated virtual container VC-3-8V formed by 8 VC3 virtual concatenations, the source or the sender simultaneously transmits 8 virtual containers in the virtual concatenated virtual container VC-3-8V through the path. VC-3 frames, these frames can be transmitted independently in the SDH network and have the same complex The frame number but the serial number is different. Since the delays of different paths in the SDH network are different, the VC-3 frames simultaneously transmitted at the transmitting end are not necessarily received at the receiving end at the same time, which becomes a delay.
虚级联在技术上需要考虑的主要问题是时延。 由于虚级联每个虚容器 的传输所通过的路径有可能不同, 因此在各虚容器之间可能出现传输时差, 在极端情况下, 可能会出现序列号偏后的虚容器比序列号偏前的虚容器先 到达目的节点, 这无疑给信号的还原带来了困难。 为了正确提取原始业务 信号, 接收端必须对收到的虚级联信号进行同步对齐处理, 目前的解决途 径是利用容量足够大的延时补偿存储器緩存数据并实施序列重排, 一般方 法是将时延的数据緩存于内部或外部 RAM ( Random Access Memory, 随机 存取存储器)中。存储器的大小决定了虚级联恢复的能力。 在 G707协议中 规定, 虚级联恢复理论上可以补偿 256ms的支路延时。 由于 DDR SDRAM ( Double Data Rate SDRAM, 双倍速率同步动态随机存储器 )价格低廉, 容量大,性价比高,因此目前的虚级联恢复中数据緩存器一般采用外挂 DDR SDRAM。  The main technical issue that virtual concatenation needs to consider is latency. Since the path through which each virtual container of the virtual concatenation is transmitted may be different, a transmission time difference may occur between the virtual containers. In an extreme case, the virtual container with the serial number may be earlier than the serial number. The virtual container first reaches the destination node, which undoubtedly brings difficulties to the restoration of the signal. In order to correctly extract the original service signal, the receiving end must perform synchronous alignment processing on the received virtual concatenated signal. The current solution is to use the delay sufficient to compensate the memory to buffer the data and perform sequence rearrangement. The general method is to time The extended data is buffered in internal or external RAM (Random Access Memory). The size of the memory determines the ability of virtual cascade recovery. In the G707 protocol, virtual cascade recovery can theoretically compensate for a branch delay of 256ms. Since DDR SDRAM (Double Data Rate SDRAM) is inexpensive, large in capacity, and cost-effective, the current data buffer of virtual cascade recovery generally uses external DDR SDRAM.
现有技术中, 数据从 DDR SDRAM中读出来之后, 是并行进行数据恢 复, 因此存在解决混合虚级联业务延时补偿占用资源过多的缺点。 发明内容  In the prior art, after data is read from the DDR SDRAM, data recovery is performed in parallel, so there is a disadvantage of solving the problem that the hybrid virtual concatenation service delay compensation occupies too much resources. Summary of the invention
本发明的目的在于提供一种混合粒度虚级联延时补偿的方法及装置, 能更好地解决混合虚级联业务延时补偿时占用资源过多的问题。  The object of the present invention is to provide a method and a device for the hybrid granularity cascading delay compensation, which can better solve the problem of excessive resources occupied by the hybrid virtual cascade service delay compensation.
为了达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
一种混合粒度虚级联延时补偿的方法, 所述方法包括:  A method for hybrid granularity cascading delay compensation, the method comprising:
A )根据收到的数据、 数据位置指示和虚容器 VC时隙编号, 生成用于 写入第一存储器的各个 VC数据的写方向控制指针,每个写方向控制指针含 有 VC时隙编号和偏移量;  A) generating a write direction control pointer for writing each VC data of the first memory according to the received data, the data location indication, and the virtual container VC slot number, each write direction control pointer containing the VC slot number and the offset Transfer amount
B )为所述各个 VC指定虚容器组 VCG端口号, 并以各 VCG最后到达 的 VC成员为基准构造用来从第一存储器读取各 VCG中 VC的读方向控制 指针, 每个读方向控制指针含有 VC时隙编号和偏移量; B) assign a virtual container group VCG port number to each VC, and finally arrive at each VCG The VC member is a reference structure for reading the read direction control pointer of the VC in each VCG from the first memory, and each read direction control pointer contains the VC slot number and the offset;
C )根据所述写方向控制指针的偏移量及第一存储器写操作数据位宽, 把状态有效的 VC的数据写入第一存储器中;  C) controlling the offset of the pointer and the first memory write operation data bit width according to the write direction, and writing the data of the valid VC to the first memory;
D )根据所述读方向控制指针的偏移量及第一存储器读操作数据位宽, 把状态有效的 VC的数据从所述第一存储器中读出。  D) controlling the offset of the pointer and the first memory read operation data bit width according to the read direction, and reading the data of the valid VC from the first memory.
其中, 所述步驟 C包括:  The step C includes:
C1 )根据所述写方向控制指针的偏移量及第一存储器写操作数据位宽, 判断写方向 VC的状态,若所述偏移量代表的 VC的数据量满足第一存储器 写操作数据位宽, 则确定状态有效;  C1) determining a state of the write direction VC according to the offset of the write direction control pointer and the first memory write operation data bit width, if the data amount of the VC represented by the offset amount satisfies the first memory write operation data bit Wide, then the status is determined to be valid;
C2 )按照 VC时隙编号查询写方向 VC状态, 以便读取其状态有效的 写方向 VC的写方向控制指针;  C2) Query the write direction VC state according to the VC slot number, so as to read the write direction control pointer of the VC whose write status is valid;
C3 )将读取的写方向控制指针转换成第一存储器写地址, 并按写地址 把数据写入第一存储器中。  C3) Converting the read write direction control pointer to the first memory write address and writing the data to the first memory by the write address.
其中, 所述步驟 D包括:  The step D includes:
D1 )根据所述读方向控制指针的偏移量及第一存储器读操作数据位宽, 判断读方向 VC的状态,若所述偏移量所代表的 VC的数据量满足第一存储 器读操作数据位宽, 则确定状态有效;  D1) determining, according to the read direction, the offset of the pointer and the first memory read operation data bit width, determining the state of the read direction VC, if the data amount of the VC represented by the offset satisfies the first memory read operation data Bit width, then the status is determined to be valid;
D2 )按照 VC时隙编号查询读方向 VC状态, 以便读取其状态有效的 读方向 VC的读方向控制指针;  D2) Query the read direction VC state according to the VC slot number, so as to read the read direction control pointer of the VC whose read status is valid;
D3 )将读取的读方向控制指针转换成第一存储器读地址, 并按读地址 从所述第一存储器中读出数据。  D3) Converting the read read direction control pointer into a first memory read address and reading data from the first memory in accordance with the read address.
其中, 还包括在步驟 D之后执行的虚级联恢复业务数据步驟 E, 包括: 将从所述第一存储器读出的数据以读控制指针存储到第二存储器中; 以所述 VCG端口号进行地址累加, 得到所述第二存储器的当前读地 址, 以便从第二存储器中读出数据。 The method further includes the virtual concatenation recovery service data step E performed after the step D, comprising: storing the data read from the first memory in a second memory in a read control pointer; performing the VCG port number Adding addresses to obtain the current read location of the second memory Address to read data from the second memory.
其中, 所述步驟 E还包括:  The step E further includes:
按所述 VCG端口号将所述第二存储器的写地址存储到第三存储器中; 将从第三存储器读出的写地址与所述第二存储器的当前读地址进行比 较;  And storing, by the VCG port number, a write address of the second memory into a third memory; comparing a write address read from the third memory with a current read address of the second memory;
若所述第二存储器的当前读地址小于从所述第三存储器读出的写地 址, 则从所述第二存储器中读出数据;  Reading data from the second memory if a current read address of the second memory is less than a write address read from the third memory;
若所述第二存储器的当前读地址大于或等于从所述第三存储器读出的 写地址, 则停止从所述第二存储器中读出数据。  If the current read address of the second memory is greater than or equal to the write address read from the third memory, then reading data from the second memory is stopped.
一种混合粒度虚级联延时补偿的装置, 所述装置包括:  A device for mixing granularity cascading delay compensation, the device comprising:
双倍速率同步动态随机存储器 DDR SDRAM读写控制处理器, 用于根 据收到的数据、数据位置指示和 VC时隙编号,生成用于写入存储器的各个 VC数据的写方向控制指针, 每个写方向控制指针含有 VC时隙编号和偏移 量; 还用于为所述各个 VC指定 VCG端口号, 并以各 VCG最后到达的 VC 成员为基准构造用来从第一存储器读取各 VCG中 VC的读方向控制指针, 每个读方向控制指针含有 VC时隙编号和偏移量;  Double rate synchronous dynamic random access memory DDR SDRAM read/write control processor for generating write direction control pointers for writing VC data for each memory according to received data, data position indication and VC time slot number, each The write direction control pointer includes a VC slot number and an offset; and is further configured to specify a VCG port number for each VC, and is configured to read each VCG from the first memory with reference to a VC member that is finally reached by each VCG. The read direction control pointer of the VC, each read direction control pointer contains a VC slot number and an offset;
DDR SDRAM控制器, 用于根据所述写方向控制指针的偏移量及第一 存储器写操作数据位宽,把状态有效的 VC的数据写入第一存储器中;还用 于根据所述读方向控制指针的偏移量及第一存储器读操作数据位宽, 把状 态有效的 VC的数据从所述第一存储器中读出。  a DDR SDRAM controller, configured to: control an offset of the pointer and a first memory write operation data bit width according to the write direction, and write data of the state-effective VC into the first memory; and further, according to the read direction The offset of the pointer and the first memory read operation data bit width are controlled, and the data of the state-active VC is read from the first memory.
其中,所述 DDR SDRAM读写控制处理器还包括 DDR SDRAM写控制 指针 /状态处理器;  The DDR SDRAM read/write control processor further includes a DDR SDRAM write control pointer/state processor;
所述 DDR SDRAM写控制指针 /状态处理器用于根据所述写方向控制 指针的偏移量及第一存储器写操作数据位宽,判断写方向 VC的状态,若所 述偏移量代表的 VC的数据量满足第一存储器写操作数据位宽,则确定状态 有效; The DDR SDRAM write control pointer/status processor is configured to determine a state of the write direction VC according to the offset of the write direction control pointer and the first memory write operation data bit width, if the offset represents a VC The amount of data satisfies the first memory write operation data bit width, and the state is determined Effective
所述 DDR SDRAM写控制指针 /状态处理器还用于按照 VC时隙编号查 询写方向 VC状态, 以便读取其状态有效的写方向 VC的写方向控制指针; 所述 DDR SDRAM写控制指针 /状态处理器还用于将读取的写方向控 制指针转换成第一存储器写地址, 并按写地址把数据写入第一存储器中。  The DDR SDRAM write control pointer/status processor is further configured to query the write direction VC state according to the VC slot number, so as to read the write direction control pointer of the write direction VC whose state is valid; the DDR SDRAM write control pointer/state The processor is further configured to convert the read write direction control pointer to a first memory write address and write the data to the first memory in accordance with the write address.
其中,所述 DDR SDRAM读写控制处理器还包括 DDR SDRAM读控制 指针 /状态处理器;  The DDR SDRAM read/write control processor further includes a DDR SDRAM read control pointer/state processor;
所述 DDR SDRAM读控制指针 /状态处理器用于根据所述读方向控制 指针的偏移量及第一存储器读操作数据位宽,判断读方向 VC的状态,若所 述偏移量所代表的 VC的数据量满足存储器读操作数据位宽,则确定状态有 效;  The DDR SDRAM read control pointer/status processor is configured to determine a state of the read direction VC according to the read direction control pointer offset and the first memory read operation data bit width, if the offset represents a VC The amount of data satisfies the memory read operation data bit width, and the determined state is valid;
所述 DDR SDRAM读控制指针 /状态处理器还用于按照 VC时隙编号查 询读方向 VC状态, 以便读取其状态有效的读方向 VC的读方向控制指针; 所述 DDR SDRAM读控制指针 /状态处理器还用于将读取的读方向控 制指针转换成第一存储器读地址, 并按读地址从所述第一存储器中读出数 据。  The DDR SDRAM read control pointer/status processor is further configured to query a read direction VC state according to a VC slot number to read a read direction control pointer of a read direction VC whose state is valid; the DDR SDRAM read control pointer/state The processor is further configured to convert the read read direction control pointer to a first memory read address and read data from the first memory by the read address.
其中, 所述装置还包括数据恢复处理器, 用于将从所述第一存储器读 出的数据以读控制指针存储到第二存储器中, 以所述 VCG端口号进行地址 累加, 得到所述第二存储器的当前读地址, 以便从第二存储器中读出数据。  The device further includes a data recovery processor, configured to store data read from the first memory in a second memory by using a read control pointer, and perform address accumulation by using the VCG port number to obtain the The current read address of the second memory to read data from the second memory.
其中, 所述数据恢复处理器还包括:  The data recovery processor further includes:
第二存储器, 用于以读控制指针作为地址存储从 DDR SDRAM中读出 的数据;  a second memory for storing data read from the DDR SDRAM with the read control pointer as an address;
第三存储器, 用于存储第二存储器的写地址;  a third memory, configured to store a write address of the second memory;
加法器,用于按所述 VCG端口号将所述第二存储器的写地址存储到第 三存储器中; 比较器, 用于将从第三存储器读出的写地址与所述第二存储器的当前 读地址进行比较, 若所述第二存储器的当前读地址小于从所述第三存储器 读出的写地址, 则从所述第二存储器中读出数据; 若所述第二存储器的当 前读地址大于或等于从所述第三存储器读出的写地址, 则停止从所述第二 存储器中读出数据。 An adder, configured to store, by the VCG port number, a write address of the second memory into a third memory; a comparator, configured to compare a write address read from the third memory with a current read address of the second memory, if a current read address of the second memory is smaller than a write address read from the third memory And reading data from the second memory; if the current read address of the second memory is greater than or equal to a write address read from the third memory, stopping reading data from the second memory .
与现有技术相比较, 本发明的有益效果在于: 本发明利用 SDH时分复 用结构使用串行方式、 用较小资源完成混合粒度的虚级联数据恢复, 最多 可支持 64个虚级联组的延时补偿。 附图说明  Compared with the prior art, the present invention has the following advantages: The present invention utilizes the SDH time division multiplexing structure to use a serial manner, completes virtual granular data recovery with a mixed granularity with a small resource, and supports up to 64 virtual concatenation groups. Delay compensation. DRAWINGS
图 1是现有技术提供的 VC-4的虚级联示意图;  1 is a schematic diagram of a virtual concatenation of a VC-4 provided by the prior art;
图 2是现有技术提供的 VC-3的虚级联示意图;  2 is a schematic diagram of a virtual concatenation of VC-3 provided by the prior art;
图 3是现有技术提供的 VC-12的虚级联示意图;  3 is a schematic diagram of a virtual cascade of VC-12 provided by the prior art;
图 4是现有技术提供的 VC-11的虚级联示意图;  4 is a schematic diagram of a virtual concatenation of a VC-11 provided by the prior art;
图 5是本发明实施例提供的一种混合粒度虚级联延时补偿的方法的原 理图;  FIG. 5 is a schematic diagram of a method for hybrid granularity cascading delay compensation according to an embodiment of the present invention; FIG.
图 6是本发明实施例提供的一种混合粒度虚级联延时补偿的方法的流 程图;  6 is a flow chart of a method for hybrid granularity cascading delay compensation according to an embodiment of the present invention;
图 6a是将 8个 STM-1的 n个 VC分配为 3个虚容器组( VCG )的示意 图;  Figure 6a is a schematic diagram of allocating 8 VCs of 8 STM-1 into 3 virtual container groups (VCGs);
图 6b是混合 VC时隙编号示意图;  Figure 6b is a schematic diagram of the hybrid VC slot numbering;
图 6c是 DDR SDRAM读写控制处理器中的 VC3状态处理示意图; 图 7是本发明实施例提供的一种混合粒度虚级联恢复延时补偿的装置 结构示意图;  6c is a schematic diagram of a VC3 state processing in a DDR SDRAM read/write control processor; FIG. 7 is a schematic structural diagram of an apparatus for mixing granularity virtual cascade recovery delay compensation according to an embodiment of the present invention;
图 8是本发明实施例提供的一种数据恢复处理器的结构示意图; 图 8a是本发明实施例提供的数据恢复处理器中的 RAMI的读写地址示 具体实施方式 8 is a schematic structural diagram of a data recovery processor according to an embodiment of the present invention; FIG. 8a is a read/write address display of a RAMI in a data recovery processor according to an embodiment of the present invention; detailed description
以下结合附图对本发明的优选实施例进行详细说明, 应当理解, 以下 所说明的优选实施例仅用于说明和解释本发明, 并不用于限定本发明。  The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings.
图 5是本发明实施例提供的一种混合粒度虚级联延时补偿的方法的原 理图, 如图 5所示, 所述方法包括以下步驟:  FIG. 5 is a schematic diagram of a method for hybrid granularity cascading delay compensation according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
步驟 S501 , 根据收到的数据、 数据位置指示和虚容器 VC时隙编号, 生成用于写入第一存储器的各个 VC数据的写方向控制指针,每个写方向控 制指针含有 VC时隙编号和偏移量;  Step S501: Generate, according to the received data, the data location indication, and the virtual container VC time slot number, a write direction control pointer for writing each VC data of the first memory, where each write direction control pointer includes a VC slot number and Offset;
步驟 S502, 为所述各个 VC指定 VCG端口号, 并以各 VCG最后到达 的 VC成员为基准构造用来从第一存储器读取各 VCG中 VC的读方向控制 指针, 每个读方向控制指针含有 VC时隙编号和偏移量;  Step S502: Specify a VCG port number for each VC, and configure a read direction control pointer for reading VCs in each VCG from the first memory with reference to the VC member finally arrived by each VCG, and each read direction control pointer includes VC slot number and offset;
步驟 S503, 根据所述写方向控制指针的偏移量及第一存储器写操作数 据位宽, 把状态有效的 VC的数据写入第一存储器中;  Step S503, according to the offset of the write direction control pointer and the first memory write operation data bit width, write the data of the state-effective VC into the first memory;
步驟 S504, 根据所述读方向控制指针的偏移量及第一存储器读操作数 据位宽, 把状态有效的 VC的数据从所述第一存储器中读出。  Step S504, according to the read direction control pointer offset and the first memory read operation data bit width, read the data of the valid VC from the first memory.
图 6是本发明实施例提供的一种混合粒度虚级联延时补偿的方法的流 程图。  FIG. 6 is a flow chart of a method for hybrid granularity cascading delay compensation according to an embodiment of the present invention.
以 SDH虚级联容量为 1.25Gbit/s为例, 利用 8个 STM-1的混合虚容器 的虚级联技术传送数据。 接收的数据业务分成 3 个 VCG , 设为 VCG-M(M=0,1,2)。 VCG-0中有 4个 VC4成员、 VCG-1中有 3个 VC3成员、 VCG-2中有 2个 VC12成员。 如图 6a所示。 将 VC成员的时隙编号和虚容 器类型与 VCG-M的对应关系表存储起来。 混合 VC成员的时隙编号如图 6b所示。 如图 6所示, 所述方法包括以下步驟:  Taking the SDH virtual concatenation capacity as 1.25 Gbit/s as an example, the virtual concatenation technology of eight STM-1 hybrid virtual containers is used to transmit data. The received data traffic is divided into three VCGs, which are set to VCG-M (M=0, 1, 2). There are 4 VC4 members in VCG-0, 3 VC3 members in VCG-1, and 2 VC12 members in VCG-2. As shown in Figure 6a. The VC member's slot number and virtual container type are stored in the VCG-M correspondence table. The slot number of the hybrid VC member is shown in Figure 6b. As shown in FIG. 6, the method includes the following steps:
步驟 S601 , 生成 DDR SDRAM写方向控制指针。 电路时钟采用 8xl55.52/8=155.52MHz。 按照 SDH的时分复用帧结构, 根据接收到的数据、 数据位置指示 SPE ( Synchronous Payload Envelope, 同 步净负荷包封)和 VC时隙编号, 生成 DDR SDRAM写方向控制指针的偏 移量。 对于 VC4 来说, 偏移量最大值等于 {260(列) x9(行) xl6(复帧) xMFI2 ( Multiframe Indicator, 复帧指示) }; 对于 VC3来说, 偏移量最大值等于 {84(列) x9(行) xl6(复帧) xMFI2} ; 对于 VC12 来说, 偏移量最大值等于 {34(列) x4(行) x32(复帧) xMFI2} ; 对于 VC11 来说, 偏移量最大值等于 {25(列) x4(行) x32(复帧) xMFI2}。 对于每个 VC, 每接收到一个字节的数据, 偏移量加 1 , 达到最大值时, 偏移量复位, 重新计数。 其中, 写方向控制指 针格式为 {VC时隙编号、 写方向控制指针偏移量}。 其中, 写方向控制指针 中的 VC时隙编号是从输入数据中提取出来的。 Step S601, generating a DDR SDRAM write direction control pointer. The circuit clock is 8xl55.52/8=155.52MHz. According to the SDH time division multiplexing frame structure, the offset of the DDR SDRAM write direction control pointer is generated according to the received data, the data position indication SPE (Synchronous Payload Envelope) and the VC slot number. For VC4, the maximum offset is equal to {260 (column) x9 (row) xl6 (multiframe) xMFI2 (Multiframe Indicator) }; for VC3, the maximum offset is equal to {84 ( Column) x9 (row) xl6 (multiframe) xMFI2} ; For VC12, the maximum offset is equal to {34 (column) x4 (row) x32 (multiframe) xMFI2} ; for VC11, offset The maximum value is equal to {25 (column) x4 (row) x32 (multiframe) xMFI2}. For each VC, each time a byte of data is received, the offset is incremented by one. When the maximum value is reached, the offset is reset and recounted. The write direction control pointer format is {VC slot number, write direction control pointer offset}. The VC slot number in the write direction control pointer is extracted from the input data.
步驟 S602, 生成 DDR SDRAM读方向控制指针。  Step S602, generating a DDR SDRAM read direction control pointer.
用 155.52Mhz时钟构造 8xSTM-l的 VC时隙编号 RD_VCNUM。 以接 收方向每个 VCG最晚到达成员为基准产生读方向控制指针偏移量和读方向 控制指针复帧编号。 某个 VCG读方向控制指针偏移量随时跟踪着该 VCG 接收到的最晚成员的写方向控制指针偏移量。 当写方向控制指针增加的时 候, 读方向控制指针才能随着增加。 DDR SDRAM读方向控制指针格式为 {RD_VCNUM、 读方向控制指针偏移量}。 其中, 读方向控制指针的 VC时 隙编号是通过循环计数得到的。  The VC slot number RD_VCNUM of 8xSTM-l is constructed with a 155.52Mhz clock. The read direction control pointer offset and the read direction control pointer multiframe number are generated based on the latest arrival member of each VCG in the receiving direction. A VCG read direction control pointer offset keeps track of the write direction control pointer offset of the latest member received by the VCG. When the write direction control pointer is incremented, the read direction control pointer can be increased. The DDR SDRAM read direction control pointer format is {RD_VCNUM, read direction control pointer offset}. The VC slot number of the read direction control pointer is obtained by loop counting.
步驟 S603 , 对读 /写方向控制指针进行合并 /分解处理。  Step S603, performing a merge/decomposition process on the read/write direction control pointer.
依据 DDR SDRAM块的突发(BURST )操作对读 /写方向控制指针进 行合并 /分解处理。 假设 DDR SDRAM的 BURST=8, 数据位宽为 16比特, 表示 DDR SDRAM一次读 /写操作数据位宽是 16x8=128比特。因为 SDH是 字节间插方式工作, 当某个 VC的 DDR SDRAM的写方向控制指针偏移量 计满 16 时, 表示该 VC 已经有了满足 DDR BURST 块要求的数据即 16xlbyte=16x8bit=128bit数据, 这时置 VC的状态( STATE )置为有效, 等 待 DDR SDRAM读取写方向控制指针。当某个 VC的 DDR SDRAM的读指 针偏移量计满 16时, 表示该 VC已经有了满足 DDR BURST块的要求, 这 时置 VC的状态 STATE置为有效,等待 DDR SDRAM来取读方向控制指针。 The read/write direction control pointer is merged/decomposed according to the burst (BURST) operation of the DDR SDRAM block. Assume that the DDR SDRAM has BURST=8 and the data bit width is 16 bits, indicating that the DDR SDRAM read/write operation data bit width is 16x8=128 bits. Because SDH works in byte interleaving mode, when the write direction control pointer offset of a VC's DDR SDRAM counts up to 16, it means that the VC already has the data that meets the requirements of the DDR BURST block. 16xlbyte=16x8bit=128bit data. At this time, the state of the VC (STATE) is set to be valid, waiting for the DDR SDRAM to read the write direction control pointer. When the read pointer offset of a VC's DDR SDRAM counts up to 16, it means that the VC already has the requirement of satisfying the DDR BURST block. At this time, the state STATE of the VC is set to be valid, waiting for the DDR SDRAM to read the direction control. pointer.
步驟 S604, DDR SDRAM控制器根据混合粒度的 VC复用结构构造 VC 时隙编号 VCNUM。  Step S604, the DDR SDRAM controller constructs the VC slot number VCNUM according to the VC multiplexing structure of the mixed granularity.
比如, DDR SDRAM控制器产生 VC4的时隙编号 0~7, 每个 VC3的时 隙编号 0~2, 每个 VC12的时隙编号 0~20。 时隙编号用来查询读或写方向 的 VC状态。 假设 DDR SDRAM的阵列( BANK )是 8, 那么读写频率可设 置为 8, 即连续 8个读和连续 8个写的间插操作。 当控制器取出某 VC的读 方向控制指针或写方向控制指针, 置 VC的 STATE为无效。如图 6c描述了 VC3类型读方向控制指针的状态置为有效和无效的示意图。  For example, the DDR SDRAM controller generates the slot number 0~7 of VC4, the time slot number of each VC3 is 0~2, and the slot number of each VC12 is 0~20. The slot number is used to query the VC status in the read or write direction. Assuming that the array of DDR SDRAM (BANK) is 8, then the read/write frequency can be set to 8, that is, 8 consecutive read and 8 consecutive write interleaving operations. When the controller fetches a VC's read direction control pointer or write direction control pointer, the VC's STATE is invalid. Figure 6c depicts a schematic diagram of the state of the VC3 type read direction control pointer set to active and inactive.
步驟 S605, DDR SDRAM依据混合 VC类型转换读写方向控制指针为 读写地址。  Step S605, the DDR SDRAM converts the read/write direction control pointer into a read/write address according to the hybrid VC type.
DDR SDRAM的 BANK和列地址与混合 VC类型无关。 对于行地址, VC4类型时, 直接取读 /写方向控制地址; VC3 类型时, 行地址等于 {VC3 时隙编号, 读写 /控制地址}; VC12类型时, 行地址等于 {VC12时隙编号, 读 /写方向控制地址}; VC11类型时, 行地址等于 {VC11时隙编号, 读 /写方 向控制地址 }。  The BANK and column addresses of DDR SDRAM are independent of the mixed VC type. For the row address, the VC4 type directly reads the read/write direction control address; when the VC3 type, the row address is equal to {VC3 slot number, read/write/control address}; when VC12 type, the row address is equal to {VC12 slot number, Read/write direction control address}; When VC11 type, the row address is equal to {VC11 slot number, read/write direction control address}.
步驟 S606, 虚级联恢复业务数据。  Step S606, the virtual concatenation recovers the service data.
虚级联恢复业务数据主要由数据恢复处理器完成。 数据恢复处理器由 RAMI ,加法器、 RAM2和比较器构成。数据恢复处理器将从 DDR SDRAM 读出的数据以读方向控制指针存储在 RAMI中。 加法器产生 RAMI的读地 址, RAMI的读地址以 VCG号进行累加,这样读出的数据就是重组的 VCG 数据。 RAM2用于存储 RAMI的写地址。比较器用于控制 RAMI的读进度。 当 RAMI的读地址小于从 RAM2读出的地址, 需要从 RAMI中读数据; 当 RAMI的读地址等于从 RAM2读出的地址, 则停止读数据。 The virtual cascade recovery service data is mainly completed by the data recovery processor. The data recovery processor consists of RAMI, adder, RAM2 and comparator. The data recovery processor stores the data read from the DDR SDRAM in the RAMI with the read direction control pointer. The adder generates the read address of the RAMI, and the read address of the RAMI is accumulated by the VCG number, so that the read data is the recombined VCG data. RAM2 is used to store the write address of RAMI. The comparator is used to control the read progress of the RAMI. When the read address of the RAMI is smaller than the address read from the RAM 2, it is necessary to read data from the RAMI; when the read address of the RAMI is equal to the address read from the RAM 2, the read data is stopped.
其中, RAMI的写地址中的 VC时隙是循环计数得到的,每个 VC的字 节计数取读方向控制指针中的读指针偏移量; RAMI读地址的 VC时隙是 VCG的各个 VC成员排序后得到的,所以读地址的 VC时隙和写地址的 VC 时隙顺序不一样。 RAMI的读地址的 VC字节计数按 VCG号进行累加, 因 此需要每个 VCG的各个成员的字节计数是相同的,这样可以保证每个 VCG 的各个成员按相同的字节计数从 RAMI 中读出数据, 这样读出来的数据就 是恢复的结果。  Wherein, the VC slot in the write address of the RAMI is obtained by loop counting, and the byte count of each VC takes the read pointer offset in the read direction control pointer; the VC slot of the RAMI read address is the VC member of the VCG. After sorting, the VC slot of the read address and the VC slot of the write address are not in the same order. The VC byte count of the RAMI read address is accumulated by the VCG number, so the byte count of each member of each VCG is required to be the same, so that each member of each VCG can be read from the RAMI by the same byte count. The data is output, so the data read out is the result of the recovery.
图 7是本发明实施例提供的一种混合粒度虚级联恢复延时补偿的装置 结构示意图, 如图 7所示, 所述装置包括: DDR SDRAM, DDR SDRAM 控制器、 DDR SDRAM读写控制处理器、 数据恢复处理器。  FIG. 7 is a schematic structural diagram of a device for hybrid granularity cascading recovery delay compensation according to an embodiment of the present invention. As shown in FIG. 7, the device includes: DDR SDRAM, DDR SDRAM controller, DDR SDRAM read/write control processing. , data recovery processor.
DDR SDRAM, 用于存储接收到的数据。  DDR SDRAM, used to store received data.
DDR SDRAM控制器, 用于根据所述写方向控制指针的偏移量及第一 存储器写操作数据位宽,把状态有效的 VC的数据写入第一存储器中,还用 于根据所述读方向控制指针的偏移量及第一存储器读操作数据位宽, 把状 态有效的 VC的数据从所述第一存储器中读出。  a DDR SDRAM controller, configured to control the offset of the pointer and the first memory write operation data bit width according to the write direction, and write the data of the valid VC to the first memory, and further, according to the read direction The offset of the pointer and the first memory read operation data bit width are controlled, and the data of the state-active VC is read from the first memory.
DDR SDRAM读写控制处理器, 用于根据收到的数据、 数据位置指示 和 VC时隙编号, 生成用于写入存储器的各个 VC数据的写方向控制指针, 每个写方向控制指针含有 VC时隙编号和偏移量,还用于为所述各个 VC指 定 VCG端口号, 并以各 VCG最后到达的 VC成员为基准构造用来从第一 存储器读取各 VCG 中 VC 的读方向控制指针, 每个读方向控制指针含有 VC时隙编号和偏移量。  a DDR SDRAM read/write control processor, configured to generate a write direction control pointer for each VC data written in the memory according to the received data, the data location indication, and the VC time slot number, and each write direction control pointer includes a VC The slot number and the offset are also used to specify a VCG port number for each VC, and are configured to read a read direction control pointer of the VC in each VCG from the first memory, based on the VC member that is finally reached by each VCG. Each read direction control pointer contains a VC slot number and an offset.
所述 DDR SDRAM读写控制处理器还包括 DDR SDRAM写方向控制指 针 /状态处理器、 DDR SDRAM读方向控制指针 /状态处理器、 VC配置存储 器。 The DDR SDRAM read/write control processor further includes a DDR SDRAM write direction control pointer/state processor, a DDR SDRAM read direction control pointer/state processor, and a VC configuration storage. Device.
所述 DDR SDRAM写方向控制指针 /状态处理器用于根据所述写方向 控制指针的偏移量及第一存储器写操作数据位宽, 判断写方向 VC的状态, 若所述偏移量代表的 VC的数据量满足第一存储器写操作数据位宽,则确定 状态有效; 所述 DDR SDRAM写方向控制指针 /状态处理器还用于按照 VC 时隙编号查询写方向 VC状态,以便读取其状态有效的写方向 VC的写方向 控制指针;所述 DDR SDRAM写方向控制指针 /状态处理器还用于将读取的 写方向控制指针转换成第一存储器写地址, 并按写地址把数据写入存储器 中。  The DDR SDRAM write direction control pointer/status processor is configured to determine a state of the write direction VC according to the offset of the write direction control pointer and the first memory write operation data bit width, if the offset represents a VC The amount of data satisfies the first memory write operation data bit width, and then determines that the state is valid; the DDR SDRAM write direction control pointer/status processor is further configured to query the write direction VC state according to the VC slot number, so as to read the state The write direction control pointer of the write direction VC; the DDR SDRAM write direction control pointer/status processor is further configured to convert the read write direction control pointer into a first memory write address, and write the data to the memory according to the write address in.
所述 DDR SDRAM读方向控制指针 /状态处理器用于根据所述读方向 控制指针的偏移量及第一存储器读操作数据位宽, 判断读方向 VC的状态, 若所述偏移量所代表的 VC的数据量满足存储器读操作数据位宽,则确定状 态有效; 所述 DDR SDRAM读方向控制指针 /状态处理器还用于按照 VC时 隙编号查询读方向 VC状态,以便读取其状态有效的读方向 VC的读方向控 制指针;所述 DDR SDRAM读方向控制指针 /状态处理器还用于将读取的读 方向控制指针转换成第一存储器读地址, 并按读地址从所述第一存储器中 读出数据。  The DDR SDRAM read direction control pointer/status processor is configured to determine a state of the read direction VC according to the read direction control pointer offset and the first memory read operation data bit width, if the offset represents The data amount of the VC satisfies the memory read operation data bit width, and then determines that the state is valid; the DDR SDRAM read direction control pointer/status processor is further configured to query the read direction VC state according to the VC slot number, so as to read the state of the VC state. a read direction control pointer of the read direction VC; the DDR SDRAM read direction control pointer/status processor is further configured to convert the read read direction control pointer into a first memory read address, and read the address from the first memory Read data in.
VC配置存储器用于存储 VC属性, 比如 VC的类型和 VCG端口号。 数据恢复处理器, 用于将从所述第一存储器读出的数据以读方向控制 指针存储到第二存储器中, 以所述 VCG端口号进行地址累加, 得到所述第 二存储器的当前读地址, 以便从第二存储器中读出数据。  The VC configuration memory is used to store VC attributes such as VC type and VCG port number. a data recovery processor, configured to store data read from the first memory in a read direction control pointer into a second memory, perform address accumulation by using the VCG port number, and obtain a current read address of the second memory To read data from the second memory.
图 8是本发明实施例提供的一种数据恢复处理器的结构示意图,如图 8 所示, 所述数据恢复处理器包括第二存储器 RAM1、 加法器、 比较器、 第 三存储器 RAM2。 其中, RAMI , 用于以读方向控制指针作为地址存储从 DDR SDRAM中读出的数据; RAM2, 用于存储 RAMI的写地址; 加法器, 用于按所述 VCG端口号将所述 RAMI的写地址存储到 RAM2中; 比较器, 用于将从 RAM2读出的写地址与所述 RAMI的当前读地址进行比较, 若所 述 RAMI的当前读地址小于从所述 RAM2读出的写地址, 则从所述 RAMI 中读出数据; 若所述 RAMI的当前读地址大于或等于从所述 RAM2读出的 写地址, 则停止从所述 RAMI中读出数据。 FIG. 8 is a schematic structural diagram of a data recovery processor according to an embodiment of the present invention. As shown in FIG. 8, the data recovery processor includes a second memory RAM1, an adder, a comparator, and a third memory RAM2. Wherein, the RAMI is used to store the data read from the DDR SDRAM with the read direction control pointer as an address; the RAM2 is used to store the write address of the RAMI; the adder, Storing a write address of the RAMI to the RAM 2 according to the VCG port number; a comparator for comparing a write address read from the RAM 2 with a current read address of the RAMI, if the current RAMI is current Reading data from the RAMI when the read address is smaller than the write address read from the RAM 2; stopping from the RAMI if the current read address of the RAMI is greater than or equal to the write address read from the RAM 2 Read data in.
图 8a是本发明实施例提供的数据恢复处理器中的 RAMI的读写地址示 意图。 假设有两个 VCG, 成员类型都是 VC4, VCG号是 0和 1。 VCG0有 3个成员, VC时隙号分别是 0, 2, 3, VCG1有 5个成员, 分别是 1 , 4, 5, 6, 7。 如图 8a所示, RAMI的写地址的时隙编号是 8个 VC4顺序计数, 写 地址的字节计数是根据每个 VC成员顺序计数的; RAMI读地址的 VC时隙 是 VCG的各个 VC成员排序后得到的, 所以读地址的 VC时隙和写地址的 VC时隙顺序不一样。 RAMI的读地址的 VC字节计数是按 VCG号累加得 到的。 RAMI的读地址的 VC字节计数跟随 RAMI的写地址的 VC字节计 数。  Figure 8a is a diagram showing the read and write addresses of the RAMI in the data recovery processor according to the embodiment of the present invention. Suppose there are two VCGs, the member type is VC4, and the VCG numbers are 0 and 1. VCG0 has 3 members, VC slot number is 0, 2, 3, VCG1 has 5 members, which are 1, 4, 5, 6, 7. As shown in FIG. 8a, the slot number of the write address of the RAMI is 8 VC4 sequential counts, and the byte count of the write address is counted according to the order of each VC member; the VC slot of the RAMI read address is each VC member of the VCG. After sorting, the VC slot of the read address and the VC slot of the write address are not in the same order. The VC byte count of the RAMI read address is accumulated by the VCG number. The VC byte count of the RAMI read address follows the VC byte count of the RAMI write address.
综上所述, 本发明通过利用 SDH时分复用结构使用串行方式用较少资 虚级联恢复数据占用资源过多的问题。  In summary, the present invention solves the problem of excessive data occupation resources by using the SDH time division multiplexing structure using a serial mode with less imaginary cascading.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 工业实用性 本发明公开了混合粒度虚级联延时补偿的方法及装置, 根据收到的数 据、数据位置指示和 VC时隙编号生成用于写入第一存储器的各 VC数据的 写方向控制指针; 为各 VC指定 VCG端口号, 并以各 VCG最后到达的 VC 成员为准构造用来从第一存储器读取各 VCG中 VC的读方向控制指针; 根 据写方向控制指针的偏移量及第一存储器写操作数据位宽, 把状态有效的 VC的数据写入存储器;根据读方向控制指针的偏移量及第一存储器读操作 数据位宽,把状态有效的 VC的数据从第一存储器中读出。本发明利用 SDH 时分复用结构使用串行方式、 用较小资源完成混合粒度的虚级联数据恢复, 更好地解决了虚级联恢复数据占用资源过多的问题。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. INDUSTRIAL APPLICABILITY The present invention discloses a method and apparatus for hybrid granularity cascading delay compensation, and generates write direction control for each VC data written in the first memory according to received data, data position indication, and VC slot number a pointer; a VCG port number is assigned to each VC, and the read direction control pointer of the VC in each VCG is read from the first memory according to the VC member finally arrived at each VCG; the offset of the pointer is controlled according to the write direction and The first memory write operation data bit width, the state is valid The data of the VC is written into the memory; the offset of the pointer is controlled according to the read direction and the bit width of the first memory read operation data, and the data of the VC that is valid is read from the first memory. The invention utilizes the SDH time division multiplexing structure to use the serial mode and complete the virtual cascading data recovery with mixed granularity with smaller resources, thereby better solving the problem that the virtual cascade recovery data occupies too much resources.

Claims

1、 一种混合粒度虚级联延时补偿的方法, 所述方法包括:A method for hybrid granularity cascading delay compensation, the method comprising:
A )根据收到的数据、 数据位置指示和虚容器 VC时隙编号, 生成用于 写入第一存储器的各个 VC数据的写方向控制指针,每个写方向控制指针含 有 VC时隙编号和偏移量; A) generating a write direction control pointer for writing each VC data of the first memory according to the received data, the data location indication, and the virtual container VC slot number, each write direction control pointer containing the VC slot number and the offset Transfer amount
B )为所述各个 VC指定虚容器组 VCG端口号, 并以各 VCG最后到达 的 VC成员为基准构造用来从第一存储器读取各 VCG中 VC的读方向控制 指针, 每个读方向控制指针含有 VC时隙编号和偏移量;  B) assigning a virtual container group VCG port number to each VC, and configuring a read direction control pointer for reading VC in each VCG from the first memory based on the VC member finally arrived by each VCG, each read direction control The pointer contains the VC slot number and offset;
C )根据所述写方向控制指针的偏移量及第一存储器写操作数据位宽, 把状态有效的 VC的数据写入第一存储器中;  C) controlling the offset of the pointer and the first memory write operation data bit width according to the write direction, and writing the data of the valid VC to the first memory;
D )根据所述读方向控制指针的偏移量及第一存储器读操作数据位宽, 把状态有效的 VC的数据从所述第一存储器中读出。  D) controlling the offset of the pointer and the first memory read operation data bit width according to the read direction, and reading the data of the valid VC from the first memory.
2、 根据权利要求 1所述的方法, 其中, 所述步驟 C包括:  2. The method according to claim 1, wherein the step C comprises:
C1 )根据所述写方向控制指针的偏移量及第一存储器写操作数据位宽, 判断写方向 VC的状态,若所述偏移量代表的 VC的数据量满足第一存储器 写操作数据位宽, 则确定状态有效;  C1) determining a state of the write direction VC according to the offset of the write direction control pointer and the first memory write operation data bit width, if the data amount of the VC represented by the offset amount satisfies the first memory write operation data bit Wide, then the status is determined to be valid;
C2 )按照 VC时隙编号查询写方向 VC状态, 以便读取其状态有效的 写方向 VC的写方向控制指针;  C2) Query the write direction VC state according to the VC slot number, so as to read the write direction control pointer of the VC whose write status is valid;
C3 )将读取的写方向控制指针转换成第一存储器写地址, 并按写地址 把数据写入第一存储器中。  C3) Converting the read write direction control pointer to the first memory write address and writing the data to the first memory by the write address.
3、 根据权利要求 1所述的方法, 其中, 所述步驟 D包括:  3. The method according to claim 1, wherein the step D comprises:
D1 )根据所述读方向控制指针的偏移量及第一存储器读操作数据位宽, 判断读方向 VC的状态,若所述偏移量所代表的 VC的数据量满足第一存储 器读操作数据位宽, 则确定状态有效;  D1) determining, according to the read direction, the offset of the pointer and the first memory read operation data bit width, determining the state of the read direction VC, if the data amount of the VC represented by the offset satisfies the first memory read operation data Bit width, then the status is determined to be valid;
D2 )按照 VC时隙编号查询读方向 VC状态, 以便读取其状态有效的 读方向 VC的读方向控制指针; D2) Query the VC status of the read direction according to the VC slot number, so as to read the status of the VC Reading direction control pointer of the read direction VC;
D3 )将读取的读方向控制指针转换成第一存储器读地址, 并按读地址 从所述第一存储器中读出数据。  D3) Converting the read read direction control pointer into a first memory read address and reading data from the first memory in accordance with the read address.
4、 根据权利要求 1至 3任一项所述的方法, 其中, 还包括在步驟 D之 后执行的虚级联恢复业务数据步驟 E, 包括:  The method according to any one of claims 1 to 3, further comprising the virtual concatenation recovery service data step E performed after the step D, comprising:
将从所述第一存储器读出的数据以读控制指针存储到第二存储器中; 以所述 VCG 端口号进行地址累加, 得到所述第二存储器的当前读地 址, 以便从第二存储器中读出数据。  The data read from the first memory is stored in the second memory as a read control pointer; the address is accumulated by the VCG port number to obtain the current read address of the second memory, so as to be read from the second memory. Out of the data.
5、 根据权利要求 4所述的方法, 其中, 所述步驟 E还包括: 按所述 VCG端口号将所述第二存储器的写地址存储到第三存储器中; 将从第三存储器读出的写地址与所述第二存储器的当前读地址进行比 较;  5. The method according to claim 4, wherein the step E further comprises: storing the write address of the second memory into the third memory according to the VCG port number; reading from the third memory The write address is compared with the current read address of the second memory;
若所述第二存储器的当前读地址小于从所述第三存储器读出的写地 址, 则从所述第二存储器中读出数据;  Reading data from the second memory if a current read address of the second memory is less than a write address read from the third memory;
若所述第二存储器的当前读地址大于或等于从所述第三存储器读出的 写地址, 则停止从所述第二存储器中读出数据。  If the current read address of the second memory is greater than or equal to the write address read from the third memory, then reading data from the second memory is stopped.
6、 一种混合粒度虚级联延时补偿的装置, 所述装置包括:  6. A device for mixing granularity cascading delay compensation, the device comprising:
双倍速率同步动态随机存储器 DDR SDRAM读写控制处理器, 用于根 据收到的数据、数据位置指示和 VC时隙编号,生成用于写入存储器的各个 VC数据的写方向控制指针, 每个写方向控制指针含有 VC时隙编号和偏移 量; 还用于为所述各个 VC指定 VCG端口号, 并以各 VCG最后到达的 VC 成员为基准构造用来从第一存储器读取各 VCG中 VC的读方向控制指针, 每个读方向控制指针含有 VC时隙编号和偏移量;  Double rate synchronous dynamic random access memory DDR SDRAM read/write control processor for generating write direction control pointers for writing VC data for each memory according to received data, data position indication and VC time slot number, each The write direction control pointer includes a VC slot number and an offset; and is further configured to specify a VCG port number for each VC, and is configured to read each VCG from the first memory with reference to a VC member that is finally reached by each VCG. The read direction control pointer of the VC, each read direction control pointer contains a VC slot number and an offset;
DDR SDRAM控制器, 用于根据所述写方向控制指针的偏移量及第一 存储器写操作数据位宽,把状态有效的 VC的数据写入第一存储器中;还用 于根据所述读方向控制指针的偏移量及第一存储器读操作数据位宽, 把状 态有效的 VC的数据从所述第一存储器中读出。 a DDR SDRAM controller, configured to control the offset of the pointer and the first memory write operation data bit width according to the write direction, and write the data of the valid VC to the first memory; And controlling the offset of the pointer and the first memory read operation data bit width according to the read direction, and reading the data of the VC that is valid from the first memory.
7、 根据权利要求 6所述的装置, 其中, 所述 DDR SDRAM读写控制 处理器还包括 DDR SDRAM写控制指针 /状态处理器;  7. The apparatus according to claim 6, wherein the DDR SDRAM read/write control processor further comprises a DDR SDRAM write control pointer/state processor;
所述 DDR SDRAM写控制指针 /状态处理器用于根据所述写方向控制 指针的偏移量及第一存储器写操作数据位宽,判断写方向 VC的状态,若所 述偏移量代表的 VC的数据量满足第一存储器写操作数据位宽,则确定状态 有效;  The DDR SDRAM write control pointer/status processor is configured to determine a state of the write direction VC according to the offset of the write direction control pointer and the first memory write operation data bit width, if the offset represents a VC If the amount of data satisfies the first memory write operation data bit width, it is determined that the state is valid;
所述 DDR SDRAM写控制指针 /状态处理器还用于按照 VC时隙编号查 询写方向 VC状态, 以便读取其状态有效的写方向 VC的写方向控制指针; 所述 DDR SDRAM写控制指针 /状态处理器还用于将读取的写方向控 制指针转换成第一存储器写地址, 并按写地址把数据写入第一存储器中。  The DDR SDRAM write control pointer/status processor is further configured to query the write direction VC state according to the VC slot number, so as to read the write direction control pointer of the write direction VC whose state is valid; the DDR SDRAM write control pointer/state The processor is further configured to convert the read write direction control pointer to a first memory write address and write the data to the first memory in accordance with the write address.
8、 根据权利要求 6所述的装置, 其中, 所述 DDR SDRAM读写控制 处理器还包括 DDR SDRAM读控制指针 /状态处理器;  8. The apparatus according to claim 6, wherein the DDR SDRAM read/write control processor further comprises a DDR SDRAM read control pointer/state processor;
所述 DDR SDRAM读控制指针 /状态处理器用于根据所述读方向控制 指针的偏移量及第一存储器读操作数据位宽,判断读方向 VC的状态,若所 述偏移量所代表的 VC的数据量满足存储器读操作数据位宽,则确定状态有 效;  The DDR SDRAM read control pointer/status processor is configured to determine a state of the read direction VC according to the read direction control pointer offset and the first memory read operation data bit width, if the offset represents a VC The amount of data satisfies the memory read operation data bit width, and the determined state is valid;
所述 DDR SDRAM读控制指针 /状态处理器还用于按照 VC时隙编号查 询读方向 VC状态, 以便读取其状态有效的读方向 VC的读方向控制指针; 所述 DDR SDRAM读控制指针 /状态处理器还用于将读取的读方向控 制指针转换成第一存储器读地址, 并按读地址从所述第一存储器中读出数 据。  The DDR SDRAM read control pointer/status processor is further configured to query a read direction VC state according to a VC slot number to read a read direction control pointer of a read direction VC whose state is valid; the DDR SDRAM read control pointer/state The processor is further configured to convert the read read direction control pointer to a first memory read address and read data from the first memory by the read address.
9、 根据权利要求 6至 8任一项所述的装置, 其中, 所述装置还包括数 据恢复处理器, 用于将从所述第一存储器读出的数据以读控制指针存储到 第二存储器中, 以所述 VCG端口号进行地址累加, 得到所述第二存储器的 当前读地址, 以便从第二存储器中读出数据。 The apparatus according to any one of claims 6 to 8, wherein the apparatus further comprises a data recovery processor for storing data read from the first memory as a read control pointer to In the second memory, the address is accumulated by the VCG port number to obtain a current read address of the second memory, so as to read data from the second memory.
10、 根据权利要求 9所述的装置, 其中, 所述数据恢复处理器还包括: 第二存储器, 用于以读控制指针作为地址存储从 DDR SDRAM中读出 的数据;  10. The apparatus according to claim 9, wherein the data recovery processor further comprises: a second memory, configured to store data read from the DDR SDRAM with the read control pointer as an address;
第三存储器, 用于存储第二存储器的写地址;  a third memory, configured to store a write address of the second memory;
加法器,用于按所述 VCG端口号将所述第二存储器的写地址存储到第 三存储器中;  An adder, configured to store the write address of the second memory into the third memory according to the VCG port number;
比较器, 用于将从第三存储器读出的写地址与所述第二存储器的当前 读地址进行比较, 若所述第二存储器的当前读地址小于从所述第三存储器 读出的写地址, 则从所述第二存储器中读出数据; 若所述第二存储器的当 前读地址大于或等于从所述第三存储器读出的写地址, 则停止从所述第二 存储器中读出数据。  a comparator, configured to compare a write address read from the third memory with a current read address of the second memory, if a current read address of the second memory is smaller than a write address read from the third memory And reading data from the second memory; if the current read address of the second memory is greater than or equal to a write address read from the third memory, stopping reading data from the second memory .
PCT/CN2012/077372 2011-09-02 2012-06-21 Hybrid granularity virtual concatenation delay compensation method and device WO2013029411A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110258753.9A CN102983929B (en) 2011-09-02 A kind of method and device of combination grain Virtual Concatenation compensation of delay
CN201110258753.9 2011-09-02

Publications (1)

Publication Number Publication Date
WO2013029411A1 true WO2013029411A1 (en) 2013-03-07

Family

ID=47755279

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077372 WO2013029411A1 (en) 2011-09-02 2012-06-21 Hybrid granularity virtual concatenation delay compensation method and device

Country Status (1)

Country Link
WO (1) WO2013029411A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375107A (en) * 2016-08-15 2017-02-01 瑞斯康达科技发展股份有限公司 Virtual concatenation data recovery method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1354927A (en) * 1999-06-10 2002-06-19 奥地利西门子股份有限公司 Method and device for converting virtually concatenated data streams into contiguously concatenated data streams
US20030095563A1 (en) * 2001-08-30 2003-05-22 Pmc-Sierra, Inc. Differential delay compensation
CN1462118A (en) * 2002-05-27 2003-12-17 华为技术有限公司 Treatment method of sequence number ordering in virtual cascade connection
US20040213268A1 (en) * 2003-04-22 2004-10-28 Sameer Gupta Stall need detection and associated stall mechanism for delay compensation in virtual concatenation applications
CN1549533A (en) * 2003-05-23 2004-11-24 中兴通讯股份有限公司 Virtual cascade time delay compensation restoring apparatus
CN101529806A (en) * 2005-08-23 2009-09-09 美商传威股份有限公司 Methods and apparatus for deskewing VCAT/LCAS members
CN101656586A (en) * 2008-08-20 2010-02-24 中兴通讯股份有限公司 Method and device for improving virtual concatenation delay compensation caching efficiency in synchronous digital hierarchy

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1354927A (en) * 1999-06-10 2002-06-19 奥地利西门子股份有限公司 Method and device for converting virtually concatenated data streams into contiguously concatenated data streams
US20030095563A1 (en) * 2001-08-30 2003-05-22 Pmc-Sierra, Inc. Differential delay compensation
CN1462118A (en) * 2002-05-27 2003-12-17 华为技术有限公司 Treatment method of sequence number ordering in virtual cascade connection
US20040213268A1 (en) * 2003-04-22 2004-10-28 Sameer Gupta Stall need detection and associated stall mechanism for delay compensation in virtual concatenation applications
CN1549533A (en) * 2003-05-23 2004-11-24 中兴通讯股份有限公司 Virtual cascade time delay compensation restoring apparatus
CN101529806A (en) * 2005-08-23 2009-09-09 美商传威股份有限公司 Methods and apparatus for deskewing VCAT/LCAS members
CN101656586A (en) * 2008-08-20 2010-02-24 中兴通讯股份有限公司 Method and device for improving virtual concatenation delay compensation caching efficiency in synchronous digital hierarchy

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375107A (en) * 2016-08-15 2017-02-01 瑞斯康达科技发展股份有限公司 Virtual concatenation data recovery method and device
CN106375107B (en) * 2016-08-15 2019-07-26 瑞斯康达科技发展股份有限公司 A kind of data reconstruction method and device of Virtual Concatenation

Also Published As

Publication number Publication date
CN102983929A (en) 2013-03-20

Similar Documents

Publication Publication Date Title
US7167442B2 (en) Hitless protection switching
US7583664B2 (en) Techniques for transmitting and receiving traffic over advanced switching compatible switch fabrics
US8571062B1 (en) Multichannel data conversion into packets
KR100567326B1 (en) Apparatus for switching and transferring SONET/SDH, PDH, Ethernet signals and method thereof
US7177314B2 (en) Transmit virtual concatenation processor
US7277447B2 (en) Onboard RAM based FIFO with pointers to buffer overhead bytes of synchronous payload envelopes in synchronous optical networks
US7672315B2 (en) Methods and apparatus for deskewing VCAT/LCAS members
US20060140226A1 (en) Techniques for processing traffic transmitted over advanced switching compatible switch fabrics
US7415048B2 (en) Differential delay compensation
US7688833B2 (en) Synchronous transmission network node
US6836486B2 (en) Switching of low order data structures using a high order switch
US7630397B2 (en) Efficient scalable implementation of VCAT/LCAS for SDH and PDH signals
WO2013029411A1 (en) Hybrid granularity virtual concatenation delay compensation method and device
US7542484B2 (en) Managing payload specific latencies in a cross-connect system
US7298744B1 (en) Method and apparatus for centralized processing of contiguously and virtually concatenated payloads
CN1838575B (en) Method for carrying out B3 byte regeneration after high capacity time-division crossing
US7830899B2 (en) Obtaining channel status in a network-based data transport architecture
US20030043838A1 (en) Transmission method allocating a time-division multiplex transmission band according to a channel band of a user packet frame
WO2004109979A1 (en) A method for carrying out service-transmitting in a synchronous digital hierarchy network
US7724781B1 (en) Receive virtual concatenation processor
US20060140116A1 (en) Delay distributed virtually-concatenated data traffic
Wang et al. On designing of LCAS over VCAT for an EOS chip
WO2023134512A1 (en) Data transmission method
US7525977B1 (en) Control mechanism for mapping cells and packets
US7519064B1 (en) Virtual tributary processing using shared resources

Legal Events

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

Ref document number: 12828530

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12828530

Country of ref document: EP

Kind code of ref document: A1