CN108810935B - Flow forwarding method and device - Google Patents

Flow forwarding method and device Download PDF

Info

Publication number
CN108810935B
CN108810935B CN201810503091.9A CN201810503091A CN108810935B CN 108810935 B CN108810935 B CN 108810935B CN 201810503091 A CN201810503091 A CN 201810503091A CN 108810935 B CN108810935 B CN 108810935B
Authority
CN
China
Prior art keywords
traffic
interface group
mec
interface
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810503091.9A
Other languages
Chinese (zh)
Other versions
CN108810935A (en
Inventor
缪琛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201810503091.9A priority Critical patent/CN108810935B/en
Publication of CN108810935A publication Critical patent/CN108810935A/en
Application granted granted Critical
Publication of CN108810935B publication Critical patent/CN108810935B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Abstract

The invention provides a traffic forwarding method and a traffic forwarding device, wherein the method comprises the following steps: sending a detection message to the MEC at regular time through an output interface in the interface group; when the detection message is not received from the return port in the interface group within the preset time, determining that the drainage rule corresponding to the interface group is in an invalid state; the flow guide rule corresponding to the interface group is used for forwarding the flow matched with the flow guide rule to the MEC through the interface group; and when the flow is received from the eNodeB side and the target drainage rule of the effective state matched with the flow does not exist, forwarding the flow according to a local forwarding table entry. The embodiment of the invention can improve the networking reliability.

Description

Flow forwarding method and device
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a traffic forwarding method and apparatus.
Background
MEC (Mobile Edge Computing) is a key technology for 5G (fifth generation Mobile communication network) evolution. By deploying functions of calculation, storage, distribution, big data analysis and the like in a wireless edge network, the capability of a 4G (fourth generation mobile communication network) &5G mobile network can be opened to internet application. The network deployment enables the traditional wireless network to be closer to users and bear localized services, so that the user experience is improved, and more values of the edge network are exerted.
At present, a schematic diagram of a networking architecture for deploying an MEC technology in a network may be as shown in fig. 1, in the networking, when an MEC fails, a switch still introduces traffic into the MEC for processing, the MEC determines to perform local service processing or enter a core network for processing, and due to the MEC failure, the traffic cannot be further forwarded after being introduced into the MEC, so that the traffic may be interrupted, and networking reliability is low.
Disclosure of Invention
The invention provides a traffic forwarding method and a traffic forwarding device, which are used for solving the problem that traffic is interrupted due to an MEC fault in the existing network deployment of the MEC.
According to a first aspect of the present invention, there is provided a traffic forwarding method, applied to a switch in a networking deployed with an MEC, where the networking further includes an eNodeB and an EPC, the switch establishes a connection with the MEC through an interface group, and a connection is established between the switch and the EPC, the method includes:
sending a detection message to the MEC at regular time through an output interface in the interface group;
when the detection message is not received from the return port in the interface group within the preset time, determining that the drainage rule corresponding to the interface group is in an invalid state; the flow guide rule corresponding to the interface group is used for forwarding the flow matched with the flow guide rule to the MEC through the interface group;
and when the flow is received from the eNodeB side and the target drainage rule of the effective state matched with the flow does not exist, forwarding the flow according to a local forwarding table entry.
With reference to the first aspect, in a first possible implementation manner, the method further includes:
and when the traffic is received from the eNodeB side and a target drainage rule of an effective state matched with the traffic is determined to exist, forwarding the traffic according to the target drainage rule.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the forwarding the traffic according to the target drainage rule includes:
and if the target drainage rule is the drainage rule corresponding to the interface group, forwarding the flow to the MEC through an outlet interface in the target interface group corresponding to the target drainage rule.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, after the forwarding the traffic to the MEC through an egress interface in a target interface group corresponding to the target drainage rule, the method further includes:
and when receiving the flow from the return port in the target interface group, forwarding the flow according to the local forwarding table entry.
With reference to the first aspect and any one implementation manner of the first possible implementation manner to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the output interface and the return port included in the interface group are the same interface.
According to a second aspect of the present invention, there is provided a switch applied in a networking with MECs deployed, the networking further including an eNodeB and an EPC, wherein the switch establishes a connection with the MECs through an interface group, and a connection is established between the switch and the EPC, the apparatus includes:
a sending unit, configured to send a probe packet to the MEC at regular time through an egress interface in the interface group;
a receiving unit, configured to receive the detection packet through a return port;
the determining unit is used for determining that the drainage rule corresponding to the interface group is in an invalid state when the receiving unit does not receive the detection message from the return port in the interface group within preset time; the flow guide rule corresponding to the interface group is used for forwarding the flow matched with the flow guide rule to the MEC through the interface group;
the determining unit is further configured to determine whether a target drainage rule of an effective state matching the traffic exists when the receiving unit receives the traffic from the eNodeB;
the sending unit is further configured to forward the traffic according to a local forwarding table entry when the determining unit determines that the target traffic guidance rule in the valid state matching the traffic does not exist.
With reference to the second aspect, in a first possible implementation manner, the sending unit is further configured to forward the traffic according to a target drainage rule when the determining unit determines that the target drainage rule of the valid state matching the traffic exists.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the sending unit is specifically configured to forward the traffic to the MEC through an egress interface in a target interface group corresponding to the target drainage rule if the target drainage rule is a drainage rule corresponding to the interface group.
With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner, the sending unit is further configured to forward, when the receiving unit receives a traffic from a return port in the target interface group, the traffic according to a local forwarding table entry.
With reference to the second aspect and any one implementation manner of the first possible implementation manner to the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the output interface and the return port included in the interface group are the same interface.
According to a third aspect of the present invention there is provided a traffic forwarding device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to:
sending a detection message to the MEC at regular time through an output interface in the interface group;
when the detection message is not received from the return port in the interface group within the preset time, determining that the drainage rule corresponding to the interface group is in an invalid state; the flow guide rule corresponding to the interface group is used for forwarding the flow matched with the flow guide rule to the MEC through the interface group;
and when the flow is received from the eNodeB side and the target drainage rule of the effective state matched with the flow does not exist, forwarding the flow according to a local forwarding table entry.
According to a fourth aspect of the invention, there is provided a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to:
sending a detection message to the MEC at regular time through an output interface in the interface group;
when the detection message is not received from the return port in the interface group within the preset time, determining that the drainage rule corresponding to the interface group is in an invalid state; the flow guide rule corresponding to the interface group is used for forwarding the flow matched with the flow guide rule to the MEC through the interface group;
and when the flow is received from the eNodeB side and the target drainage rule of the effective state matched with the flow does not exist, forwarding the flow according to a local forwarding table entry.
By applying the technical scheme disclosed by the invention, on one hand, the switch establishes connection with the MEC through the interface group, sets the drainage rule corresponding to the interface group, and drains the flow matched with the drainage rule to the MEC. And on the other hand, the switch is connected with the EPC, and further, the switch can send a detection message to the MEC through an outlet interface of the interface group, and determine whether the MEC fails according to whether the detection message is received from the return port within the preset time. And when the detection message is not received from the return port within the preset time, the switch sets the drainage rule corresponding to the interface group to be in an invalid state. Therefore, for the traffic received from the eNodeB side, when there is no target drainage rule in the matched effective state, the switch can directly forward according to the local forwarding table entry, thereby realizing service recovery when the MEC fails under the condition of only deploying a single switch, avoiding traffic interruption caused by the fact that the traffic is drained to the MEC in the failure state, and improving the reliability of networking.
Drawings
Fig. 1 is an architectural diagram of a networking that deploys MECs;
fig. 2 is a schematic diagram of a networking architecture for forwarding traffic according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a traffic forwarding method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a specific application scenario provided in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a traffic forwarding apparatus according to an embodiment of the present invention;
fig. 6 is a schematic hardware structure diagram of a traffic forwarding apparatus according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution in the embodiment of the present invention, a networking structure to which the embodiment of the present invention is applied will be described below.
Referring to fig. 2, which is a schematic diagram of a networking architecture for forwarding traffic according to an embodiment of the present invention, as shown in fig. 2, in the networking, a switch establishes a connection with an MEC through an interface group (which may also be referred to as a service loopback linkage group), and a connection is established between the switch and an EPC. The interface group can comprise an outlet interface and a return port.
In the networking shown in fig. 2, a traffic guidance rule corresponding to an interface group may be configured on an exchange, and when the exchange receives traffic from an eNodeB (base station), the exchange may forward the traffic matching the traffic guidance rule to the MEC through the interface group corresponding to the traffic guidance rule.
In order to avoid flow interruption caused by MEC failure, the switch can send a detection message to the MEC through an outgoing interface in the interface group at regular time; when the MEC receives the detection message sent by the switch, the MEC can send the detection message to the switch through the interface connected with the return port in the interface group.
Correspondingly, when the switch receives the detection message from the return port in the interface group, the switch can determine that the interface group is valid and set the drainage rule corresponding to the interface group to be in a valid state; when the switch does not receive the probe packet from the return port in the interface group within the preset time (the preset time after the probe packet is sent from the egress interface in the interface group), the switch may determine that the drainage rule corresponding to the interface group is in an invalid state.
When the switch receives traffic from the eNodeB side, the switch may query whether there is a drainage rule of valid state (referred to herein as a target drainage rule) matching the received traffic; and if the local forwarding table entry does not exist, forwarding the received flow according to the local forwarding table entry.
As can be seen, in the networking shown in fig. 2, when an MEC is in a failure state, the drainage rule corresponding to the interface group to which the switch is connected to the MEC is set to be in an invalid state, so that traffic interruption caused by forwarding traffic to the MEC in the failure state can be avoided, and the networking reliability is improved.
It should be noted that the number of MECs in the networking shown in fig. 2 may be multiple, and accordingly, the switch may establish connection with the multiple MECs through multiple interface groups, respectively; at this time, the switch may be configured with the drainage rules corresponding to the interface groups, so that when the switch receives traffic from the eNodeB, the switch may forward the received traffic to the corresponding MEC through the interface group corresponding to the matched drainage rule.
In order to make the aforementioned objects, features and advantages of the embodiments of the present invention more comprehensible, embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Referring to fig. 3, a schematic flow chart of a traffic forwarding method according to an embodiment of the present invention is provided, where the traffic forwarding method may be applied to a switch in a networking shown in fig. 2, and as shown in fig. 3, the traffic forwarding method may include the following steps:
step 301, sending a detection message to the MEC at regular time through an egress interface in the interface group.
In the embodiment of the invention, in order to enable the switch to timely know whether the MEC has a fault, the switch can regularly send the detection message to the MEC through the output interface in the interface group.
For example, the switch may send a probe packet to the MEC at preset intervals (which may be set according to an actual scenario) through an egress interface in the interface group.
It should be noted that, in the embodiment of the present invention, when there are multiple MECs, that is, there are multiple interface groups, the switch may send the probe packet to the corresponding MEC at a fixed time through the outgoing interface in each interface group.
The switch may send the detection message through the egress interfaces of different interface groups at the same or different time.
For example, assuming that the switch is connected to the MEC1 and the MEC2 through the interface group 1 and the interface group 2, the switch may send the probe packet every other first cycle through the egress interface in the interface group 1, and send the probe packet every other second cycle through the egress interface in the interface group 2; the first period and the second period may be the same or different.
For ease of understanding and description, the following description will take the example where only one interface group is provided on a switch (i.e., only one MEC exists in the networking).
In the embodiment of the present invention, when receiving a detection message sent by an exchange, an MEC may send the detection message to the exchange through a port connected to a return port in an interface group on the exchange.
Step 302, when the detection message is not received from the return port in the interface group within the preset time, determining that the drainage rule corresponding to the interface group is in an invalid state.
In the embodiment of the present invention, after the switch sends the detection packet through the outgoing interface in the interface group, if the switch does not receive the detection packet from the return port in the interface group within the preset time (which may be set according to an actual scenario, for example, a sending period of 3 detection packets), the switch may consider that the MEC connected to the interface group is faulty, and at this time, the switch may determine that the interface group is invalid, and set the drainage rule corresponding to the interface group to be in an invalid state.
Wherein, the switch can not carry out the flow drainage according to the drainage rule of invalid state.
In one example, the above-mentioned drainage rule may be an ACL (Access Control List) entry. The matching item of the ACL entry may be identification information of traffic, such as a source IP address or an ingress interface, and the action item may be forwarding the traffic matched with the matching item through an egress interface in the interface group.
For example, assuming that a switch needs to steer traffic of eNodeB1 to a MEC, and eNodeB1 accesses the switch through port1 on the switch, ACL entries configured on the switch for steering may be as shown in table 1:
TABLE 1
Matching items Action item
The ingress interface for traffic is port1 Forwarding traffic over interface groups
It should be noted that, in the embodiment of the present invention, an initial state of a drainage rule configured on the switch may be an effective state, and accordingly, when the switch determines that an interface group is invalid by using the above-mentioned manner of sending a probe packet, the switch may update the interface group from the effective state to the invalid state.
Or, the initial state of the drainage rule configured on the switch may be an invalid state, and accordingly, when the switch determines that the interface group is valid by the above-mentioned manner of sending the detection packet, the switch may update the interface group from the invalid state to the valid state.
And step 303, when the traffic is received from the eNodeB and it is determined that there is no target traffic guidance rule in an effective state matching the traffic, forwarding the traffic according to the local forwarding table entry.
In the embodiment of the present invention, the priority of the drainage rule configured on the switch may be set to be higher than the priority of the forwarding table entry.
Accordingly, when the switch receives traffic from the eNodeB side, the switch may first query whether there is a target drainage rule of a valid state matching the traffic according to the traffic.
The switch can inquire a local drainage rule according to the flow received from the eNodeB side, and if the drainage rule matched with the flow does not exist, the switch determines that a target drainage rule in an effective state matched with the flow does not exist; if the drainage rule matched with the flow exists, further determining whether the drainage rule is in an effective state, and if the drainage rule is in the effective state, determining that a target drainage rule in the effective state matched with the flow exists; and if the flow is in the invalid state, determining that the target drainage rule of the valid state matched with the flow does not exist.
Or, the switch may query a local drainage rule in an effective state according to the traffic received from the eNodeB side, and if there is a drainage rule matching the traffic, determine the drainage rule as a target drainage rule matching the traffic; and if the drainage rule matched with the flow does not exist, determining that the target drainage rule in the effective state matched with the flow does not exist.
In the embodiment of the invention, when the switch receives the flow from the eNodeB side and determines that the target flow guiding rule of the effective state matched with the flow does not exist, the flow is forwarded according to the local forwarding table entry.
For example, the switch may query the local MAC entry based on the destination MAC address of the traffic to determine an egress port of the traffic and forward the traffic from the determined egress port.
In the embodiment of the present invention, for a device in a core network, when a switch generates a forwarding table entry to the device, an output interface of the switch is an interface connected with an EPC, so that, for a traffic sent to the core network at an eNodeB side, the switch sends the traffic to the EPC through the interface connected with the EPC when forwarding according to a local forwarding table entry.
The processing mode after the EPC receives the traffic forwarded by the switch may refer to related description in the prior art, which is not described in this embodiment of the present invention again.
It can be seen that, in the method flow shown in fig. 3, by configuring a drainage rule corresponding to an interface group connected to an MEC on an exchange, the drainage rule is used to instruct the exchange to forward a matched flow to the MEC through the interface group, and send a detection packet to the MEC through an outgoing interface of the interface group at a fixed time, a return port receives the detection packet to detect whether the MEC fails, and when it is detected that the MEC fails, the corresponding drainage rule is set to an invalid state, which avoids flow interruption caused by forwarding the flow to the MEC in the failed state, and improves networking reliability.
Further, in one embodiment of the present invention, the traffic forwarding scheme may further include:
and when the traffic is received from the eNodeB side and the target drainage rule of the effective state matched with the traffic is determined to exist, forwarding the traffic according to the target drainage rule.
In this embodiment, when the switch receives traffic from the eNodeB side and determines that there is a target drainage rule of a valid state matching the traffic, the traffic is forwarded according to the target drainage rule.
Further, in this embodiment, if the target drainage rule is the drainage rule corresponding to the interface group, the traffic is forwarded to the MEC through the outgoing interface in the target interface group corresponding to the target drainage rule.
In this embodiment, the configured drainage rules on the switch may include, in addition to the drainage rules of the corresponding interface group (i.e., the drainage rules for draining to the MEC), other drainage rules, such as drainage rules for draining to the EPC, or drainage rules for draining to other devices connected by the switch.
Accordingly, when the switch receives traffic from the eNodeB and determines that there is a target traffic guidance rule in a valid state matching the traffic, the switch may further determine whether the target traffic guidance rule is a traffic guidance rule corresponding to an interface group, and if so, the switch may forward the traffic from an outgoing interface of the interface group (referred to as a target interface group herein) corresponding to the target traffic guidance rule to a corresponding MEC.
In the embodiment of the present invention, when receiving the traffic forwarded by the switch, the MEC may determine to perform local processing on the traffic (forward to the local network for processing) or forward to the core network for processing according to a preset policy.
It should be noted that, the specific strategy for the MEC to determine to locally process the traffic or forward the traffic to the core network for processing and the specific implementation of the MEC to locally process the traffic may refer to related descriptions in the prior art, which is not described in detail herein in the embodiment of the present invention.
In the embodiment of the present invention, when the MEC determines that the traffic needs to be forwarded to the core network for processing, the MEC may send the traffic to the switch through the interface connected to the return port in the interface group of the switch.
Accordingly, in this embodiment, when the switch receives traffic from a return port in the target interface group, the switch may forward the traffic according to the local forwarding table entry.
For example, the switch may query the MAC table entry based on the destination MAC address of the traffic to determine an egress port of the traffic and forward the traffic through the determined egress port.
Further, in an embodiment of the present invention, in order to save port resources of the switch, the egress interface and the return port in the interface group may be the same interface.
In this embodiment, when the MEC receives the probe packet sent by the switch, the probe packet may be sent to the switch again from the ingress interface of the probe packet.
In addition, when the MEC receives traffic sent by the switch and determines that the traffic needs to be forwarded to the core network, the MEC may resend the traffic to the switch from the ingress interface of the traffic.
In order to enable those skilled in the art to better understand the technical solution provided by the embodiment of the present invention, the technical solution provided by the embodiment of the present invention is described below with reference to a specific application scenario.
Referring to fig. 4, a schematic diagram of a specific application scenario provided by an embodiment of the present invention is shown in fig. 4, in the application scenario, enodebs 1-10 are connected to a switch through ports 1-10, respectively, Port11 and Port12 on the switch form an interface group (where Port11 is an outgoing interface and Port12 is a return Port), and the switch is connected to an MEC through the interface group (assuming that Port11 of the switch is connected to Port21 of the MEC and Port12 is connected to Port22 of the MEC), and the switch is connected to an EPC through Port 13.
In this embodiment, assuming that the switch needs to steer traffic of eNodeB1 and eNodeB3 to the MEC, an ACL entry for steering to the MEC as shown in table 2 may be generated on the switch:
TABLE 2
Matching items Action item Status of state
The incoming interface of the traffic is Port1 Forwarding over Port11 Active state
The incoming interface of the traffic is Port3 Forwarding over Port11 Active state
Wherein, the initial state of each ACL table entry is a valid state.
In this embodiment, the switch may send probe messages to the MEC through Port11 every preset period (assumed to be T); when the MEC receives the detection message, the MEC can resend the detection message to the switch through the Port 22; the switch receives the probe message from Port12 and determines that the MEC is available.
In this case, when the switch receives traffic from the eNodeB side, the switch may query the ACL entry shown in table 2 according to the incoming interface of the traffic to determine whether there is a matching entry, and if so, send the traffic to the MEC through Port 11; otherwise, inquiring the local MAC table entry according to the destination MAC address of the flow for forwarding.
After receiving the traffic sent by the switch, the MEC may determine to locally process the traffic according to a preset policy or forward the traffic to the core network for processing.
In this embodiment, when the MEC determines that the traffic needs to be forwarded to the core network process, the MEC may resend the traffic to the switch through Port 22; when the switch receives traffic from Port12, it queries the native MAC address for forwarding based on the destination MAC address of the traffic.
In this embodiment, for traffic received from Port1 or Port3, the switch may send to the MEC through Port 11; and the rest flows directly inquire the local MAC table items according to the destination MAC addresses of the flows for forwarding.
Assuming that an MEC fails at a certain time, at this time, after the switch sends a probe packet from Port11, the switch will not receive the probe packet from Port12, and when the switch does not receive the probe packet from Port12 within 3T, the switch may determine that the MEC fails, and at this time, the switch may set the corresponding drainage rule to an invalid state, that is, the drainage rule may be updated as shown in table 3:
TABLE 3
Matching items Action item Status of state
The incoming interface of the traffic is Port1 Forwarding over Port11 Invalid state
The incoming interface of the traffic is Port3 Forwarding over Port11 Invalid state
In this case, when the switch receives traffic from the eNodeB, because there is no drainage rule in an effective state, the switch may directly query the local MAC entry according to the destination MAC address of the traffic, and forward the traffic to the EPC through Port13, thereby avoiding traffic interruption caused by the traffic being drained to the MEC when the MEC fails, and improving networking reliability.
As can be seen from the above description, in the technical solution provided in the embodiment of the present invention, on one hand, the switch establishes a connection with the MEC through the interface group, sets the drainage rule corresponding to the interface group, and drains the traffic matched with the drainage rule to the MEC. And on the other hand, the switch is connected with the EPC, and further, the switch can send a detection message to the MEC through an outlet interface of the interface group, and determine whether the MEC fails according to whether the detection message is received from the return port within the preset time. And when the detection message is not received from the return port within the preset time, the switch sets the drainage rule corresponding to the interface group to be in an invalid state. Therefore, for the traffic received from the eNodeB side, when there is no target drainage rule in the matched effective state, the switch can directly forward according to the local forwarding table entry, thereby realizing service recovery when the MEC fails under the condition of only deploying a single switch, avoiding traffic interruption caused by the fact that the traffic is drained to the MEC in the failure state, and improving the reliability of networking.
Referring to fig. 5, a schematic structural diagram of a traffic forwarding device is provided for an embodiment of the present invention, where the traffic forwarding device may be applied to a switch in the foregoing method embodiment, and as shown in fig. 5, the traffic forwarding device may include:
a sending unit 510, configured to send a probe packet to the MEC at regular time through an egress interface in the interface group;
a receiving unit 520, configured to receive the detection packet through a return port;
a determining unit 530, configured to determine that the drainage rule corresponding to the interface group is in an invalid state when the receiving unit does not receive the detection packet from the return port in the interface group within a preset time; the flow guide rule corresponding to the interface group is used for forwarding the flow matched with the flow guide rule to the MEC through the interface group;
the determining unit 530 is further configured to determine whether there is a target drainage rule of a valid status matching the traffic when the receiving unit 520 receives the traffic from the eNodeB side;
the sending unit 510 is further configured to forward the traffic according to a local forwarding table entry when the determining unit 530 determines that there is no target traffic guidance rule in an active state matching the traffic.
In an optional embodiment, the sending unit 510 is further configured to, when the determining unit 530 determines that there is a target traffic rule of a valid status matching the traffic, forward the traffic according to the target traffic rule.
In an optional embodiment, the sending unit 510 is specifically configured to forward the traffic to the MEC through an egress interface in a target interface group corresponding to the target drainage rule if the target drainage rule is a drainage rule corresponding to the interface group.
In an optional embodiment, the sending unit 510 is further configured to forward, when the receiving unit 520 receives traffic from a backhaul port in the target interface group, the traffic according to a local forwarding table entry.
In an optional embodiment, the output interface and the return port included in the interface group are the same interface.
Fig. 6 is a schematic diagram of a hardware structure of a traffic forwarding apparatus according to an embodiment of the present invention. The traffic forwarding device may include a processor 601, a machine-readable storage medium 602 having machine-executable instructions stored thereon. The processor 601 and the machine-readable storage medium 602 may communicate via a system bus 603. Also, by reading and executing machine-executable instructions in the machine-readable storage medium 602 corresponding to the traffic forwarding logic, the processor 601 may perform the traffic forwarding methods described above.
The machine-readable storage medium 602 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
Embodiments of the present invention also provide a machine-readable storage medium, such as the machine-readable storage medium 602 in fig. 6, including machine-executable instructions that are executable by the processor 601 in the traffic forwarding device to implement the traffic forwarding method described above.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
As can be seen from the above embodiments, on one hand, the switch establishes a connection with the MEC through the interface group, sets a drainage rule corresponding to the interface group, and drains the traffic matched with the drainage rule to the MEC. And on the other hand, the switch is connected with the EPC, and further, the switch can send a detection message to the MEC through an outlet interface of the interface group, and determine whether the MEC fails according to whether the detection message is received from the return port within the preset time. And when the detection message is not received from the return port within the preset time, the switch sets the drainage rule corresponding to the interface group to be in an invalid state. Therefore, for the traffic received from the eNodeB side, when there is no target drainage rule in the matched effective state, the switch can directly forward according to the local forwarding table entry, thereby realizing service recovery when the MEC fails under the condition of only deploying a single switch, avoiding traffic interruption caused by the fact that the traffic is drained to the MEC in the failure state, and improving the reliability of networking.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A traffic forwarding method is applied to a switch in a networking deployed with a Mobile Edge Computing (MEC), the networking further comprises a base station eNodeB and an Evolved Packet Core (EPC), the switch is connected with the MEC through an interface group, and a connection is established between the switch and the EPC, the method comprises the following steps:
sending a detection message to the MEC at regular time through an output interface in the interface group;
when the detection message is not received from the return port in the interface group within the preset time, determining that the drainage rule corresponding to the interface group is in an invalid state; the flow guide rule corresponding to the interface group is used for forwarding the flow matched with the flow guide rule to the MEC through the interface group;
and when the flow is received from the eNodeB side and the target drainage rule of the effective state matched with the flow does not exist, forwarding the flow according to a local forwarding table entry.
2. The method of claim 1, further comprising:
and when the traffic is received from the eNodeB side and a target drainage rule of an effective state matched with the traffic is determined to exist, forwarding the traffic according to the target drainage rule.
3. The method of claim 2, wherein forwarding the traffic according to the target drainage rule comprises:
and if the target drainage rule is the drainage rule corresponding to the interface group, forwarding the flow to the MEC through an outlet interface in the target interface group corresponding to the target drainage rule.
4. The method according to claim 3, wherein after forwarding the traffic to the MEC through an egress interface in a target interface group corresponding to the target drainage rule, the method further includes:
and when receiving the flow from the return port in the target interface group, forwarding the flow received from the return port in the target interface group according to a local forwarding table entry.
5. The method according to any of claims 1-4, wherein the egress port and the egress port included in the set of interfaces are the same interface.
6. A flow forwarding device is applied to a switch in a networking deployed with a Mobile Edge Computing (MEC), the networking further comprises a base station eNodeB and an Evolved Packet Core (EPC), the switch is connected with the MEC through an interface group, and a connection is established between the switch and the EPC, the device comprises:
a sending unit, configured to send a probe packet to the MEC at regular time through an egress interface in the interface group;
a receiving unit, configured to receive the detection packet through a return port;
the determining unit is used for determining that the drainage rule corresponding to the interface group is in an invalid state when the receiving unit does not receive the detection message from the return port in the interface group within preset time; the flow guide rule corresponding to the interface group is used for forwarding the flow matched with the flow guide rule to the MEC through the interface group;
the determining unit is further configured to determine whether a target drainage rule of an effective state matching the traffic exists when the receiving unit receives the traffic from the eNodeB;
the sending unit is further configured to forward the traffic according to a local forwarding table entry when the determining unit determines that the target traffic guidance rule in the valid state matching the traffic does not exist.
7. The apparatus of claim 6,
the sending unit is further configured to forward the traffic according to the target drainage rule when the determining unit determines that the target drainage rule of the valid state matching the traffic exists.
8. The apparatus of claim 7,
the sending unit is specifically configured to forward the traffic to the MEC through an output interface in a target interface group corresponding to the target drainage rule if the target drainage rule is a drainage rule corresponding to the interface group.
9. The apparatus of claim 8,
the sending unit is further configured to forward, when the receiving unit receives traffic from the return port in the target interface group, the traffic received from the return port in the target interface group according to a local forwarding table entry.
10. The apparatus according to any one of claims 6-9, wherein the outlet and return ports included in the set of interfaces are the same interface.
CN201810503091.9A 2018-05-23 2018-05-23 Flow forwarding method and device Active CN108810935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810503091.9A CN108810935B (en) 2018-05-23 2018-05-23 Flow forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810503091.9A CN108810935B (en) 2018-05-23 2018-05-23 Flow forwarding method and device

Publications (2)

Publication Number Publication Date
CN108810935A CN108810935A (en) 2018-11-13
CN108810935B true CN108810935B (en) 2021-07-23

Family

ID=64092874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810503091.9A Active CN108810935B (en) 2018-05-23 2018-05-23 Flow forwarding method and device

Country Status (1)

Country Link
CN (1) CN108810935B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379760B (en) * 2018-12-24 2022-03-25 新华三技术有限公司 MEC bypass system and method
CN113436364B (en) * 2021-06-22 2022-04-08 广汽埃安新能源汽车有限公司 Tbox invalid signal value judgment method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148742A (en) * 2010-02-04 2011-08-10 杭州华三通信技术有限公司 Proxy board switching method and multi-customer edge equipment
CN107529178A (en) * 2017-08-30 2017-12-29 南京中科智达物联网系统有限公司 A kind of schoolyard mobile phone management system and method based on MEC technologies
CN107920366A (en) * 2017-07-21 2018-04-17 深圳星耀智能计算技术有限公司 The method and device that a kind of business to mobile terminal is shunted
WO2018068578A1 (en) * 2016-10-11 2018-04-19 中兴通讯股份有限公司 Shunting method and device for converged network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148742A (en) * 2010-02-04 2011-08-10 杭州华三通信技术有限公司 Proxy board switching method and multi-customer edge equipment
WO2018068578A1 (en) * 2016-10-11 2018-04-19 中兴通讯股份有限公司 Shunting method and device for converged network
CN107920366A (en) * 2017-07-21 2018-04-17 深圳星耀智能计算技术有限公司 The method and device that a kind of business to mobile terminal is shunted
CN107529178A (en) * 2017-08-30 2017-12-29 南京中科智达物联网系统有限公司 A kind of schoolyard mobile phone management system and method based on MEC technologies

Also Published As

Publication number Publication date
CN108810935A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN112470436B (en) Systems, methods, and computer-readable media for providing multi-cloud connectivity
US10191758B2 (en) Directing data traffic between intra-server virtual machines
US10320838B2 (en) Technologies for preventing man-in-the-middle attacks in software defined networks
US10673736B2 (en) Traffic reduction in data center fabrics
CN101820397B (en) Network convergence method and device in virtual private local area network
US9584421B2 (en) Advertising reachability in proxy FHRP for anycast routing service
CN109861867B (en) MEC service processing method and device
JP6633775B2 (en) Packet transmission
CN106789635B (en) Message forwarding method and device
CN108600069B (en) Link switching method and device
CN108810935B (en) Flow forwarding method and device
US11356357B2 (en) Proactive prefix disaggregation for traffic assurance in data center routing
CN104754070A (en) Method and device for learning address resolution protocol table entries and network device
US10680930B2 (en) Method and apparatus for communication in virtual network
US11343153B2 (en) BGP logical topology generation method, and device
CN104579809B (en) The detection method and equipment of a kind of stacking splitting
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN106209634B (en) Learning method and device of address mapping relation
US10313897B2 (en) Methods and apparatus to prevent potential conflicts among instances of SON functions
CN105100300A (en) Method and device for network address translation
CN112866107B (en) IP address notification method, traffic guidance method and network equipment
CN109842692A (en) VxLAN switch, system and method for obtaining host information in physical network
EP4109844A1 (en) A method for use in routing
CN106888166B (en) Message forwarding method and device
CN108259391B (en) Port configuration method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant