CN106411784B - Global resource distribution method and device - Google Patents
Global resource distribution method and device Download PDFInfo
- Publication number
- CN106411784B CN106411784B CN201610971818.7A CN201610971818A CN106411784B CN 106411784 B CN106411784 B CN 106411784B CN 201610971818 A CN201610971818 A CN 201610971818A CN 106411784 B CN106411784 B CN 106411784B
- Authority
- CN
- China
- Prior art keywords
- resource
- global
- global resource
- local
- veneer
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
This application provides global resource distribution method and devices.In the application, break global resource specification in existing global resource scheme to limit, the global resource ID that global master control borad is global resource distribution is no longer synchronized to each veneer, but a Local resource ID with global resource ID with mapping relations is distributed in the matched downlink board of global resource, Local resource is set to be mapped to a part of global resource, global resource specification is had greatly expanded, avoids being limited bring defect because of global resource specification, improves the competitiveness of product.
Description
Technical field
This application involves network communication technologies, in particular to global resource distribution method and device.
Background technique
In network communication applications, most of resource is multiple Application shares, such as extensive accurate matching list (LEM:
Large Exact Match), forwarding equivalence class (FEC) list item, go out direction packaging information resource (EEI:Egress
Encapsulation Information), address resolution protocol (ARP:Address Resolution Protocol) list item.
In network application, some are that the overall situation issues using required setting or list item, referred to as global resource.For complete
Office's resource is first global resource one global resource ID of distribution by global master control borad, and by global resource ID together with global resource
It is issued to all veneers (Slot) together.Here the address that global resource ID is substantially global resource identifies, on all veneers
The address label of same global resource is sensible same.
The resource specification of each veneer is generally different in system.The maximum specification of global resource is limited to each list in system at present
The smallest specification of value in the global resource specification of plate.By taking global resource is ARP entry as an example, if ARP entry on Slot1
Maximum specification is 32K, and the maximum specification of the upper ARP entry of Slot2 is 64K, and the maximum specification of the upper ARP entry of Slot3 is 128K, then
The maximum specification of global resource on global master control borad can only be limited as 32K, so limit the ARP maximum specification of whole system as
32K, this causes number of users bring specification requirement growing in large-scale data center network to be unable to satisfy.
Summary of the invention
This application provides global resource distribution method and devices to be avoided with breaking the limitation of global resource specification because of the overall situation
Resource specification limits bring defect.
A kind of global resource distribution method, this method are applied to veneer, comprising:
When this veneer is as the matched downlink board of global resource, one is being locally-assigned with global resource ID with reflecting
The Local resource ID of relationship, and foundation and the matched hardware table item of global resource are penetrated, the index of hardware table item is Local resource ID,
Global resource ID is the mark that global master control borad is global resource distribution;
Message is received, the global resource ID according to message carrying, which is found, with global resource ID there is the part of mapping relations to provide
Source ID E-Packets according to the hardware table item that index is Local resource ID.
A kind of global resource distributor, the device are applied to veneer, comprising:
Processing unit is identified, for being locally-assigned one in this veneer downlink board matched as global resource
There is the Local resource ID of mapping relations with global resource ID, and establish and the matched hardware table item of global resource, hardware table item
Index be Local resource ID, global resource ID be global master control borad be global resource distribution mark;
Message process unit, for receiving message, the global resource ID carried according to message is found and global resource ID tool
There is the Local resource ID of mapping relations, E-Packets according to the hardware table item that index is Local resource ID.
As can be seen from the above technical solutions, the present invention has broken global resource specification limit in existing global resource scheme
The global resource ID that global master control borad is global resource distribution is no longer synchronized to each veneer, but matched in global resource by system
Downlink board distribute one with global resource ID with mapping relations Local resource ID, so that Local resource is mapped to global money
The a part in source has greatly expanded global resource specification, avoids being limited bring defect because of global resource specification, improves product
Competitiveness.
Detailed description of the invention
Fig. 1 is method flow diagram provided by the invention;
Fig. 2 is each veneer resource occupation schematic diagram provided by the invention;
Fig. 3 is embodiment schematic diagram provided by the invention;
Fig. 4 is that global resource distributes schematic diagram in existing scheme;
Fig. 5 is global resource specification schematic diagram in existing scheme;
Fig. 6 is that global resource provided by the invention distributes schematic diagram;
Fig. 7 is global resource specification schematic diagram provided by the invention;
Fig. 8 is schematic device provided by the invention.
Specific embodiment
Although global master control borad has the global resource ID for global resource distribution, because not having on global master control borad
There is exchange chip, do not do hardware table item and issue, in contrast the global resource ID having is the index of one " void ", do not have to
In instructing message to forward, also, because not having exchange chip on global master control borad, the not limitation of hardware table item is therefore, global
Global resource ID on master control borad can extend on demand completely, it is not necessary that be restricted.
Based on this, the application has broken the limitation (limitation of global resource maximum specification in existing global resource allocation plan
For the minimum gauge in the global resource specification of all veneers), it is no longer that the global of global resource distribution provides by global master control borad
Source ID is synchronized to each veneer, but distributing one in the matched downlink board of global resource has mapping relations with global resource ID
Local resource ID, so that Local resource is mapped to a part of global resource, have greatly expanded global resource specification, avoid because complete
The maximum specification of office's resource allocation is limited to the smallest specification of the Board bring defect of specification, improves the competitiveness of product.
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments
The present invention is described in detail.
Referring to Fig. 1, Fig. 1 is method flow diagram provided by the present application.As shown in Figure 1, the process can comprise the following steps that
Step 101, global master control borad selects only from specified global resource ID range when global resource is applied in application
The global resource ID of a free time distributes to global resource one by one, and the global resource ID distributed for global resource is handed down to each list
Plate.
As an embodiment of the present invention, global resource ID range here is the lowest address from veneer address space
The one section of continuation address range started.Alternatively,
Global resource ID range is one section of continuation address range since the highest address of veneer address space.
Step 102, veneer is provided being locally-assigned one with global in this plate downlink board matched as global resource
Source ID has the Local resource ID of mapping relations, and establishes and be with the matched hardware table item of global resource, the index of hardware table item
Local resource ID.
In the present invention, as one embodiment, in step 102, distribution one has mapping relations with global resource ID
Local resource ID include:
An idle Local resource ID is selected from specified Local resource ID range,
Using the Local resource ID selected as the Local resource ID with global resource ID with mapping relations.In this way,
Veneer will locally have the mapping relations of global resource ID Yu Local resource ID.Fig. 2 illustrated global resource ID and office
The mapping relations of portion's resource ID.
As one embodiment, when global resource ID range is the Duan Lian since the lowest address of veneer address space
When continuous address range, Local resource ID here ranges preferably from the Duan Lianxu since the highest address of veneer address space
Address range;When global resource ID range is one section of continuation address range since the highest address of veneer address space,
Local resource ID ranges preferably from one section of continuation address range since the lowest address of veneer address space.
As one embodiment, in step 102, existing hardware list item similar with the matched hardware table item of global resource is established
Establish mode.By global resource be ARP entry for, then veneer establish with the matched hardware table item of global resource concretely with
The corresponding hardware table item of the ARP entry that this veneer learns.
Step 103, veneer receives message, and the global resource ID carried according to message is found with global resource ID with mapping
The Local resource ID of relationship E-Packets according to the hardware table item that index is the Local resource ID found.
So far, process shown in FIG. 1 is completed.
Process shown in Fig. 1 is described in detail by one embodiment so that global resource is ARP entry as an example below:
Referring to Fig. 3, Fig. 3 is embodiment schematic diagram provided by the invention.In Fig. 3, host (Host) A and Host B does not exist
The same network segment, by taking Host A sends IP datagram text to Host B as an example, then,
Host A checks that the purpose IP address (i.e. the IP address of Host B) of IP datagram text is in different from this Host A
Network segment, then IP datagram text is sent to gateway by Host A.
After gateway receives the IP datagram text of Host A transmission, purpose IP address matching is searched from local ARP table
ARP entry (namely the corresponding ARP entry of Host B);
Gateway finds ARP entry, then carries out frame encapsulation to IP datagram text using the MAC Address in ARP entry,
And IP datagram text is sent to Host B.The present embodiment is not by taking gateway finds ARP entry as an example, then,
Gateway does not find ARP entry, then caches IP datagram text, then sends an ARP with broadcast mode
Request message.Transmitting terminal IP address and transmitting terminal MAC Address in ARP request message be respectively gateway IP address and
MAC Address, target ip address are the IP address of Host B, and destination-mac address be broadcast MAC address (such as the full 0 set
MAC Address).
After Host B receives the ARP request message of gateway broadcast, compare the IP address and ARP request of this Host B
Target ip address in message, both discoveries are identical, then learn the matched ARP of IP address with transmitting terminal in ARP request message
List item, ARP entry include the IP address of transmitting terminal and MAC Address, exit port (reception ARP request message in ARP request message
Port).Host B sends arp response message to gateway with mode of unicast later, and arp response message carries Host B's
MAC Address.
Gateway receives the arp response message that Host B is sent, and learns the matched ARP of IP address of one with Host B
List item, ARP entry include at least: IP address, MAC Address, the exit port (port for receiving arp response message) of Host B.
Also, the IP datagram text of caching is also carried out frame encapsulation using the ARP entry of the foundation and sent to Host B by gateway.
In the above description, the process of Host B and gateway study ARP entry is also that ARP entry issues process,
Need to apply global resource ID in this stage to issue ARP entry.Only compared below by the ARP study with gateway
Existing scheme and the present invention:
Prior art:
According to prior art, then when issuing ARP entry (being denoted as ARP entry 1), the overall situation of gateway is main
Controlling plate is that ARP entry 1 distributes a global resource ID (being denoted as Global ID1), and is synchronized to each veneer of gateway (i.e.
Slot1 to Slot3), it is specific as shown in Figure 4.
Similarly, when issuing another ARP entry (being denoted as ARP entry 2), the global master control borad of gateway is ARP
List item 2 distributes a global resource ID (being denoted as Global ID2), and is synchronized to each veneer of gateway (i.e. Slot1 is extremely
Slot3);When issuing ARP entry (being denoted as ARP entry 3) again, the global master control borad of gateway is the distribution of ARP entry 3
One global resource ID (being denoted as Global ID3), and be synchronized to gateway each veneer (i.e. Slot1 to Slot3), specifically
As shown in Figure 4
Since each veneer of gateway will distribute study of the identical a part of resource for ARP entry, it is assumed that
The resource specification of each veneer A RP list item is up to 32K, then the ARP maximum specification of whole system is also just 32K, specifically such as Fig. 5 institute
Show.
The present invention program:
According to process as shown in Figure 1 provided by the invention, then when issuing ARP entry 1 ', the global master control of gateway
Plate is the one global resource ID (being denoted as Global ID1_1) of distribution of ARP entry 1 ', and for each veneer of gateway, in list
When plate is veneer (namely matched downlink board of ARP entry) where the exit port of ARP entry, it is with the Slot1 of gateway
For downlink board, a part with global resource ID i.e. Global ID1_1 with mapping relations is being locally-assigned in Slot1
Resource ID (is denoted as Local ID1_1), the global resource ID that global master control borad is distributed i.e. Global ID1_1 and this veneer point
The Local resource ID matched i.e. Local ID1_1, which is done, to be mapped, and mapping relations are stored in this Slot1.Wherein, Local resource ID with
Global resource ID can be different.
It is that the ARP entry 2 ' distributes a global resource when issuing, and by global master control borad for ARP entry 2 '
ID (is denoted as Global ID1_2), and for each veneer of gateway, it is veneer where the exit port of the ARP entry in veneer
When (namely the matched downlink board of the ARP entry), by taking Slot2 is downlink board as an example, Slot2 be locally-assigned one with it is complete
Office resource ID, that is, Global ID1_2 has the Local resource ID (being denoted as Local ID1_2) of mapping relations, by global master control borad
Local resource ID, that is, Local ID1_2 that global resource ID, that is, Global ID1_2 of distribution is distributed with this veneer, which is done, to be mapped, and
Mapping relations are stored in this veneer.
It is that the ARP entry 3 ' distributes a global resource when issuing, and by global master control borad for ARP entry 3 '
ID (is denoted as Global ID1_3), and for each veneer of gateway, it is veneer where the exit port of the ARP entry in veneer
When (namely the matched downlink board of the ARP entry), by taking Slot3 is downlink board as an example, Slot3 be locally-assigned one with it is complete
Office resource ID, that is, Global ID1_3 has the Local resource ID (being denoted as Local ID1_3) of mapping relations, by global master control borad
Local resource ID, that is, Local ID1_3 that global resource ID, that is, Global ID1_3 of distribution is distributed with this veneer, which is done, to be mapped, and
Mapping relations are stored in this veneer.
It should be noted that in the present invention, as a preferred embodiment, (i.e. Slot1 is extremely for each veneer in gateway
Slot3) the Local resource ID distributed can be multiplexed the same resource ID.Based on this, above-mentioned Slot2 is being locally-assigned and the overall situation
It can also be above-mentioned Local ID1_1 that resource ID, that is, Global ID1_2, which has the Local resource ID of mapping relations,.Similarly, on
It can also be upper that Slot3, which is stated, in the Local resource ID with global resource ID i.e. Global ID1_3 with mapping relations being locally-assigned
The Local ID1_1 stated.But although each veneer (Local resource ID is identical on Slot1 to Slot3), is mapped to different
Global resource ID.Local ID1_1 on Slot1 maps to Global ID1_1, and the Local ID1_1 on Slot2 is mapped to
Local ID1_1 on Global ID1_2, Slot3 maps to Global ID1_3, specific as shown in Figure 6.
Scheme through the invention, it is ensured that message is unique in the global resource ID that uplink is found, and in corresponding outlet
Local resource ID can be found on mouthful by mapping relations and does the correct forwarding of encapsulation.And pass through Local resource ID and global resource
Local resource ID is mapped to a part of global resource by the mapping relations of ID, greatly expands global resource ID.
Since each veneer of gateway will distribute study of the identical a part of resource for ARP entry, it is assumed that
The resource specification of each veneer A RP list item is up to 32K, then is applied to the present invention program as described above, the ARP of whole system
Maximum specification is that each specification of the Board is added (can reach 96K in this example), specifically as shown in fig. 7, greatly expanding complete machine ARP
Specification.
So far, the description of embodiment is completed.
Method provided by the invention is described above.The apparatus provided by the present invention will be described below: referring to
Fig. 8, Fig. 8 are structure drawing of device provided by the invention, which is applied to veneer, as shown in figure 8, the device can include:
Processing unit is identified, for being locally-assigned one in this veneer downlink board matched as global resource
There is the Local resource ID of mapping relations with global resource ID, and establish and the matched hardware table item of global resource, hardware table item
Index be Local resource ID, global resource ID be global master control borad be global resource distribution mark;
Message process unit, for receiving message, the global resource ID carried according to message is found and global resource ID tool
There is the Local resource ID of mapping relations, E-Packets according to the hardware table item that index is Local resource ID.
Preferably, Local resource ID of the mark processing unit distribution one with global resource ID with mapping relations includes:
An idle Local resource ID is selected from specified Local resource ID range,
Using the Local resource ID selected as the Local resource ID with global resource ID with mapping relations.
Preferably, the matched downlink board of global resource includes: the veneer where the exit port of global resource;
Wherein, global resource includes but is not limited to: Address Resolution Protocol ARP list item, forwarding equivalence class FEC list item.
Preferably, message process unit works as reception further in this veneer uplink veneer matched as global resource
When to message matched with global resource, global resource ID is carried on received message, and it is matched to be sent to global resource
Downlink board.
Preferably, the Local resource ID that Local resource ID and other veneers distribute is identical or different;
Local resource ID maps to different global resource ID from the Local resource ID that other veneers distribute.
So far, Fig. 8 shown device structure chart is completed.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
Claims (10)
1. a kind of global resource distribution method, which is characterized in that this method is applied to veneer, comprising:
In this veneer downlink board matched as global resource, with global resource ID there is mapping to close being locally-assigned one
The Local resource ID of system, and foundation and the matched hardware table item of the global resource, the index of the hardware table item are the office
Portion's resource ID, global resource ID are the mark that global master control borad is the global resource distribution;
Message is received, the global resource ID carried according to the message is found with the global resource ID with mapping relations
The Local resource ID, according to index be the Local resource ID hardware table item E-Packets.
2. the method according to claim 1, wherein the distribution one has mapping with the global resource ID
The Local resource ID of relationship includes:
An idle Local resource ID is selected from specified Local resource ID range,
Using the Local resource ID selected as the Local resource ID with the global resource ID with mapping relations.
3. the method according to claim 1, wherein the matched downlink board of the global resource includes: described
Veneer where the exit port of global resource;
Wherein, the global resource includes but is not limited to: Address Resolution Protocol ARP list item, forwarding equivalence class FEC list item.
4. the method according to claim 1, wherein this method further comprises:
In this veneer uplink veneer matched as the global resource, when receiving and the matched message of the global resource
When, the global resource ID is carried on received message, and be sent to the matched downlink board of the global resource.
5. the method according to claim 1, wherein the Local resource ID and other lists of veneer distribution
The Local resource ID of plate distribution is identical or different;
The Local resource ID of the distribution maps to different global resource ID from the Local resource ID that other veneers distribute.
6. a kind of global resource distributor, which is characterized in that the device is applied to veneer, comprising:
Identify processing unit, for when this veneer is as the matched downlink board of global resource, be locally-assigned one with it is complete
Office's resource ID has the Local resource ID of mapping relations, and establishes and the matched hardware table item of the global resource, the hardware
The index of list item is the Local resource ID, and global resource ID is the mark that global master control borad is the global resource distribution;
Message process unit, for receiving message, the global resource ID carried according to the message is found and the overall situation
Resource ID has the Local resource ID of mapping relations, forwards report according to the hardware table item that index is the Local resource ID
Text.
7. device according to claim 6, which is characterized in that the mark processing unit distributes one and the global money
Source ID have mapping relations Local resource ID include:
An idle Local resource ID is selected from specified Local resource ID range,
Using the Local resource ID selected as the Local resource ID with the global resource ID with mapping relations.
8. device according to claim 6, which is characterized in that the matched downlink board of global resource includes: described
Veneer where the exit port of global resource;
Wherein, the global resource includes but is not limited to: Address Resolution Protocol ARP list item, forwarding equivalence class FEC list item.
9. device according to claim 6, which is characterized in that message process unit is further in this veneer as described complete
When the resource matched uplink veneer of office, when receiving message matched with the global resource, carried on received message
The global resource ID, and it is sent to the matched downlink board of the global resource.
10. device according to claim 6, which is characterized in that the part of the Local resource ID and the distribution of other veneers
Resource ID is identical or different;
The Local resource ID maps to different global resource ID from the Local resource ID that other veneers distribute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610971818.7A CN106411784B (en) | 2016-10-28 | 2016-10-28 | Global resource distribution method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610971818.7A CN106411784B (en) | 2016-10-28 | 2016-10-28 | Global resource distribution method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106411784A CN106411784A (en) | 2017-02-15 |
CN106411784B true CN106411784B (en) | 2019-10-11 |
Family
ID=58014853
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610971818.7A Active CN106411784B (en) | 2016-10-28 | 2016-10-28 | Global resource distribution method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106411784B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113364611B (en) * | 2021-05-10 | 2022-04-15 | 烽火通信科技股份有限公司 | Resource ID management method, device, equipment and readable storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100444586C (en) * | 2006-11-06 | 2008-12-17 | 杭州华三通信技术有限公司 | Message repeat method and device |
CN101753362B (en) * | 2010-02-10 | 2014-04-30 | 中兴通讯股份有限公司 | Configuring method and device of stacking virtual local area network of distributed network device |
CN103166874B (en) * | 2013-03-25 | 2016-03-02 | 杭州华三通信技术有限公司 | A kind of message forwarding method and equipment |
US9832078B2 (en) * | 2015-01-06 | 2017-11-28 | Netapp, Inc. | Stateless resource management |
-
2016
- 2016-10-28 CN CN201610971818.7A patent/CN106411784B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106411784A (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8265081B2 (en) | Obtaining multiple port addresses by a fibre channel from a network fabric | |
CN102148749B (en) | Method and device for extending switch port | |
CN107342925B (en) | Message transmission method and device | |
US7747763B2 (en) | System and method for ensuring a device uses the correct instance of a network service | |
EP2885900B1 (en) | Auto management of a virtual device context enabled network infrastructure | |
CN102710811B (en) | Realize method and the switch of dhcp address safety distribution | |
CN101001264B (en) | Method, device, network edge equipment and addressing server for L1VPN address distribution | |
CN105245629A (en) | DHCP-based host communication method and device | |
CN102546267A (en) | Automatic configuration method of network device and management server | |
CN102185766A (en) | Unicast forwarding method and forwarding equipment for responding messages by DHCP (Dynamic host configuration protocol) server | |
CN104580029A (en) | Address distribution method and device | |
CN106464745A (en) | Dns server, client and data synchronization method | |
CN104468869A (en) | Method for allocating IP addresses to terminals and method and device for obtaining IP addresses | |
CN103997479A (en) | Asymmetric service IP proxy method and equipment | |
CN107547339B (en) | Method and device for feeding back MAC address of gateway media access control | |
CN112118322A (en) | Data synchronization method of network equipment, network equipment and system | |
CN106411784B (en) | Global resource distribution method and device | |
CN106302861B (en) | Address allocation method and device | |
US11005706B2 (en) | Method for configuring forwarding table for user equipment, apparatus, and system | |
CN104125150A (en) | Protocol message processing method, device and system | |
CN106375219B (en) | Method and device for forwarding message | |
WO2019015268A1 (en) | Network system and network configuration method thereof | |
CN110622468B (en) | Method for operating a network | |
CN110971716B (en) | Address configuration method, device, system and computer readable storage medium | |
CN106411928A (en) | Authentication method and device of client access server and VDI system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |