CN104092622B - A kind of message processing method and equipment - Google Patents
A kind of message processing method and equipment Download PDFInfo
- Publication number
- CN104092622B CN104092622B CN201410318827.7A CN201410318827A CN104092622B CN 104092622 B CN104092622 B CN 104092622B CN 201410318827 A CN201410318827 A CN 201410318827A CN 104092622 B CN104092622 B CN 104092622B
- Authority
- CN
- China
- Prior art keywords
- message
- beb
- configuration information
- bcb
- pbb
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 17
- 238000000034 method Methods 0.000 claims abstract description 24
- 238000001914 filtration Methods 0.000 claims description 34
- 230000005540 biological transmission Effects 0.000 abstract description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 5
- 230000002265 prevention Effects 0.000 description 3
- 238000013459 approach Methods 0.000 description 1
- 210000005098 blood-cerebrospinal fluid barrier Anatomy 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention, which provides a kind of message processing method and equipment, wherein method, to be included:Backbone edges bridge BEB obtains the message configuration information of the BEB itself, and the message configuration information is used to limit feature corresponding to the object message that the BEB will be received, and the message configuration information includes:The backbone network srvice instance mark I SID and corresponding BVLAN of the object message;The BEB sends the message configuration information to backbone network core bridges BCB, to cause the BCB to be transmitted the object message to the BEB according to the message configuration information.The present invention improves message transmissions efficiency.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a message processing method and device.
Background
At present, operators usually use Provider Backbone Bridge (PBB) technology to provide two-layer tunnel service for users, and referring to fig. 1, a Backbone Edge Bridge (BEB) device performs PBB encapsulation on a received message from a user network (customer network), and adds a Backbone MAC (Backbone MAC, B-MAC) and a Backbone VLAN (Backbone VLAN, B-VLAN) allocated by the operators into the message to form a PBB message; and sending the PBB message to a Backbone network core bridge (BCB), and forwarding the PBB message in a Provider Backbone Bridge (PBBN) by the BCB according to the B-MAC and the B-VLAN. For the PBB message sent by the BCB to the BEB, the BEB also carries out decapsulation and then sends the decapsulated PBB message to the user network.
On the BCB side, a large number of various messages can be received, and the messages can be forwarded from the BCB to the BEB, but the messages are not all messages required by the BEB; moreover, for the BCB, a port (such as the port D1 in fig. 1) where the BCB is connected to the BEB may have congestion due to a large amount of packet forwarding, and the congestion may cause the BCB to discard a part of the packet, which may further cause the BEB to fail to receive the required packet. In order to reduce the impact of message congestion, in the prior art, it is attempted to set a permitted VLAN on the BCB side, where the permitted VLAN is set according to the VLAN channel of the BVLAN created on the BEB, so it is equivalent to drop the message of the BLAN on the non-BEB. This approach reduces the instances of port congestion to some extent, but still presents problems: for example, it may be possible to allow a portion of the same message as the BVLAN but with a different I-SID to be sent to the BEB, which is not required; or, if the BEB device is used to forward a normal data packet, the normal data packet will be discarded because it is not transmitted through the BVLAN; these conditions all affect the reception of the target message required by the BEB, and from the BEB perspective, the message transmission efficiency of the current transmission network is low, that is, the target message required by the BEB cannot be quickly transmitted to the BEB.
Disclosure of Invention
In view of this, the present invention provides a message processing method and device, so as to improve message transmission efficiency.
Specifically, the invention is realized by the following technical scheme:
in a first aspect, a method for processing a packet is provided, including:
a backbone network edge bridge (BEB) acquires message configuration information of the BEB, wherein the message configuration information is used for limiting characteristics corresponding to a target message to be received by the BEB, and the message configuration information comprises: the backbone network service instance identifier I-SID of the target message and the corresponding BVLAN;
and the BEB sends the message configuration information to a backbone network core bridge BCB, so that the BCB transmits the target message to the BEB according to the message configuration information.
In one embodiment, the message configuration information further includes: message scheduling parameters and/or a bridge Media Access Control (MAC) address of the BEB; the message scheduling parameter is used for representing scheduling priority and/or weight index of the target message of different message types.
In another embodiment, the message configuration information further includes: and the PBB mode information is used for indicating that the target message is a PBB message or a non-PBB message.
In another embodiment, the backbone edge bridge BEB obtains the message configuration information of the BEB itself, specifically: the BEB acquires the message configuration information through a link layer discovery protocol module arranged by the BEB; the BEB sends the message configuration information to a backbone network core bridge BCB, and specifically comprises the following steps: and the BEB encapsulates the message configuration information in a link layer discovery protocol message and sends the message configuration information to the BCB.
In another embodiment, the BEB sends the message configuration information to a backbone network core bridge BCB, including: and when the message configuration information of the BEB is updated, the BEB sends the updated message configuration information to the BCB.
In a second aspect, a method for processing a packet is provided, including:
receiving, by a backbone network core bridge BCB, message configuration information sent by a backbone network edge bridge BEB, where the message configuration information is used to define characteristics corresponding to a target message to be received by the BEB, and the message configuration information includes: the backbone network service instance identifier I-SID of the target message and the corresponding BVLAN;
and the BCB takes the received message carrying the I-SID and the corresponding BVLAN as the target message and transmits the target message to the BEB.
In one embodiment, the receiving, by the BCB, the message configuration information sent by the BEB further includes: the BCB receives message scheduling parameters sent by a BEB and/or a bridge MAC address of the BEB, wherein the message scheduling parameters are used for representing scheduling priorities or weight indexes of the target messages of different message types; after the BCB receives the message scheduling parameters sent by the BEB and the bridge MAC address of the BEB, the method further comprises the following steps: the BCB determines the message type of the target message according to the bridge MAC address and the destination address carried by the target message; and transmitting the target message to the BEB according to the scheduling priority represented by the message scheduling parameter corresponding to the target message.
In another embodiment, the receiving, by the BCB, the message configuration information sent by the BEB further includes: the BCB receives provider backbone bridge PBB mode information sent by a BEB, wherein the PBB mode information is used for indicating that the target message is a PBB message or a non-PBB message; after the BCB receives the operator backbone bridge PBB mode information sent by the BEB, the method further includes: and if the PBB mode information indicates that the target message is a PBB message, the BCB discards the received non-PBB message and sends the PBB message to the BEB.
In another embodiment, after the BCB receives the message configuration information sent by the BEB, the method further includes: and if the BCB does not receive the message configuration information sent by the BEB again within the preset time, the BCB clears the message configuration information received this time.
In a third aspect, a backbone edge bridge BEB is provided, comprising:
an information obtaining unit, configured to obtain message configuration information of the BEB itself, where the message configuration information is used to define a feature corresponding to a target message to be received by the BEB, and the message configuration information includes: the backbone network service instance identifier I-SID of the target message and the corresponding BVLAN;
and the information sending unit is used for sending the message configuration information to a backbone network core bridge BCB, so that the BCB transmits the target message to the BEB according to the message configuration information.
In one embodiment, the message configuration information acquired by the information acquiring unit further includes: message scheduling parameters and/or a bridge Media Access Control (MAC) address of the BEB; the message scheduling parameter is used for representing scheduling priority and/or weight index of the target message of different message types.
In another embodiment, the message configuration information acquired by the information acquiring unit further includes: and the PBB mode information is used for indicating that the target message is a PBB message or a non-PBB message.
In yet another embodiment, the information sending unit is further configured to send the updated packet configuration information acquired by the information acquiring unit to the BCB.
In a fourth aspect, there is provided a backbone network core bridge BCB, comprising:
an information receiving unit, configured to receive message configuration information sent by a backbone edge bridge BEB, where the message configuration information is used to define characteristics corresponding to a target message to be received by the BEB, and the message configuration information includes: the backbone network service instance identifier I-SID of the target message and the corresponding BVLAN;
and the message filtering unit is used for taking the received message carrying the I-SID and the corresponding BVLAN as the target message and transmitting the target message to the BEB.
In one embodiment, the message configuration information received by the information receiving unit further includes: the BCB receives message scheduling parameters sent by a BEB and a bridge MAC address of the BEB, wherein the message scheduling parameters are used for representing scheduling priorities or weight indexes of the target messages of different message types; the message filtering unit is further configured to determine a message type of the target message according to the bridge MAC address and a destination address carried by the target message; and transmitting the target message to the BEB according to the scheduling priority or the weight index represented by the message scheduling parameter corresponding to the target message.
In another embodiment, the message configuration information received by the information receiving unit further includes: PBB mode information of an operator backbone bridge sent by a BEB, wherein the PBB mode information is used for indicating that the target message is a PBB message or a non-PBB message; the message filtering unit is further configured to discard the received non-PBB message and send the PBB message to the BEB when the PBB mode information indicates that the target message is a PBB message.
In yet another embodiment, further comprising: and the information management unit is used for clearing the message configuration information received this time if the message configuration information sent by the BEB is not received again within the preset time after the message configuration information sent by the BEB is received by the information receiving unit.
According to the message processing method provided by the embodiment of the invention, the BEB sends the characteristics of the target message to be received by the self side to the BCB, so that the BCB selects the corresponding target message to be transmitted to the BEB according to the characteristic information, the message requirement of the BEB side can be met, the message required by the BEB is rapidly transmitted to the BEB, and the message transmission efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of a PBB network provided by the prior art;
fig. 2 is an application schematic diagram of a message processing method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a message processing method according to an embodiment of the present invention;
fig. 4 is a schematic view of a BEB structure in the message processing method according to the embodiment of the present invention;
fig. 5 is a schematic diagram of a BCB structure in the message processing method according to the embodiment of the present invention;
fig. 6 is a flow chart of message filtering in the message processing method according to the embodiment of the present invention;
fig. 7 is a schematic diagram of a message queue in the message processing method according to the embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a BEB provided in an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a BCB according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another BCB according to an embodiment of the present invention.
Detailed Description
In order to improve the message transmission efficiency of a Provider Backbone Bridge (PBB), so that the BCB can quickly send a target message required by the BEB to the BEB, and a port on the BCB side is not excessively congested, the main idea of the scheme designed in the embodiment of the present invention may be seen in fig. 2, where the BEB sends its message configuration information to the BCB, where the message configuration information is used to limit characteristics corresponding to the target message to be received by the BEB.
Examples are as follows: assuming that a certain BEB is configured with a VSI (Virtual Switch Interface) instance (the instance includes an I-SID and a B-VLAN having a set of corresponding relationships), the VSI instance is bound to the port e1 in fig. 2, and the port e1 is a port used by the BEB to connect to the BCB, it means that the BEB receives only the packet transmitted from the BCB and satisfying the I-SID and the B-VLAN at the same time at the port e1, and the packet may be referred to as a target packet (i.e., a packet that the BEB wants to receive). The BEB may send the I-SID and B-VLAN, which may be referred to as message configuration information, to the BCB.
On the BCB side, selecting a message meeting the requirement of message configuration information from a large number of received data messages according to the message configuration information transmitted by the BEB, wherein the message is a target message which is required to be received by the BEB; and the BCB sends the target message to the BEB.
Examples are as follows: BCB receives two messages, each message carries I-SID and B-VLAN, then BCB compares the information with message configuration information transmitted by BEB received in advance, wherein I-SID and B-VLAN of one message are the same as I-SID and B-VLAN in the message configuration information, BCB confirms that the message is a target message to be received by BEB, and sends the target message to BEB through a port c1 in figure 2; and the B-VLAN of the other message is the same as the B-VLAN in the message configuration information, but the I-SID of the two messages is different, so that the BCB can determine that the message is not the target message to be received by the BEB according to the I-SID of the two messages, and discards the message.
The advantages of the above-described embodiment of the invention can be illustrated by comparison with the prior art as follows: suppose that the BCB receives a large number of data packets, taking three data packets as an example, the I-SID and B-VLAN of the first packet are the same as the corresponding information in the above-mentioned packet configuration information, the I-SID of the second packet is the same as the packet configuration information but different from the B-VLAN, and the B-VLAN of the third packet is the same as the packet configuration information but different from the I-SID. Then, if the messages are filtered by the B-VLAN according to the prior art, and only the B-VLAN is sent to the BEB identically, the first message and the third message are sent to the BEB, and the second message is discarded; in this case, port c1 of BCB may be congested due to more packets, and the third packet is not the packet intended by BEB; however, if the scheme of the embodiment of the present invention is adopted, the BCB will only send the first packet to the BEB, which not only further reduces the number of packets at the port c1 and alleviates the congestion condition, but also accurately sends the target packet required by the BEB to the BEB, which will improve the packet transmission efficiency.
Based on the above-mentioned technical idea of the embodiment of the present invention, as follows, a specific implementation of the embodiment of the present invention is described in detail, and with reference to fig. 3, the method shown in fig. 3 may include the following steps:
301. the BEB starts the intelligent anti-congestion function.
If the BEB can perform the above processing, for example, the BEB sends its message configuration information to the BCB, so that the BCB performs message filtering accordingly, this may be referred to as "intelligent anti-congestion function of the BEB". In specific implementation, an optional configuration can be set for whether the BEB starts the intelligent congestion prevention function, and when the BEB is not configured with the intelligent congestion prevention function, the BEB is the same as the common BEB and does not send message configuration information to the BCB; the flow of embodiments of the present invention may be performed when the BEB configures the intelligent anti-congestion function. The following of this embodiment is the message processing flow described on the basis that the BEB starts the intelligent congestion prevention function.
Of course alternatively, the BEB may be directly configured to have an intelligent anti-congestion function.
302. The BEB obtains the message configuration information of the BEB.
In this embodiment, the message configuration information of the BEB itself is used to define the feature corresponding to the target message to be received by the BEB. The message configuration information may include: and the backbone network service instance of the target message identifies the I-SID and the corresponding BVLAN. Referring collectively to fig. 4, the BEB may include a plurality of ports, such as port e1, port e2, and port e3, e1 being ports for connecting BCBs; the BEB configures a VSI instance, the VSI instance comprises a B-VLAN and an I-SID which have corresponding relations, the BEB binds the VSI instance with a port e1, namely the BEB is used for indicating that the port e1 can only receive messages which simultaneously carry the B-VLAN and the I-SID in the VSI instance, and the messages meeting the condition are called as target messages of the BEB.
In another embodiment, the message configuration information may further include: the bridge MAC address of the BEB equipment and message scheduling parameters corresponding to different types of messages, wherein the message scheduling parameters are used for expressing the scheduling priority and/or the weight index of the different types of messages.
Examples are as follows: assuming that there are three types of messages, that is, a PBB message unicast to the BEB, a PBB message multicast or broadcast to the BEB, and a non-PBB message, the message scheduling parameters of the three types of messages may be configured on the BEB, for example, the message scheduling parameters of this embodiment may include sp (scheduling priority) and/or weight (Weighted value) used in Weighted Round Robin (WRR) scheduling, that is, a weight parameter; for example, if the queue a is set to sp, the queue B is set to 15, and the queue C is set to 1, then if the bandwidth of the C1 port of BCB is 100M in total, and all three messages of A, B, C send 50M traffic, according to the above message scheduling parameters, the messages should be preferentially allocated to the queue a50M, and the remaining 50M bandwidth, the queue B and the queue C are scheduled according to the ratio of 15:1, that is, the queue B is divided into about 47M, and the queue C is divided into about 3M.
It should be noted that, the setting of the message scheduling parameters of the three messages is only an optional manner, and in a specific implementation, different scheduling parameters may be set according to actual transmission needs, for example, when a "non-PBB message" is more important for a BEB than a "PBB message multicast or broadcast to a BEB", a weight parameter of the "non-PBB message" may also be set to 15, and a weight parameter of the "PBB message multicast or broadcast to the BEB" is set to 1 (this is an example, and a value of the weight parameter in the specific implementation may be changed according to an actual situation). In addition, the setting of the message scheduling parameter may be global setting or port setting. With reference to fig. 4, the global setting means that all ports (including e1, e2, and e3) of the BEB can be set to the same message scheduling parameter, for example, when the port e2 receives a message, the setting is also according to the above-described embodiment; while port down setting means that, for example, only port e1 is set with the scheduling arrangement described above, the setting of the message scheduling at port e2 may be different from port e 1.
In another embodiment, the message configuration information may further include: and the PBB mode information is used for indicating that the target message is a PBB message or a non-PBB message.
Examples are as follows: a configurable option can be set on the BEB device, namely whether a certain port of the BEB is configured to be opened in a 'PBB mode'; if the PBB mode is set, the BEB is only used as the BEB equipment, namely only the PBB message is received; if the non-PBB mode is configured, the BEB can receive both PBB messages and non-PBB messages.
In this step, the BEB acquires the above-mentioned message configuration information, where the BEB may be configured to be provided with a Link Layer Discovery Protocol (LLDP) module, and the LLDP module may collect the message configuration information of the BEB device at the local end, assemble the information into type/length/value (TLV) information, and encapsulate the TLV information in the LLDP message.
303. And the BEB sends the message configuration information to the BCB.
In this embodiment, the BEB sends an LLDP message to the BCB, where the LLDP message carries the message configuration information acquired by the BEB. In specific implementation, the BEB may send the LLDP packet periodically, and when the packet configuration information is updated, the BEB may immediately send the updated packet configuration information to the BCB.
304. And the BCB generates a message filtering strategy at the port according to the received message configuration information.
Referring to fig. 5 in combination, after receiving the message configuration information sent by the BEB, the BCB may generate a message filtering policy according to the information, where the message filtering policy is used for enabling the BCB to select a target message required by the BEB from the received massive data messages. For example, the message filtering policy may be recorded in the form of an Access Control List (ACL).
Because the ACL is a common method for filtering messages, the specific list of the ACL in this embodiment will not be listed, and only the possible setting conditions of the ACL are described briefly: for example, it may be configured to "discard the message if the I-SID and the B-VLAN do not hit information in the message configuration information at the same time, that is, are not identical to the I-SID and the B-VLAN in the message configuration information," or configured to "discard the message if the message is a non-PBB message," and so on, and no further enumeration is performed. In this step, the BCB generates the ACL rule according to the packet configuration information, for example, if the packet configuration information is "PBB mode is" 1 "(assuming that 1 indicates that only the PBB packet is received and 0 indicates that the non-PBB packet can be received)", the above-exemplified ACL rule "can be generated by the BCB" if the packet is a non-PBB packet, the packet is discarded ".
In addition, the message filtering policy generated by the BCB may be bound to the port, for example, referring to fig. 5, assuming that the BCB includes three ports, where the port c1 is a port for connecting with the BEB, and the port c3 is a port for connecting with other equipment (possibly another BEB), the above message filtering policy may be bound to the port c1, which is equivalent to issuing the ACL to the port c1, only the message sent to the port c1 needs to be filtered according to the ACL, and the message sent from the port c3 may not be filtered according to the ACL.
305. The BCB receives the message.
In this step, the message received by the BCB is a message transmitted from the PBBN network in fig. 1, and may be transmitted from another BCB in the PBBN. The received messages include multiple message types, such as PBB messages and non-PBB messages, unicast messages or multicast messages, and the like.
306. And the BCB filters the message according to the message filtering strategy to obtain a target message.
In step 305, the BCB receives a large number of various data packets with a large number of types, and in this step, the BCB filters the packets according to the set packet filtering policy, selects a target packet that the BEB wants to receive from the large number of packets, and may discard other packets to prevent packet congestion.
307. The BCB sends the target message to the BEB.
It should be noted that, in this step, when the BCB sends the selected target packet to the BEB, the above-mentioned packet filtering policy may be used; for example, as described above, the message filtering policy is generated according to the message configuration information, that is, the message filtering policy may include message scheduling parameters of different types of messages, and then the messages may be sent according to the parameters when being sent to the BEB, for example, the queue a with the parameters set to sp performs priority scheduling, and the queue B and the queue C perform scheduling according to the ratio of the WRR scheduling weight parameter.
Specifically, how the BCB selects and sends the target packet according to the packet filtering policy is specifically described in the following embodiments.
Further, after receiving the message configuration information sent by the BEB, if the message configuration information sent by the BEB is not received again within the preset time, the BCB clears the message configuration information received this time.
How the BCB selects a target packet and transmits the target packet according to the packet configuration information transmitted by the BEB will be described in detail below, i.e., steps 306 and 307 in fig. 3. The method comprises the following specific steps:
firstly, the message filtering policy generated by the BCB side according to the message configuration information may include the following:
rule one is as follows: for the received message, if the I-SID and the B-VLAN in the message configuration information are not hit at the same time, the message is not belonged to the BEB, and the message is discarded;
rule two: for the received message, according to the 'PBB mode' set in the message configuration information, if the value of the PBB mode is '1', only allowing the PBB message to be sent to the BEB, and discarding all non-PBB messages; if the value of the PBB mode is '0', allowing the PBB message and the non-PBB message to pass through; the present embodiment assumes that the PBB mode set by the message configuration information is "0";
rule three: for the received message, according to the destination address in the message, if the destination address is the bridge MAC of the BEB set in the message configuration information, the message is indicated to be unicast to the BEB; if the destination address is a broadcast address or a multicast address, indicating that the destination address is a message broadcasted or multicasted to the BEB; and different message scheduling parameters are set for the 'unicast message to the BEB', 'broadcast or multicast message to the BEB' and 'non-PBB message', and different types of messages are transmitted with different scheduling priorities. In this embodiment, it is assumed that the message scheduling parameter set by the message configuration information is "the parameter of the PBB message unicast to the BEB is sp, the parameter of the PBB message multicast or broadcast to the BEB is 15, and the parameter of the non-PBB message is 1"; the above "scheduling priority" means that different scheduling resources are configured for different types of packets according to the configured packet scheduling parameters, for example, if the bandwidth of the C1 port of the BCB is 100M in total, and all three packets A, B, C send 50M traffic, the packets should be preferentially allocated to the queue a50M, the remaining 50M bandwidth, and the queues B and C are scheduled according to a ratio of 15:1, that is, the queues B are divided into about 47M and the queues C are divided into about 3M, as described above.
Then, it is assumed that the BCB side of the present embodiment will receive various types of packets as described above, and these packets may be congested at port c1 of the BCB side; the BCB may filter the packet according to the following procedure, solve the congestion problem, and improve the packet transmission efficiency, see fig. 6, including the following processing, but not limiting the execution sequence of the steps:
601. BCB discards the I-SID and B-VLAN if the I-SID and B-VLAN in the message configuration information are not hit (hit, namely are the same) at the same time;
602. the BCB allows the PBB message and the non-PBB message to pass through according to the second rule, namely the PBB message and the non-PBB message are not discarded; the PBB message is a message for hitting I-SID and B-VLAN;
603. BCB obtains the destination address in the message and determines the message type by comparing the destination address with the bridge MAC of BEB in the message configuration information;
specifically, for a received message, according to a destination address in the message, if the destination address is a bridge MAC of a BEB set in message configuration information, it indicates that the message is a unicast message to the BEB; if the destination address is a broadcast address or a multicast address, the destination address is a message broadcast or multicast to the BEB.
604. The BCB classifies different types of messages into corresponding message queues to be transmitted;
specifically, the BCB may put the unicast message to the BEB into the queue a; the messages broadcasted or multicasted to the BEB are classified into a queue B; and classifying the non-PBB message into a queue C. Referring to fig. 7, the three message queues described above are shown.
In an embodiment, the manner of classifying different types of messages into different queues may be to set a value of an identification field in the message, so as to classify the message by changing the value; for example, the priority of dot1p in the message can be changed according to the message matching the ACL field to enter different queues.
605. And the BCB transmits the messages to the BEB according to the message scheduling parameters corresponding to the different types of messages and different scheduling priorities.
Referring to fig. 7, the different lengths of the arrow lines on the right side of the message queue represent the scheduling priority of the message queue, that is, the priority of the "unicast message to BEB" is the highest, and the scheduling resource requirement of the type of message will be satisfied preferentially; the priority of the 'message broadcast or multicast to BEB' is the lowest, and the scheduling resources in corresponding proportion are distributed according to the proportion setting of the scheduling parameters corresponding to the type of the message, wherein the priority of the 'non-PBB message' is the lowest. This scheduling order is set according to the message scheduling parameters set by the above three rules.
The application scenarios of such packet scheduling priorities are, for example: when BCB is congested, the aggregated message includes the above three types of messages, and then congestion is likely to cause message loss, so a message relatively important for BEB should be delivered preferentially, and "unicast to BEB message" is most important because the message is definitely for BEB, "broadcast or multicast to BEB message" is likely not to belong to BEB, and therefore is of the second importance, and so on. The BCB will, according to the example described above, preferentially allocate scheduling resources for "unicast to BEB messages" so that the most important messages are preferentially delivered to the BEB, which reduces the possibility of important messages being lost due to congestion when congestion occurs, and even if the important messages are lost, only the less important messages may be lost, which has less impact on the BEB.
According to the message processing method provided by the embodiment of the invention, the BEB sends the characteristics of the target message to be received by the self side to the BCB, so that the BCB selects the corresponding target message to be transmitted to the BEB according to the characteristic information, the message requirement of the BEB side can be met, the message required by the BEB is rapidly transmitted to the BEB, and the message transmission efficiency is improved; meanwhile, the bandwidth occupation of useless messages is eliminated, and the effective bandwidth of a BCB port is saved.
Fig. 8 is a schematic structural diagram of a BEB according to an embodiment of the present invention, where the BEB may execute the message processing method according to the foregoing embodiment, and this embodiment only briefly describes the structure of the BEB, and a specific working principle of the BEB may be combined with the method embodiment. As shown in fig. 8, the BEB may include: an information acquisition unit 81 and an information transmission unit 82; wherein,
an information obtaining unit 81, configured to obtain message configuration information of the BEB itself, where the message configuration information is used to define a feature corresponding to a target message to be received by the BEB.
Wherein the message configuration information includes: the backbone network service instance identifier I-SID of the target message and the corresponding BVLAN;
for example, the information acquisition unit 81 may be an LLDP module in the BEB.
An information sending unit 82, configured to send the packet configuration information to a backbone network core bridge BCB, so that the BCB transmits the target packet to the BEB according to the packet configuration information.
Further, the message configuration information acquired by the information acquiring unit 81 further includes: message scheduling parameters and a bridge Media Access Control (MAC) address of the BEB; the message scheduling parameter is used for representing the scheduling priority of the target message of different message types.
Further, the message configuration information acquired by the information acquiring unit 81 further includes: and the PBB mode information is used for indicating that the target message is a PBB message or a non-PBB message.
Further, the information sending unit 82 is further configured to send the updated packet configuration information acquired by the information acquiring unit to the BCB.
Fig. 9 is a schematic structural diagram of a BCB according to an embodiment of the present invention, where the BCB may execute the packet processing method according to the foregoing embodiment, and this embodiment only briefly describes the structure of the BCB, and a specific working principle of the BCB may be combined with the method embodiment. As shown in fig. 9, the BCB may include: an information receiving unit 91 and a message filtering unit 92; wherein,
an information receiving unit 91, configured to receive message configuration information sent by a backbone edge bridge BEB, where the message configuration information is used to define a feature corresponding to a target message to be received by the BEB.
Wherein the message configuration information includes: the backbone network service instance identifier I-SID of the target message and the corresponding BVLAN;
and the message filtering unit 92 is configured to take the received message carrying the I-SID and the corresponding BVLAN as the target message, and transmit the target message to the BEB.
Further, the message configuration information received by the information receiving unit 91 further includes: the BCB receives message scheduling parameters sent by a BEB and a bridge MAC address of the BEB, wherein the message scheduling parameters are used for expressing scheduling priorities of the target messages of different message types;
the message filtering unit 92 is further configured to determine a message type of the target message according to the bridge MAC address and a destination address carried by the target message; and transmitting the target message to the BEB according to the scheduling priority represented by the message scheduling parameter corresponding to the target message.
Further, the message configuration information received by the information receiving unit 91 further includes: PBB mode information of an operator backbone bridge sent by a BEB, wherein the PBB mode information is used for indicating that the target message is a PBB message or a non-PBB message;
the packet filtering unit 92 is further configured to discard the received non-PBB packet and send the PBB packet to the BEB when the PBB mode information indicates that the target packet is a PBB packet.
Fig. 10 is a schematic structural diagram of another BCB according to an embodiment of the present invention, and based on the structure shown in fig. 9, the BCB may further include: an information management unit 93, configured to, after the information receiving unit 91 receives the message configuration information sent by the BEB, clear the message configuration information received this time if the message configuration information sent by the BEB is not received again within a preset time.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (17)
1. A message processing method is characterized by comprising the following steps:
a backbone network edge bridge (BEB) acquires message configuration information of the BEB, wherein the message configuration information is used for limiting characteristics corresponding to a target message to be received by the BEB, and the message configuration information comprises: the backbone network service instance identifier I-SID of the target message and the corresponding BVLAN;
and the BEB sends the message configuration information to a backbone network core bridge BCB, so that the BCB generates a message filtering strategy at a port for connecting with the BEB according to the message configuration information, and selects the target message carrying the I-SID and the corresponding BVLAN from the received messages according to the message filtering strategy, and transmits the target message to the BEB through the port.
2. The method of claim 1, wherein the message configuration information further comprises: message scheduling parameters and/or a bridge Media Access Control (MAC) address of the BEB; the message scheduling parameter is used for representing scheduling priority and/or weight index of the target message of different message types.
3. The method of claim 1, wherein the message configuration information further comprises: and the PBB mode information is used for indicating that the target message is a PBB message or a non-PBB message.
4. The method according to any one of claims 1 to 3,
the method for acquiring the message configuration information of the backbone network edge network bridge (BEB) comprises the following steps: the BEB acquires the message configuration information through a link layer discovery protocol module arranged by the BEB;
the BEB sends the message configuration information to a backbone network core bridge BCB, and specifically comprises the following steps: and the BEB encapsulates the message configuration information in a link layer discovery protocol message and sends the message configuration information to the BCB.
5. The method according to any of claims 1 to 3, wherein the BEB sends the message configuration information to a backbone network core bridge (BCB), and comprises:
and when the message configuration information of the BEB is updated, the BEB sends the updated message configuration information to the BCB.
6. A message processing method is characterized by comprising the following steps:
receiving, by a backbone network core bridge BCB, message configuration information sent by a backbone network edge bridge BEB, where the message configuration information is used to define characteristics corresponding to a target message to be received by the BEB, and the message configuration information includes: the backbone network service instance identifier I-SID of the target message and the corresponding BVLAN;
and the BCB generates a message filtering strategy at a port used for being connected with the BEB according to the message configuration information, selects a message carrying the I-SID and the corresponding BVLAN from the received messages as the target message according to the message filtering strategy, and transmits the target message to the BEB through the port.
7. The method of claim 6,
the BCB receives the message configuration information sent by the BEB, and the method further comprises the following steps: the BCB receives message scheduling parameters sent by a BEB and/or a bridge MAC address of the BEB, wherein the message scheduling parameters are used for representing scheduling priorities and/or weight indexes of the target messages of different message types;
after the BCB receives the message scheduling parameters sent by the BEB and the bridge MAC address of the BEB, the method further comprises the following steps: the BCB determines the message type of the target message according to the bridge MAC address and the destination address carried by the target message; and transmitting the target message to the BEB according to the scheduling priority represented by the message scheduling parameter corresponding to the target message.
8. The method of claim 6,
the BCB receives the message configuration information sent by the BEB, and the method further comprises the following steps: the BCB receives provider backbone bridge PBB mode information sent by a BEB, wherein the PBB mode information is used for indicating that the target message is a PBB message or a non-PBB message;
after the BCB receives the operator backbone bridge PBB mode information sent by the BEB, the method further includes: and if the PBB mode information indicates that the target message is a PBB message, the BCB discards the received non-PBB message and sends the PBB message to the BEB.
9. The method according to any one of claims 6 to 8, wherein after receiving the message configuration information sent by the BEB, the BCB further comprises:
and if the BCB does not receive the message configuration information sent by the BEB again within the preset time, the BCB clears the message configuration information received this time.
10. A backbone edge bridge BEB, comprising:
an information obtaining unit, configured to obtain message configuration information of the BEB itself, where the message configuration information is used to define a feature corresponding to a target message to be received by the BEB, and the message configuration information includes: the backbone network service instance identifier I-SID of the target message and the corresponding BVLAN;
and the information sending unit is used for sending the message configuration information to a backbone network core bridge BCB, so that the BCB generates a message filtering strategy at a port used for being connected with a BEB according to the message configuration information, and selects the target message carrying the I-SID and the corresponding BVLAN from the received messages according to the message filtering strategy, and transmits the target message to the BEB through the port.
11. The BEB according to claim 10,
the message configuration information acquired by the information acquisition unit further includes: message scheduling parameters and/or a bridge Media Access Control (MAC) address of the BEB; the message scheduling parameter is used for representing scheduling priority and/or weight index of the target message of different message types.
12. The BEB according to claim 10,
the message configuration information acquired by the information acquisition unit further includes: and the PBB mode information is used for indicating that the target message is a PBB message or a non-PBB message.
13. The BEB according to any one of claims 10 to 12, wherein,
the information sending unit is further configured to send the updated packet configuration information acquired by the information acquiring unit to the BCB.
14. A backbone network core bridge BCB, comprising:
an information receiving unit, configured to receive message configuration information sent by a backbone edge bridge BEB, where the message configuration information is used to define characteristics corresponding to a target message to be received by the BEB, and the message configuration information includes: the backbone network service instance identifier I-SID of the target message and the corresponding BVLAN;
and the message filtering unit is used for generating a message filtering strategy at a port connected with the BEB according to the message configuration information, selecting a message carrying the I-SID and the corresponding BVLAN from the received messages as the target message according to the message filtering strategy, and transmitting the target message to the BEB through the port.
15. The BCB according to claim 14,
the message configuration information received by the information receiving unit further includes: the BCB receives message scheduling parameters sent by a BEB and/or a bridge MAC address of the BEB, wherein the message scheduling parameters are used for representing scheduling priorities and/or weight indexes of the target messages of different message types;
the message filtering unit is further configured to determine a message type of the target message according to the bridge MAC address and a destination address carried by the target message; and transmitting the target message to the BEB according to the scheduling priority or the weight index represented by the message scheduling parameter corresponding to the target message.
16. The BCB according to claim 14,
the message configuration information received by the information receiving unit further includes: PBB mode information of an operator backbone bridge sent by a BEB, wherein the PBB mode information is used for indicating that the target message is a PBB message or a non-PBB message;
the message filtering unit is further configured to discard the received non-PBB message and send the PBB message to the BEB when the PBB mode information indicates that the target message is a PBB message.
17. The BCB according to any one of claims 14 to 16, further comprising:
and the information management unit is used for clearing the message configuration information received this time if the message configuration information sent by the BEB is not received again within the preset time after the message configuration information sent by the BEB is received by the information receiving unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410318827.7A CN104092622B (en) | 2014-07-04 | 2014-07-04 | A kind of message processing method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410318827.7A CN104092622B (en) | 2014-07-04 | 2014-07-04 | A kind of message processing method and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104092622A CN104092622A (en) | 2014-10-08 |
CN104092622B true CN104092622B (en) | 2018-01-09 |
Family
ID=51640304
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410318827.7A Active CN104092622B (en) | 2014-07-04 | 2014-07-04 | A kind of message processing method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104092622B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111526095B (en) | 2019-02-02 | 2023-12-08 | 华为技术有限公司 | Flow control method and device |
CN115801897B (en) * | 2022-12-20 | 2024-05-24 | 南京工程学院 | Message dynamic processing method of edge proxy |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1474563A (en) * | 2002-08-06 | 2004-02-11 | ��Ϊ��������˾ | Repeating method for multi-broadcast message in network communication |
CN102170387A (en) * | 2010-02-26 | 2011-08-31 | 杭州华三通信技术有限公司 | Method, system, and device for detecting service connection in tunnel |
CN103200115A (en) * | 2013-04-19 | 2013-07-10 | 杭州华三通信技术有限公司 | Flow control method and device in SPB (Shortest Path Bridging) network |
CN103731288A (en) * | 2012-10-16 | 2014-04-16 | 杭州华三通信技术有限公司 | Message forwarding method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8223668B2 (en) * | 2006-12-14 | 2012-07-17 | Rockstar Bidco Lp | Method and apparatus for exchanging routing information and the establishment of connectivity across multiple network areas |
-
2014
- 2014-07-04 CN CN201410318827.7A patent/CN104092622B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1474563A (en) * | 2002-08-06 | 2004-02-11 | ��Ϊ��������˾ | Repeating method for multi-broadcast message in network communication |
CN102170387A (en) * | 2010-02-26 | 2011-08-31 | 杭州华三通信技术有限公司 | Method, system, and device for detecting service connection in tunnel |
CN103731288A (en) * | 2012-10-16 | 2014-04-16 | 杭州华三通信技术有限公司 | Message forwarding method and device |
CN103200115A (en) * | 2013-04-19 | 2013-07-10 | 杭州华三通信技术有限公司 | Flow control method and device in SPB (Shortest Path Bridging) network |
Also Published As
Publication number | Publication date |
---|---|
CN104092622A (en) | 2014-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107005462B (en) | Method, equipment and system for forwarding data in software defined network | |
CN101009655B (en) | Traffic scheduling method and device | |
CN101399749B (en) | Method, system and device for packet filtering | |
EP2629554B1 (en) | Service control method and system, enodeb and packet data network gateway | |
WO2017157274A1 (en) | Network-traffic control method and network device thereof | |
CN101616097B (en) | Method and system for managing output port queue of network processor | |
EP2701342A1 (en) | Method and system for implementing elastic network interface and interconnection | |
US8456995B2 (en) | Packet transfer system, network management apparatus, and edge node | |
JP2023505139A (en) | TRANSMISSION QUALITY DETECTION METHOD, APPARATUS AND SYSTEM, AND STORAGE MEDIUM | |
WO2017031816A1 (en) | Data transmission method, relevant device and system | |
CN104092628B (en) | A kind of flow allocation method and the network equipment | |
CN109005126B (en) | Data stream processing method, device and computer readable storage medium | |
CN101834785B (en) | Method and device for realizing stream filtration | |
CN101212467B (en) | MPLS network service scheduling method | |
CN105915468A (en) | Service scheduling method and device | |
CN104092622B (en) | A kind of message processing method and equipment | |
WO2016109970A1 (en) | Network entity and service policy management method | |
CN100544321C (en) | Support bandwidth management method and device that dynamic bandwidth is cut apart | |
EP2487847A1 (en) | QoS control method and system | |
CN104753820B (en) | Method, equipment and the interchanger of the asymmetric forwarding of Business Stream in aggregated links | |
JP2008104107A (en) | Communication relay apparatus, communicating relay control method, and communicating relay control program | |
US9166815B2 (en) | Communication apparatus and communication controlling method in ring network | |
CN103973590B (en) | A kind of QoS dispatching methods and device | |
CN103117943B (en) | VPLS message flow method for limiting speed and device | |
Rovcanin et al. | Data traffic differentiation and qos on the train, in fast parameter varying, heterogeneous wireless networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |