CN117978829B - Distributed station terminal IEC104 networking method - Google Patents

Distributed station terminal IEC104 networking method Download PDF

Info

Publication number
CN117978829B
CN117978829B CN202410093866.5A CN202410093866A CN117978829B CN 117978829 B CN117978829 B CN 117978829B CN 202410093866 A CN202410093866 A CN 202410093866A CN 117978829 B CN117978829 B CN 117978829B
Authority
CN
China
Prior art keywords
data
interval unit
connection
unit
client
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.)
Active
Application number
CN202410093866.5A
Other languages
Chinese (zh)
Other versions
CN117978829A (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 Qingchang Power Technology Co ltd
Original Assignee
Beijing Qingchang Power 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 Beijing Qingchang Power Technology Co ltd filed Critical Beijing Qingchang Power Technology Co ltd
Priority to CN202410093866.5A priority Critical patent/CN117978829B/en
Publication of CN117978829A publication Critical patent/CN117978829A/en
Application granted granted Critical
Publication of CN117978829B publication Critical patent/CN117978829B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

According to the distributed station terminal IEC104 networking method, a DTU public unit IEC104 server starts interval unit interception; the DTU public unit IEC104 client starts a connection interval unit; the detection interval unit is connected; extracting data of a main station and forwarding the data to an interval unit; extracting interval unit data and forwarding the interval unit data to a server, integrating a port mapping function into a public unit, and adopting a common industrial switch to replace a high-end industrial switch supporting port mapping, wherein the flat-replacing scheme can save the production cost by about 20 percent; the power grid data of the interval units are completely transmitted in a mirror image mode, the operation and storage of a large amount of data of the interval units by the public units are reduced, the program stability of the public units is improved, the dependence of the public units on a large-capacity and high-price MCU is reduced, and the guarantee is provided for further reducing the cost.

Description

Distributed station terminal IEC104 networking method
Technical Field
The invention relates to the technical field of power distribution automation communication, in particular to a distributed station terminal IEC104 networking method.
Background
At present, the domestic power distribution network is greatly developed into a standardized design of a terminal of a distributed station, wherein the terminal of the distributed station consists of two terminals, namely a public unit and a spacing unit. The standardized design requires that the common units and the distribution master IEC104 are connected using a multiport mechanism, wherein port number 2404 corresponds to the common units and port numbers 24041 to 24046 correspond to the spacer units 1 to 6, respectively.
Under the current technology, there are two general solutions, scheme 1 adds a high-end industrial switch supporting port mapping; the scheme 2 adopts a common industrial switch, a public unit collects all data of 6 interval units, and the data of the interval units 1 to 6 are bound and managed according to TCP server port numbers 24041 to 24046. The scheme 1 has the advantages that the technology is mature and stable; the disadvantage is that the high-end industrial switches supporting port mapping are expensive and the terminal manufacturer can incur high production costs. The scheme 2 has the advantages that the common industrial exchanger is adopted, the price is much lower than that of the scheme 1, and the production cost is saved; the method has the defects that the program structure of the public unit is complex in design, the running stability of the public unit is reduced, in addition, the MCU is required to select a large memory model with higher price, and the production cost of a terminal manufacturer is also increased.
In summary, in order to meet the standardized design requirement of the terminal of the distributed station, the terminal of the distributed station is stably and reliably connected with the IEC104 of the power distribution main station, and meanwhile, the problems of production cost, simple program structure and the like are considered, so that the proposal of a new solution is urgently needed.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a distributed station terminal IEC104 networking method for improving the stability of a public unit program and reducing the networking cost.
The technical scheme adopted by the invention is as follows:
A distributed station terminal IEC104 networking method comprises the following steps:
step s101, starting the system, wherein the interval unit counter n=1;
step s102, initializing a server side of a DTU public unit IEC 104;
step s103, starting interval unit interception by a server side of a DTU public unit IEC 104;
Step s104, judging whether the master station is connected, and if not, jumping to step s105, otherwise jumping to step s109;
step s105, the client of the DTU public unit IEC104 starts a connection interval unit N;
Step s106, detecting the connection of the interval units; the spacer element N has connected a jump step s107, otherwise a jump s109;
Step S107, extracting main station data and forwarding the main station data to an interval unit N;
step S108, extracting interval unit data and forwarding the interval unit data to a server;
Step s109, interval unit counter n= (n+1)
Step s110, if the interval unit counter is greater than 6, the interval unit counter N is greater than 6, step s111 is skipped, otherwise step s102 is skipped;
Step s111, redefine interval unit counter n=1, and jump to step s102.
Preferably, the method comprises the steps of,
The public unit server side starts 24041 to 24046 port services; the server side sequentially increases 24041 port mapping client IP addresses 192.168.1.101 and 24042 port mapping client IP addresses 192.168.1.102; the public unit IP address is 192.168.1.100; the IP addresses corresponding to the interval units 1 to 6 are 192.168.1.101 to 192.168.1.106 in sequence.
Preferably, the server side manages, the server starts to monitor, when receiving connection of the distribution master station IEC104, the server side extracts the information of the master station connection port, and notifies the client of the master station connection information; the primary station connection port is 24041, and the corresponding interval unit is interval unit 1;
When the connection with the power distribution main station fails, the server feeds information back to the power distribution main station, and the connection is closed;
When the connection with the power distribution main station is successful, the server side notifies information to the client side;
During communication with the distribution master station, when abnormal connection with the distribution master station is found, the server side informs the client side to close the connection of the interval unit.
Preferably, the client terminal is connected and managed, and after receiving the notification information, the client terminal starts the connection to the corresponding interval unit;
when the connection with the interval unit fails, the client feeds information back to the server side and then to the power distribution master station, and the connection fails;
When the connection with the interval unit is successful, the client feeds information back to the server end and then to the power distribution master station, and the connection is successful;
and during the communication with the interval unit, when the connection with the interval unit is found abnormal, the client feeds the abnormal information back to the server. The server side will close the corresponding connection with the distribution master station.
Preferably, the public unit mirror image data forwarding is performed, the functional module extracts data from two links of the server side and the client side, and the data are mutually transmitted and forwarded, so that the power distribution master station can directly access the power grid data of the interval unit;
when the server side receives the data of the power distribution main station, the data forwarding function extracts the data of the server side and forwards the data to the client side; the client sends the data to the interval unit;
When the client receives the data of the interval unit, the data forwarding function extracts the data of the client and forwards the data to the server; and the server side sends the data to the power distribution master station.
The method partially decomposes IEC104 data format, extracts ASDU data, reduces data forwarding amount, and achieves the purpose of improving data transmission efficiency.
Compared with the prior art, the invention has the beneficial effects that:
According to the distributed station terminal IEC104 networking method, the power distribution terminal and the communication medium, the port mapping function is integrated into the public unit, and the common industrial switch is adopted to replace the high-end industrial switch supporting port mapping, so that the production cost can be saved by about 20% by adopting the flat scheme; the power grid data of the interval units are completely transmitted in a mirror image mode, the operation and storage of a large amount of data of the interval units by the public units are reduced, the program stability of the public units is improved, the dependence of the public units on a large-capacity and high-price MCU is reduced, and the guarantee is provided for further reducing the cost.
Drawings
FIG. 1 is a flow diagram of a distributed station terminal IEC104 networking method;
Fig. 2 is a network topology diagram of a distributed station terminal IEC104 networking method;
FIG. 3 is a schematic diagram of TCP connections for a distributed station terminal IEC104 networking method;
fig. 4 is a data forwarding method diagram of the IEC104 networking method of the distributed station terminal;
fig. 5 is an APDU format diagram of the IEC104 networking method of the distributed station.
Detailed Description
The invention is described in detail below with reference to the attached drawings and examples:
As shown in fig. 1, the distributed station terminal IEC104 networking method of the present invention is implemented based on a distributed station terminal public unit IEC104 server side and an IEC104 client side, and comprises the following steps:
The common unit server side opens the ports 2404, 24041-24046 to serve, associates 24041 the port with the interval unit 1 information, and associates 24042 the port with the interval unit 2 information, and sequentially increases.
Step s101, starting the system, wherein the interval unit counter n=1;
step s102, initializing a server side of a DTU public unit IEC 104;
step s103, starting interval unit interception by a server side of a DTU public unit IEC 104;
Step s104, judging whether the master station is connected, and if not, jumping to step s105, otherwise jumping to step s109;
step s105, the client of the DTU public unit IEC104 starts a connection interval unit N;
Step s106, detecting the connection of the interval units; the spacer element N has connected a jump step s107, otherwise a jump s109;
Step S107, extracting main station data and forwarding the main station data to an interval unit N;
step S108, extracting interval unit data and forwarding the interval unit data to a server;
Step s109, interval unit counter n= (n+1)
Step s110, if the interval unit counter is greater than 6, the interval unit counter N is greater than 6, step s111 is skipped, otherwise step s102 is skipped;
Step s111, redefine interval unit counter n=1, and jump to step s102.
Technical description:
IEC104 is called IEC60870-5-104 protocol, which is a network protocol based on TCP/IP transmission. DL/T634.5104-2002 issued in 2002 in China is that the fifth part of the telecontrol equipment and the system is that the 104 th part of the transmission protocol adopts IEC60870-5-101 network access (idt. IEC 60870-5-104:2000) of a standard transmission protocol set. The protocol transport layer is specified in IEC60870-5-104 to use the TCP protocol with a standard port number of 2404.
The TCP application has two modes of operation, namely a server (substation) mode and a client (distribution master station) mode, and the difference between the server mode and the client mode is that when a TCP connection is established, the substation is in a listening state, and when a connection request from the master station is detected, the request is accepted and a TCP connection is established, and at this time, data can be transmitted and received through the virtual communication link. In normal IEC60870-5-104 development, the distribution master station serves as a client and the terminal serves as a server. As can be seen in figure 2 of the drawings,
The above description is only of the preferred embodiment of the present invention, and is not intended to limit the structure of the present invention in any way. Any simple modification, equivalent variation and modification of the above embodiments according to the technical substance of the present invention fall within the technical scope of the present invention.

Claims (1)

1. The distributed station terminal IEC104 networking method is characterized by comprising the following steps:
Step s101, starting the system, wherein the interval unit counter n=1;
step s102, initializing a server side of a DTU public unit IEC 104;
step s103, starting interval unit interception by a server side of a DTU public unit IEC 104;
Step s104, judging whether the master station is connected, and if not, jumping to step s105, otherwise jumping to step s109;
step s105, the client of the DTU public unit IEC104 starts a connection interval unit N;
Step s106, detecting the connection of the interval units; the spacer element N has connected a jump step s107, otherwise a jump s109;
Step S107, extracting main station data and forwarding the main station data to an interval unit N;
step S108, extracting interval unit data and forwarding the interval unit data to a server;
step s109, interval unit counter n= (n+1)
Step s110, if the interval unit counter is greater than 6, the interval unit counter N is greater than 6, step s111 is skipped, otherwise step s102 is skipped;
step s111, redefining an interval unit counter n=1, and skipping to step s102;
The server side starts the services of ports 2404, 24041-24046, associates 24041 ports with interval unit 1 information, and associates 24042 ports with interval unit 2 information, and sequentially increases;
The server side manages, the server starts to monitor, and when receiving connection of the distribution master station IEC104, the server side extracts the information of the master station connection port and notifies the client of the master station connection information;
When the connection with the power distribution main station fails, the server feeds information back to the power distribution main station, and the connection is closed;
When the connection with the power distribution main station is successful, the server side notifies information to the client side;
During the communication with the power distribution main station, when abnormal connection with the power distribution main station is found, the server side informs the client side to close the connection of the interval unit;
the client terminal is connected with the management, and after receiving the notification information, the client terminal starts the connection of the corresponding interval unit;
when the connection with the interval unit fails, the client feeds information back to the server side and then to the power distribution master station, and the connection fails;
When the connection with the interval unit is successful, the client feeds information back to the server end and then to the power distribution master station, and the connection is successful;
During the communication with the interval unit, when the connection between the interval unit and the client side is abnormal, the client side feeds the abnormal information back to the server side; the server end closes the corresponding connection with the power distribution master station;
The function module extracts data from two links of a server side and a client side, and transmits and forwards the data to each other, so that the power distribution master station can directly access the power grid data of the interval unit;
when the server side receives the data of the power distribution main station, the data forwarding function extracts the data of the server side and forwards the data to the client side; the client sends the data to the interval unit;
When the client receives the data of the interval unit, the data forwarding function extracts the data of the client and forwards the data to the server; and the server side sends the data to the power distribution master station.
CN202410093866.5A 2024-01-23 2024-01-23 Distributed station terminal IEC104 networking method Active CN117978829B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410093866.5A CN117978829B (en) 2024-01-23 2024-01-23 Distributed station terminal IEC104 networking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410093866.5A CN117978829B (en) 2024-01-23 2024-01-23 Distributed station terminal IEC104 networking method

Publications (2)

Publication Number Publication Date
CN117978829A CN117978829A (en) 2024-05-03
CN117978829B true CN117978829B (en) 2024-07-23

Family

ID=90864036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410093866.5A Active CN117978829B (en) 2024-01-23 2024-01-23 Distributed station terminal IEC104 networking method

Country Status (1)

Country Link
CN (1) CN117978829B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110994593A (en) * 2019-11-19 2020-04-10 珠海许继电气有限公司 DTU distribution method and system
CN112532667A (en) * 2019-09-19 2021-03-19 贵州白山云科技股份有限公司 Network edge computing method, device and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691340B (en) * 2021-08-27 2024-03-26 东方电子股份有限公司 Manchester-code-based ring main unit digital terminal and data transmission method thereof
CN116031998A (en) * 2021-10-25 2023-04-28 南京安能杰电力实业有限公司 Distributed substation terminal based on multiport forwarding communication
CN115208058A (en) * 2022-07-21 2022-10-18 南京国电南自电网自动化有限公司 Plug and play method and system for distributed power distribution terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532667A (en) * 2019-09-19 2021-03-19 贵州白山云科技股份有限公司 Network edge computing method, device and medium
CN110994593A (en) * 2019-11-19 2020-04-10 珠海许继电气有限公司 DTU distribution method and system

Also Published As

Publication number Publication date
CN117978829A (en) 2024-05-03

Similar Documents

Publication Publication Date Title
CN102123467A (en) Method for multi-channel self-adaptive switch during terminal communication
CN102833668B (en) Data traffic reminding method and data traffic reminding device
WO2009067255A1 (en) Point-to-point communication within a mesh network
CN113066276A (en) Communication fault monitoring method and device for electricity consumption information acquisition system and storage medium
EP1684456B1 (en) A method for data redundancy of HLR
CN102290862B (en) Peer to peer communication method and system of power distribution terminals
CN113852192A (en) Data interaction system supporting multiple protocols and multiple master stations and method thereof
CN108123826A (en) A kind of interactive system and method for transregional data
CN111435843A (en) High-speed carrier CCO communication module and method based on wireless interface
CN117978829B (en) Distributed station terminal IEC104 networking method
JP2001292467A (en) Operation and maintenance method for base station utilizing remote procedure call
CN102195824B (en) Method, device and system for out-of-service alarm of data service system
CN109861872B (en) Power distribution communication network architecture for improving service quality
CN112885068A (en) Public and private network communication module of power utilization information acquisition terminal and switching method
CN114884769B (en) Dual-communication protocol redundant communication system
CN111262745A (en) Information processing platform redundancy system design
CN114257500B (en) Fault switching method, system and device for super-fusion cluster internal network
CN114157325B (en) Multi-head end communication conversion tail end device and system based on HPLC carrier network
CN112581307B (en) Interactive method and system for realizing plug and play of intelligent sensor
CN112333758B (en) Stability monitoring management method, system and application of television gateway system
CN115134431A (en) UDP differential message extraction method and system for power distribution automation 5G differential protection
CN202172422U (en) Network service provider double exit connecting system
CN104113901A (en) Network energy saving system and method and related devices
CN213069812U (en) Intelligent power plant energy acquisition and management system
CN112365699B (en) Meter reading method for solving uplink communication timeout of water-gas-heat meter converter

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
GR01 Patent grant
GR01 Patent grant