CN101030916A - Method for binding medium access controlling address - Google Patents

Method for binding medium access controlling address Download PDF

Info

Publication number
CN101030916A
CN101030916A CN 200710089543 CN200710089543A CN101030916A CN 101030916 A CN101030916 A CN 101030916A CN 200710089543 CN200710089543 CN 200710089543 CN 200710089543 A CN200710089543 A CN 200710089543A CN 101030916 A CN101030916 A CN 101030916A
Authority
CN
China
Prior art keywords
access control
media access
list item
control address
mac 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
CN 200710089543
Other languages
Chinese (zh)
Other versions
CN100488154C (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2007100895435A priority Critical patent/CN100488154C/en
Publication of CN101030916A publication Critical patent/CN101030916A/en
Application granted granted Critical
Publication of CN100488154C publication Critical patent/CN100488154C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The method comprises: 102) sending down the binding order at the operation maintenance terminal of switching equipment, which is used to indicate the switch equipment to make MAC address binding according to the appointed binding object at predetermined time quantum; 104) when the starting time of the predetermined time quantum comes, the switching equipment has learned the static MAC address converted from the MAC list item of MAC address satisfying the predetermined term; 106) when the ending time of predetermined time quantum comes, the switching equipment learns the new MAC address, and converts the MAC list item of MAC address into the static MAC list item; 108) when the end time of the predetermined time quantum comes, the switching equipment makes de-binding the MAC address already made with binding.

Description

The binding method of Media Access Control Address
Technical field
The present invention relates to the communications field, and especially, relate to the binding method of a kind of medium access control (MAC) address.
Background technology
Along with the high speed development of internet, ethernet network is becoming necessary tool in people's routine work and the life gradually.
Ethernet switching device is the ethernet network imperative equipment, and its quantity in network is also growing with each passing day.Along with increasing of ethernet switching device quantity, the ease for operation of network, ease for maintenance and security and stability become the focus that people pay close attention to.If ethernet network is more prone to operation and maintenance for the network manager, can reduce the operation cost of ethernet network greatly, simultaneously, if there is more safety prevention measure to reduce the out of order possibility of ethernet network, the operation that also can further reduce ethernet network becomes.
At present, two of ethernet switching device layers of exchange are realized by mac address forwarding table.Switch is after receiving a Frame, the source MAC of elder generation's learning data frame and Frame the Virtual Local Area Network that should belong to, and Frame enters the physical port PORT of switching equipment, therefore, will form a list item, that is, MAC+VLAN-〉PORT, source MAC by learning each equipment under each port can form a lot of such list items later, Here it is mac address table.Afterwards, in data frames exchange, just can utilize the target MAC (Media Access Control) address of Frame to inquire about list item, thereby Frame is forwarded to corresponding ports apace.
Two layers of forwarding principle according to above-mentioned ethernet switching device, if behind the address of the MAC that learns device A on some port xs of switching equipment, the other equipment B A equipment that disguises oneself as under the another one port Y of this switching equipment is arranged, and send Frame with source MAC be A equipment, will make the MAC address entries mistake on the ethernet switching device, the data that cause issuing A are forwarded on the port Y mistakenly, cause A equipment loss of data, divulge a secret or serious consequence such as network failure.
Ways of addressing this issue is with MAC Address and port binding at present, that is to say, the MAC Address of A equipment is bundled on the X port of switching equipment, and the MAC Address of A equipment has been avoided the mistake of the MAC address entries of switching equipment with regard to not learnt at other ports again like this.
But, at present employed on switching equipment the method for binding MAC address bother very much, need manual adding one by one one by one to realize binding, the network manager is difficult to carry out Operation and Maintenance, has increased the operation cost of network greatly.
The scheme that can carry out the automatic batch binding MAC address of simple possible is not proposed so far, as yet.
Summary of the invention
Consider the problems referred to above and make the present invention, for this reason,, provide a kind of binding method of MAC Address according to embodiments of the invention.
MAC Address binding method according to the embodiment of the invention comprises: step S102, issue the binding instruction at the operating maintenance terminal of switching equipment, be used to indicate switching equipment at the fixed time section according to specifying bound object to carry out the MAC Address binding; Step S104, when the initial moment of section arrived at the fixed time, the MAC address entries of the MAC Address that satisfies predetermined condition that switching equipment will have been learnt changed into static MAC address entries; Step S106, before arriving the finish time of section at the fixed time, switching equipment is learnt new MAC Address, is satisfying under the situation of predetermined condition, and switching equipment converts the MAC address entries of new MAC Address to static MAC address entries; And step S108, when arrived period the finish time at the fixed time, the MAC Address that switching equipment will have been bound was separated binding.
Wherein, in step S102, before issuing the binding instruction, switching equipment normally moves, the study MAC Address.And in step S104, before the initial moment arrived, switching equipment normally moved, the study MAC Address.
Here, predetermined condition is that object in the MAC address entries of MAC Address equates with appointment bound object in the binding instruction.
In step S104, can also comprise following processing: when the initial moment arrives, the MAC address entries of the MAC Address of having learnt in the switching equipment traversal mac address table; Object in the MAC address entries of MAC Address and the appointment bound object of binding in the instruction are compared; Under object in the MAC address entries of MAC Address and the situation of specifying bound object to equate, carry out MAC Address and bind by MAC address entries being converted to static MAC address entries, and static MAC address entries is write hardware forwarding table; Under object in the MAC address entries of the MAC Address situation inequality, keep MAC address entries constant with specifying bound object.
Like this, in step S104, switching equipment will specify the MAC address entries of all MAC Address that bound object learnt to change into static MAC address entries.
In step S106, further comprise following processing: the appointment bound object during object in the MAC address entries of new MAC Address and binding are instructed compares; Under object in the MAC address entries of new MAC Address and the situation of specifying bound object to equate, convert static MAC address entries to by MAC address entries MAC Address is bound, and static MAC address entries is write hardware mac address transmit new MAC Address; Under object in the MAC address entries of the new MAC Address situation inequality, keep the MAC address entries of MAC Address constant, and MAC address entries is write hardware mac address transmit with specifying bound object.
Like this, in step S106, in the section, switching equipment will specify the MAC address entries of all MAC Address that bound object learns to change into static MAC address entries at the fixed time.
In addition, in the method, in step S108, can also comprise following processing: switching equipment traversal mac address table; For the MAC Address of carrying out the MAC Address binding in the mac address table,, its static MAC address entries separates binding by being converted to dynamic MAC address entries.
Above-mentioned object or specify bound object can be following any one: port, VLAN, port and VLAN, whole ethernet switching device.
By technique scheme of the present invention, can easily realize the binding of the automatic batch of MAC Address and port, make things convenient for keeper's Operation and Maintenance, thereby reduced the operation cost of network.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to the binding method of the MAC Address of the embodiment of the invention;
Fig. 2 is the flow chart according to the detailed process of the step S102 of the binding method of the MAC Address of the embodiment of the invention;
Fig. 3 is the flow chart of processing that judges whether to change MAC address entries according to the binding method of the MAC Address of the embodiment of the invention;
Fig. 4 is the flow chart according to the detailed process of the step S106 of the binding method of the MAC Address of the embodiment of the invention; And
Fig. 5 is the flow chart according to the detailed process of the step S108 of the binding method of the MAC Address of the embodiment of the invention.
Embodiment
The binding method of a kind of medium access control (MAC) address is provided in the present embodiment; A kind of automatic batch binding method of MAC Address particularly, is provided.
Preferably, in the present embodiment, object or specify bound object can be following any one: port, VLAN, port and VLAN, whole ethernet switching device
As shown in Figure 1, the binding method according to the MAC Address of present embodiment comprises:
Step S102 issues the binding instruction at the operating maintenance terminal of switching equipment, be used to indicate switching equipment at the fixed time section according to specifying bound object (for example, can be port or VLAN) to carry out the MAC Address binding; Step S104, when the initial moment of section arrived at the fixed time, the MAC address entries of the MAC Address that satisfies predetermined condition that switching equipment will have been learnt changed into static MAC address entries; Step S106, before arriving the finish time of section at the fixed time, switching equipment is learnt new MAC Address, is satisfying under the situation of predetermined condition, and switching equipment converts the MAC address entries of new MAC Address to static MAC address entries; And step S108, when arrived period the finish time at the fixed time, the MAC Address that switching equipment will have been bound was separated binding.
In the method, predetermined condition is that object in the MAC address entries of MAC Address equates with appointment bound object in the binding instruction.
The detailed process of each step is described respectively below with reference to accompanying drawings.
In above-mentioned steps S102, before issuing the binding instruction, switching equipment normally moves, the study MAC Address.
That is, as shown in Figure 2, specifically comprise following processing among the step S102: switch is normally learnt MAC Address; At a time, switch has been received certain time period from control desk and has been carried out the order (that is binding instruction) of MAC Address binding according to appointed object.
Afterwards, in step S104, before the initial moment arrived, switching equipment normally moved, the study MAC Address.
And, in step S104, after the initial moment arrives, can also comprise following processing: when the initial moment arrives, the MAC address entries of the MAC Address of having learnt in the switching equipment traversal mac address table; Object in the MAC address entries of MAC Address and the appointment bound object of binding in the instruction are compared; Under object in the MAC address entries of MAC Address and the situation of specifying bound object to equate, carry out MAC Address and bind by MAC address entries being converted to static MAC address entries, and static MAC address entries is write hardware forwarding table; Under object in the MAC address entries of the MAC Address situation inequality, keep MAC address entries constant with specifying bound object.And in step S104, switching equipment will specify the MAC address entries of all MAC Address that bound object learnt to change into static MAC address entries.
As shown in Figure 3, above-mentioned processing can be summarized as follows: after the processing shown in Fig. 2, the dynamic MAC address table that the switch traversal has been learnt, whether port numbers that the port numbers in the MAC Address list item or VLAN and order are issued or VLAN (that is, above-mentioned appointment bound object) equate;
Particularly, if result relatively equate, then need this MAC Address is bound, convert the MAC address entries of this MAC Address to static MAC address entries, and write hardware forwarding table; If result relatively is unequal, then expression does not need this address is bound, and keeps this address constant.
Then, in step S106, in the section, further comprise following processing at the fixed time: the appointment bound object during object in the MAC address entries of new MAC Address and binding are instructed compares; Under object in the MAC address entries of new MAC Address and the situation of specifying bound object to equate, convert static MAC address entries to by MAC address entries MAC Address is bound, and static MAC address entries is write hardware mac address transmit new MAC Address; Under object in the MAC address entries of the new MAC Address situation inequality, keep the MAC address entries of MAC Address constant, and MAC address entries is write hardware mac address transmit with specifying bound object.
Like this, by above-mentioned processing, in step S106, in the section, switching equipment will specify the MAC address entries of all MAC Address that bound object learns to change into static MAC address entries at the fixed time.
As shown in Figure 4, the processing among the step S106 can be expressed as follows:
(1) at first judges the port at this MAC Address place or the order (that is, above-mentioned comparison procedure) whether VLAN issued address binding,, then handle and proceed to (2) if issued the order of address binding; If no, then processing proceeds to (4);
(2) judge current time in the time period whether order issues in step S102, if then (3), otherwise (4);
(3) need bind, the MAC address entries of this MAC Address be changed into static MAC address entries, and write in the hardware forwarding table;
(4) do not need to bind, the MAC address entries of this MAC Address is learnt into dynamic MAC address entries, and write in the hardware forwarding table.
In addition, as shown in Figure 5, in above-mentioned step S108, comprise following processing particularly: switching equipment traversal mac address table; For the MAC Address of carrying out the MAC Address binding in the mac address table,, its static MAC address entries separates binding by being converted to dynamic MAC address entries.
The processing of just carrying out when implementing the method according to the MAC Address of the embodiment of the invention and the binding of port automatic batch on Ethernet switch is described above, the present invention is at other equipment of supporting two layers of exchange of Ethernet, for example the implementation method on the equipment such as router, Broadband Remote Access Server, DSL is identical, and these methods all should be included within the scope of the present invention, and a pair of its that differ here is described.
In sum, compare with correlation technique, the present invention only need specify port numbers or the VLAN that needs binding when carrying out the binding of MAC Address, just can realize binding afterwards automatically, and correlation technique needs the MAC Address of certain equipment is carried out MAC when binding on switching equipment, need know concrete numerical value, VLAN and the port numbers of the MAC Address of this equipment in advance, comparatively complicated; And, the present invention only needs an order just can realize the batch binding of all MAC Address of certain port or VLAN, and correlation technique carry out MAC Address when binding can only one order realize the binding of a MAC Address, when the MAC Address of needs binding is many, need the very many orders of configuration.Therefore,, can easily realize the binding of the automatic batch of MAC Address and port, make things convenient for keeper's Operation and Maintenance, thereby reduced the operation cost of network by means of technical scheme of the present invention.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the binding method of a Media Access Control Address is characterized in that, comprising:
Step S102 issues the binding instruction at the operating maintenance terminal of switching equipment, be used to indicate described switching equipment at the fixed time section according to specifying bound object to carry out the Media Access Control Address binding;
Step S104, when the initial moment of described predetermined amount of time arrived, the medium access control list item of the Media Access Control Address that satisfies predetermined condition that described switching equipment will have been learnt changed into Still Media access control list item;
Step S106, before arriving the finish time of described predetermined amount of time, described switching equipment is learnt new Media Access Control Address, satisfying under the situation of described predetermined condition, described switching equipment converts the medium access control list item of described new Media Access Control Address to Still Media access control list item; And
Step S108, when arrived the finish time of described predetermined amount of time, the Media Access Control Address that described switching equipment will have been bound was separated binding.
2. the binding method of Media Access Control Address according to claim 1 is characterized in that, in described step S102, before issuing described binding instruction, described switching equipment normally moves, the study Media Access Control Address.
3. the binding method of Media Access Control Address according to claim 1 is characterized in that, in described step S104, before the described initial moment arrived, described switching equipment normally moved, the study Media Access Control Address.
4. the binding method of Media Access Control Address according to claim 1 is characterized in that, described predetermined condition is, the object in the medium access control list item of Media Access Control Address equates with appointment bound object in the described binding instruction.
5. the binding method of Media Access Control Address according to claim 4 is characterized in that, in described step S104, further comprises following processing:
When the described initial moment arrives, the medium access control list item of the Media Access Control Address of having learnt in the described switching equipment traversal Media Access Control Address table;
Appointment bound object in object in the medium access control list item of described Media Access Control Address and the described binding instruction is compared;
Under object in the medium access control list item of described Media Access Control Address and the situation that described appointment bound object equates, carry out the Media Access Control Address binding by described medium access control list item being converted to described Still Media access control list item, and described Still Media access control list item is write hardware forwarding table;
Under object in the medium access control list item of described Media Access Control Address and the described appointment bound object situation inequality, keep described medium access control list item constant.
6. the binding method of Media Access Control Address according to claim 5, it is characterized in that, in described step S104, described switching equipment changes into Still Media access control list item with the medium access control list item of all Media Access Control Address that described appointment bound object has been learnt.
7. the binding method of Media Access Control Address according to claim 4 is characterized in that, in described step S106, further comprises following processing:
Appointment bound object in object in the medium access control list item of described new Media Access Control Address and the described binding instruction is compared;
Under object in the medium access control list item of described new Media Access Control Address and the situation that described appointment bound object equates, convert described Still Media access control list item to by medium access control list item described Media Access Control Address is bound, and described Still Media access control list item is write the hardware Media Access Control Address transmit described new Media Access Control Address;
Under object in the medium access control list item of described new Media Access Control Address and the described appointment bound object situation inequality, keep the medium access control list item of described Media Access Control Address constant, and described medium access control list item is write the hardware Media Access Control Address transmit.
8. the binding method of Media Access Control Address according to claim 6, it is characterized in that, in described step S106, in described predetermined amount of time, described switching equipment changes into Still Media access control list item with the medium access control list item of all Media Access Control Address that described appointment bound object is learnt.
9. the binding method of Media Access Control Address according to claim 1 is characterized in that, in described step S108, further comprises following processing:
Described switching equipment travels through described Media Access Control Address table;
For the Media Access Control Address that carried out the Media Access Control Address binding in the described Media Access Control Address table,, its Still Media access control list item separates binding by being converted to dynamic media access control list item.
10. according to the binding method of each described Media Access Control Address in the claim 1 to 9, it is characterized in that, described object or specify bound object be following any: port, VLAN, port and VLAN, whole ethernet switching device.
CNB2007100895435A 2007-03-29 2007-03-29 Method for binding medium access controlling address Active CN100488154C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100895435A CN100488154C (en) 2007-03-29 2007-03-29 Method for binding medium access controlling address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100895435A CN100488154C (en) 2007-03-29 2007-03-29 Method for binding medium access controlling address

Publications (2)

Publication Number Publication Date
CN101030916A true CN101030916A (en) 2007-09-05
CN100488154C CN100488154C (en) 2009-05-13

Family

ID=38716008

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100895435A Active CN100488154C (en) 2007-03-29 2007-03-29 Method for binding medium access controlling address

Country Status (1)

Country Link
CN (1) CN100488154C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012174705A1 (en) * 2011-06-20 2012-12-27 中兴通讯股份有限公司 Automatic configuration method and apparatus for static media access control address table items
CN104125175A (en) * 2013-04-28 2014-10-29 上海斐讯数据通信技术有限公司 Switching equipment port MAC address binding method
CN106998560A (en) * 2016-01-25 2017-08-01 中兴通讯股份有限公司 A kind of management method, the network equipment and system for virtualizing network function
CN112104759A (en) * 2014-03-31 2020-12-18 谷歌有限责任公司 Specifying MAC addresses based on location

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012174705A1 (en) * 2011-06-20 2012-12-27 中兴通讯股份有限公司 Automatic configuration method and apparatus for static media access control address table items
CN104125175A (en) * 2013-04-28 2014-10-29 上海斐讯数据通信技术有限公司 Switching equipment port MAC address binding method
CN104125175B (en) * 2013-04-28 2018-10-12 上海斐讯数据通信技术有限公司 Switching equipment port mac address binding method
CN112104759A (en) * 2014-03-31 2020-12-18 谷歌有限责任公司 Specifying MAC addresses based on location
CN112104759B (en) * 2014-03-31 2024-01-05 谷歌有限责任公司 Specifying a MAC address based on location
CN106998560A (en) * 2016-01-25 2017-08-01 中兴通讯股份有限公司 A kind of management method, the network equipment and system for virtualizing network function

Also Published As

Publication number Publication date
CN100488154C (en) 2009-05-13

Similar Documents

Publication Publication Date Title
US7474653B2 (en) Decision cache using multi-key lookup
AU2002217593B2 (en) Apparatus and method for performing high-speed IP route lookup and managing routing/forwarding tables
CN1153416C (en) MAC address based telecommunication limiting method
CN100337450C (en) Communication method between virtual local area webs
CN1493140A (en) Method and apparatus to permit data transmission to transverse firewalls
CN101030916A (en) Method for binding medium access controlling address
CN1866910A (en) Data message transmission method and Ethernet bridge apparatus based on VLAN
CN1848814A (en) Filtering frames at an input port of a switch
CN103581022B (en) MAC address finding and transmitting method and device
CN101431472B (en) Processing method and apparatus for media access control clauses
CN105847148B (en) A kind of data frame transmission control method and system
CN101035059A (en) Method for improving the classification searching speed of the three-folded content addressable memory message
CN100454901C (en) ARP message processing method
EP1583291B1 (en) Individually programmable most significant bits of VLAN ID
CN101035052A (en) Port separation method based on the virtual LAN
CN1852263A (en) Message access controlling method and a network apparatus
CN1960321A (en) Control method for implementing security of multicast
CN1845531A (en) Data forwarding controlling method and apparatus
CN1863152A (en) Method for transmitting various messages between internal network users
CN1614942A (en) Method for soluting IP address conflicts in network communication
CN1601996A (en) Method for access of IP public net of virtual exchanger system
CN101364987A (en) Frame processing method, apparatus and system
CN1863193A (en) Method for implementing safety tactics of network safety apparatus
CN1968207A (en) Broadcast storm control system and method
CN1411218A (en) Network addressing control method of zone message

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