CN102315964A - Loopback method for testing message and exchange device - Google Patents

Loopback method for testing message and exchange device Download PDF

Info

Publication number
CN102315964A
CN102315964A CN201110240000A CN201110240000A CN102315964A CN 102315964 A CN102315964 A CN 102315964A CN 201110240000 A CN201110240000 A CN 201110240000A CN 201110240000 A CN201110240000 A CN 201110240000A CN 102315964 A CN102315964 A CN 102315964A
Authority
CN
China
Prior art keywords
message
configuration information
mac
test packet
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201110240000A
Other languages
Chinese (zh)
Other versions
CN102315964B (en
Inventor
赵欣
杨旋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2011102400005A priority Critical patent/CN102315964B/en
Publication of CN102315964A publication Critical patent/CN102315964A/en
Application granted granted Critical
Publication of CN102315964B publication Critical patent/CN102315964B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention provides a loopback method for testing a message and an exchange device, relating to the communication technology field. An embodiment of the invention comprises the following steps: receiving and storing configuration information; receiving a message, determining whether the received message is a test message or not according to stored configuration information, when the massage is the test message, exchanging a source MAC address of the message with a target MAC address of the message, and carrying out loopback on the test message to reach an input port receiving the message after address exchange. Through comparing stored configuration information with corresponding information carried by a received message, the received message is determined as the test message, MAC addresses are exchanged, the test message is subjected to a loopback treatment, loopback of the test message on the premise of not influencing other service messages is realized, and a network fault can be accurately positioned according to the test message after loopback.

Description

A kind of loop back method of test packet and switching equipment
Technical field
The present invention relates to communication technical field, relate in particular to a kind of loop back method and switching equipment of test packet.
Background technology
At present in carrying out switching equipment professional whole net test and network failure location process; Often need send special message through test source; Use the loopback means to send back to test source to this special message through remote switching, this moment, test source can be judged the fine or not network failure location of perhaps accomplishing of network qualities according to the reception of this special message of loopback and information such as quantity forwarded and time-delay.
The loop back method of existing test packet comprises: at first, the inbound port that purpose switching equipment B is set is the outer ring function of port, and promptly use is special for encircling head on the inbound port of switching equipment B, and the message that makes this inbound port send is directly received by this inbound port; Secondly; The test packet that send in switching equipment A acceptance test source; This test packet gets into from the inbound port of switching equipment A; Inbound port for the encapsulation of this test packet on VLAN (Virtual Local Area Network, the VLAN) sign, and switching equipment A can broadcast this test packet in this VLAN of inbound port; Once more; This test packet gets into the inbound port of purpose switching equipment B from the outbound port of switching equipment A; The VLAN sign of the inbound port deletion of purpose switching equipment B on the inbound port band of switching equipment A; Because the inbound port of purpose switching equipment B is provided with the outer ring function of port, thus this test packet can send by the inbound port of purpose switching equipment B, thereby turn back to test source via the outbound port of switching equipment A to inbound port.
In the said method; Since test packet is broadcasting give out a contract for a project pattern and test packet source media interviews control (Media Access Control, MAC) address is constant all the time, so can cause MAC Address between the inbound port of switching equipment A and outbound port, constantly to drift about; Promptly this MAC Address is learnt from the inbound port of switching equipment A for a moment; Learn from the outbound port of switching equipment A again for a moment, cause the drift of address learning indefinite, thereby cause system unstable; Because the inbound port of purpose switching equipment B is set to the outer ring function of port, can causes all equal loopbacks of message, thereby influence this port regular traffic message forwarding simultaneously from the inbound port entering of this purpose switching equipment B.
Summary of the invention
The embodiment of the invention provides a kind of loop back method and switching equipment of test packet, has only realized under the prerequisite that does not influence other service message the loopback with test packet, thereby can be according to the test packet accurate in locating network failure of loopback.
Embodiments of the invention provide a kind of loop back method of test packet, comprising:
Receive and store configuration information, said configuration information comprises the source media interviews control MAC Address and the target MAC (Media Access Control) address of test packet;
Receive message; Confirm according to said stored configuration information whether said message is test packet; When said message is test packet; With the source MAC and the target MAC (Media Access Control) address exchange of said message, and the test packet that will exchange behind source MAC and the target MAC (Media Access Control) address is looped back to the inbound port that receives said message.
The embodiment of the invention provides a kind of switching equipment, comprising:
Receiver is used to receive configuration information and message, and said configuration information comprises the source media interviews control MAC Address and the target MAC (Media Access Control) address of test packet;
Memory module is used to store the said configuration information that said receiver receives;
Determination module is used for confirming according to said memory module stored configuration information whether said message is test packet;
The loopback module; Be used for when said determination module confirms that said message is test packet; With the source MAC and the target MAC (Media Access Control) address exchange of said test packet, and the test packet that will exchange behind source MAC and the target MAC (Media Access Control) address is looped back to the inbound port that receives said message.
Technical scheme by the embodiment of the invention described above provides can be found out; Through the corresponding informance that carries in stored configuration information in the register and the message that receives is compared; Confirm that the message that receives is a loopback behind test packet and then exchange source MAC and the target MAC (Media Access Control) address; Only realized under the prerequisite that does not influence other service message loopback with test packet, thus can be according to the test packet accurate in locating network failure of loopback.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention; The accompanying drawing of required use is done to introduce simply in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
The flow chart of the loop back method of a kind of test packet that Fig. 1 provides for the embodiment of the invention;
The flow chart of the loop back method of another test packet that Fig. 2 provides for the embodiment of the invention;
The structural representation of the switching equipment that Fig. 3 provides for the embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention provides a kind of loop back method of test packet, and is as shown in Figure 1, comprising:
11, receive also store configuration information, said configuration information comprises the source MAC and the target MAC (Media Access Control) address of test packet.
Above-mentioned configuration information can also include the VLAN sign of port numbers (that is, receiving the port numbers of the port of said test packet) and/or transmission test packet etc.This configuration information is confirmed according to predetermined test path; For example: predetermined test path is switching equipment A-switching equipment B-switching equipment C, and then configuration information can comprise the MAC Address of switching equipment A, the MAC Address of switching equipment C, the inbound port number (being the port numbers that switching equipment C is used for the port of acceptance test message) of switching equipment C and the VLAN sign VLAN1 that transmits test packet.
Particularly; It is test packet or service message that the VLAN sign of transmission test packet is used to indicate the message that receives; For example; If VLAN1 is set is used for test transmission message (being that the VLAN that configuration information is provided with is VLAN1), even source MAC and the target MAC (Media Access Control) address with the message that receives is identical respectively with target MAC (Media Access Control) address for the source MAC so in the configuration information, but the VLAN that the message that receives carries is designated VLAN2; Explain that then this message that receives is a service message, issues or broadcasts this service message according to normal forwarding process; Source MAC and the target MAC (Media Access Control) address with the message that receives is identical respectively with target MAC (Media Access Control) address to have only the source MAC of working as in the configuration information; And when the VLAN that the message that receives carries is designated VLAN1; Explain that this message that receives is a test packet, carry out loopback by the method that the application's embodiment describes.
Further; As optional, the configuration information of above-mentioned reception generally is stored in the register, so in order to save the list item in the register; When needs send the test packet of a plurality of different source MACs; Above-mentioned configuration information also comprises source MAC mask, and said source MAC mask was used for before the source MAC of source MAC that the message that receives carries and configuration information compares, and the source MAC that carries with the said message of receiving carries out AND operation.For example; When needs send the test packet of source MAC from 00-00-00-00-11-00 to 00-00-00-00-11-FF; It is FF-FF-FF-FF-FF-00 that source MAC mask is set in the configuration information; So the 00-00-00-00-11-00 that is that AND operation obtains is carried out in source MAC mask (FF-FF-FF-FF-FF-00) in the source MAC (from 00-00-00-00-11-00 to 00-00-00-00-11-FF) that carries in the test packet and the configuration information; So the time configuration information in the register only need be set source MAC be that 00-00-00-00-11-00 and source MAC mask are that FF-FF-FF-FF-FF-00 can carry out loopback to a plurality of test packets with different MAC Addresss; Need not to set up a plurality of register list items, saved the memory space of purpose switching equipment.In like manner; When needs send the test packet of a plurality of various objectives MAC Addresss; Above-mentioned configuration information can also comprise purpose MAC mask; Said purpose MAC mask was used for before the target MAC (Media Access Control) address of target MAC (Media Access Control) address that the said message that receives carries and configuration information compares, and the target MAC (Media Access Control) address that carries with the said message that receives carries out AND operation; When needs send the test packet of a plurality of different VLAN signs; Above-mentioned configuration information can also comprise the VLAN mask; Said VLAN mask was used for before the VLAN sign of the VLAN sign of the said message correspondence that receives and configuration information compares, and the VLAN that carries with the said message that receives carries out AND operation.
If stored configuration information comprises the inbound port number of source MAC, target MAC (Media Access Control) address, source MAC mask, purpose MAC mask, switching equipment that source MAC is corresponding and the VLAN sign that transmits test packet in the register, then the bit in the register distributes as follows:
0 bit Be used to represent that the list item of this register identification is effective
The 1-48 bit The source MAC that is used for store configuration information
The 49-96 bit The source MAC mask that is used for store configuration information
The 97-144 bit The target MAC (Media Access Control) address that is used for store configuration information
The 145-192 bit The purpose MAC mask that is used for store configuration information
The 193-204 bit The VLAN sign that is used for the transmission test packet of store configuration information
The 205-216 bit As optional, be used for store configuration information VLAN mask
The 217-224 bit Be used to store the inbound port number of the corresponding switching equipment of source MAC
The 225-255 bit Keep the position
0 bit in the above-mentioned register is used for representing the list item that whether will use this register to be provided with; For example if with this bit set (supposing that this bit is 1 expression set); Then be illustrated in when receiving message need the corresponding informance that stored configuration information and message in this register carry compared after; Confirm that the message that receives is test packet or service message, then handles according to the subsequent treatment mode of test packet or service message; If this bit does not have set, then directly the message that receives is transmitted or broadcasted.
12, receive message; Confirm according to said stored configuration information whether said message is test packet; When said message is test packet; With the source MAC and the target MAC (Media Access Control) address exchange of said message, and the test packet that will exchange behind source MAC and the target MAC (Media Access Control) address is looped back to the inbound port that receives said message.
Wherein, Confirm according to said stored configuration information whether said message is that test packet can comprise: with the source MAC in the said message and target MAC (Media Access Control) address respectively with stored configuration information in source MAC and target MAC (Media Access Control) address compare; If the source MAC in the said message is all identical with target MAC (Media Access Control) address, confirm that then said message is a test packet.
Particularly; The exchange of the source MAC of message and target MAC (Media Access Control) address is meant in the embodiment of the invention; The source MAC that message is carried is as target MAC (Media Access Control) address; The target MAC (Media Access Control) address that message is carried is as source MAC, for example: if the source MAC that message carries is 00-00-00-00-11-00, target MAC (Media Access Control) address is 00-00-00-00-11-FF; The source MAC that message after then source MAC and target MAC (Media Access Control) address exchange carries is 00-00-00-00-11-FF, and target MAC (Media Access Control) address is 00-00-00-00-11-00.
Further; If said configuration information also includes port numbers; Then the source MAC in confirming said message and target MAC (Media Access Control) address are respectively with after source MAC of storing and target MAC (Media Access Control) address are consistent; If the inbound port that receives in port numbers and the said configuration information of inbound port of said message is number consistent; Confirm that then said message is a test packet, with source MAC in the said test packet and target MAC (Media Access Control) address exchange, and the test packet that will exchange behind source MAC and the target MAC (Media Access Control) address is looped back to the inbound port that receives said test packet.
In the said method, if corresponding configuration information is inconsistent in stored configuration information and the said message, then definite said message is a service message, and said message is issued or broadcasts.For example; The source MAC of storage is inconsistent with the source MAC in the message that receives; And/or the target MAC (Media Access Control) address of storage is inconsistent with the target MAC (Media Access Control) address in the message that receives; And/or the inbound port of number corresponding with the message that the receives source switching equipment of the inbound port of the corresponding switching equipment of the source MAC of the test packet of storage is number inconsistent; And/or the VLAN that carries of the VLAN of storage and the message that receives is inconsistent etc., explains that all the message that receives is a service message, then the message that receives is issued or broadcasts.
In conjunction with said method, be the loop back method of example explanation test packet with source switching equipment A and purpose switching equipment C, as shown in Figure 2, comprising:
21, purpose switching equipment C receives configuration information, and said configuration information is stored in the register of purpose switching equipment C.
Above-mentioned configuration information can have multiple combination; For example: can be source MAC+target MAC (Media Access Control) address; Also can identify for the VLAN of the inbound port of the VLAN sign of the inbound port of the VLAN sign of the inbound port of the VLAN sign of the inbound port of source MAC+source MAC mask+target MAC (Media Access Control) address+purpose MAC mask, source MAC+target MAC (Media Access Control) address+switching equipment C number, source MAC+target MAC (Media Access Control) address+transmission test packet, source MAC+target MAC (Media Access Control) address+switching equipment C number+transmit test packet, source MAC+source MAC mask+target MAC (Media Access Control) address+purpose MAC mask+switching equipment C number, source MAC+source MAC mask+target MAC (Media Access Control) address+purpose MAC mask+transmissions test packet or source MAC+source MAC mask+target MAC (Media Access Control) address+purpose MAC mask+switching equipment C number+transmit test packet etc., be that the configuration information of test packet all can as long as can confirm this message.
22, purpose switching equipment C receives message, and relatively in its register in stored configuration information and the message that receives corresponding configuration information whether identical, as if identical, then carry out 23; If different, then carry out 24.
Particularly, if contain active MAC mask in the configuration information, after the source MAC that the said message that then will receive carries and this source MAC mask carry out AND operation; Again with configuration information in source MAC compare; If identical, confirm that then the message that receives is a test packet, and carry out 23; If different, then carry out 24.In like manner, when containing purpose MAC mask and/or VLAN mask in the configuration information, similar when containing active MAC mask in operating procedure and the configuration information.
23,, and will exchange the inbound port that test packet behind source MAC and the target MAC (Media Access Control) address is looped back to switching equipment C with the exchange of the source MAC in the message that receives and target MAC (Media Access Control) address.
24, the processing mode according to the regular traffic message issues the message that receives or broadcast.
The embodiment of the invention also provides a kind of switching equipment; This switching equipment is the purpose switching equipment of test packet, and the inbound port of this equipment need dispose the MAC Address function of exchange, is used for the source MAC and the target MAC (Media Access Control) address of message are exchanged; As shown in Figure 3, comprising:
Receiver 31 is used to receive configuration information and message, and said configuration information comprises the source MAC and the target MAC (Media Access Control) address of test packet.
Above-mentioned configuration information can also comprise the inbound port number of the switching equipment that the source MAC of said test packet is corresponding and/or transmit the VLAN sign etc. of test packet.Particularly, it is test packet or service message that the VLAN sign that transmits test packet is used to indicate the message that receives.
Memory module 32 is used for the configuration information that receiver 31 receives is stored.
Further; As optional, so the memory module 32 general registers that adopt are in order to save the list item in the register; When needs send the test packet of a plurality of different source MACs; Above-mentioned configuration information also comprises source MAC mask, and said source MAC mask was used for before the source MAC of source MAC that the said message that receives carries and configuration information compares, and the source MAC that carries with the said message of receiving carries out AND operation.In like manner; When needs send the test packet of a plurality of various objectives MAC Addresss; Above-mentioned configuration information can also comprise purpose MAC mask; Said purpose MAC mask was used for before the target MAC (Media Access Control) address of target MAC (Media Access Control) address that the said message that receives carries and configuration information compares, and the target MAC (Media Access Control) address that carries with the said message that receives carries out AND operation; When needs send the test packet of a plurality of different VLAN signs; Above-mentioned configuration information can also comprise the VLAN mask; Said VLAN mask was used for before the VLAN sign of the VLAN sign of the said message correspondence that receives and configuration information compares, and the VLAN that carries with the said message that receives carries out AND operation.
When this switching equipment is switching equipment C; Above-mentioned configuration information can have multiple combination; For example: can be source MAC+target MAC (Media Access Control) address; Also can identify for the VLAN of the inbound port of the VLAN sign of the inbound port of the VLAN sign of the inbound port of the VLAN sign of the inbound port of source MAC+source MAC mask+target MAC (Media Access Control) address+purpose MAC mask, source MAC+target MAC (Media Access Control) address+switching equipment C number, source MAC+target MAC (Media Access Control) address+transmission test packet, source MAC+target MAC (Media Access Control) address+switching equipment C number+transmit test packet, source MAC+source MAC mask+target MAC (Media Access Control) address+purpose MAC mask+switching equipment C number, source MAC+source MAC mask+target MAC (Media Access Control) address+purpose MAC mask+transmissions test packet or source MAC+source MAC mask+target MAC (Media Access Control) address+purpose MAC mask+switching equipment C number+transmit test packet etc., be that the configuration information of test packet all can as long as can confirm this message.
Determination module 33; Be used for confirming according to said memory module stored configuration information whether said message is test packet; Particularly; Said determination module 33 be used for the source MAC of said message and target MAC (Media Access Control) address respectively with stored configuration information in source MAC and target MAC (Media Access Control) address compare, if the source MAC in the said message is all identical with target MAC (Media Access Control) address, then definite said message is a test packet; If in the source MAC in the said message and the target MAC (Media Access Control) address at least one different, then definite said message is a service message.
Further; If stored configuration information also includes port numbers; Then the source MAC in confirming said message and target MAC (Media Access Control) address respectively with said register in the source MAC stored and target MAC (Media Access Control) address consistent after; If the inbound port that receives in port numbers and the said configuration information of inbound port of said message is number consistent, then definite said message is a test packet.
As optional; If contain active MAC mask in the stored configuration information, after the source MAC that the said message that then will receive carries and this source MAC mask carry out AND operation, again with configuration information in source MAC compare; If identical, confirm that said message is a test packet; If different, confirm that then said message is a service message.In like manner, when containing purpose MAC mask and/or VLAN mask in the configuration information, identical when containing active MAC mask in operating procedure and the configuration information.
Loopback module 34; Be used for when determination module 33 confirms that said message is test packet; With the source MAC and the target MAC (Media Access Control) address exchange of said test packet, and the test packet that will exchange behind source MAC and the target MAC (Media Access Control) address is looped back to the inbound port that receives said message.
Forwarding module 35 is used for when said determination module confirms that said message that said receiver receives is service message, issuing or broadcast said service message.
The concrete implementation of the processing capacity of each module that comprises in the above-mentioned switching equipment is described in method embodiment before, no longer is repeated in this description at this.
It should be noted that among the above-mentioned switching equipment embodiment that each included module is just divided according to function logic, but is not limited to above-mentioned division, as long as can realize function corresponding; In addition, the concrete title of each functional module also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition; One of ordinary skill in the art will appreciate that all or part of step that realizes among above-mentioned each method embodiment is to instruct relevant hardware to accomplish through program; Corresponding program can be stored in a kind of computer-readable recording medium; The above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
The embodiment of the invention sends to the configuration information of predetermined test packet test path the purpose switching equipment of test packet; This purpose switching equipment is stored in said configuration information in the register; And when receiving message, the corresponding informance that carries in stored configuration information in the register and the message that receives is compared, thereby confirm that the message that receives is test packet or service message; If service message; Then normally transmit or broadcast, if test packet then exchanges MAC Address and loopback; Only realized under the prerequisite that does not influence other service message loopback to test packet, thus can be according to the test packet accurate in locating network failure of loopback.Solve the whole net test of existing business data and collected the difficult problem in location, conveniently be used for collection network quality information fast and accurately, and then realize failure location, avoided the test data error.
The above; Be merely the preferable embodiment of the present invention; But protection scope of the present invention is not limited thereto; Any technical staff who is familiar with the present technique field is in the technical scope that the embodiment of the invention discloses, and the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (12)

1. the loop back method of a test packet is characterized in that, comprising:
Receive and store configuration information, said configuration information comprises the source media interviews control MAC Address and the target MAC (Media Access Control) address of test packet;
Receive message; Confirm according to said stored configuration information whether said message is test packet; When said message is test packet; With the source MAC and the target MAC (Media Access Control) address exchange of said message, and the test packet that will exchange behind source MAC and the target MAC (Media Access Control) address is looped back to the inbound port that receives said message.
2. method according to claim 1 is characterized in that, saidly confirms that according to said stored configuration information whether said message is test packet, comprising:
With the source MAC in the said message and target MAC (Media Access Control) address respectively with said stored configuration information in source MAC and target MAC (Media Access Control) address relatively; If the source MAC in the said message is all identical with target MAC (Media Access Control) address, confirm that then said message is a test packet.
3. method according to claim 2 is characterized in that said configuration information also includes port numbers, then saidly confirms that according to said stored configuration information whether said message is test packet, also comprises:
If the inbound port that receives in port numbers and the said configuration information of inbound port of said message is number identical, then definite said message is a test packet.
4. according to claim 2 or 3 described methods; It is characterized in that; Said configuration information also comprises the virtual LAN VLAN sign that transmits test packet; It is test packet or service message that the VLAN of said transmission test packet sign is used to indicate the said message that receives, and then saidly confirms that according to said stored configuration information whether said message is test packet, also comprises:
If the corresponding VLAN sign of the said message that receives is identical with VLAN sign in the said configuration information, then definite said message is a test packet.
5. method according to claim 4; It is characterized in that; When needs send the test packet of a plurality of different source MACs; Said configuration information also comprises source MAC mask, and said source MAC mask was used for before the source MAC of source MAC that the said message that receives carries and configuration information compares, and the source MAC that carries with the said message of receiving carries out AND operation; And/or; When needs send the test packet of a plurality of various objectives MAC Addresss; Said configuration information also comprises purpose MAC mask; Said purpose MAC mask was used for before the target MAC (Media Access Control) address of target MAC (Media Access Control) address that the said message that receives carries and configuration information compares, and the target MAC (Media Access Control) address that carries with the said message that receives carries out AND operation; And/or; When needs send the test packet of a plurality of different virtual LAN VLAN; Said configuration information also comprises the VLAN mask; Said VLAN mask be used for the VLAN sign of the corresponding VLAN sign of the said message that receives and configuration information relatively before, carry out AND operation with the VLAN sign that the said message that receives carries.
6. according to each described method of claim 1-4, it is characterized in that, also comprise:
If configuration information corresponding in said stored configuration information and the said message is inconsistent, then definite said message is a service message, and the said message that will receive issues or broadcasts.
7. a switching equipment is characterized in that, comprising:
Receiver is used to receive configuration information and message, and said configuration information comprises the source media interviews control MAC Address and the target MAC (Media Access Control) address of test packet;
Memory module is used to store the said configuration information that said receiver receives;
Determination module is used for confirming according to said memory module stored configuration information whether said message is test packet;
The loopback module; Be used for when said determination module confirms that said message is test packet; With the source MAC and the target MAC (Media Access Control) address exchange of said test packet, and the test packet that will exchange behind source MAC and the target MAC (Media Access Control) address is looped back to the inbound port that receives said message.
8. switching equipment according to claim 7; It is characterized in that; Said determination module; Specifically be used for the source MAC of said message and target MAC (Media Access Control) address respectively with said stored configuration information in source MAC and target MAC (Media Access Control) address relatively, if the source MAC in the said message is all identical with target MAC (Media Access Control) address, then definite said message is a test packet.
9. switching equipment according to claim 8 is characterized in that the configuration information that said receiver receives also includes port numbers;
Said determination module also is used for if the inbound port of the port numbers that receives said message inbound port and said configuration information is number identical, and then definite said message is a test packet.
10. according to Claim 8 or 9 described switching equipment; It is characterized in that; The configuration information that said receiver receives also comprises the virtual LAN VLAN sign that transmits test packet, and it is test packet or service message that said VLAN sign is used to indicate said message;
Said determination module also is used for confirming that then said message is a test packet if the VLAN sign of the said message correspondence that receives is identical with the VLAN sign of said configuration information.
11. switching equipment according to claim 10; It is characterized in that; When needs send the test packet of a plurality of different source MACs; The configuration information that said receiver receives also comprises source MAC mask, and said source MAC mask was used for before the source MAC of source MAC that the said message that receives carries and configuration information compares, and the source MAC that carries with the said message of receiving carries out AND operation; And/or; When needs send the test packet of a plurality of various objectives MAC Addresss; The configuration information that said receiver receives also comprises purpose MAC mask; Said purpose MAC mask was used for before the target MAC (Media Access Control) address of target MAC (Media Access Control) address that the said message that receives carries and configuration information compares, and the target MAC (Media Access Control) address that carries with the said message that receives carries out AND operation; And/or; When needs send the test packet of a plurality of different virtual LAN VLAN; The configuration information that said receiver receives also comprises the VLAN mask; Said VLAN mask be used for the VLAN sign of the corresponding VLAN sign of the said message that receives and configuration information relatively before, carry out AND operation with the VLAN sign that the said message that receives carries.
12. according to each described switching equipment of claim 7-10, it is characterized in that, said determination module, it is inconsistent also to be used for the configuration information corresponding with said message as if said memory module stored configuration information, confirms that then said message is a service message;
Said switching equipment also comprises forwarding module, is used for when said determination module confirms that said message that said receiver receives is service message, issuing or broadcast said service message.
CN2011102400005A 2011-08-19 2011-08-19 Loopback method for testing message and exchange device Expired - Fee Related CN102315964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102400005A CN102315964B (en) 2011-08-19 2011-08-19 Loopback method for testing message and exchange device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102400005A CN102315964B (en) 2011-08-19 2011-08-19 Loopback method for testing message and exchange device

Publications (2)

Publication Number Publication Date
CN102315964A true CN102315964A (en) 2012-01-11
CN102315964B CN102315964B (en) 2013-12-18

Family

ID=45428801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102400005A Expired - Fee Related CN102315964B (en) 2011-08-19 2011-08-19 Loopback method for testing message and exchange device

Country Status (1)

Country Link
CN (1) CN102315964B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780622A (en) * 2012-07-24 2012-11-14 中兴通讯股份有限公司 Message processing method and message processing device
CN102984035A (en) * 2013-01-04 2013-03-20 盛科网络(苏州)有限公司 Loopback test method and system of packet loss probability of network data
CN108075911A (en) * 2016-11-14 2018-05-25 ***通信集团甘肃有限公司 A kind of service test method and device
CN105527506B (en) * 2014-09-28 2018-07-06 中国航空工业集团公司西安飞机设计研究所 A kind of intelligent trouble packet check system and its sending method
CN110602001A (en) * 2019-09-03 2019-12-20 北京东土军悦科技有限公司 Far-end loopback testing device and method
CN110808924A (en) * 2019-11-12 2020-02-18 迈普通信技术股份有限公司 Chip loopback message processing method, device and storage medium
CN111064553A (en) * 2019-12-12 2020-04-24 苏州浪潮智能科技有限公司 Switch and loopback diagnosis method, device and storage medium of management network port thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1538674A (en) * 2003-04-17 2004-10-20 ƽ Device and method for testing network communication
US7002955B1 (en) * 2000-03-06 2006-02-21 Advanced Micro Devices, Inc. Selective address table aging in a network switch based on application state determined from a received data packet
CN101179451A (en) * 2007-12-13 2008-05-14 杭州华三通信技术有限公司 Transmission path connectivity detecting method, system, head end equipment and tail end equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7002955B1 (en) * 2000-03-06 2006-02-21 Advanced Micro Devices, Inc. Selective address table aging in a network switch based on application state determined from a received data packet
CN1538674A (en) * 2003-04-17 2004-10-20 ƽ Device and method for testing network communication
CN101179451A (en) * 2007-12-13 2008-05-14 杭州华三通信技术有限公司 Transmission path connectivity detecting method, system, head end equipment and tail end equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780622A (en) * 2012-07-24 2012-11-14 中兴通讯股份有限公司 Message processing method and message processing device
CN102780622B (en) * 2012-07-24 2015-01-28 中兴通讯股份有限公司 Message processing method and message processing device
CN102984035A (en) * 2013-01-04 2013-03-20 盛科网络(苏州)有限公司 Loopback test method and system of packet loss probability of network data
CN105527506B (en) * 2014-09-28 2018-07-06 中国航空工业集团公司西安飞机设计研究所 A kind of intelligent trouble packet check system and its sending method
CN108075911A (en) * 2016-11-14 2018-05-25 ***通信集团甘肃有限公司 A kind of service test method and device
CN110602001A (en) * 2019-09-03 2019-12-20 北京东土军悦科技有限公司 Far-end loopback testing device and method
CN110602001B (en) * 2019-09-03 2021-11-09 北京东土军悦科技有限公司 Far-end loopback testing device and method
CN110808924A (en) * 2019-11-12 2020-02-18 迈普通信技术股份有限公司 Chip loopback message processing method, device and storage medium
CN110808924B (en) * 2019-11-12 2021-05-18 迈普通信技术股份有限公司 Chip loopback message processing method, device and storage medium
CN111064553A (en) * 2019-12-12 2020-04-24 苏州浪潮智能科技有限公司 Switch and loopback diagnosis method, device and storage medium of management network port thereof

Also Published As

Publication number Publication date
CN102315964B (en) 2013-12-18

Similar Documents

Publication Publication Date Title
CN102315964B (en) Loopback method for testing message and exchange device
CN101094187B (en) Method, device, and operation board capable of learning address of medium access control
CN102647355B (en) LACP (Link Aggregation Control Protocol) consultation processing method, relay node and system
CN100579034C (en) Method for reporting equipment information, system and device for obtaining equipment information
CN102625986A (en) Method, device and network equipment for processing loops in two layer network
CN103841023A (en) Data forwarding method and device
CN107947994B (en) Network topology self-discovery method and device, network equipment and computer storage medium
CN101616094B (en) Method and equipment for acquiring message forwarding path
CN103607351A (en) Chip forwarding item generation method and equipment thereof
CN101729423B (en) Method and device for transmitting data between common public radio interface CPRI ports
CN109981323A (en) A kind of method and the network equipment of detection data Link-Layer Multicast path status
CN104135548A (en) Static NAT realization method and device based on FPGA
CN107465621A (en) A kind of router finds method, SDN controllers, router and network system
CN103503413A (en) Method and device for transmitting network information
JP2007288312A (en) Data collection method and data collection system using wireless lan
CN102413052A (en) Network access method, device and system
CN108055151B (en) Port management method and device of network node, network node and storage medium
CN103401787A (en) Static route issuing method and UPE (Ultimate Provider Edge)
CN103763196A (en) Method and device for processing multicast source filtering entry
CN107086960A (en) A kind of message transmitting method and device
US8594101B2 (en) Packet relay apparatus and packet relay method
CN102882760A (en) Method, module, equipment and system for message processing in virtual private local area network service network
CN108965093A (en) A kind of VLAN allocation method and device
CN107124307B (en) Management VLAN (virtual local area network) switching method and device
CN101572675B (en) Method for finding operating VRRP network equipment in directly connected network segment and device thereof

Legal Events

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

Granted publication date: 20131218

Termination date: 20180819