CN111314215A - Data message forwarding control method and computing device - Google Patents

Data message forwarding control method and computing device Download PDF

Info

Publication number
CN111314215A
CN111314215A CN202010097121.8A CN202010097121A CN111314215A CN 111314215 A CN111314215 A CN 111314215A CN 202010097121 A CN202010097121 A CN 202010097121A CN 111314215 A CN111314215 A CN 111314215A
Authority
CN
China
Prior art keywords
physical interface
switch
processing device
physical
network
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.)
Pending
Application number
CN202010097121.8A
Other languages
Chinese (zh)
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.)
Huayun Data Co ltd
Original Assignee
Huayun Data 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 Huayun Data Co ltd filed Critical Huayun Data Co ltd
Priority to CN202010097121.8A priority Critical patent/CN111314215A/en
Publication of CN111314215A publication Critical patent/CN111314215A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Abstract

The invention provides a data message forwarding control method and a computing device, wherein the method comprises the following steps: detecting the stability of a first physical interface in an uplink in a three-layer network, and opening a downlink formed between a second physical interface and processing equipment when the uplink is in a stable state so as to establish at least two data message forwarding channels between an external network and the processing equipment through the first physical interface and the second physical interface; the first physical interface and the second physical interface are arranged in a pair in the same switch, and all the switches are connected with the processing equipment. By the data message forwarding control method and the computing device, high availability of networking in a three-layer network is realized, the defect of long fault transfer time in an uplink configured in an unstable three-layer network is overcome, and the reliability and high availability of forwarding the data message to an external network by a processing device are ensured.

Description

Data message forwarding control method and computing device
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a data message forwarding control method and a computing device.
Background
With the rapid development of the internet and the continuous increase of the business volume of users, the requirements on the reliability and the performance of the business are higher and higher. In order to meet the requirements of users, an ha (high availability) cluster is often used in an actual application environment to implement service processing. In a high-availability cluster, cooperation and consistency among nodes are needed to ensure the effectiveness of the cluster on service processing. If a certain node in the cluster has a problem, the working performance of the whole cluster is affected, so that the cluster is required to have a function of rapidly processing the problem node, and the reliability of the cluster and the effectiveness of service processing are ensured.
In order to ensure high availability of the cluster, when the virtual server or the server accesses the external network, two or more uplink and downlink data packet forwarding links are usually arranged between the virtual server or the server and the external network, and switches are respectively arranged in the data packet forwarding links to control one data packet forwarding link individually. The method and the device realize that the downlink port of the data message is automatically closed when the uplink port fails through a routing protocol, and transfer the forwarding flow of the data message to other data message forwarding links so as to ensure the availability of the server.
However, when a physical port of a downlink is opened, a traffic of the downlink enters an uplink formed between an uplink port and an external network, and the uplink has an objective factor (e.g., external network congestion, traffic limitation, etc.) with uncertainty due to stability of the external network, so that a packet loss phenomenon occurs in a data packet forwarded to the external network in the uplink, thereby causing a defect of long failover time and poor user experience in a high-availability cluster.
Disclosure of Invention
The present invention is directed to a method and a computing device for controlling forwarding of a server data packet, so as to solve the defects in the prior art, and in particular, to solve the problem of failure of switching of a forwarding link when the forwarding link of a data packet needs to be switched due to a failure of a forwarding link formed between a server and an external network in a high-availability cluster, thereby achieving efficient forwarding of a data packet between the external network and a processing device (e.g., a server).
To achieve the first object, the present invention provides a data packet forwarding control method, including:
detecting the stability of a first physical interface in an uplink in a three-layer network, and opening a downlink formed between a second physical interface and processing equipment when the uplink is in a stable state so as to establish at least two data message forwarding channels between an external network and the processing equipment through the first physical interface and the second physical interface; the first physical interface and the second physical interface are arranged in the same switch in pairs, and all switches are connected with processing equipment.
As a further improvement of the present invention, the first physical interface and the second physical interface are arranged in pair, and the second physical interfaces of the switch are connected to processing devices located in a two-layer network.
As a further improvement of the present invention, the first physical interface and the second physical interface are arranged in pair and are deployed in a switch, so as to implement port-level link switching for at least two data packet forwarding channels through the first physical interface and the second physical interface.
As a further improvement of the present invention, the first physical interface and the second physical interface are arranged in pairs and are respectively disposed in two or more switches, so as to implement device-level link switching for at least two data packet forwarding channels through the first physical interface and the second physical interface.
As a further improvement of the present invention, at least two uplinks and two downlinks are established between the processing device and the external network through at least two switches, and whether a first physical interface of the switch accessing the uplinks is in a stable state is detected to match the downlinks capable of forwarding the data packets to the processing device, so as to establish at least two data packet forwarding channels between the external network and the processing device through the first physical interface and a second physical interface.
As a further improvement of the present invention, the detecting whether the first physical interface of the switch accessing the uplink is in a stable state specifically uses one or more of the following routing protocols to detect:
performing stability detection on the first physical interface by adopting a static routing protocol;
a dynamic routing protocol is employed to perform stability detection on the first physical interface.
As a further improvement of the present invention, the performing, by using the static routing protocol, the stability detection on the first physical interface specifically includes:
and detecting the stability of all configured uplinks based on the first physical interface by adopting a BFD protocol or an ICMP protocol.
As a further improvement of the present invention, the performing the stability detection on the first physical interface by using the dynamic routing protocol specifically includes:
and detecting the stability of all configured uplinks based on the first physical interface by adopting an OSPF protocol or a BGP protocol.
As a further improvement of the invention, the method also comprises the following steps:
an uplink is rejected in a three-layer network between the unstable first physical interface and the external network.
As a further improvement of the present invention, the processing device configures a plurality of physical network cards, and the ports of the physical network cards are aggregated to form an aggregated port; the aggregation port receives a service request issued by the switch, and sends a data message with a source MAC address as the MAC address of the processing equipment and a target MAC address as the MAC address corresponding to the aggregation port group to the switch by using an ARP table;
after receiving the data message sent by the processing equipment, the switch replaces the source MAC address contained in the data message with the MAC address contained in the first physical interface exposed to the external network by the switch, replaces the target MAC address with the MAC address of the next hop equipment and forwards the target MAC address to the external network.
As a further improvement of the invention, the plurality of physical network cards configured by the processing device perform the binding to expose a virtual network card with a unique IP address to all switches.
As a further improvement of the present invention, the processing device is at least one server or a cluster server composed of at least one server.
Based on the same inventive concept, the invention also discloses a computing device, comprising:
at least one processing device, at least two switches connected to the processing device;
the switch is accessed to an external network through a first physical interface and is connected with the processing equipment through a second physical interface;
when the processing device forwards the data packet with the external network, the method for controlling data packet forwarding is executed.
Compared with the prior art, the invention has the beneficial effects that:
by the data message forwarding control method and the computing device, high availability of networking in a three-layer network is realized, the defect of long fault transfer time in an uplink configured in an unstable three-layer network is overcome, and the reliability and high availability of forwarding the data message to an external network by a processing device are ensured.
Drawings
Fig. 1 is an overall flowchart of a data packet forwarding control method;
FIG. 2 is a topology diagram of a computing device operating the data packet forwarding control method of the present invention;
fig. 3 is a topology diagram of a computing device operating the data packet forwarding control method.
Detailed Description
The present invention is described in detail with reference to the embodiments shown in the drawings, but it should be understood that these embodiments are not intended to limit the present invention, and those skilled in the art should understand that functional, methodological, or structural equivalents or substitutions made by these embodiments are within the scope of the present invention.
Term "Logic"includes any physical and tangible functions for performing a task. E.g. streamEach operation illustrated in the flowcharts corresponds to a logical component for performing the operation. Operations may be performed using, for example, software running on a computer device, hardware (e.g., chip-implemented logic functions), etc., and/or any combination thereof. When implemented by a computing device, the logical components represent electrical components that are physical parts of the computer system, regardless of the manner in which they are implemented.
Phrase "Is configured as"or a phrase"Is configured to"includes any manner in which any kind of physical and tangible functionality may be constructed to perform the identified operations. The functions may be configured to perform operations using, for example, software running on a computer device, hardware (e.g., chip-implemented logic functions), and/or the like, and/or any combination thereof.
The first embodiment is as follows:
an embodiment of a method for controlling forwarding of data packets (hereinafter referred to as "method") according to the present invention is disclosed with reference to fig. 1 to 3. The method is used for executing unidirectional and/or bidirectional data message forwarding operation. The data message may result from the computing device 100 performing a user-initiated request generation in response to a user's request, such that the data message establishes a data link in the north-south direction in fig. 3, and the data link includes an uplink data link (i.e., uplink) between the plurality of connection switches and the external network 30, and a downlink data link (i.e., downlink) between the plurality of connection switches and the one or more service devices.
The data message forwarding control method comprises the following steps of S1 and S2.
Step S1 detects the stability of the first physical interface in the uplink in the three-layer network 31, and opens the downlink formed between the second physical interface and the processing device 40 when the uplink is in a stable state.
In order to improve the reliability of the data packet forwarding process and the high availability of the server or cluster server applying the method, in the scenario shown in this embodiment, a processing device (i.e. a generic concept of the server or cluster server) is configured with a physical network card NIC-1 and a physical network card NIC-2, and the number of the physical network cards is consistent with the number of switches (e.g. the switch 10 and the switch 20). The number of switches disposed between the three-layer network 31 and the two-layer network 32 is not limited to two, and may be three or more (for example, the switches 10, 20 to the switch N shown in fig. 3). The two-tier network (L2)32 is the data link layer and the three-tier network (L3)31 is the network layer. In the two-layer network 32, data packets can only be exchanged between one subnet, and if data is to be transmitted across subnets, path planning needs to be implemented by the path planning function of the three-layer network 31, that is, by the switch 10 and the switch 20.
As shown in fig. 2, in this embodiment, the switch 10 configures PORT-1 and PORT-2, the switch 20 configures PORT-3 and PORT-4, both PORT-1 and PORT-3 are first physical interfaces, both PORT-2 and PORT-4 are second physical interfaces, the PORT-2 of the switch 10 is connected to the physical network card NIC-1 and establishes a downlink, and the PORT-4 of the switch 20 is connected to the physical network card NIC-2 and establishes another downlink. PORT-1 establishes one uplink with the external network 30, and PORT-3 establishes another uplink with the external network 30. The first physical interface and the second physical interface are arranged in pair, and belong to at least two switches or only belong to the same switch (for example, the switch 10 or the switch 20, and a plurality of first physical interfaces and a plurality of second physical interfaces are configured in one switch), so that link switching is performed on at least two data packet forwarding channels through the first physical interface and the second physical interface, so as to implement High Availability (HA) and failover. The second physical interfaces of all switches are connected to processing equipment 40 located in the two-tier network 32. The task of the processing device 40 is to accept the user's request service, which may be based on various operations of the cloud platform, such as: migration operation request, write request, read request, etc. when the requested service is executed by the processing device 40, the generated data message passes through the uplink and downlink constructed by the switch 10 or the switch 20, the data message is unicast or broadcast between the processing device 40 and the external network 30, and finally the external network 30 responds to the service request initiated by the user through the designated network interface and protocol. The forwarding path rule of the switch 10 or the switch 20 is set to be important because the forwarding path of the switch is not selected by one switch, but is an optimal next hop address selected by a plurality of switches together. Therefore, the applicant indicates that in the forwarding method disclosed in this embodiment, two or more data forwarding channels may be implemented on the basis of one switch (i.e. port-level link switching referred to in this application), or implemented together with multiple switches such as the switch 10 and the switch 20 (i.e. device-level link switching referred to in this application), so as to achieve a convergence rate on the millisecond level, and thus, the networking environment with a strict real-time requirement can be satisfied.
Specifically, in the present embodiment, at least two uplinks (i.e., arrow 5 and arrow 6 constitute one uplink, arrow 7 and arrow 8 constitute the other uplink) and two downlinks (i.e., arrow 1 and arrow 2 constitute one downlink, arrow 3 and arrow 4 constitute the other downlink) are established between the processing device 40 and the external network 30 through at least two switches, detecting whether a first physical interface of the switch accessing an uplink is in a stable state, to match out the downlink capable of forwarding the data packet to the processing device 40, to establish at least two data packet forwarding channels between the external network 30 and the processing device 40 through the first physical interface and the second physical interface (refer to the data packet forwarding channel 80 and the data packet forwarding channel 81 shown in fig. 3), and the number of data packet forwarding paths is determined by the number of switches configured in the computing device 100. Referring to fig. 3, if the computing apparatus 100 includes N switches, 2 × N or more data packet forwarding channels may be formed, as long as one of the data packet forwarding channels is ensured to establish a complete uplink and downlink between the external network 30 and the processing device 40; wherein, a data message forwarding channel is composed of an uplink and a downlink formed by a switch. With reference to fig. 2, the applicant indicates that the first physical interfaces PORT-1 and PORT-3 and the second physical interfaces PORT-2 and PORT-4 configured by the switch 10 and the switch 20 can also be deployed in the same switch to implement the link switching at the PORT level, and the number of the first physical interfaces accessing the three-layer network 31 and the number of the second physical interfaces accessing the two-layer network 32 of the switch 10 and the switch 20 can be further configured to be greater than two, and the configured numbers of the first physical interfaces and the second physical interfaces do not need to be configured to be equal.
More specifically, in this embodiment, it is detected whether the first physical interface (PORT-1 or PORT-3) is stable in the three-layer network 31, and only when the first physical interface is in a stable state, the second physical interface located in the same switch and accessing the two-layer network 32 is opened. For example, if PORT-1 of switch 10 is detected to be stable, PORT-2 of switch 10 is turned on; if PORT-1 is detected to be unstable, PORT-2 of the switch 10 is not opened, and at this time, if PORT-3 of the switch 20 is detected to be stable, PORT-4 of the switch 20 is opened, thereby establishing a complete uplink and downlink through PORT-3 and PORT-4. In the present invention, if it is detected that the PORT-1 is unstable, the technical means of refusing to open the PORT-2 can effectively avoid the packet loss phenomenon caused by the instability of the three-layer network 31 in the uplink of the processing device 40, thereby ensuring the response effect and response efficiency to the access request initiated by the user. In general, in a cluster server or data, in order to improve network security, a plurality of switches are configured, so if an uplink constituted by arrow 5 and arrow 6 is in an unstable state, a downlink constituted by arrow 1 and arrow 2 is established, and a data packet forwarding channel is established between PORT-2 and physical network card NIC-1.
In this embodiment, detecting whether the first physical interface of the switch accessing the uplink is in a stable state specifically uses one or more of the following routing protocols: firstly, a static routing protocol is adopted to execute stability detection on a first physical interface; then, a dynamic routing protocol is employed to perform stability detection on the first physical interface. When the first physical interface (such as PORT-1 or PORT-3) is detected by using the static routing protocol and the dynamic routing protocol, and then the first physical interface is determined to be in a stable state, the second physical interface (such as PORT-2 or PORT-4) is opened. In an actual scenario, at least two data packet forwarding channels are established between the external network 30 and the processing device 40, so that when one of the data packet forwarding channels fails, the data packet can be forwarded in the other data packet forwarding channel.
The method for performing stability detection on the first physical interface by using the static routing protocol specifically comprises the following steps:
and detecting the stability of all configured uplinks based on the first physical interface by adopting a BFD protocol or an ICMP protocol. When the ICMP protocol is adopted for stability detection, an ICMP Request is used for detecting whether the next hop is reachable. When the BFD protocol is used, the echo function of the BFD protocol is used, the sending end and the opposite end address of the IP head of the echo message are set as the IP address of the interface where the echo message occurs, and the echo message is sent to the opposite end. The opposite terminal is connected with the sending terminal and periodically sends BFD echo messages, the opposite terminal does not process the data messages, and only forwards the data messages and then sends the data messages back to the sending terminal. Therefore, whether the uplink is stable is detected according to whether the BFD session message can be received or not.
The BFD protocol provides a universal standardized media independent and protocol independent fast failure detection mechanism with the following advantages: providing light load, fast failure detection for channels between adjacent forwarding engines. These failures include interfaces, data links, and possibly even the forwarding engine itself. And a single mechanism is used for detecting any medium and any protocol layer in real time. By adopting BFD, the forwarding communication state of a link or an IP route in a network can be rapidly detected and monitored, and the network performance is improved. The communication fault is found through rapid detection between adjacent systems (non-adjacent systems are linked with the route), so that a user can be helped to establish a backup channel to recover the communication more rapidly, and the reliability of the network is ensured. In this embodiment, "opposite end" and "sender" respectively correspond to the switches 10 and 20, and when there are three or more switches, the "opposite end" and "sender" respectively correspond to any pair of switches.
The method for executing stability detection on the first physical interface by adopting the dynamic routing protocol specifically comprises the following steps: and detecting the stability of all configured uplinks based on the first physical interface by adopting an OSPF protocol or a BGP protocol.
When the dynamic routing protocol (for example, OSPF protocol) is running, the adjacency state of the OSFP is dynamically detected, and when the adjacency state changes from Loading to Full, it indicates that the adjacency state Loading Done is up, which means that the uplink channel has been stabilized. When a dynamic routing protocol (e.g., the BGP protocol) is running, it is dynamically detected whether BGP establishes a stable connection with a switch located in the uplink. BGP establishes a neighbor relation with a switch in an uplink, establishes TCP connections and releases routes mutually, simultaneously has Keepalive information to maintain the neighbor relation, and can know whether BGP establishes stable network connection with the switch in the uplink through the neighbor relation and the health state of Keepalive, thereby judging whether the uplink is stable.
When the static routing protocol and the dynamic routing protocol are adopted to execute stability detection on the first physical interface and the first physical interface is considered to be in a stable state, the PORT-2 or PORT-4 is opened, so that the data message to be forwarded between the processing equipment 40 and the external network 30 is forwarded through a data message forwarding channel formed by the PORT-2 or PORT-4; and as long as the static routing protocol or the dynamic routing protocol is adopted to detect that the first physical interface is in an unstable state, the establishment of a data message forwarding channel is refused to prevent the occurrence of faults such as packet loss, response delay and the like.
Step S2, establishing at least two data packet forwarding channels between the extranet 30 and the processing device 40 through the first physical interface and the second physical interface; the first physical interface and the second physical interface are provided in a pair in the same switch, and all switches are connected to the processing device 40.
In this embodiment, a failover mechanism is operated among the switches, and the unicast or broadcast data packet in the data packet forwarding channel with the network failure is switched to any one or several other healthy data packet forwarding channels through the failover mechanism, and a forwarding operation is performed, so as to implement HA switching (high availability switching), and no core switch needs to be switched in the process of implementing HA switching, so that the network configuration of the entire computing device 100 is more reliable. Meanwhile, the switching of the data packet forwarding channels may be implemented based on two or more switches to implement the device-level data link switching, or based on one switch to implement the port-level data link switching, and implemented by relying on the aggregation port 41 disclosed below.
Preferably, in this embodiment, the method further includes: the uplink is rejected in the three-layer network 31 between the unstable first physical interface and the outer network 30. Whether the uplink to be established between the first physical interface and the external network 30 is stable is determined by detecting PORT-1 based on the aforementioned static routing protocol or dynamic routing protocol.
As shown in fig. 3, the processing device 40 configures a plurality of physical network cards, and aggregates ports of the physical network cards to form an aggregated port 41; the aggregation port 41 receives a service request issued from the switch, and sends a data packet with a source MAC address as the MAC address of the processing device and a destination MAC address as the MAC address corresponding to the aggregation port 41 to the switch by using an ARP table. After the switch receives the data packet sent by the processing device 40, the switch replaces the source MAC address included in the data packet with the MAC address included in the first physical interface exposed by the switch to the external network, and replaces the destination MAC address with the MAC address of the next-hop device, and forwards the destination MAC address to the external network. The plurality of physical network cards configured by processing device 40 perform binding (Teaming) to expose a virtual network card with a unique IP address to all switches. Specifically, the learning is to bind a plurality of physical network cards (i.e., NIC-1 and NIC-2) on the same server (a lower concept of the processing device 40) into one virtual network card (also referred to as a "virtual network adapter") through software. For the extranet 30, the server has only one visible network card, i.e., a virtual network card. For any application and the network where the server is located, the server has only one network link or only one accessible IP address. In this embodiment, by using a technical means of binding (Teaming) the plurality of physical network cards configured in the processing device 40, not only the network speed can be increased by using the plurality of physical network cards to work simultaneously, but also Load Balancing (Load Balancing) and network card redundancy (Fault Tolerance) between different physical network cards can be realized by Teaming.
Meanwhile, the switch may be connected to a processing device 40, and may also be connected to a processing device 42 and/or a processing device 43 through an aggregation port 41. Processing device 40, processing device 42, or processing device 43 is at least one server or a cluster server comprised of at least one server. The server includes but is not limited to a physical server with independent computing and storing functions, a bare metal server and the like. Referring to fig. 3, when it is detected that a data packet forwarding channel between the external network 30 and the switch 10 and the processing device 40 cannot be established based on the foregoing technical solution, the data packet is forwarded by the data packet forwarding channel 80 or the data packet forwarding channel 81 through the switch 10 between the external network 30 and the processing device 40. Meanwhile, the processing device 40 may also mount a physical machine 51 and/or a physical machine 52 (note: the number of physical machines is not limited to two), and the physical machines 51 and 52 are located in the device layer 33. The physical machines 51 and 52 may also be understood as local disks or shared storage devices.
Example two:
referring to fig. 3, based on the technical solutions included in the method for controlling forwarding of data packets according to the first embodiment, the present embodiment further discloses a computing device 100, where the computing device 100 and the external network 30 perform unidirectional and/or bidirectional data packet forwarding operations. The data packets may be based on execution of a user-initiated request by the computing device 100 in response to the user's request to generate corresponding data packets, as such data packets establish data links in the north-south direction in fig. 3, and the data links include uplink data links (i.e., uplinks) between the plurality of connecting switches and the external network 30, and downlink data links (i.e., downlinks) between the plurality of connecting switches and the one or more serving devices.
The computing device 100 includes: at least one processing device 40, at least two switches connected to the processing device 40, i.e. switch 10, switch 20 to switch N in fig. 3; the switch disclosed in this embodiment (i.e. the aforementioned switch 10 to switch N) accesses the external network 30 through a first physical interface, and the switch is connected to the processing device 40 through a second physical interface; when the processing device 40 and the external network 30 perform data packet forwarding, the method for controlling data packet forwarding according to the first embodiment is performed.
The method for controlling forwarding of data packets included in the computing device 100 disclosed in this embodiment is similar to the technical solution of the same part in the first embodiment, please refer to the description of the first embodiment, and will not be described herein again.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-listed detailed description is only a specific description of a possible embodiment of the present invention, and they are not intended to limit the scope of the present invention, and equivalent embodiments or modifications made without departing from the technical spirit of the present invention should be included in the scope of the present invention.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (13)

1. A method for controlling forwarding of data messages, comprising:
detecting the stability of a first physical interface in an uplink in a three-layer network, and opening a downlink formed between a second physical interface and processing equipment when the uplink is in a stable state so as to establish at least two data message forwarding channels between an external network and the processing equipment through the first physical interface and the second physical interface; the first physical interface and the second physical interface are arranged in the same switch in pairs, and all switches are connected with processing equipment.
2. The method according to claim 1, wherein the first physical interface and the second physical interface are arranged in pair, and the second physical interface of the switch is connected to a processing device in a two-layer network.
3. The method according to claim 2, wherein the first physical interface and the second physical interface are arranged in pair and deployed in a switch, so as to implement port-level link switching for at least two data packet forwarding channels through the first physical interface and the second physical interface.
4. The method according to claim 2, wherein the first physical interface and the second physical interface are arranged in pairs and respectively deployed in two or more switches, so as to implement device-level link switching for at least two data packet forwarding channels through the first physical interface and the second physical interface.
5. The method according to claim 4, wherein at least two uplinks and two downlinks are established between the processing device and the external network through at least two switches, and whether a first physical interface of the switch accessing the uplinks is in a stable state is detected to match a downlink capable of forwarding the data packet to the processing device, so as to establish at least two data packet forwarding channels between the external network and the processing device through the first physical interface and a second physical interface.
6. The method according to claim 5, wherein the detecting whether the first physical interface of the switch accessing the uplink is in a stable state specifically uses one or more of the following routing protocols to detect:
performing stability detection on the first physical interface by adopting a static routing protocol;
a dynamic routing protocol is employed to perform stability detection on the first physical interface.
7. The method according to claim 6, wherein the performing the stability check on the first physical interface using the static routing protocol specifically comprises:
and detecting the stability of all configured uplinks based on the first physical interface by adopting a BFD protocol or an ICMP protocol.
8. The method according to claim 6, wherein the performing the stability check on the first physical interface using the dynamic routing protocol specifically comprises:
and detecting the stability of all configured uplinks based on the first physical interface by adopting an OSPF protocol or a BGP protocol.
9. The method for controlling forwarding of data packets according to any of claims 1 to 8, further comprising:
an uplink is rejected in a three-layer network between the unstable first physical interface and the external network.
10. The data packet forwarding control method according to claim 9, wherein the processing device configures a plurality of physical network cards, and ports of the physical network cards are aggregated to form an aggregated port; the aggregation port receives a service request issued by the switch, and sends a data message with a source MAC address as the MAC address of the processing equipment and a target MAC address as the MAC address corresponding to the aggregation port group to the switch by using an ARP table;
after receiving the data message sent by the processing equipment, the switch replaces the source MAC address contained in the data message with the MAC address contained in the first physical interface exposed to the external network by the switch, replaces the target MAC address with the MAC address of the next hop equipment and forwards the target MAC address to the external network.
11. The method according to claim 10, wherein the plurality of physical network cards configured by the processing device perform binding to expose virtual network cards with unique IP addresses to all switches.
12. The method according to claim 10, wherein the processing device is at least one server or a cluster server comprising at least one server.
13. A computing device, comprising:
at least one processing device, at least two switches connected to the processing device;
the switch is accessed to an external network through a first physical interface and is connected with the processing equipment through a second physical interface;
the method according to any one of claims 1 to 12 is performed when data packet forwarding is performed between the processing device and an external network.
CN202010097121.8A 2020-02-17 2020-02-17 Data message forwarding control method and computing device Pending CN111314215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010097121.8A CN111314215A (en) 2020-02-17 2020-02-17 Data message forwarding control method and computing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010097121.8A CN111314215A (en) 2020-02-17 2020-02-17 Data message forwarding control method and computing device

Publications (1)

Publication Number Publication Date
CN111314215A true CN111314215A (en) 2020-06-19

Family

ID=71148380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010097121.8A Pending CN111314215A (en) 2020-02-17 2020-02-17 Data message forwarding control method and computing device

Country Status (1)

Country Link
CN (1) CN111314215A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584375A (en) * 2022-03-04 2022-06-03 深圳市技湛科技有限公司 Security protection method and device for streaming media system, platform equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1507721A (en) * 2001-05-28 2004-06-23 ��˹��ŵ�� Method and system for implementing a fast recovery process in a local area network
CN101001205A (en) * 2006-12-29 2007-07-18 华为技术有限公司 Method of link linkage and communication equipment thereof
US20080254800A1 (en) * 2005-10-31 2008-10-16 Sung-Duck Chun Data Transfer Management in a Radio Communications Network
CN101296126A (en) * 2007-04-29 2008-10-29 华为技术有限公司 Link fault announcing method, interface management unit and router
CN103067291A (en) * 2012-12-24 2013-04-24 杭州华三通信技术有限公司 Method and device of up-down link correlation
CN109691037A (en) * 2016-09-12 2019-04-26 华为技术有限公司 Method and system for data center's load balancing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1507721A (en) * 2001-05-28 2004-06-23 ��˹��ŵ�� Method and system for implementing a fast recovery process in a local area network
US20080254800A1 (en) * 2005-10-31 2008-10-16 Sung-Duck Chun Data Transfer Management in a Radio Communications Network
CN101001205A (en) * 2006-12-29 2007-07-18 华为技术有限公司 Method of link linkage and communication equipment thereof
CN101296126A (en) * 2007-04-29 2008-10-29 华为技术有限公司 Link fault announcing method, interface management unit and router
CN103067291A (en) * 2012-12-24 2013-04-24 杭州华三通信技术有限公司 Method and device of up-down link correlation
CN109691037A (en) * 2016-09-12 2019-04-26 华为技术有限公司 Method and system for data center's load balancing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584375A (en) * 2022-03-04 2022-06-03 深圳市技湛科技有限公司 Security protection method and device for streaming media system, platform equipment and storage medium

Similar Documents

Publication Publication Date Title
US10567340B2 (en) Data center system
CN110912780B (en) High-availability cluster detection method, system and controlled terminal
CN108306777B (en) SDN controller-based virtual gateway active/standby switching method and device
CA2499343C (en) Ip redundancy with improved failover notification
US20060171303A1 (en) Method, apparatus and program storage device for providing mutual failover and load-balancing between interfaces in a network
WO2016023436A1 (en) Fault detection method for virtual router redundancy protocol and router device
CN109861867B (en) MEC service processing method and device
EP3694145A1 (en) Method and device for sending messages
US11381501B2 (en) Coordinating pseudowire connection characteristics and multi-homed provider edge device capabtilities
US10581669B2 (en) Restoring control-plane connectivity with a network management entity
CN101562576B (en) Route distribution method and equipment thereof
US7769862B2 (en) Method and system for efficiently failing over interfaces in a network
CN112187633A (en) Link fault convergence method and device, electronic equipment and storage medium
EP3291486B1 (en) Selective transmission of bidirectional forwarding detection (bfd) messages for verifying multicast connectivity
Alasadi et al. SSED: Servers under software-defined network architectures to eliminate discovery messages
CN113839862B (en) Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors
US10447581B2 (en) Failure handling at logical routers according to a non-preemptive mode
CN112564983B (en) Data transmission method, device, computer system and medium
CN111314215A (en) Data message forwarding control method and computing device
CN114342333B (en) Transparent isolation region providing stateful services between physical and logical networks
Konidis et al. Evaluating traffic redirection mechanisms for high availability servers
WO2018223991A1 (en) Method and system for switching between active bng and standby bng, and bng
CN108616908A (en) A kind of network system and the data transferring method based on the network system
CN108737263B (en) Data center system and data stream processing method
US20230318968A1 (en) Using a routing protocol for network port failover

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200619

RJ01 Rejection of invention patent application after publication