CN103051530A - Method for optimizing multiple-network-interface transmission of message of intelligent substation - Google Patents

Method for optimizing multiple-network-interface transmission of message of intelligent substation Download PDF

Info

Publication number
CN103051530A
CN103051530A CN2012105741006A CN201210574100A CN103051530A CN 103051530 A CN103051530 A CN 103051530A CN 2012105741006 A CN2012105741006 A CN 2012105741006A CN 201210574100 A CN201210574100 A CN 201210574100A CN 103051530 A CN103051530 A CN 103051530A
Authority
CN
China
Prior art keywords
mac
message
data
fpga
cpu
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
CN2012105741006A
Other languages
Chinese (zh)
Other versions
CN103051530B (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.)
Beijing Sifang Automation Co Ltd
Beijing Sifang Engineering Co Ltd
Original Assignee
Beijing Sifang Automation 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 Beijing Sifang Automation Co Ltd filed Critical Beijing Sifang Automation Co Ltd
Priority to CN201210574100.6A priority Critical patent/CN103051530B/en
Publication of CN103051530A publication Critical patent/CN103051530A/en
Application granted granted Critical
Publication of CN103051530B publication Critical patent/CN103051530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a method for optimizing multiple-network-interface transmission of a message of an intelligent substation. The method comprises the following steps: configuring a source MAC (media access control) address of each network interface to an FPGA (field programmable gate array) and preparing to transmit an Ethernet message which is a multi-packet message, wherein each packet of the message comprises a message packet head, message data and a message packet tail; generating an MAC effective zone bit by a CPU (central processing unit); transmitting the MAC effective zone bit, the message head, the message data and the message packet tail to the FPGA sequentially; unpacking the packet message by the FPGA; transmitting the message data of the MAC effective label to an MAC source address processing module of a corresponding MAC according to the analyzed MAC effect zone bit; and after inserting an source MAC address of the MAC in the message data to be transmitted through the MAC source address processing module, transmitting by the FPGA. The method for optimizing the multiple-network-interface transmission of the message of the intelligent substation, disclosed by the invention, has the advantages of improving the transmission efficiency of an interface, reducing the development difficulty of the CPU and reducing the received data quantity of the PFGA.

Description

A kind of Multi-netmouth for the intelligent substation message sends optimization method
Technical field
The invention belongs to technical field of power systems, relate to a kind of intelligent terminal, specially refer to the terminal equipment of intelligent substation.
Background technology
Along with development and the progress of transformer station's technology, more and more coming into one's own of intelligent substation progressively becoming the main flow direction of technical development at present.Wherein the web development speed of the digitlization of the primary equipment of transformer station and secondary device is very fast, and these all are the technological innovations that the application of digitizing technique brings.Digitizing technique can be with the employing Data Digital of process layer, information digitalization that transmits between the equipment etc., and these digitlizations improve monitoring and the management that is conducive to equipment state and network state in the intelligent substation, have promoted the reliability of substation equipment.
In intelligent substation, some digital device need to be managed a plurality of network interfaces simultaneously because design requirement, Digital Master Unit for example, and relaying protection computing equipment etc., its structure generally adopts more common CPU and FPGA architecture design as shown in Figure 1.In this equipment, CPU often sends form as shown in Figure 2 for the Ethernet message that different physical internet ports send.CPU need to wrap at each respectively and treat that an initial data front adds ethernet packet header, and the back adds the information such as Ethernet bag tail and verification, forms the complete message that meets Ethernet protocol.And for the message of different network interfaces, the packet header that CPU adds and bag tail also are different.Then, according to the communication protocol between FPGA and the CPU, by data/address bus whole packed whole messages are sent to FPGA by CPU, be responsible for forwarding work by FPGA.
When all management network ports or part network interface wait to send out initial data identical the time, be one group of identical initial data, in the time of need to sending to a plurality of network interface, the CPU of traditional method also need to be according to operation as above, identical data are added different packet header and bag tail, and then send to FPGA.This way is equivalent to that initial data is sent out in identical waiting and repeats to have sent multipass, has greatly wasted communication bus bandwidth between CPU and the FPGA, has reduced efficiency of transmission.
Summary of the invention
The object of the invention is to solve when CPU sends identical message content to different network interfaces, improve the bus efficiency between CPU and the FPGA, avoid sending repeating data.
In order to overcome the above problems, the present invention specifically by the following technical solutions:
A kind of Multi-netmouth for the intelligent substation message sends optimization method, the hardware structure that described intelligent substation ethernet communication adopts CPU and FPGA to jointly control, and wherein, CPU mainly does data and processes, and FPGA is responsible for interface operation and transceiving data; It is characterized in that, said method comprising the steps of:
(1) CPU is with the source MAC(MediaAccess Control of each network interface, i.e. media access control layer) address configuration is to FPGA;
(2) CPU prepares to wait to send out the Ethernet message, and described Ethernet message is multipacket message, and each packet voice comprises message packet header, message data, message bag tail;
(3) CPU generates MAC effective marker position, and MAC effective marker position is the data of a plurality of bytes, the corresponding MAC of its each byte, if this bit value is ' 1 ', expression MAC effective marker position is effective, needs to wrap data and sends to corresponding MAC; Otherwise, represent that then MAC effective marker position is invalid, do not need these bag data are sent to corresponding MAC;
(4) CPU is MAC effective marker position, message packet header, message data, and message bag tail sends to FPGA in order;
(5) after FPGA receives the packet voice with MAC effective marker position of CPU transmission, unpack, parse MAC effective marker position, packet header, message data, the bag tail of packet voice;
(6) FPGA inquires about the byte in the corresponding MAC effective marker of each MAC position according to the MAC effective marker position that parses, if the numerical value in this byte is ' 1 ', then this message data is changed over to the source MAC processing module of the corresponding MAC among the FPGA;
(7) the mac source address processing module is inserted the source MAC of this MAC in the civilian data of waiting to transmit messages;
(8) FPGA sends the MAC flag bit effectively and inserts the message data of corresponding source MAC.
According to aforesaid operations, identical but need to send to the message of a plurality of network interfaces for message content, only need to increase data seldom, expression target network interface sign just can successfully have been avoided the transmission that repeats of identical data.If message content does not need to repeat to send, only need the bit that guarantees corresponding MAC in the MAC effective marker position effectively to get final product, can not increase any unnecessary expense, guaranteed the reliability that sends.So the present invention has flexibility for the management that the Multi-netmouth message sends, can support the independence that message sends, when simultaneously having taken into account again identical message and sending to Multi-netmouth simultaneously, the high efficiency of avoiding identical data to repeat to send is conducive to the expansion demand of program.
The present invention has following beneficial effect:
Save the repeating data transmission between a large amount of CPU and the FPGA, improved interface transmission efficiency;
Simplify Multi-netmouth for identical Ethernet message process of transmitting, reduced the CPU development difficulty;
Save the process that CPU repeats to carry identical data, improved to a certain extent the operational efficiency of CPU;
FPGA avoids receiving identical data, only needs the data/address bus copy data to get final product, and has reduced the receive data difficulty of FPGA;
The Multi-netmouth Data Stream Processing has been simplified the development process of FPGA.
Description of drawings
Fig. 1 is intelligent substation intelligent terminal ethernet communication configuration diagram;
Fig. 2 is that CPU sends form for the Ethernet message that different physical internet ports send in the prior art;
Fig. 3 is the Multi-netmouth transmission optimization method flow chart that the present invention is used for intelligent substation;
Fig. 4 is that the Ethernet message that the present invention adopts sends form.
Embodiment
Below in conjunction with Figure of description, technical scheme of the present invention is described in further details.
As shown in Figure 3, the application discloses a kind of Multi-netmouth for the intelligent substation message and has sent optimization method, the hardware structure (as shown in Figure 1) that described intelligent substation ethernet communication adopts CPU and FPGA to jointly control, CPU is responsible for controlling and waits to send out multipacket message, then send to FPGA, after FPGA receives message data, parse the affiliated MAC port of every packet voice, then different messages is distributed to different MAC port, wherein, CPU mainly does data and processes, and FPGA is responsible for interface operation and transceiving data; Said method comprising the steps of:
(1) CPU disposes the source MAC of each network interface to FPGA;
Comprise source MAC in the Ethernet message, in the Multi-netmouth management equipment, the source MAC of each network interface is fixing but different, the source MAC of each network interface is then determined by CPU, and the source MAC of each MAC, then by FPGA with the fixing source MAC that sets before the CPU, be inserted in the relevant position of data flow.
(2) CPU prepares to wait to send out the Ethernet message, generally all is to prepare multipacket message, and each packet voice comprises message packet header, message data, message bag tail;
(3) CPU generates MAC effective marker position;
Generate principle: MAC effective marker position is the data of N bit, the corresponding MAC of its each bit, if this bit numerical value is ' 1 ', expression effectively needs to wrap data and sends to corresponding MAC; Otherwise, then invalid; CPU only need to arrange MAC effective marker position corresponding to every packet voice, and MAC effective marker position and data sent to FPGA together, be arranged to ' 1 ' by FPGA according to concrete which bit of this flag bit, go distribution, if a plurality of bit have been configured to ' 1 ', then can will should arrive a plurality of MAC by the bag Data dissemination;
(4) CPU is MAC effective marker position, message packet header, and message data, message bag tail sends to FPGA, as shown in Figure 4 in order;
(5) after FPGA receives the packet voice with MAC effective marker position of CPU transmission, unpack, parse MAC effective marker position, packet header, message data, the bag tail of packet voice;
(6) FPGA inquires about the byte in the corresponding MAC effective marker of each MAC position according to the MAC effective marker position that parses, if the numerical value in this byte is ' 1 ', then this message data is changed over to the source MAC processing module of the corresponding MAC among the FPGA;
(7) the mac source address processing module is inserted the source MAC of this MAC in the civilian data of waiting to transmit messages;
(8) FPGA sends the MAC flag bit effectively and inserts the message data of corresponding source MAC.
The present patent application people has done detailed explanation and description in conjunction with Figure of description to embodiments of the invention; but those skilled in the art should understand that; above embodiment only is the preferred embodiments of the invention; detailed explanation is just in order to help the reader to understand better spirit of the present invention; and be not limiting the scope of the invention; on the contrary, any any improvement or modification of doing based on invention spirit of the present invention all should drop within protection scope of the present invention.

Claims (1)

1. a Multi-netmouth that is used for the intelligent substation message sends optimization method, the hardware structure that described intelligent substation ethernet communication adopts CPU and FPGA to jointly control, and wherein, CPU mainly does data and processes, and FPGA is responsible for interface operation and transceiving data; It is characterized in that, said method comprising the steps of:
(1) CPU is with the source MAC(Media Access Control of each network interface, i.e. media access control layer) address configuration is to FPGA;
(2) CPU prepares to wait to send out the Ethernet message, and described Ethernet message is multipacket message, and each packet voice comprises message packet header, message data, message bag tail;
(3) CPU generates MAC effective marker position, and MAC effective marker position is the data of a plurality of bytes, the corresponding MAC of its each byte, if this bit value is ' 1 ', expression MAC effective marker position is effective, needs to wrap data and sends to corresponding MAC; Otherwise, represent that then MAC effective marker position is invalid, do not need these bag data are sent to corresponding MAC;
(4) CPU is MAC effective marker position, message packet header, message data, and message bag tail sends to FPGA in order;
(5) after FPGA receives the packet voice with MAC effective marker position of CPU transmission, unpack, parse MAC effective marker position, packet header, message data, the bag tail of packet voice;
(6) FPGA inquires about the byte in the corresponding MAC effective marker of each MAC position according to the MAC effective marker position that parses, if the numerical value in this byte is ' 1 ', then this message data is changed over to the source MAC processing module of the corresponding MAC among the FPGA;
(7) the mac source address processing module is inserted the source MAC of this MAC in the civilian data of waiting to transmit messages;
(8) FPGA sends the MAC flag bit effectively and inserts the message data of corresponding source MAC.
CN201210574100.6A 2012-12-26 2012-12-26 Method for optimizing multiple-network-interface transmission of message of intelligent substation Active CN103051530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210574100.6A CN103051530B (en) 2012-12-26 2012-12-26 Method for optimizing multiple-network-interface transmission of message of intelligent substation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210574100.6A CN103051530B (en) 2012-12-26 2012-12-26 Method for optimizing multiple-network-interface transmission of message of intelligent substation

Publications (2)

Publication Number Publication Date
CN103051530A true CN103051530A (en) 2013-04-17
CN103051530B CN103051530B (en) 2015-03-25

Family

ID=48064035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210574100.6A Active CN103051530B (en) 2012-12-26 2012-12-26 Method for optimizing multiple-network-interface transmission of message of intelligent substation

Country Status (1)

Country Link
CN (1) CN103051530B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681228A (en) * 2016-01-30 2016-06-15 安徽欧迈特数字技术有限责任公司 Multi-port Ethernet switch aggregation synchronizing method
CN109428819A (en) * 2017-08-28 2019-03-05 阿里巴巴集团控股有限公司 Transmit method, networking component, equipment and the computer storage medium of data
CN110661806A (en) * 2019-09-30 2020-01-07 华南理工大学广州学院 Intelligent substation process bus firewall system
CN110677425A (en) * 2019-09-30 2020-01-10 华南理工大学广州学院 Firewall system matching method for matching GOOSE message

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11308218A (en) * 1998-04-23 1999-11-05 Nec Corp Layer 3 multicast transmission system
KR20010084545A (en) * 2000-02-26 2001-09-06 윤종용 Multi-port network matching apparatus for network print server function and method for transmitting/receiving packet data
CN101719916A (en) * 2009-11-13 2010-06-02 曙光信息产业(北京)有限公司 Method for realizing multi-port network card data transmission
CN102185775A (en) * 2011-05-10 2011-09-14 中兴通讯股份有限公司 Method for identifying ports of multi-port Ethernet interface device and multi-port Ethernet interface device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11308218A (en) * 1998-04-23 1999-11-05 Nec Corp Layer 3 multicast transmission system
KR20010084545A (en) * 2000-02-26 2001-09-06 윤종용 Multi-port network matching apparatus for network print server function and method for transmitting/receiving packet data
CN101719916A (en) * 2009-11-13 2010-06-02 曙光信息产业(北京)有限公司 Method for realizing multi-port network card data transmission
CN102185775A (en) * 2011-05-10 2011-09-14 中兴通讯股份有限公司 Method for identifying ports of multi-port Ethernet interface device and multi-port Ethernet interface device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴杰 等: "基于ARM和FPGA的智能变电站全场景试验装置硬件平台设计", 《四川电力技术》 *
李松林: "智能变电站通信性能测试研究", 《中国优秀硕士学位论文全文数据库 工程科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681228A (en) * 2016-01-30 2016-06-15 安徽欧迈特数字技术有限责任公司 Multi-port Ethernet switch aggregation synchronizing method
CN109428819A (en) * 2017-08-28 2019-03-05 阿里巴巴集团控股有限公司 Transmit method, networking component, equipment and the computer storage medium of data
CN109428819B (en) * 2017-08-28 2022-01-11 阿里巴巴集团控股有限公司 Method, network component, device and computer storage medium for transmitting data
CN110661806A (en) * 2019-09-30 2020-01-07 华南理工大学广州学院 Intelligent substation process bus firewall system
CN110677425A (en) * 2019-09-30 2020-01-10 华南理工大学广州学院 Firewall system matching method for matching GOOSE message
CN110661806B (en) * 2019-09-30 2021-07-30 华南理工大学广州学院 Intelligent substation process bus firewall system
CN110677425B (en) * 2019-09-30 2021-09-21 华南理工大学广州学院 Firewall system matching method for matching GOOSE message

Also Published As

Publication number Publication date
CN103051530B (en) 2015-03-25

Similar Documents

Publication Publication Date Title
WO2022062052A1 (en) 5g-based method, module and terminal for realizing low scheduling latency and high speed access, and secondary electrical device
CN102104544B (en) Order preserving method for fragmented message flow in IP (Internet Protocol) tunnel of multi-nuclear processor with accelerated hardware
CN103051530B (en) Method for optimizing multiple-network-interface transmission of message of intelligent substation
CN103746783A (en) Extended communication method based on Modbus communication protocol
CN103997500A (en) Achieving method of light-weight real-time TCP/IP protocol stack
CN202679397U (en) Real-time industrial Ethernet EtherCAT slave station system
CN103701716B (en) A kind of SV is directly adopted and the common port transmitting method of GOOSE message
CN101707544A (en) E1 channel multidirectional network bridge transmission device and method
CN202617155U (en) Multiple host RS485 communication device
CN110635982A (en) Double-host communication method and system on communication bus, industrial control gateway and storage medium
CN102780633B (en) Device and method for transmitting data based on CAPWAP (control and provisioning of wireless access points) protocol
EP2699030B1 (en) Route switching device, network switching system and route switching method
US10244524B2 (en) Data transmission method, apparatus, and network system that supports CPRI data corresponding to multiple service flows to be exchanged
CN101847135B (en) Series-connected communication system and communication method thereof
CN107659456A (en) A kind of data collision transmission method based on RS485 communications
CN101945026A (en) Data transmission method of application layer in control area network and control area network system
WO2016123975A1 (en) Data transmission method and apparatus
CN105263165B (en) A kind of network data based on FPGA connects packet method for splitting
CN113285839A (en) Design method of programmable data plane software switch based on DPDK
CN114095901A (en) Communication data processing method and device
US8861529B2 (en) Ethernet apparatus and method of adjusting transmission rate thereof
CN202817898U (en) Power distribution terminal based on EtherCAT industrial Ethernet
CN102420734A (en) System for realizing topological structure of controller area network (CAN) bus
CN115080080A (en) Device, system and method for firmware upgrading of multi-path CANopen network
CN209151300U (en) A kind of T-type distribution Ethernet line concentrator

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
TR01 Transfer of patent right

Effective date of registration: 20171226

Address after: 100085 Beijing city on the base of the information industry on the street, No. four, No. 9, Haidian District

Co-patentee after: Beijing Sifang Jibao Engineering Technology Co., Ltd.

Patentee after: Beijing Sifang Jibao Automation Co., Ltd.

Address before: 100085 Beijing city on the base of the information industry on the street, No. four, No. 9, Haidian District

Patentee before: Beijing Sifang Jibao Automation Co., Ltd.

TR01 Transfer of patent right