CN101883021B - Method for positioning MAC address in switching network - Google Patents

Method for positioning MAC address in switching network Download PDF

Info

Publication number
CN101883021B
CN101883021B CN201010175953A CN201010175953A CN101883021B CN 101883021 B CN101883021 B CN 101883021B CN 201010175953 A CN201010175953 A CN 201010175953A CN 201010175953 A CN201010175953 A CN 201010175953A CN 101883021 B CN101883021 B CN 101883021B
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.)
Expired - Fee Related
Application number
CN201010175953A
Other languages
Chinese (zh)
Other versions
CN101883021A (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.)
SHANGHAI UTT TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI UTT TECHNOLOGY 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 SHANGHAI UTT TECHNOLOGY Co Ltd filed Critical SHANGHAI UTT TECHNOLOGY Co Ltd
Priority to CN201010175953A priority Critical patent/CN101883021B/en
Publication of CN101883021A publication Critical patent/CN101883021A/en
Application granted granted Critical
Publication of CN101883021B publication Critical patent/CN101883021B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

The method of positioning MAC address in the switching network
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 be 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 that 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; MAC/PORT (port) binds as all edge switch are carried out, the port protection setting; Whether perhaps set the type of each port by the user, be methods such as edge port, though these methods have reduced technical difficulty; But also reduced ease for use simultaneously, and possibly influence other application.The present invention has well solved this difficult problem through 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 through 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 sends the discovery bag of a multicast to its all Intranet ports, finds to comprise destination-mac address and the path cost that will seek;
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 that 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 maximum switch of path cost value, 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 specify technical scheme of the present invention.
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 sends the discovery bag of a multicast to its all Intranet ports, finds to comprise destination-mac address and the path cost (this moment, path cost was 0) that will seek;
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 maximum switch of path cost value, 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 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 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 sends the discovery bag of a multicast to its all Intranet ports, finds to comprise destination-mac address and the path cost that will seek;
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 that 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 maximum switch of path cost value, sends the order of closing target port to this switch;
Step 8: withdraw from handling process, subordinate's switch will continue by flow processing.
CN201010175953A 2010-05-14 2010-05-14 Method for positioning MAC address in switching network Expired - Fee Related CN101883021B (en)

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 CN101883021A (en) 2010-11-10
CN101883021B true 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 (3)

* Cited by examiner, † Cited by third party
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)
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8531941B2 (en) * 2007-07-13 2013-09-10 Cisco Technology, Inc. Intra-domain and inter-domain bridging over MPLS using MAC distribution via border gateway protocol

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)
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
CN101883021A (en) 2010-11-10

Similar Documents

Publication Publication Date Title
EP2544417B1 (en) Communication system, path control apparatus, packet forwarding apparatus and path control method
US10243862B2 (en) Systems and methods for sampling packets in a network flow
AU2012291753B2 (en) Packet broadcast mechanism in a split architecture network
US20190116220A1 (en) Neighbor Discovery for IPV6 Switching Systems
RU2612599C1 (en) Control device, communication system, method for controlling switches and program
CN103166866A (en) Method of generating table items, method of receiving messages and relative devices and systems
CN103220287B (en) Utilize the method that ACL carries out business coupling to message
CN101123614B (en) A method and communication device for processing address parsing protocol packet
CN110061915B (en) Method and system for virtual link aggregation across multiple fabric switches
WO2015134105A1 (en) Method and system for path discovery
EP2629464A1 (en) Communication system, control device, method for setting processing rules, and program
CN104283738A (en) Link detecting method and device
EP2932670A1 (en) Packet forwarding
EP2912803A1 (en) Forwarding table optimization with flow data
GB2481665A (en) Routed Split Multilink Trunking for IPv6
CN101651609A (en) Method and device for realizing multicast load sharing
US20150003291A1 (en) Control apparatus, communication system, communication method, and program
JPWO2014132954A1 (en) COMMUNICATION SYSTEM, CONTROL DEVICE, COMMUNICATION METHOD, AND PROGRAM
WO2014057977A1 (en) Communication node, communication system, control device, packet transfer method, and program
CN101883021B (en) Method for positioning MAC address in switching network
CN105959222A (en) Message forwarding method, route nodes, and software defined network
CN103414640B (en) A kind of method of the capacity of extended wireless controller equiment mac address forwarding table
EP3944582B1 (en) Monitoring of abnormal host
CN107995040A (en) A kind of method and apparatus for preserving and analyzing dropping packets
CN103607350A (en) Method and device for generating route

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