Specific embodiment
It is described in detail below in conjunction with accompanying drawing specific embodiment of this disclosure.It should be appreciated that this place is retouchedThe specific embodiment stated is merely to illustrate and explains the disclosure, is not limited to the disclosure.
The different type of machines of the network equipment embodies different grades of configuration.User generally considers the configuration parameter of the network equipmentTo select the type of the network equipment.For example, user according to the handling capacity (number of processing data bag per second) of fire wall, it is maximum simultaneouslySend out the configuration parameters such as connection number, newly-built connection number, vpn performances to select firewall box.
Traditional big page distribution method is the type according to equipment determining the distribution of big page.It is, each networkThe type of equipment is all to there is a specific big page to distribute number.When the network equipment is started shooting, after detection type, it becomes possible to reallySurely the big page number of system is distributed to.This is allowed for, and possessing the network equipment of the type of higher configured can support biggerConcurrent connection number, it is therefore desirable to reserve more big page internal memories as the memory space of conversational list.Therefore, traditional distribution methodIn, for the network equipment of each type, all preset the generally adaptable big number of pages of fixed and the type configurationMesh.
However, sometimes user is for the other specification (for example, vpn performances) beyond maximum concurrent connection numberDemand, and have purchased the type of higher configured.In this case, in actual applications, may be such that big page distribution is excessive, makeInto the wasting of resources.This is because, concurrently connection needs to take big page internal memory, and has some configuration parameter (for example, vpn, newly-built companiesConnect, ips etc.) big page internal memory need not be taken.Big page is distributed much, is that the internal memory of other resource allocations will lack.If userToo many concurrent connection number is not needed, it is possible to do not distribute the so much big page adaptable with high configuration type, thus have moreMany resources are used for other configurations parameter.
In view of problem above, inventor expects, the maximum concurrent connection number that can be authorized to use according to the network equipment,Distribute big page number for system.It is, the paying of the maximum concurrent connection number being used for according to user is distributing big page.In such manner, it is possible to the actual conditions of the concurrent connection number closer to user when using the network equipment, big more reasonably to distributePage.
Fig. 1 is the flow chart of the method for big page distribution that an exemplary embodiment is provided.Methods described is applied to netNetwork equipment.The network equipment can for example include firewall box, router device etc..As shown in figure 1, methods described can be withComprise the following steps.
In step s 11, when the network equipment starts, the maximum concurrent connection number that the network equipment is authorized to use is obtained.
According to the difference of internal memory, the network equipment has different types, for example, neteye firewall boxs include 4G, 8G,16G and 32G types.The type of the network equipment embodies the maximum memory that can be reached according to its hardware condition, also embodies rootThe maximum concurrent connection number that can be provided according to its hardware condition.User needs the demand according to itself after the network equipment is purchased, alsoTo buy maximum concurrent connection number.The production firm of the network equipment authorizes the network equipment according to the situation of user charges mostBig concurrent connection number.Generally, the maximum concurrent connection number that the network equipment is authorized to use is embodied in production firm in systemSetting in license, it is, the maximum concurrent connection number arranged in the license of a network equipment is the network and setsThe standby maximum concurrent connection number being authorized to use.
Above-mentioned maximum concurrent connection number, can be that the production firm of the network equipment exists according to the current paid cases of userThe maximum concurrent connection number arranged in the license of the network equipment.It is understood that in a network equipment, in licenseThe maximum concurrent connection number that can be provided according to its hardware condition less than or equal to the network equipment of maximum concurrent connection number.
Generally, the maximum concurrent connection number that user can be according to the demand of itself for the network equipment is paid.Due to the network equipmentMaximum concurrent connection number in license is closely connected with the paid cases of user, therefore, also with practical application in concurrently connectConnect number relatively.
Described below maximum concurrent connection number refers to the maximum concurrent connection number that the network equipment is authorized to use.
In step s 12, according to the maximum concurrent connection number, the big page number needed for the system of the network equipment is determined.
Wherein, with correlation technique in, the type of equipment is corresponding with big page number similarly, in the embodiment, the netThe maximum concurrent connection number that network equipment is authorized to use can be corresponding with big page number.For example can be implemented simply as:FirstBig page number corresponding with each maximum concurrent connection number is set, is concurrently connected when the maximum that the network equipment is authorized to use is gotWhen connecing several, directly by its corresponding big page number, the big page number being defined as needed for system.
In step s 13, it is big page number determined by system distribution.
By above-mentioned technical proposal, the maximum concurrent connection number being authorized to use according to the network equipment is distributing big number of pagesMesh.Because the maximum concurrent connection number can more embody actual Installed System Memory service condition than type, therefore, according to maximum concurrentConnect number to distribute big page number, can avoid because big page distributes the problem that the not enough network equipment for causing can not start, andAnd, the wasting of resources that big page distribution is excessively caused is avoided to a certain extent.
For the distribution for more accurately carrying out big page, size and each session of big page can also be further consideredSize, the big page number come needed for determination system.Fig. 2 is the method for big page distribution that another exemplary embodiment is providedFlow chart.On the basis of Fig. 1, as shown in Fig. 2 with step S11 simultaneously, and before step S121, methods described may be used alsoTo comprise the following steps.
In step S111, the size of the big page in the network equipment is obtained.
In step S112, the size of each session in the network equipment is obtained.
In this embodiment, according to maximum concurrent connection number, the step of the big page number needed for the system of the network equipment is determinedSuddenly (step S12) can include step S121.
In step S121, in the size and the network equipment of the big page in maximum concurrent connection number, the network equipmentEach session size come the big page number needed for the system for determining the network equipment.
In the embodiment, the big page number that for example can come in the following manner needed for determination system:
Wherein, HnumBig page number for needed for the system of the network equipment;N is maximum concurrent connection number;Sess sets for networkThe size of each session in standby;HsizeFor the size of the big page in the network equipment.
Wherein, size H of the big page in the network equipmentsizeCan be predetermined.For example, Neteye series of network equipment meshSize H of the front big page for usingsize=2M.Size Sess of each session in the network equipment could be arranged to according to typeIt is different and different.For example, in 4G the and 8G types of Neteye series of network equipment, the size of each session is Sess=560B;In 16G and 32G types, the size of each session is Sess=704B.
For example, when in license arrange maximum concurrent connection number be n=5,000,000, the size of each sessionFor Sess=560B, and the size of big page is HsizeDuring=2M, the big page number needed for the system of the network equipment is
In the embodiment, on the basis of maximum concurrent connection number, it is also contemplated that the size of big page and each sessionSize, the big page number come needed for determination system so that the big page number of distribution more conforms to actual demand, are ensureing that network setsWhile standby normal operation, the wasting of resources is reduced.
In the embodiment shown in Figure 2, step S111, step S112 and step S11 are to perform simultaneously.May be appreciatedIt is, in other embodiments, as long as before step S121, can perform in any order between these three steps.
In the another embodiment of the disclosure, the size of reserved internal memory can also be further considered, needed for carrying out determination systemBig page number.Fig. 3 is the flow chart of the method for big page distribution that further example embodiment is provided.On the basis of Fig. 1On, as shown in figure 3, with step S11 simultaneously, and before step S122, methods described can also be comprised the following steps.
In step S111, the size of the big page in the network equipment is obtained.
In step S112, the size of each session in the network equipment is obtained.
In step S113, the size of the reserved internal memory in the network equipment is determined.
In this embodiment, according to maximum concurrent connection number, the step of the big page number needed for the system of the network equipment is determinedSuddenly (step S12) can include step S122.
It is every in size, the network equipment of the big page in maximum concurrent connection number, the network equipment in step S122The size of the size of individual session and reserved internal memory is come the big page number needed for the system for determining the network equipment.
In the embodiment, the big page number that for example can come in the following manner needed for determination system:
Wherein, x is the size of the reserved internal memory in the network equipment.The reserved internal memory is included for other moneys in the network equipmentThe internal memory for using is reserved in source, can preset different reserved internal memories according to the difference of equipment type.For example, it is serial in NeteyeIn 4G the and 8G types of firewall box, the size for reserving internal memory is x=300M;In 16G and 32G types, internal memory is reservedSize is x=500M.
In the embodiment, on the basis of maximum concurrent connection number, it is also contemplated that the size of big page, each session it is bigThe big page number that the size of little and reserved internal memory is come needed for determination system so that the big page number of distribution more conforms to realityDemand, while ensureing that the network equipment normally runs, reduces the wasting of resources.
In the embodiment shown in fig. 3, step S111, step S112, step S113 and step S11 are to perform simultaneously.It is understood that in other embodiments, as long as before step S122, can be according to arbitrarily suitable between this four stepsSequence is performing.
In the another embodiment of the disclosure, the actual need caused due to due to empty memory can also be further consideredAsk more than the situation obtained by calculating, the big page number come needed for determination system.Fig. 4 is being used for for further example embodiment offerThe flow chart of the method for big page distribution.On the basis of Fig. 3, as shown in figure 4, after step s 11, and step S1221 itBefore, methods described can also include step S110.
In step s 110, according to maximum concurrent connection number, it is determined that the empty factor.
Wherein, empty factor representation is caused due to due to empty memory, actual demand internal memory with calculate gained internal memoryBetween gap coefficient, can be obtained by experience or the mode of test.The empty factor can be related to maximum number of concurrent.ExampleSuch as, when maximum number of concurrent is less than predetermined threshold value, the first empty factor can be taken, when maximum number of concurrent is more than described predeterminedDuring threshold value, the second empty factor can be taken, wherein, the first empty factor is less than the second empty factor.
Each in the embodiment, in size, the network equipment of the big page in maximum concurrent connection number, the network equipmentThe size of the size of session and reserved internal memory is come (step the step of big page number needed for the system for determining the network equipmentS122) step S1221 can be included.
In step S1221, in size, the network equipment of the big page in maximum concurrent connection number, the network equipmentThe size of each session, the size of reserved internal memory and the empty factor are come the big number of pages needed for the system for determining the network equipmentMesh.
In the embodiment shown in fig. 4, step S111, step S112, step S113 and step S110 are to perform simultaneously.It is understood that in other embodiments, as long as before step S1221, can be according to any between this four stepsOrder is performing.
In an embodiment of the disclosure, the big number of pages that step S1221 can be come in the following manner needed for determination systemMesh:
Wherein, α is the empty factor, and 0 < α < 1.For example, when the maximum number of concurrent arranged in license is less than 5,000,When 000, α can take 0.28;When the maximum number of concurrent arranged in license is more than 5,000,000, α can take 0.3.
In the embodiment, in maximum concurrent connection number, the size of big page, the size of each session, the size of reserved internal memoryOn the basis of, it is also contemplated that the empty factor, the big page number come needed for determination system so that the big page number of distribution is more conformed toActual demand, while ensureing that the network equipment normally runs, reduces the wasting of resources.
The disclosure also provides a kind of for big page assigned unit, is applied to the network equipment.Fig. 5 is an exemplary embodimentThe block diagram for big page assigned unit for providing.As shown in figure 5, described can include maximum for big page assigned unit 10Concurrent connection number acquisition module 11, big page number determining module 12 and distribute module 13.
Maximum concurrent connection number acquisition module 11 is used for when the network equipment starts, and obtains the network equipment and is awardedThe maximum concurrent connection number that power is used.
Big page number determining module 12 is used for according to the maximum concurrent connection number, determines the system institute of the network equipmentThe big page number for needing.
Distribute module 13 is used for the big page number determined by system distribution.
Alternatively, described device 10 can also include big page acquiring size module, session acquiring size module.
Big page acquiring size module, for obtaining the network equipment in big page size.
Session acquiring size module, for obtaining the network equipment in each session size.
In the embodiment, the big page number determining module 12 can include the first big page number determination sub-module.
First big page number determination sub-module is used for the big page in the maximum concurrent connection number, the network equipmentSize and the network equipment in each session size come the big page needed for the system for determining the network equipmentNumber.
Alternatively, described device 10 can also include big page acquiring size module, session acquiring size module, reserved internal memoryDetermining module.
Big page acquiring size module is used to obtain the size of the big page in the network equipment.
Session acquiring size module is used to obtain the size of each session in the network equipment.
Reserved internal memory determining module is used to determine the size of the reserved internal memory in the network equipment.
In the embodiment, big page number determining module 12 can include second largest number of pages mesh determination sub-module.
Second largest number of pages mesh determination sub-module can be used for according in the maximum concurrent connection number, the network equipmentThe size of the size of each session in the size of big page, the network equipment and the reserved internal memory is determining the netBig page number needed for the system of network equipment.
Alternatively, described device 10 can also include empty factor determining module.
Empty factor determining module can be used for according to the maximum concurrent connection number, it is determined that the empty factor.
In the embodiment, the second largest number of pages mesh determination sub-module can include the third-largest number of pages mesh determination sub-module.
The third-largest number of pages mesh determination sub-module is used for the big page in the maximum concurrent connection number, the network equipmentSize, the network equipment in the size of each session, the size of the reserved internal memory and the empty factor, comeDetermine the big page number needed for the system of the network equipment.
Alternatively, the third-largest number of pages mesh determination sub-module can in the following manner determine the network equipmentBig page number needed for system:
Wherein, HnumBig page number for needed for the system of the network equipment;N is the maximum concurrent connection number;SessFor the size of each session in the network equipment;X is the size of the reserved internal memory in the network equipment;α is the skyThe hole factor;HsizeFor the size of the big page in the network equipment.
With regard to the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the methodEmbodiment in be described in detail, explanation will be not set forth in detail herein.
By above-mentioned technical proposal, the maximum concurrent connection number being authorized to use according to the network equipment is distributing big number of pagesMesh.Because the maximum concurrent connection number can more embody actual Installed System Memory service condition than type, therefore, according to maximum concurrentConnect number to distribute big page number, can avoid because big page distributes the problem that the not enough network equipment for causing can not start, andAnd, the wasting of resources that big page distribution is excessively caused is avoided to a certain extent.
The preferred embodiment of the disclosure is described in detail above in association with accompanying drawing, but, the disclosure is not limited to above-mentioned realityThe detail in mode is applied, in the range of the technology design of the disclosure, various letters can be carried out with technical scheme of this disclosureMonotropic type, these simple variants belong to the protection domain of the disclosure.
It is further to note that each particular technique feature described in above-mentioned specific embodiment, in not lanceIn the case of shield, can be combined by any suitable means.In order to avoid unnecessary repetition, the disclosure to it is various canThe combination of energy is no longer separately illustrated.
Additionally, can also be combined between a variety of embodiments of the disclosure, as long as it is without prejudice to thisDisclosed thought, it should equally be considered as disclosure disclosure of that.