The method of dynamic-configuration filtered data base table
Technical field
The present invention relates to the communications field, relate in particular to a kind of method of filtered data base (FDB) table of the dynamic-configuration network equipment.
Background technology
The OSI(Open Systems Interconnection) model is divided into seven layers to network, is respectively application layer, presentation layer, session layer, transport layer, network layer, data link layer and physical layer from top to bottom.When second layer data link layer is under the situation of Ethernet, and each user's equipment is by their media access control layer address (MAC) access network.But the MAC Address clauses and subclauses of the FDB table in the network equipment are limited.Usually, FDB table is stored in IWF (change/exchange to another kind of carrying from a kind of carrying, for example, from the asynchronous transfer mode to the Ethernet) application-specific integrated circuit (ASIC) (ASIC) of the network equipment.
In these cases, be faced with and how guarantee to effectively utilize this MAC Address clauses and subclauses scarce resource, and under the limited situation of MAC Address clauses and subclauses, how to increase the problem of the threshold values of the MAC Address number that each user port of the network equipment can allow.
In the prior art, general each user port of configure network devices statically MAC Address number that can allow.
Fig. 1 is the schematic diagram according to the FDB table of the network equipment of static configuration.As shown in the figure, the more uppermost MAC Address clauses and subclauses in the FDB table are distributed to first user port; Some middle MAC Address clauses and subclauses are distributed to second user port; And the like, more nethermost MAC Address clauses and subclauses are distributed to N user port.Certainly, it will be understood by those of skill in the art that foregoing description is illustrative.
Usually, Internet Service Provider (ISP) wishes the MAC Address number that each user port of limiting network equipment can insert.This means that those MAC Address that exceed each user port regulation can not be understood by the network equipment, thereby the equipment with these MAC Address can not accesses network.
Usually, the network equipment disposes the MAC Address number that each user port can allow fifty-fifty.For example, the MAC Address clauses and subclauses in the FDB of the network equipment table are 100, and the network equipment has 10 user ports, then are generally each user port and distribute 10 MAC Address clauses and subclauses.
The objective of the invention is to make the network equipment dynamically to increase/delete the user, can dynamically change for the MAC Address number of entries of utilizing thereby make.
Usually, the MAC Address clauses and subclauses in the FDB table comprise the unicast address clauses and subclauses, broadcast address clauses and subclauses and multicast address clauses and subclauses.Can static configuration FDB multicast mac address clauses and subclauses in the table, and according to circumstances, unicast mac address clauses and subclauses in the dynamic assignment FDB table and broadcasting MAC Address clauses and subclauses.
Certainly, it will be understood by those of skill in the art that also unicast mac address clauses and subclauses or broadcasting MAC Address clauses and subclauses in can static configuration FDB table, and according to circumstances, the multicast mac address clauses and subclauses in the dynamic assignment FDB table.
Summary of the invention
To achieve these goals, the present invention proposes a kind of method of filtered data base table of the dynamic-configuration network equipment, this method comprises the steps: that the user sends the access network request message of the media access control layer address entry number that comprises user's needs to the network equipment; After the network equipment is received request message, inquire about described filtered data base table, when the media access control layer address entry number that needs as the user is less than or equal to the media access control layer address entry number that filtered data base table comprises, the network equipment is accepted this user's request, the media access control layer address entry of distributing its number required for this user in filtered data base table, modification can be for media access control layer address entry number in the described filtered data base table that utilizes.
The invention allows for a kind of method of filtered data base table of the dynamic-configuration network equipment, this method comprises the steps: that the user sends the access network request message of the media access control layer address entry number that comprises user's needs to the described network equipment; After the network equipment is received request message, the query filter database table, during media access control layer address entry number that the media access control layer address entry number that needs as the user comprises greater than described filtered data base table, network equipment refusal is accepted the request of this user access network.
Preferably, above-mentioned first method also comprises when the user no longer needs access network, the network equipment is regained the media access control layer address entry in the filtered data base table of distributing to this user, and recomputates the step of media access control layer address entry number in the described filtered data base table that can supply to utilize.
Preferably, the media access control layer address entry of user's needs comprises unicast media access control layer address entry, broadcast medium access control layer address entry or multicast media access control layer address entry.
Preferably, the media access control layer address entry that filtered data base table comprises comprises unicast media access control layer address entry, broadcast medium access control layer address entry and multicast media access control layer address entry.
Preferably, multicast media access control layer address entry number in the filtered data base table is provided with by the network equipment is static, and the network equipment is with unicast media access control layer address entry in the opposite direction dispense filter database table and broadcast medium access control layer address entry.
According to the present invention, can make a user's many device access networks more easily simultaneously with MAC Address.
Description of drawings
Fig. 1 is the schematic diagram according to the FDB table of the network equipment of static configuration;
Fig. 2 has shown the annexation schematic diagram between the network equipment and the user;
Fig. 3 has shown the structural representation according to the network equipment of the present invention;
Fig. 4 has shown according to the FDB hoist pennants in the network equipment of the present invention;
Fig. 5 has schematically shown according to one embodiment of the present invention, the flow chart of dynamic-configuration FDB table;
Fig. 6 has shown according to the table of the FDB in the network equipment of one embodiment of the present invention multicast mac address clauses and subclauses, the distribution schematic diagram of unicast mac address clauses and subclauses and broadcasting MAC Address clauses and subclauses.
Embodiment
The present invention is further detailed explanation below in conjunction with accompanying drawing.
Fig. 2 has shown the annexation schematic diagram between the network equipment and the user.As shown in the figure, the user 211, and the user 21 2 ..., user 21N passes through circuit 221,222 respectively ..., the port 231,232 of the 22N and the network equipment 24 ..., 23N links to each other.
Fig. 3 has shown the structural representation according to the network equipment of the present invention.As shown in the figure, the network equipment comprises R-T unit 31, is used for receiving information and sending information to the user from the user; Processing unit 32 is used for the request of the access network of process user; And storage device 33, this memory device stores has the FDB table.Wherein R-T unit 31 comprises the port 231,232 shown in Fig. 2 ..., 23N.Wherein link to each other by circuit 34 between R-T unit 31 and the processing unit 32, link to each other by circuit 35 between storage device 33 and the processing unit 32.
Fig. 4 has shown according to the FDB hoist pennants in the network equipment of the present invention.
As shown in the figure, this moment, FDB table was done as a wholely to consider, rather than be that user port 1 distributes more uppermost MAC Address clauses and subclauses statically, for user port 2 distributes some middle MAC Address clauses and subclauses, be that user port N distributes more nethermost MAC Address.
Fig. 5 has schematically shown according to one embodiment of the present invention, the flow chart of dynamic-configuration FDB table.
At first, in step 51, the network equipment receives solicited message by R-T unit 31 from the user.This solicited message comprises the MAC Address number of entries of user's needs.
Then, enter step 52.In this step, the processing unit 32 of the network equipment judges that whether the MAC Address number of entries of user's request is greater than remaining available MAC Address number of entries in the FDB table.
When the MAC Address number of entries of user request in greater than the FDB table during remaining available MAC Address number of entries, enter step 53.In this step, processing unit 32 is made the decision of this user's of rejection request.
Enter step 54 then.In this step, R-T unit 31 sends a warning message to the user, and the request that does not have enough MAC Address clauses and subclauses to satisfy the user is described.
Like this, this user's processing of request process finishes.
When the MAC Address number of entries of user request in smaller or equal to the FDB table during remaining available MAC Address number of entries, enter step 55.
In step 55, processing unit 32 is created this user, enters step 56 then.
In step 56, processing unit 32 is the MAC Address clauses and subclauses of this user's request for allocation, enters step 57 then.
In step 57, processing unit 32 recomputates the MAC Address clauses and subclauses among the FDB that is stored in the storage device 33.
When the user no longer needs access network, enter step 58.
In step 58, this no longer needs the user of access network processing unit 32 deletions, regains and distributes to its MAC Address clauses and subclauses, and recomputate the MAC Address clauses and subclauses among the FDB, so that when making next user ask access network, there are enough MAC Address clauses and subclauses to satisfy next user's request.
Like this, this user's processing of request process finishes.
The MAC Address clauses and subclauses of above-mentioned user's request can be the multicast mac address clauses and subclauses, broadcast address clauses and subclauses and unicast address clauses and subclauses.
In one embodiment according to the present invention, in available MAC Address clauses and subclauses, reserve some MAC Address clauses and subclauses for multicast service, the MAC Address number of entries that promptly is used for multicast service is a static configuration.
Fig. 6 has shown according to the table of the FDB in the network equipment of one embodiment of the present invention multicast mac address clauses and subclauses, the distribution schematic diagram of unicast mac address clauses and subclauses and broadcasting MAC Address clauses and subclauses.
As shown in the figure, uppermost 1-8 clauses and subclauses keep, and the MAC Address that nethermost 448-512 clauses and subclauses are multicast service is reserved, the MAC Address of unicast service is since the 9th clauses and subclauses, extend downwards, and the MAC Address of broadcasting service extends upward since the 447th clauses and subclauses.
Certainly, it will be understood by those of skill in the art that above-mentioned unicast mac address clauses and subclauses, multicast mac address clauses and subclauses and the position of broadcasting MAC Address clauses and subclauses in the FDB table are exemplary.In according to another implementation of the invention, under the situation of the clauses and subclauses that guarantee to reserve for multicast mac address defined amount, multicast mac address clauses and subclauses even can be discontinuous are dispersed in FDB each position in showing.
Do not break away from design of the present invention and scope and can make many other changes and remodeling.Should be appreciated that to the invention is not restricted to specific execution mode, scope of the present invention is defined by the following claims.