Background technology
In a communication network, for meeting growing bandwidth demand, for adapting to the inexorable trend of business IPization development, transmission network is to extendible packet-based architecture evolution, grouping optical transport represents transmission network of future generation, the Packet Service being representative with IP and Ethernet service thus will occupy dominant position gradually, make the economic performance of Packet Service to transmission network play vital effect.
The advantages such as the high transfer rate of Ethernet and sustainable evolution high with its superior cost performance, widely product and application, technology maturity, have become the main development direction of communication carrier net.Grouping optical transmission system P-OTS(Packet-Optical Transport Systems) in support that Ethernet is the transmission of its client traffic.Because grouping optical transmission system is different from the bag treatment system of switch or router, it does not do profound parsing to the content of Ethernet service, is generally and carries out Generic Framing Procedure GFP(Generic Framing Procedure to its business) the rear transparent transmission process of encapsulation.Sending successional requirement to meet customer side Ethernet in IEEE802.3 agreement (802.3 Ethernet protocols that IEEE formulates) in P-OTS chip, all corresponding bag buffer memory can be adopted to realize this requirement at P-OTS chip internal.And send the impact of business by bandwidth traffic due to the Ethernet introducing bag caching mechanism, then wide or burst service situation will inevitably produce undesirable broken frame because buffer memory is full at filled band, and send from Ethernet customer side, thus make grouping optical transmission system introduce the broken frame of regeneration, reduce the utilization rate of system bandwidth, and affect performance and the stability of a system of whole system equipment.
Prior art is carry out sending continuously after redundancy bytes PAD adds process to the broken frame of regeneration to this way to solve the problem again, the method needs the sending side of bag buffer memory to increase corresponding hardware handles function, and the Frame after PAD adds is still the unwanted frame of system, the system that wastes sends bandwidth and consumes corresponding hardware processing resources.
Summary of the invention
For the defect existed in prior art, the object of the present invention is to provide a kind of method preventing from regenerating broken frame in grouping optical transmission system chip, can prevent Ethernet service sending side in P-OTS chip from introducing the problem of the broken frame of regeneration, thus effectively utilize system bandwidth, and add performance and the stability of a system of whole system equipment.
For reaching above object, the technical scheme that the present invention takes is:
In grouping optical transmission system chip, prevent the method regenerating broken frame, it is characterized in that, comprise the following steps:
Step (1), the residue of setting Ethernet service dataframe buffer memory can write spatial value parameter;
Step (2), the residue detecting Ethernet service dataframe buffer memory can write spatial value, controls Ethernet service data according to testing result with whole content frame write Ethernet service dataframe buffer memory; Or the length of data frame content in spatial value state modulator write Ethernet service dataframe buffer memory can be write according to the residue of the Ethernet service dataframe buffer memory of setting.
On the basis of technique scheme, the residue of Ethernet service dataframe buffer memory can be write spatial value parameter default and be set as 64 bytes.
On the basis of technique scheme, in step (2), P-OTS chip is when sending Ethernet service Frame continuously, the residue of real-time detection Ethernet service dataframe buffer memory can write spatial value, and is handled as follows the Ethernet service Frame that prime is sent into according to testing result:
A) can write when the residue of the Ethernet service dataframe buffer memory detected the residue that spatial value is greater than setting in step (1) and spatial value parameter can be write, when the residue of the Ethernet service dataframe buffer memory that the Ethernet service Frame byte number that prime is sent into simultaneously is less than now can write spatial value, then the Ethernet service Frame controlling prime to send into is with whole content frame write Ethernet service dataframe buffer memory; When the residue of the Ethernet service dataframe buffer memory that the Ethernet service Frame byte number that prime is sent into is greater than now can write spatial value, then control Ethernet service Frame that prime is sent into data frame buffer memory write be about to full till, the byte not yet write in this Ethernet service Frame is carried out discard processing simultaneously;
B) can write when the residue of the Ethernet service dataframe buffer memory detected the residue that spatial value is less than setting in step (1) and spatial value parameter can be write, then the Ethernet service Frame sent here of Ethernet service dataframe buffer memory refusal write prime.
Of the present inventionly in grouping optical transmission system chip, prevent the method regenerating broken frame, can prevent Ethernet service sending side in P-OTS chip from introducing the problem of the broken frame of regeneration, thus effectively utilize system bandwidth, improve bandwidth and the data throughout of Ethernet service sending side in grouping optical transmission system chip, effectively raise the efficiency of transmission that Ethernet service side sends Frame, and add performance and the stability of a system of whole system equipment.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention is described in further detail.
As shown in Figure 1, 2, of the present inventionly in grouping optical transmission system chip (P-OTS chip), prevent the method regenerating broken frame, comprise the following steps:
Step (1), the residue of setting Ethernet service dataframe buffer memory can write spatial value parameter;
Step (2), the residue of P-OTS chip detection Ethernet service dataframe buffer memory can write spatial value, controls Ethernet service data according to testing result with whole content frame write Ethernet service dataframe buffer memory; Or the length of data frame content in spatial value state modulator write Ethernet service dataframe buffer memory can be write according to the residue of the Ethernet service dataframe buffer memory of setting.
The method of the invention can write spatial value parameter by the residue of setting Ethernet service dataframe buffer memory, and spatial value situation can be write by the residue detecting in real time Ethernet service dataframe buffer memory inside, make the judgement that whether buffer memory sends Ethernet service Frame or this Frame of refusal write and prevent from regenerating broken frame.The problem regenerating broken frame in prior art because Ethernet service dataframe buffer memory is full is solved with this.
On the basis of technique scheme, the residue of Ethernet service dataframe buffer memory can be write spatial value parameter default and be set as 64 bytes.That is: setting this parameter when P-OTS chip initiation is default value, and default value is set as 64 bytes.
On the basis of technique scheme, in step (2), P-OTS chip is when sending Ethernet service Frame continuously, the residue of real-time detection Ethernet service dataframe buffer memory can write spatial value, and is handled as follows the Ethernet service Frame that prime is sent into according to testing result:
A) can write when the residue of the Ethernet service dataframe buffer memory detected the residue that spatial value is greater than setting in step (1) and spatial value parameter can be write, when the residue of the Ethernet service dataframe buffer memory that the Ethernet service Frame byte number that prime is sent into simultaneously is less than now can write spatial value, then the Ethernet service Frame controlling prime to send into is with whole content frame write Ethernet service dataframe buffer memory; When the residue of the Ethernet service dataframe buffer memory that the Ethernet service Frame byte number that prime is sent into is greater than now can write spatial value, then control Ethernet service Frame that prime is sent into data frame buffer memory write be about to full till, the byte not yet write in this Ethernet service Frame is carried out discard processing simultaneously;
B) can write when the residue of the Ethernet service dataframe buffer memory detected the residue that spatial value is less than setting in step (1) and spatial value parameter can be write, then the Ethernet service Frame sent here of Ethernet service dataframe buffer memory refusal write prime.
By above method, thus control abandons the Ethernet service Frame that now prime is sent here, effectively prevent the problem that Frame is regenerated as broken frame.Compared with prior art, solve P-OTS chip under Ethernet service flowing full amount or bursts of traffic situation, effectively prevent the impact regenerating broken frame.Owing to have employed the mechanism to the prime Frame refusal write buffer memory producing broken frame, thus add the transmitting capacity of Ethernet sending side Frame.Also the efficiency of transmission of Ethernet service sending side Frame is effectively raised.Improve bandwidth and the data throughout of Ethernet service sending side in P-OTS chip.And consequently reduce chip internal hardware handles power consumption.Very large benefit is had to ethernet feature test position fix in P-OTS chip.
It is below a specific embodiment.
Step 1, during P-OTS chip initiation, the residue of setting Ethernet service dataframe buffer memory can write spatial value parameter is default value.Described default value is 64 bytes.
Step 2, the residue that the residue that P-OTS chip detects Ethernet service dataframe buffer memory in real time can write the transmission buffer memory of spatial value and setting can write the relation of spatial value parameter.When the residue of Ethernet service dataframe buffer memory detected can write residue that spatial value is less than the transmission buffer memory of setting can write spatial value parameter time, then discard processing is carried out, to prevent undesirable broken frame to the Ethernet service Frame that prime is sent into.
Step 3, when the residue of Ethernet service dataframe buffer memory detected can write residue that spatial value is greater than the transmission buffer memory of setting can write spatial value parameter time, the residue needing continuation to detect Ethernet service dataframe buffer memory can write the Ethernet service Frame byte number whether spatial value is greater than prime feeding, if be greater than, then the Ethernet service Frame controlling prime to send into is with whole content frame write Ethernet service dataframe buffer memory.And continue repeated execution of steps 2 and step 3.
If the residue of the Ethernet service dataframe buffer memory detected can write the Ethernet service Frame byte number that spatial value is less than prime feeding, then control Ethernet service Frame that prime is sent into data frame buffer memory write be about to full till, the byte not yet write in this Ethernet service Frame is carried out discard processing simultaneously.This kind of situation expiring due to buffer memory, the appearance transmission buffer memory residue longer Ethernet service Frame that prime is sent into can blocked as being at least more than or equal to setting can write the Frame of spatial value parameter byte.Thus still can avoid completely regenerating broken frame.
As shown in Figure 2, be a kind of concrete system architecture schematic diagram implementing to adopt of the method for the invention.The process illustrating Frame in the P-OTS chip realizing Ethernet service transmission in figure flows to.Due to the successional requirement of Ethernet service dataframe in IEEE802.3 agreement will be met, so include the Ethernet service Frame module of Ethernet service dataframe cache module and prime feeding and the Ethernet service dataframe processing module of rear class in P-OTS chip.
The method of the invention is in the specific embodiment of Fig. 2, the size of Ethernet service dataframe buffer memory is at least support a longest ethernet frame (9600 byte), the effect using larger data frame buffer is the caching process making P-OTS chip can support maximum ethernet frame on the one hand, ensures that Ethernet sends the continuity of Frame; Complete outside buffer memory Ethernet service Frame when P-OTS chip Ethernet service work pattern on the other hand, also to complete in chip prime module clock territory to the translation function of Ethernet service sending clock-domain.
When P-OTS chip Ethernet work pattern, data flow is fed through Ethernet service dataframe cache module from prime module by Ethernet service data flow, when data traffic is comparatively large or be data burst situation time, then Ethernet service dataframe buffer memory is in full load condition, and spatial value parameter can be write by the residue of setting Ethernet service dataframe buffer memory, send after the prime Ethernet service Frame that originally can produce broken frame is directly abandoned or only write the Frame of setup parameter value size byte by control realization.The situation regenerating broken frame is prevented to occur.Also the efficiency of transmission of Ethernet service sending side Frame is effectively raised.Improve bandwidth and the data throughout of Ethernet service sending side in P-OTS chip.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
The content be not described in detail in this description belongs to the known prior art of professional and technical personnel in the field.