[go: up one dir, main page]

CN102118303A - Method, system and edge device for sending data messages - Google Patents

Method, system and edge device for sending data messages Download PDF

Info

Publication number
CN102118303A
CN102118303A CN2010100012087A CN201010001208A CN102118303A CN 102118303 A CN102118303 A CN 102118303A CN 2010100012087 A CN2010100012087 A CN 2010100012087A CN 201010001208 A CN201010001208 A CN 201010001208A CN 102118303 A CN102118303 A CN 102118303A
Authority
CN
China
Prior art keywords
message
bpdu
packet
network
change
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010100012087A
Other languages
Chinese (zh)
Other versions
CN102118303B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201010001208.7A priority Critical patent/CN102118303B/en
Publication of CN102118303A publication Critical patent/CN102118303A/en
Application granted granted Critical
Publication of CN102118303B publication Critical patent/CN102118303B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例公开了一种数据报文的发送方法、系统和边缘设备。其中,所述方法包括:当接收到BPDU协议报文时,判断接收到的所述BPDU协议报文是否为与网络的拓扑结构变化相关的报文;如果所述BPDU协议报文是与网络的拓扑结构变化相关的报文,将接收到的数据报文以广播的方式发送给对端的边缘设备。根据本发明实施例,可以当网络拓扑发生变化时,可以避免网络的拓扑变化所带来的丢失数据报文的问题。

The embodiment of the invention discloses a data message sending method, system and edge device. Wherein, the method includes: when receiving a BPDU protocol message, judging whether the received BPDU protocol message is a message related to network topology changes; if the BPDU protocol message is related to the network Messages related to topology changes, and broadcast the received data messages to the peer edge device. According to the embodiment of the present invention, when the network topology changes, the problem of losing data packets caused by the network topology change can be avoided.

Description

Method, system and edge device for sending data message
Technical Field
The present invention relates to the field of broadband technologies, and in particular, to a method, a system, and an edge device for sending a data packet.
Background
The BPDU Tunnel (Bridge Protocol Data Unit Tunnel) is a path that is set in a two-layer or three-layer switching network in the form of a Tunnel, so that different user networks transparently transmit Protocol messages between each other through the BPDU Tunnel. For example, when the user network is divided into two parts, namely, a user network a and a user network B, a BPDU Tunnel is configured between edge devices of the operator network, and when a message reaches the BPDU Tunnel ingress, the destination MAC address format of the protocol message is replaced by a MAC address in a special format at the BPDU Tunnel ingress, and when the message reaches the BPDU Tunnel egress, the protocol message is restored to the destination MAC address format at the BPDU Tunnel egress, so that the protocol message is transmitted transparently in the operator network.
However, since the edge device connected to the BPDU Tunnel does not process the protocol packet transmitted in the BPDU Tunnel, the data packet may be lost when the network topology changes.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide a method, a system, and an edge device for sending a data packet, so that when a network topology changes, a problem of data packet loss caused by a topology change of a network can be avoided.
The embodiment of the invention discloses the following technical scheme:
a method for sending data messages comprises the following steps: when a BPDU protocol message is received, judging whether the received BPDU protocol message is a message related to the change of the topological structure of the network; and if the BPDU protocol message is a message related to the change of the network topology structure, sending the received data message to the edge device of the opposite end in a broadcasting way.
An edge device, comprising: the device comprises a judging unit and a processing unit, wherein the judging unit is used for judging whether a received BPDU protocol message is a message related to the change of a network topological structure when the BPDU protocol message is received; and the sending unit is used for sending the received data message to the edge equipment of the opposite end in a broadcasting mode when the BPDU protocol message is a message related to the change of the topological structure of the network.
A system for sending data packets, comprising: the edge devices at two ends of the BPDU Tunnel are used for judging whether the received BPDU protocol message is a message related to the change of the topological structure of the network or not when receiving the BPDU protocol message, and sending the received data message to the edge device at the opposite end in a broadcasting mode when the BPDU protocol message is the message related to the change of the topological structure of the network; and the edge devices forming a topological structure with the edge devices at the two ends of the BPDU Tunnel are used for receiving the BPDU protocol messages forwarded by the edge devices at the two ends of the BPDU Tunnel and operating the received BPDU protocol messages.
It can be seen from the above embodiments that edge devices at both ends of a bridge protocol data unit Tunnel BPDU Tunnel analyze received BPDU protocol messages, and when it is determined that the BPDU protocol messages are not messages related to changes in the topology structure of the network, send the data messages to the edge device indicated by the MAC address; when the BPDU protocol message is judged to be a message related to the change of the topological structure of the network, the change of the topological network structure is indicated, at the moment, each received data message is sent to the edge device of the opposite end in a broadcasting mode, which is equivalent to the expansion of a sending path of the data message, and when the network topology changes, the problem of data message loss caused by the change of the network topology can be avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of a network topology scenario;
FIG. 2 is a schematic diagram of another network topology scenario;
fig. 3 is a flowchart of a sending method of a data packet according to an embodiment of the present invention;
fig. 4 is a flowchart of another embodiment of a method for sending a data packet according to the present invention;
FIG. 5 is a block diagram of one embodiment of an edge device of the present invention;
fig. 6 is a structural diagram of a system for sending a data packet according to an embodiment of the present invention.
Detailed Description
Please refer to fig. 1, which is a schematic diagram of a network topology scenario, wherein S1, S2, S3, S4 and S5 are edge devices in a switching network, taking STP (Spanning Tree Protocol) as an example, the switching network in which S1, S2 and S3 are located runs STP, the network in which S4 and S5 are located does not run STP, in order to enable transparent transmission of Protocol packets between S1 and S2, i.e. the Protocol packets of the network in which S1, S2 and S3 are located are required to pass through the networks in which S4 and S5 are located, since an STP Protocol packet is a du bpprotocol packet, a BPDU Tunnel needs to be configured between S4 and S5 to implement a transparent transmission function, so that when S4 receives a Protocol packet sent by S1, a MAC address of the STP Protocol is converted, a destination MAC packet of the STP Protocol is returned to a destination MAC packet of the STP 56 in the form of the MAC packet of the STP, the MAC address of the STP 8653 and the MAC packet of the S828653, and finally to S2. After the network topology in fig. 1 is stable, if the interface of S2 connection S5 is blocked and the interface of S3 connection S2 is blocked, the data packet traffic from terminal 1 to terminal 2 is specifically: terminal 1- > S4- > S1- > S2- > terminal 2.
However, if the topology of the network where S1, S2, and S3 are located changes and is renegotiated by STP, the interface of S2 connected to S1 is blocked, and the interface of S2 connected to S5 is restored to a normal state, as shown in fig. 2, at this time, since the network where S4 and S5 are located does not run STP, the topology change of the network cannot be sensed, the forwarding direction of the data packet from the terminal 1 to the terminal 2 on S4 is still S4 to S1, and since the interface of S2 connected to S1 is blocked, the data packet traffic is not passed through, and finally the data packet is lost. For the above scenario, in order to avoid the problem of data packet loss caused by the change of the topology structure of the network, the following describes the embodiments of the present application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Example one
Please refer to fig. 3, which is a flowchart illustrating a method for sending a data packet according to an embodiment of the present invention, the method includes the following steps:
step 301: when receiving a BPDU protocol message, judging whether the received BPDU protocol message is a message related to the change of the topological structure of the network.
Wherein the determining whether the received BPDU protocol packet is a packet related to a topology change of a network includes: judging whether each received BPDU protocol message is a message related to the change of the topological structure of the network; or judging whether the received BPDU protocol message is a message related to the change of the topological structure of the network within a specific time.
For example, taking the topology shown in fig. 1 as an example, each time the edge device S4 or S5 at both ends of the BPDU Tunnel receives a BPDU protocol packet, it is determined whether the BPDU protocol packet is a packet related to a topology change of the network in which S1, S2, and S3 are located. Alternatively, in order to save consumption, the network device S4 or S5 may determine whether the BPDU protocol packet received within a specific time is a packet related to a topology change of the network in which S1, S2, and S3 are located, for example, a timer may be set, and determine whether the BPDU protocol packet received within the timer time is a packet related to a topology change of the network in which S1, S2, and S3 are located, or the network device S4 or S5 may buffer the BPDU protocol packet received within the timer time, and when the timer times out, the edge device S4 or S5 may determine whether the BPDU protocol packet received within the timer time that is buffered is a packet related to a topology change of the network in which S1, S2, and S3 are located.
When the S4 or S5 determines whether the received BPDU protocol packet is a packet related to a topology change of the network in which S1, S2, and S3 are located, the method includes: when the BPDU Protocol message is an analysis Spanning Tree Protocol (STP) message, analyzing the STP message to obtain a message header of the STP message; judging whether the BPDU protocol message is a message related to the topology structure change of the network in which the S1, S2 and S3 are positioned according to the TC zone bit or the message type identification read from the message header of the STP message; or analyzing the BPDU protocol message to obtain a message header of the BPDU protocol message; and judging whether the BPDU protocol message is a message related to the change of the topological structure of the network in which the S1, the S2 and the S3 are positioned according to a flush domain read from a message header of the BPDU protocol message.
For example, once the network structure of the topological network is changed, as shown in fig. 1, when the interface of S2 connected to S5 is blocked and the interface of S3 connected to S2 is blocked, the system may transmit a TC message, a TCN message, or a flush message in the topological network to indicate that the topological structure of the network is changed, where a TC flag bit is set in a header of an STP message, if the TC flag bit is set to 1, it indicates that the STP message is a TC message, i.e., the BPDU protocol message is a TC message related to the topological structure change of the network in which S1, S2, and S3 are located, and if the TC flag bit is set to 0, it indicates that the STP message is not a TC message, i.e., the BPDU protocol message is not a message related to the topological structure change of the network in which S1, S2, and S3 are located.
Similarly, a message type identifier is set in a message header of the STP message, if the message type identifier is set to 1, that is, the STP message is a TCN message, that is, the BPDU protocol message is a TCN message related to a change in the topology of the network in which S1, S2, and S3 is located, otherwise, that the STP message is not a TCN message, that is, the BPDU protocol message is not a message related to a change in the topology of the network in which S1, S2, and S3 are located.
Similarly, a flush field is extended in the header of the BPDU protocol message, if the flush field is set to 1, it indicates that the BPDU protocol message is a flush message, and if the flush field is set to 0, it indicates that the BPDU protocol message is not a flush message.
Step 302: and if the received BPDU protocol message is a message related to the change of the network topology structure, sending the received data message to the edge device of the opposite end in a broadcasting way.
Wherein, the sending the received data message to the edge device of the opposite end in a broadcast manner includes: and deleting the MAC address table entry related to the interface according to the interface for receiving the message related to the change of the topological structure of the network where the edge device is located, so that the edge devices at two ends of the BPDU Tunnel send the data message to the edge device at the opposite end in a broadcasting manner.
In the two-layer switching technology, generally, an edge device belongs to a data link layer device, and establishes a correspondence between an MAC address and an interface corresponding to the MAC address, and records the correspondence as an entry in an address table in the edge device. In this embodiment, taking the BPDU protocol packet as an STP packet as an example, when the edge device S4 determines that the protocol packets received from S1 and S5 are TC packets or TCN packets, the MAC address table entries related to the interface connected to S1 and the interface connected to S5 may be deleted from the address table maintained by the edge device S4, or the entire address table of the edge device S4 may be deleted, and at this time, the MAC address table entries related to the interface connected to S1 and the interface connected to S5 are correspondingly deleted.
In general, in the three-layer switching technology, the "address resolution" is a process of converting a destination IP address into a destination MAC address before sending a message. The basic function of ARP is to establish a correspondence between an IP address, an MAC address, and a corresponding outgoing interface, record the correspondence as an entry in an ARP cache table, and query the corresponding destination MAC address and the corresponding interface through the destination IP address in the data packet. When the edge device S4 determines that the protocol packet received from S1 and S5 is a flush packet, it may delete the ARP entry associated with the interface connected to S1 and the interface connected to S5 from the ARP cache table maintained by the edge device itself, or delete the entire ARP cache table, and at this time, the ARP entry associated with the interface connected to S1 and the interface connected to S5 is correspondingly deleted.
Take an example where edge device a (192.168.1.5) sends a data message to edge device B (192.168.1.1). When sending data message, edge device a will look for whether there is destination IP address of edge device B in its ARP cache table. If yes, the destination MAC address of the edge device B is known, and the destination MAC address is directly written into the message and sent; if the corresponding destination IP address is not found in the ARP cache table, the edge device a will send a broadcast on the network, and the destination MAC address is "ff.
It should be noted that the above-mentioned "edge device at the opposite end" refers to all edge devices having a connection relationship with one edge device, for example, taking the edge device S4 in fig. 1 as an example, the edge devices having a connection relationship with the edge device S4 are S1 and S5, the edge devices at the opposite end of the edge device S4 are S1 and S5, and the S4 sends the received data packet to S1 and S5 in a broadcast manner.
It should also be noted that the edge device may include a switch, router, routing switch, IAD, MAN or WAN device installed on the edge network, and is responsible for packet transmission between the access device and the core/backbone network device. An edge device is a physical device that applies data link layer (second layer) and network layer (third layer) technologies.
And when the received BPDU protocol message is not a message related to the change of the topological structure of the network, sending the received data message to the edge equipment indicated by the destination address.
For example, still taking fig. 1 as an example, when the edge device S4 determines that the received BPDU protocol packet is not a packet related to the topology change of the network in which S1, S2, and S3 are located, that is, the edge device S4 does not receive a packet related to the topology change of the network in which S1, S2, and S3 are located, indicating that the network structure of the topology network has not changed, at this time, the data packet is still sent to the edge device indicated by the destination address.
It can be understood by those skilled in the art that after the step 302, normal MAC address learning or ARP resolution may be further included, and after the MAC address learning or ARP resolution, a new data packet forwarding path is established, and the received data packet is sent to the edge device indicated by the target address, and is not sent to the edge device of the opposite end in a broadcast manner any more.
It can be seen from the above embodiments that edge devices at both ends of a bridge protocol data unit Tunnel BPDU Tunnel analyze received BPDU protocol messages, and when it is determined that the BPDU protocol messages are not messages related to changes in the topology structure of the network, send the data messages to the edge device indicated by the MAC address; when the BPDU protocol message is judged to be a topology change TC message or a refresh flush message, the topology network structure is changed, at the moment, the received data message is sent to the edge device of the opposite end in a broadcasting mode, which is equivalent to enlarging the sending path of the data message, and when the network topology changes, the problem of data message loss caused by the topology change of the network can be avoided.
Example two
Please refer to fig. 4 in conjunction with the topology network structure diagram shown in fig. 1, which is a flowchart of another embodiment of a method for sending a data packet according to the present invention, including the following steps:
step 401: the method comprises the steps that edge devices S4 at two ends of a bridge protocol data unit Tunnel (BPDU) Tunnel receive BPDU protocol messages;
step 402: the edge device S4 determines whether the received BPDU protocol message is a TC message, a TCN message, or a flush message, if so, step 403 is performed, and if not, step 405 is performed;
the edge device S4 may determine, every time a BPDU protocol message is received, whether the BPDU protocol message is a TC message, a TCN message, or a flush message, or may start a timer to determine whether the BPDU protocol message received within a timing time of the timer is a TC message, a TCN message, or a flush message.
For the determination of the TC packet, specifically, the STP packet is analyzed to obtain a packet header of the STP packet, a TC flag bit is read from the packet header of the STP packet, and it is determined whether the TC flag bit is set to 1, if so, the STP packet is the TC packet.
For the determination of the TCN packet, specifically, the STP packet is analyzed to obtain a packet header of the STP packet; reading a message type identifier from a message header of the STP message, and judging whether the message type identifier is set to be 1 or not, wherein if the message type identifier is set to be 1, the STP message is a TCN message.
The judgment of the flush message may specifically be that the BPDU protocol message is analyzed to obtain a message header of the BPDU protocol message, a flush domain is read from the message header of the BPDU protocol message, and whether the flush domain is set to 1 is judged, if so, the BPDU protocol message is the flush message.
Step 403: according to the interface for receiving the TC message, the TCN message or the flush message, the edge device S4 deletes the MAC address table item related to the interface;
in the two-layer switching network, the edge device S4 deletes the MAC address table entry related to the interface between S4 and S1 from the address table if the BPDU protocol packet received from S1 is a TC packet.
Step 404: when the edge device S4 receives the data packet, it sends the data packet to the edge device of the opposite end in a broadcast manner;
for example, when the edge device S4 determines that the BPDU protocol packet received by itself is a TC packet, it sends the received data packet to the edge devices S1 and S5 of the opposite end in a broadcast manner.
If the interface of S2 connection S5 is blocked and the interface of S3 connection S2 is blocked, as shown in fig. 2, the data packet traffic from terminal 1 to terminal 2 is specifically: terminal 1- > S4- > S1- > S2- > terminal 2. If the network topology of S1, S2, and S3 changes and is renegotiated by STP, the interface of S2 to S1 is blocked, and the interface of S2 to S5 is restored to a normal state, as shown in fig. 3, since S4 can receive a TC message, a TCN message, or a flush message when the STP renegotiates, the data message is simultaneously sent to S1 and S5 in a broadcast manner, and since the interface of S1 is blocked by S2, the data message on the path is lost, and the data message flowing through terminal 1- > S4- > S5- > S2- > terminal 2 is normally sent, so that the data message is not lost after the topology network changes.
Step 405: when the edge device S4 does not receive the TC message, the TCN message, or the flush message, the edge device S4 sends the data message to the edge device indicated by the destination address.
In addition, after the edge device S4 deletes the MAC address table entry related to the interface between S1, if a data packet, such as the data packet sent by the terminal 2, is received from S5, a new MAC address table entry is created in the address table based on the MAC address learning mechanism according to the source MAC address of the data packet, such as the MAC address of the terminal 2 and the incoming interface of the data packet. After the MAC address learning, when receiving the data packet sent to the terminal 2 again, the edge device S4 searches the address table, finds the MAC address table entry corresponding to the terminal 2, and sends the data packet to the terminal 2 according to the interface in the MAC address table entry.
It can be seen from the above embodiments that edge devices at both ends of a bridge protocol data unit Tunnel BPDU Tunnel analyze received BPDU protocol messages, and when it is determined that the BPDU protocol messages are not messages related to changes in the topology structure of the network, send the data messages to the edge device indicated by the MAC address; when the BPDU protocol message is judged to be a message related to the change of the topological structure of the network, the change of the topological network structure is indicated, at the moment, each received data message is sent to the edge device of the opposite end in a broadcasting mode, which is equivalent to the expansion of a sending path of the data message, and when the network topology changes, the problem of data message loss caused by the change of the network topology can be avoided.
EXAMPLE III
Corresponding to the above method for sending the data message, the embodiment of the invention also provides an edge device. Please refer to fig. 5, which is a block diagram illustrating an embodiment of an edge device according to the present invention, the edge device includes a determining unit 501 and a sending unit 502. The internal structure and connection relationship of the device will be further described below in conjunction with the working principle of the device.
A determining unit 501, configured to determine, when receiving a BPDU protocol packet, whether the received BPDU protocol packet is a packet related to a topology change of a network;
a sending unit 502, configured to send the received data packet to an edge device of an opposite end in a broadcast manner when the BPDU protocol packet is a packet related to a topology change of a network.
The aforementioned judging unit 501 may include: a first parsing subunit 5011 and a first reading subunit 5012,
the first parsing subunit 5011 is configured to parse a spanning tree protocol STP packet to obtain a packet header of the STP packet;
the first reading subunit 5012 is configured to determine, according to the TC flag bit or the packet type identifier read from the packet header of the STP packet, whether the BPDU protocol packet is a packet related to a network topology change.
Alternatively, the above-mentioned judgment 501 may further include: a second parsing subunit and a second reading subunit,
the second analysis subunit is configured to analyze the BPDU protocol packet to obtain a packet header of the BPDU protocol packet;
and the second reading subunit is used for judging whether the BPDU protocol message is a message related to the change of the network topology structure according to the flush domain read from the message header of the BPDU protocol message. It should be noted that the edge device includes: a switch, router, routing switch, IAD, MAN, or WAN device.
It can be seen from the above embodiments that edge devices at both ends of a bridge protocol data unit Tunnel BPDU Tunnel analyze received BPDU protocol messages, and when it is determined that the BPDU protocol messages are not messages related to changes in the topology structure of the network, send the data messages to the edge device indicated by the MAC address; when the BPDU protocol message is judged to be a message related to the change of the topological structure of the network, the change of the topological network structure is indicated, at the moment, each received data message is sent to the edge device of the opposite end in a broadcasting mode, which is equivalent to the expansion of a sending path of the data message, and when the network topology changes, the problem of data message loss caused by the change of the network topology can be avoided.
Example four
The embodiment of the invention also provides a system for sending the data message. Please refer to fig. 6, which is a block diagram of a system for sending data packets according to an embodiment of the present invention, the system includes: the edge devices 601 and 602 at both ends of the BPDU Tunnel form a topology, wherein,
the edge devices 601 at two ends of the BPDU Tunnel are configured to, when receiving a BPDU protocol packet, determine whether the received BPDU protocol packet is a packet related to a topology change of a network in which the edge device is located, send the received data packet to an edge device at an opposite end in a broadcast manner when the BPDU protocol packet is a packet related to a topology change of a network in which the edge device is located, and send the received data packet to the edge device indicated by a destination address when the BPDU protocol packet is not a packet related to a topology change of a network in which the edge device is located;
the edge device 602, which forms a topology with edge devices at two ends of the BPDU Tunnel, is configured to receive the BPDU protocol packet forwarded by the edge devices at two ends of the BPDU Tunnel, and operate the received BPDU protocol packet.
Wherein, the edge device 601 at both ends of the BPDU Tunnel includes:
a determining unit 6011, configured to, when receiving the BPDU protocol packet, determine whether the received BPDU protocol packet is a packet related to a topology change of a network;
a sending unit 6012, configured to send the received data packet to an edge device of an opposite end in a broadcast manner when the BPDU protocol packet is a packet related to a topology change of a network.
It can be seen from the above embodiments that edge devices at both ends of a bridge protocol data unit Tunnel BPDU Tunnel analyze received BPDU protocol messages, and when it is determined that the BPDU protocol messages are not messages related to changes in the topology structure of the network, send the data messages to the edge device indicated by the MAC address; when the BPDU protocol message is judged to be a message related to the change of the topological structure of the network, the change of the topological network structure is indicated, at the moment, each received data message is sent to the edge device of the opposite end in a broadcasting mode, which is equivalent to the expansion of a sending path of the data message, and when the network topology changes, the problem of data message loss caused by the change of the network topology can be avoided.
It should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The method, system and edge device for sending a data packet provided by the present invention are described in detail above, and a specific embodiment is applied in this document to explain the principle and implementation of the present invention, and the description of the above embodiment is only used to help understand the method and core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A method for sending a data message, comprising:
when a BPDU protocol message is received, judging whether the received BPDU protocol message is a message related to the change of the topological structure of the network;
and if the BPDU protocol message is a message related to the change of the network topology structure, sending the received data message to the edge device of the opposite end in a broadcasting way.
2. The method of claim 1, wherein the determining whether the received BPDU protocol packet is a packet related to a topology change of a network comprises:
judging whether each received BPDU protocol message is a message related to the change of the topological structure of the network;
or,
and judging whether the BPDU protocol message received in specific time is a message related to the change of the topological structure of the network.
3. The method according to claim 1 or 2, wherein when the BPDU protocol packet is an parse spanning tree protocol STP packet, the determining whether the received BPDU protocol packet is a packet related to a topology change of a network comprises:
analyzing the STP message to obtain a message header of the STP message;
and judging whether the BPDU protocol message is a message related to the change of the network topology structure according to the TC zone bit or the message type identification read from the message header of the STP message.
4. The method according to claim 1 or 2, wherein said determining whether the received BPDU protocol packet is a packet related to a topology change of a network comprises:
analyzing the BPDU protocol message to obtain a message header of the BPDU protocol message;
and judging whether the BPDU protocol message is a message related to the change of the topological structure of the network or not according to a flush domain read from a message header of the BPDU protocol message.
5. The method of claim 1, wherein the sending the received data packet to the edge device of the opposite end in a broadcast manner comprises:
and deleting the MAC address table item related to the interface according to the interface for receiving the message related to the network topology structure change, and sending the received data message to the edge equipment of the opposite end in a broadcasting way.
6. The method of claim 1, wherein the sending the received data packet to the edge device of the opposite end in a broadcast manner comprises:
and deleting the ARP table entry related to the interface according to the interface for receiving the message related to the network topology structure change, and sending the received data message to the edge device of the opposite end in a broadcasting manner.
7. An edge device, comprising:
the device comprises a judging unit and a processing unit, wherein the judging unit is used for judging whether a received BPDU protocol message is a message related to the change of a network topological structure when the BPDU protocol message is received;
and the sending unit is used for sending the received data message to the edge equipment of the opposite end in a broadcasting mode when the BPDU protocol message is a message related to the change of the topological structure of the network.
8. The apparatus according to claim 7, wherein the judging unit includes:
the first analysis subunit is used for analyzing the spanning tree protocol STP message to obtain a message header of the STP message;
and the first reading subunit is configured to determine, according to the TC flag bit or the packet type identifier read from the packet header of the STP packet, whether the BPDU protocol packet is a packet related to a network topology change.
9. The apparatus according to claim 7, wherein the judging unit includes:
the second analysis subunit is configured to analyze the BPDU protocol packet to obtain a packet header of the BPDU protocol packet;
and the second reading subunit is configured to determine, according to a flush domain read from a header of the BPDU protocol packet, whether the BPDU protocol packet is a packet related to a topology change of a network in which the edge device is located.
10. A system for sending data packets, comprising:
the edge devices at two ends of the BPDU Tunnel are used for judging whether the received BPDU protocol message is a message related to the change of the topological structure of the network or not when receiving the BPDU protocol message, and sending the received data message to the edge device at the opposite end in a broadcasting mode when the BPDU protocol message is the message related to the change of the topological structure of the network;
and the edge devices forming a topological structure with the edge devices at the two ends of the BPDU Tunnel are used for receiving the BPDU protocol messages forwarded by the edge devices at the two ends of the BPDU Tunnel and operating the received BPDU protocol messages.
11. The system of claim 10, wherein the edge devices at both ends of the BPDU Tunnel comprise:
the device comprises a judging unit and a processing unit, wherein the judging unit is used for judging whether a received BPDU protocol message is a message related to the change of a network topological structure when the BPDU protocol message is received;
and the sending unit is used for sending the received data message to the edge equipment of the opposite end in a broadcasting mode when the BPDU protocol message is a message related to the change of the topological structure of the network.
CN201010001208.7A 2010-01-04 2010-01-04 Method, system and edge device for sending data messages Expired - Fee Related CN102118303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010001208.7A CN102118303B (en) 2010-01-04 2010-01-04 Method, system and edge device for sending data messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010001208.7A CN102118303B (en) 2010-01-04 2010-01-04 Method, system and edge device for sending data messages

Publications (2)

Publication Number Publication Date
CN102118303A true CN102118303A (en) 2011-07-06
CN102118303B CN102118303B (en) 2014-09-17

Family

ID=44216906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010001208.7A Expired - Fee Related CN102118303B (en) 2010-01-04 2010-01-04 Method, system and edge device for sending data messages

Country Status (1)

Country Link
CN (1) CN102118303B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014117360A1 (en) * 2013-01-31 2014-08-07 华为技术有限公司 Method and device for processing packet in trill network
CN104780138A (en) * 2014-01-09 2015-07-15 北京东土科技股份有限公司 Transparent transmission method and device for STP (Spanning Tree Protocol)/RSTP (Rapid Spanning Tree Protocol) message in private redundancy protocol network
WO2017012470A1 (en) * 2015-07-17 2017-01-26 袁丽 Smart parking monitoring management system and parking mode-based vehicle-into-place detection method
CN110365569A (en) * 2019-07-12 2019-10-22 迈普通信技术股份有限公司 Message processing method, device and communication equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010021177A1 (en) * 2000-03-10 2001-09-13 Anritsu Corporation Spanning tree bridge and route change method using the same
CN1909497A (en) * 2006-08-24 2007-02-07 华为技术有限公司 Method and device for improving reliability of user terminal dual attachment network in VPLS system
CN101610221A (en) * 2009-07-23 2009-12-23 杭州华三通信技术有限公司 IP unicast took over seamlessly when a kind of STP switched method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010021177A1 (en) * 2000-03-10 2001-09-13 Anritsu Corporation Spanning tree bridge and route change method using the same
CN1909497A (en) * 2006-08-24 2007-02-07 华为技术有限公司 Method and device for improving reliability of user terminal dual attachment network in VPLS system
CN101610221A (en) * 2009-07-23 2009-12-23 杭州华三通信技术有限公司 IP unicast took over seamlessly when a kind of STP switched method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014117360A1 (en) * 2013-01-31 2014-08-07 华为技术有限公司 Method and device for processing packet in trill network
CN104137492A (en) * 2013-01-31 2014-11-05 华为技术有限公司 Method and device for processing packet in trill network
CN104137492B (en) * 2013-01-31 2017-02-08 华为技术有限公司 Method and device for processing packet in trill network
US9800591B2 (en) 2013-01-31 2017-10-24 Huawei Technologies Co., Ltd. Method and apparatus for processing packet on trill network
CN104780138A (en) * 2014-01-09 2015-07-15 北京东土科技股份有限公司 Transparent transmission method and device for STP (Spanning Tree Protocol)/RSTP (Rapid Spanning Tree Protocol) message in private redundancy protocol network
CN104780138B (en) * 2014-01-09 2017-12-19 北京东土科技股份有限公司 The transmitting method and device of STP/RSTP messages in privately owned redundancy protocol network
WO2017012470A1 (en) * 2015-07-17 2017-01-26 袁丽 Smart parking monitoring management system and parking mode-based vehicle-into-place detection method
CN110365569A (en) * 2019-07-12 2019-10-22 迈普通信技术股份有限公司 Message processing method, device and communication equipment

Also Published As

Publication number Publication date
CN102118303B (en) 2014-09-17

Similar Documents

Publication Publication Date Title
CN101227407B (en) Method and apparatus for sending message based on two layer tunnel protocol
WO2021063232A1 (en) Method, apparatus and system for establishing bier forwarding table entry
CN102075420B (en) Location identifier and host identifier separation-based system and mobility management method thereof
US10277418B2 (en) Method and device for clearing media access control forwarding entry
WO2009012688A1 (en) Method, system and apparatus for forwarding message in three-layer virtual private network
US20180198702A1 (en) Cluster communication
CN102118303B (en) Method, system and edge device for sending data messages
CN101110820A (en) A method and switch for processing spanning tree protocol message
CN101114989B (en) Method for processing three-layer ethernet switchboard direct connection host computer routing
CN103686905B (en) Mobile node switching method based on locator and identifier separation protocol
CN101132374A (en) A method and device for sending messages
CN100518142C (en) Method for preventing network interruption caused by address aging and time inconformity
KR100636273B1 (en) Apparatus and method for transmitting MPL multicast packet through Ethernet
EP2832061B1 (en) Pseudowire extended group messaging in a packet switched network
EP2832055B1 (en) Pseudowire groups in a packet switched network
CN102801562A (en) Transmission link switching method and device and network equipment
CN103428018B (en) The method of virtual machine position, location and equipment thereof
CN115865844A (en) Virtual-real combined dynamic flow scheduling method and device based on SDN and NDN
CN102035725B (en) Relevant technology system for one-way flow uniform resource identifier (URI) under asymmetric routing and method thereof
CN102413038B (en) Processing method and system for inaccessibility of next hop of route
CN101217471A (en) A method and device for optimizing routing
CN1996936A (en) Learning method for media access control address
CN118631730A (en) System and method for service intercommunication
EP2832056B1 (en) Pseudowire extended group actions in a packet switched network
JP5201046B2 (en) Network node, network and tunnel switching method used therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140917

CF01 Termination of patent right due to non-payment of annual fee