[go: up one dir, main page]

CN101001263B - Method for configuring MAC address at each node in inner exchange network - Google Patents

Method for configuring MAC address at each node in inner exchange network Download PDF

Info

Publication number
CN101001263B
CN101001263B CN200610000654XA CN200610000654A CN101001263B CN 101001263 B CN101001263 B CN 101001263B CN 200610000654X A CN200610000654X A CN 200610000654XA CN 200610000654 A CN200610000654 A CN 200610000654A CN 101001263 B CN101001263 B CN 101001263B
Authority
CN
China
Prior art keywords
mac address
veneer
configuration packet
packet
configuration
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
CN200610000654XA
Other languages
Chinese (zh)
Other versions
CN101001263A (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 CN200610000654XA priority Critical patent/CN101001263B/en
Publication of CN101001263A publication Critical patent/CN101001263A/en
Application granted granted Critical
Publication of CN101001263B publication Critical patent/CN101001263B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

This invention discloses a method for configuring MAC address for each node in an internal exchange network including: 1, configuring the working mode of a single board Ethernet controller a mixed mode, 2, a primary control board sends single board MAC address configured packet to the internal exchange net port periodically, 4, the port sends the packet to the single board, 4, which judges if the received MAC address configuration packet is the legal one, if so, it sets the controller working at normal mode and enters into step 6, or enters into step 5 if not, 5, casting off the MAC address collocation packet and receiving MAC packet continuously then returning to step 4, 6, the single board updates its MAC address based on the received packets.

Description

The method of each node configuration MAC Address in the inner exchanging net
Technical field
The present invention relates to a kind of data processing method, refer in particular to the method for each node configuration MAC Address in a kind of inner exchanging net.
Background technology
In the communication field, a system equipment is made up of frame, veneer, backboard and connection cable etc. usually, communication modes in the system between each veneer is diversified, and ethernet technology with low cost, simple in structure with it, be easy to expand and the characteristics such as the transmission of IP bag and processing of being convenient to replace other communication modes just rapidly, become in the frame main flow of communication modes between veneer.
Fig. 1 is a typical internal system connection diagram that adopts Ethernet architecture, peripheral single board is connected to by backboard or cable on the port of the inner exchanging net that is positioned at master control crosspoint (master control borad), and the control range of switching network can be with each veneer in layer or the different layers machine frame.To carry out communication by Ethernet between the veneer, separate MAC Address (MAC then must be arranged, Medium Access Control, the second layer that is arranged in OSI seven layer network Protocol REference Models is a data link layer, MAC Address also is physical address, hardware address or link address).Because each veneer in the general communication system is free of attachment to public network, so the MAC Address of each veneer flexible configuration according to actual needs.Mainly contain following several method at present and realize the configuration of internal system MAC Address:
Method one: according to the environment of frame number and machine frame and the slot number of veneer in frame, determine every veneer network interface MAC Address, be solidificated on the veneer respectively.When veneer changes environment for use, must new MAC Address be cured on the veneer again.The shortcoming of this method is a complicated operation, is unfavorable for debugging and cost higher (each veneer must keep the memory of store M AC address).
Method two: walk information such as the relevant environment of bundle of lines number, frame number, slot number by backboard and introduce veneer, after each veneer obtains these information,, generate the MAC Address of oneself according to the algorithm of system's appointment.This method has overcome the shortcoming that method one exists, but increased the demand number of the socket connector pin of backboard cabling and backboard and veneer, in case when the generating algorithm of MAC Address had change simultaneously, intrasystem each veneer all needed according to new algorithm software to be done corresponding modify.
Summary of the invention
At existing problem and shortage in the method for online each the node M AC address configuration of above-mentioned existing inner exchanging, the method that the purpose of this invention is to provide each node configuration MAC Address in a kind of inner exchanging net overcomes the shortcoming such as realization complexity, consumes resources, modification inconvenience, poor expandability of prior art.
The present invention is achieved in that the method for each node configuration MAC Address in the inner exchanging net, may further comprise the steps:
(1) mode of operation with the ethernet controller of veneer is configured to the heterozygosis pattern;
(2) master control borad regularly sends to inner exchanging net port with the MAC Address configuration packet of veneer;
(3) inner exchanging net port sends to veneer with the MAC Address configuration packet that receives;
(4) veneer judges whether the described MAC Address configuration packet that receives is legal configuration packet, if then the ethernet controller of veneer is set to be operated in normal mode, and enters step (6), if not then entering step (5);
(5) abandon described MAC Address configuration packet, continue to receive the MAC Address configuration packet, return step (4);
(6) veneer upgrades the MAC Address of veneer according to the MAC Address configuration packet that receives.
Wherein, described step also comprises:
(A) master control borad generates mac address table, comprises the MAC Address of each port of switching network in the described mac address table;
(B) master control borad is each port arrangement MAC Address of inner exchanging net according to mac address table.
Wherein, comprise in the MAC Address configuration packet described in the step (2): the target MAC (Media Access Control) address of described MAC Address configuration packet, configuration packet flag information, configuration packet check information.
Wherein, step (4) is specially:
The ethernet controller of veneer reads configuration packet flag information and the configuration packet check information in the MAC Address configuration packet, judge whether described configuration packet flag information and configuration packet check information be legal, if it is legal, then the ethernet controller of veneer is set to be operated in normal mode, and enter step (6), if illegal, then enter step (5).
Wherein, described step (6) is specially:
Veneer reads the target MAC (Media Access Control) address in the described MAC Address configuration packet, and described MAC Address is configured to the MAC Address of veneer.
The method of each node configuration MAC Address in the inner exchanging net that the present invention proposes, overcome the shortcoming such as realization complexity, consumes resources, modification inconvenience, poor expandability of prior art, by master control borad the MAC Address of other peripheral single board is carried out centralized control and distribution, need on veneer, not increase extra memory, do not need to increase the backboard cabling yet, when the generating algorithm of MAC Address changed, the software that only needs to change on the master control borad gets final product, and was very flexible.This method also has very strong extensibility in addition, can add other Useful Informations as required and obtain for peripheral single board in configuration packet, as the IP address of peripheral single board, MAC Address and IP address, the routing iinformation etc. of master control borad.
Description of drawings
Fig. 1 is a typical internal system connection diagram that adopts Ethernet architecture;
Fig. 2 is the structural representation of MAC Address configuration packet;
Fig. 3 is a preferred embodiment of the present invention flow chart.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing.
The preferred embodiment of the present invention may further comprise the steps as shown in Figure 3:
1., master control borad is according to position and the corresponding switching network port mac address table that generate switching network on each port thereof of each veneer in system.The generating algorithm of MAC Address is as follows: have 6 bytes altogether, 2 bytes in front are fixed as 0x40 and 0x00, the 3rd network segment that byte is decided with system design, the 4th environment number (obtaining) that byte is a frame according to wire jumper, the 5th byte is the frame number at veneer place, the 6th byte is the slot number at veneer place, and such algorithm has guaranteed that the MAC Address of each veneer between the inner and different frame of frame is unique.For example the network segment of determining when system is 10, the frame environment number is 32, the function veneer is positioned at the 3rd layer of machine frame of frame, corresponding slot number is 8, be connected on the switching network port 6, then the MAC Address that can calculate switching network port 6 according to top algorithm is 0,x40 00 0A 20 03 08, can obtain the MAC Address of other each ports on the switching network by that analogy;
2., master control borad is according to described mac address table, is each port arrangement MAC Address of inner exchanging net;
3., the every interval of master control borad is 2 seconds, send the configuration packet that comprises mac address information to all ports that disposed static mac address, the structure of described MAC Address configuration packet as shown in Figure 2, the destination address of MAC bag also comprises configuration packet flag information and configuration packet check information in the described MAC Address configuration packet simultaneously for disposing the MAC Address of the port of static mac address;
4., be connected the online veneer of inner exchanging after finishing the single plate hardware initialization, the mode of operation of ethernet controller is formulated as the heterozygosis pattern, the FPSM[PRO of MPC8270 is set promptly]=1.Under the heterozygosis pattern, ethernet controller is not checked the destination address of mac frame, all receives;
5., the ethernet controller of veneer is checked all MAC Address configuration packet of receiving, judge whether configuration packet flag information and configuration packet check information in the MAC Address configuration packet are legal, if then enter step 6., if not then abandoning this MAC Address configuration packet, continue to receive the MAC Address configuration packet and the MAC Address configuration packet is carried out aforesaid judgement, up to receiving legal MAC Address configuration packet;
6., the mode of operation of the ethernet controller of veneer is mixed with normal mode, the FPSM[PRO of MPC8270 is set promptly]=0, this moment, the ethernet controller of veneer stopped the MAC bag of receiving is checked processing;
7., veneer is according to described legal MAC Address configuration packet, read out the target MAC (Media Access Control) address of described MAC Address configuration packet, and target MAC (Media Access Control) address be configured to the MAC Address of this veneer.
At this moment, veneer is finished the MAC Address domination, and peripheral single board is used new MAC Address and other single board communications.
As preferably, also comprise the IP address of this plate, the MAC Address and the information such as IP address, routing iinformation of master control borad in the described MAC Address configuration packet, after veneer receives the MAC Address configuration packet, can upgrade the relevant information of veneer according to described MAC Address configuration packet.

Claims (4)

1. one kind is the method for each node configuration MAC Address in the inner exchanging net, it is characterized in that, this method may further comprise the steps:
(1) master control borad comprises the MAC Address of each port of switching network according to the position and the corresponding switching network port mac address table that generates each port on the switching network thereof of each veneer in system in the described mac address table;
(2) master control borad is each port arrangement MAC Address of inner exchanging net according to mac address table;
(3) mode of operation with the ethernet controller of veneer is configured to the heterozygosis pattern;
(4) master control borad regularly sends to inner exchanging net port with the MAC Address configuration packet of veneer;
(5) inner exchanging net port sends to veneer with the MAC Address configuration packet that receives;
(6) veneer judges whether the described MAC Address configuration packet that receives is legal configuration packet, if then the ethernet controller of veneer is set to be operated in normal mode, and enters step (8), if not then entering step (7);
(7) abandon described MAC Address configuration packet, continue to receive the MAC Address configuration packet, return step (4);
(8) veneer upgrades the MAC Address of veneer according to the MAC Address configuration packet that receives.
2. the method for each node configuration MAC Address in the inner exchanging net according to claim 1, it is characterized in that, comprise in the MAC Address configuration packet described in the step (4): the target MAC (Media Access Control) address of described MAC Address configuration packet, configuration packet flag information and configuration packet check information.
3. according to the method for each node configuration MAC Address in the described inner exchanging net of claim 2, it is characterized in that step (6) is specially:
The ethernet controller of veneer reads configuration packet flag information and the configuration packet check information in the MAC Address configuration packet, judge whether described configuration packet flag information and configuration packet check information be legal, if it is legal, then the ethernet controller of veneer is set to be operated in normal mode, and enter step (8), if illegal, then enter step (7).
4. the method for each node configuration MAC Address is characterized in that in the inner exchanging net according to claim 3, and described step (8) is specially:
Veneer reads the target MAC (Media Access Control) address in the described MAC Address configuration packet, and described MAC Address is configured to the MAC Address of veneer.
CN200610000654XA 2006-01-09 2006-01-09 Method for configuring MAC address at each node in inner exchange network Expired - Fee Related CN101001263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610000654XA CN101001263B (en) 2006-01-09 2006-01-09 Method for configuring MAC address at each node in inner exchange network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610000654XA CN101001263B (en) 2006-01-09 2006-01-09 Method for configuring MAC address at each node in inner exchange network

Publications (2)

Publication Number Publication Date
CN101001263A CN101001263A (en) 2007-07-18
CN101001263B true CN101001263B (en) 2010-11-24

Family

ID=38693067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610000654XA Expired - Fee Related CN101001263B (en) 2006-01-09 2006-01-09 Method for configuring MAC address at each node in inner exchange network

Country Status (1)

Country Link
CN (1) CN101001263B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309114B (en) * 2008-07-10 2012-05-09 中兴通讯股份有限公司 Method and system for realizing automatic configuration of node working mode
CN101741673B (en) 2008-11-25 2012-04-18 中兴通讯股份有限公司 Address refreshing method of Ethernet ring
CN101707636B (en) * 2009-11-20 2013-10-16 中兴通讯股份有限公司 IP address allocation method and device for single board of BBU of base station
CN104038449B (en) * 2014-06-11 2017-09-29 华为技术有限公司 A kind of method, service board and the communication equipment of service board communication
CN104168172A (en) * 2014-08-27 2014-11-26 积成电子股份有限公司 Inter-board data interaction device and method based on SWITCH chip
CN106487941A (en) * 2015-08-31 2017-03-08 北京华为数字技术有限公司 A kind of method and apparatus of collocating medium access control address
CN105681072B (en) * 2015-12-18 2019-07-23 福建星网锐捷网络有限公司 A kind of IP address management method and device of service card
CN111600970B (en) * 2020-04-09 2022-08-09 南瑞集团有限公司 Method and system for stably controlling device program centralized downloading

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6363423B1 (en) * 1999-04-26 2002-03-26 3Com Corporation System and method for remotely generating, assigning and updating network adapter card in a computing system
CN1404276A (en) * 2001-09-05 2003-03-19 三星电子株式会社 Apparatus and method for distributing interconnected network protocol address to network interface card
CN1490991A (en) * 2002-10-18 2004-04-21 华为技术有限公司 Methods for Virtual Ethernet Adapter Cards
CN1493039A (en) * 2001-02-24 2004-04-28 �Ҵ���˾ Ethernet addressing via physical location for massive parallel systems
CN1681251A (en) * 2004-04-07 2005-10-12 北京润光泰力科技发展有限公司 Managing method of network apparatus based on access controlling layer of Ethernet medium
CN1696926A (en) * 2004-05-15 2005-11-16 鸿富锦精密工业(深圳)有限公司 MAC address automatic assignment system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6363423B1 (en) * 1999-04-26 2002-03-26 3Com Corporation System and method for remotely generating, assigning and updating network adapter card in a computing system
CN1493039A (en) * 2001-02-24 2004-04-28 �Ҵ���˾ Ethernet addressing via physical location for massive parallel systems
CN1404276A (en) * 2001-09-05 2003-03-19 三星电子株式会社 Apparatus and method for distributing interconnected network protocol address to network interface card
CN1490991A (en) * 2002-10-18 2004-04-21 华为技术有限公司 Methods for Virtual Ethernet Adapter Cards
CN1681251A (en) * 2004-04-07 2005-10-12 北京润光泰力科技发展有限公司 Managing method of network apparatus based on access controlling layer of Ethernet medium
CN1696926A (en) * 2004-05-15 2005-11-16 鸿富锦精密工业(深圳)有限公司 MAC address automatic assignment system and method

Also Published As

Publication number Publication date
CN101001263A (en) 2007-07-18

Similar Documents

Publication Publication Date Title
CN101001263B (en) Method for configuring MAC address at each node in inner exchange network
US7978595B2 (en) Method for processing multiple active devices in stacking system and stacking member device
CN103501249B (en) A kind of NM client topology management system and method
CN100525215C (en) communication device, communication system and method
CN102843286B (en) Implementation method, and system of virtual routers
CN101369899A (en) System and method for power over ethernet
CN103441935B (en) Automatically method and the device of the syntople of identified server and access switch
CN103152282A (en) Single logical network interface for advanced load balancing and fail-over functionality
CN101510793A (en) Method for implementing a plurality of Bluetooth device networking through Bluetooth server, software program and server
CN106453124A (en) Traffic scheduling method and device
CN102870371A (en) Method for changing an operating state of at least one device
CN113037573B (en) Network management system and method
JPH10285204A5 (en)
CN101453356A (en) Computer switch and method thereof for matching with multiple servers
CN115987778A (en) Container communication method based on Kubernetes cluster
CN1490994B (en) Method and apparatus for connecting apparatus with wireless network
CN204650369U (en) Cable power service device altogether
CN102469018B (en) Priority facility implementation method and device in Virtual Router Redundancy Protocol backup group
CN108696370B (en) A method, device and system for binding and unbinding a server and a service
CN101350832A (en) Data communication method, communication appliance, terminal and communication system
CN109525621A (en) A kind of method of data synchronization, equipment and system based on ZigBee binding
CN107465621A (en) A kind of router finds method, SDN controllers, router and network system
CN104539576B (en) Communication means and system based on IPv6 networks
JP2008515258A (en) COMMUNICATION SYSTEM, DISTRIBUTION ELEMENT, AND NETWORK DEVICE
CN118714010A (en) Device networking method, system, intelligent terminal and computer-readable storage medium

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

Granted publication date: 20101124

Termination date: 20150109

EXPY Termination of patent right or utility model