CN110213259A - The UDP transmission method of electric power observation and control message sends terminal and receives terminal - Google Patents

The UDP transmission method of electric power observation and control message sends terminal and receives terminal Download PDF

Info

Publication number
CN110213259A
CN110213259A CN201910457784.3A CN201910457784A CN110213259A CN 110213259 A CN110213259 A CN 110213259A CN 201910457784 A CN201910457784 A CN 201910457784A CN 110213259 A CN110213259 A CN 110213259A
Authority
CN
China
Prior art keywords
verification
message
application layer
udp
error
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.)
Pending
Application number
CN201910457784.3A
Other languages
Chinese (zh)
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.)
Wuhan University WHU
Original Assignee
Wuhan University WHU
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 Wuhan University WHU filed Critical Wuhan University WHU
Priority to CN201910457784.3A priority Critical patent/CN110213259A/en
Publication of CN110213259A publication Critical patent/CN110213259A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

It the invention discloses a kind of UDP transmission method of electric power observation and control message, sends terminal and receives terminal, this method comprises: encoding according to Correction-Coding Algorithm to original application layer message, obtain error correcting code;To the set of original application layer message and error correcting code carry out verification calculate obtain verification and;UDP message is obtained after carrying out UDP encapsulation to the set of original application layer message, error correcting code and verification sum and sends UDP message, after receiving terminal reception UDP message and decapsulating, error-correcting decoding is carried out to application layer message according to correcting interpretation algorithm, and to the set of the application layer message obtained after decoding and error correcting code calculate verification and, if the verification that verification obtains after calculating and the application layer message with the verification obtained after decapsulation and unanimously, after submitting error-correcting decoding.This method can effectively guarantee the reliability of the message of UDP transmission, and the real-time for ensureing most electric power wide area protection business is remained in network congestion.

Description

The UDP transmission method of electric power observation and control message sends terminal and receives terminal
Technical field
The invention belongs to the electric power Wide area protection system communications fields, and in particular to a kind of UDP transmission of electric power observation and control message Method sends terminal and receives terminal.
Background technique
Power grid mostly uses greatly point-to-point information transmission mode at present, and this transmission mode investment is big, does not adapt to advise greatly The wide area protection of mould and the application demand of control.The Wide-area Measurement Information of interconnected network is realized using the switching network based on ICP/IP protocol Exchange is the inevitable development trend of the following electric network protection and control.Wide area protection and the communication range of control system are wide, communicate away from From length, a possibility that communication network is under attack, is big.TCP is provided reliably with Retransmission timeout mechanism for application program by confirmation Transmission service, but will lead to increasing considerably for message time delay in network congestion.UDP does not have congestion control mechanism, in network Transmission rate will not be reduced when congestion, propagation delay time will not significantly increase, but it does not have guaranteed reliability's mechanism.
Traditional research about electric power Wide area protection system real-time communication and reliability guarantee method, mainly using excellent Change network topology structure, the traffic engineering based on MPLS and routing optimality, calculated for service with different priority levels optimization queue scheduling The methods of method, service quality guarantee based on DiffServ model.
Current transmission method, since transport layer still uses Transmission Control Protocol, these methods not can solve same data flow Congestion and error retransmit bring delay problem on path.
Summary of the invention
To solve the above problems, the embodiment of the present invention provides a kind of UDP transmission method of electric power observation and control message, sends terminal And receive terminal.
In a first aspect, the embodiment of the present invention provides a kind of UDP transmission method of electric power observation and control message, comprising: according to error correction Encryption algorithm encodes original application layer message, obtains error correcting code;To the collection of original application layer message and the error correcting code Conjunction carry out verification calculate obtain verification and;UDP encapsulation is carried out to the set of original application layer message, error correcting code and verification sum, Packaged UDP message disable itself verification and, and to obtained UDP message according to preset times repeat send the UDP message, After receiving the terminal reception UDP message and decapsulating, application layer message is carried out according to corresponding correcting interpretation algorithm Error-correcting decoding, and to the set of the application layer message obtained after decoding and error correcting code calculate verification and, if verification calculate after obtain Verification and with the verification obtained after decapsulation and consistent, then application layer message after submitting error-correcting decoding.
Second aspect, the embodiment of the present invention provide a kind of UDP transmission method of electric power observation and control message, comprising: receive and send The UDP message of terminal sending is simultaneously decapsulated, the set of be applied a layer message, error correcting code and verification sum;According to error correction Decoding algorithm carries out error-correcting decoding to the application layer message after decapsulation, to the application layer message and error correcting code obtained after decoding Gather calculating verification and if verifying the verification obtained after calculating and with the verification obtained after decapsulation and unanimously, then submits error correction Otherwise application layer message after decoding abandons application layer message;Wherein, the UDP message is to send terminal according to entangling accordingly Miscoding algorithm encodes original application layer message, after obtaining error correcting code, to the collection of original application layer message and error correcting code Conjunction carry out verification calculate obtain verification and, and to the set of original application layer message, error correcting code and verification sum carry out UDP encapsulation It obtains afterwards.
The third aspect, the embodiment of the present invention provide a kind of transmission terminal, comprising: first processing module, for according to error correction Encryption algorithm encodes original application layer message, obtains error correcting code;Second processing module, for original application layer message With the set of the error correcting code carry out verification calculate obtain verification and;Sending module, for original application layer message, error correcting code And the set of verification sum carry out UDP encapsulation after obtain UDP message, when the UDP is encapsulated disabling UDP itself verification and, and root It repeats to send the UDP message according to preset times, after receiving the terminal reception UDP message and decapsulating, according to corresponding Correcting interpretation algorithm error-correcting decoding is carried out to application layer message, and to the collection of the application layer message obtained after decoding and error correcting code Add up to calculation verification and if verifying the verification obtained after calculating and with the verification obtained after decapsulation and unanimously, then submits error correction to translate Application layer message after code.
Fourth aspect, the embodiment of the present invention provide a kind of reception terminal, comprising: receiving module sends terminal for receiving The UDP message of sending is simultaneously decapsulated, the set of be applied a layer message, error correcting code and verification sum;Processing module is used for Error-correcting decoding is carried out to the application layer message after decapsulation according to correcting interpretation algorithm, to the application layer message that is obtained after decoding and The set of error correcting code calculate verification and, if verification that verification obtains after calculating and with the verification obtained after decapsulation and unanimously, then Otherwise application layer message after submitting error-correcting decoding abandons application layer message;Wherein, the UDP message be send terminal according to Corresponding Correction-Coding Algorithm encodes original application layer message, after obtaining error correcting code, to original application layer message and entangles The set of error code carry out verification calculate obtain verification and, and to the set of original application layer message, error correcting code and verification sum into It is obtained after row UDP encapsulation.
The invention has the following advantages: a kind of UDP transmission method of electric power observation and control message provided by the invention, transmission Terminal and reception terminal, obtain after carrying out UDP encapsulation by the set to original application layer message, error correcting code and verification sum UDP message, and UDP message is sent, after receiving the terminal reception UDP message and decapsulating, according to correcting interpretation algorithm Error-correcting decoding is carried out to application layer message, to realize the correction to channel random error.In addition, by obtaining after decoding The set of application layer message and error correcting code calculates verification and can effectively ensure that the accuracy of the message of UDP transmission, pass through biography Defeated layer remains to ensure in network congestion the real-time of most electric power wide area protection business using udp protocol.
Detailed description of the invention
Below in conjunction with drawings and the embodiments, the invention will be further described, in attached drawing:
Fig. 1 is a kind of UDP transmission method flow chart of electric power observation and control message provided in an embodiment of the present invention;
Fig. 2 be another embodiment of the present invention provides a kind of electric power observation and control message UDP transmission method flow chart;
Fig. 3 is a kind of UDP transmission method flow chart for electric power observation and control message that further embodiment of this invention provides;
Fig. 4 is a kind of UDP transmission method flow chart for electric power observation and control message that a further embodiment of the present invention provides;
Fig. 5 is transmission terminal structure figure provided in an embodiment of the present invention;
Fig. 6 is reception terminal structure figure provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
So far, although much researchs are proposed for guaranteed reliability's problem of communication service when being transmitted using UDP Solution, but error correction, error detection and retransmission mechanism are not combined and are used for actual communication.
The present invention provides a kind of UDP transmission method of electric power observation and control message, and this method can be applied to above-mentioned electric power wide area and protect The communication scenes of protecting system and other corresponding UDP transmitting scenes.The corresponding executing subject of this method can be whole to send End, or receive terminal, the present invention is not especially limit this.For ease of description, the embodiment of the present invention is first Afterwards by taking executing subject is to send terminal and receive terminal as an example, the UDP of electric power observation and control message provided in an embodiment of the present invention is passed Transmission method is illustrated.Wherein, the transmission terminal in the embodiment of the present invention, reception terminal can be according to different application scenarios Different equipment.
Fig. 1 is a kind of UDP transmission method flow chart of electric power observation and control message provided in an embodiment of the present invention, as shown in Figure 1, The embodiment of the present invention provides a kind of UDP transmission method of electric power observation and control message, to send terminal as executing subject, this method packet It includes:
S101, original application layer message is encoded according to Correction-Coding Algorithm, obtains error correcting code;
In S101, original application layer message μ, general μ is less than or equal to 1400bytes, according to Correction-Coding Algorithm to report Literary μ is encoded, and error correcting code δ is obtained.
S102, to the set of original application layer message and the error correcting code carry out verification calculate verified and;
In S102, verification is calculated to the set (μ, δ) of original application layer message and error correcting code and obtains verification and ρ.
S103, UDP message is obtained after carrying out UDP encapsulation to the set of original application layer message, error correcting code and verification sum, And the UDP message is sent, after receiving the terminal reception UDP message and decapsulating: corresponding according to correcting interpretation algorithm Carry out error-correcting decoding with layer message, to the set of the application layer message obtained after decoding and error correcting code calculate verification and, if verification The verification that obtains after calculating and with the verification obtained after decapsulation and consistent, then application layer message after submitting error-correcting decoding is no Then abandon application layer message.
In S103, UDP encapsulation, envelope are carried out to the set (μ, δ, ρ) of original application layer message, error correcting code and verification sum UDP message X is obtained after dress, and UDP message X is sent to reception terminal by network and is received, and obtains application layer message.
Message is decapsulated, (μ ', δ ', ρ ') is obtained after reception terminal receives UDP message X in the other side.Its In, μ ', δ ', ρ ' be respectively receive terminal the application layer message, error correcting code and the verification that receive and.Receive terminal according to transmission The corresponding correcting interpretation algorithm of terminal carries out error-correcting decoding to (μ ', δ '), obtains (μ ", δ ').Wherein, μ " is the application after error correction Layer message.Verification is calculated to (μ ", δ ') and verification and ρ " are obtained, if after the verification and ρ " and decapsulation that obtain after verification calculating Obtained verification is consistent with ρ ', then it is assumed that the application layer message after error correction is correctly, by the application layer message after error-correcting decoding μ " is committed to application layer.
The embodiment of the present invention is not especially limited the type of Correction-Coding Algorithm and correcting interpretation algorithm, including but unlimited In BCH encoding and decoding algorithm and LDPC encoding and decoding algorithm.
The UDP transmission method of the electric power observation and control message of the embodiment of the present invention, by original application layer message, error correcting code with And UDP message is obtained after the set progress UDP encapsulation of verification sum, and send UDP message, the UDP is received for receiving terminal After message and decapsulation, error-correcting decoding is carried out to application layer message according to correcting interpretation algorithm, to realize to channel with chance error The correction of code.In addition, by set to the application layer message obtained after decoding and error correcting code calculate verification and, can be effective The accuracy for guaranteeing the message of UDP transmission remains to ensure most electricity in network congestion using udp protocol by transport layer The real-time of power wide area protection business.
On the basis of the above embodiments, as a kind of alternative embodiment, in S103, UDP message is sent, comprising: by pre- If number repeats to send the UDP message;Correspondingly, it after for receiving the terminal reception UDP message and decapsulating, also wraps It includes:
After if verification calculates obtained verification and with the verification that is obtained after decapsulation and inconsistent, then abandon currently received UDP message waits next UDP message to be received, and execute above-mentioned error-correcting decoding, calculate verification and and verification and consistency test The process of card, until verification calculate after obtained verification and with the verification obtained after decapsulation and consistent, submit verify with it is consistent And the application layer message after error-correcting decoding.Duplicate application layer message determines how to handle by power business application program.
In the specific implementation process, it is contemplated that when application layer message transmissions mistake is greater than error correcting capability, verification obtains after calculating To verification and ρ " and decapsulation after obtained verification and ρ ' will be inconsistent, the application layer message and original application layer received at this time Message is inconsistent.In embodiments of the present invention, terminal is sent for the message X after encapsulation, repeats to send according to preset times.It examines Consider computing cost, can use transmission times is 3 times.
For receiving terminal, if the verification and ρ ' that obtain after verification and ρ " and decapsulation that verification obtains after calculating are consistent, The application layer message μ " after error-correcting decoding is then committed to application program, duplicate application layer message is by power business application program Determine how to handle.If the verification and ρ ' that obtain after verification and ρ " and decapsulation that verification obtains after calculating are inconsistent, then abandon Currently available application layer message μ ".To the next UDP message received carry out above-mentioned error-correcting decoding, calculate verification and and The process of verification and consistency checking, until the verification obtained after verification and ρ " and decapsulation that verification obtains after calculating and ρ ' one It causes.After the application layer message in UDP message received at this time is corrected, be it is consistent with original application layer message, error correction is translated Application layer message μ " after code is committed to application program, and such as where determined by power business application program for duplicate application layer message Reason.
The UDP transmission method of the electric power observation and control message of the embodiment of the present invention is repeated to send out by sending terminal by preset times Send UDP message, if receive obtained verification after terminal verification calculates and with the verification that is obtained after decapsulation and inconsistent, abandon Currently received UDP message waits next UDP message to be received, and executes above-mentioned error-correcting decoding, calculates verification and and verification With the process of consistency checking, until verification calculate after obtained verification and with the verification obtained after decapsulation and unanimously, thus Correct application layer message can be obtained, repeats to send UDP message by pressing preset times, further ensures to receive to exceed and entangle When miscounting the error burst error message of method ability, reception can be repeated several times, until receiving correct message, improve transmission The reliability of process.
On the basis of the above embodiments, as a kind of alternative embodiment, above-mentioned Correction-Coding Algorithm is BCH Error Correction of Coding Algorithm, above-mentioned correcting interpretation algorithm are BCH correcting interpretation algorithm, and correspondingly, S101 includes: according to original application layer message length With preset group technology, the packet count M of the BCH Error Correction of Coding and code length n of each grouping, information word length k are determined;Root According to the code length n, the information word length k, the generator matrix G of BCH Error Correction of Coding is determined, and according to GHT=0 is verified Matrix H;According to HCn T=0 obtains verification variable matrix Cr, CrMiddle element is error correcting code;Wherein, Cn TIt is constituted for information word and verification member Matrix.
Original application layer message μ, if message length is L byte, the packet count and error correcting capability of message are according to original application Layer message length L is determined.Specifically, a group technology can be preset according to demand, and the group technology is according to Bose-Chaudhuri-Hocquenghem Code rule It determines.The embodiment of the present invention determines point of BCH Error Correction of Coding to according to original application layer message length and preset group technology Group number M and code length n, the information word length k of each grouping and the method for error correcting capability are not especially limited, including but unlimited It is determined according to table 1.Referring to table 1, packet count N, every group of code length is n, and information word length is k, and every group of error correcting capability is to entangle Misplace number.Data D=[d1,d2,...,dN], wherein each group information member diFor the matrix of 1 × k:
di=(dij) (j=1,2 ..., k)
Wherein, dij=0 or 1.
Table 1
There are following theorems for BCH code: to any positive integer m and t, certainly exist a binary BCH codes, it with β, β2... β2t-1For root, code length n=2m- 1 or 2m- 1 factor, can correct t random error, and verification bits number is at most Mt.
According to above-mentioned theorem, the code length n of primitive BCH code is necessary for 2m- 1 (m is positive integer).Therefore, for the letter of k bit Breath member, k < 2m- 1, if expectation error correcting capability is t, verify first length r=mt.Enable k '=(2m- 1)-r, if k ' > k, needs To initial data diZero padding is carried out, the length of zero padding is k "=k '-k, then data D '=[d ' after zero padding1,d′2,...,d′N], Each group information member d 'iFor the matrix of 1 × k ':
d′i=(d 'ij) (j=1,2 ..., k ')
Wherein
For (n, k) block code, generator polynomial
G (x)=g0+xg1+x2g2+…xn-k-1gn-k-1+xn-kgn-k
It can be by xn- 1 factorization obtains, i.e. xn- 1=g (x) h (x), then generator matrix G:
For primitive BCH code, there is GHT=0.It is hereby achieved that check matrix H:
The HC known to the property of primitive BCH coden T=0, it may be assumed that
Due to information word cn-1~cn-kIt is known that the verification member c being then addedn-k-1~c0It can be obtained by above-mentioned formula.I.e.
Verify member cn-k-1~c0The verification variable matrix C of compositionrAs error correcting code δ.
In S103, UDP report is obtained after carrying out UDP encapsulation to the set of original application layer message, error correcting code and verification sum Text, comprising: correspondingly, the error detection range for verifying calculating is information word and error correcting code.If the error detection coding algorithm that verification calculates is F, the error-detecging code coding of transmitting terminal are as follows:
Cs=f (Ck,Cr)
Wherein, CkFor transmitting terminal information word μ, CrFor transmitting terminal error correcting code δ.Obtained transmitting terminal error-detecging code CsAs verify And ρ.
On the basis of the above embodiments, as a kind of alternative embodiment, in S103, to original application layer message, error correction The set of code and verification sum obtains UDP message after carrying out UDP encapsulation, comprising: to original application layer message, error correcting code and school The set for testing sum carries out UDP encapsulation, and disabling UDP itself is verified and obtained UDP message when the UDP is encapsulated.By disabling UDP Itself verification and, avoid error message receiving end udp protocol abandon, while reduce UDP calculate verification sum time overhead, To reduce overall latency.
Fig. 2 be another embodiment of the present invention provides a kind of electric power observation and control message UDP transmission method flow chart, such as Fig. 2 Shown, the embodiment of the present invention provides a kind of UDP transmission method of electric power observation and control message, to receive terminal as executing subject, the party Method includes:
S201, receive send terminal issue UDP message simultaneously decapsulated, layer message that be applied, error correcting code and Verify the set of sum;
S202, according to correcting interpretation algorithm, using the error correcting code obtained after decapsulation to the application layer obtained after decapsulation Message carries out error-correcting decoding, and the set of the application layer message obtained after decoding and error correcting code is calculated verification and calculated if verifying The verification obtained afterwards and the application layer message with the verification obtained after decapsulation and unanimously, then after submitting error-correcting decoding;
Wherein, the UDP message is to send terminal to carry out original application layer message according to corresponding Correction-Coding Algorithm Coding, after obtaining error correcting code, to the set of original application layer message and error correcting code carry out verification calculate obtain verification and, and to original It is obtained after the set progress UDP encapsulation of beginning application layer message, error correcting code and verification sum.
Specific implementation process refers to the embodiment of above-mentioned transmission terminal.
On the basis of the above embodiments, as a kind of alternative embodiment, if verification that verification obtains after calculating and with solution The verification that obtains after encapsulation and inconsistent, then receive terminal and abandon the UDP message, i.e., reception terminal abandons verification and inconsistent UDP message.In the present embodiment, the error burst error message for exceeding error correction algorithm ability is abandoned by error-detection mechanism, is ensured Give the correctness of application layer data.
On the basis of the above embodiments, as a kind of alternative embodiment, above-mentioned Correction-Coding Algorithm is BCH Error Correction of Coding Algorithm, above-mentioned correcting interpretation algorithm are BCH correcting interpretation algorithm, correspondingly, in S202, according to basis BCH correcting interpretation algorithm, The error correcting code being honored as a queen using solution carries out error-correcting decoding to the application layer message after decapsulation, includes: according to after decapsulation The code word matrix that the set (μ ', δ ') and preset group technology of application layer message and error correcting code are grouped and obtain after zero padding ci, and according to the code length n of each grouping and information word length k, determine check matrix H;Calculating matrix ciAdjoint matrix S= ci·HT, according to S=eiHT, Error Matrix can be obtainedAccording toApplication layer message μ " after being decoded.
Specifically, a group technology can be preset according to demand, which determines according to Bose-Chaudhuri-Hocquenghem Code rule.
If the information that receiving end receives is matrixWherein D "=[d "1,d″2,...,d″N], often One group information member d "iFor the matrix of 1 × k:
d″i=(d "ij) (j=1,2 ..., k)
And by d "iEach group arrive the position k ' together with spot patch, obtain every group information matrix d " before the decoding of corresponding groupiFor 1 × k ' Matrix:
d″′i=(d " 'ij) (j=1,2 ..., k ')
Wherein,
The code word matrix of receiving end isciFor the matrix of 1 × n.
Check matrix H is calculated according to code length n and information word length k.
Calculating matrix ciAdjoint matrix S=ci·HT
Due to S=ci·HT=(c 'i+ei)HT=eiHT, can estimate Error Matrix
The estimation code word of decoder outputIt takesPreceding k, be denoted asArranged in sequence is to get to correctly Data
Correspondingly, verification is calculated to (μ ", δ ') and the concrete methods of realizing for obtaining ρ " is as follows:
Error detection range is information word and error correcting code.Error detection coding algorithm is f, and the error-detecging code of receiving end is decoded as
CR=fT(Ck′,Cr′)
Wherein, Ck' for decoding after information word μ ", Cr' for decoding after error correcting code δ '.Obtained receiving end error-detecging code CR As verification and ρ ".
Based on the above embodiment, error detection is carried out using with TCP check and identical algorithm in the embodiment of the present invention.Then error detection The length of code is 2 bytes, hardly increase transmission delay.Simultaneously as TCP check and calculating simple, processing delay can also be with It ignores.
Based on the content of above-mentioned each method embodiment, as shown in figure 3, further embodiment of this invention provides a kind of electric power observation and control The UDP transmission method of message, this method to send terminal as executing subject, specific embodiment referring to Fig. 3 and above-described embodiment, Details are not described herein again.
Based on the content of above-mentioned each method embodiment, as shown in figure 4, a further embodiment of the present invention provides a kind of electric power observation and control The UDP transmission method of message, this method to receive terminal as executing subject, specific embodiment referring to fig. 4 and above-described embodiment, Details are not described herein again.
Based on the identical inventive concept of above method embodiment, the embodiment of the present invention provides a kind of transmission terminal.Fig. 5 is this The transmission terminal structure figure that inventive embodiments provide, as shown in figure 5, the transmission terminal includes at first processing module 401, second Manage module 402 and sending module 403.Wherein, first processing module 401 is used for according to Correction-Coding Algorithm to original application layer Message is encoded, and error correcting code is obtained;Second processing module 402 is used for the set to original application layer message and the error correcting code Carry out verification calculate obtain verification and;Sending module 403 is used for the set to original application layer message, error correcting code and verification sum UDP message is obtained after carrying out UDP encapsulation, and sends the UDP message, for receiving the terminal reception UDP message and unsealing After dress, error-correcting decoding is carried out to application layer message according to corresponding correcting interpretation algorithm, and to the application layer report obtained after decoding The set of text and error correcting code calculate verification and, if verification calculate after obtained verification and with the verification obtained after decapsulation and one It causes, then the application layer message after submitting error-correcting decoding.
In addition, the embodiment of the present invention provides a kind of reception terminal.Fig. 6 is reception terminal structure provided in an embodiment of the present invention Figure, as shown in fig. 6, the reception terminal includes receiving module 501 and processing module 502.Wherein, receiving module 501 is for connecing It transmits and receives the UDP message of terminal sending and is decapsulated, the set of be applied a layer message, error correcting code and verification sum;Place It manages module 502 to be used to carry out error-correcting decoding to the application layer message after decapsulation according to correcting interpretation algorithm, to obtaining after decoding Application layer message and error correcting code set calculate verification and, if verification calculate after obtained verification and with obtained after decapsulation It verifies and consistent, then after submitting error-correcting decoding application layer message;Wherein, the UDP message is to send terminal according to corresponding Correction-Coding Algorithm encodes original application layer message, after obtaining error correcting code, to original application layer message and error correcting code Set carry out verification calculate obtain verification and, and to the set of original application layer message, error correcting code and verification sum carry out UDP envelope It is obtained after dress.
The particular content of terminal embodiment of the present invention please participate in above-mentioned each method embodiment, not repeat herein.
In several embodiments provided herein, it should be understood that disclosed terminal and method can pass through it Its mode is realized.For example, terminal embodiment described above is only schematical, for example, the division of module, only A kind of logical function partition, there may be another division manner in actual implementation.In addition, shown or discussed mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of terminal or unit, It can be electricity, mechanical or other form connections.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can select some or all of unit therein according to the actual needs to realize the mesh of the embodiment of the present invention 's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit It is that modules physically exist alone, is also possible to two or more modules and is integrated in one unit.It is above-mentioned integrated Module both can take the form of hardware realization, can also realize in the form of software functional units.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can be with It is realized with hardware realization or firmware realization or their combination mode.It when implemented in software, can be by above-mentioned function Storage in computer-readable medium or as on computer-readable medium one or more instructions or code transmitted.Meter Calculation machine readable medium includes computer storage media and communication media, and wherein communication media includes convenient for from a place to another Any medium of a place transmission computer program.Storage medium can be any usable medium that computer can access.With For this but be not limited to: computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disc storages, disk Storage medium or other magnetic storage apparatus or can be used in carry or store have instruction or data structure form expectation Program code and can be by any other medium of computer access.
In addition, any connection appropriate can become computer-readable medium.For example, if software is using coaxial electrical The wireless technology of cable, optical fiber cable, twisted pair, Digital Subscriber Line (DSL) or such as infrared ray, radio and microwave etc from Website, server so coaxial cable that perhaps other remote sources are transmitted, optical fiber cable, twisted pair, DSL or such as infrared The wireless technology of line, wireless and microwave etc includes in the fixing of affiliated medium.As used in the present invention, disk (Disk) and Dish (disc) includes compression optical disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk and Blu-ray Disc, which disk Usually magnetic replicate data, and dish is then with laser come optical replicate data.Combination above should also be as being included in computer Within the protection scope of readable medium.
The foregoing is merely the preferred embodiments of technical solution of the present invention, are not intended to limit protection model of the invention It encloses.All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in the present invention Protection scope within.

Claims (9)

1. a kind of UDP transmission method of electric power observation and control message, which comprises the following steps:
S101, original application layer message is encoded according to Correction-Coding Algorithm, obtains error correcting code;
S102, to the set of original application layer message and the error correcting code carry out verification calculate verified and;
S103, UDP message is obtained after carrying out UDP encapsulation to the set of original application layer message, error correcting code and verification sum, concurrently The UDP message is sent, after receiving the terminal reception UDP message and decapsulating, according to corresponding correcting interpretation algorithm pair Application layer message carry out error-correcting decoding, and to the set of the application layer message obtained after decoding and error correcting code calculate verification and, if The verification that verification obtains after calculating and the application layer report with the verification obtained after decapsulation and unanimously, then after submitting error-correcting decoding Text.
2. a kind of UDP transmission method of electric power observation and control message according to claim 1, which is characterized in that in S103, send The UDP message, comprising:
It repeats to send the UDP message by preset times;
Correspondingly, after for receiving the terminal reception UDP message and decapsulating, further includes:
After if verification calculates obtained verification and with the verification that is obtained after decapsulation and inconsistent, then abandon currently received UDP Message receives next UDP message, and execute above-mentioned error-correcting decoding, calculate verification and and verification and consistency checking mistake Journey submits verification and consistent and error correction until verifying the verification obtained after calculating and with the verification obtained after decapsulation and unanimously Application layer message after decoding.
3. a kind of UDP transmission method of electric power observation and control message according to claim 1, which is characterized in that the error correction is compiled Code algorithm is BCH Correction-Coding Algorithm, and the correcting interpretation algorithm is BCH correcting interpretation algorithm, correspondingly, the S101 packet It includes:
According to original application layer message length and preset group technology determine BCH Error Correction of Coding packet count M and each point Code length n, the information word length k of group;
According to the code length n, the information word length k, the generator matrix G of BCH Error Correction of Coding is determined, and according to GHT=0 obtains Obtain check matrix H;
According to HCn T=0 obtains verification variable matrix Cr, CrMiddle element is error correcting code;
Wherein, Cn TThe matrix constituted for information word and verification member.
4. a kind of UDP transmission method of electric power observation and control message according to claim 1, which is characterized in that in S103, to original The set of beginning application layer message, error correcting code and verification sum obtains UDP message after carrying out UDP encapsulation, comprising:
UDP encapsulation is carried out to the set of original application layer message, error correcting code and verification sum, and disables UDP verification and obtains UDP message.
5. a kind of UDP transmission method of electric power observation and control message, which comprises the following steps:
S201, it receives the UDP message for sending terminal sending and is decapsulated, be applied a layer message, error correcting code and verification The set of sum;
S202, according to correcting interpretation algorithm, using the error correcting code obtained after decapsulation to the application layer message obtained after decapsulation Carry out error-correcting decoding, to the set of the application layer message obtained after decoding and error correcting code calculate verification and, if verification calculate after To verification and with the verification obtained after decapsulation and consistent, then application layer message after submitting error-correcting decoding;
Wherein, the UDP message is to send terminal to encode original application layer message according to corresponding Correction-Coding Algorithm, After obtaining error correcting code, to the set of original application layer message and error correcting code carry out verification calculate obtain verification and, and answer original It is obtained after carrying out UDP encapsulation with the set of layer message, error correcting code and verification sum.
6. a kind of UDP transmission method of electric power observation and control message according to claim 5, which is characterized in that if verification calculates The verification that obtains afterwards and with the verification that is obtained after decapsulation and inconsistent, then abandon the UDP message.
7. a kind of UDP transmission method of electric power observation and control message according to claim 5, which is characterized in that the error correction is compiled Code algorithm is BCH Correction-Coding Algorithm, and the correcting interpretation algorithm is BCH correcting interpretation algorithm, correspondingly, in S202, according to Correcting interpretation algorithm carries out error-correcting decoding to the application layer message after decapsulation, includes:
It is grouped and mends according to the set (μ ', δ ') and preset group technology of the application layer message after decapsulation and error correcting code Code word matrix c is obtained after zeroi, and according to the code length n of each grouping and information word length k, determine check matrix H;
Calculating matrix ciAdjoint matrix S=ci·HT, according to S=eiHT, Error Matrix can be obtained
According toApplication layer message μ " after being decoded.
8. a kind of transmission terminal characterized by comprising
First processing module obtains error correcting code for encoding according to Correction-Coding Algorithm to original application layer message;
Second processing module carries out verification calculating for the set to original application layer message and the error correcting code and is verified With;
Sending module obtains UDP after carrying out UDP encapsulation for the set to original application layer message, error correcting code and verification sum Message, and the UDP message is sent, after receiving the terminal reception UDP message and decapsulating, according to correcting interpretation algorithm To application layer message carry out error-correcting decoding, and to the set of the application layer message obtained after decoding and error correcting code calculate verification and, If the verification that verification obtains after calculating and the application layer report with the verification obtained after decapsulation and unanimously, then after submitting error-correcting decoding Text.
9. a kind of reception terminal characterized by comprising
Receiving module, for receiving the UDP message of transmission terminal sending and being decapsulated, be applied a layer message, error correcting code And the set of verification sum;
Processing module, for carrying out error-correcting decoding to the application layer message after decapsulation according to correcting interpretation algorithm, after decoding The set of obtained application layer message and error correcting code calculate verification and, if verification calculate after obtained verification and with after decapsulation The verification arrived and consistent, then after submitting error-correcting decoding application layer message;
Wherein, the UDP message is to send terminal to encode original application layer message according to Correction-Coding Algorithm, is entangled After error code, to the set of original application layer message and error correcting code carry out verification calculate obtain verification and, and to original application layer report It is obtained after the set progress UDP encapsulation of text, error correcting code and verification sum.
CN201910457784.3A 2019-05-29 2019-05-29 The UDP transmission method of electric power observation and control message sends terminal and receives terminal Pending CN110213259A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910457784.3A CN110213259A (en) 2019-05-29 2019-05-29 The UDP transmission method of electric power observation and control message sends terminal and receives terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910457784.3A CN110213259A (en) 2019-05-29 2019-05-29 The UDP transmission method of electric power observation and control message sends terminal and receives terminal

Publications (1)

Publication Number Publication Date
CN110213259A true CN110213259A (en) 2019-09-06

Family

ID=67789281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910457784.3A Pending CN110213259A (en) 2019-05-29 2019-05-29 The UDP transmission method of electric power observation and control message sends terminal and receives terminal

Country Status (1)

Country Link
CN (1) CN110213259A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360314A (en) * 2020-03-02 2021-09-07 芯原微电子(成都)有限公司 Data processing method, system, equipment and computer readable storage medium
CN114884625A (en) * 2022-07-08 2022-08-09 浙江口碑网络技术有限公司 Data packet error correction method and device and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100095193A1 (en) * 2008-10-15 2010-04-15 Nokia Corporation System and Method for Pre-calculating Checksums
CN102594506A (en) * 2011-11-28 2012-07-18 中兴通讯股份有限公司 Processing method and device of overlapped coding sequences based on code structure
CN105141626A (en) * 2015-09-17 2015-12-09 上海赛为信息技术有限公司 Optimized SPICE WAN system and method
CN106656422A (en) * 2017-01-03 2017-05-10 珠海全志科技股份有限公司 Streaming media transmission method capable of dynamically regulating redundancy of FEC (Forward Error Correction)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100095193A1 (en) * 2008-10-15 2010-04-15 Nokia Corporation System and Method for Pre-calculating Checksums
CN102594506A (en) * 2011-11-28 2012-07-18 中兴通讯股份有限公司 Processing method and device of overlapped coding sequences based on code structure
CN105141626A (en) * 2015-09-17 2015-12-09 上海赛为信息技术有限公司 Optimized SPICE WAN system and method
CN106656422A (en) * 2017-01-03 2017-05-10 珠海全志科技股份有限公司 Streaming media transmission method capable of dynamically regulating redundancy of FEC (Forward Error Correction)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
何润岸: "基于UDP进行大规模数据传输的可靠传输系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
方霖: "DVB_S2中BCH码编译码器设计与实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360314A (en) * 2020-03-02 2021-09-07 芯原微电子(成都)有限公司 Data processing method, system, equipment and computer readable storage medium
CN113360314B (en) * 2020-03-02 2023-07-18 芯原微电子(成都)有限公司 Data processing method, system, equipment and computer readable storage medium
CN114884625A (en) * 2022-07-08 2022-08-09 浙江口碑网络技术有限公司 Data packet error correction method and device and computer equipment

Similar Documents

Publication Publication Date Title
US6516435B1 (en) Code transmission scheme for communication system using error correcting codes
CN101432969B (en) Forward error-correcting (FEC) coding and streaming
KR101532849B1 (en) Universal file delivery methods for providing unequal error protection and bundled file delivery services
Shi et al. Integration of Reed-Solomon codes to licklider transmission protocol (LTP) for space DTN
CN105306165A (en) Data transmission method and device
TW200849877A (en) A method to support forward error correction for real-time audio and video data over internet protocol networks
CN110943800A (en) Method, device and system for sending data packet, storage medium and electronic device
CN102783074A (en) Application layer FEC framework for WIGIG
CN109905205B (en) Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system
Huang et al. Just FUN: A joint fountain coding and network coding approach to loss-tolerant information spreading
CN109714325A (en) A kind of one-way optical gate data transmission method, system, electronic equipment and medium
CN109547467A (en) Media data error correction transmission and error correction method, device, equipment and storage medium
CN104503801B (en) Software upgrade instruction distribution method, the communication server and terminal device
CN105471545A (en) Data packet processing method and device
TWI757609B (en) Transmission apparatus and method, receiving apparatus and method for use in communication
CN101800757A (en) No-feedback one-way data transmission method based on single fiber structure
CN113541856A (en) Data recovery method and device
US8787210B2 (en) Firmware download with adaptive lost packet recovery
CN110213259A (en) The UDP transmission method of electric power observation and control message sends terminal and receives terminal
CN108632896A (en) A kind of data transmission method and relevant device
CN103607264A (en) 3G network-based in-band data transmission method
CN113783662A (en) Adaptive data transmission method and device, computer equipment and readable storage medium
Alessi et al. Packet layer erasure coding in interplanetary links: The LTP erasure coding link service adapter
CN107209713B (en) Method and system for on-demand file repair
CN106063190B (en) A kind of method, relevant apparatus and the system of file reparation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190906

RJ01 Rejection of invention patent application after publication