CN101883021A - Method for positioning MAC address in switching network - Google Patents
Method for positioning MAC address in switching network Download PDFInfo
- Publication number
- CN101883021A CN101883021A CN 201010175953 CN201010175953A CN101883021A CN 101883021 A CN101883021 A CN 101883021A CN 201010175953 CN201010175953 CN 201010175953 CN 201010175953 A CN201010175953 A CN 201010175953A CN 101883021 A CN101883021 A CN 101883021A
- Authority
- CN
- China
- Prior art keywords
- mac address
- switch
- port
- destination
- bag
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000005111 flow chemistry technique Methods 0.000 claims description 3
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention discloses a method for positioning an MAC address in a switching network, which comprises the following steps: step 1: using a gateway to send multicast discovery packets to all internal network ports; step 2: using a switch to search an MAC address table after receiving the discovery packets; step 3: if the target MAC address is found, implementing the step 5, otherwise, implementing the step 4; step 4: leading the path cost value to plus 1, then forwarding to all the ports except the ports receiving the discover packets, and implementing the step 8; step 5: if the target MAC address is in the ports receiving the discovery packets, implementing the step 8, otherwise, implementing the step 6; step 6: leading the path cost value to plus 1, and then forwarding to the target port; step 7: using the gateway to receive a response that the switch finds out the target MAC address; and step 8: quitting the treatment process, and using the lower-level switch to continue the treatment according to the process. The method is simple and easy to operate and has no influence on other applications.
Description
Technical field
The present invention relates to the method for a kind of positioning MAC (Media Access Control, medium access control) address, particularly relate to the method for positioning MAC address in a kind of switching network.
Background technology
In the practical application of a lot of network bar users, usually need the switch ports themselves at certain MAC Address or place, IP address is closed.After knowing destination address place switch ports themselves, it is very simple to close certain port, but in a complex network, often be difficult to know which platform switch is destination address be connected on, if the wrong port of having closed certain switch causes normal users to surf the Net probably.Thus, the difficult point that this function realizes is definite switch ports themselves that directly links to each other with target machine, i.e. target port.Implementation method has multiple; as all edge switch being carried out MAC/PORT (port) binding, port protection setting; perhaps be set by the user the type of each port; whether be methods such as edge port; though these methods have reduced technical difficulty; but also reduced ease for use simultaneously, and may influence other application.The present invention has well solved this difficult problem by the interlock of gateway and switch.
Summary of the invention
Technical problem to be solved by this invention provides the method for positioning MAC address in a kind of switching network, and it has strengthened ease for use, and does not influence other application.
The present invention solves above-mentioned technical problem by following technical proposals: the method for positioning MAC address in a kind of switching network is characterized in that it may further comprise the steps:
Step 1: gateway finds to comprise destination-mac address and the path cost that will seek to the discovery bag of a multicast of its all Intranet ports transmissions;
Step 2: switch is received and is found bag back search mac address table;
Step 3: judge whether to find destination-mac address? if find destination-mac address, then execution in step five; If do not find destination-mac address, then execution in step four;
Step 4: the path cost value is added 1, receive all of the port forwarding of finding bag to removing then, execution in step eight then;
Step 5: judge whether in receiving the port of finding bag? if in receiving the port of finding bag, then execution in step eight; If in receiving the port of finding bag, then execution in step six;
Step 6: the path cost value is added 1 back transmit to target port; Path cost value and destination port number in destination-mac address that gateway report is found, the discovery bag received;
Step 7: gateway is received the answer of the switch of finding out destination-mac address, selects the switch of path cost value maximum, sends the order of closing target port to this switch;
Step 8: withdraw from handling process, subordinate's switch will continue by flow processing.
Positive progressive effect of the present invention is: the present invention is for method simple possible, the efficiently and accurately of positioning MAC address in switching network.
Description of drawings
Fig. 1 is an algorithm flow chart of the present invention.
Embodiment
Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, to describe technical scheme of the present invention in detail.
As shown in Figure 1, the method for positioning MAC address may further comprise the steps in the switching network of the present invention:
Step S101: gateway finds to comprise destination-mac address and the path cost (this moment, path cost was 0) that will seek to the discovery bag of a multicast of its all Intranet ports transmissions;
Step S102: switch is received and is found bag back search mac address table;
Step S103: judge whether to find destination-mac address? if find destination-mac address, execution in step S105 then; If do not find destination-mac address, then execution in step 104;
Step S104: the path cost value is added 1, receive all of the port forwarding of finding bag, execution in step S108 then to removing then;
Step S105: judge whether in receiving the port of finding bag? if in receiving the port of finding bag, execution in step S108 then; If do not have in receiving the port of finding bag, then execution in step S106;
Step S106: the path cost value is added 1 back transmit to target port; Path cost value, destination port number in destination-mac address that gateway report is found, the discovery bag received;
Step S107: gateway is received the answer of the switch of finding out destination-mac address, selects the switch of path cost value maximum, sends the order of closing target port to this switch;
Step S108: withdraw from handling process, subordinate's switch will continue by flow processing.
Though more than described the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, under the prerequisite that does not deviate from principle of the present invention and essence, can make numerous variations or modification to these execution modes.Therefore, protection scope of the present invention is limited by appended claims.
Claims (1)
1. the method for positioning MAC address in the switching network is characterized in that it may further comprise the steps:
Step 1: gateway finds to comprise destination-mac address and the path cost that will seek to the discovery bag of a multicast of its all Intranet ports transmissions;
Step 2: switch is received and is found bag back search mac address table;
Step 3: judge whether to find destination-mac address? if find destination-mac address, then execution in step five; If do not find destination-mac address, then execution in step four;
Step 4: the path cost value is added 1, receive all of the port forwarding of finding bag to removing then, execution in step eight then;
Step 5: judge whether in receiving the port of finding bag? if in receiving the port of finding bag, then execution in step eight; If in receiving the port of finding bag, then execution in step six;
Step 6: the path cost value is added 1 back transmit to target port; Path cost value, destination port number in destination-mac address that gateway report is found, the discovery bag received;
Step 7: gateway is received the answer of the switch of finding out destination-mac address, selects the switch of path cost value maximum, sends the order of closing target port to this switch;
Step 8: withdraw from handling process, subordinate's switch will continue by flow processing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201010175953A CN101883021B (en) | 2010-05-14 | 2010-05-14 | Method for positioning MAC address in switching network |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201010175953A CN101883021B (en) | 2010-05-14 | 2010-05-14 | Method for positioning MAC address in switching network |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101883021A true CN101883021A (en) | 2010-11-10 |
| CN101883021B CN101883021B (en) | 2012-10-10 |
Family
ID=43054919
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201010175953A Expired - Fee Related CN101883021B (en) | 2010-05-14 | 2010-05-14 | Method for positioning MAC address in switching network |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101883021B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7103674B2 (en) * | 2002-03-28 | 2006-09-05 | International Business Machines Corporation | Apparatus and method of reducing dataflow distruption when detecting path maximum transmission unit (PMTU) |
| US20090016365A1 (en) * | 2007-07-13 | 2009-01-15 | Cisco Technology, Inc. | Intra-domain and inter-domain bridging over MPLS using MAC distribution via border gateway protocol |
| WO2009107113A2 (en) * | 2008-02-28 | 2009-09-03 | Alcatel Lucent | Bridge port mac address discovery mechanism in ethernet networks |
| CN101540730A (en) * | 2009-04-28 | 2009-09-23 | 华为技术有限公司 | Address searching method, switch and network system |
-
2010
- 2010-05-14 CN CN201010175953A patent/CN101883021B/en not_active Expired - Fee Related
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7103674B2 (en) * | 2002-03-28 | 2006-09-05 | International Business Machines Corporation | Apparatus and method of reducing dataflow distruption when detecting path maximum transmission unit (PMTU) |
| US20090016365A1 (en) * | 2007-07-13 | 2009-01-15 | Cisco Technology, Inc. | Intra-domain and inter-domain bridging over MPLS using MAC distribution via border gateway protocol |
| WO2009107113A2 (en) * | 2008-02-28 | 2009-09-03 | Alcatel Lucent | Bridge port mac address discovery mechanism in ethernet networks |
| CN101540730A (en) * | 2009-04-28 | 2009-09-23 | 华为技术有限公司 | Address searching method, switch and network system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101883021B (en) | 2012-10-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2544417B1 (en) | Communication system, path control apparatus, packet forwarding apparatus and path control method | |
| US10931545B2 (en) | Policy-based sampling of network flows at a network visibility node | |
| AU2012291753B2 (en) | Packet broadcast mechanism in a split architecture network | |
| CN102546298B (en) | Botnet family detection method based on active probing | |
| CN103155501B (en) | Communication system, control equipment, arrange process rule method | |
| CN103220287B (en) | Utilize the method that ACL carries out business coupling to message | |
| CN104283738A (en) | Link detecting method and device | |
| WO2015134105A1 (en) | Method and system for path discovery | |
| EP2767047A1 (en) | Distributed ipv6 neighbor discovery for large datacenter switching systems | |
| CN104579894B (en) | The IGMP Snooping implementation methods and device of the distributed virtual switch system | |
| CN104253711B (en) | The management method and equipment of the Group tables of Openflow in a kind of SDN network | |
| GB2481665A (en) | Routed Split Multilink Trunking for IPv6 | |
| CN104798350A (en) | Virtual link aggregation across multiple fabric switches | |
| EP1221789A3 (en) | Method and apparatus for enabling L3 switching by a network switch in a stacking environment | |
| CN103414801A (en) | Method and device for synchronizing medium access control addresses in stacking system | |
| KR101658299B1 (en) | Control apparatus, communication system, node control method and program | |
| Wijesinghe et al. | Botnet detection using software defined networking | |
| CN101883021B (en) | Method for positioning MAC address in switching network | |
| JP5935897B2 (en) | COMMUNICATION NODE, COMMUNICATION SYSTEM, CONTROL DEVICE, PACKET TRANSFER METHOD, AND PROGRAM | |
| CN107995040A (en) | A kind of method and apparatus for preserving and analyzing dropping packets | |
| CN103607350A (en) | Method and device for generating route | |
| CN102938737B (en) | Two layers of looped network Proxy Method and equipment | |
| EP3869753A1 (en) | Management of network addresses | |
| CN101155034A (en) | Method for preventing specific package attack on network appliance | |
| CN102938740A (en) | Method and device for controlling internet protocol security (IPSEC) load sharing through user number |
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: 20121010 Termination date: 20180514 |