CN102457441A - PSN (Packet Switched Network) data packet processing method and device - Google Patents

PSN (Packet Switched Network) data packet processing method and device Download PDF

Info

Publication number
CN102457441A
CN102457441A CN2012100132073A CN201210013207A CN102457441A CN 102457441 A CN102457441 A CN 102457441A CN 2012100132073 A CN2012100132073 A CN 2012100132073A CN 201210013207 A CN201210013207 A CN 201210013207A CN 102457441 A CN102457441 A CN 102457441A
Authority
CN
China
Prior art keywords
packet
psn
data
frame
buffer memory
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.)
Granted
Application number
CN2012100132073A
Other languages
Chinese (zh)
Other versions
CN102457441B (en
Inventor
郭志惠
王德明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201210013207.3A priority Critical patent/CN102457441B/en
Publication of CN102457441A publication Critical patent/CN102457441A/en
Application granted granted Critical
Publication of CN102457441B publication Critical patent/CN102457441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a PSN (Packet Switched Network) data packet processing method and device, belonging to the data processing technology. The method comprises the following steps of: after receiving a data packet, determining a written address of the data packet; and when the written address of the PSN data packet is determined to be a cached initial address, detecting whether a packet header of the PSN data packet is correct; if correct, writing data of the PSN data packet; and otherwise, dropping the PSN data packet by using a multi-frame or the PSN data packet as a unit. As the data packet is dropped when the packet header is incorrect, the influences of written incorrect data on the data packet in the follow-up cache can be avoided; and meanwhile, the data in the next frame can be written at an initial position of the cache well so as to prevent an error from expanding.

Description

A kind of PSN data package processing method and device
Technical field
The present invention relates to data processing technique, relate in particular to a kind of PSN data package processing method and device.
Background technology
IETF (Internet Engineering Task Force; The Internet engineering duty group) subordinate's PWE3 (Pseudo-Wire Emulation Edge to Edge, pseudo wire emulation end to end) working group is devoted to the research of emulation one deck and two layer services on packet switching network specially.PWE3 mechanism provides possibility in packet network, transmitting TDM (Time Division Multiplexing, time division multiplexing) business.
TDMoIP (Time Division Multiplexing over IP; Transmitting TDM on the IP network) be a kind of concrete realization technology under the PWE3 mechanism; This technology has realized the Circuit Emulation Service of TDM operation transmission on packet switching network; Can be at Ethernet, MPLS (Multi-Protocol Label Switching; Multiprotocol label switching) carries out PDH/SDH TDM traffic transmission such as (synchronously accurate/SDH) on Packet Based Network, the MEF networks such as (Metro Ethernet Forum, territory Ethernets).
The PWE3 network reference model is as shown in Figure 1, and PWE3 equipment is accomplished Circuit Emulation Service.It transmits the TDM traffic assignments that inserts in different bundle (bundle) on Packet Based Network.Each bundle can independently dispose CESoPSN (Structure-Aware Time Division Multiplexed Circuit Emulation Service over Packet Switched Network; Have the TDM service of structure on the packet switching network, to transmit) and SAToP (Structure-Agnostic Time Division Multiplexing over Packet; Structureless TDM service transmits in message) in the miscellaneous service supported of any consensus standard and this agreement, PWE3 equipment can provide a plurality of bundle.Each bundle has a source address and destination address.
This equipment is supported non-structure and the E1 access service that two types on structure is arranged.For structureless E1, a bundle passage carries a whole E1 link data.Professional for the E1 that structure is arranged, a bundle passage carries any number time slot among the E1.
For example, as shown in Figure 2,32 time slots are arranged in an E1 data link, can make time slot 28/29/30 form bundlel (representing with B1 among Fig. 2) so that time slot 2/3/4/5 is formed bundle0 (representing with B0 among Fig. 2).
PWE3 equipment is supported the transmitting-receiving bidirectional function, and as shown in Figure 3, the process that this equipment carries out Business Processing comprises:
Step S301, PWE3 transmitter side equipment receive the TDM business;
Step S302, PWE3 transmitter side equipment are with the bundle passage of the TDM traffic assignments that inserts to appointment;
Step S303, PWE3 transmitter side equipment become the PSN packet data package with the TDM Business Stream according to the configuration packages of corresponding bundle;
Step S304, PWE3 transmitter side equipment send to the PSN network with the packet package of encapsulation;
Step S305, PWE3 receiver side equipment receive the TDMoIP bag from the PSN network;
The TDMoIP bag that step S306, PWE3 receiver side recognition of devices receive also extracts corresponding bundle channel number;
Step S307, PWE3 receiver side equipment solve tdm data according to the configuration of bundle from the TDMoIP packet package;
Step S308, PWE3 receiver side equipment will solve tdm data according to bundle and eliminate shake and recovered clock;
Step S309, PWE3 receiver side equipment are sent into the TDM network according to the tdm data that bundle will eliminate shake and recovered clock.
In step S308; Can eliminate shake through data cached mode; By the PDV (Packet Delay Variation, packet delay changes) that dithering cache compensation in the circuit simulation equipment is brought by Packet Based Network, the morning bag that buffer memory comes than expection; The late bag that reorders and come than expection, what prevent to wrap abandons.Simultaneously can for the TDM port data be provided according to the speed of TDM network.
But, when in dithering cache, writing data,, cause easily that promptly the follow-up data that write in the buffer memory occur than serious mistake if in the original position of buffer memory, write wrong data.
Summary of the invention
The embodiment of the invention provides a kind of PSN data package processing method and device, causes follow-up correct message to recover in the original position in the buffer memory to avoid data with mistake to be written to.
A kind of PSN data package processing method comprises:
After receiving packet switching network PSN packet, confirm the address that writes of said PSN packet;
When confirming the writing the address and be the initial address of buffer memory of said PSN packet; Whether the packet header of detecting the PSN packet is correct; And in the packet header of confirming said PSN packet when correct; Write the data of said PSN packet, otherwise with multi-frame or be that unit abandons said PSN packet with the PSN packet.
A kind of PSN data packet processing comprises:
Confirm the unit, be used to receive packet switching network PSN packet after, confirm the address that writes of said PSN packet;
Processing unit; Be used for when confirming the writing the address and be the initial address of buffer memory of said PSN packet; Whether the packet header of detecting the PSN packet is correct; And when correct, write the data of said PSN packet, otherwise be that unit abandons said PSN packet with multi-frame or with the PSN packet in the packet header of confirming said PSN packet.
The embodiment of the invention provides a kind of PSN data package processing method and device; After receiving packet, confirm the address that writes of this packet, and when confirming the writing the address and be the initial address of buffer memory of said PSN packet; Whether the packet header of detecting the PSN packet is correct; And when correct, write the data of PSN packet, otherwise be that unit abandons the PSN packet with multi-frame or PSN packet.Because when mistake occurring in packet header; Packet discard; Thereby avoid the influence of the data of write error to the packet in the follow-up buffer memory, also being convenient to the next frame data simultaneously can be written in the original position of buffer memory preferably, prevents that wrong the extension with correct message from can't recover.
Description of drawings
Fig. 1 is a TDMoIP transport network architecture sketch map in the prior art;
Fig. 2 is a bundle access diagram in the prior art;
Fig. 3 is TDMoIP transceive data flow process figure in the prior art;
The PSN data package processing method flow chart that Fig. 4 provides for the embodiment of the invention;
The method flow diagram that in buffer memory, writes data that Fig. 5 provides for the embodiment of the invention;
The method flow diagram of reading of data from buffer memory that Fig. 6 provides for the embodiment of the invention;
The PSN data packet processing structural representation that Fig. 7 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of PSN data package processing method and device; After receiving packet, confirm the address that writes of this packet, and when confirming the writing the address and be the initial address of buffer memory of said PSN packet; Whether the packet header of detecting the PSN packet is correct; And when correct, write the data of PSN packet, otherwise be that unit abandons the PSN packet with multi-frame or PSN packet.Since when mistake occurring in packet header, packet discard, thus avoid of the influence of the data of write error to the packet in the follow-up buffer memory, also being convenient to the next frame data simultaneously can be written in the original position of buffer memory preferably, prevents wrong the extension.
PSN data package processing method as shown in Figure 4, that the embodiment of the invention provides comprises:
Step S401, receive packet switching network PSN packet after, confirm the address that writes of PSN packet;
Step S402, when confirming the writing the address and be the initial address of buffer memory of PSN packet; Whether the packet header of detecting the PSN packet is correct; And when correct, write the data of PSN packet, otherwise be that unit abandons the PSN packet with multi-frame or with the PSN packet in the packet header of confirming the PSN packet.
Because the writing position of each PSN packet all is that the PSN packet that writes in the original position according to buffer memory calculates; So need the correctness in the PSN packet packet header of this position of assurance; If packet header is incorrect; With multi-frame or with the PSN packet is that unit abandons the PSN packet, can prevent the influence of data write error mistake to the follow-up data bag so that the correct PSN packet in follow-up packet header is written in the original position of buffer memory.
In step S401; For each PSN packet; Can be according to SN number of the packet of the initial address storage of SN number of the PSN packet, the size of PSN packet and buffer memory; Confirm the address that writes of this PSN packet, when confirming the writing the address and exceed the buffer memory scope of this PSN packet, can confirm that this PSN packet should be written in the initial address of buffer memory.For example, suppose that cache size is 100 units of writing, each PSN packet takies the unit of writing; SN number of the PSN packet that writes in the original position of current cache is 1, then should be written in the 58th unit of writing when the PSN packet that is 58 for SN number, when receiving the 101st PSN packet; Confirm that then this PSN packet should be written in the initial address of buffer memory; If packet header of this PSN packet is correct, then be written into the initial address of buffer memory, and to upgrade SN number of the packet that writes in the initial address of current cache be 101; When receiving follow-up PSN packet, then being for SN number 101 to confirm the position that these PSN packets should write.
In step S402, confirm that the packet header of PSN packet is correct, specifically comprise:
If the data structure of current transmission is a multi-frame structure, then, confirm that the packet header of PSN packet is correct when having multi-frame head and packet header and multi-frame head in the packet header of PSN packet when all meeting call format;
If the data structure of current transmission is the single frames structure, then, confirm that the packet header of PSN packet is correct when having single frames head and packet header and single frames head in the packet header of PSN packet when all meeting call format;
If the data structure of current transmission is no frame structure, then when the packet header of PSN packet meets call format, confirm that the packet header of PSN packet is correct.
Usually, for multi-frame structure, comprise one or more PSN packets in the common multi-frame, and, comprise one or more single frames in the common PSN packet for the single frames structure.
With multi-frame or be that unit is when abandoning said PSN packet with the packet; If the data structure of current transmission is a multi-frame structure; Then abandon other PSN packet in current PSN packet and the current multi-frame; Wherein, other PSN packet in the current multi-frame be specially SN number with SN number difference of current PSN packet PSN packet less than the PSN packet number that comprises in the multi-frame; If the data structure of current transmission is the single frames structure or does not have frame structure, then abandons current PSN packet.
If in the multi-frame that is abandoned, there has been part PSN packet to be written in the buffer memory, then can not wipe, when writing the next frame data, the data that write promptly can be capped.
With the multi-frame structure is example; Suppose in the multi-frame structure that each frame comprises 16 PSN packets, first PSN packet is a frame head; Be for SN number that 51 PSN packets need is written to the original position in the buffer memory if detect so; Then need confirm whether comprise the multi-frame head in the packet header in this PSN packet, and whether package head format and multi-frame head form be correct, if comprise the multi-frame head; And packet header and multi-frame head form are all correct, then can normally be written to preceding 16 units of writing in the buffer memory with SN number for the PSN packet of 51-66; Do not comprise the multi-frame head in the packet header in the PSN packet if detect, when perhaps there are mistake in packet header or multi-frame head, then abandon SN number and be the PSN packet of 51-66.
Further, in order to prevent to write under the bigger situation of data volume, the data that write override the data that are not read as yet, and then before the data that write the PSN packet, the data volume that can also confirm earlier not to be read in the buffer memory is less than predefined first threshold.
If the data volume of confirming not to be read in the buffer memory during more than or equal to predefined first threshold, is that unit abandons the PSN packet with multi-frame or with the PSN packet.
Generally, preferable for utilizing spatial cache, first threshold to be set to more fully near the value of cache size.
Generally speaking; When in packet network, having the PSN packet to arrive PWE3 equipment; This equipment just begins to carry out write operation, and should be because data were continuously sent in the TDM network requirement, thus this equipment need be from buffer memory reading of data and in the TDM network, sending continuously.
Read operation and write operation can be carried out through time-multiplexed mode, also can carry out through the mode of scheduling.When carrying out through time-multiplexed mode, be in the read operation distributed time slot, read data and transmission in the buffer memory, in the write operation distributed time slot, the data in the PSN packet are write buffer memory; When carrying out,, confirm to carry out read operation or carry out write operation through scheduling mode then for each time slot through the mode of scheduling.
When for each time slot, when confirming to carry out read operation or carrying out write operation, if in a time slot through scheduling mode; Receive only the request of writing, then only carry out write operation, if receive only the request of reading; Then only carry out read operation; Ask and write when asking if receive simultaneously to read, then carry out write operation, this read operation is deferred to receive to read when asking next time carries out.
Because it is continuous sending data to the TDM network, the data of packet network transmission then happen suddenlys, so when receiving the request of reading simultaneously and writing request, carry out write operation and can improve read-write efficiency, the few packet discard of trying one's best of assurance simultaneously.Simultaneously owing to after data read, can be stored in data in the inner buffer earlier; The data of storing in this inner buffer can continue the 0.5ms data at least and send for the TDM link; Receive the request of reading next time and the time carry out so read operation postponed till, do not influence the continuity of sending data to the TDM network usually.
In order to prevent owing to the data in the buffer memory are very few; Cause read operation not carry out continuously, before reading the data in the buffer memory at every turn and sending, the data volume that can confirm earlier not to be read in the buffer memory is more than or equal to predefined second threshold value; If the data volume of confirming not to be read in the buffer memory is less than predefined second threshold value; Explain that promptly the data in the buffer memory are very few, may be read sky, can be earlier send the padding data that is used for replacing the data that read from buffer memory to the TDM network this moment; When the data volume in buffer memory reaches second threshold value, normally read the data in the buffer memory again.When sending padding data, can when current transmission frame is multi-frame, be that unit sends padding data equally with the multi-frame; When current transmission frame is single frames, be that unit sends padding data with 4 single frames; When current transmission data are the non-structure data, be that unit sends padding data with 0.5 millisecond.
Concrete, at the packet that receives packet network, and when in buffer memory, writing data, as shown in Figure 5, specifically comprise the steps:
Step S501, confirm to detect packet header sop, and can carry out write operation;
Step S502, carry out packet header and handle, extracts the address that writes of calculating this PSN packet bundle number and SN number;
Step S503, judge according to SN number whether this PSN packet is the bag of normal sequence, if, execution in step S504, otherwise execution in step S509; Concrete; When SN number of this PSN packet when writing the maximum S of the PSN packet in the buffer memory; Can confirm the bag that this PSN packet is a normal sequence,, then can confirm the bag that this PSN packet arrived for evening if less than the maximum S that writes the PSN packet in the buffer memory number;
Step S504, judge whether this PSN packet can receive, if, execution in step S504, otherwise execution in step S508; Concrete, when the corresponding frame head of this PSN packet had been dropped, this PSN packet promptly cannot be received;
Step S505, judge whether the address that writes of this PSN packet is the initial address of buffer memory, if, execution in step S506, otherwise execution in step S507;
Step S506, judge whether the packet header of this PSN packet is correct, if, execution in step S507, otherwise execution in step S508;
Step S507, this PSN packet is write dithering cache, upgrade SN number of the PSN packet that writes in the initial address of buffer memory, the data volume that is not read, maximum S number with and memory address;
Step S508, be that unit abandons the PSN packet with multi-frame or PSN packet;
Step S509, judge whether the corresponding data that write in the address of this PSN packet are read, if, execution in step S508, otherwise, execution in step S510;
Step S510, when confirming the writing the address and be not the initial address of buffer memory of this PSN packet; This PSN packet is write corresponding writing in the address, replace the data in this address, and when the writing the address and be the initial address of buffer memory of definite this PSN packet; Whether the packet header of detecting the PSN packet is correct; And when correct, write the data of said PSN packet, otherwise be that unit abandons the PSN packet with multi-frame or with the PSN packet in the packet header of confirming said PSN packet.
In step S510; Can also be when confirming the writing the address and be not the initial address of buffer memory of this PSN packet; Directly this PSN packet is write corresponding writing in the address, replace the data in this address, the initial address that the address is a buffer memory that writes of this PSN packet is confirmed in timing; Do not carry out the detection of PSN packet packet header correctness yet, write efficient thereby improve.
Accordingly, the data in reading buffer memory, and when in the TDM network, sending, as shown in Figure 6, specifically comprise the steps:
Step S601, define the bundle passage and need reading of data, and can carry out read operation;
Step S602, extraction bundle number;
Step S603, judge whether current time slots is the initial time slot of this bundle, if, execution in step S604, otherwise execution in step S607;
Step S604, search through bundle number and to read address table, search the data initial address;
Step S605, judge whether to read the data in this initial address, if, execution in step S606, otherwise execution in step S608;
Step S606, from buffer memory reading of data, upgrade the data volume that does not read in address and the buffer memory that reads of this bundle;
Step S607, judge whether the data reading state of this bundle is occupied state, if, execution in step S606, otherwise execution in step S608;
Step S608, send padding data to the TDM network.
In step S608, occupied state is meant, in carrying out the initialization procedure that data write and read; At first should in buffer memory, write certain data volume; Just allow reading of data from buffer memory, in initialization procedure, data quantity stored can guarantee the follow-up continuity that reads in the buffer memory.When the data volume in buffer memory does not reach the amount that can begin to read; Make that then whether the data reading state is occupied state, does not allow reading of data from buffer memory, at this moment; Can send padding data to the TDM network, to guarantee to send the continuity of data to the TDM network.
The embodiment of the invention is also corresponding to provide a kind of PSN data packet processing, and this device can be specially PWE3 equipment, and is as shown in Figure 7, comprises in this device:
Confirm unit 701, be used to receive packet switching network PSN packet after, confirm the address that writes of PSN packet;
Processing unit 702; Be used for when confirming the writing the address and be the initial address of buffer memory of PSN packet; Whether the packet header of detecting the PSN packet is correct; And when correct, write the data of PSN packet, otherwise be that unit abandons the PSN packet with multi-frame or with the PSN packet in the packet header of confirming the PSN packet.
Wherein, confirm that unit 701 specifically is used for:
After receiving packet switching network PSN packet,, confirm the address that writes of PSN packet according to SN number of the packet of the initial address storage of SN number of the PSN packet, the size of PSN packet and said buffer memory.
Processing unit 702 confirms that the packet header of said PSN packet is correct, specifically comprises:
If the data structure of current transmission is a multi-frame structure, then, confirm that the packet header of PSN packet is correct when having multi-frame head and packet header and multi-frame head in the packet header of PSN packet when all meeting call format;
If the data structure of current transmission is the single frames structure, then, confirm that the packet header of PSN packet is correct when having single frames head and packet header and single frames head in the packet header of PSN packet when all meeting call format;
If the data structure of current transmission is no frame structure, then when the packet header of PSN packet meets call format, confirm that the packet header of PSN packet is correct.
Processing unit 702 is that unit abandons the PSN packet with multi-frame or with the packet, specifically comprises:
If the data structure of current transmission is a multi-frame structure; Then abandon other PSN packet in current PSN packet and the current multi-frame, other PSN packet in the said current multi-frame be specially SN number with SN number difference of current PSN packet PSN packet less than the PSN packet number that comprises in the multi-frame;
If the data structure of current transmission is the single frames structure or does not have frame structure, then abandons current PSN packet.
Processing unit 702 also is used for:
With multi-frame or be after unit abandons the PSN packet with the PSN packet, after multi-frame that is abandoned or PSN packet, and packet header proper data bag writes the initial address of buffer memory, and upgrades SN number of packet of the initial address storage of buffer memory.
Further, in order to prevent to write under the bigger situation of data volume, the data that write override the data that are not read as yet, and processing unit 702 also is used for:
Before the data that write the PSN packet, the data volume of confirming not to be read in the buffer memory is less than predefined first threshold.
And processing unit 702 also is used for: when confirming that data volume that buffer memory is not read is more than or equal to predefined first threshold, be that unit abandons the PSN packet with multi-frame or with the PSN packet.
Processing unit 702 also is used for: the data and the transmission of reading buffer memory.
Because the data in the buffer memory are very few, cause read operation not carry out continuously in order to prevent, processing unit 702 also is used for:
Before data in reading buffer memory and the transmission, the data volume of confirming not to be read in the buffer memory is more than or equal to predefined second threshold value.
Processing unit 702 also is used for: when confirming data volume that buffer memory is not read less than predefined second threshold value, then
When current transmission frame is multi-frame, be that unit sends padding data with the multi-frame;
When current transmission frame is single frames, be that unit sends padding data with 4 single frames;
When current transmission data are the non-structure data, be that unit sends padding data with 0.5 millisecond.
When can not in buffer memory, writing data simultaneously and from buffer memory during reading of data, processing unit 702 also is used for:
Be in the read operation distributed time slot, reading data and transmission in the buffer memory,, the data in the PSN packet are being write buffer memory in the write operation distributed time slot; Perhaps
For each time slot, confirm to carry out read operation or carry out write operation through scheduling mode.
When for each time slot, when confirming to carry out read operation or carrying out write operation through scheduling mode, processing unit 702 also is used for:
When receiving the request of reading at the same time and writing request, carry out write operation.
The embodiment of the invention provides a kind of PSN data package processing method and device; After receiving packet, confirm the address that writes of this packet, and when confirming the writing the address and be the initial address of buffer memory of said PSN packet; Whether the packet header of detecting the PSN packet is correct; And when correct, write the data of PSN packet, otherwise be that unit abandons the PSN packet with multi-frame or PSN packet.Since when mistake occurring in packet header, packet discard, thus avoid of the influence of the data of write error to the packet in the follow-up buffer memory, also being convenient to the next frame data simultaneously can be written in the original position of buffer memory preferably, prevents wrong the extension.
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, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (20)

1. a PSN data package processing method is characterized in that, comprising:
After receiving packet switching network PSN packet, confirm the address that writes of said PSN packet;
When confirming the writing the address and be the initial address of buffer memory of said PSN packet; Whether the packet header of detecting the PSN packet is correct; And in the packet header of confirming said PSN packet when correct; Write the data of said PSN packet, otherwise with multi-frame or be that unit abandons said PSN packet with the PSN packet.
2. the method for claim 1 is characterized in that, the said address that writes of confirming said PSN packet is specially:
According to SN number of the packet of the initial address storage of SN number of said PSN packet, the size of said PSN packet and said buffer memory, confirm the address that writes of said PSN packet.
3. the method for claim 1 is characterized in that, the packet header of said definite said PSN packet is correct, specifically comprises:
If the data structure of current transmission is a multi-frame structure, then, confirm that the packet header of said PSN packet is correct when having multi-frame head and packet header and multi-frame head in the packet header of said PSN packet when all meeting call format;
If the data structure of current transmission is the single frames structure, then, confirm that the packet header of said PSN packet is correct when having single frames head and packet header and single frames head in the packet header of said PSN packet when all meeting call format;
If the data structure of current transmission is no frame structure, then when the packet header of said PSN packet meets call format, confirm that the packet header of said PSN packet is correct.
4. the method for claim 1 is characterized in that, said is that unit abandons said PSN packet with multi-frame or with the packet, specifically comprises:
If the data structure of current transmission is a multi-frame structure; Then abandon other PSN packet in current PSN packet and the current multi-frame, other PSN packet in the said current multi-frame be specially SN number with SN number difference of current PSN packet PSN packet less than the PSN packet number that comprises in the multi-frame;
If the data structure of current transmission is the single frames structure or does not have frame structure, then abandons current PSN packet.
5. the method for claim 1 is characterized in that, is being after unit abandons said PSN packet, also to comprise with multi-frame or with the PSN packet:
After multi-frame that is abandoned or PSN packet, and packet header proper data bag writes the initial address of said buffer memory, and upgrades SN number of packet of the initial address storage of said buffer memory.
6. the method for claim 1 is characterized in that, before the data that write said PSN packet, also comprises:
The data volume of confirming not to be read in the said buffer memory is less than predefined first threshold;
The data volume that in confirming said buffer memory, is not read is that unit abandons said PSN packet with multi-frame or with the PSN packet during more than or equal to predefined first threshold.
7. the method for claim 1 is characterized in that, also comprises:
Read data and transmission in the said buffer memory.
8. method as claimed in claim 7 is characterized in that, before data in reading said buffer memory and the transmission, also comprises:
The data volume of confirming not to be read in the said buffer memory is more than or equal to predefined second threshold value;
The data volume that in confirming said buffer memory, is not read is during less than predefined second threshold value, then
When current transmission frame is multi-frame, be that unit sends the padding data that is used for replacing the data that read from buffer memory with the multi-frame;
When current transmission frame is single frames, be that unit sends the padding data be used for replacing the data that read from buffer memory with 4 single frames;
When current transmission data are the non-structure data, be that unit sends the padding data be used for replacing the data that read from buffer memory with 0.5 millisecond.
9. method as claimed in claim 7 is characterized in that, also comprises:
Be in the read operation distributed time slot, reading data and transmission in the said buffer memory,, the data in the PSN packet are being write buffer memory in the write operation distributed time slot; Perhaps
For each time slot, confirm to carry out read operation or carry out write operation through scheduling mode.
10. method as claimed in claim 9 is characterized in that, when for each time slot, when confirming to carry out read operation or carrying out write operation through scheduling mode, also comprises:
When receiving the request of reading at the same time and writing request, carry out write operation.
11. a PSN data packet processing is characterized in that, comprising:
Confirm the unit, be used to receive packet switching network PSN packet after, confirm the address that writes of said PSN packet;
Processing unit; Be used for when confirming the writing the address and be the initial address of buffer memory of said PSN packet; Whether the packet header of detecting the PSN packet is correct; And when correct, write the data of said PSN packet, otherwise be that unit abandons said PSN packet with multi-frame or with the PSN packet in the packet header of confirming said PSN packet.
12. device as claimed in claim 11 is characterized in that, said definite unit specifically is used for:
After receiving packet switching network PSN packet,, confirm the address that writes of said PSN packet according to SN number of the packet of the initial address storage of SN number of said PSN packet, the size of said PSN packet and said buffer memory.
13. device as claimed in claim 11 is characterized in that, said processing unit confirms that the packet header of said PSN packet is correct, specifically comprises:
If the data structure of current transmission is a multi-frame structure, then, confirm that the packet header of said PSN packet is correct when having multi-frame head and packet header and multi-frame head in the packet header of said PSN packet when all meeting call format;
If the data structure of current transmission is the single frames structure, then, confirm that the packet header of said PSN packet is correct when having single frames head and packet header and single frames head in the packet header of said PSN packet when all meeting call format;
If the data structure of current transmission is no frame structure, then when the packet header of said PSN packet meets call format, confirm that the packet header of said PSN packet is correct.
14. device as claimed in claim 11 is characterized in that, said processing unit is that unit abandons said PSN packet with multi-frame or with the packet, specifically comprises:
If the data structure of current transmission is a multi-frame structure; Then abandon other PSN packet in current PSN packet and the current multi-frame, other PSN packet in the said current multi-frame be specially SN number with SN number difference of current PSN packet PSN packet less than the PSN packet number that comprises in the multi-frame;
If the data structure of current transmission is the single frames structure or does not have frame structure, then abandons current PSN packet.
15. device as claimed in claim 11 is characterized in that, said processing unit also is used for:
Be after unit abandons said PSN packet with multi-frame or with the PSN packet; After multi-frame that is abandoned or PSN packet; And packet header proper data bag writes the initial address of said buffer memory, and upgrades SN number of packet of the initial address storage of said buffer memory.
16. device as claimed in claim 11 is characterized in that, said processing unit also is used for: before the data that write said PSN packet, the data volume of confirming not to be read in the said buffer memory is less than predefined first threshold;
The data volume that in confirming said buffer memory, is not read is that unit abandons said PSN packet with multi-frame or with the PSN packet during more than or equal to predefined first threshold.
17. device as claimed in claim 11 is characterized in that, said processing unit also is used for:
Read data and transmission in the said buffer memory.
18. device as claimed in claim 17 is characterized in that, said processing unit also is used for:
Before data in reading said buffer memory and the transmission, the data volume of confirming not to be read in the said buffer memory is more than or equal to predefined second threshold value;
The data volume that in confirming said buffer memory, is not read is during less than predefined second threshold value, then
When current transmission frame is multi-frame, be that unit sends the padding data that is used for replacing the data that read from buffer memory with the multi-frame;
When current transmission frame is single frames, be that unit sends the padding data be used for replacing the data that read from buffer memory with 4 single frames;
When current transmission data are the non-structure data, be that unit sends the padding data be used for replacing the data that read from buffer memory with 0.5 millisecond.
19. device as claimed in claim 17 is characterized in that, said processing unit also is used for:
Be in the read operation distributed time slot, reading data and transmission in the said buffer memory,, the data in the PSN packet are being write buffer memory in the write operation distributed time slot; Perhaps
For each time slot, confirm to carry out read operation or carry out write operation through scheduling mode.
20. device as claimed in claim 19 is characterized in that, when for each time slot, when confirming to carry out read operation or carrying out write operation through scheduling mode, said processing unit also is used for:
When receiving the request of reading at the same time and writing request, carry out write operation.
CN201210013207.3A 2012-01-16 2012-01-16 PSN (Packet Switched Network) data packet processing method and device Active CN102457441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210013207.3A CN102457441B (en) 2012-01-16 2012-01-16 PSN (Packet Switched Network) data packet processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210013207.3A CN102457441B (en) 2012-01-16 2012-01-16 PSN (Packet Switched Network) data packet processing method and device

Publications (2)

Publication Number Publication Date
CN102457441A true CN102457441A (en) 2012-05-16
CN102457441B CN102457441B (en) 2014-06-25

Family

ID=46040126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210013207.3A Active CN102457441B (en) 2012-01-16 2012-01-16 PSN (Packet Switched Network) data packet processing method and device

Country Status (1)

Country Link
CN (1) CN102457441B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117846A (en) * 2012-12-31 2013-05-22 华为技术有限公司 Method, device and system of data transmission
CN103684689A (en) * 2013-11-29 2014-03-26 重庆西信天元数据资讯有限公司 Self-check data transmission method
CN105515868A (en) * 2015-12-12 2016-04-20 中国航空工业集团公司西安航空计算技术研究所 Configuration and storage method of AFDX data acquisition recorder
CN106209311A (en) * 2016-06-30 2016-12-07 北京大学 A kind of data processing method
CN106304127A (en) * 2015-05-13 2017-01-04 苏州简约纳电子有限公司 A kind of LTE data surface descending error-detection error-correction method
JP2021034901A (en) * 2019-08-26 2021-03-01 沖電気工業株式会社 Ip conversion system and ip conversion method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1450767A (en) * 2002-04-10 2003-10-22 深圳市中兴通讯股份有限公司 Data packet forwarding controller and method
CN101217452A (en) * 2007-01-05 2008-07-09 华为技术有限公司 A TDM operation transmission method, device and system by packet switching network
US20090116493A1 (en) * 2006-07-03 2009-05-07 Huawei Technologies Co., Ltd. Method and apparatus for ethernet to bear atm cells
CN101187896B (en) * 2007-12-14 2011-04-06 中兴通讯股份有限公司 On-spot programmable gate array data cache management method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1450767A (en) * 2002-04-10 2003-10-22 深圳市中兴通讯股份有限公司 Data packet forwarding controller and method
US20090116493A1 (en) * 2006-07-03 2009-05-07 Huawei Technologies Co., Ltd. Method and apparatus for ethernet to bear atm cells
CN101217452A (en) * 2007-01-05 2008-07-09 华为技术有限公司 A TDM operation transmission method, device and system by packet switching network
CN101187896B (en) * 2007-12-14 2011-04-06 中兴通讯股份有限公司 On-spot programmable gate array data cache management method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117846A (en) * 2012-12-31 2013-05-22 华为技术有限公司 Method, device and system of data transmission
CN103117846B (en) * 2012-12-31 2016-01-13 华为技术有限公司 The method, apparatus and system of transmission data
US9787417B2 (en) 2012-12-31 2017-10-10 Huawei Technologies Co., Ltd. Data transmission method, device, and system
CN103684689A (en) * 2013-11-29 2014-03-26 重庆西信天元数据资讯有限公司 Self-check data transmission method
CN106304127A (en) * 2015-05-13 2017-01-04 苏州简约纳电子有限公司 A kind of LTE data surface descending error-detection error-correction method
CN106304127B (en) * 2015-05-13 2019-11-01 苏州简约纳电子有限公司 A kind of LTE data surface downlink error-detection error-correction method
CN105515868A (en) * 2015-12-12 2016-04-20 中国航空工业集团公司西安航空计算技术研究所 Configuration and storage method of AFDX data acquisition recorder
CN105515868B (en) * 2015-12-12 2019-05-28 中国航空工业集团公司西安航空计算技术研究所 A kind of configuration and storage method of AFDX data acquisition instrument
CN106209311A (en) * 2016-06-30 2016-12-07 北京大学 A kind of data processing method
JP2021034901A (en) * 2019-08-26 2021-03-01 沖電気工業株式会社 Ip conversion system and ip conversion method
JP7338321B2 (en) 2019-08-26 2023-09-05 沖電気工業株式会社 IP conversion system, IP conversion method

Also Published As

Publication number Publication date
CN102457441B (en) 2014-06-25

Similar Documents

Publication Publication Date Title
CN107113236B (en) Transmitting residence time information in a network
CN102457441B (en) PSN (Packet Switched Network) data packet processing method and device
CN103299583B (en) Measure active volume and the system and method for tight link capacity in the IP path coming from single endpoint
JP4893581B2 (en) Multiplex communication system, transmission processing device, reception processing device, multiplexing communication method, transmission processing method, and reception processing method
CN111095860B (en) Method and device for clock synchronization
CN101534249B (en) Method for transmitting data on bound link and network equipment thereof
CN103825841B (en) A kind of Ethernet packet sorting method and device
CN100505897C (en) Route device, terminal equipment, communication system and routing method
CN110546926B (en) Reducing packet delay variation of time sensitive packets
EP2314022A2 (en) Establishing pseudowires in packet switching networks
US6768748B2 (en) Flexible mapping of circuits into packets
CN102137008B (en) Quality of service (QoS) keeping method, device and system
KR101337054B1 (en) Synchronizing packet sequence numbers for line card redundancy
JP2008227890A (en) Dual-configuration transmission method, transmission system, and receiving apparatus in tdm line emulation
CN102255805B (en) Message transmission method, message forwarding method and devices
CN102546112B (en) Data packaging method and device
CN102137012B (en) Method, system and equipment for ensuring TDM (Time Division Multiplexing) PWE3 (Pseudo-Wire Emulation Edge to Edge) link reliability
KR101353183B1 (en) Maintaining time-division multiplexing over pseudowire connections during network outages
CN102904660A (en) Communication apparatus, packetization period change method and program
CN101611393B (en) Performance monitoring of pseudowire emulation
US20120140776A1 (en) Communication device and communication method
CN105634988B (en) A kind of jitter cache processing method and processing device
JP6154595B2 (en) Circuit emulation system, apparatus and method
US20230388252A1 (en) Providing high assurance of end-to-end cpri circuit in a high jitter packet based fronthaul network
JP5799771B2 (en) Gateway device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant