CN103441938B - Port switching method and communication equipment - Google Patents

Port switching method and communication equipment Download PDF

Info

Publication number
CN103441938B
CN103441938B CN201310381694.3A CN201310381694A CN103441938B CN 103441938 B CN103441938 B CN 103441938B CN 201310381694 A CN201310381694 A CN 201310381694A CN 103441938 B CN103441938 B CN 103441938B
Authority
CN
China
Prior art keywords
port
standby
communication
multicast
message
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
CN201310381694.3A
Other languages
Chinese (zh)
Other versions
CN103441938A (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.)
CRRC Zhuzhou Institute Co Ltd
Original Assignee
CSR Zhuzou Institute 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 CSR Zhuzou Institute Co Ltd filed Critical CSR Zhuzou Institute Co Ltd
Priority to CN201310381694.3A priority Critical patent/CN103441938B/en
Publication of CN103441938A publication Critical patent/CN103441938A/en
Application granted granted Critical
Publication of CN103441938B publication Critical patent/CN103441938B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

An embodiment of the invention provides a port switching method and communication equipment. The method includes the following steps: a redundant module starts a standby port, and a multicast datagram which is searched out is forwarded to the standby port so that the standby port can carry out multicast operations; when communication of a main port is cut off, the redundant module switches to a declaration port of a network side in a multicast group through the standby port, and the main port communicates with the network side in the multicast group through the standby port. The communication equipment comprises the redundant module which is used for starting the standby port, forwarding the multicast datagram which is searched out to the standby port and switching to the declaration port of the network side in the multicast group through the standby port when the main port is cut off, the main port used for communicating with the network side, and the standby port used for carrying out the multicast operations and communicating with the network side after the declaration port is switched.

Description

A kind of port switching method and a kind of communication equipment
Technical field
The present invention relates to network communication technology field, particularly a kind of port switching method and a kind of communication equipment.
Background technology
Require that in higher field, communication equipment, with the process of network-side communication, is often designed to the form of multiport redundancy in network reliability.Under normal operating conditions, communication equipment is communicated with network side by master port, once master port breaks down, at any time communication can be switched to other ports and carry out.And present stage communication equipment with the communication process of network side in the middle of, utilize multicast group technology widely.Multicast group comprises the communication equipment that multiple needs and network side carry out communicating, and each communication equipment represents Self address with master port, adds in multicast group and carries out the mutual of data.In the process that port switches, communication equipment makes standby port start at once and adds multicast group and represents himself address, replaces master port to communicate.
But in the prior art, the process that standby port adds multicast group causes certain time delay, especially a communication equipment adds under the situation of multiple multicast group simultaneously, standby port must rejoin all multicast group, the time delay adding each multicast group will cause accumulation, reach the magnitude hindering proper communication.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of port switching method and a kind of communication equipment, described method makes standby port in running order all the time, and add with master port simultaneously or exit multicast group, the time delay starting and add multicast group to avoid in handoff procedure standby port and bring.
For achieving the above object, the present invention has following technical scheme:
A kind of port switching method, said method comprising the steps of:
Redundant module starts standby port, and the multicast message searched is forwarded to standby port, performs multicast action to make standby port;
When master port communication disruption, then redundant module is switched to the network side statement port in multicast group by standby port, and utilizes network-side communication in standby port and multicast group.
Described multicast message is specially:
Join message or exit message;
Then when described multicast message is for joining message, then standby port adds multicast group;
When described multicast message is for exiting message, then standby port exits multicast group.
Described redundant module is specially to the network side statement port switching in multicast group by standby port:
It is communication port that redundant module selectes standby port, is sent the address resolution bag carrying master port address, to make network side to communication port multicast packet by communication port to network side.
It is that communication port is specially that described redundant module selectes standby port:
Redundant module provides communication protocol to standby port, and the address of standby port is set to master port address.
Described method also comprises:
When two or more standby ports of existence, redundant module selects a standby port to be communication port according to default mechanism;
Described default mechanism is chance mechanism or mark ordering mechanism.
A kind of communication equipment, described communication equipment comprises:
Redundant module, for starting standby port, is forwarded to standby port by the multicast message searched; When master port communication disruption, then switched to the network side statement port in multicast group by standby port;
Master port, for network-side communication;
Standby port, for performing multicast action, and switches rear and network-side communication at statement port.
Described multicast message is specially:
Join message or exit message;
Then when described multicast message is for joining message, then standby port adds multicast group;
When described multicast message is for exiting message, then standby port exits multicast group.
Described redundant module comprises:
Choosing unit, is communication port for selected standby port;
Resolving bag unit, sending the address resolution bag carrying master port address to network side, to make network side to communication port multicast packet for utilizing communication port.
Described unit of choosing comprises;
Agreement subelement, for providing communication protocol to standby port;
Address subelement, for being set to master port address by the address of standby port.
When there are two or more standby ports, then choose unit described in and also comprise:
Mechanism subelement, for selecting a standby port to be communication port according to default mechanism; Described default mechanism is chance mechanism or mark ordering mechanism.
As seen through the above technical solutions, the beneficial effect that the present invention exists is: before switching at port, start standby port, and to standby port forwarding multicasting message, make standby port in running order all the time and synchronously add or exit multicast group with master port; Avoid standby port when port switches start and add the time delay that multicast group brings, shorten the time of communication disruption in port handoff procedure, avoid port and switch the impact that communication is caused.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is method flow diagram described in the embodiment of the present invention;
Fig. 2 is communication apparatus construction schematic diagram described in the embodiment of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the present invention, premised on communication equipment communicates with network side, communication mode is therebetween specially multicast.Namely network side and at least one communication equipment are in the middle of multicast group, communication equipment multicast packet that can be all in multicast group.Equally, a network equipment also can add multiple multicast group, communicates with multiple network side.Network side can utilize router or switch to realize communication.
In communication equipment, redundancy is adopted to arrange with the port of network-side communication, namely under normal operating conditions, the address of master port and communication equipment address, and the protocol stack of communication equipment provides communication protocol to master port, makes to communicate with network side; Standby port is at least one, and when master port normally works, standby port does not carry out data interaction with network side.
The present invention, under above-mentioned prerequisite, provides a kind of method that port switches.
Shown in Figure 1 is the specific embodiment of the method for the invention, in the present embodiment, said method comprising the steps of:
Step 101, redundant module start standby port, and the multicast message searched is forwarded to standby port, perform multicast action to make standby port.
Described redundant module is the functional module being responsible for coordinating master port and standby port in the present embodiment.Master port is inwardly all connected with redundant module with standby port, and is outwards all connected to network side.Be different from standby port when master port works in prior art and be in the scheme of closed condition, in the present embodiment, standby port just started by redundant module before port switches.Redundancy port can start by standby port while startup master port.
Although standby port does not participate in communication when master port normally works, in the present embodiment, standby port is by the execution multicast action synchronous with master port.Described multicast action mainly refers to the action adding multicast group or exit multicast group.In the middle of existing multicasting technology, when master port adds or exit multicast group, will inevitably the multicast message of network side in receiving group group.The redundant module be connected with master port and real-time search multicast message, and multicast message is forwarded to standby port.Standby port receiving group message can be synchronous with master port add or exit multicast group.When standby port is in master port in identical multicast group from start to finish, just without the need to now adding one or more multicast group at master port place when port switches, port handoff procedure is also just without the need to experiencing the time delay adding multicast group and bring.
It should be noted that, since redundancy port needs to send multicast message to standby port, then corresponding standby port also must be set up a mailing address in advance.But the address of standby port can not with the master port address conflict of other communication equipments in its master port address (address of master port address i.e. communication equipment itself) or multicast group, otherwise the proper communication of communication equipment and network side must be hindered.So standby port address need be set to idle address.
Described multicast message is specially: join message or exit message; When described multicast message is for joining message, then standby port adds multicast group; When described multicast message is for exiting message, then standby port exits multicast group.
This step is the preparation process that described port switches.
Step 102, when master port communication disruption, then redundant module is switched to the network side statement port in multicast group by standby port, and utilizes network-side communication in standby port and multicast group.
When master port because any fault causes communication disruption, then described port handoff procedure gets started.Namely redundant module replaces master port to continue communication with standby port, has been in identical multicast group, so only need state that change can directly communicate to network side, without the need to other any process owing to having made standby port and master port in a step 101.
State described in the present embodiment that port switches for network side, with regard to being to make network side to find in multicast group, a new port has possessed the address of this communication equipment to meaning, and network side thinks that this port represents this communication equipment and communicates with it.For communication equipment itself, the concrete mode that port switches statement is: it is communication port that redundant module selectes standby port, is sent the address resolution bag carrying master port address by communication port to network side.After network side receives described address resolution bag, namely think that the port sending this address resolution bag has possessed the address of this communication equipment, namely this port represents this communication equipment.
For standby port, be chosen to be the change that communication port means its identity.In fact master port and standby port are often not distinct from hardware configuration.But master port will be tied to the protocol stack of communication equipment and then be provided communication protocol by redundant module, and the address of the address that is set up of master port and communication equipment itself; Just the function with network-side communication has been possessed based on above-mentioned 2 master ports.The change of standby port identity is same relevant to above-mentioned 2 contents.Concrete, standby port is chosen to be communication port (also can be understood as is new master port) namely: redundant module provides communication protocol to standby port, and the address of standby port is set to master port address.When a standby port has possessed the address of communication protocol and communication equipment, so this standby port is by as broad as long with original master port, and the master port of fault interrupting can be replaced to continue to communicate with network side.
Standby port identity change and send port switch statement this process consuming time extremely short, almost discover in the communications less than, do not hinder normally carrying out of communication process completely.
Also it should be noted that, when two or more standby ports of existence, redundant module selects a standby port to be communication port according to default mechanism.That is when the quantity of described standby port is greater than 1, then, when selected a certain standby port is communication port, redundant module only selects one of them, and namely redundant module needs to select according to a default mechanism herein.Described default mechanism does not limit in the present embodiment, but generally speaking the most frequently usedly has following two kinds of mechanism: one is chance mechanism; Another is mark ordering mechanism, be in advance namely all standby port according to prioritizing, get priority the highest standby port during selection.
As seen through the above technical solutions, the beneficial effect that the present embodiment exists is: before switching at port, start standby port, and to standby port forwarding multicasting message, make standby port in running order all the time and synchronously add or exit multicast group with master port; Avoid standby port when port switches start and add the time delay that multicast group brings, shorten the time of communication disruption in port handoff procedure, avoid port and switch the impact that communication is caused.
Shown in Figure 2 is a specific embodiment of communication equipment of the present invention, and described communication equipment can realize carrying out port switching according to method described in embodiment illustrated in fig. 1.The two technical scheme is consistent in essence.Described communication equipment specifically comprises:
Redundant module, for starting standby port, is forwarded to standby port by the multicast message searched; When master port communication disruption, then switched to the network side statement port in multicast group by standby port;
Described redundant module comprises: choose unit, is communication port for selected standby port;
Described unit of choosing comprises; Agreement subelement, for providing communication protocol to standby port; Address subelement, for being set to master port address by the address of standby port.
When there are two or more standby ports, then choose unit described in and also comprise: machine-processed subelement, for selecting a standby port to be communication port according to default mechanism; Described default mechanism is chance mechanism or mark ordering mechanism.
Resolving bag unit, sending the address resolution bag carrying master port address to network side, to make network side to communication port multicast packet for utilizing communication port.
Master port, for network-side communication;
Standby port, for performing multicast action, and switches rear and network-side communication at statement port.
Described multicast message is specially: join message or exit message; Then when described multicast message is for joining message, then standby port adds multicast group; When described multicast message is for exiting message, then standby port exits multicast group.
As seen through the above technical solutions, the beneficial effect that the present embodiment exists is: before switching at port, start standby port, and to standby port forwarding multicasting message, make standby port in running order all the time and synchronously add or exit multicast group with master port; Avoid standby port when port switches start and add the time delay that multicast group brings, shorten the time of communication disruption in port handoff procedure, avoid port and switch the impact that communication is caused.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (8)

1. a port switching method, is characterized in that, said method comprising the steps of:
Redundant module starts standby port, and the multicast message searched is forwarded to standby port, performs multicast action to make standby port;
When master port communication disruption, then redundant module is switched to the network side statement port in multicast group by standby port, and utilizes network-side communication in standby port and multicast group;
Described multicast message is specially:
Join message or exit message;
Then when described multicast message is for joining message, then standby port adds multicast group;
When described multicast message is for exiting message, then standby port exits multicast group.
2. method according to claim 1, is characterized in that, described redundant module to be switched to the network side statement port in multicast group by standby port and is specially:
It is communication port that redundant module selectes standby port, is sent the address resolution bag carrying master port address, to make network side to communication port multicast by communication port to network side
Data.
3. method according to claim 2, it is characterized in that, it is that communication port is specially that described redundant module selectes standby port:
Redundant module provides communication protocol to standby port, and the address of standby port is set to master port address.
4. method according to Claims 2 or 3, is characterized in that, described method also comprises:
When two or more standby ports of existence, redundant module selects a standby port to be communication port according to default mechanism;
Described default mechanism is chance mechanism or mark ordering mechanism.
5. a communication equipment, is characterized in that, described communication equipment comprises:
Redundant module, for starting standby port, is forwarded to standby port by the multicast message searched; When master port communication disruption, then switched to the network side statement port in multicast group by standby port;
Master port, for network-side communication;
Standby port, for performing multicast action, and switches rear and network-side communication at statement port;
Described multicast message is specially:
Join message or exit message;
Then when described multicast message is for joining message, then standby port adds multicast group;
When described multicast message is for exiting message, then standby port exits multicast group.
6. communication equipment according to claim 5, it is characterized in that, described redundant module comprises:
Choosing unit, is communication port for selected standby port;
Resolving bag unit, sending the address resolution bag carrying master port address to network side, to make network side to communication port multicast packet for utilizing communication port.
7. communication equipment according to claim 6, is characterized in that, described in choose unit and comprise;
Agreement subelement, for providing communication protocol to standby port;
Address subelement, for being set to master port address by the address of standby port.
8. communication equipment according to claim 6 or 7, is characterized in that, when there are two or more standby ports, then chooses unit described in and also comprises:
Mechanism subelement, for selecting a standby port to be communication port according to default mechanism; Described default mechanism is chance mechanism or mark ordering mechanism.
CN201310381694.3A 2013-08-28 2013-08-28 Port switching method and communication equipment Active CN103441938B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310381694.3A CN103441938B (en) 2013-08-28 2013-08-28 Port switching method and communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310381694.3A CN103441938B (en) 2013-08-28 2013-08-28 Port switching method and communication equipment

Publications (2)

Publication Number Publication Date
CN103441938A CN103441938A (en) 2013-12-11
CN103441938B true CN103441938B (en) 2015-05-13

Family

ID=49695604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310381694.3A Active CN103441938B (en) 2013-08-28 2013-08-28 Port switching method and communication equipment

Country Status (1)

Country Link
CN (1) CN103441938B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253747B (en) * 2014-10-17 2018-05-18 杭州晨晓科技股份有限公司 A kind of message carries out 1 in link aggregation group:The transmission method and device of 1 protection
CN106341249A (en) * 2015-07-10 2017-01-18 中兴通讯股份有限公司 Redundant port switching method and device
CN105353751B (en) * 2015-12-14 2018-01-30 重庆川仪自动化股份有限公司 HMI controller redundancy switch-over control methods
CN109218187B (en) * 2018-09-30 2020-12-01 中国船舶重工集团公司第七0九研究所 Method and device for updating two-layer multicast forwarding table
CN109150766A (en) * 2018-10-19 2019-01-04 泰华智慧产业集团股份有限公司 The method and apparatus of dynamic addressing server in local area network based on UDP multicast
CN112543143B (en) * 2020-11-30 2022-08-26 苏州盛科通信股份有限公司 Method, chip, equipment and storage medium for multicast service fast protection switching

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001165A (en) * 2006-01-11 2007-07-18 大唐移动通信设备有限公司 Network failure recovery method with redundancy port
CN101212287A (en) * 2006-12-30 2008-07-02 北京三星通信技术研究有限公司 Port based redundant backup method
CN101841432A (en) * 2010-05-26 2010-09-22 中兴通讯股份有限公司 Port backup method, device and system for service access router

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453282A (en) * 2007-11-30 2009-06-10 华为技术有限公司 Time clock distribution method, equipment and system
CN101471898B (en) * 2007-12-28 2011-12-28 华为技术有限公司 Protection method, system and virtual access edge node for access network
CN101534257B (en) * 2009-04-16 2012-05-23 华为技术有限公司 Method, system and equipment for processing message
CN101594258A (en) * 2009-07-06 2009-12-02 杭州华三通信技术有限公司 The method of real-time processing data, system and equipment in a kind of double-machine standby technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001165A (en) * 2006-01-11 2007-07-18 大唐移动通信设备有限公司 Network failure recovery method with redundancy port
CN101212287A (en) * 2006-12-30 2008-07-02 北京三星通信技术研究有限公司 Port based redundant backup method
CN101841432A (en) * 2010-05-26 2010-09-22 中兴通讯股份有限公司 Port backup method, device and system for service access router

Also Published As

Publication number Publication date
CN103441938A (en) 2013-12-11

Similar Documents

Publication Publication Date Title
CN103441938B (en) Port switching method and communication equipment
US9178811B2 (en) Method, apparatus and system for generating label forwarding table on ring topology
CN101141330B (en) Method, system and equipment to establish BFD detection for LSP tunnel
CN100558111C (en) Metro Ethernet provides reliability processing method and the system under the multi-service networking
EP3340550B1 (en) Service message multicast method and device
CN100512292C (en) Apparatus and method of real-time recovering service
US8218430B2 (en) Method, device and system for protecting multicast traffic
EP2633649B1 (en) Dual-homing for ethernet line services
CN100561977C (en) Fast rerouting method during a kind of a plurality of ports share transmission link
CN102025646B (en) Link switching method and device thereof
US20170155577A1 (en) Virtual Router Redundancy Protocol Fault Detection Method and Routing Device
CN102282805B (en) Method for service protection and access device
CN101035009A (en) Multicast traffic redundancy protection method and device
US20160301571A1 (en) Method and Device for Monitoring OAM Performance
CN102638389A (en) Redundancy backup method and system of TRILL (Transparent Interconnection over Lots of Links) network
CN101252492B (en) Method and apparatus for accessing multi-protocol label switch virtual special-purpose network
CN102142948A (en) Data forwarding method, device and system
CN102611629B (en) Fast re-route method and device in MPLS (Multi-Protocol Label Switching)
CN101610535A (en) Multilink direct continuous show scape guarantees the method, system and device of BFD conversation stability down
CN101127724A (en) Multicast system, device and method based on 802.1ah protocol in MAN Ethernet network
US20170359253A1 (en) Link Protection Method In SDN, Switching Device, and Network Controller
CN102904705B (en) Method and equipment for synchronizing batch of stacking systems
CN107154896B (en) Data transmission method and forwarding equipment
US20230155921A1 (en) Multicast packet sending method, apparatus, and system
CN102611566B (en) Method and device for recovering customer service

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