CN103916494A - Method and equipment for processing serial numbers - Google Patents

Method and equipment for processing serial numbers Download PDF

Info

Publication number
CN103916494A
CN103916494A CN201410158259.9A CN201410158259A CN103916494A CN 103916494 A CN103916494 A CN 103916494A CN 201410158259 A CN201410158259 A CN 201410158259A CN 103916494 A CN103916494 A CN 103916494A
Authority
CN
China
Prior art keywords
field number
assignment information
record
added
default
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
CN201410158259.9A
Other languages
Chinese (zh)
Other versions
CN103916494B (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.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN201410158259.9A priority Critical patent/CN103916494B/en
Publication of CN103916494A publication Critical patent/CN103916494A/en
Application granted granted Critical
Publication of CN103916494B publication Critical patent/CN103916494B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method and equipment for processing the serial numbers. The method comprises the steps that a primary domain receives a request message sent by a to-be-added secondary domain, wherein the request message comprises a preset domain serial number of the to-be-added secondary domain and first identity information of the to-be-added secondary domain; according to the preset domain serial number or according to the preset domain serial number or the first identity information, the distribution information of the recorded domain serial number is inquired, and whether the preset domain serial number conflicts with the domain serial number in the distribution information of the recorded domain serial number or not is judged; if the preset domain serial number is judged to conflict with the domain serial number in the distribution information of the recorded domain serial number is judged, a corresponding to-be-added domain serial number is distributed to the to-be-added secondary domain according to the first identity information and the distribution information of the recorded domain serial number or the first identity information, the preset domain serial number and the distribution information of the recorded domain serial number; the to-be-added domain serial number is sent to the to-be-added secondary domain, so that when the preset domain serial number is unequal to the to-be-added domain serial number, the to-be-added secondary domain takes the to-be-added domain serial number as the preset domain serial number for storage.

Description

Processing method and the equipment of numbering
Technical field
The present invention relates to the communication technology, relate in particular to a kind of processing method and equipment of numbering.
Background technology
Multiple devices are linked together by stacking opening, and the technology that forms a virtual unit is referred to as Stack Technology, also can be referred to as virtual switch unit (Virtual Switch Unit; Be called for short: VSU) technology.Fig. 1 is the schematic diagram of VSU in prior art, and as shown in Figure 1, in the stacking topology of VSU, all single device are called member device, and member device, according to function difference, can be divided into two kinds of roles: main equipment and from equipment; Wherein, it is stacking that main equipment is in charge of whole VSU.Be under the jurisdiction of main equipment from equipment, move corresponding business according to the instruction of main equipment.During a VSU is stacking, can only there is a member device can become main equipment, but can have many from equipment.
Fig. 2 is a schematic diagram of VXU in prior art, as shown in Figure 2, links together by outreaching stacking opening stacking multiple VSU, and the technology that forms a larger virtual unit is referred to as virtual extended unit (Virtual eXtend Unit; Be called for short: VXU) technology.Fig. 3 is another schematic diagram of VXU in prior art, as shown in Figure 3, all stacking territory that is called of VSU in the stacking topology of VXU, territory, according to function difference, is divided into two kinds of roles: He Cong territory, main territory.Wherein, it is stacking that whole VXU is in charge of in main territory, and this main territory equipment for example, is made up of the stronger equipment of hardware capability (nucleus equipment) conventionally.Be under the jurisdiction of main territory from territory, move corresponding business according to the instruction in main territory, and should normally for example, be formed by the weak equipment (access device) of hardware capabilities from territory equipment.During a VXU is stacking, can only there is a main territory, but can have multiple from territory.
In addition, VXU is stacking middlely comes marking equipment and configuration device with Field Number, and as shown in Figure 3, main territory identifies (i.e. main territory-1) with 1, is respectively used to from territory-2, identifies from territory-3 from territory.Accordingly, in the facility information of the stacking external demonstration of VXU, equipment 1/1, equipment 1/2 represents respectively nucleus equipment 1 and the nucleus equipment 2 in main territory-1; Equipment 2/1, equipment 2/2 represents respectively access device 1 and the access device 2 from territory-2; Equipment 3/1, equipment 3/2 represents respectively access device 3 and the access device 4 from territory-3.
At present, device numbering mainly adopts user's manual configuration or number algorithm to realize configuration automatically, but, for user's manual configuration, when occurring that when conflict numbering is owing to needing the configuration that user's manual modification is corresponding, therefore, for when very many, expending huge workload as the access device quantity using from territory in VXU opposite end.
Summary of the invention
The invention provides a kind of processing method and equipment of numbering, the huge problem of workload causing for solving prior art user manual configuration.
First aspect of the present invention is to provide a kind of processing method of numbering, comprising:
Main territory receives the request message sending from territory to be added, and described request message comprises: the described default Field Number from territory to be added and described the first identification information from territory to be added;
Described main territory is according to described default Field Number, or described default Field Number and described the first identification information, the assignment information of the Field Number of query note, judges whether the Field Number in the assignment information of Field Number of described default Field Number and described record exists conflict;
If there is conflict in the Field Number that described main territory is judged in the assignment information of Field Number of described default Field Number and described record, according to the assignment information of the Field Number of described the first identification information and described record, or the assignment information of the Field Number of described the first identification information, described default Field Number and described record is the described corresponding Field Number to be added that distributes from territory to be added;
Described main territory sends to described Field Number to be added described to be added from territory, to be addedly, described Field Number to be added is preserved as default Field Number when unequal from territory at described default Field Number and described Field Number to be added for described.
Another aspect of the present invention is to provide a kind of processing unit of numbering, comprising:
Transceiver module, for receiving the request message sending from territory to be added, described request message comprises: the described default Field Number from territory to be added and described the first identification information from territory to be added;
Judge module, be used for according to described default Field Number, or described default Field Number and described the first identification information, the assignment information of the Field Number of query note, judges whether the Field Number in the assignment information of Field Number of described default Field Number and described record exists conflict;
Processing module, there is conflict if judge the Field Number of the assignment information of the Field Number of described default Field Number and described record for described judge module, according to the assignment information of the Field Number of described the first identification information and described record, or the assignment information of the Field Number of described the first identification information, described default Field Number and described record is the described corresponding Field Number to be added that distributes from territory to be added;
Described transceiver module is also described to be added from territory for described Field Number to be added is sent to, to be addedly, described Field Number to be added is preserved as default Field Number when unequal from territory at described default Field Number and described Field Number to be added for described.
Technique effect of the present invention is: receive the request message sending from territory to be added by main territory, this request message comprises the default Field Number from territory to be added and this first identification information from territory to be added, according to this default Field Number, or this default Field Number and the first identification information, the assignment information of the Field Number of query note, if there is conflict in the Field Number of judging in the assignment information of Field Number of default Field Number and record, according to the assignment information of the Field Number of the first identification information and record, or the first identification information, the assignment information of the Field Number of default Field Number and record, for the Field Number to be added that distributes correspondence from territory to be added, and send to this to be added from territory this Field Number to be added, to be added from territory at this default Field Number and this Field Number to be added when unequal for this, this Field Number to be added is preserved as default Field Number, thereby realize automatic configuration Field Number, the huge problem of workload that has solved in prior art user manual configuration in prior art and cause.
Brief description of the drawings
Fig. 1 is the schematic diagram of VSU in prior art;
Fig. 2 is a schematic diagram of VXU in prior art;
Fig. 3 is another schematic diagram of VXU in prior art;
Fig. 4 is the flow chart of an embodiment of the present invention's processing method of numbering;
Fig. 5 is the flow chart of another embodiment of the present invention's processing method of numbering;
Fig. 6 is the flow chart of another embodiment of the present invention's processing method of numbering;
Fig. 7 is the structural representation of an embodiment of the present invention's processing unit of numbering;
Fig. 8 is the structural representation of another embodiment of the present invention's processing unit of numbering.
Embodiment
Fig. 4 is the flow chart of an embodiment of the present invention's processing method of numbering, and as shown in Figure 4, the method for the present embodiment comprises:
Step 101, main territory receive the request message sending from territory to be added, and this request message comprises: this default Field Number from territory to be added and this first identification information from territory to be added.
In the present embodiment, to be added from territory starts, if the main equipment from territory reads active domain numbering, this active domain is numbered as this default Field Number from territory to be added; If the main equipment from territory does not read active domain numbering, use an invalid Field Number as this default Field Number from territory to be added.Wherein, active domain numbering belongs to the set of active domain numbering; Invalid Field Number belongs to invalid Field Number set.In addition, this first identification information comprises: medium access control (Media Access Control; Be called for short: MAC).In addition, the main equipment from territory sends to the request message that carries this default Field Number from territory to be added and this first identification information from territory to be added main territory.If receive this request message from equipment in main territory, this request message is transmitted to the main equipment in main territory.
It should be noted that, the set of active domain numbering can be pre-configured, for example: can be defined as natural number set [M, N], wherein, N is greater than M.In addition, not in the invalid Field Number set that belongs to of this natural number set [M, N].
Step 102, main territory be according to this default Field Number, or this default Field Number and this first identification information, and the assignment information of the Field Number of query note judges whether the Field Number in the assignment information of Field Number of this default Field Number and this record exists conflict.
In the present embodiment, the assignment information of the Field Number of record is by main territory record, and the assignment information of the Field Number of this record comprises following one or several combinations: Field Number, territory MAC, territory state and timestamp.Wherein, corresponding whether online from territory of this Field Number of territory state representation that Field Number is corresponding, for instance, can represent by mark " 1 " online, represents not online by mark " 0 ".The territory MAC that Field Number is corresponding represents the MAC from territory that this Field Number is corresponding.The system time when timestamp that Field Number is corresponding represents that this Field Number is assigned with.
In addition, alternatively, the assignment information of the Field Number of this record can have following three kinds of situations to represent:
Situation A, Field Number are distributed to from territory and are corresponding online from territory;
Situation B, Field Number are distributed to from territory and are corresponding not online from territory;
Situation C, Field Number are not yet assigned to from territory.
For instance, table one is the assignment information of the Field Number of record.As shown in Table 1:
Table one
Field Number Territory MAC Territory state Timestamp Situation
1 1234.5678.0001 1 1000 A
2 1234.5678.0002 0 2000 B
3 1234.5678.0003 0 3000 B
4 0 0 0 C
5 0 0 0 C
6 0 0 0 C
It should be noted that, main territory, in the time of initialization, all belongs to situation C about the Field Number assignment information from territory on main territory.
In addition, in the present embodiment, for instance, the Field Number in the assignment information of the Field Number of this default Field Number and this record exists the possible situation of conflict to have several as follows:
1, default Field Number does not exist in the assignment information of Field Number of this record, illustrate and in main territory, do not support this default Field Number, for example: this default Field Number is 7, but the Field Number in main territory in the assignment information of the Field Number of this record only supports 1 to 6, illustrate that the Field Number in the assignment information of Field Number of this default Field Number and this record exists conflict.
2, default Field Number is by except this applying from territory from territory to be added, illustrates that Field Number in the assignment information of Field Number of this default Field Number and this record exists to conflict.
Also it should be noted that, in the present embodiment, only illustrate, and not only, state several being limited.
If there is conflict in the Field Number that step 103, main territory are judged in the assignment information of Field Number of this default Field Number and this record, according to the assignment information of the Field Number of this first identification information and this record, or the assignment information of the Field Number of this first identification information, this default Field Number and this record, distributes corresponding Field Number to be added from territory for this is to be added.
Step 104, main territory send to this to be added from territory this Field Number to be added, to be addedly, this Field Number to be added are preserved as default Field Number when unequal from territory at this default Field Number and this Field Number to be added for this.
In the present embodiment, because main territory sends to Field Number to be added to be added from territory, to be added from territory at this default Field Number and this Field Number to be added when unequal for this, this Field Number to be added is preserved as default Field Number, therefore change at the MAC from territory, for example, when equipment is replaced (will replace with from territory 2 from territory 1), can will be configured to the default Field Number from territory 2 from the default Field Number of territory 1 correspondence manually, hide sample and added while becoming owner of territory when this leave Er Cong territory, main territory 2 from territory 1, Field Number can be inherited smoothly.
In the present embodiment, receive the request message sending from territory to be added by main territory, this request message comprises the default Field Number from territory to be added and this first identification information from territory to be added, according to this default Field Number, or this default Field Number and the first identification information, the assignment information of the Field Number of query note, if there is conflict in the Field Number of judging in the assignment information of Field Number of default Field Number and record, according to the assignment information of the Field Number of the first identification information and record, or the first identification information, the assignment information of the Field Number of default Field Number and record, for the Field Number to be added that distributes correspondence from territory to be added, and send to this to be added from territory this Field Number to be added, to be added from territory at this default Field Number and this Field Number to be added when unequal for this, this Field Number to be added is preserved as default Field Number, thereby realize automatic configuration Field Number, the huge problem of workload that has solved in prior art user manual configuration in prior art and cause.
Fig. 5 is the flow chart of another embodiment of the present invention's processing method of numbering, and on above-mentioned basis embodiment illustrated in fig. 4, as shown in Figure 5, a kind of specific implementation of step 102 is:
Step 201, main territory are according to this default Field Number, and the assignment information of inquiring about the Field Number of this record, judges whether this default Field Number exists in the assignment information of Field Number of this record; If exist, perform step 202; If do not exist, perform step 205.
In the present embodiment, default Field Number does not exist in the assignment information of Field Number of this record, illustrate and in main territory, do not support this default Field Number, for example: this default Field Number is 7, but the Field Number in main territory in the assignment information of the Field Number of this record only supports 1 to 6, illustrate that the Field Number in the assignment information of Field Number of this default Field Number and this record exists conflict.
Step 202, main territory judge whether this default Field Number exists corresponding identification information in the assignment information of the Field Number of this record; If exist, perform step 203; If do not exist, perform step 206.
In the present embodiment, main territory judges that this default Field Number does not exist corresponding identification information in the assignment information of the Field Number of this record, illustrating that this default Field Number is not by except this shared from territory from territory to be added, there is not conflict in the Field Number that main territory is judged in the assignment information of Field Number of this default Field Number and this record.
Step 203, main territory obtain the second identification information of this default Field Number correspondence in the assignment information of the Field Number of this record.
Step 204, main territory judge whether this first identification information equates with the second identification information; If unequal, perform step 205; If equate, perform step 206.
In the present embodiment, main territory judges that this default Field Number exists corresponding identification information in the assignment information of the Field Number of this record, illustrate that this default Field Number is by shared from territory, but, it is to be added from territory when (the first identification information equates with the second identification information) that what this default Field Number took from territory is, illustrates that the Field Number in the assignment information of Field Number of this default Field Number and this record does not exist conflict.In addition, when this default Field Number take from territory be except this to be added from territory from territory when (the first identification information and the second identification information are unequal), illustrate that the Field Number in the assignment information of Field Number of this default Field Number and this record exists conflict.
There is conflict in the Field Number that step 205, main territory are judged in the assignment information of Field Number of this default Field Number and this record.Finish.
There is not conflict in the Field Number that step 206, main territory are judged in the assignment information of Field Number of this default Field Number and this record.
Fig. 6 is the flow chart of another embodiment of the present invention's processing method of numbering, and on above-mentioned basis embodiment illustrated in fig. 5, as shown in Figure 6, a kind of specific implementation of step 103 is:
If the Field Number that step 301, main territory are judged in the assignment information of Field Number of this default Field Number and this record exists conflict, judge whether this first identification information exists corresponding Field Number in the assignment information of the Field Number of this record; If do not exist, perform step 302; If exist, execution step 305.
Step 302, main territory judge in the assignment information of Field Number of this record whether have this default Field Number; If exist, perform step 303; If do not exist, perform step 306.
Step 303, main territory judge that this default Field Number corresponding state in the assignment information of the Field Number of this record is presence or presence not; If not presence, performs step 304; If presence, performs step 307.
Step 304, main territory are using this default Field Number as this Field Number to be added.Finish.
Step 305, main territory obtain the first Field Number of this first identification information correspondence in the assignment information of the Field Number of this record, and using this first Field Number as this Field Number to be added.Finish.
A unappropriated Field Number is selected in step 306, main territory from the assignment information of the Field Number of this record in unappropriated Field Number, and using this unappropriated Field Number as this Field Number to be added.Finish.
In the Field Number that step 307, main territory have been distributed from the assignment information of the Field Number of this record, select a Field Number to be selected also using this Field Number to be selected as this Field Number to be added; Wherein, state corresponding to this Field Number to be selected is presence not, and timestamp corresponding to described numbering to be selected is early than timestamp corresponding to other Field Numbers that distributed except this Field Number to be selected.
In the present embodiment, preferably, the another kind of implementation of step 307 is: a unappropriated Field Number is selected in main territory from the assignment information of the Field Number of this record in unappropriated Field Number, and using this unappropriated Field Number as this Field Number to be added.
In addition, in the present embodiment, also it should be noted that, if the Field Number that main territory is judged in the assignment information of Field Number of this default Field Number and this record does not exist conflict, use this default Field Number as Field Number to be added.
In the present embodiment, optionally, main territory be reach the standard grade from territory (being to be added from territory) complete Field Number distribute after, need to record the assignment information that this Field Number to be added is corresponding, this information at least will comprise following content: Field Number, territory MAC, territory state (being designated 1) and timestamp.In addition, in the time that this rolls off the production line from territory, main territory can be upgraded territory state in corresponding record and be converted to and be designated 0 by being designated 1.
Further, in another embodiment of the present invention, on the basis of the arbitrary illustrated embodiment of above-mentioned Fig. 1 to Fig. 3, the method can also comprise:
Send to this to be added from territory this Field Number to be added, to be addedly, this Field Number to be added is preserved as default Field Number when unequal from territory at this default Field Number and this Field Number to be added for this.
In the present embodiment, in the time that this rejoins main territory from territory, be this Field Number to be added from the default Field Number in territory, thereby effectively avoided the problem of Field Number conflict.
In addition, alternatively, for many member devices from territory, Field Number to be added can be synchronized to all member devices from the main equipment in territory, thereby in the time resetting from territory complete machine, whichever member device becomes the main equipment from territory, also no matter whether change from the MAC in territory, from the default Field Number in territory all with main territory before distribute to it Field Number to be added be consistent, and then while having ensured to rejoin main territory from territory, Field Number or original.
Alternatively, in main territory, equipment also can be preserved from the corresponding relation of identification information and the Field Number in territory, to increase from the availability support of territory configuration loss situation.
Fig. 7 is the structural representation of an embodiment of the present invention's processing unit of numbering, and as shown in Figure 7, the device of the present embodiment comprises: transceiver module 11, judge module 12 and processing module 13; Wherein, transceiver module 11 is for receiving the request message sending from territory to be added, and this request message comprises: this default Field Number from territory to be added and this first identification information from territory to be added; Judge module 12 is for according to this default Field Number, or this default Field Number and this first identification information, and the assignment information of the Field Number of query note judges whether the Field Number in the assignment information of Field Number of this default Field Number and this record exists conflict; If processing module 13 is judged the Field Number of the assignment information of the Field Number of this default Field Number and this record and is had conflict for this judge module 12, according to the assignment information of the Field Number of this first identification information and this record, or the assignment information of the Field Number of this first identification information, this default Field Number and this record, distributes corresponding Field Number to be added from territory for this is to be added; This transceiver module 11 is also for sending to this to be added from territory this Field Number to be added, to be addedly, this Field Number to be added preserved as default Field Number when unequal from territory at this default Field Number and this Field Number to be added for this.
The device of the present embodiment can execution graph 4 shown in the technical scheme of embodiment of the method, it is similar that it realizes principle, repeats no more herein.
In the present embodiment, receive the request message sending from territory to be added by main territory, this request message comprises the default Field Number from territory to be added and this first identification information from territory to be added, according to this default Field Number, or this default Field Number and the first identification information, the assignment information of the Field Number of query note, if there is conflict in the Field Number of judging in the assignment information of Field Number of default Field Number and record, according to the assignment information of the Field Number of the first identification information and record, or the first identification information, the assignment information of the Field Number of default Field Number and record, for the Field Number to be added that distributes correspondence from territory to be added, and send to this to be added from territory this Field Number to be added, to be added from territory at this default Field Number and this Field Number to be added when unequal for this, this Field Number to be added is preserved as default Field Number, thereby realize automatic configuration Field Number, the huge problem of workload that has solved in prior art user manual configuration in prior art and cause.
Fig. 8 is the structural representation of another embodiment of the present invention's processing unit of numbering, on above-mentioned basis embodiment illustrated in fig. 7, as shown in Figure 8, judge module 12 is specifically for according to this default Field Number, inquire about the assignment information of the Field Number of this record, judge whether this default Field Number exists in the assignment information of Field Number of this record; If judge in the assignment information of Field Number of this record and do not have this default Field Number, there is conflict in the Field Number of judging in the assignment information of Field Number of this default Field Number and this record.
Alternatively, if this judge module 12 also exists this default Field Number specifically for judging in the assignment information of Field Number of this record, judge whether this default Field Number exists corresponding identification information in the assignment information of the Field Number of this record; In the assignment information of the Field Number of this record, there is corresponding identification information if judge this default Field Number, obtain the second identification information of this default Field Number correspondence in the assignment information of the Field Number of this record, and judge whether this first identification information equates with the second identification information; If it is unequal to judge this first identification information and the second identification information, there is conflict in the Field Number of judging in the assignment information of Field Number of this default Field Number and this record.
Alternatively, if this judge module 12 also equate specifically for judging this first identification information and the second identification information, there is not conflict in the Field Number of judging in the assignment information of Field Number of this default Field Number and this record.Or, if this judge module 12 does not also exist corresponding identification information specifically for judging this default Field Number in the assignment information of the Field Number of this record, there is not conflict in the Field Number of judging in the assignment information of Field Number of this default Field Number and this record.
In addition, if there is not conflict in the Field Number that this processing module 13 is also judged the assignment information of the Field Number of this default Field Number and this record for this judge module 12, using this default Field Number as this Field Number to be added.
Alternatively, processing module 13 comprises: judging unit 131, acquiring unit 132 and Field Number allocation units 133; Judging unit 131 is for judging whether this first identification information exists corresponding Field Number in the assignment information of the Field Number of this record; If acquiring unit 132 is judged this first identification information for this judging unit 131 and had corresponding Field Number in the assignment information of the Field Number of this record, obtain the first Field Number of this first identification information correspondence in the assignment information of the Field Number of this record; Field Number allocation units 132 are for using this first Field Number as this Field Number to be added.
Alternatively, if this judging unit 131 does not also exist corresponding Field Number for judging this first identification information in the assignment information of the Field Number of this record, judge in the assignment information of Field Number of this record whether have this default Field Number; If judge in the assignment information of Field Number of this record and have this default Field Number, judge that this default Field Number corresponding state in the assignment information of the Field Number of this record is presence or presence not; If it is presence not at state corresponding to the assignment information of the Field Number of this record that these Field Number allocation units 133 are also judged this default Field Number for this judging unit 131, using this default Field Number as this Field Number to be added.
Alternatively, if there is not this default Field Number in the assignment information that these Field Number allocation units 133 are also judged the Field Number of this record for this judging unit 131, from the assignment information of the Field Number of this record, in unappropriated Field Number, select a unappropriated Field Number, and using this unappropriated Field Number as this Field Number to be added.
Alternatively, be presence if these Field Number allocation units 133 are also judged this default Field Number for this judging unit 131 at state corresponding to the assignment information of the Field Number of this record, in the Field Number having distributed, select a Field Number to be selected and using this Field Number to be selected as this Field Number to be added from the assignment information of the Field Number of this record; Wherein, state corresponding to this Field Number to be selected is presence not, and timestamp corresponding to described numbering to be selected is early than timestamp corresponding to other Field Numbers that distributed except this Field Number to be selected; Or,
If it is presence at state corresponding to the assignment information of the Field Number of this record that these Field Number allocation units 133 are also judged this default Field Number for this judging unit 131, from the assignment information of the Field Number of this record, in unappropriated Field Number, select a unappropriated Field Number, and using this unappropriated Field Number as this Field Number to be added.
The device of the present embodiment can execution graph 5 or Fig. 6 shown in the technical scheme of embodiment of the method, it is similar that it realizes principle, repeats no more herein.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the relevant hardware of program command.Aforesaid program can be stored in a computer read/write memory medium.This program, in the time carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a processing method for numbering, is characterized in that, comprising:
Main territory receives the request message sending from territory to be added, and described request message comprises: the described default Field Number from territory to be added and described the first identification information from territory to be added;
Described main territory is according to described default Field Number, or described default Field Number and described the first identification information, the assignment information of the Field Number of query note, judges whether the Field Number in the assignment information of Field Number of described default Field Number and described record exists conflict;
If there is conflict in the Field Number that described main territory is judged in the assignment information of Field Number of described default Field Number and described record, according to the assignment information of the Field Number of described the first identification information and described record, or the assignment information of the Field Number of described the first identification information, described default Field Number and described record is the described corresponding Field Number to be added that distributes from territory to be added;
Described main territory sends to described Field Number to be added described to be added from territory, to be addedly, described Field Number to be added is preserved as default Field Number when unequal from territory at described default Field Number and described Field Number to be added for described.
2. method according to claim 1, it is characterized in that, described main territory is according to described default Field Number, or described default Field Number and described the first identification information, the assignment information of the Field Number of query note, judge that whether the Field Number in the assignment information of Field Number of described default Field Number and described record exists conflict, specifically comprises:
Described main territory is according to described default Field Number, and the assignment information of inquiring about the Field Number of described record, judges whether described default Field Number exists in the assignment information of Field Number of described record;
If the Field Number that described main territory is judged in the assignment information of Field Number of described default Field Number and described record exists conflict, specifically comprise:
If described main territory is judged in the assignment information of Field Number of described record and do not had described default Field Number, there is conflict in the Field Number of judging in the assignment information of Field Number of described default Field Number and described record;
If described main territory is judged in the assignment information of Field Number of described record and had described default Field Number, judge whether described default Field Number exists corresponding identification information in the assignment information of the Field Number of described record;
If described main territory is judged described default Field Number and have corresponding identification information in the assignment information of the Field Number of described record, obtain the second identification information of described default Field Number correspondence in the assignment information of the Field Number of described record, and judge whether described the first identification information equates with the second identification information;
If described the first identification information is judged in described main territory and the second identification information is unequal, there is conflict in the Field Number of judging in the assignment information of Field Number of described default Field Number and described record;
Equating if described the first identification information and the second identification information are judged in described main territory, there is not conflict in the Field Number of judging in the assignment information of Field Number of described default Field Number and described record;
If described main territory is judged described default Field Number and do not have corresponding identification information in the assignment information of the Field Number of described record, there is not conflict in the Field Number of judging in the assignment information of Field Number of described default Field Number and described record.
3. method according to claim 2, is characterized in that, also comprises:
If there is not conflict in the Field Number that described main territory is judged in the assignment information of Field Number of described default Field Number and described record, using described default Field Number as described Field Number to be added.
4. according to the arbitrary described method of claims 1 to 3, it is characterized in that, described according to the assignment information of the Field Number of described the first identification information and described record, or the assignment information of the Field Number of described the first identification information, described default Field Number and described record, for the described corresponding Field Number to be added that distributes from territory to be added, specifically comprise:
Judge whether described the first identification information exists corresponding Field Number in the assignment information of the Field Number of described record;
In the assignment information of the Field Number of described record, there is corresponding Field Number if judge described the first identification information, obtain the first Field Number of described the first identification information correspondence in the assignment information of the Field Number of described record, and using described the first Field Number as described Field Number to be added.
5. method according to claim 4, is characterized in that, also comprises:
In the assignment information of the Field Number of described record, there is not corresponding Field Number if judge described the first identification information, judge in the assignment information of Field Number of described record whether have described default Field Number;
If judge in the assignment information of Field Number of described record and have described default Field Number, judge that described default Field Number corresponding state in the assignment information of the Field Number of described record is presence or presence not;
If judge described default Field Number corresponding state in the assignment information of the Field Number of described record and be not presence, using described default Field Number as described Field Number to be added;
If judge in the assignment information of Field Number of described record and do not have described default Field Number, from the assignment information of the Field Number of described record, in unappropriated Field Number, select a unappropriated Field Number, and using described unappropriated Field Number as described Field Number to be added;
Be presence if judge described default Field Number corresponding state in the assignment information of the Field Number of described record, in the Field Number having distributed, select a Field Number to be selected and using described Field Number to be selected as described Field Number to be added from the assignment information of the Field Number of described record; Wherein, state corresponding to described Field Number to be selected is presence not, and timestamp corresponding to described numbering to be selected is early than timestamp corresponding to other Field Numbers that distributed except described Field Number to be selected; Or,
If judging described default Field Number corresponding state in the assignment information of the Field Number of described record is presence, from the assignment information of the Field Number of described record, in unappropriated Field Number, select a unappropriated Field Number, and using described unappropriated Field Number as described Field Number to be added.
6. a processing unit for numbering, is characterized in that, comprising:
Transceiver module, for receiving the request message sending from territory to be added, described request message comprises: the described default Field Number from territory to be added and described the first identification information from territory to be added;
Judge module, be used for according to described default Field Number, or described default Field Number and described the first identification information, the assignment information of the Field Number of query note, judges whether the Field Number in the assignment information of Field Number of described default Field Number and described record exists conflict;
Processing module, there is conflict if judge the Field Number of the assignment information of the Field Number of described default Field Number and described record for described judge module, according to the assignment information of the Field Number of described the first identification information and described record, or the assignment information of the Field Number of described the first identification information, described default Field Number and described record is the described corresponding Field Number to be added that distributes from territory to be added;
Described transceiver module is also described to be added from territory for described Field Number to be added is sent to, to be addedly, described Field Number to be added is preserved as default Field Number when unequal from territory at described default Field Number and described Field Number to be added for described.
7. device according to claim 6, it is characterized in that, described judge module is specifically for according to described default Field Number, and the assignment information of inquiring about the Field Number of described record, judges whether described default Field Number exists in the assignment information of Field Number of described record; If judge in the assignment information of Field Number of described record and do not have described default Field Number, there is conflict in the Field Number of judging in the assignment information of Field Number of described default Field Number and described record;
If described judge module also exists described default Field Number specifically for judging in the assignment information of Field Number of described record, judge whether described default Field Number exists corresponding identification information in the assignment information of the Field Number of described record; In the assignment information of the Field Number of described record, there is corresponding identification information if judge described default Field Number, obtain the second identification information of described default Field Number correspondence in the assignment information of the Field Number of described record, and judge whether described the first identification information equates with the second identification information; If it is unequal to judge described the first identification information and the second identification information, there is conflict in the Field Number of judging in the assignment information of Field Number of described default Field Number and described record;
If described judge module also equate specifically for judging described the first identification information and the second identification information, there is not conflict in the Field Number of judging in the assignment information of Field Number of described default Field Number and described record;
If described judge module does not also exist corresponding identification information specifically for judging described default Field Number in the assignment information of the Field Number of described record, there is not conflict in the Field Number of judging in the assignment information of Field Number of described default Field Number and described record.
8. device according to claim 7, it is characterized in that, if there is not conflict in the Field Number that described processing module is also judged the assignment information of the Field Number of described default Field Number and described record for described judge module, using described default Field Number as described Field Number to be added.
9. according to the arbitrary described device of claim 6 to 8, it is characterized in that, described processing module comprises:
Judging unit, for judging whether described the first identification information exists corresponding Field Number in the assignment information of the Field Number of described record;
Acquiring unit, there is corresponding Field Number if judge described the first identification information for described judging unit in the assignment information of the Field Number of described record, obtain the first Field Number of described the first identification information correspondence in the assignment information of the Field Number of described record;
Field Number allocation units, for using described the first Field Number as described Field Number to be added.
10. device according to claim 9, it is characterized in that, if described judging unit does not also exist corresponding Field Number for judging described the first identification information in the assignment information of the Field Number of described record, judge in the assignment information of Field Number of described record whether have described default Field Number; If judge in the assignment information of Field Number of described record and have described default Field Number, judge that described default Field Number corresponding state in the assignment information of the Field Number of described record is presence or presence not;
If it is presence not at state corresponding to the assignment information of the Field Number of described record that described Field Number allocation units are also judged described default Field Number for described judging unit, using described default Field Number as described Field Number to be added;
If there is not described default Field Number in the assignment information that described Field Number allocation units are also judged the Field Number of described record for described judging unit, from the assignment information of the Field Number of described record, in unappropriated Field Number, select a unappropriated Field Number, and using described unappropriated Field Number as described Field Number to be added;
Be presence if described Field Number allocation units are also judged described default Field Number for described judging unit at state corresponding to the assignment information of the Field Number of described record, in the Field Number having distributed, select a Field Number to be selected and using described Field Number to be selected as described Field Number to be added from the assignment information of the Field Number of described record; Wherein, state corresponding to described Field Number to be selected is presence not, and timestamp corresponding to described numbering to be selected is early than timestamp corresponding to other Field Numbers that distributed except described Field Number to be selected; Or,
If it is presence at state corresponding to the assignment information of the Field Number of described record that described Field Number allocation units are also judged described default Field Number for described judging unit, from the assignment information of the Field Number of described record, in unappropriated Field Number, select a unappropriated Field Number, and using described unappropriated Field Number as described Field Number to be added.
CN201410158259.9A 2014-04-18 2014-04-18 The processing method and equipment of numbering Active CN103916494B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410158259.9A CN103916494B (en) 2014-04-18 2014-04-18 The processing method and equipment of numbering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410158259.9A CN103916494B (en) 2014-04-18 2014-04-18 The processing method and equipment of numbering

Publications (2)

Publication Number Publication Date
CN103916494A true CN103916494A (en) 2014-07-09
CN103916494B CN103916494B (en) 2017-08-25

Family

ID=51041890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410158259.9A Active CN103916494B (en) 2014-04-18 2014-04-18 The processing method and equipment of numbering

Country Status (1)

Country Link
CN (1) CN103916494B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822693A (en) * 2020-12-31 2021-05-18 陕西天基通信科技有限责任公司 Method for realizing self-adaptive numbering of micro indoor distribution system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794663A (en) * 2005-12-31 2006-06-28 杭州华为三康技术有限公司 Access method of document in pile system
CN101068250A (en) * 2007-06-08 2007-11-07 杭州华三通信技术有限公司 Network equipment ID distributing method and device
CN101159672A (en) * 2007-11-09 2008-04-09 中兴通讯股份有限公司 Method of distributing device number of stacked system
CN102655462A (en) * 2012-04-09 2012-09-05 深圳市佳信捷电子有限公司 Method and device for batched upgrading of embedded network equipment
CN103701631A (en) * 2013-12-05 2014-04-02 杭州华三通信技术有限公司 Automatic stack configuration deploy method and equipment used in stack system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794663A (en) * 2005-12-31 2006-06-28 杭州华为三康技术有限公司 Access method of document in pile system
CN101068250A (en) * 2007-06-08 2007-11-07 杭州华三通信技术有限公司 Network equipment ID distributing method and device
CN101159672A (en) * 2007-11-09 2008-04-09 中兴通讯股份有限公司 Method of distributing device number of stacked system
CN102655462A (en) * 2012-04-09 2012-09-05 深圳市佳信捷电子有限公司 Method and device for batched upgrading of embedded network equipment
CN103701631A (en) * 2013-12-05 2014-04-02 杭州华三通信技术有限公司 Automatic stack configuration deploy method and equipment used in stack system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822693A (en) * 2020-12-31 2021-05-18 陕西天基通信科技有限责任公司 Method for realizing self-adaptive numbering of micro indoor distribution system

Also Published As

Publication number Publication date
CN103916494B (en) 2017-08-25

Similar Documents

Publication Publication Date Title
WO2019179537A3 (en) System and method for implementing a resolver service for decentralized identifiers
CN107367949B (en) Obtain the methods, devices and systems of product identification
CN106557366B (en) Task distribution method, device and system
CN107368311B (en) Method and system for communication among multiple fragments
CN102713854A (en) Method and apparatus for saving and restoring container state
CN102012899A (en) Method, system and equipment for updating data
CN106528289B (en) Resource operation processing method and device
CN105338297A (en) Video data storage and playback system, device and method
CN108293060A (en) A kind of method, system, main website and the slave station of slave station firmware update
CN109412875B (en) zookeeper cluster automatic maintenance method and device
CN103049527A (en) Large power grid oriented parallel real-time database master and slave switching management system
CN106202074A (en) A kind of method and device processing shared file
CN114285695B (en) Communication method, device, apparatus, system and storage medium
CN108418752B (en) A kind of creation method and device of aggregation group
CN103166984A (en) System and method for control and automatic update of network video monitoring equipment controls
RU2013156043A (en) INFORMATION PROCESSING DEVICE, PROGRAM, INFORMATION PROCESSING METHOD AND INFORMATION PROCESSING SYSTEM
CN103916494A (en) Method and equipment for processing serial numbers
CN108491337B (en) Method for realizing group control
CN102650932A (en) Method, equipment and system for accessing data
CN102186257A (en) Communication method of wireless terminal and host equipment, wireless terminal and host equipment
CN106897303A (en) Data query method and device
CN103442098B (en) A kind of method, system and server distributing virtual IP address address
CN105511808A (en) Data operation method, system and related device
CN109728937A (en) A kind of method and device of the updating network state of voice mould group
CN103152245A (en) Control method and system for cruise route

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor

Patentee after: RUIJIE NETWORKS CO., LTD.

Address before: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor

Patentee before: Fujian Xingwangruijie Network Co., Ltd.