WO2014176975A1 - Drni中同一端内系统之间交互信息的方法和系统 - Google Patents

Drni中同一端内系统之间交互信息的方法和系统 Download PDF

Info

Publication number
WO2014176975A1
WO2014176975A1 PCT/CN2014/075462 CN2014075462W WO2014176975A1 WO 2014176975 A1 WO2014176975 A1 WO 2014176975A1 CN 2014075462 W CN2014075462 W CN 2014075462W WO 2014176975 A1 WO2014176975 A1 WO 2014176975A1
Authority
WO
WIPO (PCT)
Prior art keywords
neighboring
key value
session
operation key
state machine
Prior art date
Application number
PCT/CN2014/075462
Other languages
English (en)
French (fr)
Inventor
敖婷
喻敬海
魏月华
许雪琼
郭锥
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP14791616.7A priority Critical patent/EP2981026B1/en
Priority to US14/787,596 priority patent/US9749186B2/en
Priority to JP2016510922A priority patent/JP6105155B2/ja
Publication of WO2014176975A1 publication Critical patent/WO2014176975A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • 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
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/41Flow control; Congestion control by acting on aggregated flows or links
    • 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/14Multichannel or multilink protocols
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • the present invention relates to a network communication protection technology, and more particularly to a method and system for interacting information between systems in the same end in a DRNK Distributed Resilient Network Interconnected (Distributed Resilient Network Interconnected).
  • the protection can be implemented by using port aggregation.
  • the common method can be port aggregation or loop protection.
  • link aggregation currently supports port aggregation on a node, so it can only be used for link protection. Nodes on the network edge interface are protected.
  • the link aggregation group DRNI is used to implement the dual-redundant network interconnection protection requirement of the link and the node, that is, the endpoint of the aggregation group is composed of multiple nodes, and the aggregation links of the multiple nodes form a link aggregation group ( Link Aggregation Group, LAG for short.
  • the two endpoints (Ports) A and B of the link aggregation group are composed of two and three systems: Endpoint A contains System 1 and System 2, and Endpoint B contains System 3, System 4 and System 5, the multiple links of the five systems are aggregated together to form a distributed LAG. Through this distributed LAG, double protection of links and nodes can be achieved.
  • DRNI interconnects more than two systems through Distributed Relay (DR), where each system runs link aggregation to form a Portal.
  • DR Distributed Relay
  • the peer system For the peer system connected to the Portal, the peer system considers itself to be an analog system.
  • each system in a portal needs to negotiate with each other through distributed relays to achieve uniformity of parameters between the systems, and advertise the LACP protocol to interact with the other end of the link aggregation group.
  • the function of the DR is to send the packet (UP packet) received from the aggregation interface to the gateway or discard it, and send the packet (DOWN packet) received from the gateway interface to the aggregator or discard it.
  • the DR determines whether to forward the packet or discard the packet according to the session to which the received packet belongs.
  • the configuration of the gateway algorithm and the port algorithm is also performed according to the session.
  • Each session traffic is assigned a maximum of one gateway link, and each session traffic also corresponds to at most one aggregate interface.
  • the present invention provides a method for exchanging information between systems in the same end of a distributed elastic network interconnection, which is applied to each of the end points of the link aggregation group, including: sending distribution through the internal link interface a relay control protocol (DRCP) protocol message, at least carrying system information of the system;
  • DRCP relay control protocol
  • the operation key value of the system is determined.
  • the method further includes: After determining the operating key value of the system, a distributed relay channel is established in the system.
  • the method further includes: after determining an operation key value of the system, negotiating a unified session distribution manner with the neighboring system.
  • the determining that the system and the neighboring system can form the same endpoint includes: matching system information of the neighboring system carried in the received DRCP protocol packet with system information of the system If the matching check passes, it is determined that the system and the adjacent system can form the same endpoint.
  • the matching check is performed on the system information of the neighboring system carried in the received DRCP protocol packet and the system information of the system, including:
  • the matching check includes: the system is the same as the endpoint identifier of the neighboring system, and/or the system is the same as the virtual system identifier of the neighboring system.
  • the performing the matching check on the system information of the neighboring system carried in the received DRCP protocol packet and the system information of the system further includes:
  • the matching check includes: the system is the same as the endpoint identifier and/or the virtual system identifier of the neighboring system, and the system does not conflict with the system number of the neighboring system.
  • the method further includes: if the matching check is passed, saving system information of the neighboring system carried in the DRCP protocol packet.
  • the sending the DRCP protocol text includes:
  • the method further includes:
  • a timer is started; if the DRCP protocol packet sent by the neighboring system is not received when the timer expires, Or if the DRCP protocol packet sent by the neighboring system is received before the timer expires, but the matching check fails, it is determined that the system and the neighboring system cannot form an endpoint of the distributed elastic network interconnection. .
  • the sending the DRCP protocol text includes:
  • the DRCP protocol text is sent.
  • the determining the operation key value of the system includes:
  • the operation key value of the system is the same as the operation key value of the adjacent system, the operation key value of the system is maintained unchanged.
  • the determining the operation key value of the system includes:
  • the operation key value of the system is different from the operation key value of the adjacent system, the operation key value of the system is modified according to the policy, or the operation key value of the system is maintained.
  • the determining the operation key value of the system includes:
  • the operation key value of the system is calculated.
  • the method further includes:
  • the operation key value of the system is sent to the opposite end of the distributed elastic network interconnection through the Link Aggregation Control Protocol (LACP) message.
  • LACP Link Aggregation Control Protocol
  • the method for negotiating a unified session with the neighboring system includes: negotiating a session splitting manner carried in the DRCP protocol packet sent by the neighboring system with a session distribution manner of the system, Configure the distributed distribution traffic distribution mode in the system according to the negotiated session distribution mode;
  • the session distribution mode includes any one or any combination of the following two parameters: gateway system selection and aggregator/aggregation port selection.
  • the session division method carried in the DRCP protocol packet sent by the neighboring system is negotiated with the session distribution mode of the system, and the method includes: sending the DRCP protocol packet sent by the neighboring system
  • the session distribution mode carried in the session is compared with the session distribution mode of the system.
  • the distributed relay is distributed in a consistent manner.
  • the distribution of the session traffic is performed.
  • the establishing a distributed relay channel in the system includes:
  • the distributed relay is configured for session distribution on the gateway and the aggregator/aggregation port. After the configuration, the distributed relay forwards session traffic between the gateway and the aggregator/aggregation port on the system.
  • the method further includes: closing a data traffic forwarding function of the inner link link with the neighboring system;
  • the distribution algorithm is unified, and the data traffic forwarding function of the inner chain link is started.
  • the method further includes:
  • the system and the neighboring system can no longer form an endpoint of the distributed elastic network interconnection, determine whether the system information of the system needs to be modified according to the policy; if it needs to be modified, at least part of the LACP of the system information of the system The parameters are modified, and the LACP parameters of the modified LACP system are at least not the same as the LACP parameters of the adjacent system.
  • the modifying at least part of the LACP parameters in the system information of the system includes: modifying an operation key value and/or a system identifier of the system, or restoring the operation key value to a management key value.
  • the distributed relay is restored to the configuration of the pre-negotiation session distribution mode.
  • the DRCP protocol packet sent by the internal link interface further carries system information and/or a session distribution manner of other adjacent systems connected to the system.
  • the present invention also provides a system for implementing distributed relay control in a distributed elastic network interconnection, including:
  • the sending state machine is set to: send a distributed relay control protocol (DRCP) protocol text when other state machines of the system indicate that they need to send or need to send periodically;
  • DRCP distributed relay control protocol
  • the receiving state machine is set to: receive a DRCP protocol packet sent by the neighboring system, Performing a matching check on the system information of the adjacent system, and recording the result after the matching check is passed
  • the information in the DRCP protocol message is started by the timer to determine whether the DRCP protocol sent by the neighboring system is received periodically;
  • the negotiation state machine is set to: determine the operation key value of the system, and ensure that the operation key value of the adjacent system is consistent;
  • the synchronization state machine is set to: establish a forwarding channel between the aggregator/aggregation port and the gateway, negotiate a unified session distribution manner with the neighboring system as needed, and configure a session distribution mode of the distributed relay; the periodic transmission state machine is set to : Determining that the sending state machine periodically sends a DRCP protocol message.
  • the receiving state machine is configured to perform a matching check on the system information of the system and the adjacent system, including:
  • the receiving state machine determines whether the endpoint identifier of the system is consistent with the endpoint identifier of the neighboring system; and/or determines whether the virtual system identifier of the system is consistent with the virtual system identifier of the neighboring system;
  • the matching check includes: the system is the same as the endpoint identifier of the neighboring system, and/or the system is the same as the virtual system identifier of the neighboring system.
  • the receiving state machine is configured to perform a matching check on system information of the system and the adjacent system, and further includes:
  • the receiving state machine determines whether a system number of the system conflicts with a system number of the neighboring system
  • the matching check includes: the system identifier is the same as the endpoint identifier and/or the virtual system identifier of the neighboring system, and the system number of the neighboring system is legal, or the system number of the system and the neighboring system is Do not conflict.
  • the negotiation state machine is configured to: determine an operation key value of the system, and ensure that the operation key value of the adjacent system is consistent, including:
  • the negotiation state machine determines the operation key value of the system and the operation of the adjacent system
  • the negotiation state machine is configured to: determine an operation key value of the system, and ensure that the operation key value of the neighboring system is consistent, and the method includes: the negotiation state machine according to the management key value of the system and the received location The management key value of the adjacent system is calculated, and the operation key value of the system is calculated.
  • the negotiation state machine is further configured to: after determining the operation key value of the system, send the operation key value of the system to the distributed elastic network interconnection pair through a Link Aggregation Control Protocol (LACP) message. end.
  • LACP Link Aggregation Control Protocol
  • the synchronization state machine is configured to: the session distribution manner that is negotiated with the neighboring system, and the method includes: a session division method and a method carried in the DRCP protocol packet sent by the neighboring system
  • the session distribution mode of the system is negotiated, and the distributed distribution of traffic in the system is configured according to the negotiated session distribution mode.
  • the synchronization state machine is configured to: negotiate a session division manner carried in the DRCP protocol packet sent by the neighboring system with a session distribution manner of the system, where: the synchronization state machine will The session distribution mode carried in the DRCP protocol packet sent by the adjacency system is compared with the session distribution mode of the system. For the session in which the session distribution mode is consistent, the session traffic is performed in a consistent session distribution manner. Distributing, for distribution in a session, preferably, the session distribution mode includes any one or any combination of the following two parameters: gateway system selection and aggregator/aggregation port selection.
  • the synchronization state machine is further configured to: before negotiating the unified session distribution mode with the neighboring system, shutting down the data traffic forwarding function of the inner link link with the adjacent system; when unified with the adjacency system After the session is distributed, the negotiation is complete.
  • the distribution algorithm is unified.
  • the data forwarding function of the internal link is enabled.
  • the receiving state machine is further configured to: if the DRCP protocol message sent by the neighboring system is not received, or the received DRCP protocol message sent by the neighboring system fails to pass the matching check.
  • it is determined whether the system information of the system needs to be modified; if it needs to be modified, at least part of the LACP parameters of the system information of the system are modified, wherein the LACP parameters of the system and the LACP parameters of the adjacent system are modified. At least not exactly the same.
  • the receiving state machine is set to: at least part of system information of the system
  • the LACP parameter is modified, including: the receiving state machine modifies the operation key value and/or the system identifier of the system, or restores the operation key value to the management key value.
  • the synchronization state machine is further configured to: restore the distributed relay to a pre-negotiation session when an internal link between the adjacent system fails or the inner link is unavailable Configuration of the distribution method.
  • the DRCP protocol sent by the sending state machine through the inner chain interface further carries system information and/or a session distribution manner of other adjacent systems connected to the system.
  • control communication between multiple systems in one end of the distributed link aggregation group is implemented, and the multiple systems can be effectively aggregated into one aggregation group to implement protection on the interconnection interface. It is protection on the link and implements node level protection.
  • FIG. 1 is a schematic diagram of a network interconnection node connection in the related art
  • FIG. 2 is a schematic diagram of a process flow of a distributed relay control protocol state event according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of parameter transmission of a distributed relay control protocol according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a processing flow of a receiving state machine in an embodiment of the present invention.
  • Figure 5 is a flow chart of the Check function in the embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a processing flow of a negotiation state machine in an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a processing flow of a synchronization state machine in an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of another processing flow of a synchronous state machine in an embodiment of the present invention.
  • Figure 9 is a flow chart of the NeedtoCoordination function in the embodiment of the present invention. Preferred embodiment of the invention
  • the distributed relay control protocol (DRCP) in the system mainly includes: a receiving state machine, a synchronization state machine, and a sending state machine, and may further include: a negotiation state machine and a periodic sending state. machine.
  • DRCP distributed relay control protocol
  • the receiving state machine is mainly used to receive DRCP protocol packets sent by the neighboring system.
  • the received DRCP protocol packet includes system information (Actor_Info) of the neighboring system that sends the packet, and may also include a system of other systems connected to the neighboring system saved by the neighboring system that sends the packet.
  • Information Partner_Info.
  • the main tasks of the receiving state machine are:
  • a timer is started every time a DRCP protocol packet is sent from the neighboring system. If the timer expires (Expire), the DRCP protocol packet sent by the neighboring system is not received. The adjacent system loses contact and enters the lost contact state;
  • the Actor-Info carried in the received DRCP protocol message is saved, if the DRCP protocol message carries the Partner- Info is also saved.
  • the following steps are used to determine whether the system and the adjacent system can form an endpoint of the distributed elastic network interconnection, including:
  • Step 1 Compare whether the Portal ID carried in the received DRCP protocol is the same as the Portal ID of the endpoint to which the system belongs. If the two are consistent, the two parties are indeed in the same endpoint. If the packets are inconsistent, the DRCP protocol packet is discarded.
  • Step 2 Compare whether the virtual system ID (Emulated System ID) carried in the DRCP protocol is consistent with the value of the Emulated System ID of the system. If the two are consistent, go to Step 3. If the two are inconsistent, discard the The value of the System ID field carried in the message is the value of the Emulated System ID of the system when the system sends the LACP packet.
  • virtual system ID Emulated System ID
  • Step 3 Check whether the System Number of the system that sends the DRCP protocol packet in the DRCP protocol conflicts with the System Number of the system, that is, whether the two are the same. If the two are different, it means that the two systems already have the condition of being aggregated into one DRNI interface, that is, the two systems can form a logical system, that is, the portal.
  • the system number of the system is legal and does not conflict with the system number of the system, it indicates that the matching check is passed.
  • step c) If the DRCP protocol packet sent by another system that has been aggregated with the system is not received before the timer expires, or the DRCP protocol packet received before the timer expires does not pass the match in step c) Sex check (that is, it does not receive the qualified DRCP protocol message sent by the other system), indicating that the system and the other system have lost contact, and the two systems cannot be re-aggregated. Take the relevant actions to de-aggregate and separate the two systems.
  • the synchronous state machine is mainly used to establish DR channels, perform data forwarding on the DRNI interface, and distribute traffic between systems. mainly includes:
  • the two systems need to negotiate a unified session distribution mode to determine which packets of the specific session are from the system.
  • the link on the DRNI interface is forwarded.
  • the data distribution process here may need to be implemented by the internal chain link to participate in data forwarding.
  • the DR channel can distribute traffic on different systems
  • data traffic may need to be transmitted on the internal link.
  • the inbound link of the port on the inner link should be opened to transmit data traffic. Enables data traffic to be forwarded through the inner link in systems within the same portal.
  • the inbound and outbound traffic on the ports on the inner link is configured to ensure that different session traffic can go to a specific system and a specific aggregation port. Since then, the DR channel on each system will distribute traffic according to the negotiated session distribution method.
  • DRCP.state Synchronization
  • IPL Intra-Portal Link
  • the distribution mode that is, the data packets received by the system are also forwarded from the system, and are not distributed through the internal link.
  • the sending state machine is configured to send a DRCP protocol message through the internal link interface, where the DRCP protocol message may be triggered by a command sent by another state machine, or may be triggered by a periodic sending state machine.
  • the DRCP protocol message may be triggered by a command sent by another state machine, or may be triggered by a periodic sending state machine.
  • the periodic transmit state machine is used to determine when the system sends DRCP protocol messages to convey relevant information and maintain connectivity with other systems.
  • the periodic transmission state machine has a timer inside. Whenever the timer expires, an NTT (Need to transmit) is generated, and the sending state machine is triggered to send the DRCP protocol message.
  • NTT Need to transmit
  • the distributed relay control protocol needs to transfer some information in these state machines during the state switching. As shown in Figure 3, it includes: 1.
  • the receiving state machine receives the system information sent by the other party system through the DRCP protocol message and saves it as its own Partner information;
  • the operation key (Actor_OperKey) value of the system and the operation key (Partner_OperKey) value of the system that sends the DRCP protocol message are judged and processed in the negotiation state machine. If the Actor-OperKey and Partner-OperKey are inconsistent, it is necessary to determine whether to tamper with the Actor of the system-OperKey according to the policy, and then trigger the sending state machine to send the Actor_OperKey and Partner-OperKey to the other system. Only if the operation key values of the two systems are consistent, can the two systems be further aggregated into one aggregation group;
  • the synchronization state machine may need to negotiate a unified session distribution method. If required, after receiving the DRCP protocol packet, the receiving state machine selects the parameters of the session distribution mode of the adjacent system carried in, that is, the gateway system selects (Actor_GW & Partner-GW, which gateway should be used for a certain session traffic) The link and the aggregator system selection ( Actor — Agg & Partner — Agg, which aggregation port/aggregator a session traffic should go to) are judged and processed. In the synchronous state machine, the last negotiated session distribution mode is used to determine and configure the session distribution mode in the system, and the ports of the internal link are configured accordingly, and the session is forwarded according to the configured session distribution mode.
  • System 1 considers itself to be an Actor and considers System 2 to be a Partner.
  • System 2 considers itself to be an Actor and considers System 1 to be a Partner.
  • System 1 receives the Actor information sent from System 2 and saves the Actor information as its own Partner information.
  • the timeout flag Expire is set to False, indicating that there is no timeout yet;
  • the record initial value function RecordDefault ( ) is used to set some LACP system parameters of system 1 to the LACP system parameters considered by system 1 as system 2, namely:
  • the setting needs to send the identifier NTT to False, ie:
  • DRCP.state Uncontact, indicating that the two parties are not currently connected, that is:
  • the processing state is entered.
  • DRCP DU Digital Unit
  • the received protocol message RecordPDU ( ) is recorded, and the Actor information in the DRCPDU sent by the system 2 is recorded as the Partner information of the system 1.
  • the function of Check ( Actor, Partner ) is mainly to check the matching of multiple parameters, as shown in Figure 5, including:
  • the system ID of the logical system is the consistent Emulated System ID of the two systems.
  • step 502 If the two parameters of system 1 and system 2 are consistent after the comparison in step 1), continue to compare whether the System Number parameters of system 1 and system 2 conflict.
  • the system 1 If the DRCP DU sent by the system 2 is not received again when the timer expires, or if the matching check fails in the Check function, the system 1 considers that the Split Brain error has occurred and enters the abnormality. status. In the abnormal state, the two systems can no longer be aggregated into one logical node, and the distributed relay control protocol status needs to be set to Uncontact again, namely:
  • System 1 can modify its own Operational Key to the Administration Key set before negotiation, or modify its own System ID to the system ID of the system instead of the Emulated System. ID.
  • the foregoing policy may be that the system 1 and the system 2 are respectively modified, or the system 1 remains unchanged, the system 2 is modified, and vice versa, thereby ensuring that the system 1 and the system 2 have the system parameters of the LACP. The differences are at least not identical.
  • the distributed relay control protocol If the distributed relay control protocol is found to be disabled DRCP_Disabled after initialization, it enters an unavailable state. Set the status of the distributed relay control protocol to Uncontact, namely:
  • the Operational Key values of System 1 and System 2 may be different, and they are each equal to the Administration Key of the two systems, so if the system 1 is compared The Operational Key and the Operational Key of System 2 have different values.
  • the relevant policy for example, according to the System Priority parameter, if the System Priority of System 2 is higher than the System Priority of System 1.
  • System 1 will modify its Operational Key to the Operational Key of System 2; when the policy is modified according to the management key value, System 1 can follow the management key of the system and the received Management Key value of System 2, according to A certain algorithm calculates the corresponding Operational Key, and takes the value as the Operational Key of the system.
  • the algorithm can be set according to the specific situation, as long as the interactive dual-issue (in this embodiment, System 1 and System 2) is guaranteed. The selected algorithm is the same.
  • ModifyKey :
  • ModifyKey Actor. OperKey, Partner. OperKey .
  • the triggering sending state machine sends the modified Operational Key to System 2 to notify System 2.
  • the LACP is started, and the LACP protocol packet is sent to the other end of the DRNI, and the parameters carried in the LACP protocol are parameters negotiated and determined by the DRCP protocol, including:
  • the processing flow of the synchronization state machine in System 1, as shown in Figure 7, includes:
  • trigger NTT Tme to notify system 2 that the DR of this system has not been established yet.
  • DR established.
  • DRCP. State is set to Synchronization, that is, the synchronization state machine detects DRCP.
  • State Synchronization
  • system 1 has completed aggregation with endpoint B through LACP.
  • the configuration principle here is that the packets received by the system are forwarded in the system, that is, the data is not distributed through the internal link.
  • the determination method is related to the specific implementation of the device:
  • the DR can already be used for data forwarding.
  • DRNI is already working.
  • This function establishes the connection between the forwarding and aggregation group interfaces, thus ensuring that the DRNI interface can receive and send data packets.
  • the NTT transmission can be triggered to notify the system 2.
  • a distributed link aggregation group is established, and data traffic can be normal.
  • DRNI technology can better meet the requirements of load balancing and protection.
  • the DRCP control protocol may further need to further enhance the distribution of data traffic, that is, in system 1 and system. 2 to forward traffic between the two, which requires IPL to transmit data packets, but this requires System 1 and System 2 to agree on the choice of gateway and aggregator for the data flow, otherwise there will be confusion, even loop network storms, etc. Serious Problem.
  • System 1 then begins with System 2 in DR for negotiation of traffic distribution:
  • the traffic distribution of the DR is configured according to the previous negotiation result.
  • the data traffic here is allocated by the session ID of the traffic.
  • the current gateway selection is system 1
  • IPL.Converstation[200] Discard).
  • the data stream can be forwarded between System 1 and System 2 according to the configuration.
  • the synchronization state machine in system 1 can also be processed as follows, as shown in Figure 8:
  • trigger NTT Tme to notify system 2 that the DR of this system has not been established yet.
  • the IPL data forwarding function is turned off, that is, the data cannot be diverted between the system 1 and the system 2 through the IPL:
  • the configuration principle here is that the packet received by the system is forwarded in the system, that is,
  • the DR can already be used for data forwarding.
  • DRNI is already working.
  • the traffic distribution to the DR is configured according to the previous negotiation result, namely:
  • the data traffic here is assigned by the session ID of the traffic.
  • the distribution manner of the DR on the system 1 is modified as shown in Table 1 above.
  • the current gateway selection is system 1
  • IPL.Converstation[200] Discard).
  • the DR can formally distribute the traffic according to the previously distributed distribution configuration method.
  • the control protocol can be in the forwarding state, and the DR distributes the traffic according to the distribution mode after the system 1 and the system 2 negotiate.
  • the NeedtoCoordination ( ) function is used to unify the distribution of traffic between System 1 and System 2.
  • DRNI has data traffic in two directions, one is data traffic sent from other network ports to the aggregation port, and the other is data traffic sent to the other network ports received by the aggregation port.
  • the traffic in the first direction needs to be selected from the aggregator of system 1 to the aggregation port or from the aggregator of system 2 to the aggregation port.
  • the traffic distribution at this time is determined by Actor_Info.Agg.
  • the traffic in the second direction needs to be selected from the system 1 to other network ports, or sent to the system 2 via the inner link, and then sent to other network ports.
  • the traffic is distributed by Actor_Info. GW to decide.
  • the NeedtoCoordination ( ) function fc is used for Actor - Info.Agg and Partner - Info.Agg, and Actor - Info.GW and Partner - Info.GW to prevent conflicts.
  • ⁇ 1 is processed as follows:
  • the established strategies here include, but are not limited to, the following two types:
  • System 1 fully accepts the information selected by the system 2 in the gateway selection and aggregator, that is, after interactive modification, System 1 and System 2 are completely identical in gateway selection and aggregator selection;
  • System 1 and System 2 only select the parts they are consistent with, and only distribute the agreed session traffic, and discard the session traffic that has conflicts in gateway selection and aggregator selection. It is also possible to report alarms on conflicting session traffic and make adjustments by higher layer protocols or network administrators. Once the original conflicting session traffic is adjusted to be consistent, the distribution of these session traffic can be resumed.
  • the embodiment of the present invention implements control communication between multiple systems at one end in a distributed link aggregation group, and can effectively implement protection on an interconnection interface after a plurality of systems are aggregated into one aggregation group, not only Protection on the link and node level protection.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

一种分布式弹性网络互连中同一端内系统之间交互信息的方法及系统,所述方法应用于链路聚合组端点中的每一个系统,包括:通过内链接口发送分布式中继控制协议(DRCP)协议报文,其中至少携带本系统的系统信息;在接收到邻接系统发来的DRCP协议报文后,如判断出本系统与所述邻接系统能形成分布式弹性网络互连的一个端点,则确定本系统的操作Key值。所述系统包括:发送状态机、接收状态机、协商状态机、同步状态机及周期发送状态机。采用本发明实施例后,实现了分布式链路聚合组中一端多个系统之间的控制通信,能够有效的实现多个系统聚合为一个聚合组后,实现互连接口上的保护,不仅是链路上的保护,而且实现了节点级保护。

Description

DRNI中同一端内系统之间交互信息的方法和系统
技术领域
本发明涉及网络通信保护技术,尤其涉及一种 DRNK Distributed Resilient Network Interconnected, 分布式弹性网络互连) 中同一端内系统之间交互信 息的方法和系统。
背景技术
随着宽带业务的飞速发展, 网络与网络之间的互连使用得越来越多, 承 载了更多的业务。 根据所釆用的技术, 网络内部可有多种方法对链路及其上 的节点实现保护。 随着对流量的保护需求越来越强烈, 要求越来越高, 运营 商提出了在网络互连上进行保护的需求。 这里的保护可以通过釆用端口聚合 的方式来实现, 常用的方式可以是端口聚合, 也可以是环路保护。 在 IEEE ( Institute of Electrical and Electronics Engineers , 美国电气和电子工程师协会 ) 现有标准 802.1AX中, 链路聚合目前支持的是一个节点上的端口聚合, 因此 仅能用于链路保护, 无法实现对网络边缘接口上的节点进行保护。
因此, 为了适用于网络与网络互连区域组网方式的多样化, 并能实现不 仅对链路的保护, 而且实现对边缘节点的保护, IEEE标准组织提出了扩展链 路聚合, 通过一种分布式的链路聚合组 DRNI来实现链路和节点双冗余的网 络互连保护需求, 即聚合组的端点处由多个节点组成, 该多个节点的聚合链 路组成一个链路聚合组( Link Aggregation Group,简称 LAG )。如图 1所示, 链路聚合组的两个端点 ( Portal ) A、 B分别由 2个及 3个系统组成: 端点 A 中包含系统 1及系统 2, 端点 B中包含系统 3、 系统 4及系统 5 , 这 5个系统 的多条链路聚合在一起, 形成了一个分布式 LAG。 通过这个分布式 LAG, 能够实现链路和节点的双重保护。
端点 A中的系统 1和系统 2需要通过内链链路连接,从而保证端点 B看 到其通过链路聚合组连接的端点 A是一个逻辑节点; 同理, 端点 B中的系统 3、 系统 4及系统 5之间也需要通过内链链路连接, 从而保证端点 A看到其 通过链路聚合组连接的端点 B是一个逻辑节点。端点 A的逻辑节点和端点 B 的逻辑节点之间互连的多条链路通过 LACP ( Link Aggregation Control Protocol, 链路汇聚控制协议) 的控制报文交互后, 形成分布式链路聚合组。
DRNI就是通过分布式中继( Distributed Relay , 简称为 DR )将两个以上 的系统互连起来, 这里的每个系统都运行链路聚合, 从而形成一个 Portal。 对于与该 Portal相连的对端系统而言, 该对端系统认为自身所连接的是一个 模拟的系统。 为了达到这个目的, 一个 Portal内的各个系统需要通过分布式 中继进行交互协商, 以达到这些系统之间的参数统一, 并通告给 LACP协议 与链路聚合组的另一端进行交互。
DR上有 3种接口, 分别是: 网关接口、 内链接口及聚合接口。 DR的功 能就是将从聚合接口收到的报文(UP报文)发往网关或丟弃, 并且将从网 关接口收到的报文(DOWN报文)发送到聚合器或丟弃。 DR根据接收到的 报文所属的会话决定是转发该报文还是丟弃该报文, 网关算法和端口算法的 配置也是依据会话进行操作的。 每一个会话流量最多分配一个网关链路, 每 个会话流量也最多对应一个聚合接口。 当一个 portal 内的多个系统中的 DR 对报文的分发方式不统一, 则会引起报文乱序、 成环或丟包等问题, 因此在 多个系统之间存在分发方式不一致的情况时, 也需要通过分布式中继进行交 互, 统一不同系统上的分发方式或隔离分发方式不统一的业务流量。 发明内容
本发明的目的在于提供一种 DRNI中同一端内系统之间交互信息的方法 及系统, 以实现多个系统的链路聚合。
为解决上述问题, 本发明提供了一种分布式弹性网络互连中同一端内系 统之间交互信息的方法, 应用于链路聚合组端点中的每一个系统, 包括: 通过内链接口发送分布式中继控制协议(DRCP )协议报文, 其中至少 携带本系统的系统信息;
在接收到邻接系统发来的 DRCP协议报文后, 如判断出本系统与所述邻 接系统能形成分布式弹性网络互连的一个端点,则确定本系统的操作 Key值。
优选地, 所述方法还包括: 在确定本系统的操作 Key值后, 在本系统内建立分布式中继通道。
优选地, 所述方法还包括: 在确定本系统的操作 Key值后, 与所述邻接 系统协商统一的会话分发方式。
优选地, 所述判断出本系统与所述邻接系统能形成同一个端点, 包括: 对接收到的所述 DRCP协议报文中携带的所述邻接系统的系统信息与本 系统的系统信息进行匹配性检查, 若所述匹配性检查通过, 则判断出本系统 与所述邻接系统能形成同一个端点。
优选地, 所述对接收到的所述 DRCP协议报文中携带的所述邻接系统 的系统信息与本系统的系统信息进行匹配性检查, 包括:
判断本系统的端点标识和所述邻接系统的端点标识是否一致;和 /或判断 本系统的虚拟系统标识和所述邻接系统的虚拟系统标识是否一致;
所述匹配性检查通过, 包括: 所述本系统与所述邻接系统的端点标识相 同, 和 /或所述本系统与所述邻接系统的虚拟系统标识相同。
优选地, 所述对接收到的所述 DRCP协议报文中携带的所述邻接系统的 系统信息与本系统的系统信息进行匹配性检查, 还包括:
判断本系统的系统编号 (System Number ) 与所述邻接系统的 System Number是否冲突;
所述匹配性检查通过, 包括: 所述本系统与所述邻接系统的端点标识和 / 或虚拟系统标识分别相同, 且本系统与所述邻接系统的 System Number不冲 突。
优选地, 所述方法还包括: 若匹配性检查通过, 则保存所述 DRCP协议 报文中携带的所述邻接系统的系统信息。
优选地, 所述发送 DRCP协议艮文, 包括:
周期性地发送所述 DRCP协议 ^艮文;
所述方法还包括:
每当接收到邻接系统发来的 DRCP协议报文后, 启动一个定时器; 若在所述定时器超时时, 未收到所述邻接系统发来的 DRCP协议报文, 或者在所述定时器超时前收到了所述邻接系统发来的 DRCP协议报文, 但匹 配性检查未通过, 则确定本系统与所述邻接系统不能再形成分布式弹性网络 互连的一个端点。
优选地, 所述发送 DRCP协议艮文, 包括:
在本系统的系统信息中有参数更新时, 发送所述 DRCP协议 文。
优选地, 所述确定本系统的操作 Key值, 包括:
如判断出本系统的操作 Key值与所述邻接系统的操作 Key值相同,则维 持本系统的操作 Key值不变。
优选地, 所述确定本系统的操作 Key值, 包括:
如判断出本系统的操作 Key值与所述邻接系统的操作 Key值不同,则依 据策略, 修改本系统的操作 Key值或者维持本系统的操作 Key值不变。
优选地, 所述确定本系统的操作 Key值, 包括:
根据本系统的管理 Key值及接收到的所述邻接系统的管理 Key值,计算 出本系统的操作 Key值。
优选地, 所述方法还包括:
在确定本系统的操作 Key值后,将本系统的操作 Key值通过链路汇聚控 制协议(LACP )报文发送给分布式弹性网络互连的对端。
优选地, 所述与所述邻接系统协商统一的会话分发方式, 包括: 对所述邻接系统发来的所述 DRCP协议报文中携带的会话分法方式与本 系统的会话分发方式进行协商, 依据协商好的会话分发方式来配置本系统内 分布式中继的流量分发方式;
所述会话分发方式包括下述两个参数中任意一个或任意组合: 网关系统 选择和聚合器 /聚合端口选择。 优选地, 所述对所述邻接系统发来的所述 DRCP协议报文中携带的会 话分法方式与本系统的会话分发方式进行协商, 包括: 将所述邻接系统发来 的 DRCP协议报文中携带的会话分发方式与本系统的会话分发方式进行对比 , 对于在会话分发方式达到一致的会话, 则分布式中继按一致的会话分发方式 进行所述会话流量的分发, 对于在会话分发方式有冲突的会话, 则分布式中 优选地, 所述在本系统内建立分布式中继通道, 包括:
对分布式中继在网关和聚合器 /聚合端口上会话分发做出配置,配置后所 述分布式中继在本系统上的网关和聚合器 /聚合端口之间转发会话流量。
优选地, 在与所述邻接系统协商统一的会话分发方式之前, 还包括: 关闭与所述邻接系统之间的内链链路的数据流量转发功能;
当与所述邻接系统统一会话分发方式后协商完成, 统一了分发算法, 开 启所述内链链路的数据流量转发功能。
优选地, 所述方法还包括:
若确定本系统与所述邻接系统不能再形成分布式弹性网络互连的一个端 点, 则依据策略确定是否需要对本系统的系统信息进行修改; 如需要修改, 则对本系统的系统信息中至少部分 LACP参数进行修改,并将修改后的 LACP 统的 LACP参数与所述邻接系统的 LACP参数至少不完全相同。
优选地, 所述对本系统的系统信息中至少部分 LACP参数进行修改, 包括: 对本系统的操作 key值和 /或系统标识进行修改, 或者将操作 Key值恢 复为管理 Key值。
优选地, 当与所述邻接系统之间的内链链路发生故障或者所述内链链路 不可用时, 则将所述分布式中继恢复为协商前的会话分发方式的配置。
优选地, 通过所述内链接口发送的所述 DRCP协议报文中还携带有与 本系统相连接的其他邻接系统的系统信息和 /或会话分发方式。
相应地, 本发明还提供了一个分布式弹性网络互连中实现分布式中继控 制的系统, 包括:
发送状态机设置为: 在本系统的其他状态机指示需要发送或者需周期发 送时, 发送分布式中继控制协议(DRCP )协议 文;
接收状态机设置为: 接收邻接系统发来的 DRCP协议报文, 对本系统和 所述邻接系统的系统信息进行匹配性检查 , 在匹配性检查通过后记录所述
DRCP协议报文中的信息, 启动定时器判断是否定时接收到所述邻接系统再 次发来的 DRCP协议 ^艮文;
协商状态机设置为: 确定本系统的操作 Key值, 确保和所述邻接系统的 操作 Key值一致;
同步状态机设置为: 建立聚合器 /聚合端口和网关之间的转发通道, 按需 与所述邻接系统协商统一的会话分发方式,配置分布式中继的会话分发方式; 周期发送状态机设置为:决定所述发送状态机周期发送 DRCP协议报文。 优选地, 所述接收状态机设置为:对本系统和所述邻接系统的系统信息 进行匹配性检查, 包括:
所述接收状态机判断本系统的端点标识和所述邻接系统的端点标识是否 一致;和 /或判断本系统的虚拟系统标识和所述邻接系统的虚拟系统标识是否 一致;
所述匹配性检查通过, 包括: 所述本系统与所述邻接系统的端点标识相 同, 和 /或所述本系统与所述邻接系统的虚拟系统标识相同。
优选地, 所述接收状态机设置为:对本系统和所述邻接系统的系统信息 进行匹配性检查, 还包括:
所述接收状态机判断本系统的系统编号( System Number )与所述邻接系 统的 System Number是否冲突;
所述匹配性检查通过, 包括: 所述本系统与所述邻接系统的端点标识和 / 或虚拟系统标识分别相同, 且邻接系统的 System Number合法, 或者, 本系 统与所述邻接系统的 System Number不冲突。
优选地, 所述协商状态机设置为: 确定本系统的操作 Key值, 确保和 所述邻接系统的操作 Key值一致, 包括:
所述协商状态机在判断出本系统的操作 Key值与所述邻接系统的操作
Key值相同时, 维持本系统的操作 Key值不变; 在判断出本系统的操作 Key 值与所述邻接系统的操作 Key值不同时, 依据策略, 修改本系统的操作 Key 值或者维持本系统的操作 Key值不变。 优选地, 所述协商状态机设置为: 确定本系统的操作 Key值, 确保和 所述邻接系统的操作 Key值一致, 包括: 所述协商状态机根据本系统的管理 Key值及接收到的所述邻接系统的管理 Key值,计算出本系统的操作 Key值。
优选地, 所述协商状态机还设置为: 在确定本系统的操作 Key值后, 将本系统的操作 Key值通过链路汇聚控制协议(LACP )报文发送给分布式 弹性网络互连的对端。
优选地, 所述同步状态机设置为: 所述与所述邻接系统协商统一的会话 分发方式, 包括: 对所述邻接系统发来的所述 DRCP协议报文中携带的会话 分法方式与本系统的会话分发方式进行协商, 依据协商好的会话分发方式来 配置本系统内分布式中继的流量分发方式。
优选地, 所述同步状态机设置为: 对所述邻接系统发来的所述 DRCP协 议报文中携带的会话分法方式与本系统的会话分发方式进行协商, 包括: 所述同步状态机将所述邻接系统发来的 DRCP协议报文中携带的会话分 发方式与本系统的会话分发方式进行对比, 对于在会话分发方式达到一致的 会话, 则按一致的会话分发方式进行所述会话流量的分发, 对于在会话分发 优选地, 所述会话分发方式包括下述两个参数中任意一个或任意组合: 网关系统选择和聚合器 /聚合端口选择。
优选地, 同步状态机还设置为:在与所述邻接系统协商统一的会话分发 方式之前, 关闭与所述邻接系统之间的内链链路的数据流量转发功能; 当与 所述邻接系统统一会话分发方式后协商完成, 统一了分发算法, 开启所述内 链链路的数据流量转发功能。
优选地, 所述接收状态机还设置为: 如未定时收到所述邻接系统再次发 来的 DRCP协议报文或者接收到的所述邻接系统再次发来的 DRCP协议报文 没有通过匹配性检查, 则依据策略确定是否需要对本系统的系统信息进行修 改; 如需要修改, 则对本系统的系统信息中至少部分 LACP参数进行修改, 其中, 修改后本系统的 LACP参数与所述邻接系统的 LACP参数至少不完全 相同。 优选地, 所述接收状态机设置为: 对本系统的系统信息中至少部分
LACP参数进行修改, 包括: 所述接收状态机对本系统的操作 key值和 /或系 统标识进行修改, 或者将操作 Key值恢复为管理 Key值。
优选地, 所述同步状态机还设置为:在与所述邻接系统之间的内链链路 发生故障或者所述内链链路不可用时, 将所述分布式中继恢复为协商前的会 话分发方式的配置。
优选地, 所述发送状态机通过所述内链接口发送的所述 DRCP协议 4艮文 中还携带有与本系统相连接的其他邻接系统的系统信息和 /或会话分发方式。
釆用本发明实施例后, 实现了分布式链路聚合组中一端多个系统之间的 控制通信, 能够有效的实现多个系统聚合为一个聚合组后, 实现互连接口上 的保护, 不仅是链路上的保护, 而且实现了节点级保护。
附图概述
图 1是相关技术中网络互连节点连接示意图;
图 2 是本发明实施例中分布式中继控制协议状态事件流程示意图; 图 3 是本发明实施例中分布式中继控制协议参数传递示意图;
图 4是本发明实施例中接收状态机的处理流程示意图;
图 5是本发明实施例中 Check功能的流程图;
图 6是本发明实施例中协商状态机的处理流程示意图;
图 7是本发明实施例中同步状态机的一种处理流程示意图;
图 8是本发明实施例中同步状态机的另一种处理流程示意图;
图 9是本发明实施例中 NeedtoCoordination功能的流程图。 本发明的较佳实施方式
下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。 为了能更好的描述分布式中继控制协议的控制过程和运行状态, 下面将 从控制协议状态机的角度来描述。
如图 2所示, 系统内的分布式中继控制协议( Distributed Relay Control Protocol,简称 DRCP )主要包括:接收状态机、同步状态机以及发送状态机, 还可以包括: 协商状态机和周期发送状态机。
接收状态机主要用于接收邻接系统发来的 DRCP协议报文。 接收到的 DRCP协议报文中包括了发送该报文的邻接系统的系统信息 (Actor— Info ) , 也有可能包含了发送该报文的邻接系统所保存的与该邻接系统连接的其他系 统的系统信息 ( Partner— Info ) 。 接收状态机的主要任务有:
a )接收邻接系统发来的 DRCP协议报文;
b )每接收到一次邻接系统发来的 DRCP协议报文,就启动一次定时器, 如果在定时器超时时(Expire )仍没有收到上述邻接系统发来的 DRCP协议 报文, 则认为和该邻接系统失去了联系, 进入失去联系状态;
c )如判断出本系统与该邻接系统能形成分布式弹性网络互连的一个端点 , 则保存接收到的 DRCP协议报文中携带的 Actor— Info , 如果该 DRCP协议报 文中携带有 Partner— Info, 则亦保存之。 其中, 釆用以下步骤判断本系统与该 邻接系统是否能形成分布式弹性网络互连的一个端点, 包括:
步骤 1: 先比较接收到的 DRCP协议报文中携带的 Portal ID与本系统所 属端点的 Portal ID 是否一致, 如果二者一致则表示双方的确属于同一端点 ( Portal ) , 执行步骤 2; 如果二者不一致, 则丟弃该 DRCP协议报文;
步骤 2: 比较上述 DRCP 协议报文中携带的虚拟系统标识 (Emulated System ID )与本系统的 Emulated System ID值是否一致; 如二者一致, 则执 行步骤 3; 如果二者不一致, 则丟弃该 DRCP协议报文; 其中, 各系统在发 出 LACP协议报文时, 在该报文中所携带的 System ID字段的值为该系统的 Emulated System ID值;
在某些情况下,系统中的 Portal ID与 Emulated System ID的值是一致的。 因此, 上述流程可以仅比较两个系统间的 Portal ID或 Emulated System ID是 否一致即可。 步骤 3: 检查上述 DRCP协议报文中携带的发送该 DRCP协议报文的系 统的 System Number与本系统的 System Number是否冲突, 即判断二者是否 相同。 若二者不相同, 则说明两个系统已经具备了聚合为一个 DRNI接口的 条件, 即两个系统可以组成一个逻辑系统, 即端点 (Portal ) 。
当判断出发送该 DRCP协议才艮文的系统的 System Number与本系统的
System Number不相冲突时 (即二者不相同) , 则表示匹配性检查通过, 设 置本系统与发送上述 DRCP协议报文的邻接系统的内链链路协议状态为已聚 合, 即设置 DRCP.State=Contact。 在具体实现时, 为避免异常情况, 还可以 进一步判断发送该 DRCP协议报文的系统的 System Number是否合法, 即 System Number的取值是否在合理的取值范围内, 当判断出发送该 DRCP协 议才艮文的系统的 System Number合法、 且与本系统的 System Number不冲突 时, 表示匹配性检查通过。
d )若在定时器超时之前未收到已与本系统聚合的另一系统发来的 DRCP 协议报文, 或者在定时器超时之前接收到的该 DRCP协议报文没有通过步骤 c ) 中的匹配性检查 (即相当于没有收到该另一系统发来的合格的 DRCP协 议报文) , 则表示本系统和该另一系统已失去了联系, 此时两系统之间无法 再聚合, 则需要釆取相关的动作进行解聚合, 将这两个系统分离开来。
协商状态机用于与确定本系统的 Operational Key (操作 Key ) , 确保得 到一个与发送上述 DRCP协议报文的邻接系统统一的 Operational Key值,该 Operational Key 为 LACP 协议报文中携带的参数。 在协商一致后, 设置 DRCP. State=Synchronization。
同步状态机主要是用于建立 DR通道、 进行 DRNI接口的数据转发以及 系统间的流量分配。 主要包括:
a )建立 DR通道。 DR通道建立之后 , 建立了本系统的 DRNI接口和其 他端口的转发通道, 即可以通过 DRNI接口发送数据流量, 或接收数据流量 并转发到其他接口上。 此时, DR通道只是将数据在本系统的 DRNI接口和 其他端口上进行转发, 但并不分发给邻接系统。
b )如果 DR通道不仅用于数据的中转, 还要具有数据分发功能, 即双方 系统需要协商统一的会话分发方式, 确定特定会话的报文从本系统的哪些 DRNI接口上的链路进行转发。 这里的数据分发过程有可能需要通过内链链 路参与数据的转发来实现, 此时需要同步状态机进行两系统之间会话分发方 式的协商。 当两者能协商达到统一, 则表示双方统一了特定会话流量应该走 哪个系统, 此时设置 DRCP.State=Forward。
c )当 DR通道可以在不同系统上对流量进行分发时, 数据流量有可能需 要在内链链路上进行传输, 此时应该打开内链链路上端口的内连链路传输数 据流量功能, 使得数据流量能够通过内链链路在同一 Portal内的系统中进行 转发。 并且, 对内链链路上端口上流量的进出进行配置, 从而保证不同的会 话流量能走特定的系统和特定的聚合端口。 自此, 各系统上的 DR通道将依 据协商后的会话分发方式来进行流量的分发。
当 DRCP.state=Synchronization 时, 则触发同步状态机进行处理, 当 DRCP.State=Contact 时, 则触发协商状态机进行处理。 当原内链链路的物理 链路出现故障或者被用作其他用途,而无法再作为内链链路被 DRNI使用时, 设置 IPL ( Intra-Portal Link, 内链链路) .State=Down, 此时无法也不能通过 内链链路进行数据报文的转发, 如果这时系统处于同步状态, 即 DRCP. State=Synchronization , 则需要关闭 IPL的数据转发功能, 并且恢复为 协商前 DR通道的会话分发方式, 即本系统收到的数据报文也从本系统转发 出去, 而不再经过内链链路进行分发。
发送状态机用于通过内链接口发送 DRCP协议报文,这里发送 DRCP协 议报文可以由来自其它状态机发出的命令来触发, 也可以是由周期发送状态 机触发发送。 当系统中 Actor— Info中至少部分参数发生变化时, 需要重新进 行协商, 则也可以触发发送 DRCP协议报文。
周期发送状态机用于决定本系统何时发送 DRCP协议报文, 以传递相关 信息及维持与其他系统的连接性。一般来说周期发送状态机内部有个定时器, 每当定时器到时, 将产生一个 NTT ( Need to transmit, 需要发送) , 触发发 送状态机发送 DRCP协议艮文。
分布式中继控制协议在进行状态切换的过程中, 需要将一些信息在这些 状态机中进行传递。 如图 3所示, 包括: 1.接收状态机接收到了对方系统通过 DRCP协议报文发来的系统信息并 保存作为自己的 Partner信息;
2. 将本系统的操作 Key ( Actor— OperKey )值以及发送上述 DRCP协议 报文的系统的操作 Key ( Partner— OperKey )值在协商状态机中进行判断和处 理。 如果 Actor— OperKey和 Partner— OperKey不一致, 则需要根据策略确定 是否爹改本系统的 Actor— OperKey, 然后触发发送状态机将 Actor— OperKey 和 Partner— OperKey发送到对方系统。 只有保证两系统的操作 Key值是一致 的, 才能进一步保证两系统能聚合为一个聚合组;
3. 同步状态机可能需要协商统一的会话分发方式。 如果需要, 则接收状 态机接收到 DRCP协议报文后, 对于其中携带的邻接系统的会话分发方式的 参数, 即网关系统选择( Actor— GW & Partner— GW , 表示某个会话流量应该 走哪个网关链路)和聚合器系统选择( Actor— Agg & Partner— Agg, 表示某个 会话流量应该走哪个聚合端口 /聚合器)这两个信息进行判断和处理。 在同步 状态机中利用最后协商好的会话分发方式来决定并配置本系统内的会话分发 方式, 同时对内链链路的端口做出相应配置, 会话将按配置的会话分发方式 进行转发。
下面结合实施例和附图对本发明所述的 DRNI—端的分布式中继控制协 议控制方法和流程进行具体说明。
这里以图 1中的端点 A中系统 1和系统 2之间的协议交互流程为例做进 一步的说明。 假设系统 1认为自己是 Actor, 并且认为系统 2是 Partner。 同 理, 系统 2认为自己是 Actor, 并且认为系统 1是 Partner。 系统 1收到系统 2 发来的 Actor信息, 并将该 Actor信息作为自己的 Partner信息进行保存。
针对系统 1中的接收状态机, 其具体流程如图 4所示, 包括:
401.初始化, 对一些参数变量进行初始化。
超时标识 Expire设置为 False, 表示还没有超时;
记录初始值功能 RecordDefault ( ) , 用于将系统 1的一些 LACP系统参 数设置为系统 1所认为系统 2的 LACP系统参数, 即:
Partner PortalID=Actor PortallD Partner— EmulatedSystemID=Actor_ EmulatedSystemID
等等。
将系统 1认为的系统 2的数据分发参数设置为空, 即:
Partner— GW=Null
Partner— Agg=Null
设置需要发送标识 NTT为 False, 即:
NTT=False;
设置分布式中继控制协议的状态 DRCP.state为 Uncontact, 表示目前双 方还没有联系上, 即:
DRCP. state=Uncontact;
402.当接收状态机收到了系统 2发来的分布式中继控制协议报文 DRCP DU ( Digital Unit, 数字单元) , 则进入处理状态。
记录下收到的协议报文 RecordPDU ( ) , 将系统 2发来的 DRCPDU中 的 Actor信息作为本系统 1的 Partner信息记录下来。
设置 DRCP DU超时检测的定时器, 即:
DRCP.timer=Short— timer
并开始启动定时器, 对下次接收到系统 2发来的 DRCP DU进行计时, 即:
StartTimer(DRCP.timer)
对接收到的信息进行匹配性检查 Check ( Actor, Partner ) 。 如果在定时 器超时前再次接收到了系统 2发来的 DRCP DU, 则重新进入处理状态中, 重新启动定时器, 重新计时, 并继续上述步骤进行处理检查。
Check ( Actor, Partner ) 的功能主要是对多个参数进行匹配性检查, 如 图 5所示, 包括:
进入 Check功能后, 对用于标识系统 1和系统 2的参数进行检查, 判断 系统 1和系统 2是否可以聚合为一个逻辑系统, 其上的聚合组是否可以聚合 为一个 DRNI。 主要包括: 501 )检查本系统的 PortallD和系统 2的 PortallD是否一致,检查本系统 的 EmulatedSystemID和系统 2的 EmulatedSystemID是否一致。如果均一致, 说明系统 1和系统 2可能可以聚合为一个逻辑系统,该逻辑系统的 System ID 就是两系统的一致的 Emulated System ID。
502 )如果通过步骤 1 )比较后系统 1和系统 2的两个参数是一致的, 则 继续比较系统 1和系统 2的 System Number参数是否冲突。一般来说, DRNI 的一端中的多个系统(一般是小于等于 3个系统) 中给每一个系统都会有一 个编号, 这个编号就是 System Number。 比如系统 1的 System Number=01 , 系统 2的 System Number=02。这个一般是配置给系统的,用于区分一个 portal 中的不同系统。 因此需要确定两系统的 System Number是不同的。
503)如果本系统的 PortallD 和系统 2 的 PortallD、 本系统的 EmulatedSystemID和系统 2的 EmulatedSystemID均是一致的, 并且他们的 System Number并不冲突, 则表示两系统联系上了, 具备了聚合为一个逻辑 系统的前提条件, 因此如果此时 DRCP.State不在 Contact (联系 )状态, 则 将 DRCP状态置为 Contact状态, 即: DRCP.State=Contact, 并且该功能返回 成功 (Success ) , 表示匹配性检查通过; 如果此时已经不是处于 UnContact 状态了, 即 DRCP.State=Contact或者 DRCP.State=Synchronization了, 则直 接返回成功 Success, 表示匹配性检查通过, 但并不需要做其它处理。
反之, 如果上述有任意一个检查没有通过, 则说明两系统不具备聚合为 一个逻辑系统的条件, 因此无论此时分布式中继控制协议处于什么状态中, 都将其状态回退到 Uncontact, 即设置:
DRCP. State=Uncontact
并该功能返回 Fail, 表示匹配性检查失败。
403.如果在定时器超时时仍没有再次接收到系统 2发来的 DRCP DU,或 者在 Check功能中匹配性检查没有通过, 则系统 1会认为出现了 Split Brain (端点分裂) 的错误, 进入异常状态。 在异常状态中, 两系统无法再聚合为 一个逻辑节点, 需要重新将分布式中继控制协议状态设置为 Uncontact, 即:
DRCP. State=Uncontact 并作出异常出错告警, 即:
ExceptionReport ( )
釆取相应动作来进行处理, 将两系统解聚合, 即:
SplitBrain ( )
其中, SplitBrain ( )主要完成的工作有:
依据策略, 可选择修改本系统的 LACP参数, 例如系统 1可以修改回自 己的 Operational Key为协商之前设定的 Administration Key,也可以修改回自 己的 System ID为系统初始的系统 ID, 而不是 Emulated System ID。 在具体 实现时, 上述策略可以是系统 1和系统 2各自进行修改, 也可以是系统 1保 持不变, 系统 2修改, 反之也一样, 从而保证系统 1和系统 2在 LACP的系 统参数上是有差异的, 至少不完全相同。
在执行完上述操作后, 从端点 B来看, 系统 1和系统 2不再聚合为一个 逻辑系统了。
404.如果在初始化后发现分布式中继控制协议是禁止的 DRCP— Disabled, 则进入不可用状态。 设置分布式中继控制协议状态为 Uncontact, 即:
DRCP. State=Uncontact
一旦分布式中继控制协议的状态被置为了 Contact,将触发协商状态机对 本系统的 Operational Key进行处理。 具体流程如图 6所示, 包括:
601 )比较本端系统(系统 1 ,即 Actor )和邻接系统(系统 2 ,即 Partner ) 的 LACP参数 Operational Key„
Same=CompareKey ( Actor. OperKey, Partner. OperKey )
这里必须保证系统 1和系统 2的 Operational Key值都达到一致后, 才能 保证系统 1和系统 2通过 LACP协议和 DRNI的另一端端点 B交互后, 端点 B可能将和端点 A连接的聚合链路聚合为一个分布式聚合组, 形成 DRNI。
602 )最初, 系统 1和系统 2的 Operational Key值可能是不同的, 它们 各自等于这两个系统的 Administration Key , 因此如果比较之后系统 1 的 Operational Key和系统 2的 Operational Key的值是不同的 ,则依据相关策略, 比如依据 System Priority (系统优先级)这个参数进行修改, 如果系统 2的 System Priority的优先级要高于系统 1的 System Priority, 则系统 1会将自己 的 Operational Key修改为系统 2的 Operational Key; 当策略是根据管理 Key 值进行修改时,系统 1可以根据本系统的管理 Key和接收到的系统 2的管理 Key值, 按照一定的算法计算出相应的 Operational Key, 将其取值作为本系 统的 Operational Key; 其中, 该算法可以按照具体情况进行设置, 只要保证 交互双发(在本实施例中指系统 1和系统 2 )所选取的算法相同即可。
修改 Operational Key的功能由 ModifyKey ( )来实现, 即:
ModifyKey ( Actor. OperKey, Partner. OperKey ) 。
如果这时 DRCP协议还处于同步状态, 即 DRCP.State=Synchronization, 则需要将其状态退回到 Contact, 即设置
DRCP.State=Contact , 重新进行 Operational Key的确定。
如果本系统为了达到统一, 修改了自己的 Operational Key, 则需要发出 NTT , 触发发送状态机将修改后的 Operational Key发送给系统 2 , 以通知系 统 2。
603 ) 一旦系统 1收到的系统 2的 Operational Key和自己的 Operational Key是一致的, 并且此时 DRCP协议状态是 Contact, 即
Same=True & DRCP.State=Contact
则:
a )启动 LACP, 向 DRNI的另一端点 B发送 LACP协议报文, 并且该 LACP协议报文中携带的参数是 DRCP协议协商并确定后的参数, 包括了:
Actor.EmulatedSystemID
Actor. OperKey
等等;
b ) 将分布式中继控制协议状态设置为 Synchronization , 即 DRCP. State=Synchronization; 604 ) 除此之外 (ELSE ) , 反复进行 Operational Key的比较, 避免错误 发生, 以免系统 2的 Operational Key发生改变时, 系统 1无法感知。 一旦 Operational Key值发生改变, 将导致两系统无法聚合。
系统 1中的同步状态机的处理流程, 如图 7所示, 包括:
701. DR的初始化。在系统 1和系统 2建立好联系且协商好 LACP参数之 前, 流量是无法通过 DRNI接口来做数据转发的。 这时系统 1中用于建立转 发和聚合组接口的 DR应该还没有建立起来, 即:
Disable— DR ( )
取消内链链路的数据流转发功能, 即:
Disable lPLForwarding ( ) ;
并且 , 触发 NTT=Tme , 以通知系统 2本系统的 DR还没建立好。
702. DR 建立。 当处于联系状态中的分布式中继控制协议的状态 DRCP. State 被设置为 了 Synchronization , 即同步状态机检测到 了 DRCP. State=Synchronization , 并且经过 LACP协议交互后系统 1通过 LACP 已和端点 B完成聚合, 其聚合器已经建立起来, 即: Aggregator— Setup=Up, 则进入 DR建立的状态。 在本状态中, 将会:
首先对本系统上的网关 (GW )和聚合器做出配置, 这里的配置原则是 本系统收到的报文就在本系统转发,即不会通过内链链路来进行数据的分发, 具体的确定方式和设备的具体实现相关:
ForwardingConf ( )
使能 DR, 即:
Enable— DR ( )
至此, DR已经可以用于数据的转发。 DRNI已经可以正常工作了。
本功能将建立起转发和聚合组接口之间的连接, 从而保证了 DRNI接口 可以接收和发送数据报文。
系统 1的 DR建立完成后, 可以触发 NTT发送告知系统 2。 至此, 一个分布式的链路聚合组建立起来, 数据流量已经可以正常的在
DRNI上进行转发了。
703.分发协商。 有时为了提高系统在流量分配上的可控性, 使得 DRNI 技术能够更好的满足负载均衡、 保护的需求, DRCP控制协议可能还需要进 一步加强对数据流量的分发功能, 即能够在系统 1和系统 2之间转发流量, 这就需要通过 IPL来传输数据报文了, 但这需要系统 1和系统 2就数据流的 网关和聚合器的选择达成一致, 否则将出现混乱, 甚至环路网络风暴等严重 问题。
因此在协商一致之前, 需要先关闭 IPL的数据流量转发功能, 避免流量 的错误转发:
Disable lPLForwarding ( )
然后系统 1开始和系统 2在 DR进行针对流量分发的协商:
Complete=NeedtoCoordination ( Actor. GW , Actor.Agg, Partner. GW , Partner.Agg )
该功能的具体流程参见下文相关描述, 在此不再进行赞述。
当 Complete=Yes时, 则进入 DR分发,数据流量将按新的分发算法来进 行数据流的分发; 如果协商失败, 即 Complete=No, 则重复进行分发协商过 程。
704. DR分发。 当协商后达到了统一, 即 Complete=Yes, 则 DR需要开 启连接系统 1和系统 2的内链链路的数据流量转发功能, 打开内链链路上端 口的转发功能, 并且配置系统 1和系统 2的流量分配方式及其对应的相关变 量, 包括:
a )首先对 DR的流量分发按照之前的协商结果进行相关的配置
DistributionConf( Actor. GW, Actor— Info. Agg, Partner. GW, Partner.Agg) 这里的数据流量是按流量的会话 ID来进行分配的。
这里以系统 1的流量会话分配方式为例,根据 Actor— Agg和 Partner— Agg, 以及 Actor— GW和 Partner— GW的信息,修改系统 1上的 DR的分发方式如下 表 1所示: 表 1 系统 1上的 DR的分发方式
Figure imgf000021_0001
对于流量会话 ID=100 , 其当前的网关选择是系统 1 , 聚合器选择是系统 2, 因此在系统 1上的内链链路端口对于会话 ID=100的流量需要配置为通过 (即 IPL.Conversation[100]=Pass ); 系统 2上的内链链路端口对于话 ID=100 的流量也需要配置为通过(IPL.Conversation[100]=Pass ) 。
对于流量会话 ID=200 , 其当前的网关选择是系统 1 , 聚合器选择也是系 统 1 , 因此该会话流量无需通过内链链路转发, 其内链链路端口对于会话 ID=200的流量需要配置为不通过(即 IPL.Converstation[200]=Discard ) 。
b ) 配置完成后打开 IPL的数据流转发功能, 即:
Enable lPLForwardingO
自此,数据流可以依据配置在系统 1和系统 2之间进行数据流量的转发。 以上工作只有在系统 1和系统 2之间互连的这条链路是内链链路的角色 并可用于数据转发的时候, 即 IPL.State=Up的时候, 分布式中继控制协议才 能处于转发状态, 并且 DR按照系统 1和系统 2协商之后的分发方式来进行 流量的分发。
705.—旦该链路出现故障, 或者被其他机制抢占为其他用途, 不再作为 内链链路用于数据流量的转发, 即 IPL.State=Down的时候, 系统 1和系统 2 之间无法再有数据流量的互转, 则有两种选择:
a )按照之前协商好的分发算法重新调整流量的分发,各个会话流量不再 经过内链链路进行转发;
b )回归到分发协商子状态, 关闭 IPL的数据流转发功能, 系统 1和系统 2中的 DR回到各自之前的协商前状态来转发数据流量。
具体选择哪种方式需要根据系统 1和系统 2之间协商的 DR分发算法内 容来决定。 如果它们协商的 DR分发算法不仅包括了 IPL.State=Up时的会话 流量分发信息, 而且包括了 IPL.State=Down时的会话流量分发信息, 则釆取 a )方法; 如果仅包含了 IPL.State=Up时的会话流量分发信息, 则需釆取 b ) 方法, 回到分发协商子状态, 按协商之前的方式来转发数据流量。
在另一种实施方式下, 系统 1中的同步状态机也可以按下述流程进行处 理, 如图 8所示:
801.DR的初始化。在系统 1和系统 2建立好联系且协商好 LACP参数之 前, 流量是无法通过 DRNI接口来做数据转发的。 这时系统 1中用于建立转 发和聚合组接口的 DR应该还没有建立起来, 即:
Disable— DR ( )
取消内链链路的数据流转发功能, 即:
Disable lPLForwarding ( )
并且 , 触发 NTT=Tme , 以通知系统 2本系统的 DR还没建立好。
802.分发协商。 当处于联系状态中的分布式中继控制协议的状态
DRCP. State 被置为 了 Synchronization , 即 同 步状态机检测到 了 DRCP. State=Synchronization时, 先进行会话分发算法的协商。
首先将 IPL的数据转发功能关闭, 即系统 1和系统 2之间不能通过 IPL 分流数据:
Disable lPLForwarding ( )
然后开始进行系统 1和系统 2的会话分发算法的协商:
Complete=NeedtoCoordination ( Actor. GW , Actor.Agg , Partner. GW , Partner.Agg )
该功能的具体流程参见下文相关描述, 在此不再进行赞述。
当 Complete=Yes ,且聚合器已经建立完成即 Aggregator— Ready=Tme时, 进入 DR分发子状态, 数据流量将按新的分发算法来进行数据流的分发; 如果协商由于一些原因没有完成, 即 Complete=No, 并且聚合器也已经 建立完成, 即 Aggregator— Ready=Tme, 则进入 DR转发子状态, 数据流量按 系统 1和系统 2的各自 DR决定的网关选择和聚合器选择进行转发, 这里的 配置原则是本系统收到的报文就在本系统转发, 即不会通过内链链路来进行 数据的分发, 具体的确定方式和设备的具体实现相关。
803.在 DR转发子状态中, 首先系统 1和系统 2的各自 DR决定的网关 选择和聚合器选择, 这里的配置原则是本系统收到的报文就在本系统进行转 发, 即
ForwardingConf ( )
使能 DR, 即:
Enable— DR ( )
至此, DR已经可以用于数据的转发。 DRNI已经可以正常工作了。
804.在 DR分发子状态中, 对 DR的流量分发按照之前的协商结果进行 相关的配置, 即:
DistributionConf( Actor. GW, Actor— Info. Agg, Partner. GW, Partner. Agg) 这里的数据流量是按流量的会话 ID来进行分配的。
这里以系统 1的流量会话分配方式为例,根据 Actor— Agg和 Partner— Agg, 以及 Actor— GW和 Partner— GW的信息,修改系统 1上的 DR的分发方式如上 表 1所示。
对于流量会话 ID=100 , 其当前的网关选择是系统 1 , 聚合器选择是系统 2, 因此在系统 1上的内链链路端口对于会话 ID=100的流量需要配置为通过 (即 IPL.Conversation[100]=Pass ); 系统 2上的内链链路端口对于话 ID=100 的流量也需要配置为通过(IPL.Conversation[100]=Pass ) 。
对于流量会话 ID=200 , 其当前的网关选择是系统 1 , 聚合器选择也是系 统 1 , 因此该会话流量无需通过内链链路转发, 其内链链路端口对于会话 ID=200的流量需要配置为不通过(即 IPL.Converstation[200]=Discard ) 。
b ) 配置完成后打开 IPL的数据流转发功能, 即:
Enable lPLForwardingO 自此,数据流可以依据配置在系统 1和系统 2之间进行数据流量的转发。 c )并且, 使能 DR, 即:
Enable— DR ( )
从而 DR可以正式按照之前协商后的分发配置的方法来进行流量的分发 了。
DR分发子状态的工作只有在系统 1和系统 2之间互连的这条链路是内 链链路的角色, 并可用于数据转发的时候, 即 IPL.State=Up的时候, 分布式 中继控制协议才能处于转发状态, 并且 DR按照系统 1和系统 2协商之后的 分发方式来进行流量的分发。
805.—旦该链路出现故障, 或者被其他机制抢占为其他用途, 不再作为 内链链路用于数据流量的转发, 即 IPL.State=Down的时候, 系统 1和系统 2 之间无法再有数据流量的互转, 则有两种选择:
a )按照之前协商好的分发算法重新调整流量的分发,各个会话流量不再 经过内链链路进行转发。
b ) 回归到分发协商子状态, 关闭 IPL 的数据流转发功能, 由于
IPL.State=Down, 协商不成功, 因此系统 1和系统 2中的 DR重新进入到 DR 转发子状态来转发流量。
NeedtoCoordination ( )功能用于系统 1和系统 2在流量分配上的统一。 一般来说, DRNI有两个方向的数据流量, 一个是从其他网络端口发往聚合 端口的数据流量,另一个是聚合端口接收到的发往其他网络端口的数据流量。 第一个方向的流量在 DR处需要选择是从系统 1的聚合器 aggregator发往聚 合端口, 还是从系统 2的聚合器 aggregator发往聚合端口, 这时的流量分配 由 Actor— Info.Agg来决定; 第二个方向的流量在 DR处需要选择是从系统 1 发往其他网络端口,还是经由内链链路发送到系统 2后再发往其他网络端口, 这时的流量分配由 Actor— Info.GW来决定。 因此 NeedtoCoordination ( )功能 ;fc是用于 Actor— Info.Agg 和 Partner— Info.Agg , 以及 Actor— Info.GW 和 Partner— Info.GW的统一,防止出现冲突的问题。具体流程如图 9所示,包括: 901.判断是否需要在本系统和邻接系统之间进行网关选择和聚合器选择 的交互, 如果不需要, 则直接返回不交互, 设置 Complete=False; 如果需要 则需要进一步判断; 是否是 Up的, 如果此时 IPL的状态还是 Down的, 即不能用于系统 1和系 统 2之间数据流的转发,因此返回不交互, Complete=False;如果 IPL.State=Up , 则执行下一步骤;
903.开始将本系统 1的网关选择、 聚合器选择和系统 2的网关选择、 聚 合器选择的信息进行比对;
904.判断两系统在会话流量的分配上是否是一致的, 即系统 1 和系统 2 在流量分配上的决策是否是一样的。 如果是一致的则表示交互完成, 即 Complete=True;
905.如果不一致, 则 ^1下列处理:
a )按既定的策略来确定 Acto.GW和 Actor.Agg的信息;
b )将 Actor.GW、 Actor.Agg, Partner. Agg, 以及 Partner.GW信息通过触 发 NTT让发送状态机发送给系统 2。
处理之后, 重新回到开始处再次进行判断对比, 直到该功能返回 True 或者 False„
这里的既定的策略包括但不限于包括以下 2种:
a )系统 1完全接受系统 2在网关选择和聚合器选择的信息, 即经过交互 修改后, 系统 1和系统 2在网关选择和聚合器选择上完全一致;
b )系统 1和系统 2只选择出他们一致的部分,并只对达成一致的会话流 量进行分发, 对于在网关选择、 聚合器选择上有冲突的会话流量釆取丟弃的 方式。 也可以将有冲突的会话流量上报告警, 由高层协议或者网络管理员来 做出相应的调整。 一旦原冲突的会话流量在调整后达到了一致, 又可恢复这 些会话流量的分发。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。
以上所述仅为本发明的优选实施例而已, 并非用于限定本发明的保护范 围。 根据本发明的发明内容, 还可有其他多种实施例, 在不背离本发明精神 改变和变形, 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。
工业实用性 本发明实施例实现了分布式链路聚合组中一端多个系统之间的控制通信, 能够有效的实现多个系统聚合为一个聚合组后, 实现互连接口上的保护, 不 仅是链路上的保护, 而且实现了节点级保护。

Claims

权 利 要 求 书
1、一种分布式弹性网络互连中同一端内系统之间交互信息的方法,应用 于链路聚合组端点中的每一个系统, 包括:
通过内链接口发送分布式中继控制协议(DRCP )协议报文, 其中至少 携带本系统的系统信息;
在接收到邻接系统发来的 DRCP协议报文后, 如判断出本系统与所述邻 接系统能形成分布式弹性网络互连的一个端点,则确定本系统的操作 Key值。
2、 如权利要求 1所述的方法, 其中, 还包括:
在确定本系统的操作 Key值后, 在本系统内建立分布式中继通道。
3. 如权利要求 2所述的方法, 其中, 还包括:
在确定本系统的操作 Key值后, 与所述邻接系统协商统一的会话分发方 式。
4、 如权利要求 1所述的方法, 其中,
所述判断出本系统与所述邻接系统能形成同一个端点, 包括:
对接收到的所述 DRCP协议报文中携带的所述邻接系统的系统信息与本 系统的系统信息进行匹配性检查, 若所述匹配性检查通过, 则判断出本系统 与所述邻接系统能形成同一个端点。
5、 如权利要求 4所述的方法, 其中,
所述对接收到的所述 DRCP协议报文中携带的所述邻接系统的系统信息 与本系统的系统信息进行匹配性检查, 包括:
判断本系统的端点标识和所述邻接系统的端点标识是否一致;和 /或判断 本系统的虚拟系统标识和所述邻接系统的虚拟系统标识是否一致;
所述匹配性检查通过, 包括:
所述本系统与所述邻接系统的端点标识相同,和 /或所述本系统与所述邻 接系统的虚拟系统标识相同。
6、 如权利要求 5所述的方法, 其中,
所述对接收到的所述 DRCP协议报文中携带的所述邻接系统的系统信息 与本系统的系统信息进行匹配性检查, 还包括:
判断本系统的系统编号 (System Number ) 与所述邻接系统的 System Number是否冲突;
所述匹配性检查通过, 包括:
所述本系统与所述邻接系统的端点标识和 /或虚拟系统标识分别相同,且 本系统与所述邻接系统的 System Number不冲突。
7、 如权利要求 4~6中任意一项所述的方法, 其中, 还包括:
若匹配性检查通过, 则保存所述 DRCP协议报文中携带的所述邻接系统 的系统信息。
8、 如权利要求 1、 4或 5所述的方法, 其中,
所述发送 DRCP协议艮文, 包括: 周期性地发送所述 DRCP协议艮文; 所述方法还包括:
每当接收到邻接系统发来的 DRCP协议报文后, 启动一个定时器; 若在所述定时器超时时, 未收到所述邻接系统发来的 DRCP协议报文, 或者在所述定时器超时前收到了所述邻接系统发来的 DRCP协议报文, 但匹 配性检查未通过, 则确定本系统与所述邻接系统不能再形成分布式弹性网络 互连的一个端点。
9、 如权利要求 1所述的方法, 其中,
所述发送 DRCP协议艮文, 包括:
在本系统的系统信息中有参数更新时, 发送所述 DRCP协议 文。
10、 如权利要求 1所述的方法, 其中,
所述确定本系统的操作 Key值, 包括:
如判断出本系统的操作 Key值与所述邻接系统的操作 Key值相同,则维 持本系统的操作 Key值不变。
11、 如权利要求 10所述的方法, 其中,
所述确定本系统的操作 Key值, 包括: 如判断出本系统的操作 Key值与所述邻接系统的操作 Key值不同,则依 据策略, 修改本系统的操作 Key值或者维持本系统的操作 Key值不变。
12、 如权利要求 1所述的方法, 其中,
所述确定本系统的操作 Key值, 包括:
根据本系统的管理 Key值及接收到的所述邻接系统的管理 Key值,计算 出本系统的操作 Key值。
13、 如权利要求 1、 10、 11或 12所述的方法, 其中, 还包括: 在确定本系统的操作 Key值后,将本系统的操作 Key值通过链路汇聚控 制协议(LACP )报文发送给分布式弹性网络互连的对端。
14、 如权利要求 3所述的方法, 其中,
所述与所述邻接系统协商统一的会话分发方式, 包括:
对所述邻接系统发来的所述 DRCP协议报文中携带的会话分法方式与本 系统的会话分发方式进行协商, 依据协商好的会话分发方式来配置本系统内 分布式中继的流量分发方式;
所述会话分发方式包括下述两个参数中任意一个或任意组合: 网关系统 选择和聚合器 /聚合端口选择。
15、 如权利要求 14所述的方法, 其中,
所述对所述邻接系统发来的所述 DRCP协议报文中携带的会话分法方式 与本系统的会话分发方式进行协商, 包括:
将所述邻接系统发来的 DRCP协议报文中携带的会话分发方式与本系统 的会话分发方式进行对比, 对于在会话分发方式达到一致的会话, 则分布式 中继按一致的会话分发方式进行所述会话流量的分发, 对于在会话分发方式 量。 、 ;"5' ' "
16、 如权利要求 2所述的方法, 其中,
所述在本系统内建立分布式中继通道, 包括: 对分布式中继在网关和聚合器 /聚合端口上会话分发做出配置,配置后所 述分布式中继在本系统上的网关和聚合器 /聚合端口之间转发会话流量。
17、 如权利要求 2所述的方法, 其中,
在与所述邻接系统协商统一的会话分发方式之前, 还包括:
关闭与所述邻接系统之间的内链链路的数据流量转发功能;
当与所述邻接系统统一会话分发方式后协商完成, 统一了分发算法, 开 启所述内链链路的数据流量转发功能。
18、 如权利要求 8所述的方法, 其中, 还包括:
若确定本系统与所述邻接系统不能再形成分布式弹性网络互连的一个端 点, 则依据策略确定是否需要对本系统的系统信息进行修改; 如需要修改, 则对本系统的系统信息中至少部分 LACP参数进行修改,并将修改后的 LACP 统的 LACP参数与所述邻接系统的 LACP参数至少不完全相同。
19、 如权利要求 12或 18所述的方法, 其中,
所述对本系统的系统信息中至少部分 LACP参数进行修改, 包括: 对本系统的操作 key值和 /或系统标识进行修改,或者将操作 Key值恢复 为管理 Key值。
20、 如权利要求 14或 15所述的方法, 其中, 则将所述分布式中继恢复为协商前的会话分发方式的配置。
21、 如权利要求 1所述的方法, 其中,
通过所述内链接口发送的所述 DRCP协议 "^文中还携带有与本系统相连 接的其他邻接系统的系统信息和 /或会话分发方式。
22、 一个分布式弹性网络互连中实现分布式中继控制的系统, 包括: 发送状态机设置为: 在本系统的其他状态机指示需要发送或者需周期发 送时, 发送分布式中继控制协议(DRCP )协议 文;
接收状态机设置为: 接收邻接系统发来的 DRCP协议报文, 对本系统和 所述邻接系统的系统信息进行匹配性检查, 在匹配性检查通过后记录所述 DRCP协议报文中的信息, 启动定时器判断是否定时接收到所述邻接系统再 次发来的 DRCP协议 ^艮文;
协商状态机设置为: 确定本系统的操作 Key值, 确保和所述邻接系统的 操作 Key值一致;
同步状态机设置为: 建立聚合器 /聚合端口和网关之间的转发通道, 按需 与所述邻接系统协商统一的会话分发方式,配置分布式中继的会话分发方式; 周期发送状态机设置为:决定所述发送状态机周期发送 DRCP协议报文。
23、 如权利要求 22所述的系统, 其中,
所述接收状态机设置为: 对本系统和所述邻接系统的系统信息进行匹配 性检查, 包括:
所述接收状态机判断本系统的端点标识和所述邻接系统的端点标识是否 一致;和 /或判断本系统的虚拟系统标识和所述邻接系统的虚拟系统标识是否 一致;
所述匹配性检查通过, 包括:
所述本系统与所述邻接系统的端点标识相同,和 /或所述本系统与所述邻 接系统的虚拟系统标识相同。
24、 如权利要求 23所述的系统, 其中,
所述接收状态机设置为: 对本系统和所述邻接系统的系统信息进行匹配 性检查, 还包括:
所述接收状态机判断本系统的系统编号( System Number )与所述邻接系 统的 System Number是否冲突;
所述匹配性检查通过, 包括:
所述本系统与所述邻接系统的端点标识和 /或虚拟系统标识分别相同,且 邻接系统的 System Number合法, 或者, 本系统与所述邻接系统的 System Number不冲突。
25、 如权利要求 22所述的系统, 其中,
所述协商状态机设置为: 确定本系统的操作 Key值, 确保和所述邻接系 统的操作 Key值一致, 包括:
所述协商状态机在判断出本系统的操作 Key值与所述邻接系统的操作 Key值相同时, 维持本系统的操作 Key值不变; 在判断出本系统的操作 Key 值与所述邻接系统的操作 Key值不同时, 依据策略, 修改本系统的操作 Key 值或者维持本系统的操作 Key值不变。
26、 如权利要求 22所述的方法, 其中,
所述协商状态机设置为: 确定本系统的操作 Key值, 确保和所述邻接系 统的操作 Key值一致, 包括:
所述协商状态机根据本系统的管理 Key值及接收到的所述邻接系统的管 理 Key值, 计算出本系统的操作 Key值。
27、 如权利要求 25或 26所述的系统, 其中, 还包括:
所述协商状态机还设置为: 在确定本系统的操作 Key值后, 将本系统的 操作 Key值通过链路汇聚控制协议(LACP )报文发送给分布式弹性网络互 连的对端。
28、 如权利要求 22所述的系统, 其中, 所述同步状态机设置为: 所述与所述邻接系统协商统一的会话分发方式, 包括:
对所述邻接系统发来的所述 DRCP协议报文中携带的会话分法方式与本 系统的会话分发方式进行协商, 依据协商好的会话分发方式来配置本系统内 分布式中继的流量分发方式。
29、 如权利要求 28所述的系统, 其中,
所述同步状态机设置为: 对所述邻接系统发来的所述 DRCP协议报文中 携带的会话分法方式与本系统的会话分发方式进行协商, 包括:
所述同步状态机将所述邻接系统发来的 DRCP协议报文中携带的会话分 发方式与本系统的会话分发方式进行对比, 对于在会话分发方式达到一致的 会话, 则按一致的会话分发方式进行所述会话流量的分发, 对于在会话分发
30、 如权利要求 28或 29所述的系统, 其中, 所述会话分发方式包括下述两个参数中任意一个或任意组合: 网关系统 选择和聚合器 /聚合端口选择。
31、 如权利要求 22所述的系统, 其中,
同步状态机还设置为:在与所述邻接系统协商统一的会话分发方式之前, 关闭与所述邻接系统之间的内链链路的数据流量转发功能;
当与所述邻接系统统一会话分发方式后协商完成, 统一了分发算法, 开 启所述内链链路的数据流量转发功能。
32、 如权利要求 22所述的系统, 其中,
所述接收状态机还设置为: 如未定时收到所述邻接系统再次发来的 DRCP协议报文或者接收到的所述邻接系统再次发来的 DRCP协议报文没有 通过匹配性检查, 则依据策略确定是否需要对本系统的系统信息进行修改; 如需要修改, 则对本系统的系统信息中至少部分 LACP参数进行修改, 并将 中, 修改后本系统的 LACP参数与所述邻接系统的 LACP参数至少不完全相 同。
33、 如权利要求 26或 32所述的系统, 其中,
所述接收状态机设置为: 对本系统的系统信息中至少部分 LACP参数进 行修改, 包括: 所述接收状态机对本系统的操作 key值和 /或系统标识进行修 改, 或者将操作 Key值恢复为管理 Key值。
34、 如权利要求 28或 29所述的系统, 其中,
所述同步状态机还设置为: 在与所述邻接系统之间的内链链路发生故障 或者所述内链链路不可用时, 将所述分布式中继恢复为协商前的会话分发方 式的配置。
35、 如权利要求 22所述的系统, 其中,
所述发送状态机通过所述内链接口发送的所述 DRCP协议报文中还携带 有与本系统相连接的其他邻接系统的系统信息和 /或会话分发方式。
PCT/CN2014/075462 2013-04-28 2014-04-16 Drni中同一端内系统之间交互信息的方法和系统 WO2014176975A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP14791616.7A EP2981026B1 (en) 2013-04-28 2014-04-16 Method and system for information interaction among systems in the same portal in drni
US14/787,596 US9749186B2 (en) 2013-04-28 2014-04-16 Method and system for information interaction among systems in the same end in DRNI
JP2016510922A JP6105155B2 (ja) 2013-04-28 2014-04-16 Drniにおける同一端内システムの間で情報を交換する方法及びシステム

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310155668.9 2013-04-28
CN201310155668.9A CN104125088B (zh) 2013-04-28 2013-04-28 Drni中同一端内系统之间交互信息的方法和系统

Publications (1)

Publication Number Publication Date
WO2014176975A1 true WO2014176975A1 (zh) 2014-11-06

Family

ID=51770360

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/075462 WO2014176975A1 (zh) 2013-04-28 2014-04-16 Drni中同一端内系统之间交互信息的方法和系统

Country Status (5)

Country Link
US (1) US9749186B2 (zh)
EP (1) EP2981026B1 (zh)
JP (1) JP6105155B2 (zh)
CN (1) CN104125088B (zh)
WO (1) WO2014176975A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172690A (zh) * 2021-11-11 2022-03-11 新华三大数据技术有限公司 一种终端认证方法及装置

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9497074B2 (en) 2013-04-23 2016-11-15 Telefonaktiebolaget L M Ericsson (Publ) Packet data unit (PDU) structure for supporting distributed relay control protocol (DRCP)
US9497132B2 (en) 2013-04-23 2016-11-15 Telefonaktiebolaget Lm Ericsson (Publ) Method and system of implementing conversation-sensitive collection for a link aggregation group
CN104243259B (zh) * 2013-06-20 2019-07-30 中兴通讯股份有限公司 分布式弹性网络互连系统中协作方法和系统
CN106878164B (zh) * 2016-12-13 2020-04-03 新华三技术有限公司 一种报文传输方法和装置
CN107547398B (zh) * 2017-05-23 2020-04-17 新华三技术有限公司 报文转发方法、装置和设备
CN108259348B (zh) * 2017-05-24 2020-05-12 新华三技术有限公司 一种报文传输方法和装置
CN107249047B (zh) * 2017-06-09 2020-11-17 区动(上海)网络科技有限公司 基于网络协议的数据传送方法、装置及计算机处理设备
US11039488B2 (en) 2018-04-05 2021-06-15 Telefonaktiebolaget Lm Ericsson (Publ) Adaptation layer setup and configuration in integrated access backhauled networks
CN108737189B (zh) * 2018-05-25 2021-11-05 新华三技术有限公司 Dr设备角色更新方法及装置
CN109194521B (zh) * 2018-09-29 2021-12-07 新华三技术有限公司 一种流量转发方法及设备
CN110708275B (zh) 2018-12-18 2020-11-06 新华三技术有限公司 一种协议报文的处理方法和装置
CN113746763B (zh) * 2020-05-29 2022-11-11 华为技术有限公司 一种数据处理的方法、装置和设备
CN111835560B (zh) * 2020-06-29 2024-02-09 新华三信息安全技术有限公司 一种分布式弹性网络互连系统及其部署方法
CN112929417B (zh) * 2021-01-22 2022-05-27 新华三信息安全技术有限公司 报文处理方法及装置
CN115333974B (zh) * 2022-08-10 2023-08-11 杭州云合智网技术有限公司 Drni网络中基于vsi的环路检测方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014019A (zh) * 2010-11-04 2011-04-13 中兴通讯股份有限公司 聚合链路切换方法及装置
CN102316039A (zh) * 2011-09-09 2012-01-11 中兴通讯股份有限公司 基于聚合体优先级策略的聚合体逻辑选择的方法及系统
CN102752187A (zh) * 2011-04-21 2012-10-24 中兴通讯股份有限公司 弹性网络接口的实现方法和系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6910149B2 (en) * 2001-09-24 2005-06-21 Intel Corporation Multi-device link aggregation
CN101252459B (zh) * 2008-03-24 2010-12-08 中兴通讯股份有限公司 一种设置链路端口的协议状态的方法及其监控方法
US8213296B2 (en) * 2009-05-14 2012-07-03 Verizon Patent And Licensing Inc. Link aggregation protection
US8913489B2 (en) * 2010-08-04 2014-12-16 Alcatel Lucent System and method for virtual fabric link failure recovery
EP2850787B1 (en) * 2012-05-15 2019-02-13 Telefonaktiebolaget LM Ericsson (publ) Methods and apparatus for detecting and handling split brain issues in a link aggregation group
US9497074B2 (en) * 2013-04-23 2016-11-15 Telefonaktiebolaget L M Ericsson (Publ) Packet data unit (PDU) structure for supporting distributed relay control protocol (DRCP)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014019A (zh) * 2010-11-04 2011-04-13 中兴通讯股份有限公司 聚合链路切换方法及装置
CN102752187A (zh) * 2011-04-21 2012-10-24 中兴通讯股份有限公司 弹性网络接口的实现方法和系统
CN102316039A (zh) * 2011-09-09 2012-01-11 中兴通讯股份有限公司 基于聚合体优先级策略的聚合体逻辑选择的方法及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172690A (zh) * 2021-11-11 2022-03-11 新华三大数据技术有限公司 一种终端认证方法及装置
CN114172690B (zh) * 2021-11-11 2023-12-26 新华三大数据技术有限公司 一种终端认证方法及装置

Also Published As

Publication number Publication date
CN104125088B (zh) 2019-05-10
CN104125088A (zh) 2014-10-29
US20160105324A1 (en) 2016-04-14
JP2016517252A (ja) 2016-06-09
EP2981026A1 (en) 2016-02-03
US9749186B2 (en) 2017-08-29
EP2981026B1 (en) 2019-11-27
JP6105155B2 (ja) 2017-03-29
EP2981026A4 (en) 2016-09-07

Similar Documents

Publication Publication Date Title
WO2014176975A1 (zh) Drni中同一端内系统之间交互信息的方法和系统
RU2635288C2 (ru) Способ и система для поддержки операций по протоколу управления распределенным ретранслятором (drcp) при сбое связи
EP1982447B1 (en) System and method for detecting and recovering from virtual switch link failures
US7983173B2 (en) System and method for detecting link failures
US8817594B2 (en) Technique establishing a forwarding path in a network system
US7197660B1 (en) High availability network security systems
JP4527447B2 (ja) ネットワーク中継装置及びその制御方法
WO2015101168A1 (zh) 故障恢复的方法及控制器
EP2911355B1 (en) Method and device for flow path negotiation in link aggregation group
JP2013519268A (ja) データ転送方法、データ転送装置及びデータ転送システム
US11128663B2 (en) Synchronizing link and event detection mechanisms with a secure session associated with the link
WO2012058895A1 (zh) 聚合链路切换方法及装置
WO2015070383A1 (zh) 一种链路聚合的方法、装置和系统
US8711681B2 (en) Switch redundancy in systems with dual-star backplanes
EP1803259B1 (en) Carrier class resilience solution for switched ethernet local area networks (lans)
WO2014201903A1 (zh) 分布式弹性网络互连系统中协作方法和系统
CN112995002B (zh) 一种交换机环网的设计方法、交换机及存储介质
WO2014075594A1 (zh) 基于多环结构网络相交环的业务的传输保护方法及装置
WO2013004124A1 (zh) 一种分布式链路聚合系统中业务流转发方法及节点
CN116962284A (zh) 针对受控不可用事件的mclag的高效业务重定向
WO2014044088A1 (zh) L2tp网络的保护方法、装置及系统
KR102376484B1 (ko) 이중화 회선 자동 절체를 위한 장치 및 방법
US20220321268A1 (en) Review and retry for minimum speed port channel
CN108430039A (zh) 一种组播优化方法、组播设备及系统
JP2001148714A (ja) 通信ネットワーク装置および簡易ルーティング方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14791616

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2016510922

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 14787596

Country of ref document: US

Ref document number: 2014791616

Country of ref document: EP