CN115333992B - Link resource optimization method based on standard PRP protocol - Google Patents

Link resource optimization method based on standard PRP protocol Download PDF

Info

Publication number
CN115333992B
CN115333992B CN202210963472.1A CN202210963472A CN115333992B CN 115333992 B CN115333992 B CN 115333992B CN 202210963472 A CN202210963472 A CN 202210963472A CN 115333992 B CN115333992 B CN 115333992B
Authority
CN
China
Prior art keywords
prp
module
request packet
link
network switching
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
CN202210963472.1A
Other languages
Chinese (zh)
Other versions
CN115333992A (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.)
Sichuan Netop Telecom Co ltd
Original Assignee
Sichuan Netop Telecom 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 Sichuan Netop Telecom Co ltd filed Critical Sichuan Netop Telecom Co ltd
Priority to CN202210963472.1A priority Critical patent/CN115333992B/en
Publication of CN115333992A publication Critical patent/CN115333992A/en
Application granted granted Critical
Publication of CN115333992B publication Critical patent/CN115333992B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • 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/26Special purpose or proprietary protocols or architectures

Abstract

The invention discloses a link resource optimization method based on a standard PRP protocol, which comprises the following steps: step one, in a communication flow of carrying out handshake link establishment by a PC terminal through a PRP module and a network switching module, recording the information of the network switching module in a communication link, which is reached preferentially or is not in error, by the PRP module; and step two, selecting a network link recorded with the information of the network switching module by the PRP module to perform data transmission in the process of data communication between the PC terminals. The invention provides a link resource optimization method based on a standard PRP protocol, which is characterized in that in the existing standard PRP protocol flow, the communication flow of a PC terminal, a PRP module and a network switching module is optimized and improved, so that under the condition of ensuring that one transmission link is unobstructed, data transmission is not carried out on the other link during communication, and the condition that link resources are wasted in the message transmission process is reduced.

Description

Link resource optimization method based on standard PRP protocol
Technical Field
The present invention relates to the field of data communications. More particularly, the present invention relates to a link resource optimization method based on a standard PRP protocol for use in the communication situation of a terminal device.
Background
The PRP protocol is a redundant protocol that works on terminal devices, one terminal device being connected to two mutually independent networks of the same network topology, while the two networks run in parallel. Since there is no direct connection between the two networks, if one of the networks fails, it will not have an effect on the other.
Taking fig. 2-3 as an example, in the standard PRP protocol, messages in the ping process messages from PC1 to PC2 respectively pass through A, B, and the specific flow includes: the PRP sender copies an original information frame, adds a section of specific field (RCT) into two frames to form PRP information frames, sends the PRP information frames from two ports (each port corresponds to a switch A and a switch B respectively) of the PRP sender, arrives at the same PRP receiver after passing through A, B two independent switches, and after the PRP receiver receives the two PRP information frames from the two ports respectively, the PRP receiver identifies a certain PRP frame according to the frame sequence numbers in the MAC and RCT of a source (namely PC 1), discards the information frames arriving later, only retains one information frame arriving earlier, eliminates the specific field (RCT) and restores the original information, and then transmits the original information to an upper layer (PC 2). Therefore, in the whole process of the PC1 ping the switch A, related messages are transmitted due to the lines 2 and 4 connected with the switch A and the lines 3 and 5 connected with the switch B, and when the lines 2 and 4 connected with the switch A preferably arrive and no information error exists, the link resource waste is caused by discarding the transmission messages on the lines 3 and 5 connected with the switch B.
Disclosure of Invention
It is an object of the present invention to address at least the above problems and/or disadvantages and to provide at least the advantages described below.
To achieve these objects and other advantages and in accordance with the purpose of the invention, as embodied and broadly described herein, there is provided a link resource optimization method based on a standard PRP protocol, comprising:
step one, in a communication flow of carrying out handshake link establishment by a PC terminal through a PRP module and a network switching module, recording the information of the network switching module in a communication link, which is reached preferentially or is not in error, by the PRP module;
and step two, selecting a network link recorded with the information of the network switching module by the PRP module to perform data transmission in the process of data communication between the PC terminals.
Preferably, in step one, the IP of the network switching module on each network link is identified through a handshake link establishment procedure, and the identification procedure is configured to include:
s1, a sending terminal PC sends an ARP request packet to a corresponding sending terminal PRP module;
s2, after the PRP module at the transmitting end receives the ARP request packet, marking a mark field on the ARP request packet and transmitting the mark field to the network switching modules of different links;
s3, the network switching module in any link inquires the received ARP request packet to judge whether the receiver of the ARP request packet is self, if so, the mark field in the ARP request packet is removed, and the ARP request packet is returned to the PRP module of the transmitting end;
s4, the PRP module of the transmitting end records the information of the network switching module related to the transmission link in the transmission message and transmits the ARP request packet to the PC of the transmitting terminal.
Preferably, in the second step, the data communication between the PC terminals includes communication of a PING request packet between the transmitting terminal PC and the receiving terminal PC, and the communication method is configured to include:
s5, after receiving the ARP request packet transmitted by the PRP module of the transmitting end, the transmitting terminal PC transmits a corresponding PING request packet to the PRP module of the transmitting end;
s6, after receiving the PING request packet, the PRP module at the transmitting end matches the PING request packet with the information of the network switching module, if the PING request packet is successfully matched, the PING request packet is not processed, the PING request packet is transmitted through the port of the network switching module, and related information is not transmitted to the port of the network switching module which is not recorded any more;
if the matching fails, the PRP module at the transmitting end wraps the corresponding PING request with the RCT field, and simultaneously transmits related information to the ports of the network switching modules which are not recorded and recorded.
The invention at least comprises the following beneficial effects: in the prior standard PRP protocol flow, the invention optimizes and improves the communication flow of the PC terminal, the PRP module and the network switching module, so that the PC terminal does not send data to one link during communication under the condition of ensuring that the other link is unobstructed, thereby reducing the condition of wasting link resources in the message transmission process.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention.
Drawings
FIG. 1 is a schematic flow chart of the communication between a PC terminal and a PRP switch after optimization and improvement of the invention;
FIG. 2 is a schematic diagram of a communication flow of a standard PRP protocol of the prior art;
fig. 3 is a schematic flow chart of PRP message change in the standard PRP protocol in the prior art.
Detailed Description
The present invention is described in further detail below with reference to the drawings to enable those skilled in the art to practice the invention by referring to the description.
The invention provides a link resource optimization method based on a standard PRP protocol, which comprises the following steps:
step one, in a communication flow of carrying out handshake link establishment by a PC terminal through a PRP module and a network switching module, recording the information of the network switching module in a communication link, which is reached preferentially or is not in error, by the PRP module;
and step two, selecting a network link recorded with the information of the network switching module by the PRP module to perform data transmission in the process of data communication between the PC terminals. In the scheme, the communication flow of the PC terminal, the PRP module and the network switching module (switch) is optimized and improved, so that the PRP has a judging and processing function, a communication link with data reaching preferentially or without errors is selected as a preset communication link in the communication process, and a medium network switching module of the communication link which is not selected does not have a large number of data packets to transmit from the medium network switching module, thereby saving link resources.
In connection with the standard PRP protocol flow of fig. 2, the manner of optimizing and improving the communication flow of the PC terminal, the PRP module and the network switching module according to the present invention is configured to include:
1. in the process of managing the IP addresses of the switch a and the switch B by the PC terminal, the flow is configured to include:
1. the PC1 sends an ARP Request message to the PRP, wherein the message has no RCT field;
2. the PRP marks RCT fields of the two switches, namely, the RCT fields of A, B are marked, and the RCT fields comprise Sequence Number, LSDU size, lan Number and PRP Suffixg;
the Sequence Number is a 16-bit frame Sequence Number, and the Sequence numbers of the original frame and the duplicate frame are consistent and gradually increase along with the transmission of the PRP frame;
the LSDU size is a 12-bit Payload size, identifying the total byte size of the Payload field+RCT field;
lan Id is a 4-bit subnet ID, and represents two independent subnets respectively;
PRP Suffixg is 16-bit PRP information frame suffix, after RCT fields are marked on two messages, a message with LAN Id as A is sent through a switch A; the message with the LAN Id of B is sent through the switch B, and the communication system has a unique network link redundancy backup mechanism;
3. the exchanger A receives the message and then forwards the message, and simultaneously finds that the ARP Request IP address is that the exchanger itself receives and processes the message, and then sends an ARP Response message to the PRP on the link 2, wherein the message has no RCT field;
the switch B receives the ARP Request IP address which is not own and forwards the ARP Request IP address, and meanwhile, the ARP Request message is directly discarded.
4. When the PRP receives a message without RCT field transmitted by the link 2, recording the MAC and IP information and source port (namely the MAC and IP information of the exchanger A and the port connected with the link 2) of the message and transmitting the message to the PC1 through the link 1;
second, in the ping procedure process of the PCs 1 to A, B, the flow thereof includes:
1. the PC1 receives and processes the message and then sends out a PING Request message;
2. when the message is sent to the PRP, the PRP checks that the message is matched with the previously recorded MAC and IP information, if the message is successfully matched, the message is not processed and is directly sent out from the recorded port, and at the moment, the message is sent out through the link 2 and is not sent out on the link 3, so that the link bandwidth resource is saved.
If the matching fails, the PRP module of the transmitting end wraps the corresponding PING request with an RCT field, and transmits message information to the links 2 and 3;
specifically, the workflow thereof may include:
1. the PC1 sends an ARP Request message to the PRP, wherein the message has no RCT field;
2. PRP marks RCT field on the message and then sends out from links 2 and 3 respectively;
3. after receiving the message, the switch A finds that the ARP Request IP address is that the switch A receives and processes the message, and then sends an ARP Response message to the PRP on the link 2, wherein the message has no RCT field;
4. after receiving the message, the exchanger B finds that the IP address of the ARP Request is not the ARP Request and directly discards the ARP Request message;
5. when the PRP receives a message without RCT field transmitted by the link 2, recording the MAC and IP information and source port (namely the MAC and IP information of the exchanger A and the port connected with the link 2) of the message and transmitting the message to the PC1 through the link 1;
6. the PC1 receives and processes the message and then sends out a PING Request message;
7. when the message is sent to the PRP, the PRP checks that the message is matched with the previously recorded MAC and IP information, if the message is successfully matched, the message is not processed and is directly sent out from the recorded port, and at the moment, the message is sent out through the link 2 and is not sent out on the link 3, so that the link bandwidth resource is saved. If the matching is unsuccessful, the message is sent out from links 2 and 3 after RCT fields are marked.
From the above flow, the invention effectively reduces the flow sent to the exchanger in the PRP link and saves the link resource.
The above is merely illustrative of a preferred embodiment, but is not limited thereto. In practicing the present invention, appropriate substitutions and/or modifications may be made according to the needs of the user.
The number of equipment and the scale of processing described herein are intended to simplify the description of the present invention. Applications, modifications and variations of the present invention will be readily apparent to those skilled in the art.
Although embodiments of the invention have been disclosed above, they are not limited to the use listed in the specification and embodiments. It can be applied to various fields suitable for the present invention. Additional modifications will readily occur to those skilled in the art. Therefore, the invention is not to be limited to the specific details and illustrations shown and described herein, without departing from the general concepts defined in the claims and their equivalents.

Claims (2)

1. A link resource optimization method based on a standard PRP protocol, comprising:
step one, in a communication flow of carrying out handshake link establishment by a PC terminal through a PRP module and a network switching module, recording the information of the network switching module in a communication link, which is reached preferentially or is not in error, by the PRP module;
step two, in the process of data communication between PC terminals, selecting a network link recorded with the information of the network switching module through the PRP module to perform data transmission;
in step one, the IP of the network switching module on each network link is identified through a handshake link establishment procedure, where the identification procedure is configured to include:
s1, a sending terminal PC sends an ARP request packet to a corresponding sending terminal PRP module, wherein the ARP request packet has no RCT field;
s2, after the PRP module at the transmitting end receives the ARP request packet, marking a mark field on the ARP request packet and transmitting the ARP request packet to a network switching module of different links, copying an original ARP request packet by the PRP module at the transmitting end, marking RCT fields of a corresponding switch, wherein the RCT fields comprise Sequence Number, LSDU size, lan Number and PRP Sequence, the Sequence Number is a 16-bit frame Sequence Number, the Sequence numbers of an original frame and a copied frame are consistent, and the Sequence numbers are increased along with the transmission of the PRP frame; the LSDU size is a 12-bit Payload size, identifying the total byte size of the Payload field+RCT field; lan Id is a 4-bit subnet ID, and represents two independent subnets respectively; PRP Suffixg is 16-bit PRP information frame suffix, after RCT fields are marked on two messages, messages of different links are sent through different network switching modules;
s3, the network switching module in any link inquires the received ARP request packet to judge whether the receiver of the ARP request packet is self, if so, the mark field in the ARP request packet is removed, and the ARP request packet is returned to the PRP module of the transmitting end;
s4, the PRP module of the transmitting end records the information of the network switching module related to the transmission link in the transmission message and transmits the ARP request packet to the PC of the transmitting terminal.
2. The link resource optimization method based on the standard PRP protocol according to claim 1, wherein in the second step, the data communication between the PC terminals includes communication of a PING request packet between the transmitting terminal PC and the receiving terminal PC, and the communication manner is configured to include:
s5, after receiving the ARP request packet transmitted by the PRP module of the transmitting end, the transmitting terminal PC transmits a corresponding PING request packet to the PRP module of the transmitting end;
s6, after receiving the PING request packet, the PRP module at the transmitting end matches the PING request packet with the information of the network switching module, if the PING request packet is successfully matched, the PING request packet is not processed, the PING request packet is transmitted through the port of the network switching module, and related information is not transmitted to the port of the network switching module which is not recorded any more;
if the matching fails, the PRP module at the transmitting end wraps the corresponding PING request with the RCT field, and simultaneously transmits related information to the ports of the network switching modules which are not recorded and recorded.
CN202210963472.1A 2022-08-11 2022-08-11 Link resource optimization method based on standard PRP protocol Active CN115333992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210963472.1A CN115333992B (en) 2022-08-11 2022-08-11 Link resource optimization method based on standard PRP protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210963472.1A CN115333992B (en) 2022-08-11 2022-08-11 Link resource optimization method based on standard PRP protocol

Publications (2)

Publication Number Publication Date
CN115333992A CN115333992A (en) 2022-11-11
CN115333992B true CN115333992B (en) 2024-01-23

Family

ID=83923995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210963472.1A Active CN115333992B (en) 2022-08-11 2022-08-11 Link resource optimization method based on standard PRP protocol

Country Status (1)

Country Link
CN (1) CN115333992B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729312A (en) * 2009-12-03 2010-06-09 中兴通讯股份有限公司 Method and system for detecting a link based on ARP protocol
CN102387086A (en) * 2011-12-09 2012-03-21 西安电子科技大学 Deep-space network routing method with QoS assurance
WO2016097459A1 (en) * 2014-12-16 2016-06-23 Metso Automation Oy Redundancy in process control system
CN106789438A (en) * 2016-12-29 2017-05-31 杭州迪普科技股份有限公司 A kind of device connectivity detection method and device
CN109787824A (en) * 2019-01-11 2019-05-21 上海凯岸信息科技有限公司 A method of control three-layer network automatically switches
CN110061914A (en) * 2019-04-29 2019-07-26 新华三技术有限公司 A kind of message forwarding method and device
CN110493069A (en) * 2019-09-27 2019-11-22 新华三信息安全技术有限公司 Fault detection method, device, SDN controller and forwarding device
CN110808816A (en) * 2019-11-05 2020-02-18 中国铁道科学研究院集团有限公司通信信号研究所 Railway train-ground redundant wireless data communication method
JP2020048057A (en) * 2018-09-19 2020-03-26 Necプラットフォームズ株式会社 Communication device, communication line selection method and program
KR20200086507A (en) * 2019-01-09 2020-07-17 (주)한드림넷 Ethernet link switching apparatus and operating method thereof
CN112637059A (en) * 2020-12-14 2021-04-09 浙江大学 Service routing method for cross-border service network
CN113709046A (en) * 2021-07-19 2021-11-26 国网上海市电力公司 PRP-based cross-three-layer exchange parallel redundancy method
US11336564B1 (en) * 2021-09-01 2022-05-17 Schweitzer Engineering Laboratories, Inc. Detection of active hosts using parallel redundancy protocol in software defined networks
CN114690616A (en) * 2020-12-29 2022-07-01 霍尼韦尔国际公司 Detecting path failures in parallel redundancy protocol communications
CN114785732A (en) * 2022-05-05 2022-07-22 烽火通信科技股份有限公司 Method and system for P2MP multicast tunnel path protection

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10044644B2 (en) * 2015-12-31 2018-08-07 Abb Schweiz Ag Parallel redundancy protocol over wide area networks
US20180219798A1 (en) * 2017-01-31 2018-08-02 Cooper Technologies Company Parallel Redundancy Protocol ("PRP") Bridge For A Single Attached Device
US11258888B2 (en) * 2019-11-11 2022-02-22 Cisco Technology, Inc. Parallel redundancy protocol (PRP) using non-overlapping resource unit (RU) groupings on a radio

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729312A (en) * 2009-12-03 2010-06-09 中兴通讯股份有限公司 Method and system for detecting a link based on ARP protocol
CN102387086A (en) * 2011-12-09 2012-03-21 西安电子科技大学 Deep-space network routing method with QoS assurance
WO2016097459A1 (en) * 2014-12-16 2016-06-23 Metso Automation Oy Redundancy in process control system
CN106789438A (en) * 2016-12-29 2017-05-31 杭州迪普科技股份有限公司 A kind of device connectivity detection method and device
JP2020048057A (en) * 2018-09-19 2020-03-26 Necプラットフォームズ株式会社 Communication device, communication line selection method and program
KR20200086507A (en) * 2019-01-09 2020-07-17 (주)한드림넷 Ethernet link switching apparatus and operating method thereof
CN109787824A (en) * 2019-01-11 2019-05-21 上海凯岸信息科技有限公司 A method of control three-layer network automatically switches
CN110061914A (en) * 2019-04-29 2019-07-26 新华三技术有限公司 A kind of message forwarding method and device
CN110493069A (en) * 2019-09-27 2019-11-22 新华三信息安全技术有限公司 Fault detection method, device, SDN controller and forwarding device
CN110808816A (en) * 2019-11-05 2020-02-18 中国铁道科学研究院集团有限公司通信信号研究所 Railway train-ground redundant wireless data communication method
CN112637059A (en) * 2020-12-14 2021-04-09 浙江大学 Service routing method for cross-border service network
CN114690616A (en) * 2020-12-29 2022-07-01 霍尼韦尔国际公司 Detecting path failures in parallel redundancy protocol communications
CN113709046A (en) * 2021-07-19 2021-11-26 国网上海市电力公司 PRP-based cross-three-layer exchange parallel redundancy method
US11336564B1 (en) * 2021-09-01 2022-05-17 Schweitzer Engineering Laboratories, Inc. Detection of active hosts using parallel redundancy protocol in software defined networks
CN114785732A (en) * 2022-05-05 2022-07-22 烽火通信科技股份有限公司 Method and system for P2MP multicast tunnel path protection

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
列车通信网络并行冗余方法与协议的研究;靳建宇,王立德,简捷,申萍,刘彪;铁道学报;第39卷(第12期);第76-80页,图5 *
智能变电站过程层冗余网络监视方法研究与实现;庄研;李成栋;;机电信息(第15期);全文 *

Also Published As

Publication number Publication date
CN115333992A (en) 2022-11-11

Similar Documents

Publication Publication Date Title
EP0903906B1 (en) Devices for adaptive control of transport-layer connections between mobile and fixed hosts
US7590756B2 (en) Method and system for transferring data in a communications network using redundant communication paths
WO2011028038A2 (en) Apparatus and method for transmitting a mac pdu based on mac header type information
EP2100406B1 (en) Method and apparatus for implementing multicast routing
WO2009116788A1 (en) Method of transmitting rlc data
US20020093960A1 (en) Multicast routing method and an apparatus for routing a multicast packet
US7965625B2 (en) Communication device and logical link abnormality detection method
US20050036497A1 (en) Frame transmission/reception system, frame transmitting apparatus, frame receiving apparatus, and frame transmission/reception method
US7778204B2 (en) Automatic maintenance of a distributed source tree (DST) network
JP4653163B2 (en) Method and device for identifying duplicate packet during handover
CN115333992B (en) Link resource optimization method based on standard PRP protocol
US7002959B2 (en) Packet communication method, node apparatus and packet communication system
US7433368B2 (en) Signaling transport converter
US8605573B2 (en) Autolearning network link protection device
JP4591338B2 (en) Communications system
US20090201931A1 (en) Method and apparatus for transferring IP transmission session
US20080242303A1 (en) Radio communication method, radio mobile device and radio base station accommodation apparatus
US20090116454A1 (en) Communication device, communication system, and handover method
JPH09270822A (en) Packet communication path test method
JPH09153916A (en) Inter-network connection method
JP3866242B2 (en) Transmission equipment
JP2001136209A (en) Communication apparatus
WO2023166667A1 (en) Wireless communication system
CN110572317B (en) Method and system for realizing dynamic ARP hot backup in telecommunication network
JP4272612B2 (en) Transfer method and edge switch

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