CN107483331B - Processing method and system for eliminating service looping - Google Patents
Processing method and system for eliminating service looping Download PDFInfo
- Publication number
- CN107483331B CN107483331B CN201710682134.XA CN201710682134A CN107483331B CN 107483331 B CN107483331 B CN 107483331B CN 201710682134 A CN201710682134 A CN 201710682134A CN 107483331 B CN107483331 B CN 107483331B
- Authority
- CN
- China
- Prior art keywords
- mms message
- value
- forwarding
- message
- mms
- 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 20
- 238000012986 modification Methods 0.000 claims description 4
- 230000004048 modification Effects 0.000 claims description 4
- 238000000034 method Methods 0.000 claims description 2
- 238000013507 mapping Methods 0.000 claims 2
- 230000008030 elimination Effects 0.000 claims 1
- 238000003379 elimination reaction Methods 0.000 claims 1
- 238000004891 communication Methods 0.000 abstract description 6
- 230000005540 biological transmission Effects 0.000 description 6
- 125000004122 cyclic group Chemical group 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 239000000284 extract Substances 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/18—Loop-free operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/20—Support for services
- H04L49/201—Multicast operation; Broadcast operation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/35—Switches specially adapted for specific applications
- H04L49/354—Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]
Abstract
The invention provides a processing method and a system for eliminating service looping, which belong to the field of communication, and the processing method comprises the following steps: acquiring a first ID value of an MMS message, adding a forwarding field in the MMS message to obtain a first MMS message, and sending the first MMS message to a switch; modifying a forwarding field in the first MMS message to obtain a second MMS message, and forwarding the second MMS message; and extracting a second ID value in the second MMS message, and judging the forwarding behavior of the second MMS message according to the matching result of the first ID value and the second ID value. By identifying the port on the terminal and identifying the ID of the port on the terminal to be accessed when the switch sends out the message, the message is prevented from entering the same port, thereby avoiding the generation of service looping.
Description
Technical Field
The invention belongs to the field of communication, and particularly relates to a processing method and a processing system for eliminating service looping.
Background
At present, when an MMS message enters an exchange from a terminal 1 under the port of the exchange 1, a layer of VLAN (Virtual Local area network) is added to an MAC source address of the MMS message before the MMS message leaves the terminal, the exchange receives the MMS message from the port 1, modifies the VLAN, and sends the modified MMS message back to all terminals under the port 1.
If the MMS message is unknown unicast, the switch modifies its VLAN to represent the broadcast VLAN. Because the adopted broadcast mode leads the MMS message to return to the incoming port of the MMS message, one part of the message is circularly transmitted between the terminal and the switch, other messages can not be normally transmitted, and serious communication delay is brought.
Disclosure of Invention
In order to solve the defects and shortcomings in the prior art, the invention provides a processing method and a system for preventing a message from entering the same port by identifying a port on a terminal and identifying an ID (identity) of the port on the terminal to be entered when the switch sends the message, thereby avoiding the generation of service looping.
In order to achieve the above technical object, in one aspect, the present invention provides a processing method for eliminating service looping, where the processing method includes:
enabling the sample terminal to obtain a first ID value of the MMS message, adding a forwarding field in the MMS message to obtain a first MMS message, and sending the first MMS message to the switch;
the switch modifies the forwarding field in the first MMS message to obtain a second MMS message, and forwards the second MMS message;
and enabling the terminal receiving the second MMS message to extract a forwarding field in the second MMS message, inquiring a third register table item corresponding to the forwarding field, acquiring target outlet configuration content corresponding to the second MMS message, extracting a second ID value in the second MMS message, and judging the forwarding behavior of the second MMS message according to the matching result of the first ID value and the second ID value and the target outlet configuration content.
Optionally, the making the sample terminal obtain the first ID value of the MMS message includes:
acquiring a source port number of an MMS message, searching a first register table item according to the source port number of the MMS message, acquiring a first ID value, and adding the first ID value and the source port number to the tail part of the message;
the value range of the first ID value is 0-1023.
Optionally, adding a forwarding field in the MMS message to obtain a first MMS message, and sending the first MMS message to the switch includes:
and acquiring a source port number of the MMS message, searching the table entry of the second register according to the source port number of the MMS message, adding a forwarding field after the MAC source address in the MMS message based on the searched result to obtain a first MMS message, and sending the first MMS message to the switch.
Optionally, the instructing the switch to modify the forwarding field in the first MMS message to obtain a second MMS message includes:
and the switch modifies the content of the forwarding field added from the sample terminal to the switch in the first MMS message to obtain a second MMS message.
Optionally, the forwarding field in the second MMS message corresponds to the number of destination outlets.
Optionally, the extracting the second ID value in the second MMS message includes:
and acquiring a source port number of the second MMS message, searching the first register table according to the source port number of the second MMS message, and extracting a second ID value.
Optionally, the determining, according to the matching result of the first ID value and the second ID value and the destination egress configuration content, a forwarding behavior of the second MMS packet includes:
matching the first ID value with the second ID value to obtain a matching result;
and if the matching result shows that the first ID value is consistent with the second ID value, forbidding forwarding the second MMS message from the port corresponding to the ID value.
Optionally, the forwarding field is a VLAN.
In another aspect, the present invention further provides a processing system for eliminating service looping, where the processing system includes:
the forwarding module is used for enabling the sample terminal to obtain a first ID value of the MMS message, adding a forwarding field in the MMS message to obtain a first MMS message, and sending the first MMS message to the switch;
the modification module is used for enabling the switch to modify the forwarding field in the first MMS message to obtain a second MMS message and forwarding the second MMS message;
and the judging module is used for enabling the terminal receiving the second MMS message to extract a forwarding field in the second MMS message, inquiring a third register table item corresponding to the forwarding field, acquiring target outlet configuration content corresponding to the second MMS message, extracting a second ID value in the second MMS message, and judging the forwarding behavior of the second MMS message according to the matching result of the first ID value and the second ID value and the target outlet configuration content.
Optionally, the forwarding module is specifically configured to:
acquiring a source port number of an MMS message, searching a first register table item according to the source port number of the MMS message, acquiring a first ID value, and adding the first ID value and the source port number to the tail part of the message;
the value range of the first ID value is 0-1023.
The technical scheme provided by the invention has the beneficial effects that:
by identifying the port on the terminal and identifying the ID of the port on the terminal to be accessed when the switch sends out the message, the message is prevented from entering the same port, thereby avoiding the generation of service looping.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flow chart of a processing method for eliminating service looping provided by the present invention;
FIG. 2 is a schematic structural diagram of a connection relationship between a terminal and a switch provided in the present invention;
fig. 3 is a schematic structural diagram of a processing system for eliminating service looping provided by the present invention.
Detailed Description
To make the structure and advantages of the present invention clearer, the structure of the present invention will be further described with reference to the accompanying drawings.
Example one
The invention provides a processing method for eliminating service looping, as shown in fig. 1, the processing method includes:
11. enabling the sample terminal to obtain a first ID value of the MMS message, adding a forwarding field in the MMS message to obtain a first MMS message, and sending the first MMS message to the switch;
12. the switch modifies the forwarding field in the first MMS message to obtain a second MMS message, and forwards the second MMS message;
13. and enabling the terminal receiving the second MMS message to extract a forwarding field in the second MMS message, inquiring a third register table item corresponding to the forwarding field, acquiring target outlet configuration content corresponding to the second MMS message, extracting a second ID value in the second MMS message, and judging the forwarding behavior of the second MMS message according to the matching result of the first ID value and the second ID value and the target outlet configuration content.
In the implementation, firstly, a first ID value and a forwarding field of an MMS message are obtained in a sample terminal, the first ID value and the forwarding field are stored in the MMS message, a first MMS message is further obtained, the first MMS message is sent to an exchanger, secondly, after the exchanger receives the first MMS message, the forwarding field in the first MMS message is modified, a second MMS message is obtained, the second MMS message is forwarded back to the terminal from the exchanger, finally, the terminal receiving the second MMS message extracts the forwarding field in the second MMS message, a third register table entry corresponding to the forwarding field is inquired, a target outlet configuration content corresponding to the second MMS message is obtained, the second MMS message obtains a second ID value, matching is carried out according to the first ID value and the second ID value, if a matching result is obtained, the first ID value is consistent with the second ID value, namely, the target outlet configuration is set, the second MMS message is not forwarded out of the port, i.e., the port from which the MMS message was originally sent does not receive the originally sent MMS message.
Based on the processing method, the first ID value of the MMS message is obtained through the sample terminal, the second ID value of the second MMS message is obtained through the terminal receiving the second MMS message, the first ID value and the second ID value are matched, the matching result is obtained, the forwarding behavior of the second MMS message is judged according to the obtained matching result, and when the matching result shows that the first ID value and the second ID value are consistent, the second MMS message is not forwarded from a port under the terminal which originally sends the MMS message, but can be forwarded from a port under the other terminal. The same message can not be sent out again from the same port of the same terminal, so that the problem of cyclic transmission of the message between the terminal and the switch caused by the same message is prevented, the communication delay is reduced, and the normal transmission of the message in the terminal and the switch is ensured.
Optionally, the making the sample terminal obtain the first ID value of the MMS message includes:
acquiring a source port number of an MMS message, searching a first register table item according to the source port number of the MMS message, acquiring a first ID value, and adding the first ID value and the source port number to the tail part of the message;
the value range of the first ID value is 0-1023.
In implementation, in order to obtain the first ID value of the MMS message, the source port number of the MMS message needs to be obtained, then the content of the first register entry is queried according to the obtained source port number, and the first ID value representing the name of the sending port of the MMS message, which corresponds to the MMS message, is determined according to the content in the first register entry.
Since the obtained first ID value is used in the subsequent determination step, the first ID value needs to be sent simultaneously along with the MMS message, and the sent MMS message also includes the queried source port number, so that before the sample terminal sends the MMS message, the operation of adding the first ID value and the source port number to the tail of the MMS message is performed.
And for each sample terminal device, the results of the first register table entries are different, wherein the value range of the first ID value is 0-1023.
Optionally, adding a forwarding field in the MMS message to obtain a first MMS message, and sending the first MMS message to the switch includes:
and acquiring a source port number of the MMS message, searching the table entry of the second register according to the source port number of the MMS message, adding a forwarding field after the MAC source address in the MMS message based on the searched result to obtain a first MMS message, and sending the first MMS message to the switch.
In implementation, because the IP address is not enough, the IP capacity of a class subnet is limited, and the number of available IPs is expanded by adopting a forwarding field mode. In order to obtain the forwarding field of the MMS message, the source port number of the MMS message needs to be obtained, then the content of the second register table entry is inquired according to the obtained source port number, and the forwarding field corresponding to the MMS message is determined according to the content in the second register table entry.
Because the forwarding field needs to be used for subsequent determination steps, the obtained forwarding field needs to be sent simultaneously along with the MMS message, the forwarding field is added with the MAC source address in the MMS message to obtain a first MMS message, and then the first MMS message is sent to the switch.
Optionally, the instructing the switch to modify the forwarding field in the first MMS message to obtain a second MMS message includes:
and the switch modifies the content of the forwarding field added from the sample terminal to the switch in the first MMS message to obtain a second MMS message.
In implementation, in order to avoid the need of mobile physical connection, the IP address of the forwarding field is reconfigured after the content of the forwarding field is modified, so that the port of the switch receiving the first MMS message is not in the same network segment as the port of the switch sending the second MMS message.
Firstly, the first MMS message can be transmitted back to the sample terminal from the switch, after the switch receives the first MMS message, secondly, the content of the transmitting field added from the sample terminal to the switch in the first MMS message is modified, and finally, the second MMS message is obtained.
Optionally, the forwarding field in the second MMS message corresponds to the number of destination outlets.
In practice, the number of destination outlets is different, depending on the forwarding field in the second MMS message, and may be one or several, or even all ports will receive the second MMS message. As shown in fig. 2, N terminals are connected to each port of the switch, and a port a, a port B, a port C, and a port D are provided below each terminal.
As can be seen from the above, first, the sample terminal is enabled to obtain the first ID value and the source port number of the MMS message from any port, and add them together at the tail of the MMS message, the sample terminal is enabled to obtain the forwarding field from the same port, and add it after the MAC source address of the MMS message, so as to obtain the first MMS message, forward the first MMS message to the switch, modify the forwarding field through the switch, so as to obtain the second MMS message, and the terminal receiving the second MMS message receives the second MMS message forwarded from the switch, at this time, the port a, the port B, the port C, and the port D are used as the destination exit of the second MMS message, and according to the difference of the forwarding fields in the second MMS message, any one of the port a, the port B, the port C, and the port D can forward the second MMS message, or any two of the port a, the port B, the port C, and the port D can forward the second MMS message, even four ports of the port A, the port B, the port C and the port D can transmit the second MMS message.
Here, the number of ports provided under the terminal is not limited to the number of ports in fig. 2, and more ports may be provided under the terminal, which is not described herein again.
Optionally, the extracting the second ID value in the second MMS message includes:
and acquiring a source port number of the second MMS message, searching the first register table according to the source port number of the second MMS message, and extracting a second ID value.
In an implementation, all ports of all terminals are mapped by one ID value in order not to let the port under the terminal that originally sent the MMS message receive the second MMS message.
Firstly, in order to obtain the second ID value of the MMS message, the terminal receiving the second MMS message is enabled to extract the first ID value and the source port number at the tail of the second MMS message, so as to obtain the source port number of the second MMS message.
Secondly, inquiring the content of the first register table item according to the obtained source port number, and determining a second ID value which corresponds to the second MMS message and represents the name of the terminal for receiving the second MMS message according to the content in the first register table item.
Optionally, the determining, according to the matching result of the first ID value and the second ID value and the destination egress configuration content, a forwarding behavior of the second MMS packet includes:
matching the first ID value with the second ID value to obtain a matching result;
and if the matching result shows that the first ID value is consistent with the second ID value, the internal container in the destination outlet configuration is put in the destination outlet configuration, and the second MMS message is forbidden to be forwarded from the port corresponding to the ID value.
In the implementation, a first ID value is obtained from an MMS message and a second ID value is obtained from a second MMS message, and the first ID value and the second ID value are matched to obtain a matching result;
if the matching result shows that the first ID value is consistent with the second ID value, the destination outlet configuration item is set, and the second MMS message is prohibited not to be forwarded from the port. Because the port names of all the terminals are consistent, under the condition, the second MMS message is forwarded from the same port names of other terminals, so that the same message cannot be sent out again from the same port of the same terminal, the problem of cyclic transmission of the message between the terminal and the switch caused by the retransmission is prevented, the normal transmission of the message in the terminal and the switch is ensured, and the communication delay is reduced.
And if the matching result shows that the first ID value is inconsistent with the second ID value, the second MMS message is directly forwarded from the port.
Optionally, the forwarding field is a VLAN.
In implementation, the forwarding field is a VLAN, where the VLAN is a group of logical devices and users, and these devices and users are not limited by physical location, and can be organized according to factors such as function, department, and application, and communicate with each other as if they are in the same network segment.
As shown in fig. 2, the number of ports of the switch is excessive and the ports are in a broadcast domain, so that the performance of the network is affected. Therefore, the VLAN technology is adopted to divide a large broadcast domain into a plurality of small broadcasts so as to improve the performance of the network.
Therefore, compared with the traditional local area network technology, the VLAN technology is more flexible, and meanwhile, the network security is improved.
The invention provides a processing method for eliminating service looping, which comprises the following steps: acquiring a first ID value of an MMS message, adding a forwarding field in the MMS message to obtain a first MMS message, and sending the first MMS message to a switch; modifying a forwarding field in the first MMS message to obtain a second MMS message, and forwarding the second MMS message; and extracting a second ID value in the second MMS message, and judging the forwarding behavior of the second MMS message according to the matching result of the first ID value and the second ID value. By identifying the port on the terminal and identifying the ID of the port on the terminal to be accessed when the switch sends out the message, the message is prevented from entering the same port, thereby avoiding the generation of service looping.
Example two
The present invention also provides a processing system 2 for eliminating service looping, as shown in fig. 3, where the processing system 2 includes:
the forwarding module 21 is configured to enable the sample terminal to obtain a first ID value of the MMS message, add a forwarding field in the MMS message to obtain a first MMS message, and send the first MMS message to the switch;
a modification module 22, configured to enable the switch to modify a forwarding field in the first MMS message to obtain a second MMS message, and forward the second MMS message;
the determining module 23 is configured to enable the terminal that receives the second MMS message to extract a forwarding field in the second MMS message, query a third register table entry corresponding to the forwarding field, obtain a destination egress configuration content corresponding to the second MMS message, extract a second ID value in the second MMS message, and determine a forwarding behavior of the second MMS message according to a matching result of the first ID value and the second ID value in combination with the destination egress configuration content.
In implementation, the execution flow of the processing system for eliminating service looping is as follows:
firstly, a first ID value and a forwarding field of an MMS message are obtained in a sample terminal, the first ID value and the forwarding field are stored in the MMS message, a first MMS message is further obtained, the first MMS message is sent to an exchanger, then, after the exchanger receives the first MMS message, the forwarding field in the first MMS message is modified, a second MMS message is obtained, the second MMS message is forwarded back to the terminal from the exchanger, finally, the terminal receiving the second MMS message extracts the forwarding field in the second MMS message, a third register table entry corresponding to the forwarding field is inquired, a target outlet configuration content corresponding to the second MMS message is obtained, the second MMS message obtains a second ID value, matching is carried out according to the first ID value and the second ID value, if the matching result is obtained, the first ID value is consistent with the second ID value, namely, the target outlet configuration is set, the second MMS message is not forwarded out of the port, i.e., the port from which the MMS message was originally sent does not receive the originally sent MMS message.
Based on the execution flow, a first ID value of the MMS message is obtained through the sample terminal, a second ID value of the second MMS message is obtained through the terminal receiving the second MMS message, the first ID value and the second ID value are matched, a matching result is obtained, the forwarding behavior of the second MMS message is judged according to the obtained matching result, and when the matching result shows that the first ID value and the second ID value are consistent, the second MMS message is not forwarded from a port under the terminal which originally sends the MMS message, but can be forwarded from a port under the other terminal. The same message can not be sent out again from the same port of the same terminal, so that the problem of cyclic transmission of the message between the terminal and the switch caused by the same message is prevented, the communication delay is reduced, and the normal transmission of the message in the terminal and the switch is ensured.
Optionally, the forwarding module is specifically configured to:
acquiring a source port number of an MMS message, searching a first register table item according to the source port number of the MMS message, acquiring a first ID value, and adding the first ID value and the source port number to the tail part of the message;
the value range of the first ID value is 0-1023.
In implementation, in order to obtain the first ID value of the MMS message, the source port number of the MMS message needs to be obtained, then the content of the first register entry is queried according to the obtained source port number, and the first ID value representing the name of the sending port of the MMS message, which corresponds to the MMS message, is determined according to the content in the first register entry.
Since the obtained first ID value is used in the subsequent determination step, the first ID value needs to be sent simultaneously along with the MMS message, and the sent MMS message also includes the queried source port number, so that before the sample terminal sends the MMS message, the operation of adding the first ID value and the source port number to the tail of the MMS message is performed.
And for each sample terminal device, the results of the first register table entries are different, wherein the value range of the first ID value is 0-1023.
The invention provides a processing system for eliminating service looping, which comprises: acquiring a first ID value of an MMS message, adding a forwarding field in the MMS message to obtain a first MMS message, and sending the first MMS message to a switch; modifying a forwarding field in the first MMS message to obtain a second MMS message, and forwarding the second MMS message; and extracting a second ID value in the second MMS message, and judging the forwarding behavior of the second MMS message according to the matching result of the first ID value and the second ID value. By identifying the port on the terminal and identifying the ID of the port on the terminal to be accessed when the switch sends out the message, the message is prevented from entering the same port, thereby avoiding the generation of service looping.
Through the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware, and certainly, by hardware, but in many cases, the former is a better embodiment. Based on the above understanding, the technical solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of software, where the technical solution is stored in a readable storage medium, such as a floppy disk, a hard disk, or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
The sequence numbers in the above embodiments are merely for description, and do not represent the sequence of the assembly or the use of the components.
The above description is only exemplary of the present invention and should not be taken as limiting the invention, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (7)
1. Processing method for eliminating service looping, the processing method comprising:
enabling the sample terminal to obtain a first ID value of the MMS message, adding a forwarding field in the MMS message to obtain a first MMS message, and sending the first MMS message to the switch;
the switch modifies the forwarding field in the first MMS message to obtain a second MMS message, and forwards the second MMS message;
enabling the terminal receiving the second MMS message to extract a forwarding field in the second MMS message, inquiring a third register table item corresponding to the forwarding field, acquiring a target outlet configuration content corresponding to the second MMS message, extracting a second ID value in the second MMS message, and judging the forwarding behavior of the second MMS message according to the matching result of the first ID value and the second ID value and the target outlet configuration content;
the making the sample terminal obtain the first ID value of the MMS message includes: acquiring a source port number of an MMS message, searching a first register table item according to the source port number of the MMS message, acquiring a first ID value, and adding the first ID value and the source port number to the tail part of the message;
wherein the value range of the first ID value is 0-1023;
the extracting the second ID value in the second MMS message includes:
acquiring a source port number of a second MMS message, searching a first register table item according to the source port number of the second MMS message, and extracting a second ID value;
the determining the forwarding behavior of the second MMS message according to the matching result of the first ID value and the second ID value and the configuration content of the destination outlet includes: mapping all ports of all terminals by one ID value; matching the first ID value with the second ID value to obtain a matching result; if the matching result shows that the first ID value is consistent with the second ID value, the inner container in the target outlet configuration is held, and the second MMS message is forbidden to be forwarded from the port corresponding to the ID value; and if the matching result shows that the first ID value is inconsistent with the second ID value, the second MMS message is directly forwarded from the port.
2. The processing method for eliminating service looping according to claim 1, wherein the adding a forwarding field in an MMS message to obtain a first MMS message, and sending the first MMS message to a switch comprises:
and acquiring a source port number of the MMS message, searching the table entry of the second register according to the source port number of the MMS message, adding a forwarding field after the MAC source address in the MMS message based on the searched result to obtain a first MMS message, and sending the first MMS message to the switch.
3. The processing method for eliminating service looping according to claim 1, wherein the instructing switch modifies a forwarding field in the first MMS message to obtain a second MMS message, and the method comprises:
and the switch modifies the content of the forwarding field added from the sample terminal to the switch in the first MMS message to obtain a second MMS message.
4. The processing method for service looping elimination according to claim 1, wherein a forwarding field in said second MMS message corresponds to a number of destination outlets.
5. The processing method for eliminating service looping according to claim 1, wherein the determining of the forwarding behavior of the second MMS packet according to the matching result of the first ID value and the second ID value in combination with the destination egress configuration content comprises:
matching the first ID value with the second ID value to obtain a matching result;
and if the matching result shows that the first ID value is consistent with the second ID value, forbidding forwarding the second MMS message from the port corresponding to the ID value.
6. The processing method for eliminating service looping according to any one of claims 1 to 5, wherein the forwarding field is a VLAN.
7. A processing system for eliminating service looping, the processing system comprising:
the forwarding module is used for enabling the sample terminal to obtain a first ID value of the MMS message, adding a forwarding field in the MMS message to obtain a first MMS message, and sending the first MMS message to the switch;
the modification module is used for enabling the switch to modify the forwarding field in the first MMS message to obtain a second MMS message and forwarding the second MMS message;
the judging module is used for enabling the terminal receiving the second MMS message to extract a forwarding field in the second MMS message, inquiring a third register table item corresponding to the forwarding field, acquiring target outlet configuration content corresponding to the second MMS message, extracting a second ID value in the second MMS message, and judging the forwarding behavior of the second MMS message according to the matching result of the first ID value and the second ID value and the target outlet configuration content;
the forwarding module is further configured to: acquiring a source port number of an MMS message, searching a first register table item according to the source port number of the MMS message, acquiring a first ID value, and adding the first ID value and the source port number to the tail part of the message;
wherein the value range of the first ID value is 0-1023;
the determination module is further configured to: acquiring a source port number of a second MMS message, searching a first register table item according to the source port number of the second MMS message, and extracting a second ID value;
the determining the forwarding behavior of the second MMS message according to the matching result of the first ID value and the second ID value and the configuration content of the destination outlet includes: mapping all ports of all terminals by one ID value; matching the first ID value with the second ID value to obtain a matching result; if the matching result shows that the first ID value is consistent with the second ID value, the inner container in the target outlet configuration is held, and the second MMS message is forbidden to be forwarded from the port corresponding to the ID value; and if the matching result shows that the first ID value is inconsistent with the second ID value, the second MMS message is directly forwarded from the port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710682134.XA CN107483331B (en) | 2017-08-10 | 2017-08-10 | Processing method and system for eliminating service looping |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710682134.XA CN107483331B (en) | 2017-08-10 | 2017-08-10 | Processing method and system for eliminating service looping |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107483331A CN107483331A (en) | 2017-12-15 |
CN107483331B true CN107483331B (en) | 2020-09-18 |
Family
ID=60600083
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710682134.XA Active CN107483331B (en) | 2017-08-10 | 2017-08-10 | Processing method and system for eliminating service looping |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107483331B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1501645A (en) * | 2002-11-19 | 2004-06-02 | ��Ϊ��������˾ | Method for improving network bandwidth utilization factor |
US7093027B1 (en) * | 2002-07-23 | 2006-08-15 | Atrica Israel Ltd. | Fast connection protection in a virtual local area network based stack environment |
CN101163093A (en) * | 2006-10-12 | 2008-04-16 | 中兴通讯股份有限公司 | Method of implementing centralized multicast management on integrated access equipment |
CN101917298A (en) * | 2010-09-02 | 2010-12-15 | 杭州华三通信技术有限公司 | VLAN-based loop monitoring method and equipment |
CN102045218A (en) * | 2010-12-07 | 2011-05-04 | 成都市华为赛门铁克科技有限公司 | Loop detection method and firewall device |
CN103152276A (en) * | 2012-11-23 | 2013-06-12 | 华为技术有限公司 | Port configuration method and Ethernet switch |
CN104144082A (en) * | 2013-05-08 | 2014-11-12 | 杭州华三通信技术有限公司 | Method for detecting loop in two-layer network and controller |
-
2017
- 2017-08-10 CN CN201710682134.XA patent/CN107483331B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7093027B1 (en) * | 2002-07-23 | 2006-08-15 | Atrica Israel Ltd. | Fast connection protection in a virtual local area network based stack environment |
CN1501645A (en) * | 2002-11-19 | 2004-06-02 | ��Ϊ��������˾ | Method for improving network bandwidth utilization factor |
CN101163093A (en) * | 2006-10-12 | 2008-04-16 | 中兴通讯股份有限公司 | Method of implementing centralized multicast management on integrated access equipment |
CN101917298A (en) * | 2010-09-02 | 2010-12-15 | 杭州华三通信技术有限公司 | VLAN-based loop monitoring method and equipment |
CN102045218A (en) * | 2010-12-07 | 2011-05-04 | 成都市华为赛门铁克科技有限公司 | Loop detection method and firewall device |
CN103152276A (en) * | 2012-11-23 | 2013-06-12 | 华为技术有限公司 | Port configuration method and Ethernet switch |
CN104144082A (en) * | 2013-05-08 | 2014-11-12 | 杭州华三通信技术有限公司 | Method for detecting loop in two-layer network and controller |
Also Published As
Publication number | Publication date |
---|---|
CN107483331A (en) | 2017-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110830371B (en) | Message redirection method and device, electronic equipment and readable storage medium | |
CN109698788B (en) | Flow forwarding method and device and computer readable medium | |
CN101656765B (en) | Address mapping system and data transmission method of identifier/locator separation network | |
CN111901244B (en) | Network message forwarding system | |
US10461958B2 (en) | Packet transmission method and apparatus | |
CN106921578B (en) | Method and device for generating forwarding table item | |
CN108768866B (en) | Cross-card forwarding method and device for multicast message, network equipment and readable storage medium | |
US20180241608A1 (en) | Forwarding ethernet packets | |
CN107547346B (en) | Message transmission method and device | |
CN108306806B (en) | Message forwarding method and device | |
US8472420B2 (en) | Gateway device | |
US10693785B2 (en) | Method and system for forwarding data, virtual load balancer, and readable storage medium | |
CN107493222B (en) | VXLAN message forwarding method and device | |
CN109474713B (en) | Message forwarding method and device | |
CN114501593B (en) | Network slice access method, device, system and storage medium | |
CN105187311A (en) | Message forwarding method and message forwarding device | |
CN115174139B (en) | Node isolation method, switching equipment and Ethernet storage system | |
WO2018068588A1 (en) | Method and software-defined networking (sdn) controller for providing multicast service | |
CN111132170A (en) | Communication method and device of virtual firewall, virtual firewall and topological structure | |
CN106507414B (en) | Message forwarding method and device | |
CN108306825B (en) | Equivalent forwarding table item generation method and VTEP device | |
CN112583655B (en) | Data transmission method and device, electronic equipment and readable storage medium | |
CN107483331B (en) | Processing method and system for eliminating service looping | |
CN108632176B (en) | Stacking system, PE (provider edge) equipment and message forwarding method | |
CN108768845B (en) | Multi-homing host routing synchronization method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |