Background technology
In communication network, for satisfying growing bandwidth demand, for adapting to the inexorable trend of professional IPization development, transmission network is to extendible packet-based architecture evolution, the transmission of grouping light is representing transmission network of future generation, Packet Service take IP and Ethernet service as representative will occupy dominant position gradually thus, so that Packet Service is brought into play vital effect to the economic performance of transmission network.
Ethernet with its superior cost performance, widely product and application, technology maturity is high and the advantages such as high transfer rate of sustainable evolution, has become the main development direction of communication carrier net.Grouping optical transmission system P-OTS(Packet-Optical Transport Systems) supports that Ethernet is the transmission of its client's business in.Because the grouping optical transmission system is different from the bag treatment system of switch or router, its content to Ethernet service is not done profound the parsing, is generally its business is carried out Generic Framing Procedure GFP(Generic Framing Procedure) the rear transparent transmission processing of encapsulation.The customer side Ethernet sends successional requirement in the IEEE802.3 agreement (802.3 Ethernet protocols that IEEE formulates) in order to satisfy in the P-OTS chip, all can adopt corresponding bag buffer memory to realize this requirement at the P-OTS chip internal.And send the professional impact that is subjected to bandwidth traffic owing to introduce the Ethernet of bag caching mechanism, then will inevitably be at filled band wide or burst service situation produce undesirable broken frame owing to buffer memory is full, and send from the Ethernet customer side, thereby so that the grouping optical transmission system has been introduced the broken frame of regeneration, reduce the utilance of system bandwidth, and affected performance and the stability of a system of whole system equipment.
Prior art carries out sending continuously after redundancy bytes PAD adds processing for the broken frame to regeneration to this way to solve the problem again, the transmitter side that the method need to be wrapped buffer memory increases corresponding hardware handles function, and the Frame after process PAD adds still is the unwanted frame of system, and the system that wasted sends bandwidth and expended corresponding hardware handles resource.
Summary of the invention
For the defective that exists in the prior art, the object of the present invention is to provide a kind of method of the broken frame that in grouping optical transmission system chip, prevents from regenerating, can prevent the problem of the broken frame of Ethernet service transmitter side introducing regeneration in the P-OTS chip, thereby effectively utilize system bandwidth, and increased performance and the stability of a system of whole system equipment.
For reaching above purpose, the technical scheme that the present invention takes is:
A kind of method of the broken frame that prevents from regenerating in grouping optical transmission system chip is characterized in that, may further comprise the steps:
Step (1) is set the residue of Ethernet service Frame transmission buffer memory and can be write the spatial value parameter;
Step (2) detects the residue of Ethernet service Frame transmission buffer memory and can write spatial value, according to testing result control the Ethernet service data is write the Ethernet service Frame with whole content frame and sends buffer memory; Or can write the spatial value parameter according to the residue of the Ethernet service Frame transmission buffer memory of setting and control the length that writes data frame content in the Ethernet service Frame transmission buffer memory.
On the basis of technique scheme, the residue of Ethernet service Frame transmission buffer memory can be write the spatial value parameter default and be set as 64 bytes.
On the basis of technique scheme, in step (2), the P-OTS chip is when sending the Ethernet service Frame continuously, detects in real time the residue of Ethernet service Frame transmission buffer memory and can write spatial value, and the Ethernet service Frame of prime being sent into according to testing result is handled as follows:
A) when the residue that the Ethernet service Frame that detects sends buffer memory can write spatial value greater than step (1) in the residue of setting can write the spatial value parameter, when the Ethernet service Frame byte number that the while prime is sent into can be write spatial value less than the residue of the Ethernet service Frame transmission buffer memory of this moment, then control the Ethernet service Frame that prime is sent into and write Ethernet service Frame transmission buffer memory with whole content frame; When the residue that the Ethernet service Frame byte number of sending into when prime sends buffer memory greater than the Ethernet service Frame of this moment can be write spatial value, then control Ethernet service Frame that prime is sent into to data frame buffer write be about to full till, simultaneously the byte that not yet writes in this Ethernet service Frame is carried out discard processing;
B) can write the residue that spatial value sets in less than step (1) when the residue that the Ethernet service Frame that detects sends buffer memory and can write the spatial value parameter, then the Ethernet service Frame sends buffer memory and refuses to write the Ethernet service Frame that prime is sent here.
The method of the broken frame that in grouping optical transmission system chip, prevents from regenerating of the present invention, can prevent the problem of the broken frame of Ethernet service transmitter side introducing regeneration in the P-OTS chip, thereby effectively utilize system bandwidth, bandwidth and the data throughout of Ethernet service transmitter side in the grouping optical transmission system chip have been improved, effectively raise the efficiency of transmission that the Ethernet service side sends Frame, and increased performance and the stability of a system of whole system equipment.
Embodiment
Below in conjunction with accompanying drawing the present invention is described in further detail.
As shown in Figure 1, 2, the method for the broken frame that prevents from regenerating in grouping optical transmission system chip (P-OTS chip) of the present invention may further comprise the steps:
Step (1) is set the residue of Ethernet service Frame transmission buffer memory and can be write the spatial value parameter;
Step (2), P-OTS chip detection Ethernet service Frame sends the residue of buffer memory can write spatial value, according to testing result control the Ethernet service data is write the Ethernet service Frame with whole content frame and sends buffer memory; Or can write the spatial value parameter according to the residue of the Ethernet service Frame transmission buffer memory of setting and control the length that writes data frame content in the Ethernet service Frame transmission buffer memory.
The method of the invention sends the residue of buffer memory by setting the Ethernet service Frame can write the spatial value parameter, and can write the spatial value situation by the residue that real-time detection Ethernet service Frame sends buffer memory inside, make buffer memory whether and send judgement that Ethernet service Frame or refusal write this Frame broken frame that prevents from regenerating.Solve the problem that sends the full broken frame of regenerating of buffer memory in the prior art because of the Ethernet service Frame with this.
On the basis of technique scheme, the residue of Ethernet service Frame transmission buffer memory can be write the spatial value parameter default and be set as 64 bytes.That is: setting this parameter when the P-OTS chip initiation is default value, and default value is set as 64 bytes.
On the basis of technique scheme, in step (2), the P-OTS chip is when sending the Ethernet service Frame continuously, detects in real time the residue of Ethernet service Frame transmission buffer memory and can write spatial value, and the Ethernet service Frame of prime being sent into according to testing result is handled as follows:
A) when the residue that the Ethernet service Frame that detects sends buffer memory can write spatial value greater than step (1) in the residue of setting can write the spatial value parameter, when the Ethernet service Frame byte number that the while prime is sent into can be write spatial value less than the residue of the Ethernet service Frame transmission buffer memory of this moment, then control the Ethernet service Frame that prime is sent into and write Ethernet service Frame transmission buffer memory with whole content frame; When the residue that the Ethernet service Frame byte number of sending into when prime sends buffer memory greater than the Ethernet service Frame of this moment can be write spatial value, then control Ethernet service Frame that prime is sent into to data frame buffer write be about to full till, simultaneously the byte that not yet writes in this Ethernet service Frame is carried out discard processing;
B) can write the residue that spatial value sets in less than step (1) when the residue that the Ethernet service Frame that detects sends buffer memory and can write the spatial value parameter, then the Ethernet service Frame sends buffer memory and refuses to write the Ethernet service Frame that prime is sent here.
By above method, thereby control abandons the Ethernet service Frame that this moment, prime was sent here, has prevented that effectively Frame is regenerated as the problem of broken frame.Compared with prior art, solved the P-OTS chip in Ethernet service flowing full amount or bursts of traffic situation, the impact of the broken frame that effectively prevents from regenerating.Owing to adopted the prime Frame refusal to producing broken frame to write the mechanism of buffer memory, thereby increased the transmitting capacity of Ethernet transmitter side Frame.Also effectively raise the efficiency of transmission of Ethernet service transmitter side Frame.Bandwidth and the data throughout of Ethernet service transmitter side in the P-OTS chip have been improved.And reduced accordingly chip internal hardware handles power consumption.Ethernet feature test position fix in the P-OTS chip there is very large benefit.
It below is a specific embodiment.
Step 1, setting residue that the Ethernet service Frame sends buffer memory during the P-OTS chip initiation, can to write the spatial value parameter be default value.Described default value is 64 bytes.
Step 2, P-OTS chip detect residue that the Ethernet service Frame sends buffer memory in real time can write the relation that the residue of the transmission buffer memory of spatial value and setting can be write the spatial value parameter.When the residue that sends buffer memory when the Ethernet service Frame that detects can be write spatial value and can write the spatial value parameter less than the residue of the transmission buffer memory of setting, the Ethernet service Frame of then prime being sent into carried out discard processing, to prevent undesirable broken frame.
Step 3, when the residue that sends buffer memory when the Ethernet service Frame that detects can be write spatial value and can write the spatial value parameter greater than the residue of the transmission buffer memory of setting, need to continue detect residue that the Ethernet service Frame sends buffer memory and can write the Ethernet service Frame byte number whether spatial value is sent into greater than prime, if greater than, then control the Ethernet service Frame that prime is sent into and write Ethernet service Frame transmission buffer memory with whole content frame.And continuation repeated execution of steps 2 and step 3.
If sending the residue of buffer memory, the Ethernet service Frame that detects to write the Ethernet service Frame byte number that spatial value is sent into less than prime, then control Ethernet service Frame that prime is sent into to data frame buffer write be about to full till, simultaneously the byte that not yet writes in this Ethernet service Frame is carried out discard processing.This kind situation is owing to buffer memory expires, and the longer Ethernet service Frame that prime is sent in the appearance meeting blocks as can write at least the Frame of spatial value parameter byte more than or equal to the transmission buffer memory residue of setting.Thereby still can avoid regenerating broken frame fully.
As shown in Figure 2, the system configuration schematic diagram that adopts for a kind of implementation of the method for the invention.The processing of having showed Frame in the P-OTS chip of realizing the Ethernet service transmission among the figure flows to.Owing to will satisfy that the Ethernet service Frame sends successional requirement in the IEEE802.3 agreement, send Ethernet service Frame module that cache module and prime send into and the Ethernet service Frame transmission processing module of rear class so in the P-OTS chip, include the Ethernet service Frame.
The method of the invention is in the specific embodiment of Fig. 2, the Ethernet service Frame sends the size of buffer memory for supporting at least a ethernet frame the longest (9600 byte), using the effect of larger data frame buffer is to make the P-OTS chip can support the caching process of maximum ethernet frame on the one hand, guarantees that Ethernet sends the continuity of Frame; When P-OTS chip Ethernet service work pattern, finish outside the buffer memory Ethernet service Frame on the other hand, also finish in the chip prime module clock zone to the translation function in Ethernet service tranmitting data register territory.
When P-OTS chip Ethernet work pattern, the Ethernet service data flow is fed through the Ethernet service Frame from the prime module with data flow and sends cache module, large or when being the data burst situation when data traffic, then Ethernet service Frame transmission buffer memory is in full load condition, and the residue that sends buffer memory by setting the Ethernet service Frame can be write the spatial value parameter, and the prime Ethernet service Frame that control has realized originally can producing broken frame is sent after directly abandoning or only write the Frame of setup parameter value size byte.The situation of broken frame of having prevented from regenerating occurs.Also effectively raise the efficiency of transmission of Ethernet service transmitter side Frame.Bandwidth and the data throughout of Ethernet service transmitter side in the P-OTS chip have been improved.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.
The content that is not described in detail in this specification belongs to the known prior art of this area professional and technical personnel.