CN103841051B - Service request control system and method - Google Patents
Service request control system and method Download PDFInfo
- Publication number
- CN103841051B CN103841051B CN201210489916.9A CN201210489916A CN103841051B CN 103841051 B CN103841051 B CN 103841051B CN 201210489916 A CN201210489916 A CN 201210489916A CN 103841051 B CN103841051 B CN 103841051B
- Authority
- CN
- China
- Prior art keywords
- service request
- service
- control point
- unit interval
- control
- 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
Abstract
The invention provides a service request control system which is applied to a router. The service request control system comprises a control point number detection module, a service number calculation module, a service number detection module and a service number limiting module. The control point number detection module is used for detecting the number of control points coupled with the router. The service number calculation module is used for calculating the number of reasonable service requests of the control points within a unit time according to the control point number and the service request response time. The service number detection module is used for detecting the number of the service requests and request sources of all the control points within the unit time. The service number limiting module is used for limiting the number of the service requests of the control points to be within a reasonable request service number within the unit time when the number of the service requests of all the control points exceeds the reasonable service request number within the unit time. The invention further provides a service request control method.
Description
Technical field
The present invention relates to a kind of service request control system and its control method.
Background technology
UPnP(Universal Plug and Play,UPnP)It is for computer and smart machine equity
Network connection and the architecture that designs, the target of UPnP is realized between each class of electronic devices such as computer, household electrical appliances, mobile device
It is seamlessly connected, makes connection and the collaborative work automatically each other of these equipment, and realizes the connection with Internet.Comprising UPnP technology
Networking products only need to be connected on network, you can start normal work.UPnP is a kind of distributed, open network architecture,
The function including the Internet components including IP, TCP, UDP, HTTP and XML and network technology is given full play to, has been matched somebody with somebody zero
There is provided interactive operation functions such as the discovery between networking gear, interface statement and the exchanges of other information on the premise of putting.Make
With UPnP, an equipment can be dynamically added network, automatically obtain an IP address, to other equipment announce it ability or
Know the presence and service of other equipment, hereafter the equipment can be communicated directly with one another, finally, the equipment can successfully be cut automatically
Circuit network connects, and will not cause unexpected problem.The basic composition of UPnP network component is control point, equipment kimonos
Business.
By UPnP network framework, each control point is easy to carry out requirement equipment through UPnP protocol to be serviced, but
When there is too many irrational service request, burden can be caused to equipment, even cause equipment to be subject to paralysis to attack.
The content of the invention
In view of this, it is necessary to which a kind of service request control system and its controlling party for limiting service request quantity is provided
Method.
The present invention provides a kind of service request control system, in being applied to router.The service request control system includes:
Number of control points detecting module, for detecting the number of control points coupled with router;Quantity of service computing module, for basis
Number of control points and in the service request response Time Calculation unit interval control point reasonable service request quantity;Quantity of service is detectd
Module is surveyed, for detecting service request quantity and the request source at all control points in the unit interval;Quantity of service limits module,
For when the service request quantity at all control points in the unit interval exceedes reasonable service request quantity, by unit interval internal control
System point service request quantity is limited in reasonable service request quantity.
The present invention provides a kind of service request control method, in being applied to router;Comprise the following steps:
The number of control points that detecting is coupled with router;
Reasonable service request quantity according to number of control points and in the service request response Time Calculation unit interval;
Control point service request source and quantity in the detecting unit interval;When the control point service request in the unit interval
When quantity exceedes reasonable service request quantity, control point service request quantity is limited in reasonable service request quantity.
Compared to prior art, the service request control system and its control method of the present invention can be according to numbers of control points
And reasonable service request quantity in the service response time unit of account time, and control point service request quantity is limited to rationally
In service request quantity, so as to router can be avoided to be subjected to the paralysis sexual assault of Connection Service request.
Description of the drawings
Fig. 1 is service request control system running environment schematic diagram of the present invention.
Fig. 2 is the better embodiment module diagram of service request control system of the present invention.
Fig. 3 is the flow chart of the better embodiment of service request control method one of the present invention.
Main element symbol description
Universal plug and play network | 10 |
Router | 100 |
Control point | 102、104、106、108、110 |
Internet | 120 |
Service request control system | 130 |
Number of control points detecting module | 132 |
Quantity of service computing module | 134 |
Quantity of service detecting module | 136 |
Quantity of service limits module | 138 |
Processor | 150 |
Memory | 170 |
Following specific embodiment will further illustrate the present invention with reference to above-mentioned accompanying drawing.
Specific embodiment
Make concrete introduction to the present invention below in conjunction with accompanying drawing.
Fig. 1 service request control system running environment schematic diagrames of the present invention.Multiple UPnP control points in the upnp network
102nd, 104,106 and 108 couple with router 100.The Jing internets 120 of router 100 are of coupled connections with UPnP control points 110.
The plurality of UPnP control points 102,104,106,108 and 110 may be, but not limited to, computer, CD/DVD players, TV,
The control points such as mobile phone, MP3 player, video camera.The plurality of UPnP control points 102,104,106,108,110 can pass through
Wired or wireless way realizes that signal connects, such as netting twine, telephone wire, Wi-Fi, Ethernet etc..The input and output of router 100 1
The UPnP dominating pair of vertices of interface and at least one access in radio should.The plurality of UPnP control points 102,104,106,108,110 and
Router 100 passes through transmission control protocol/Internet Protocol (Transmission Control Protocol/
Internet Protocol, TCP/IP) or HTTP(HTTP)Deng interconnection.
When UPnP network 10 is accessed at control point, the router 100 arranges agreement according to DynamicHost(Dynamic Host
Configuration Protocol, DHCP)Distribute IP address to control point.The plurality of UPnP control points 102,104,106 and
108 pathways realize network service by device 100, and control point 102 can be to other control points 104,106,108 and 110 pathways by device
100 send service request, and router 100 needs to calculate Optimization route device to be realized between control point 102 and other control points
Network service.
Fig. 2 is referred to, Fig. 2 is the schematic diagram of a better embodiment of service request control system 130 of the present invention.The clothes
Business request control system 130 is run in the router 100 shown in Fig. 1.The router 100 includes processor 150, memory
170.The service request control system 130 can be embedded in the operating system of router 100, also can be directly mounted at the memory
In 170, and controlled to perform by processor 150.The service request control system 130 include number of control points detecting module 132,
Quantity of service computing module 134, quantity of service detecting module 136 and quantity of service limit module 138.
The number of control points that the detecting of number of control points detecting module 132 is coupled with router 100.Specifically, when UPnP is controlled
When system point is connected by wired mode with router 100, agreement is set by inquiring about DynamicHost(Dynamic Host
Configuration Protocol, DHCP)In lease list obtain current IP address discharging quantity, each of which IP
Address one UPnP control points of correspondence.In other embodiments, can be by inquiring about bridge(Bridge)In address list obtain
The access quantity at the UPnP control points of access in radio to the router 100 in UPnP network.
When UPnP control points are wirelessly connected with router 100, the UPnP control points of wireless access are both needed to lead to
Crossing certain authentication mechanism could connect router 100, so as to router 100 can obtain the basic letter of wireless access control point
Breath such as MAC Address.The router 100 can be according to wireless access in the acquisition of information UPnP network such as MAC Address or IP address extremely
The access quantity at the UPnP control points of the router 100.
The UPnP network access control point total amount is the access quantity and wireless access at the UPnP control points of access in radio
The access quantity sum at UPnP control points.
Quantity of service computing module 134 is controlled according to number of control points and in the service request response Time Calculation unit interval
The reasonable service request quantity of point.Specifically, the reasonable quantity of service in the unit interval(Reasonable Request
Number/second, RRN)=access control point total amount(Total Number of control points, TNCP)×1
The second/ most slow-response times(Most slow Response time, ms)× ambient parameter(Environment Value, EV).
When the quantity of service computing module 134 calculates respectively the unit of access in radio control point and wireless access control point in UPnP network
Interior reasonable quantity of service RRN1 and RRN2, and RRN=RRN1+RRN2.Ambient parameter EV is by the network bandwidth, router
Routing capabilities etc. affect.Wherein ambient parameter can be turned down in the environment of rarely needed UPnP services.
All control point service request quantity in the detecting unit interval of quantity of service detecting module 136 are come with service request
Source.Specifically, the quantity of service detecting module 136 detects the service request number at access in radio UPnP control points in the UPnP network
Amount and the service request quantity at wireless access UPnP control points, and obtain the service request in the unit interval of all UPnP control points
Quantity.The quantity of service detecting module 136 also distinguishes access in radio UPnP control points by the IP address of query service request
Service request and wireless access UPnP control points service request.
Quantity of service limits the service request quantity that module 138 is used in restricted unit time.When the clothes in the unit interval
When business number of requests exceedes the reasonable quantity of service RRN in the unit interval, the quantity of service limits the initiated access of module 138 and limits
Function, within service request quantity to be limited to the reasonable quantity of service RRN in the unit interval.Specifically, when in UPnP network
When the service request quantity at the UPnP control points of access in radio exceedes reasonable quantity of service RRN1 in the unit interval, by input and output
The service request quantity of interface is limited to the UPnP numbers of control points of the RRN1 × input/output interface connection;When in UPnP network
When the service request quantity at the UPnP control points of wireless access exceedes reasonable quantity of service RRN2 in the unit interval, according to MAC ground
Location obtains the position at UPnP control points, and the service request quantity at the UPnP control points of the wireless access is limited to into the unit interval
Within interior reasonable service request amount R RN2.
Fig. 3 is seen also, Fig. 3 is the flow chart of the better embodiment of service request control method one of the present invention.
Step S301, the number of control points that the detecting of number of control points detecting module 132 is coupled with router 100.Specifically
Ground, when UPnP control points are connected by wired mode with router 100, by inquiring about DynamicHost agreement is arranged(Dynamic
Host Configuration Protocol, DHCP)In lease list obtain current IP address discharging quantity, wherein often
One IP address correspondence, one UPnP control points.In other embodiments, can be by inquiring about bridge(Bridge)In address list
Obtain the access quantity at the UPnP control points of access in radio to the router 100 in UPnP network.
When UPnP control points are wirelessly connected with router 100, the UPnP control points of wireless access are both needed to lead to
Crossing certain authentication mechanism could connect router 100, so as to router 100 can obtain the basic letter of wireless access control point
Breath such as MAC Address.The router 100 can be according to wireless access in the acquisition of information UPnP network such as MAC Address or IP address extremely
The access quantity at the UPnP control points of the router 100.
The UPnP network access control point total amount is the access quantity and wireless access at the UPnP control points of access in radio
The access quantity sum at UPnP control points.
Step S302, the quantity of service computing module 134 is according to number of control points and service request response Time Calculation list
The reasonable service request quantity at control point in the time of position.Specifically, the reasonable quantity of service in the unit interval(Reasonable
Request Number/second, RRN)=access control point total amount(Total Number of control points,
TNCP)× 1 second/ most slow-response times(Most slow Response time, ms)× ambient parameter(Environment
Value, EV).The quantity of service computing module 134 calculates respectively access in radio control point and wireless access control in UPnP network
Reasonable quantity of service RRN1 and RRN2 in the unit interval of system point, and RRN=RRN1+RRN2.Ambient parameter EV receives Netowrk tape
Width, routing capabilities of router etc. affect.Wherein ambient parameter can be turned down in the environment of rarely needed UPnP services.
Step S303, the control point service request quantity in the detecting unit interval of quantity of service detecting module 136 and service
Request source.Specifically, the quantity of service detecting module 136 detects the service at access in radio UPnP control points in the UPnP network
Number of requests and the service request quantity at wireless access UPnP control points, and obtain the clothes in the unit interval of all UPnP control points
Business number of requests.The quantity of service detecting module 136 also distinguishes access in radio UPnP by the IP address of query service request
The service request at control point and the service request at the UPnP control points of wireless access.
Step S304, judges whether the service request quantity in the unit interval exceedes the reasonable service number in the unit interval
Amount.Specifically, whether the service request quantity at access in radio UPnP control points in the unit interval is judged more than RRN1, and during unit
Whether the service request quantity at interior wireless access UPnP control points is more than RRN2.When access in radio UPnP controls in the unit interval
When the service request quantity at point or wireless access UPnP control points exceedes the reasonable quantity of service in the unit interval, execution step
S305.When within reasonable quantity of service of the service request quantity in the unit interval within the unit interval, execution step S303.
Step S305, the quantity of service limits the initiated access limitation function of module 138, and service request quantity is limited to into list
Within reasonable quantity of service RRN in the time of position.Specifically, when the service at the UPnP control points of access in radio in UPnP network please
When asking quantity to exceed reasonable quantity of service RRN1 in the unit interval, the service request quantity of input/output interface is limited to into RRN1
The UPnP numbers of control points of × input/output interface connection;When the service at the UPnP control points of wireless access in UPnP network please
When asking quantity to exceed reasonable quantity of service RRN2 in the unit interval, the position at UPnP control points is obtained according to MAC Address, and should
The service request quantity at the UPnP control points of wireless access is limited in the unit interval within reasonable service request amount R RN2.
Using above-mentioned service request control system and its control method can according to number of control points and service response when
Between reasonable service request quantity in the unit of account time, and control point service request quantity is limited to into reasonable service request quantity
It is interior, so as to plug and play network can be avoided to be subjected to the paralysis sexual assault of Connection Service request.
Above example is only unrestricted to illustrate technical scheme, although with reference to preferably implementing to the present invention
Be described in detail, it will be understood by those within the art that, technical scheme can be modified or
Equivalent, without deviating from the spirit and scope of technical solution of the present invention.
Claims (13)
1. a kind of service request control system, in being applied to router, it is characterised in that the service request control system includes:
Number of control points detecting module, for detecting the number of control points coupled with router;
Quantity of service computing module, for control point according to number of control points and in the service request response Time Calculation unit interval
Reasonable service request quantity, reasonable service request quantity=access control point total amount × 1 at control point in the unit interval
Unit interval/response time × ambient parameter;
Quantity of service detecting module, the service request quantity and service request for detecting all control points in the unit interval is come
Source, the service request source includes the service request of wired access control point and the service request of wireless access control point, leads to
Cross the IP address of query service request to distinguish the service request source;
Quantity of service limits module, for exceeding reasonable service request when the service request quantity at all control points in the unit interval
During quantity, control point service request quantity in the unit interval is limited in reasonable service request quantity.
2. service request control system as claimed in claim 1, it is characterised in that the number of control points detecting module is logical
The discharging quantity that inquiry DynamicHost arranges the lease list acquisition current IP address in agreement is crossed, is coupled with router with obtaining
Number of control points.
3. service request control system as claimed in claim 1, it is characterised in that the number of control points detecting module passes through
The MAC Address at control point obtains the number of control points coupled with router.
4. service request control system as claimed in claim 1, it is characterised in that the unit interval is 1 second.
5. service request control system as claimed in claim 1, it is characterised in that the quantity of service computing module is calculated respectively
Reasonable service request quantity in the unit interval of the access in radio control point coupled with router and wireless access control point.
6. service request control system as claimed in claim 5, it is characterised in that an input/output interface of router with extremely
The control point connection of a few access in radio.
7. service request control system as claimed in claim 6, it is characterised in that when the access in radio control coupled with router
When the service request quantity of system point exceedes the reasonable quantity of service in the unit interval in the unit interval at access in radio control point, institute
State quantity of service restriction module and the service request quantity of the input/output interface of router is limited to into wired in the unit interval connecing
Enter the access in radio number of control points of the reasonable service request quantity × input/output interface connection at control point.
8. service request control system as claimed in claim 5, it is characterised in that router obtains wireless by MAC Address
The position of access control point.
9. service request control system as claimed in claim 8, it is characterised in that when the wireless access control coupled with router
When the service request quantity of system point exceedes the reasonable quantity of service of wireless access control point in the unit interval, according to wireless access control
The MAC Address of system point obtains the position of wireless access control point, and the service request quantity of the wireless access control point is limited
Within the reasonable service request quantity of wireless access control point in the unit interval.
10. a kind of service request control method, in being applied to router;Comprise the following steps:
The number of control points that detecting is coupled with router;
Reasonable service request quantity according to number of control points and in the service request response Time Calculation unit interval, the unit
Reasonable quantity of service=access control point total amount × 1 unit interval in time/most slow-response time × ambient parameter;
Control point service request source and quantity in the detecting unit interval, the service request source includes wired Access Control
The service request of point and the service request of wireless access control point, the service is distinguished by the IP address of query service request
Request source;When the control point service request quantity in the unit interval exceedes reasonable service request quantity, control point is serviced
Number of requests is limited in reasonable service request quantity.
11. service request control methods as claimed in claim 10, it is characterised in that the quantity of service computing module is counted respectively
The reasonable quantity of service in access in radio control point and the unit interval of wireless access control point that calculation is coupled with router.
12. service request control methods as claimed in claim 11, it is characterised in that when the access in radio coupled with router
When the service request quantity at control point exceedes the reasonable quantity of service in the unit interval in the unit interval at access in radio control point,
The quantity of service restriction module is limited to the service request quantity of the input/output interface of router wired in the unit interval
The access in radio number of control points of the reasonable service request quantity of the access control point × input/output interface connection.
13. service request control methods as claimed in claim 11, it is characterised in that when the wireless access coupled with router
When the service request quantity at control point exceedes the reasonable quantity of service of wireless access control point in the unit interval, according to MAC Address
The position of wireless access control point is obtained, and the service request quantity of the wireless access control point is limited to into nothing in the unit interval
Within the reasonable service request quantity of line access control point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210489916.9A CN103841051B (en) | 2012-11-27 | 2012-11-27 | Service request control system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210489916.9A CN103841051B (en) | 2012-11-27 | 2012-11-27 | Service request control system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103841051A CN103841051A (en) | 2014-06-04 |
CN103841051B true CN103841051B (en) | 2017-05-10 |
Family
ID=50804194
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210489916.9A Active CN103841051B (en) | 2012-11-27 | 2012-11-27 | Service request control system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103841051B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113467314B (en) * | 2021-07-15 | 2022-04-26 | 广州赛度检测服务有限公司 | Information security risk assessment system and method based on big data and edge calculation |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1906604A (en) * | 2003-12-19 | 2007-01-31 | 微软公司 | Routing of resource information in a network |
CN101569149A (en) * | 2006-12-28 | 2009-10-28 | 艾利森电话股份有限公司 | Home gateway device for providing multiple services to customer devices |
CN102684988A (en) * | 2006-04-26 | 2012-09-19 | 日本电信电话株式会社 | Load control device and method thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4546040B2 (en) * | 2003-05-12 | 2010-09-15 | キヤノン株式会社 | Network service system, service agent processing method, computer-readable storage medium storing program, and program |
-
2012
- 2012-11-27 CN CN201210489916.9A patent/CN103841051B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1906604A (en) * | 2003-12-19 | 2007-01-31 | 微软公司 | Routing of resource information in a network |
CN102684988A (en) * | 2006-04-26 | 2012-09-19 | 日本电信电话株式会社 | Load control device and method thereof |
CN101569149A (en) * | 2006-12-28 | 2009-10-28 | 艾利森电话股份有限公司 | Home gateway device for providing multiple services to customer devices |
Also Published As
Publication number | Publication date |
---|---|
CN103841051A (en) | 2014-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100789425B1 (en) | Method for sharing contents using digital living network alliance network | |
US20130179593A1 (en) | Cloud computing controlled gateway for communication networks | |
JP2020532161A (en) | Traffic statistics collection methods and devices | |
KR101458368B1 (en) | Session establishment method using relay server active connection of mobile terminal | |
US20130311570A1 (en) | Communication system for establishing p2p connections and the corresponding devices using the same | |
US9866448B2 (en) | Electronic device and method for DNS processing | |
CN106664676A (en) | Apparatus and method for providing a service connection through access layer in wireless communication system | |
US9560167B2 (en) | Network system, communication method, server, and terminal | |
CN103439934A (en) | Intelligent electrical appliance control method, server and system | |
CN103841051B (en) | Service request control system and method | |
US9774916B2 (en) | Information concentrating center capable of making P2P connections with remote client devices | |
CN101087232B (en) | An access method, system and device based on Ethernet point-to-point protocol | |
CN104349202A (en) | Video acquisition method and device thereof | |
JP2020067824A (en) | Network system and electric device | |
JP2023109707A (en) | Video analysis system and data delivery method | |
WO2006123456A1 (en) | Packet processing device, communication system, packet processing method, and program executing the method | |
US10512026B2 (en) | Technique for mediation in a residential network | |
KR100637559B1 (en) | Method for notify service of home network monitoring | |
KR101241736B1 (en) | Port forwarding configuration method, terminal device and system using the same | |
KR101454999B1 (en) | Line sharer | |
JP4636864B2 (en) | Relay equipment | |
CN102572404A (en) | Video monitoring method, system and related device based on coaxial cable network | |
JP7129663B2 (en) | Communication system and communication method | |
US20200322870A1 (en) | Camera and communication method | |
CN103685548A (en) | Method and system for processing data of content delivery network |
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 |