CN100407685C - Method for obtaining MAC address by communication apparatus and communication system - Google Patents

Method for obtaining MAC address by communication apparatus and communication system Download PDF

Info

Publication number
CN100407685C
CN100407685C CN2006101098765A CN200610109876A CN100407685C CN 100407685 C CN100407685 C CN 100407685C CN 2006101098765 A CN2006101098765 A CN 2006101098765A CN 200610109876 A CN200610109876 A CN 200610109876A CN 100407685 C CN100407685 C CN 100407685C
Authority
CN
China
Prior art keywords
communication equipment
frame
bootp
vlan
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.)
Expired - Fee Related
Application number
CN2006101098765A
Other languages
Chinese (zh)
Other versions
CN1905510A (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.)
Global Innovation Polymerization LLC
Gw Partnership 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 CN2006101098765A priority Critical patent/CN100407685C/en
Publication of CN1905510A publication Critical patent/CN1905510A/en
Application granted granted Critical
Publication of CN100407685C publication Critical patent/CN100407685C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method of obtaining MAC address for communication equipment and the communication system thereof, where the MAC address comprises port number, tank position number and frame number. And the method comprises the steps of: communication equipment sends a request message for obtaining frame number to upper communication equipment; the upper network equipment receives and answers the request message and makes a response message carry the frame number; the upper network equipment issues the response message to the network equipment; the network equipment obtains the frame number according to the response message and combines with the obtained port number, tank position number and main-backup/non-main-backup tag value to complete MAC address configuration. Thus, it realizes that communication network automatically completes MAC address configuration of all communication equipment in system and assures MAC configuration accuracy.

Description

The method of obtaining MAC address by communication apparatus and communication system
Technical field
The present invention relates to the communications field, relate to a kind of method and communication system of obtaining MAC address by communication apparatus especially.
Background technology
In telecommunication apparatus, used interconnection technique widely based on Ethernet, in ethernet interconnect, MAC Address is the sign of unique identification hardware node.
In the prior art, generally adopt the hardware dial-up or the mode that writes is come the MAC Address of distribution node.Yet there is the requirement to operating personnel in the mode that adopts this hardware dial-up or write, and dial-up can not be dialed the wrong number, if dial the wrong number, will cause being obstructed or wrong serious problems of communication; And adopt this kind technical scheme, dial-up be connected between also must strict coupling, if coupling is not right, also can other configurations of system be impacted.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of method of obtaining MAC address by communication apparatus, to realize that communication equipment obtains MAC Address automatically.
The technical problem to be solved in the present invention is that a kind of communication system also is provided, and obtains MAC Address automatically with the communication equipment in the realization system.
For solving above-mentioned first technical problem, the objective of the invention is to be achieved through the following technical solutions:
A kind of method of obtaining MAC address by communication apparatus is characterized in that, described MAC Address comprises port numbers, slot number, active and standby/non-active and standby sign and frame number, and described method comprises:
Subordinate's communication equipment sends the request message be used to obtain described subordinate communication equipment frame number to higher level's communication equipment;
Higher level's communication equipment receives also response described request message, carries described frame number in response message;
Described higher level's communication equipment issues described response message to described subordinate communication equipment;
Described subordinate communication equipment obtains described MAC Address according to described response message.
Method of the present invention alternatively, is specially in the described step that sends a request message: the VLAN ID that described request message does not have VLAN ID or described request message is zero.
Method of the present invention, alternatively, described higher level's communication equipment receives described request message, specifically comprises:
Described higher level's communication equipment is judged the VLAN ID of the message that is received, if described message does not have VLAN ID, perhaps the VLAN ID of described message is zero, then the VLAN ID of described message is configured to described higher level's communication equipment and is described frame request message enter described higher level's communication equipment via the VLAN ID of port assignment.
Method of the present invention, alternatively, described higher level's communication equipment response described request message is carried described frame number at described response message, specifically comprises:
Distribute described frame number according to the VLAN ID of described request message;
In described response message, carry described frame number.
Method of the present invention, alternatively, described subordinate communication equipment obtains described MAC Address according to described response message, specifically comprises:
Described subordinate communication equipment obtains described frame number according to described response message;
Described subordinate communication equipment obtains the value of port numbers, slot number and the active and standby/non-active and standby sign of described MAC Address at local terminal.
Method of the present invention, alternatively, described request message is BOOTP request, and described BOOTP request comprises the frame territory, described response message is: the BOOTP response of described frame number has been filled in described frame territory.
Method of the present invention alternatively, in the described subordinate communication equipment step that sends a request message, specifically may further comprise the steps:
The value in described frame territory is taken as default value;
Send described BOOTP request to described higher level's communication equipment.
Method of the present invention, alternatively, described subordinate communication equipment is sent to described higher level's communication equipment in the mode of broadcasting with described BOOTP request.
Method of the present invention alternatively,, is issued before described frame territory filled in the BOOTP response of described frame number to described subordinate communication equipment after described frame number is filled in the frame territory of described BOOTP request by higher level's communication equipment, further comprises:
Step a: if described higher level's communication equipment is a Backend Administration Module, execution in step c then is if described higher level's communication equipment is described switching network veneer or interface board, then execution in step b;
Step b: higher level's communication equipment is sent to described Backend Administration Module with described BOOTP request;
Step c: described Backend Administration Module is made the BOOTP response, and fills in the IP address in described BOOTP response, sends described BOOTP response to described subordinate communication equipment.
Method of the present invention, alternatively, described subordinate communication equipment further obtains the IP address according to described BOOTP response when obtaining MAC Address according to described BOOTP response, finish BOOTP and start.
Method of the present invention, alternatively, described subordinate communication equipment is switching network veneer or interface board, then obtains after BOOTP starts successfully at described subordinate communication equipment, further comprises:
Backend Administration Module is each port configuration block number respectively of described switching network veneer or described interface board, and issues described configuration;
Described switching network veneer or interface board obtain described configuration.
Method of the present invention alternatively, further comprises the second frame territory in described BOOTP request, be used to carry frame that described subordinate communication equipment obtains at this communication equipment end number.
For solving above-mentioned second technical problem, the objective of the invention is to be achieved through the following technical solutions:
A kind of communication system, described system comprises the communication equipment with cascade connection, it is characterized in that:
Current communication equipment sends to higher level's communication equipment and is used to obtain the frame request message of described current communication equipment, and behind the response message that receives described higher level's communication equipment, disposes described MAC Address;
Described higher level's communication equipment is preserved the frame allocation list, and has after receiving the frame request message that described current communication equipment sends, and carries the function of the frame number of described current communication equipment in response message.
System of the present invention, alternatively, the frame request message that described current communication equipment sends does not have VLAN ID or VLAN ID is zero.
System of the present invention, alternatively, described higher level's communication equipment further comprises:
The VLAN ID allocation units are used to each port preassignment VLAN ID of this communication equipment;
The VLAN ID judging unit is used to judge whether the frame request message that is received has VLAN ID, and perhaps whether the VLAN ID of institute's sink block request message equals zero;
The VLAN ID dispensing unit, the result who judges according to described VLAN ID identifying unit is configured to the no VLAN ID that received or the VLAN ID of the null frame request message of VLAN ID: the VLAN ID allocation units for this frame request message enter described higher level's communication equipment via the VLAN ID of port assignment.
Optionally, described frame request message is the BOOTP request that comprises the frame territory, and described BOOTP request, and described response message is: the BOOTP response of described frame number has been filled in described frame territory.
Optionally, by higher level's communication equipment after described frame number is filled in the frame territory of described BOOTP request, filled in the mode of the BOOTP response of described frame number and be when the prime communication equipment issues described frame territory to described: step a: if described higher level's communication equipment is a Backend Administration Module, execution in step c then, if described higher level's communication equipment is described switching network veneer or interface board, then execution in step b; Step b: higher level's communication equipment is sent to described Backend Administration Module with described BOOTP request; Step c: described Backend Administration Module is made the BOOTP response, and fills in the IP address in described BOOTP response, sends described BOOTP response to described current communication equipment.
Optionally, described subordinate communication equipment obtains the IP address according to described BOOTP response when obtaining MAC Address according to described BOOTP response, finish BOOTP and start.
Alternatively, described current communication equipment is after BOOTP starts successfully, further preserve the frame allocation list that BAM issues, be used for VLAN ID, the service board that configuration directly is connected with this communication equipment and the frame of subordinate's communication equipment number according to the message that is received
As can be seen from the above technical solutions, the inventive method has following advantage compared with prior art:
Because the present invention has realized communication equipment and has sent the request message of the frame number that is used for obtaining this communication equipment by the superior communication equipment; By higher level's communication equipment according to frame number configuration; Return the message of carrying the frame that distributes number to the communication equipment of request; Communication equipment obtains frame number by the message of returning; And the value from self read port number, slot number and active and standby/non-active and standby sign; Finishing MAC Address disposes automatically; Both use the inventive method so that the configuration of MAC Address is convenient fast; More guaranteed the correctness of the configuration of MAC Address
Further, when the present invention disposed at BOOTP, definition frame territory made when finishing the MAC Address configuration in the BOOTP request, finishes the BOOTP configuration, finishes BOOTP and starts.
Further, if this communication equipment is switching network veneer or interface board, so after successfully starting described subordinate communication equipment, Backend Administration Module issues the frame allocation list to this switching network veneer or interface board, be used to dispose the service board of this switching network veneer place frame and the direct frame of subordinate's switching network veneer of cascade or interface board number with it, perhaps, the frame of the interface board that is in the far-end switching network that is connected with this interface board with subordinate's switching network veneer of the direct cascade of this interface board or by the HDLC link number.Make the switching network veneer or the interface board of the startup success in the communication system have MAC Configuration Agent ability.
In addition, to be used to carry higher level's communication equipment be that first frame of frame number of described subordinate communication device configured is number overseas except comprising in the BOOTP that sent request, also comprises the second frame territory that is used to carry frame that this communication equipment reads at local terminal number.Make the inventive method further be applicable to the communication equipment that uses the hardware dial-up, be convenient to when circuit trouble shoot or other equipment fault eliminating, search, get rid of because the fault that the hardware dial-up is dialed the wrong number and caused.
Description of drawings
Fig. 1 is the logical construction schematic diagram of ethernet communication system;
Fig. 2 is the method flow schematic diagram of embodiment 1;
Fig. 3 is the method flow schematic diagram of embodiment 2;
Fig. 4 is the method flow schematic diagram of embodiment 3;
Fig. 5 is the exchanging network system structural representation with a plurality of switching network cascades;
Fig. 6 is the acquisition methods schematic flow sheet of the MAC Address of interface board 700;
Fig. 7 is the system configuration schematic diagram of embodiment 5.
The figure number explanation:
100: Main subrack SCU, 101: the frame allocation list, 200: non-central frame SCU,
201: the frame allocation list, 300: service board, 400:CPU,
500:BAM, 501: the frame allocation list, 600: interface board,
601: the VLAN ID allocation units, 602: the VLAN ID judging unit,
603: VLAN ID dispensing unit, 700: interface board.
Embodiment
Core concept of the present invention is, sends the request message that is used to obtain described subordinate communication equipment frame number to higher level's communication apparatus by communication equipment; Higher level's communication equipment receives and also to respond this request message, and assignment block number for it, and carry described frame number in the response message of making then, is returned the response message that this carries frame number to the communication equipment of this request; The request communication equipment obtains frame number according to the response message that receives, is combined in the value of port numbers, slot number and active and standby/non-active and standby sign that this communication equipment end obtains, finishes the MAC Address configuration.
Further, the frame request message that this communication equipment obtains described subordinate communication equipment to higher level's communication equipment being used to of sending is: comprise the BOOTP request in frame territory, the response message that higher level's communication equipment returns is BOOTP response, extends this as the frame number of described subordinate communication device configured in the frame territory of BOOTP response.
Further, in the process of BOOTP message configuration MAC Address, finish IP address configuration and other BOOTP information configuration, finish the startup configuration of communication equipment, successfully start communication equipment.
Further, if this communication equipment is switching network veneer or interface board, so after successfully starting described subordinate communication equipment, Backend Administration Module issues the frame allocation list to this switching network veneer or interface board, be used to dispose the service board of this switching network veneer place frame and the direct frame of subordinate's switching network veneer of cascade or interface board number with it, perhaps, the frame of the interface board that is in the far-end switching network that is connected with this interface board with subordinate's switching network veneer of the direct cascade of this interface board or by the HDLC link number.Make the switching network veneer or the interface board of the startup success in the communication system have MAC Configuration Agent ability.
Further, to be used to carry higher level's communication equipment be that first frame of frame number of described subordinate communication device configured is number overseas except comprising in the BOOTP that sent request, also comprises the second frame territory that is used to carry frame that this communication equipment reads at local terminal number.Make the inventive method further be applicable to the logical equipment that uses the hardware dial-up, be convenient to when circuit trouble shoot or other equipment fault eliminating, search, get rid of because the fault that the hardware dial-up is dialed the wrong number and caused.
In order to allow those skilled in the art better understand content of the present invention, below in conjunction with accompanying drawing and concrete
Embodiment is further detailed content of the present invention:
Fig. 1 is the basic logic framework of ethernet communication system, as shown, interconnect by the panel switching network between Main subrack switching network veneer and the non-central frame switching network veneer, other veneers in Main subrack switching network veneer and the frame are connected by backboard, between the switching network of non-central frame and the switching network of Main subrack by the interconnection of panel network interface.Non-central switching network veneer links to each other by backboard with other interior veneers of its frame.A port interconnection is also arranged between the CPU of each switching network and the switching network veneer, and Backend Administration Module (Back AdministrationModule is called for short BAM) is connected with BAM by the 0th networking mouth.
What deserves to be explained is that switching network veneer as herein described is the switching control unit (Switch Control Unit is called for short SCU) that has the service management controlled function in the Ethernet.
The BOOTP of each veneer in the system when starting asks to obtain MAC Address and IP address separately.BOOT strapping Protocol (BOOTP) is a kind of agreement based on User Data Protocol (User Data Protocol is called for short UDP)/IP.This agreement allows the main frame dynamic-configuration that is starting and need not user's supervision.The BOOTP agreement has two kinds of messages, is respectively: BOOTP request and BOOTP response.Each territory of BOOTP message is fixed-length field, and two kinds of message formats are identical.
In the BOOTP message definition hardware address (MAC Address) is arranged, get fixed value for high 32 of 48 bit mac addresses of communication equipment, back 16 structure as shown in Table 1:
Table one:
Frame Frame (5bits) Groove Slot (5bits) Active and standby/non-active and standby sign Flag (1bits) Port numbers Port (5bits)
By table one as seen, the MAC Address territory is divided into four parts: frame number, groove number, active and standby/non-active and standby sign and port numbers.
For groove number,, therefore can fill in groove number automatically by veneer itself because veneer can read the groove number at place own; For active and standby/non-active and standby sign, same veneer self can clearly know whether adopt active/standby mode according to being provided with, and active and standby/non-active and standby sign is carried out value, such as: if adopt active/standby mode, then flag is got 0, otherwise flag gets 1; For port numbers, same, veneer self can know and obtain therefore can also have veneer self to fill in; For frame number, if under the situation of frame dial-up, can obtain, and if under the situation that does not have the frame dial-up, this part can all extend this as default frame number by the frame dial-up.
Below by being example with the different veneers in the communications network system, the inventive method is specifically described.
Communications network system as shown in Figure 1, at first default all network interface transmissions of message that send by BAM on BAM by being connected with Main subrack SCU, promptly all are by VLAN ID (the Virtual LAN ID of the message of BAM transmission, be called for short VLAN ID) be the VLAN ID of this network interface, in this embodiment, the VLAN ID that establishes this network interface is 1.According to above-mentioned setting, promptly all are sent to Main subrack SCU by the message that BAM sends, and are transmitted or other processing by Main subrack SCU.
For make can by BOOTP can obtaining communication equipment MAC Address, so in the BOOTP message, define the hardware address territory, in the hardware address territory, comprise the frame territory: the first frame territory.
By network architecture shown in Figure 1 as can be known, the startup of each communication equipment must be adopted from top to bottom
Boot sequence promptly at first starts with the direct-connected Main subrack SCU of BAM, restarts and Main subrack SCU
Joining service board and the next stage SCU that is connected with Main subrack SCU, by that analogy.
Embodiment 1:
Present embodiment is to be that example is specifically described the inventive method with the direct-connected Main subrack SCU of BAM in the communications network system, and Fig. 2 is the method flow schematic diagram of present embodiment, and as shown, this method may further comprise the steps:
Step S201: Main subrack SCU starts.
Start Main subrack SCU, only open the 0th networking mouth of panel, it is VLANID=1 that this network interface belongs to default network interface, and on Main subrack SCU, be provided with from the institute that the 0th networking mouth enters and have or not VLAN ID (VLAN TAG, being called for short TAG) message or TAG equal 0 message and add a specific VLANID, to indicate this message from higher level's communication equipment (for Main subrack SCU, this higher level's communication equipment is BAM at this), establishing this specific VLAN ID is 1000.
Step S202: Main subrack SCU sends the BOOTP message to BAM.
Main subrack SCU sends no TAG or TAG to BAM in the mode of broadcasting and equals 0 BOOTP and ask, and the first frame territory in the BOOTP message is extended this as default value, and this default value can be preset, and in this embodiment, getting this default value is 0 for convenience of explanation.
According to the setting among the step S201, owing to only open the 0th networking mouth, so this BOOTP message is sent to direct with it joining BAM behind the 0th networking mouth.
Step S203:BAM receives the BOOTP message, and fills in frame number and IP address in the BOOTP message.
After BAM receives this BOOTP message from the 0th networking mouth, provide the BOOTP response, extend this as the IP address of this BOOTP configuration in the IP address field in the BOOTP message of response.And the value according to the first frame territory in the hardware address territory in the BOOTP message is a default value, know that this message is directly from Main subrack SCU, provide its BOOTP response, and, according to the MAC Address configuration that is provided with in the BAM, the actual frames of this Main subrack SCU correspondence number is inserted in the first frame territory in the BOOTP response, replaced former frame number.
Step S204:BAM returns the BOOTP message to Main subrack SCU.
BAM is sent to Main subrack SCU with this BOOTP response, the VLAN ID=1 of this BOOTP response in the mode of broadcasting.
Step S205: Main subrack SCU receives the BOOTP message, and obtains MAC Address and IP address according to the BOOTP message.
Main subrack SCU receives this BOOTP response from the 0th networking mouth, because this message during through the 0th networking mouth, is added VLAN ID=1000, so Main subrack SCU receives this BOOTP message, and transfers to CPU and handle.
Main subrack SCU resolves this BOOTP message, the frame in the first frame territory in the message number is filled up in the frame number of the MAC Address on this equipment, add the port numbers that directly can read at this communication equipment end, groove number and active and standby/non-active and standby sign value, so far this communication equipment is finished the MAC Address configuration of this equipment.
Simultaneously, this communication equipment responds according to BOOTP, gets access to IP address and other corresponding BOOTP information.
Step S206: carry out follow-up software loading and startup.
Main subrack SCU carries out follow-up software loading and startup, after software loading and startup are finished, all distributes a VLAN ID who is used to replace the VLAN ID of non-TAG bag or TAG=0 bag for the port of the panel of Main subrack SCU.For example: for example port set 0~5 is respectively 1000~1005, and these ports are supported vlans=1 simultaneously; The all of the port branch of backboard is used in the VLAN ID of the VLAN ID that replaces non-TAG bag or TAG=0 bag, for example can be taken as 970~997, simultaneously all backboard ports supported vlans=1 all; The cpu port of SCU is then supported all these VLAN ID (1,970~997,1000~1005), i.e. the CPU of Main subrack SCU reception and processing VLAN ID are 1,970 to 997 and 1000 to 1005 bag.
So far, Main subrack SCU gets access to MAC Address, IP address and other BOOTP information, communication device initiated finishing by the BOOTP message automatically by the BAM configuration.
But,, can continue to carry out following steps in order to make Main subrack SCU have the function of proxy configurations MAC Address.
Step S207:BAM issues the frame allocation list to Main subrack SCU.
BAM issues the frame allocation list by ground 0 networking mouth to Main subrack SCU, and in the frame allocation list, the VLAN ID that makes this communication equipment port is number corresponding one by one with each frame respectively.
Step S208: Main subrack SCU obtains the frame allocation list.
In the present embodiment, be primarily aimed at the mode of non-employing hardware dial-up, the situation that disposes MAC Address by network automatically is illustrated, in order to make the inventive method be equally applicable to the mode that the hardware dial-up writes.Can also in the BOOTP message, increase another frame territory: the second frame territory, be used to fill in the frame number of user's dial-up input, promptly in step S201, in this dial-up frame territory, fill in frame that Main subrack SCU reads number, if Main subrack SCU can not read frame number, promptly do not adopt user's dial-up writing mode, then each bit in this second frame territory is filled out one writing entirely; When Main subrack SCU receives the BOOTP message that BAM returns, can compare the value in the first frame territory and the second frame territory, judge whether the MAC Address of user's dial-up is the same with the MAC Address of distributing automatically.When circuit trouble shoot or other equipment fault eliminating, be convenient to get rid of because the fault that the hardware dial-up is dialed the wrong number and caused.
Embodiment 2:
Present embodiment is with after starting Main subrack SCU, start and directly not to be connected and level is coupled to the non-central frame SCU (seeing the non-central frame SCU200 that directly is connected with Main subrack SCU100 among Fig. 1) of Main subrack SCU with BAM, using the inventive method is that this non-central frame SCU obtains MAC Address and the IP address is example, the inventive method is specifically described, Figure 3 shows that the method flow schematic diagram of present embodiment, as shown, may further comprise the steps:
Step S301: start non-central frame SCU200.
Start non-central frame SCU200, only open joining the 0th networking mouth of panel and Main subrack SCU, it is VLAN ID=1 that this network interface belongs to default network interface, and be provided with from the 0th networking mouth enter have or not TAG or TAG to equal 0 message all to add a specific VLAN ID, with indicate this message from higher level's communication equipment (at this for non-central frame SCU200, this higher level's communication equipment is Main subrack SCU), establishing this specific VLAN ID is 1000.
Step S302: non-central frame SCU200 sends the BOOTP message.
Non-central frame SCU200 sends no TAG or TAG in the mode of broadcasting and equals 0 BOOTP and ask, and when BOOTP asks, if can read current frame number, then in the second frame territory, fill in the frame that reads number, it is hardware dial-up frame number, otherwise all bits of all bits in the second frame territory all being got 1, the first frame territory all get 0, and make the VLAN ID=0 of this BOOTP request.
When the BOOTP request enters Main subrack SCU, VLAN ID is replaced by the VLANID of the corresponding port of panel, suppose the 2nd networking mouth of this non-central frame SCU200 at Main subrack SCU panel, Main subrack SCU is 1002 for the VLAN ID of this non-central frame SCU200 place port setting, when therefore the BOOTP request entered Main subrack SCU through this network interface, the VLAN ID of this BOOTP request was replaced by VLAN ID=1002.
Step S303: Main subrack SCU receives the BOOTP request, and fills in frame number in the BOOTP message.
The frame that Main subrack SCU issues according to BAM number configuration, and the VLAN ID of this BOOTP message number are filled in the first frame territory to the BOOTP message with the frame of this VLAN ID correspondence in the frame allocation list.
Step S304: Main subrack SCU unicasts to BAM with this BOOTP message.
Step S305:BAM receives the BOOTP message, and provides the BOOTP response.
After BAM receives this message, provide the BOOTP response, the IP address field in the BOOTP message extends this as the IP address of this BOOTP configuration, and finishes other BOOTP information configuration.
Step S306:BAM returns the clean culture of BOOTP message to Main subrack SCU.
Step S307: Main subrack SCU receives this BOOTP message, and is broadcast to non-central frame SCU200.
After Main subrack SCU receives the BOOTP message of BAM clean culture, use VLAN ID=1 to broadcast back non-central frame SCU200.
Step S308: non-central frame SCU200 receives the BOOTP message, and obtains MAC Address and IP address according to the BOOTP message.
After non-central frame SCU200 receives the BOOTP message of Main subrack SCU broadcasting from the 0th networking mouth, according to the first frame territory in the BOOTP message, obtain network and be frame that SCU distributes number, and this frame number is filled up on the frame territory of MAC Address of this equipment, side by side, the port numbers that directly reads at this communication equipment end, groove number and active and standby/non-active and standby sign value, so far this communication equipment is finished the MAC Address configuration of this equipment.
And, according to the BOOTP response, get access to IP address and other corresponding BOOTP information simultaneously.
Step S309: carry out follow-up software loading and startup.
Step S206 among this step and the embodiment 1 in like manner.
So far, non-central frame SCU200 gets access to MAC Address and IP address by the BOOTP message automatically by the BAM configuration, and startup finishes.
But,, continue to carry out following steps in order to make non-central frame SCU2 have the function of proxy configurations MAC Address.
Step S310:BAM issues the frame allocation list to non-central frame SCU200.
Step S312: non-central frame SCU200 obtains the frame allocation list.
Above-mentioned steps S311 and step S312 are identical with step S207, step S208 among the embodiment respectively.
Be associated in the SCU of subordinate's frame of non-central frame SCU200 for level, in like manner can send the mode of broadcasting BOOTP request message, the frame allocation list that issues according to BAM by higher level's frame SCU of its cascade, configuration block number, SCU unicasts to BAM by this higher level's frame, make the BOOTP response by BAM, configuration of IP address, return this higher level's frame SCU in clean culture, be broadcast to the frame SCU of this subordinate by this higher level's frame SCU, the SCU of this subordinate's frame is according to the BOOTP message that returns, obtain the frame number of network configuration, and this frame number filled in to the frame of device mac address number, obtain MAC Address, and obtain IP address and other BOOTP information according to the BOOTP message.
Embodiment 3:
The service board that present embodiment is connected with the backboard with Main subrack or non-central frame SCU (service board 300 as shown in Figure 1) is an example,, the inventive method is further specified:
Fig. 4 is a present embodiment method flow schematic diagram, as shown, may further comprise the steps:
Step S401: start service board 300, and send the BOOTP request.
Start service board 300, and with VLAN=0 transmission BOOTP request, when BOOTP asks, with the equal value of each bit in the first frame territory is 0, if can read current frame number, then the frame that reads number is filled in to the second frame territory, if it does not know the frame number of oneself, then the equal value of each bit with the second frame territory is 1.
After this BOOTP request sent, when the port of this frame SCU at this service board of process 300 places entered this frame SCU, the VLAN ID of this BOOTP message was replaced by the VLAN ID of this frame SCU for this port assignment.
Step S402: this frame SCU receives the BOOTP message, and configuration block number.
After this frame SCU receives this BOOTP message, VLAN ID according to this message, know that this BOOTP message is from subordinate's veneer, dispose according to the MAC Address that BAM issues by this this frame SCU, and the VLAN ID of this BOOTP message, the frame of this VLAN ID correspondence in the frame allocation list number is filled up to the first frame territory in the BOOTP message.
Step S403: this BOOTP message of this frame SCU clean culture is to BAM.
Step S404:BAM receives the BOOTP message, and provides the BOOTP response.
After BAM receives this message, provide the BOOTP response, the IP address field in corresponding BOOTP message extends this as the IP address of this BOOTP configuration.
Step S405:BAM returns the clean culture of BOOTP message to this this frame SCU.
Step S406: this this frame SCU receives this BOOTP message, and broadcasts this BOOTP message.
Step S407: service board 300 receives this BOOTP message, and obtains MAC Address and IP address according to the BOOTP message.
After this service board 300 receives this BOOTP message, according to the first frame territory in the BOOTP message, obtain network and be frame that SCU distributes number, and this frame number is filled up on the frame territory of MAC Address of this equipment, side by side, the port numbers that directly reads at this communication equipment end, groove number and active and standby/non-active and standby sign value, so far this communication equipment is finished the MAC Address configuration of this equipment.
And, according to the BOOTP response, get access to IP address and other corresponding BOOTP information simultaneously.
Embodiment 4:
For exchanging network system as shown in Figure 5 with a plurality of switching network cascades, as shown, the switching network system that is positioned at far-end is connected with near-end switching network system by the interface board 700 that is positioned at far-end, specifically be by the realization that is connected with the interface board 600 that is positioned at near-end of High-Level Data Link Control (High Level Data Link Control, be called for short HDLC) link by interface board 700.
In system shown in Figure 5, the non-central frame SCU200 that obtains be positioned at near-end of the MAC Address of local interface plate 600 in like manner, and BAM500 issues MAC Address configuration to interface board 600 equally, makes interface board 600 have agent functionality, it is concrete implement with described in the embodiment 2 in like manner.
In system shown in Figure 5, may further comprise the steps (as shown in Figure 6) for the obtaining of MAC Address of the interface board 700 that is positioned at the far-end switching network:
Step S601: interface board 700 starts, and sends the BOOTP message.
Start interface board 700, and send no TAG or TAG to the HDLC link and equal 0 BOOTP and ask, when BOOTP asks, with the equal value of spy out of the ordinary in the first frame territory is 0, if can read current frame number, then the frame that reads number is filled in to the second frame territory, if it does not know the frame number of oneself, then the equal value of each bit with the second frame territory is 1.
Step S602: interface board 600 receives the BOOTP messages, and configuration block number.
BOOTP request arrives interface board 600 through the HDLC link, and the MAC Address configuration that interface board 600 issues according to BAM is interface board 700 assignment block number, and in the BOOTP request, and the frame that distributed number is inserted to the second frame territory.
Step S603: this BOOTP message of interface board 600 clean cultures is to BAM.
Step S604:BAM receives the BOOTP message, and provides the BOOTP response.
Step S605:BAM is with BOOTP message clean culture tieback oralia 600.
Above-mentioned three steps respectively with embodiment 2 in step S304, step S305, step S306 in like manner.
Step S606: interface board S600 receives the BOOTP message, and is sent to interface board 700 to the HDLC link.
Interface board sends to the HDLC link after receiving this BOOTP respond packet, is sent to the interface board 700 that is positioned at far-end by this link.
Step S607: interface board 700 receives this BOOTP message, and obtains MAC Address and IP address according to the BOOTP message.
Step S608: carry out follow-up software loading and startup.
Step S609:BAM issues the frame allocation list to interface board 700.
Above-mentioned three steps respectively with embodiment 2 in step S308, step S309, step S310 in like manner.
Step S610: interface board 700 obtains the frame allocation list.
Interface board 700 obtains the MAC Address configuration of the non-central frame switching network veneer 200 of cascade with it.Can the MAC Address that be attached thereto the non-central frame SCU that connects be configured.
Obtaining of the out of Memory of the MAC of the non-central frame SCU of far-end, IP address and BOOTP is identical with the non-central frame SCU principle of near-end.At the beginning of institute's difference, the path of BOOTP message that only is to be in the non-central frame of far-end need be via the HDLC link.
As fully visible, owing to used the inventive method, realized disposing MAC Address automatically by network, and, because it is number overseas to have defined first frame that is used to carry frame that network distributes automatically number in the BOOTP message, also define the user's input frame number that is used to carry the hardware dial-up, made the inventive method be equally applicable to the situation of hardware dial-up.
Embodiment 5:
Fig. 7 is for originally being the structural representation of embodiment communication system, and the structure of native system structure and system shown in Figure 5 and system configuration shown in Figure 5 are basic identical, and different is that this communication system has following characteristics:
First, Main subrack SCU100, non-central frame SCU200, interface board 600, interface board 700, service board 300 all can send and not carry VLAN ID, perhaps VLAN ID is the function of zero message, before BOOTP starts, send to higher level's communication equipment and to be used to obtain this communication equipment frame number, no VLAN ID, or VLAN ID is zero request message, at this, wherein higher level's communication equipment is a relative concept, such as, for for the Main subrack SCU100 of BAM500 cascade, BAM500 is higher level's communication equipment, for Main subrack SCU100 mutually for the non-central frame SCU200 of cascade, BAM500 or Main subrack SCU100 are higher level's communication equipment, and other in like manner.
At BAM500 one default frame allocation list 501 is arranged, be used for the frame number of the communication equipment of configuration-system;
The second, on BAM500, Main subrack SCU100, non-central frame SCU200, interface board 600, interface board 700, VLAN ID allocation units 601, VLAN ID judging unit 602 and VLAN ID dispensing unit 603 are arranged respectively.Wherein VLAN ID allocation units 601 are used for being each the port assignment VLAN ID on this communication equipment after the communication device initiated success of basis, make that each port on this communication equipment is distinguished a corresponding VLAN ID; VLAN ID judging unit 602 is used for the VLAN ID that enters the message of this communication equipment via each port is judged, judges, judges whether message has VLAN ID, and perhaps whether VLAN ID equals zero; The result that VLAN ID dispensing unit 603 is judged according to VLAN ID identifying unit 602 is configured to the no VLAN ID that received or the VLAN ID of the null message of VLAN ID: VLAN ID allocation units 602 for this message enter described higher level's communication equipment via VLAN ID that port distributed.
What deserves to be explained is, for each VLAN ID allocation units 601, VLAN ID judging unit 602 and the VLAN ID dispensing unit 603 on BAM500, Main subrack SCU100, the non-central frame SCU200, promptly can be in the CPU400 outside, controlled by each CPU400, can also be embedded in the inside of the CPU400 of each communication equipment, the function of each unit is provided by CPU400.
The second, the Main subrack SCU100 in system comprises the address mapping table 101 that is issued by BAM after this SCU starts successfully, is used to dispose the frame number of direct-connected with it non-central frame SCU200 or service board 300; Interface board 600 comprises the address mapping table 201 that is issued by BAM after this SCU starts successfully, be used to dispose with it the frame number of the interface board that is positioned at far-end 700 that is connected by the HDLC link; Interface board 700 comprises the address mapping table 201 that is issued by BAM after this SCU starts successfully, be used to dispose the frame number of the non-central frame SCU200 that directly is connected with it; All non-central frames 200 comprise the address mapping table that is issued by BAM respectively after this SCU starts successfully, be used to dispose the MAC Address of Main subrack SCU200, interface board 600 or the service board 300 of the subordinate that directly is connected with it.Such as: the SCU100 of Main subrack shown in Fig. 7 comprises MAC Address mapping table 101, this mapping table 101 has BAM after Main subrack SCU100 starts successfully, be issued to Main subrack SCU100, be used to dispose the MAC Address of non-central frame SCU200 and this frame service board 300 of cascade with it.
As from the foregoing, because the frame allocation list 501 of each communication equipment in the network system is arranged with equipment on BAM500, and after Main subrack or non-central frame SCU start successfully, BAM500 issues the frame allocation list of the service board of the non-central frame SCU of subordinate that is used to dispose this SCU and this frame to each Main subrack or non-central frame SCU, Main subrack behind feasible startup the or non-central frame SCU or interface board have the BOOTP agent functionality, finish the MAC Address configuration of the non-central frame SCU of subordinate or interface board and this frame service board.
More than the method and the communication system of a kind of obtaining MAC address by communication apparatus provided by the present invention is described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (19)

1. the method for an obtaining MAC address by communication apparatus is characterized in that, described MAC Address comprises port numbers, slot number, active and standby/non-active and standby sign and frame number, and described method comprises:
Subordinate's communication equipment sends the request message be used to obtain described subordinate communication equipment frame number to higher level's communication equipment;
Higher level's communication equipment receives also response described request message, carries described frame number in response message;
Described higher level's communication equipment issues described response message to described subordinate communication equipment;
Described subordinate communication equipment obtains described MAC Address according to described response message.
2. the method for obtaining MAC address by communication apparatus according to claim 1 is characterized in that, in the described step that sends a request message: the VLAN ID that described request message does not have VLAN ID or described request message is zero.
3. the method for obtaining MAC address by communication apparatus according to claim 2 is characterized in that, described higher level's communication equipment receives described request message, specifically comprises:
Described higher level's communication equipment is judged the VLAN ID of the request message that is received, if described request message does not have VLAN ID, perhaps the VLAN ID of described request message is zero, then the VLAN ID of described request message is configured to described higher level's communication equipment and is described frame request message enter described higher level's communication equipment via the VLAN ID of port assignment.
4. the method for obtaining MAC address by communication apparatus according to claim 3 is characterized in that, described higher level's communication equipment response described request message is carried described frame number at described response message, specifically comprises:
Distribute described frame number according to the VLAN ID of described request message;
In described response message, carry described frame number.
5. the method for obtaining MAC address by communication apparatus according to claim 4 is characterized in that, described subordinate communication equipment obtains described MAC Address according to described response message, specifically comprises:
Described subordinate communication equipment obtains described frame number according to described response message;
Described subordinate communication equipment obtains the value of port numbers, slot number and the active and standby/non-active and standby sign of described MAC Address at local terminal.
6. the method for obtaining MAC address by communication apparatus according to claim 5, it is characterized in that, described request message is BOOTP request, and described BOOTP request comprises the frame territory, and described response message is: the BOOTP response of described frame number has been filled in described frame territory.
7. the method for obtaining MAC address by communication apparatus according to claim 6 is characterized in that, in the described subordinate communication equipment step that sends a request message, specifically comprises:
The value in described frame territory is taken as default value;
Send described BOOTP request to described higher level's communication equipment.
8. the method for obtaining MAC address by communication apparatus according to claim 7 is characterized in that, described subordinate communication equipment is sent to described higher level's communication equipment in the mode of broadcasting with described BOOTP request.
9. according to the method for claim 7 or 8 described obtaining MAC address by communication apparatus, it is characterized in that, by higher level's communication equipment after described frame number is filled in the frame territory of described BOOTP request, issue before described frame territory filled in the BOOTP response of described frame number to described subordinate communication equipment, further comprise:
Step a: if described higher level's communication equipment is a Backend Administration Module, execution in step c then, if described higher level's communication equipment is switching network veneer or interface board, execution in step b then;
Step b: higher level's communication equipment is sent to described Backend Administration Module with described BOOTP request;
Step c: described Backend Administration Module is made the BOOTP response, and fills in the IP address in described BOOTP response, sends described BOOTP response to described subordinate communication equipment.
10. the method for obtaining MAC address by communication apparatus according to claim 9 is characterized in that, described subordinate communication equipment further obtains the IP address according to described BOOTP response when obtaining MAC Address according to described BOOTP response, finish BOOTP and start.
11. the method for obtaining MAC address by communication apparatus according to claim 10 is characterized in that, described subordinate communication equipment is switching network veneer or interface board, if then after the described communication equipment BOOTP of subordinate starts successfully, further comprises:
Backend Administration Module is each port configuration block number respectively of described switching network veneer or described interface board, and issues described switching network veneer or the interface board of being configured to;
Described switching network veneer or interface board obtain described configuration.
12. the method for obtaining MAC address by communication apparatus according to claim 6 is characterized in that, further comprises the second frame territory in described BOOTP request, is used to carry frame that described subordinate communication equipment obtains at this communication equipment end number.
13. a communication system, described system comprises the communication equipment with cascade connection, it is characterized in that:
Current communication equipment sends the frame request message that is used to obtain described current communication equipment to higher level's communication equipment, and behind the response message that receives described higher level's communication equipment, the configuration MAC Address; Described MAC Address comprises port numbers, slot number, active and standby/non-active and standby sign and frame number;
Described higher level's communication equipment is preserved the frame allocation list, and has after receiving the frame request message that described current communication equipment sends, and carries the function of the frame number of described current communication equipment in response message.
14. communication system according to claim 13 is characterized in that, the described frame request message that described current communication equipment sends does not have VLAN ID or VLAN ID is zero.
15. communication system according to claim 14 is characterized in that, described higher level's communication equipment further comprises:
The VLAN ID allocation units are used to each port preassignment VLAN ID of this communication equipment;
The VLAN ID judging unit is used to judge whether the frame request message that is received has VLAN ID, and perhaps whether the VLAN ID of institute's sink block request message equals zero;
The VLAN ID dispensing unit, the result who judges according to described VLAN ID identifying unit is configured to the no VLAN ID that received or the VLAN ID of the null frame request message of VLAN ID: the VLAN ID allocation units for this frame request message enter described higher level's communication equipment via the VLAN ID of port assignment.
16., it is characterized in that described frame request message is BOOTP request according to claim 14 or 15 described communication systems, and described BOOTP request comprises the frame territory, described response message is: the BOOTP response of described frame number has been filled in described frame territory.
17. communication system according to claim 16, it is characterized in that,, after described frame number is filled in the frame territory of described BOOTP request, issue described frame territory to described current communication equipment and filled in the mode of the BOOTP response of described frame number and be by higher level's communication equipment:
Step a: if described higher level's communication equipment is a Backend Administration Module, execution in step c then is if described higher level's communication equipment is described switching network veneer or interface board, then execution in step b;
Step b: higher level's communication equipment is sent to described Backend Administration Module with described BOOTP request;
Step c: described Backend Administration Module is made the BOOTP response, and fills in the IP address in described BOOTP response, sends described BOOTP response to described current communication equipment.
18. communication system according to claim 17 is characterized in that, described current communication equipment obtains the IP address according to described BOOTP response when obtaining MAC Address according to described BOOTP response, finish BOOTP and start.
19. communication system according to claim 18, it is characterized in that, described current communication equipment is after BOOTP starts successfully, further preserve the frame allocation list that Backend Administration Module issues, be used for VLAN ID, the service board that configuration directly is connected with this communication equipment and the frame of subordinate's communication equipment number according to the frame request message that is received.
CN2006101098765A 2006-08-18 2006-08-18 Method for obtaining MAC address by communication apparatus and communication system Expired - Fee Related CN100407685C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101098765A CN100407685C (en) 2006-08-18 2006-08-18 Method for obtaining MAC address by communication apparatus and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101098765A CN100407685C (en) 2006-08-18 2006-08-18 Method for obtaining MAC address by communication apparatus and communication system

Publications (2)

Publication Number Publication Date
CN1905510A CN1905510A (en) 2007-01-31
CN100407685C true CN100407685C (en) 2008-07-30

Family

ID=37674643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101098765A Expired - Fee Related CN100407685C (en) 2006-08-18 2006-08-18 Method for obtaining MAC address by communication apparatus and communication system

Country Status (1)

Country Link
CN (1) CN100407685C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156656B (en) * 2010-12-31 2014-04-02 华为技术有限公司 Method and equipment for acquiring virtual frame/slot number under virtualization platform
CN105634792B (en) * 2015-07-23 2019-04-05 新华三技术有限公司 A kind of transmission method and device of configuration information
CN105591722B (en) * 2015-08-28 2019-05-07 新华三技术有限公司 A kind of interplate communication method and device
CN105227696B (en) * 2015-10-20 2018-05-04 浪潮集团有限公司 A kind of server management system MAC Address distribution method
CN112866426A (en) * 2019-11-28 2021-05-28 烽火通信科技股份有限公司 Automatic expansion subframe number distribution method, subframe and main frame control panel
CN114531459A (en) * 2020-11-03 2022-05-24 深圳市明微电子股份有限公司 Cascade equipment parameter self-adaptive obtaining method, device, system and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1378371A (en) * 2001-04-04 2002-11-06 友讯科技股份有限公司 Communication system and method setting basic data of network telephone equipment automatically
US6487601B1 (en) * 1999-09-30 2002-11-26 International Business Machines Corporation Dynamic mac allocation and configuration
US20030018804A1 (en) * 2001-03-28 2003-01-23 Amruth Laxman Method and apparatus for deriving a standard MAC address from physical location
US20030101282A1 (en) * 2001-11-26 2003-05-29 Schneider Automation Inc. Method and apparatus for assigning a network node address
CN1696926A (en) * 2004-05-15 2005-11-16 鸿富锦精密工业(深圳)有限公司 MAC system of automatic assigning addresses and method
CN1767545A (en) * 2004-10-27 2006-05-03 中兴通讯股份有限公司 Method for obtaining device MAC address

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6487601B1 (en) * 1999-09-30 2002-11-26 International Business Machines Corporation Dynamic mac allocation and configuration
US20030018804A1 (en) * 2001-03-28 2003-01-23 Amruth Laxman Method and apparatus for deriving a standard MAC address from physical location
CN1378371A (en) * 2001-04-04 2002-11-06 友讯科技股份有限公司 Communication system and method setting basic data of network telephone equipment automatically
US20030101282A1 (en) * 2001-11-26 2003-05-29 Schneider Automation Inc. Method and apparatus for assigning a network node address
CN1696926A (en) * 2004-05-15 2005-11-16 鸿富锦精密工业(深圳)有限公司 MAC system of automatic assigning addresses and method
CN1767545A (en) * 2004-10-27 2006-05-03 中兴通讯股份有限公司 Method for obtaining device MAC address

Also Published As

Publication number Publication date
CN1905510A (en) 2007-01-31

Similar Documents

Publication Publication Date Title
CN100407685C (en) Method for obtaining MAC address by communication apparatus and communication system
CN101075962B (en) Method and apparatus for realizing DHCP repeater in two-layer network exchanger
AU629486B2 (en) Communications network dynamic addressing arrangement
CN100502413C (en) IP address requesting method for DHCP client by DHCP repeater
CN102148766B (en) Method for service interworking in PON (passive optical network) under three-layer function networking
CN100471162C (en) Method for releasing and processing virtual circuit information and supplier edge device
JP4922972B2 (en) Communications system
CN102318322B (en) Device and method for distributing MAC address
CN109121026B (en) Method and system for realizing VOLT (Voice over Internet protocol) based on logic port
CN101877671A (en) Sending method of mirror image message, switch chip and Ethernet router
CN104253735A (en) ONU (optical network unit), communication system and communication method
CN106888450B (en) Information processing method and device
CN101242370B (en) Method for realizing Ethernet and frame-relay Internet and protocol conversion device
CN102137001A (en) Routing information exchange method, equipment and system
CN105635335B (en) Social resources cut-in method, apparatus and system
CN1528080B (en) Method and equipment for determining the virtual address of a terminal
CN103685007B (en) A kind of mac learning method when edge device message forwards and edge device
CN101009692A (en) Hardware address parsing method and communication processing device, and message processing method
CN103401787B (en) Static route issuing method and UPE (Ultimate Provider Edge)
CN100579131C (en) Ask for the method and apparatus of the Internet Protocol address of terminal device
CN101222370B (en) Method and device for failure location using failure location packet
CN103141072B (en) IP address acquiring method and network access equipment
CN106210166A (en) A kind of system of the capacity of extended wireless controller equiment mac address forwarding table
CN106533884B (en) A kind of message transmitting method, convergence device, interchanger and VRRP system
CN100420236C (en) Switching system for WiMAX flows

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180426

Address after: California, USA

Patentee after: Global innovation polymerization LLC

Address before: London, England

Patentee before: GW partnership Co.,Ltd.

Effective date of registration: 20180426

Address after: London, England

Patentee after: GW partnership Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

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: 20080730