CN115333992A - 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
CN115333992A
CN115333992A CN202210963472.1A CN202210963472A CN115333992A CN 115333992 A CN115333992 A CN 115333992A CN 202210963472 A CN202210963472 A CN 202210963472A CN 115333992 A CN115333992 A CN 115333992A
Authority
CN
China
Prior art keywords
prp
module
link
request packet
communication
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
CN202210963472.1A
Other languages
Chinese (zh)
Other versions
CN115333992B (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

Images

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: in a communication flow of a PC terminal for handshaking link establishment through a PRP module and a network switching module, recording network switching module information of communication data in a communication link which preferentially reaches or does not make an error through the PRP module; and step two, in the process of data communication between the PC terminals, selecting the network link recorded with the network exchange module information through the PRP module to transmit data. The invention provides a link resource optimization method based on a standard PRP protocol, which optimizes and improves the communication flow among a PC terminal, a PRP module and a network exchange module in the existing standard PRP protocol flow, so that the data transmission is not carried out on the other link during communication under the condition of ensuring the smoothness of one transmission link, thereby reducing the condition of wasting link resources in the message transmission process.

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 a terminal device communication scenario.
Background
The PRP protocol is a redundancy protocol operating in a terminal device, one terminal device is connected to two networks independent of each other and having the same network topology, and the two networks operate in parallel. Because there is no direct connection between the two networks, if one of the networks fails, the other network will not be affected.
Taking fig. 2-3 as an example, in the standard PRP protocol, the messages in the ping process messages from PC1 to PC2 pass through a and B, respectively, and the specific flow includes: the PRP sending side copies one original information frame, adds a section of specific field (RCT) in two frames to form a PRP information frame, respectively sends out the PRP information frame from two ports of the PRP sending side (each port respectively corresponds to a switch A and a switch B), reaches the same PRP receiving side after passing through two independent switches A and B, after receiving the two PRP information frames from the two ports, the PRP receiving side can identify a certain PRP frame according to the MAC of a source (namely PC 1) and the frame serial number in the RCT, discards the later-arriving information frame, only reserves one first-arriving information frame, eliminates the specific field (RCT), reduces the original information to the original information, and transmits the original information to an upper layer (PC 2). Therefore, in the whole process of the PC1 ping the switch a, since the lines 2 and 4 connected to the switch a and the lines 3 and 5 connected to the switch B all transmit the related messages, when the lines 2 and 4 connected to the switch a preferably arrive and there is no information error, the link resource waste is caused by the discarding of the transmitted messages on the lines 3 and 5 connected to the switch B.
Disclosure of Invention
An object of the present invention is to solve at least the above problems and/or disadvantages and to provide at least the advantages described hereinafter.
To achieve these objects and other advantages in accordance with the purpose of the invention, there is provided a link resource optimization method based on a standard PRP protocol, including:
in a communication flow of a PC terminal for handshaking link establishment through a PRP module and a network switching module, recording network switching module information of communication data in a communication link which preferentially reaches or does not make an error through the PRP module;
and step two, in the process of data communication between the PC terminals, selecting the network link recorded with the network exchange module information through the PRP module to transmit data.
Preferably, in the step one, the IP of the network switching module on each network link is identified through a handshake link-building process, and the identification process is configured to include:
s1, a sending terminal PC sends an ARP request packet to a corresponding sending terminal PRP module;
s2, after receiving the ARP request packet, the PRP module at the sending end marks a mark field on the ARP request packet and sends the ARP request packet to 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 the receiver of the ARP request packet, if so, the mark field in the ARP request packet is removed, and the ARP request packet is returned to the sending end PRP module;
and S4, the PRP module of the sending 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 sending end.
Preferably, in the second step, the data communication between the PC terminals includes communication of a PING request packet between the sending terminal PC and the receiving terminal PC, and the communication method includes:
s5, after receiving the ARP request packet transmitted by the PRP module of the sending end, the PC of the sending terminal sends a corresponding PING request packet to the PRP module of the sending end;
s6, after receiving the PING request packet, the sending end PRP module matches the PING request packet with the information of the recording network switching module, if the matching is successful, the PING request packet is not processed, the PING request packet is sent out through the recorded network switching module port, and relevant information is not sent to the unrecorded network switching module port;
if the matching fails, the sending-end PRP module marks the corresponding PING request packet with an RCT field, and simultaneously sends related information to the unrecorded and recorded network switching module ports.
The invention at least comprises the following beneficial effects: in the existing standard PRP protocol flow, the communication flow of the PC terminal, the PRP module and the network exchange module is optimized and improved, so that the data transmission is not carried out on the other link during communication under the condition of ensuring the smoothness of one transmission link, and the condition of wasting link resources in the message transmission process is reduced.
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 communication between a PC terminal and a PRP switch after optimization and improvement of the invention;
FIG. 2 is a schematic communication flow diagram of a standard PRP protocol in the prior art;
fig. 3 is a schematic flow chart illustrating a variation of a PRP packet in a standard PRP protocol in the prior art.
Detailed Description
The present invention is further described in detail below with reference to the attached drawings so that those skilled in the art can implement the invention by referring to the description text.
The invention provides a link resource optimization method based on a standard PRP protocol, which comprises the following steps:
in a communication flow of a PC terminal for handshaking link establishment through a PRP module and a network switching module, recording network switching module information of communication data in a communication link which preferentially reaches or does not make an error through the PRP module;
and step two, in the process of data communication between the PC terminals, selecting the network link recorded with the network exchange module information through the PRP module to transmit data. 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 judgment processing function, a communication link with data arriving preferentially or without errors is selected as a preset communication link in the communication process, and a medium network switching module of the unselected communication link does not have a large number of data packets to be transmitted from the medium network switching module, and the link resource is saved.
In conjunction with the standard PRP protocol flow of fig. 2, the method for 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 management of the IP addresses of the switch a and the switch B by the PC terminal, the process is configured to include:
1. PC1 sends ARP Request message to PRP, the message has no RCT field;
2. in the processing process, when the message reaches the sending end PRP from the PC1, the sending end PRP copies the original message and marks RCT fields of the A and B switches, wherein the RCT fields comprise Sequence Number, LSDU size, lan Number and PRP Suffixg;
wherein, the Sequence Number is a 16-bit frame Sequence Number, and the Sequence numbers of the original frame and the copy frame are consistent and will increase with the sending of the PRP frame;
LSDU size is 12-bit Payload size, identifying the total byte size of Payload field + RCT field;
lan Id is a 4-bit subnet ID, and respectively represents two independent subnets;
the PRP Suffixg is a 16-bit PRP information frame suffix, and after the RCT field is marked on the two messages, the message with the LAN Id of A is sent through the 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 in this way;
3. the switch A receives the message and then forwards the message, and meanwhile, 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, and the message has no RCT field;
the switch B receives the ARP Request IP address, if not, forwards the ARP Request IP address, and directly discards the ARP Request message.
4. When PRP receives message without RCT field from link 2, recording MAC, IP information and source port (i.e. MAC and IP information of switch A and port connected to link 2) of the message and transmitting the message to PC1 via link 1;
secondly, in the ping process processing of the PC1 to A and B, the flow comprises the following steps:
1. the PC1 receives and processes the message, and then sends a PING Request message;
2. when the message is sent to the PRP, the PRP checks the message to be matched with the previously recorded MAC and IP information, if the matching is successful, 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 cannot be sent on the link 3, so that the link bandwidth resource is saved.
If the matching fails, the sending end PRP module marks the corresponding PING request packet with an RCT field and sends message information to a link 2 and a link 3;
specifically, the flow of its work may include:
1. PC1 sends ARP Request message to PRP, the message has no RCT field;
2. the PRP marks RCT field on the message and then respectively sends out from the link 2 and the link 3;
3. after receiving the message, the switch A finds that the ARP Request IP address is the ARP Request IP address, then sends an ARP Response message to the PRP on the link 2 after receiving and processing the message, and the message has no RCT field;
4. after receiving the message, the switch B finds that the ARP Request IP address is not the ARP Request message and directly discards the ARP Request message;
5. when receiving a message without an RCT field transmitted by a link 2, the PRP records MAC and IP information and source ports (namely the MAC and IP information of a switch A and a port connected with the link 2) of the message and transmits the message to a PC1 through a link 1;
6. PC1 receives and processes the message, and then sends 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 matching is successful, 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 not successful, the RCT field is marked on the message and then the message is respectively sent from the link 2 and the link 3.
It can be seen from the above flow that the present invention effectively reduces the traffic sent to the switch in the PRP link, and saves link resources.
The above scheme is merely illustrative of a preferred example, and is not limiting. In the implementation of the invention, appropriate replacement and/or modification can be carried out according to the requirements of users.
The number of apparatuses and the scale of the process described herein are intended to simplify the description of the present invention. Applications, modifications and variations of the present invention will be apparent to those skilled in the art.
While embodiments of the invention have been disclosed above, it is not intended to be limited to the uses set forth in the specification and examples. It can be applied to all kinds of fields suitable for the present invention. Additional modifications will readily occur to those skilled in the art. It is therefore intended that the invention not be limited to the exact details and illustrations described and illustrated herein, but fall within the scope of the appended claims and equivalents thereof.

Claims (3)

1. A method for optimizing link resources based on a standard PRP protocol is characterized by comprising the following steps:
in the communication process of handshaking link establishment of a PC terminal through a PRP module and a network switching module, the PRP module records the information of the network switching module in a communication link where communication data preferentially arrives or does not have errors;
and step two, in the process of data communication between the PC terminals, selecting the network link recorded with the network exchange module information through the PRP module to transmit data.
2. The method for optimizing link resources according to claim 1, wherein in step one, the identification procedure of the IP of the network switching module on each network link is performed through a handshake link-building 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 receiving the ARP request packet, the PRP module at the sending end marks a mark field on the ARP request packet and sends the ARP request packet to 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 the receiver of the ARP request packet, if so, the mark field in the ARP request packet is removed, and the ARP request packet is returned to the sending end PRP module;
and S4, the PRP module of the sending 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 sending end.
3. The method for optimizing link resources based on a standard PRP protocol according to claim 2, wherein in the step two, the data communication between the PC terminals includes a communication of a PING request packet between the sending terminal PC and the receiving terminal PC, and the communication mode is configured to include:
s5, after receiving the ARP request packet transmitted by the PRP module of the sending end, the PC of the sending terminal sends a corresponding PING request packet to the PRP module of the sending end;
s6, after receiving the PING request packet, the sending end PRP module matches the PING request packet with the information of the recording network switching module, if the matching is successful, the PING request packet is not processed, the PING request packet is sent out through the recorded network switching module port, and relevant information is not sent to the unrecorded network switching module port;
if the matching fails, the sending-end PRP module marks the corresponding PING request packet with an RCT field, and simultaneously sends related information to the unrecorded and recorded network switching module ports.
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 true CN115333992A (en) 2022-11-11
CN115333992B 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 (18)

* 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
US20170195260A1 (en) * 2015-12-31 2017-07-06 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
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
US20210144239A1 (en) * 2019-11-11 2021-05-13 Cisco Technology, Inc. Parallel redundancy protocol (prp) using non-overlapping resource unit (ru) groupings on a radio
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

Patent Citations (18)

* 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
US20170195260A1 (en) * 2015-12-31 2017-07-06 Abb Schweiz Ag Parallel redundancy protocol over wide area networks
CN106789438A (en) * 2016-12-29 2017-05-31 杭州迪普科技股份有限公司 A kind of device connectivity detection method and device
US20180219798A1 (en) * 2017-01-31 2018-08-02 Cooper Technologies Company Parallel Redundancy Protocol ("PRP") Bridge For A Single Attached 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
US20210144239A1 (en) * 2019-11-11 2021-05-13 Cisco Technology, Inc. Parallel redundancy protocol (prp) using non-overlapping resource unit (ru) groupings on a radio
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
庄研;李成栋;: "智能变电站过程层冗余网络监视方法研究与实现", 机电信息, no. 15 *
靳建宇,王立德,简捷,申萍,刘彪: "列车通信网络并行冗余方法与协议的研究", 铁道学报, vol. 39, no. 12, pages 76 - 80 *

Also Published As

Publication number Publication date
CN115333992B (en) 2024-01-23

Similar Documents

Publication Publication Date Title
US6907037B2 (en) Multicast routing method and an apparatus for routing a multicast packet
US8144709B2 (en) Method, system and computer processing an IP packet, routing a structured data carrier, preventing broadcast storms, load-balancing and converting a full broadcast IP packet
US7590756B2 (en) Method and system for transferring data in a communications network using redundant communication paths
US8089967B2 (en) Modification of a switching table of an internet protocol switch
US7286520B2 (en) Mobile terminal equipment and packet communication method between terminals
EP0903906B1 (en) Devices for adaptive control of transport-layer connections between mobile and fixed hosts
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
EP1693996B1 (en) Automatic discovery of psuedo-wire peer addresses in ethernet-based networks
US8135013B2 (en) Internet protocol switch and use of the switch for switching a frame
US6212185B1 (en) Multiple network address resolution
US20110219126A1 (en) Mobile terminal, forwarding intermediate node and mobile communications system
CN113473538B (en) Wireless convergence network-based shunt control method and system
KR20010018824A (en) Layer-3 ip switching apparatus using layer-2 switch in atmor ethernet and method thereof
CN115333992B (en) Link resource optimization method based on standard PRP protocol
CN101047716B (en) Method and device of IP transmission session transport
US20090116454A1 (en) Communication device, communication system, and handover method
Cisco IP Commands
JPH088917A (en) Connection establishing and interruption method for atm lan
CN112994985B (en) Optimization method and system for transmission link detection
WO2023166667A1 (en) Wireless communication system
JP3189755B2 (en) LAN emulation system
JP3866242B2 (en) Transmission equipment
JP2003158773A (en) Message transfer method, message relay device, relay wireless base station and system using these
KR20030021598A (en) Method of IP address managing in router which is acting NAT of frame relay

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