WO2016112646A1 - 数据流定界方法、装置和计算机存储介质 - Google Patents
数据流定界方法、装置和计算机存储介质 Download PDFInfo
- Publication number
- WO2016112646A1 WO2016112646A1 PCT/CN2015/082553 CN2015082553W WO2016112646A1 WO 2016112646 A1 WO2016112646 A1 WO 2016112646A1 CN 2015082553 W CN2015082553 W CN 2015082553W WO 2016112646 A1 WO2016112646 A1 WO 2016112646A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- preamble
- format
- preset
- data
- uplink data
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L27/00—Modulated-carrier systems
- H04L27/26—Systems using multi-frequency codes
Definitions
- the present invention relates to a Passive Optical Network (PON) technology, and in particular, to a data stream delimiting method, apparatus, and computer storage medium.
- PON Passive Optical Network
- uplink data data transmitted from an Optical Network Unit (ONU) to an Optical Line Terminal (OLT)
- uplink data also referred to as an uplink burst
- the frame structure of the uplink data is as shown in the figure. 1 is shown.
- the data sent from the OLT to the ONU unit is called downlink data.
- the uplink data transmission of the PON system is widely adopted as a time division multiple access (TDMA) technology.
- TDMA time division multiple access
- Each ONU transmits uplink data according to the start time and end time of the uplink data sent by the OLT.
- the OLT needs to accurately delimit the data, parse out the GTC frame and the GEM frame, and implement the reassembly and encapsulation before sending to other network elements on the line side.
- FIG. 2 is a schematic structural diagram of a conventional delimitation control circuit.
- a counter is used as a timer in the OLT, and combined with the time of transmitting uplink data configured for the ONU, the delimitation is performed by using a one-way control method.
- the time window of the module search delimiter is controlled.
- the OLT delimiting module performs a cross-correlation operation on the uplink data stream and the local configuration/storage delimiter according to the window time control signal. When the cross-correlation operation result exceeds the set threshold, it is considered to be the search. Delimiter.
- the transmission fiber is subjected to compression deformation and the delay of decoding the optical signal by the optical module, which causes the delimiter to drift at the time of reaching the OLT, which may result in Search delimiter time set by the OLT to the ONU If the search fails to find a delimiter in the window, it will cause the loss of the upstream packet.
- embodiments of the present invention are directed to a data stream delimiting method, apparatus, and computer storage medium to reduce loss of uplink data packets.
- a data stream delimiting method includes:
- the upstream data stream is delimited according to a preset delimiter.
- the method before the receiving the preamble codeword of the preamble data stream, the method further includes:
- the method further includes:
- Clock and data recovery are performed on the electrical signal to obtain an upstream data stream.
- the performing preamble identification on the uplink data stream includes:
- the uplink data is determined to be preamble data; when the format of the uplink data is inconsistent with the preset preamble format, the uplink data is performed according to a preset algorithm.
- the format conversion, the format of the converted uplink data is consistent with the preset preamble format, and determining that the converted uplink data is preamble data.
- the method further includes: when the format of the uplink data or the format of the converted uplink data is inconsistent with the preset preamble format, stopping sending the preamble data stream in the preset format preamble codeword.
- a second aspect of the embodiments of the present invention further provides a data stream delimiting apparatus, including: a preamble detecting unit and a delimiting related unit;
- the preamble detecting unit is configured to receive a preamble codeword that sends a preamble data stream; and determine whether the number of received preamble codewords reaches a preset value, and determine that the number of received preamble codewords reaches a preset value, Sending a wake-up signal to the delimiting relevant unit;
- the delimiting related unit is configured to, after receiving the wake-up signal from the preamble detecting unit, delimit the buffered uplink data stream according to a preset delimiter.
- the device further includes a preamble position adjustment unit,
- the preamble position adjusting unit is configured to perform preamble identification on the uplink data stream, and send the preamble data stream by using a preamble codeword preamble detection unit in a preset format.
- the device further includes an uplink burst clock data recovery unit,
- the uplink burst clock data recovery unit is configured to perform clock and data recovery on the ONU electrical signal to obtain an uplink data stream, wherein the ONU electrical signal is converted by an optical signal from the ONU.
- the preamble position adjustment unit is configured to determine that the uplink data is preamble data when the format of the uplink data is consistent with the preset preamble format; and the format of the uplink data and the preset preamble When the format is inconsistent, the uplink data is format-converted according to a preset algorithm, and the format of the converted uplink data is consistent with the preset preamble format, and then the converted uplink data is determined to be preamble data.
- the preamble position adjustment unit is further configured to: when the format of the uplink data or the format of the converted uplink data is inconsistent with the preset preamble format, stop transmitting the preamble codeword in the preset format. Code data stream.
- the third aspect of the embodiments of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, where the computer executable instructions are used in at least one of the methods of the first aspect of the embodiments of the present invention.
- the computer storage medium stores computer executable instructions, where the computer executable instructions are used in at least one of the methods of the first aspect of the embodiments of the present invention.
- the data stream delimiting method, device and computer storage medium receive a preamble codeword for transmitting a preamble data stream; when the number of received preamble codewords reaches a preset value, The upstream data stream is delimited according to a preset delimiter. Since the window of the search delimiter can be adaptively adjusted according to the uplink data stream, the embodiment of the present invention helps to solve or reduce the uplink data caused by the search for the delimiter in the search delimiter time window. The problem of packet loss increases the success rate of data stream demarcation and improves system performance.
- FIG. 1 is a schematic structural diagram of a PON uplink burst frame
- FIG. 2 is a schematic structural diagram of a delimiting control circuit
- FIG. 3 is a schematic flowchart of a first data stream delimiting method according to an embodiment of the present invention.
- FIG. 4 is a schematic flowchart of a second data flow delimiting method according to an embodiment of the present invention.
- FIG. 5 is a schematic flowchart of a third data flow delimiting method according to an embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of a first data stream delimiting apparatus according to an embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of a second data stream delimiting apparatus according to an embodiment of the present invention.
- FIG. 8 is a schematic structural diagram of a third data stream delimiting apparatus according to an embodiment of the present invention.
- FIG. 9 is a schematic diagram of a data processing flow of a delimiting related unit according to an embodiment of the present invention.
- the embodiment of the present invention provides a data stream delimiting method and device.
- the embodiment of the present invention can be applied to a passive optical network (Passive Optical Network). , referred to as PON) system, specifically implemented in the electrical domain.
- PON passive optical network
- the method, the device and the computer storage medium according to the embodiments of the present invention count the received preamble codewords. When the number of received preamble codewords reaches a preset value, it is considered that the search is delimited, which obviously can be reduced because of the optical fiber. Waiting for the transmission delay of the optical signal transmission path, resulting in a search The loss of uplink packets caused by delimiters is not available.
- FIG. 3 is a schematic flowchart of a data flow delimiting method according to an embodiment of the present invention. As shown in FIG. 3, the method includes:
- Step 301 Receive a preamble codeword that sends a preamble data stream.
- Step 302 When the number of received preamble codewords reaches a preset value, the uplink data stream is delimited according to a preset delimiter.
- the method before the receiving the preamble codeword of the preamble data stream, the method further includes:
- Step 401 Perform preamble identification on the uplink data stream.
- the performing preamble identification on the uplink data stream includes:
- the uplink data is determined to be preamble data; when the format of the uplink data is inconsistent with the preset preamble format, the uplink data is performed according to a preset algorithm.
- the format conversion, the format of the converted uplink data is consistent with the preset preamble format, and determining that the converted uplink data is preamble data.
- the method further includes: when the format of the uplink data or the format of the converted uplink data is inconsistent with the preset preamble format, stopping transmitting the preamble data stream in the preset format preamble codeword.
- Step 402 Send a preamble data stream in a preset format preamble codeword.
- the method further includes:
- Step 501 Convert an optical signal from the ONU into an electrical signal.
- Step 502 Perform clock and data recovery on the electrical signal to obtain an uplink data stream.
- the embodiment of the present invention further provides a data stream delimiting apparatus.
- the apparatus includes: a preamble detecting unit 601 and a delimiting related unit 602;
- the preamble detecting unit 601 is configured to receive a preamble codeword that sends a preamble data stream, and complete statistics on the number of configured codewords; and determine whether the number of received preamble codewords reaches a preset value, and determine to receive When the number of preamble codewords reaches a preset value, a wake-up signal is sent to the delimiting unit; here, to avoid missed detection, the preset value for the preamble detecting unit to compare the number of preamble codewords may be reduced to wake up The signal can be sent to the delimited relevant unit earlier for cross-correlation operations.
- the delimitation correlation unit 602 is configured to, after receiving the wake-up signal from the preamble detection unit, delimit the buffered uplink data stream according to a preset delimiter.
- the delimitation correlation unit 602 may perform a cross-correlation operation on the local storage/configuration delimiter and the uplink data stream according to the delimited wakeup signal of the preamble detection unit 601, when the cross correlation operation result reaches the specified (configurable) At the threshold value, that is, the demarcation is successful, the delimitation correlation unit 602 module sends the remaining data stream of the uplink burst with the preamble and the delimiter to the system post-stage processing unit. It should be noted that the delimitation correlation unit 602 internally buffers the data sent by the uplink burst clock data recovery unit, and the depth of the data buffer is equal to the data amount required by the preamble position adjustment unit and the preamble detection unit during processing.
- the wake-up signal is valid
- the data is correlated.
- the delimitation is considered successful.
- the user can configure the local delimiter (delimiter) within the delimited relevant unit to meet the customization needs.
- the apparatus further includes a preamble position adjusting unit 701,
- the preamble position adjusting unit 701 is configured to perform preamble identification on the uplink data stream, and send the preamble data stream to the preamble detection unit in a preset format. Specifically, after the preamble position adjusting unit 701 completes the identification of the preamble, the preamble codeword preamble detecting unit 601 that is fixed in a binary data stream 0/1 alternate format transmits the preamble data stream, and the preamble codeword is transmitted.
- the format can be preset. For example, the preamble codeword is set to binary digits (0101)B, which is expressed in hexadecimal as 5H.
- the preamble position adjusting unit 701 is configured to: when the format of the uplink data is consistent with the preset preamble format, determine that the uplink data is preamble data; when the format and preset of the uplink data are If the format of the preamble is inconsistent, the uplink data is format converted according to a preset algorithm, and the format of the converted uplink data is consistent with the preset preamble format, and then the converted uplink data is determined to be preamble data.
- the preamble is fixed in the form of 0/1 alternating binary data streams 010101...
- the data recovered by the BCDR may be in the form of 010101... or 101010...
- the data format needs to be adjusted to 010101...
- the preset preamble codeword format the data of the corresponding length is intercepted and sent to the preamble detecting unit 601, for example, 4 bits (0101) B can be intercepted at a time.
- the preamble position adjusting unit 701 is further configured to stop, in each uplink burst, when the format of the uplink data or the format of the converted uplink data is inconsistent with the preset preamble format.
- the preamble data stream is transmitted in a preset format preamble codeword.
- the apparatus further includes an uplink burst clock data recovery unit 801.
- the Burst Mode Clock and Data Recovery (BCDR) 801 is configured to perform clock and data recovery on the ONU electrical signal to obtain an uplink data stream, where the ONU electrical signal is from the ONU.
- the optical signal is converted. It should be noted that when the ONU sends data to the OLT, the data enters the optical module of the OLT in the form of an optical signal, and the optical module converts the optical signal into an electrical signal and sends it to the BCDR, and the BCDR completes the clock and data recovery of the electrical signal.
- the delimiting unit 602 is the exact position of the delimiter found in the data stream.
- the data processing flow is shown in Figure 9. Shown. Figure 9 illustrates the principle of the associated detection unit during processing, taking only the delimiter length of 16 bits as an example.
- the data output by the uplink burst clock data recovery unit is sent to the delimiting related unit, first through the input buffer, and then through the two sets of register groups B and A, and the A group data and the B group data form a 16-bit data according to a fixed combination form.
- 16 sets of related detection units are fed, and the 16 combined data streams are simultaneously sent to the data selector, and the data selector will select one of them as the output data of the delimited related unit.
- 16 groups of related detection units work in parallel.
- the function of the correlation detection unit is to perform the same OR operation on the input two sets of data (one of the logical operations, if the two inputs are the same, the operation result is 1, otherwise the operation result is 0), and then each of the same operations The results are added together, and the added value is called the correlation test result.
- the maximum value of the correlation detection result is the width of the input data, that is, the two sets of data are equal.
- the data selector will select one of a plurality of data splicing forms as a delimited output result according to the correlation detection result and the number of allowed error bits. For example, when 16 of the received data stream appears at A[0] than the first bit of the specified delimiter and there is no error in the data stream, each of the delimiters that are locally configured in the associated detection unit 0 will be available. The bits are all the same. At this time, the correlation result of the related detection unit of the group is 16, that is, the splicing form of the uplink burst data stream is the same as that of the input correlation detecting unit 0, and then the data selector will select.
- Each of the foregoing units may be implemented by a processor in an electronic device, and the processor may include a central processing unit (CPU), an application processor AP (AP, Application Processor), and a digital signal processor (Digital Signal Processor, DSP), Micro Processing Unit (MCU) or Field-Programmable Gate Array (FPGA).
- CPU central processing unit
- AP Application Processor
- DSP Digital Signal Processor
- MCU Micro Processing Unit
- FPGA Field-Programmable Gate Array
- Each of the above units may also be implemented by a processing circuit in the electronic device.
- the processing circuit can include an application specific integrated circuit ASIC.
- a storage medium may also be included in the electronic device.
- the storage medium is coupled to the processor via an internal communication interface within the electronic device.
- the internal communication interface can be various types of bus interfaces.
- Executable code is stored on the storage medium, and the processor can implement the functions of the above unit by executing the executable code.
- the embodiment of the present invention further discloses a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute at least one of the methods of the embodiments of the present invention, such as One or more of the methods shown in Figures 3, 4, and 5 can be performed.
- the computer storage medium may include a storage medium such as a USB flash drive, a DVD, a removable hard disk, a flash drive, or a magnetic tape, and optionally the computer storage medium is a non-transitory storage medium.
- embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明实施例公开了一种数据流定界方法及装置,该方法包括:接收发送前导码数据流的前导码码字;当接收的前导码码字数量达到预设值时,根据预设的定界符对上行数据流进行定界。本发明实施例还同时公开了一种计算机存储介质。
Description
本发明涉及无源光网络(Passive Optical Network,PON)技术,尤其涉及一种数据流定界方法、装置和计算机存储介质。
在PON系统中,从光网络单元(Optical Network Unit,ONU)发送至光线路终端(Optical Line Terminal,OLT)的数据定义为上行的数据,也称为上行突发,上行数据的帧结构如图1所示。从OLT发送至ONU单元的数据称为下行数据。目前PON系统的上行数据传输广泛被采用的是时分多址(TDMA)技术。每个ONU根据OLT告知的发送上行数据的开始时间和结束时间来发送上行数据。OLT在接收到每个ONU的上行数据后,需要对数据进行准确的定界,解析出GTC帧、GEM帧,并实现重组及封装后才发送至线路侧的其他网络单元。
由此可知,数据流的定界成功与否是后面对数据进行解帧的一个决定性因素。图2为传统定界控制电路结构示意图,参考图2,在传统的处理方式中,OLT内通过一个计数器作为定时器,结合对ONU配置的发送上行数据时刻,采用单向控制的方式对定界模块搜索定界符的时间窗进行控制。OLT定界模块根据窗口时间控制信号,把上行数据流与本地配置/存储的定界符(Delimiter)做互相关运算,当互相关运算结果超过设定的门限值后便认为是搜索到了定界符。
但是,对于上述数据流定界的方法,当一些不可控的因素出现,例如传输光纤受到挤压变形引起光模块对光信号解码的延迟,导致定界符到达OLT的时刻发生漂移时,可能导致在OLT给ONU设定的搜索定界符时间
窗内搜索不到定界符,那么将引起上行数据包的丢失。
发明内容
有鉴于此,本发明实施例期望提供一种数据流定界方法、装置和计算机存储介质,以减少上行数据包的丢失。
本发明实施例第一方面一种数据流定界方法,包括:
接收发送前导码数据流的前导码码字;
当接收的前导码码字数量达到预设值时,根据预设的定界符对上行数据流进行定界。
基于上述方案,所述接收发送前导码数据流的前导码码字之前,该方法还包括:
对上行数据流进行前导码识别;
以预设格式的前导码码字发送前导码数据流;
基于上述方案,该方法还包括:
将来自ONU的光信号转换成电信号;
对所述电信号进行时钟及数据恢复,获得上行数据流。
基于上述方案,所述对上行数据流进行前导码识别,包括:
当上行数据的格式与预设的前导码格式一致时,确定所述上行数据为前导码数据;当上行数据的格式与预设的前导码格式不一致时,按照预设算法对所述上行数据进行格式转换,转换后的上行数据的格式与预设的前导码格式一致,则确定所述转换后的上行数据为前导码数据。
基于上述方案,该方法还包括:当上行数据的格式或转换后的上行数据的格式与预设的前导码格式不一致时,停止以预设格式的前导码码字发送前导码数据流。
本发明实施例第二方面还提供了一种数据流定界装置,包括:前导码检测单元和定界相关单元;其中,
所述前导码检测单元,配置为接收发送前导码数据流的前导码码字;以及判断接收的前导码码字数量是否达到预设值,确定接收的前导码码字数量达到预设值时,向定界相关单元发送唤醒信号;
所述定界相关单元,配置为在接收到来自前导码检测单元的唤醒信号后,根据预设的定界符对缓存的上行数据流进行定界。
基于上述方案,该装置还包括前导码位置调整单元,
所述前导码位置调整单元,配置为对上行数据流进行前导码识别,并以预设格式的前导码码字向前导码检测单元发送前导码数据流。
基于上述方案,该装置还包括上行突发时钟数据恢复单元,
所述上行突发时钟数据恢复单元,配置为将ONU电信号进行时钟及数据恢复,获得上行数据流,其中,所述ONU电信号由来自ONU的光信号转换得到。
基于上述方案,所述前导码位置调整单元,配置为当上行数据的格式与预设的前导码格式一致时,确定所述上行数据为前导码数据;当上行数据的格式与预设的前导码格式不一致时,按照预设算法对所述上行数据进行格式转换,转换后的上行数据的格式与预设的前导码格式一致,则确定所述转换后的上行数据为前导码数据。
基于上述方案,所述前导码位置调整单元,还配置为当上行数据的格式或转换后的上行数据的格式与预设的前导码格式不一致时,停止以预设格式的前导码码字发送前导码数据流。
本发明实施例第三方面还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于本发明实施例第一方面所述方法的至少其中之一。
本发明实施例所述的数据流定界方法、装置和计算机存储介质,接收发送前导码数据流的前导码码字;当接收的前导码码字数量达到预设值时,
根据预设的定界符对上行数据流进行定界。由于能根据上行数据流自适应地调节搜索定界符的窗口,因此,本发明实施例有助于解决或降低在设定搜索定界符时间窗内搜索不到定界符而引起的上行数据包丢失的问题,从而提高数据流定界成功率,提升系统性能。
图1为一种PON上行突发帧结构示意图;
图2为一种定界控制电路结构示意图;
图3为本发明实施例提供的第一种数据流定界方法流程示意图;
图4为本发明实施例提供的第二一种数据流定界方法流程示意图;
图5为本发明实施例提供的第三种数据流定界方法流程示意图;
图6为本发明实施例提供的第一种数据流定界装置结构示意图;
图7为本发明实施例提供的第二种数据流定界装置结构示意图;
图8为本发明实施例提供的第三种数据流定界装置结构示意图;
图9为本发明实施例提供的定界相关单元的数据处理流程示意图。
以下结合附图对本发明的优选实施例进行详细说明,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。
为了有效提高ONU发送至OLT的数据流定界成功率,提升系统性能,本发明实施例提出了一种数据流定界方法及装置,本发明实施例可以应用于无源光网络(Passive Optical Network,简称PON)系统,具体在电域中实现。本发明实施例所述的方法、装置和计算机存储介质,对接收的前导码码字进行计数,当所接收前导码码字数量达到预设值时,认为搜索到了定界,显然这可以减少因为光纤等光信号传输路径的传输延时,导致的搜
索不到定界符造成的上行数据包的丢失的现象。
图3为本发明实施例一种数据流定界方法流程示意图,如图3所示,该方法包括:
步骤301:接收发送前导码数据流的前导码码字;
步骤302:当接收的前导码码字数量达到预设值时,根据预设的定界符对上行数据流进行定界。
需要说明的是,在接收的前导码码字数量达到预设值之前,需要持续接收前导码码字并统计接收的前导码码字数量。
一具体实施例中,如图4所示,所述接收发送前导码数据流的前导码码字之前,该方法还包括:
步骤401:对上行数据流进行前导码识别;
一具体实施例中,所述对上行数据流进行前导码识别,包括:
当上行数据的格式与预设的前导码格式一致时,确定所述上行数据为前导码数据;当上行数据的格式与预设的前导码格式不一致时,按照预设算法对所述上行数据进行格式转换,转换后的上行数据的格式与预设的前导码格式一致,则确定所述转换后的上行数据为前导码数据。
一具体实施例中,该方法还包括:当上行数据的格式或转换后的上行数据的格式与预设的前导码格式不一致时,停止以预设格式的前导码码字发送前导码数据流。
步骤402:以预设格式的前导码码字发送前导码数据流;
一具体实施例中,如图5所示,该方法还包括:
步骤501:将来自ONU的光信号转换成电信号;
步骤502:对所述电信号进行时钟及数据恢复,获得上行数据流。
本发明实施例还提出了一种数据流定界装置,如图6所示,该装置包括:前导码检测单元601和定界相关单元602;其中,
所述前导码检测单元601,配置为接收发送前导码数据流的前导码码字,并完成对配置码字个数的统计;以及判断接收的前导码码字数量是否达到预设值,确定接收的前导码码字数量达到预设值时,向定界相关单元发送唤醒信号;这里,为避免漏检,可降低用于前导码检测单元对比前导码码字数量的预设值,以使得唤醒信号能更早地送到定界相关单元以进行互相关运算。
所述定界相关单元602,配置为在接收到来自前导码检测单元的唤醒信号后,根据预设的定界符对缓存的上行数据流进行定界。
具体的,定界相关单元602可以根据前导码检测单元601的定界唤醒信号,对本地存储/配置的定界符及上行数据流进行互相关运算,当互相关运算结果达到指定(可配置)门限值时,即定界成功,定界相关单元602模块向系统后级处理单元发送上行突发中除去前导码(preamble)及定界符(delimiter)的剩余数据流。需要说明的是,定界相关单元602内部将对上行突发时钟数据恢复单元送来的数据进行缓存,数据缓存的深度等于前导码位置调整单元及前导码检测单元处理所需时间内数据量之和,待唤醒信号有效时,马上对数据进行相关运算。当其中任意一组互相关检测结果达到设定的门限值时,就认为定界成功。用户可对定界相关单元内的本地定界符(delimiter)进行配置,满足定制化需求。
一具体实施例中,如图7所示,该装置还包括前导码位置调整单元701,
所述前导码位置调整单元701,配置为对上行数据流进行前导码(Preamble)识别,并以预设格式的前导码码字向前导码检测单元发送前导码数据流。具体的,前导码位置调整单元701完成对前导码的识别后,固定以一个二进制数据流0/1交替格式的前导码码字向前导码检测单元601发送前导码数据流,前导码码字的格式可以预设设置,例如,前导码码字设为二进制数字(0101)B,此码字用十六进制表示为5H。
一具体实施例中,所述前导码位置调整单元701,配置为当上行数据的格式与预设的前导码格式一致时,确定所述上行数据为前导码数据;当上行数据的格式与预设的前导码格式不一致时,按照预设算法对所述上行数据进行格式转换,转换后的上行数据的格式与预设的前导码格式一致,则确定所述转换后的上行数据为前导码数据。
这里,根据ITU-T G.984.3可知,前导码固定以0/1交替的二进制数据流010101……的形式出现,而由于BCDR恢复出来的数据有可能以010101……或101010……两种形式出现,当以101010……出现的时候,需要调整为010101……的数据格式,之后,每次按照预设的前导码码字格式,截取相应长度的数据发送至前导码检测单元601,例如,一次可截取4个比特(0101)B。
一具体实施例中,所述前导码位置调整单元701,还配置为在每个上行突发中,当上行数据的格式或转换后的上行数据的格式与预设的前导码格式不一致时,停止以预设格式的前导码码字发送前导码数据流。
一具体实施例中,如图8所示,该装置还包括上行突发时钟数据恢复单元801,
所述上行突发时钟数据恢复单元(Burst Mode Clock and Data Recovery,简称BCDR)801,配置为将ONU电信号进行时钟及数据恢复,获得上行数据流,其中,所述ONU电信号由来自ONU的光信号转换得到。需要说明的是,当ONU向OLT发送数据时,数据以光信号形式进入OLT的光模块,光模块将光信号转换成电信号送至BCDR,BCDR完成对该电信号的时钟及数据恢复。
需要说明的是,上行数据中定界符的起始位置不能确定,因此需要在数据流中准确查找出定界符的位置,才能完成后面的解帧工作。定界相关单元602就是在数据流中寻找到定界符的准确位置,其数据处理流程如图9
所示。图9仅以定界符长度为16比特作例子说明处理过程中的相关检测单元原理。上行突发时钟数据恢复单元输出的数据送入定界相关单元,首先经过输入缓存,然后再经过两组寄存器组B组及A组,A组数据及B组数据依固定组合形式组成16比特数据送入16组相关检测单元,该16种组合形式的数据流同时送入数据选择器,数据选择器将选择其中一种作为定界相关单元的输出数据。16组相关检测单元并行工作。相关检测单元的功能是,将输入的两组数据按比特作同或运算(逻辑运算之一,两个输入若相同,运算结果为1,否则运算结果为0),然后将每个同或运算的结果相加,相加所得的值就称为相关检测结果。相关检测结果的最大值就是输入数据的宽度,即表示两组数据相等。数据选择器将依据相关检测结果和允许错误比特数从众多的数据拼接形式中选择一种作为定界输出结果。例如,当接收到的数据流中的16比特定界符的首比特出现于A[0]且数据流中没有误码时,将能与相关检测单元0中本地配置的定界符的每一比特均相同,此时该组相关检测单元的相关结果为16,即说明该上行突发数据流的拼接形式和输入相关检测单元0的形式相同,那么,数据选择器将选择。
上述各单元可以由电子设备中的处理器实现,所述处理器可包括中央处理器(Central Processing Unit,CPU)、应用处理器AP(AP,Application Processor)、数字信号处理器(Digital Signal Processor,DSP)、微处理器(Micro Processing Unit,MCU)或可编程逻辑阵列(Field-Programmable Gate Array,FPGA)等。上述各单元还可以由所述电子设备中的处理电路来实现。所述处理电路可包括专用集成电路ASIC。所述电子设备中还可包括存储介质。所述存储介质与所述处理器通过所述电子设备内的内部通信接口相连。所述内部通信接口可以为各种类型的总线接口。所述存储介质上存储有可执行代码,所述处理器可以通过执行所述可执行代码来实现上述单元的功能。
本发明实施例还公开了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述方法的至少其中之一,具体如可执行如图3、图4及图5所示方法中的一个或多个。
所述计算机存储介质可包括U盘、DVD、移动硬盘、闪盘或磁带等存储介质,可选为所述计算机存储介质为非瞬间存储介质。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机
实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。
Claims (11)
- 一种数据流定界方法,该方法包括:接收发送前导码数据流的前导码码字;当接收的前导码码字数量达到预设值时,根据预设的定界符对上行数据流进行定界。
- 根据权利要求1所述的方法,其中,所述接收发送前导码数据流的前导码码字之前,该方法还包括:对上行数据流进行前导码识别;以预设格式的前导码码字发送前导码数据流。
- 根据权利要求1或2所述的方法,其中,该方法还包括:将来自光网络单元ONU的光信号转换成电信号;对所述电信号进行时钟及数据恢复,获得上行数据流。
- 根据权利要求2所述的方法,其中,所述对上行数据流进行前导码识别,包括:当上行数据的格式与预设的前导码格式一致时,确定所述上行数据为前导码数据;当上行数据的格式与预设的前导码格式不一致时,按照预设算法对所述上行数据进行格式转换,转换后的上行数据的格式与预设的前导码格式一致,则确定所述转换后的上行数据为前导码数据。
- 根据权利要求4所述的方法,其中,该方法还包括:当上行数据的格式或转换后的上行数据的格式与预设的前导码格式不一致时,停止以预设格式的前导码码字发送前导码数据流。
- 一种数据流定界装置,其中,该装置包括:前导码检测单元和定界相关单元;其中,所述前导码检测单元,配置为接收发送前导码数据流的前导码码字;以及判断接收的前导码码字数量是否达到预设值,确定接收的前导码码字数量达到预设值时,向定界相关单元发送唤醒信号;所述定界相关单元,配置为在接收到来自前导码检测单元的唤醒信号后,根据预设的定界符对缓存的上行数据流进行定界。
- 根据权利要求6所述的装置,其中,该装置还包括前导码位置调整单元,所述前导码位置调整单元,配置为对上行数据流进行前导码识别,并以预设格式的前导码码字向前导码检测单元发送前导码数据流。
- 根据权利要求6或7所述的装置,其中,该装置还包括上行突发时钟数据恢复单元,所述上行突发时钟数据恢复单元,配置为将ONU电信号进行时钟及数据恢复,获得上行数据流,其中,所述ONU电信号由来自ONU的光信号转换得到。
- 根据权利要求7所述的装置,其中,所述前导码位置调整单元,配置为当上行数据的格式与预设的前导码格式一致时,确定所述上行数据为前导码数据;当上行数据的格式与预设的前导码格式不一致时,按照预设算法对所述上行数据进行格式转换,转换后的上行数据的格式与预设的前导码格式一致,则确定所述转换后的上行数据为前导码数据。
- 根据权利要求9所述的装置,其中,所述前导码位置调整单元,还配置为当上行数据的格式或转换后的上行数据的格式与预设的前导码格式不一致时,停止以预设格式的前导码码字发送前导码数据流。
- 一种计算机存储介质,所述计算机存储介质中存储有计算机可执 行指令,所述计算机可执行指令用于执行权利要求1至5所述方法的至少其中之一。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510019425.1 | 2015-01-15 | ||
| CN201510019425.1A CN105846943A (zh) | 2015-01-15 | 2015-01-15 | 一种数据流定界方法及装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016112646A1 true WO2016112646A1 (zh) | 2016-07-21 |
Family
ID=56405184
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/082553 Ceased WO2016112646A1 (zh) | 2015-01-15 | 2015-06-26 | 数据流定界方法、装置和计算机存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105846943A (zh) |
| WO (1) | WO2016112646A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107969029B (zh) * | 2016-10-19 | 2021-06-29 | 华为技术有限公司 | 一种唤醒前导码生成方法、同步方法及装置 |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0915597B1 (en) * | 1997-11-05 | 2007-02-14 | Sony Deutschland GmbH | Synchronisation of digital communication systems |
| CN101826911A (zh) * | 2009-03-04 | 2010-09-08 | 索尼公司 | 用于通信系统的接收装置的同步结构和方法 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101305383B (zh) * | 2005-09-09 | 2011-10-05 | Nxp股份有限公司 | 在信号流中检测定界符模式的方法和rfid阅读器 |
| US8351785B2 (en) * | 2008-04-21 | 2013-01-08 | Futurewei Technologies, Inc. | Gigabit passive optical network transmission convergence extension for next generation access |
| CN102318239B (zh) * | 2009-02-27 | 2014-03-12 | 华为技术有限公司 | 无源光网络中发送上行传送帧的方法及设备 |
| CN102045130B (zh) * | 2009-10-20 | 2013-06-05 | 华为技术有限公司 | 一种下行成帧的方法、光线路终端及无源光网络系统 |
-
2015
- 2015-01-15 CN CN201510019425.1A patent/CN105846943A/zh active Pending
- 2015-06-26 WO PCT/CN2015/082553 patent/WO2016112646A1/zh not_active Ceased
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0915597B1 (en) * | 1997-11-05 | 2007-02-14 | Sony Deutschland GmbH | Synchronisation of digital communication systems |
| CN101826911A (zh) * | 2009-03-04 | 2010-09-08 | 索尼公司 | 用于通信系统的接收装置的同步结构和方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105846943A (zh) | 2016-08-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106717111B (zh) | 接收cpri数据流和接收以太网帧的方法、装置及系统 | |
| US10396921B2 (en) | Multi-lane synchronization method, synchronization apparatus and system, and computer storage medium | |
| CN102684999B (zh) | 数据包处理方法及装置 | |
| WO2016037474A1 (zh) | 定帧方法及装置 | |
| CN102301670B (zh) | 无源光网络突发发送方法及接收机复位方法与装置 | |
| CN103546229A (zh) | Serdes速率匹配方法及装置 | |
| WO2014089989A1 (zh) | 一种对数据帧长度进行校验的方法及装置 | |
| CN103248449B (zh) | 并行数据的码元定界方法及装置 | |
| JP6353932B2 (ja) | 光パケット送出方法及びデバイス、光パケット処理方法、並びに光スイッチングデバイス | |
| CN105337914A (zh) | 一种基于1b4b编码的异步串行通信接收方法及保护装置 | |
| CN104579835A (zh) | 一种检测e1链路数据帧中传输通道的方法和装置 | |
| US20140044138A1 (en) | Dynamic link adjustment method and link managing device | |
| WO2016112646A1 (zh) | 数据流定界方法、装置和计算机存储介质 | |
| CN107241155A (zh) | 一种自适应时钟恢复方法及装置 | |
| US9160604B2 (en) | Systems and methods to explicitly realign packets | |
| CN113965286B (zh) | Tsn时间窗口的检测判定方法和装置 | |
| WO2024131360A1 (zh) | 一种调整小颗粒业务带宽的方法 | |
| WO2016000372A1 (zh) | 序列检测方法、装置及计算机存储介质 | |
| WO2012159409A1 (zh) | 动态速率数据业务的定帧方法和装置 | |
| CN104753640A (zh) | 一种基于网络传输链路的适配方法及装置 | |
| WO2017045502A1 (zh) | 一种为串并转换器提供参考时钟的方法、装置和客户端 | |
| JP6467877B2 (ja) | 伝送フレーム変換回路 | |
| CN103731360A (zh) | 一种以太网mac帧数据处理方法及装置 | |
| US10361818B2 (en) | Message dropout minimization when transporting isochronous packets across a plesiochronous boundary | |
| WO2018076672A1 (zh) | 一种光传送网络业务接入方法及装置、计算机存储介质 |
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: 15877561 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: 15877561 Country of ref document: EP Kind code of ref document: A1 |