WO2010111877A1 - 一种防止业务路由器过载的方法、装置及系统 - Google Patents

一种防止业务路由器过载的方法、装置及系统 Download PDF

Info

Publication number
WO2010111877A1
WO2010111877A1 PCT/CN2009/076263 CN2009076263W WO2010111877A1 WO 2010111877 A1 WO2010111877 A1 WO 2010111877A1 CN 2009076263 W CN2009076263 W CN 2009076263W WO 2010111877 A1 WO2010111877 A1 WO 2010111877A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
router
resource
request message
message
Prior art date
Application number
PCT/CN2009/076263
Other languages
English (en)
French (fr)
Inventor
陈珊
李彦
唐杰
马其锋
石晓旻
王环
常恒
刘见锋
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2010111877A1 publication Critical patent/WO2010111877A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0836Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability to enhance reliability, e.g. reduce downtime
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5009Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF]
    • H04L41/5012Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF] determining service availability, e.g. which services are available at a certain point in time

Definitions

  • the present invention relates to the field of communications, and in particular, to a method, device and system for preventing overload of a service router
  • the service network is an overlay network independent of the basic physical network. It provides a series of network devices such as routers and switches with functional entities similar to the Internet Protocol (IP) network layer, making business interaction convenient and efficient for the next generation.
  • IP Internet Protocol
  • the service provides a unified, secure, and efficient collaborative work environment, enhances interoperability and collaboration between services, and provides an efficient environment for operators to face the rapid development of business layer operations in the future.
  • the core entity of the service network is the service router, which is used for routing and addressing of services. It is responsible for implementing end-to-end Quality of Service (QoS) guarantees and also responsible for ensuring interaction between functional entities in the service network. .
  • QoS Quality of Service
  • the service router Based on the unified addressing technology of the service network, the service router provides routing functions for service and resource interaction, and routes service and resource interaction messages to appropriate destinations.
  • the service router can not only determine intelligent routing messages according to the relevant policies of the service provider, but also implement intelligent service interaction and control policy functions.
  • the service router can provide specific services, trigger control, and service combinations according to related policies. High level of support. For example: When a user sends a service request, the service router can find the appropriate service feedback to the user according to the interface information and function information of the user requesting the service. Service routers can communicate with transport layer devices to ensure end-to-end QoS.
  • Embodiments of the present invention provide a method and apparatus for preventing overload of a service router.
  • a method for preventing an overload of a service router comprising: receiving, by a first service router, a service request message; determining that a service status corresponding to the service request message is a new service request, and having no resource to process the service request message, a neighboring service router of the service router sends a resource request message; a resource response message received by the neighboring service router that has the resource processing the service request message according to the resource request message; and an adjacent service router that returns the resource response message And sending a resource deployment message and the service request message, so that the neighboring service router that returns the resource response message processes the service request message.
  • a method for preventing an overload of a service router comprising: receiving, by a neighboring service router of a first service router, a resource request message sent by a first service router, where the resource request message is that the first service router does not have sufficient resources And processing, by the first service router, when the service request message corresponding to the service request message is a new service request, determining that the resource processing service request message is sent by itself, and sending a resource response message to the first service router. Receiving a resource deployment message and a service request message sent by the first service router, and processing the service request message.
  • a service router comprising: a first request message processing unit, configured to receive a service request message, and when the service corresponding to the service request message is a new service request, send the service request message to a load balancing processing unit; a load balancing unit, configured to determine whether the resource has the resource to process the service request message, and send the determined result to the service deployment unit.
  • the service deployment unit is configured to determine, in the load balancing unit, that the resource is not processed by the load balancing unit.
  • the neighboring service router of the message sends the resource deployment message and the service request message, so that the neighboring service router that returns the resource response message processes the service request message.
  • a service router comprising: a second request message processing unit, configured to receive a resource request message sent by the first service router, and receive a resource deployment message and a service request message sent by the first service router after sending the resource response message, Processing the service request message, where the resource request message is that the first service router does not have a resource to process the service request message, and the When the service status corresponding to the service request message is a new service request, the first service router sends the second load balancing unit, where it is used to determine whether it has a resource processing service request message, and the resource processing the service request message A confirmation message is sent.
  • a service routing system comprising: a first service router and at least one second service router, wherein the second service router is a neighbor service router of the first service router; and the first service router is configured to receive a service And requesting a message, determining that the service status corresponding to the service request message is a new service request, and having no resource to process the service request message, sending a resource request message to the neighboring service router of the first service router, and receiving the resource processing station
  • the neighboring service router of the service request message, the second service router sends a resource deployment message and the service request message to the second service router that returns the resource response message according to the resource response message returned by the resource request message; a service router, configured to receive a resource request message sent by the first service router, determine that the resource processing service request message is sent by itself, and send a resource response message to the first service router; receive the resource deployment message and the service request sent by the first service router. Eliminate Processing the service request message.
  • Embodiments of the present invention provide a method and apparatus for preventing overload of a service router.
  • the first service router determines that it does not have sufficient resources to process the received service request message, and then sends a resource request message to the neighboring service router of the first service router. Then, when the neighboring service router determines that there is a resource to process the service request message, the resource response message is returned to the first service router, and after receiving the resource response message, the first service router sends a resource deployment message to the service router that returns the resource response message. And the service request message, the service request is processed by the service router that returns the resource response message. In this way, the first service router can ensure that the service router is not overloaded when the traffic suddenly increases or continues to increase, and the local service router is not available, and the service interaction is convenient and efficient.
  • FIG. 1 is a flowchart of a method for preventing overload of a service router according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for preventing overload of a service router according to Embodiment 2 of the present invention
  • FIG. 3 is a flowchart of a method for preventing overload of a service router according to Embodiment 3 of the present invention.
  • FIG. 4 is a flowchart of another method for preventing overload of a service router according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a service router according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of another service router according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a service routing system according to an embodiment of the present invention. detailed description
  • FIG. 1 A method for preventing overload of a service router according to Embodiment 1 of the present invention is as shown in FIG. 1 , which specifically includes the following steps:
  • S101 The first service router receives the service request message.
  • S102 Determine that the service status corresponding to the service request message is a new service request, and if the resource does not have the resource to process the service request message, send a resource request message to a neighboring service router of the first service router.
  • S103 Receive a resource response message returned by the neighboring service router that has the resource processing the service request message according to the resource request message.
  • S104 Send a resource deployment message and the service request message to a neighboring service router that returns a resource response message, so that the neighbor service router that returns the resource response message processes the service request message.
  • the first service router determines that it does not have sufficient resources to process the received service request message, and sends a resource request message to the neighboring service router of the first service router.
  • the neighboring service router determines that the resource processes the service request message, it sends a resource deployment message and a service request message to the service router that returns the resource response message, and the service router that returns the resource response message processes the service request.
  • the first service router can ensure that the first service router is not overloaded when the traffic suddenly increases or continues to increase, and the local service router is not available, and the service interaction is convenient and efficient.
  • a method for preventing overload of a service router according to Embodiment 2 of the present invention is as shown in FIG. 2, and specifically includes the following steps: S201: The neighboring service router of the first service router receives the resource request message sent by the first service router, where the resource request message is that the first service router has no resources to process the service request message, and the When the service status corresponding to the service request message is a new service request, the first service router sends the service status;
  • S203 Receive a resource deployment message and a service request message sent by the first service router, and process the service request message.
  • the first service router determines that it does not have sufficient resources to process the received service request message, and sends a resource request message to the neighboring service router of the first service router.
  • the device returns a resource response message to the first service router, and receives the resource deployment message and the service request message sent by the first service router, and the adjacent service that returns the resource response message.
  • the router service router processes the service request. In this way, the first service router can ensure that the first service router is not overloaded when the traffic suddenly increases or continues to increase, and the local service router is not unavailable, and the service interaction is convenient and efficient.
  • a method for preventing overload of a service router according to Embodiment 3 of the present invention is as shown in FIG. 3, and specifically includes the following steps:
  • the first service router determines that the service status is a new service request, and determines that no resource processes the service request message, and sends a resource request message to the neighbor service router of the first service router. ;
  • Determining that there is no resource to process the service request message specifically includes: determining, by the first service router, that the service status of the service is a new service request, checking a value of the used resource, and obtaining a value of the service required resource corresponding to the service request message; Determining that the sum of the value of the service-occupied resource corresponding to the service request message and the value of the self-used resource is higher than or equal to a preset threshold.
  • the neighboring service router of the first service router does not specifically refer to a certain service router, but refers to multiple or all service routes adjacent to the first service router except the first service router. That is, if the first service router has multiple adjacent service routers, and the first service router determines that it has no resources to process the service request message, the first service router approaches the adjacent multiple or all services. The router sends a resource request message.
  • the neighboring service router of the first service router determines that the resource processes the service request message, and returns a resource response cancellation to the first service router.
  • the resource request message includes the value of the resource that the service needs to occupy, and checks the value of the resource that is used by the service. If the sum of the values of the used resources is lower than the preset threshold, it is determined that the resource processing service request message is present, and the resource response message is returned to the first service router.
  • the first service router After receiving the resource response message, the first service router sends a resource deployment message to the neighboring service router that returns the resource response message, so that the neighbor service router that returns the resource response message processes the service request message.
  • the first service router determines that it does not have sufficient resources to process the received service request message, and sends a resource request message to the neighboring service router of the first service router. Then, the neighboring service router determines whether there is a resource to process the service request. If there is a resource to process the service request, the resource response message is returned to the first service router, and the first service router receives the resource response message and returns a resource response message. The neighboring service router sends a resource deployment message, and the neighboring service router that returns the resource response message processes the service request. In this way, the first service router can ensure that the service router is not overloaded when the traffic suddenly increases or continues to increase, and the local service router is not available, and the service interaction is convenient and efficient.
  • the third embodiment of the present invention further includes: after receiving the resource response message, the first service router further sends a service request message to the neighboring service router that returns the resource response message, so that the second service router processes the The service request message, where the service request message is merged in the resource deployment message, sent to the neighboring service router that returns the resource response message, or the service request message and the resource deployment message are separately sent.
  • An adjacent service router that returns a message to the return resource is optionally:
  • the resource response message contains a valid time, and the neighboring service router that returns the resource response message processes the service request message within the valid time.
  • the first service router after receiving the resource response message, the first service router further sets a transit policy, and when the new service request message is received subsequently, the new service request message is forwarded to the adjacent service router that returns the resource response message, where The neighboring service router that returns the resource response message is processed.
  • the transitive policy of the embodiment of the present invention further includes a valid time, and when the new service request message is received, the new service request message is forwarded to the neighboring service router that returns the resource response message, where the new embodiment of the present invention is new.
  • the service request message is a message of the same service as the service request message processed by the neighboring service router that returns the resource response message.
  • the neighboring service router that returns the resource response message further sends a routing table update message to the neighboring service router of the first service router, where the routing table update message includes Returning the address of the neighboring service router of the resource response message, so that the other neighboring service routers of the first service router send the new service request message to the new service request message belonging to the first service router.
  • the neighboring service router that returns the resource reply message may further include an effective time, when the other neighboring service routers of the first service router receive the new service request message belonging to the first service router, the new service is valid within the valid time.
  • a request message is sent to the neighboring service router that returns the resource reply message.
  • the address of the neighboring service router of the first service router may be carried in the resource request message.
  • the neighboring service router that returns the resource response message sends the resource response message
  • it also sends a release information update message to the service directory
  • the release information update message may include the address of the neighboring service router that returns the resource response message
  • the address of the first service router that includes the sending resource request message may include a service identifier that uniquely identifies the service, so that the service directory can update the corresponding release information of the service in time after receiving the release information update message.
  • the subsequent new service request message for the serviced service is routed by the service router to the neighboring service router that returns the resource response message according to the release information recorded in the service directory.
  • the information release message of the embodiment of the present invention may further include a valid time, the new service request message of the service within the valid time.
  • the service router is routed to the neighboring service router that returns the resource response message; after the valid time expires, the new service request message of the service is routed by the service router to the first service router.
  • FIG. 4 Another method for implementing overload prevention of a service router in the embodiment of the present invention is as shown in FIG. 4.
  • the service router A is a previous hop router of the service router B
  • the service router B is a service router that originally processes the service request message S1, due to resources.
  • the restriction cannot process the new service request message S1, and the request service message other service routers handle the service.
  • Service routers A, C, and D are service routers adjacent to service router B.
  • the service router A When the service router A receives the service request message requesting service S1, it sends a service request message to the service router B according to the routing table information, and the service router B determines the message, if the service request message is a new request message and the service router B does not have enough After processing the request message, the resource sends a resource request message to the adjacent service router C and the service router D.
  • the service router D sends a resource deployment message of the service S1 because the resource router D has sufficient resources to respond to the resource request message.
  • service router A updates service S1 routing table information.
  • the specific process includes:
  • the service router A receives a service request message sent by a user or another service router, where the service request message requests a processing service S1, where the service request message includes a service identifier.
  • the service router A searches for the service router to which the service belongs from the service directory according to the service identifier, and sends the service request message to the service router to which the service belongs.
  • the service router A searches for the service router from the service directory according to the service identifier.
  • the service router belongs to the service router B, and sends the service request message to the service router B according to the address of the service router B in the routing table information.
  • the service router B After receiving the service request message, the service router B obtains the service identifier from the service request message, and determines, according to the service identifier, that the service router B is the home service router of the service corresponding to the service request message, and obtains the service identifier according to the service identifier. The status of the service, and parsing the service status. If the service status is a subsequent request message, the service request message is processed, that is, the service status of the request message is updated, for example, from service status 1 to service status 2, and the service is changed.
  • the request message is sent to the service; if the service status is a new request message, the query acquires the service S1 and needs to occupy the resource, and checks that the service router B itself has used the resource; if the service S1 needs to occupy the resource and the service If the sum of the resources used by the router B itself is higher than or equal to the preset threshold, the resource request message is sent to the neighboring router. If the sum of the resource occupied by the service S1 and the resource used by the service router B itself is lower than a preset threshold, the service request message is processed.
  • the memory usage indicates the resource usage.
  • the resource usage can be expressed in two ways: You can use the resource usage. For example, the memory usage of the service router is already 80%. You can also use the actual resource usage, for example. : The memory of the service router has been occupied by 1MB (megabyte, megabytes). If the service routers eight, B, C, and D are identical service routers, both methods can be used. If the performance of the service routers eight, B, C, and D are different, they can only be occupied by the resources actually used.
  • the service routers eight, B, C, and D are identical service routers, and that the resource occupancy rate of the service router B is 80%, and the resource occupancy rate of the service router C is 80%, the resource occupancy rate of the service router D is 20%, the resource occupied by the service S1 is 10%, and the threshold of each router is 90%. It is also assumed that the service router B analyzes the service S1 request message is a new request message, the resource occupancy rate of the service S1 is 10%, and the resource occupancy rate of the service router B is 80%, and the router setting threshold is 90%. It is judged that the service router B cannot process the service request message.
  • S404 According to the foregoing service router B, it is determined that the service S1 cannot be processed, and according to the routing table information, the addresses of the adjacent service routers C and the service routers D of the service router B are obtained, and the adjacent service routers C and services are obtained according to the foregoing addresses. Router D sends a resource request message.
  • the routing table information records the address of the neighboring service router that includes the service router.
  • the resource request message includes the required information: the message type and the service information, where the service information may include information such as the service identifier, the service address, the service status, and the service required resources, and the resource request message further includes an option: the last hop service router address and The effective time, where the last hop service router refers to the previous service router that is routed to the current service router in the routing process, for example, in the embodiment of the present invention, when routing the service request message of the service S1 Service Router A is the last hop service router of Service Router B.
  • the specific parameters of the resource request message are described as follows: Message type: Oc-REQ, identifies the message as a resource request message; service information, including the identity (ID), the service identifier uniquely identifies the service, such as 12345; service address, such as sip@weather.web.sina; In the state, the port 0 indicates the initial state, and the service is a new service request.
  • the service needs to occupy resources, such as 20, which indicates that the memory occupancy needs to be 20%.
  • the service occupied resources may include: memory resource occupancy rate, In the embodiment of the present invention, only the memory resource occupancy rate is used for description, and other resource occupation processing methods are similar.
  • Last hop router address sip@192.168.1.1 ;
  • Valid time For example, 60min, indicating that the adjacent service router shares the new service request processing time for processing service S1 is 60 minutes, after 60 minutes of valid time is over, service router B New business request for S1 can be reprocessed; resource request message field format
  • the service router C and the service router D respectively analyze the resource request message to determine whether there is a resource to process the service.
  • the analysis resource request message operation is as follows:
  • the service router C since the service S1 needs to occupy 10% of resources, The sum of the resources used by the router C itself and the service SI needs to be 90%, and the service router C pre-set the threshold to be 90%, then the service router C cannot process, abandon the processing service S1, and discard the resource request message.
  • the service router D can process the service Sl.
  • the service router D After analyzing the resource request message, the service router D sends a resource response message to the service router B after confirming that there is sufficient resource to load the service request message.
  • the specific parameters of the resource response message are as follows:
  • Oc-ACK is used to indicate that the message is a resource response message
  • Service information mandatory, including service ID, is used to uniquely identify the service, such as 12345
  • business address such as sip@weather.web.sina.
  • Last hop router address Optional, for example sip@192.168.1.1
  • Valid time Optional, for example 60min, indicates that the service router D responds to the new service request for the SI processing. The valid time is 60 minutes, 60 minutes of valid time. After full, Service Router B can re-process the new service request of S1.
  • the service router B may also send a routing update message to each adjacent service router of the service router B, that is, may be sent to the service router.
  • A, C, and D send a routing update message, where the routing table update message carries the address information of the service router D.
  • the specific parameters of the routing table update message are described as follows:
  • Message type: Required, Oc-Update indicates that the message is a resource response message; Alternate router address: Required, such as sip@192.168.1.1; Service information, optional, including service ID, for unique service, 3 ⁇ 4 Port 12345; business address, optional, 3 ⁇ 4 port sip@weather.web.sina.
  • Table 3 Routing Table Update Message Field Format
  • the service router A After receiving the routing table update message, the service router A updates the routing table information, updates the routing path of the service S1, updates the home service router of the service S1 to the service router D, and sets a valid time; after the routing table information is updated, the information is started.
  • the timer deletes the timeout address when the timer expires.
  • the service router B sends a resource deployment message to the service router D and the service request message of the request service S1, where the resource deployment message includes service information of the service S1, for example, status information of the service S1, and the service address sip@weather.web.sina , interface, protocol, and physical address information of the service.
  • the specific parameters of the resource deployment message are described as follows:
  • Message type Oc-Deploy; Valid time; Business information, including: Service ID, Unique identifier Service, ⁇ 12345, Business address, ⁇ sip@weather.web.sina; Service status: 0, indicates initial status.
  • Oc-Deploy is optional Business ID: 12345
  • the service router B can also send the resource deployment message to the service router D, where the resource deployment message includes not only the service information of the service S1 but also the service request message. Information.
  • the service router D receives the resource deployment message and the service request message of the request service S1, or only after receiving the resource deployment message, processes the service request message, and sends the service request message to the service according to the address of the service S1. Sl.
  • the service router C, D receives the routing table update message sent by the service route B, and updates the routing table information, so that the original attribution of all the new service request messages within the valid time (if the route update message includes the valid time)
  • the service router is the service router B, and the new service request message originally sent by the service router C to the service router B is forwarded to the service router D, which is processed by the service router D, and is not sent to the service router B, or
  • the original home service router of all the new service request messages is the service router B, and the new service request message originally sent by the service router D to the service router B does not need to send the new service request message to the service router B, and the service router is used.
  • D itself handles the new service request message.
  • S407 and S409, S410 do not have a sequence of time.
  • the service router A parses the service request message
  • the service request message is sent to the service router B.
  • the service router B determines whether it has sufficient resources to process the received service request message, and if so, it indicates that the service router B does not overload after processing the service request message.
  • the service router B processes the service request. If not, it indicates that the service router B causes an overload after processing the service request message, and then sends a resource request message to the service routers C, D.
  • the service router judges whether C, D has a resource to process the service request, and the service router C does not have the resource to process the service request, and the second service router discards the resource request message, and the service router D has the resource to process the service request, then the After the service router returns the resource response message, the service router B sends the resource deployment message to the second service router, and the second service router processes the service request.
  • the service router can still be overloaded, and the local service router is not available, and the business interaction is convenient and efficient.
  • the service router B may further set a transit policy after receiving the resource response message, that is, the service router B sets a valid time, if the user or other service routers within the valid time
  • the service router parses the service request as the service request of the request S1, and directly forwards the service request to the service router D. For example, if the effective time is 60 minutes, if the service router B subsequently receives the service request message of the service S1 with the service ID 12345 within 60 minutes, the service request message is directly forwarded to the service router D, and the service router B only As a transit router for business S1.
  • Other processes are the same as those which can be referred to Fig. 4.
  • the service router D may send a release information update message to the service directory after the resource response message is sent, where the release information update message includes the address of the service router D, and the service S1 in the service directory is changed.
  • the information is published, the home service router of the service S1 is changed from the service router B to the service router D, and the effective time can be further set.
  • the home service router of the service S1 is the service router D, and if the valid time expires, , Then, the home service router of the service SI is still the service route B.
  • the service requester makes a service request to the service S1 within the valid time
  • the service request is routed to the service router D according to the information in the service directory (the home router of the service S1 is the service router D within the valid time).
  • the service requester makes a service request to the service S1 after the valid time expires
  • the service request is routed to the service router B according to the information in the service directory (the home router of the service S1 is the service router B).
  • the subsequent service router B or service router D performs the same service processing on the service request as the embodiment corresponding to FIG. 2 above.
  • the service router D may also send the service router B according to the address of each adjacent service router of the service router B.
  • Each of the neighboring service routers sends a route update message, and the resource deployment message sent by the service router B to the service router D may include the address of each adjacent service router of the service router B.
  • the routing table update message carries the address information of the service router D.
  • the neighboring service routers of the service router B are the service router A, the service router C, and the service router D, and the service router A and the service router C update the routing table information after receiving the routing update message, so that the information is valid.
  • the original home service router of all new service request messages is the service router B, and the new service request message originally sent by the service router A or C to the service router B will Forwarded to service router D, processed by service router D, and not sent to service router B.
  • the service router D can modify its own routing table information without sending a routing update message to itself.
  • the valid time if the routing update message contains a valid time
  • all the new service request messages are originally served by the service router B.
  • the new service request message originally sent by the service router D to the service router B does not need to send the new service request message to the service router B, but the service router D itself directly processes the new service request message.
  • a service router specifically includes a first request message processing unit 51, a first load balancing unit 52, and a service deployment unit 53.
  • the first request message processing unit 51 is configured to receive the service request message, and when the service corresponding to the service request message is a new service request, send the service request message to the load balancing processing unit 52.
  • the first load balancing unit 52 Determining whether there is a resource to process the service request message, and transmitting the determined result to the service deployment unit 53.
  • the service deployment unit 53 is configured to: when the load balancing unit 52 determines that there is no resource to process the service request message, The neighboring service router of the service router sends a resource request message, and receives the resource response message returned by the neighboring service router that has the resource processing the service request message according to the resource request message, and sends the resource response message to the neighbor of the return resource response message.
  • the service router sends a resource deployment message to the service request message, so that the neighbor service router that returns the resource response message processes the service request message.
  • the first load balancing unit 52 determines that the service request message does not have a resource, and the method includes: checking a value of the resource that has been used by itself, and obtaining a value of the service required resource corresponding to the service request message, and determining the corresponding service request message. If the sum of the value of the service-occupied resource and the value of the self-used resource is higher than or equal to the preset threshold, the device does not have the resource to process the service request message, where the service corresponding to the service request message needs to be occupied.
  • the value of the resource may include the following two situations.
  • the related information of the value of the service required by the service request message is saved on the service router itself, and may be found by itself when needed, or In one case, the information related to the value of the resource required by the service request message is stored in the service registrar, and can be obtained from the service registrar when needed by the service router.
  • the service router may further include a transit policy setting unit 54 configured to set a transit policy after the service deployment unit receives the resource response message, and subsequently receive a new service belonging to the service router.
  • a transit policy setting unit 54 configured to set a transit policy after the service deployment unit receives the resource response message, and subsequently receive a new service belonging to the service router.
  • the new service request message is forwarded according to the transit policy to the neighboring service router that returns the resource response message.
  • the transit policy setting unit 54 may further set the effective time of the transit policy, and the transit policy setting unit 54 forwards the new service request message to the neighbor of the return resource response message within the valid time of the transit policy. Service router.
  • the service router may further include a first routing table updating unit 55, configured to send, after the service router receives the resource response message, a routing table update message to the neighboring service router of the service router, where the routing table update message An address of the neighboring service router that includes the return resource response message, so that the neighboring service router of the service router receives the service router belonging to the service router The new service request message is sent to the neighboring service router that returns the resource response message.
  • the first routing table updating unit 55 may set a valid time of the routing table update message, when the neighboring service router of the service router receives the new service request message belonging to the first service router, at the valid time The new service request message is sent to the neighboring service router that returns the resource response message.
  • the service router includes a release information update unit, and after receiving the resource response message, sends a release information update message to the service directory, where the release information update message may include the adjacent service router that returns the resource response message. the address of. Further, the posting information update unit 64 may set an effective time for posting the information update message.
  • the embodiment of the present invention determines whether the service router may be overloaded by parsing the service request message and checking its available resources. If it is likely to be overloaded, it sends a resource request message to the neighboring service router, so that the neighbor service router processes the service request message. This enables dynamic processing of service router overloads in the event of a sudden increase or increase in traffic, ensuring load balancing and business interaction of service routers is convenient and efficient. And the load balancing implementation of the service router is completed by the service router itself, without additional hardware overhead.
  • Another service router of the embodiment of the present invention specifically includes a second request message processing unit 61 and a second load balancing unit 62.
  • the second request message processing unit 61 is configured to receive a resource request message sent by the first service router, receive a resource deployment message and a service request message sent by the other service router, and process the service request message, where the resource request message
  • the first service router sends the second service balancing unit 62. And determining, by a resource, a service request message, and sending a resource response message to the first service router when the service request message is processed.
  • the second load balancing unit 62 determines that the user does not have the resource to process the service request message, and specifically includes: checking the value of the resource that has been used by the user, and acquiring the service corresponding to the service request message. And determining that the sum of the value of the service-required resource corresponding to the service request message and the value of the self-used resource is higher than or equal to a preset threshold, and the user does not have the resource to process the service request message, where
  • the value of the service-required resource corresponding to the service request message may include the following two situations. In one case, the related information of the value of the service-required resource corresponding to the service request message is saved on the service router itself. In other cases, the information related to the value of the resource required by the service request message is stored in the service registrar, and can be obtained from the service registrar when needed by the service router. .
  • the router includes a second routing table updating unit 63.
  • the second routing table updating unit 63 After transmitting the resource response message, the second routing table updating unit 63 sends a routing table update message to the neighboring service router of the first service router, where the The neighbor service router address of the first service router may be included in the resource deployment message.
  • the routing table update message includes an address of the neighboring service router that returns the resource response message, so that the neighboring service router of the first service router, when receiving a new service request belonging to the first service router, The new service request message is sent to the neighboring service router that returns the resource response message.
  • the second routing table updating unit 63 may also enable the neighboring service routers of the first service router to be valid when receiving the new service request message belonging to the first service router, by setting the effective time of the routing table.
  • the new service request message is sent to the neighboring service router that returns the resource response message.
  • the second routing table updating unit 63 may further send a routing table update message to the last hop service router of the first service router after sending the resource response message, where the routing table update message includes the return The address of the neighboring service router of the resource response message, so that the last hop service router of the first service router sends the new service request message to the new service request message belonging to the first service router.
  • the neighboring service router that returns a resource response message may be used to the neighboring service router that returns a resource response message.
  • the router includes a release information update unit 64.
  • the release information update unit 64 sends a release information update message to the service directory, where the release information update message may include the return resource response message.
  • the address of the adjacent service router Further, the posting information updating unit 64 may set an effective time for posting the information update message.
  • the first service router determines that it does not have sufficient resources to process the received service request message, and then sends a resource request message to the neighboring service router of the first service router.
  • the neighboring service router determines that there is a resource to process the service request message
  • the device returns a resource response message to the first service router, and receives the resource deployment message and the service request message sent by the first service router, and the adjacent service that returns the resource response message.
  • the router processes the service request.
  • the first service router can ensure that the first service router is not overloaded when the traffic suddenly increases or continues to increase, and the local service router is not unavailable, and the service interaction is convenient and efficient.
  • the system for service routing specifically includes: a first service router 71 and at least one second service router 72, wherein the second service router 72 is adjacent to the first service router 71.
  • Service router specifically includes: a first service router 71 and at least one second service router 72, wherein the second service router 72 is adjacent to the first service router 71. Service router.
  • the first service router 71 is configured to receive a service request message, determine that the service status corresponding to the service request message is a new service request, and does not have a resource to process the service request message, and then, to the neighbor service router of the first service router.
  • the second service router 72 sends a resource request message, and receives a resource response message returned by the neighboring service router second service router 72 with the resource processing the service request message, to the return resource response message.
  • the neighbor service router second service router 72 transmits a resource deployment message and the service request message.
  • the second service router 72 is configured to receive the resource request message sent by the first service router, determine that it has a resource processing service request message, send a resource response message to the first service router 71, and receive the resource sent by the first service router 71.
  • a message and a service request message are deployed to process the service request message.
  • the system of the present embodiment may further include a previous hop service router and a service directory.
  • a previous hop service router and a service directory.
  • the related description of the system embodiment of the present invention may refer to the related description of the foregoing service router embodiment, and details are not described herein again.
  • the first service router determines that it does not have enough resources to process the received service request message, and sends a resource request message to the neighboring service router of the first service router. Then when the neighboring service router determines that there is a resource to process the service request message, Then, the resource response message is returned to the first service router, and after receiving the resource response message, the first service router sends a resource deployment message and a service request message to the service router that returns the resource response message, and the service router that returns the resource response message processes the service. request. In this way, the first service router can ensure that the service router is not overloaded when the traffic suddenly increases or continues to increase, and the local service router is not available, and the service interaction is convenient and efficient.
  • the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. .
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for making Mobile devices (which may be mobile phones, personal computers, media players, etc.) perform the methods described in various embodiments of the present invention.
  • the storage medium referred to here is: R0M/RAM, disk, CD, etc.
  • the spirit and scope of the Ming is intended that the present invention cover the modifications and variations of the inventions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

一种防止业务路由器过载的方法、 装置及系统
本申请要求 2009年 3月 31 日递交的申请号为 200910106427.9、 发明名称 为 "一种实现防止业务路由器过载的方法、 装置及系统" 的中国专利申请的优 先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及通讯领域, 尤其涉及一种防止业务路由器过载的方法、 装置及 系统
背景技术
业务网络是独立于基础物理网络之上的一个叠加网络, 提供一系列功能实 体类似于互联网协议(Internet Protocol, IP ) 网络层的路由器和交换机等网络 设备, 使业务的交互便捷高效, 为下一代业务提供一个统一、 安全、 高效的协 同工作环境, 增强业务之间的互通性和协作性, 为运营商面对未来高速发展的 业务层运营提供高效的基础环境。
业务网络的核心实体是业务路由器, 用于业务的路由和寻址, 负责实施端 到端的服务质量 (Quality of Service, QoS)保障, 同时也担负着保障业务网络中 功能实体之间的交互的责任。
业务路由器基于业务网络的统一编址技术, 为业务和资源的交互提供路由 功能, 把业务和资源交互消息路由到合适的目的地。 业务路由器不仅能够根据 业务提供者的相关策略决策智能的路由消息, 还可以实现智能的业务交互、 控 制策略功能, 业务路由器可以根据相关的策略为具体的业务交互、 触发控制以 及业务组合等提供更高层次的支持。 例如: 用户发送业务请求时, 业务路由器 能够根据用户请求业务的接口信息, 功能信息找到合适的业务反馈给用户。 业 务路由器能够与传输层设备通信, 保证端到端 QoS。
发明内容 本发明实施例提供一种防止业务路由器过载的方法和装置。
一种防止业务路由器过载的方法, 包括: 第一业务路由器接收业务请求消 息; 确定所述业务请求消息对应的业务状态为新业务请求, 且自身没有资源处 理所述业务请求消息, 则向第一业务路由器的相邻业务路由器发送资源请求消 息; 接收有资源处理所述业务请求消息的相邻业务路由器根据所述资源请求消 息返回的资源应答消息; 向所述返回资源应答消息的相邻业务路由器发送资源 部署消息和所述业务请求消息, 以便所述返回资源应答消息的相邻业务路由器 处理所述业务请求消息。
一种防止业务路由器过载的方法, 包括: 第一业务路由器的相邻业务路由 器接收第一业务路由器发送的资源请求消息, 其中, 所述资源请求消息是在所 述第一业务路由器自身没有充足资源处理所述业务请求消息, 且所述业务请求 消息对应的业务状态为新业务请求时, 所述第一业务路由器发送的; 确定自身 有资源处理业务请求消息, 向第一业务路由器发送资源应答消息; 接收第一业 务路由器发送的资源部署消息和业务请求消息, 处理所述业务请求消息。
一种业务路由器, 包括: 第一请求消息处理单元, 用于接收业务请求消息, 判断所述业务请求消息对应的业务是新业务请求时, 向负载均衡处理单元发送 所述业务请求消息; 第一负载均衡单元, 用于确定自身是否有资源处理所述所 述业务请求消息, 向业务部署单元发送确定的结果; 业务部署单元, 用于在所 述负载均衡单元判断没有资源处理所述业务请求消息时向所述业务路由器的相 邻业务路由器发送资源请求消息, 接收所述有资源处理所述业务请求消息的相 邻业务路由器根据所述资源请求消息返回的资源应答消息, 向所述返回资源应 答消息的相邻业务路由器发送资源部署消息和所述业务请求消息, 以便于所述 返回资源应答消息的相邻业务路由器处理所述业务请求消息。
一种业务路由器, 包括: 第二请求消息处理单元, 用于接收第一业务路由 器发送的资源请求消息, 在发送资源应答消息后接收所述第一业务路由器发送 的资源部署消息和业务请求消息, 处理所述业务请求消息, 其中, 所述资源请 求消息是在所述第一业务路由器自身没有资源处理所述业务请求消息, 且所述 业务请求消息对应的业务状态为新业务请求时, 所述第一业务路由器发送的; 第二负载均衡单元, 用于确定自身是否有资源处理业务请求消息, 且在有 资源处理所述业务请求消息时发送确认消息。
一种业务路由的系统, 包括第一业务路由器和至少一个第二业务路由器, 其中, 所述第二业务路由器为所述第一业务路由器的相邻业务路由器; 第一业 务路由器, 用于接收业务请求消息, 确定所述业务请求消息对应的业务状态为 新业务请求, 且自身没有资源处理所述业务请求消息, 则向第一业务路由器的 相邻业务路由器发送资源请求消息, 接收有资源处理所述业务请求消息的相邻 业务路由器第二业务路由器根据所述资源请求消息返回的资源应答消息, 向所 述返回资源应答消息的第二业务路由器发送资源部署消息和所述业务请求消 息; 第二业务路由器, 用于接收第一业务路由器发送的资源请求消息, 确定自 身有资源处理业务请求消息, 向所述第一业务路由器发送资源应答消息; 接收 第一业务路由器发送的资源部署消息和业务请求消息,处理所述业务请求消息。
本发明实施例提供防止业务路由器过载的方法和装置。 第一业务路由器确 定自身没有足够资源处理接收到的业务请求消息, 则向第一业务路由器的相邻 业务路由器发送资源请求消息。 然后在相邻业务路由器确定有资源处理该业务 请求消息时, 则向第一业务路由器返回资源应答消息, 则第一业务路由器接收 资源应答消息后, 向返回资源应答消息的业务路由器发送资源部署消息和业务 请求消息, 由返回资源应答消息的业务路由器处理该业务请求。 这样使得第一 业务路由器在业务量突增或持续增加的情况下,仍能保证业务路由器不会过载, 并且不会导致局部业务路由器不可用, 保证业务交互的便捷高效。 附图说明
图 1为本发明实施例——种防止业务路由器过载的方法流程图;
图 2为本发明实施例二一种防止业务路由器过载的方法流程图;
图 3为本发明实施例三的一种防止业务路由器过载的方法流程图;
图 4为本发明实施例的另一种防止业务路由器过载的方法流程图; 图 5为本发明实施例的一种业务路由器的结构示意图;
图 6为本发明实施例另一种业务路由器的结构示意图;
图 7为本发明实施例一种业务路由系统的结构示意图。 具体实施方式
为了使本技术领域的人员更好地理解本发明, 下面结合附图对本发明作进 一步的详细说明。
本发明实施例一的一种防止业务路由器过载的方法如图 1所示, 具体包括 步骤:
S101 : 第一业务路由器接收业务请求消息;
S102: 确定所述业务请求消息对应的业务状态为新业务请求, 且自身没有 资源处理所述业务请求消息, 则向第一业务路由器的相邻业务路由器发送资源 请求消息;
S103: 接收有资源处理所述业务请求消息的相邻业务路由器根据所述资源 请求消息返回的资源应答消息;
S104: 向所述返回资源应答消息的相邻业务路由器发送资源部署消息和所 述业务请求消息, 以便所述返回资源应答消息的相邻业务路由器处理所述业务 请求消息。
本发明实施例一的防止业务路由器过载的方法中, 第一业务路由器确定自 身没有足够资源处理接收到的业务请求消息, 则向第一业务路由器的相邻业务 路由器发送资源请求消息。 在相邻业务路由器确定有资源处理该业务请求消息 时, 向返回资源应答消息的业务路由器发送资源部署消息和业务请求消息, 由 返回资源应答消息的业务路由器处理该业务请求。 这样使得第一业务路由器在 业务量突增或持续增加的情况下, 仍能保证第一业务路由器不会过载, 并且不 会导致局部业务路由器不可用, 保证业务交互的便捷高效。
本发明实施例二的一种防止业务路由器过载的方法如图 2所示, 具体包括 步骤: S201 : 第一业务路由器的相邻业务路由器接收第一业务路由器发送的资源 请求消息, 其中, 所述资源请求消息是在所述第一业务路由器自身没有资源处 理所述业务请求消息, 且所述业务请求消息对应的业务状态为新业务请求时, 所述第一业务路由器发送的;
S202: 确定自身有资源处理业务请求消息, 向第一业务路由器发送资源应 答消息;
S203 : 接收第一业务路由器发送的资源部署消息和业务请求消息, 处理所 述业务请求消息。
本发明实施例一的防止业务路由器过载的方法中, 第一业务路由器确定自 身没有足够资源处理接收到的业务请求消息, 则向第一业务路由器的相邻业务 路由器发送资源请求消息。 然后相邻业务路由器确定有资源处理该业务请求消 息时, 则向第一业务路由器返回资源应答消息, 接收第一业务路由器发送的资 源部署消息和业务请求消息, 由返回资源应答消息的相邻业务路由器业务路由 器处理该业务请求。 这样使得第一业务路由器在业务量突增或持续增加的情况 下,仍能保证第一业务路由器不会过载, 并且不会导致局部业务路由器不可用, 保证业务交互的便捷高效。
本发明实施例三的一种防止业务路由器过载的方法如图 3所示, 具体包括 步骤:
S301 : 根据接收到的业务请求消息包含的业务标识, 第一业务路由器确 定业务状态为新业务请求, 确定没有资源处理该业务请求消息, 则向第一业 务路由器的相邻业务路由器发送资源请求消息;
确定没有资源处理该业务请求消息具体包括: 第一业务路由器确定所述 业务的业务状态为新业务请求,检查自身已使用资源的值和获取所述业务请 求消息对应的业务需占用资源的值;确定所述业务请求消息对应的业务需占 用资源的值与所述自身已使用资源的值之和高于或等于预设阔值。
第一业务路由器的相邻业务路由器不是特指某一个业务路由器,而是指 除第一业务路由器之外的, 与第一业务路由器相邻的多个或所有业务路由 器, 也就是说, 如果第一业务路由器有多个相邻的业务路由器, 第一业务路 由器在确定自身没有资源处理该业务请求消息情况下,第一业务路由器向相 邻的多个或所有业务路由器发送资源请求消息。
S302 : 第一业务路由器的相邻业务路由器接收资源请求消息后, 确定有 资源处理该业务请求消息, 向第一业务路由器返回资源应答消 , ;
具体的: 第一业务路由器的相邻业务路由器接收资源请求消息后, 所述 资源请求消息包含所述业务需占用资源的值, 检查自身已使用资源的值; 确 定所述业务需占用资源的值与所述自身已使用资源的值之和低于预设阔值, 则确定自身有资源处理业务请求消息, 向第一业务路由器返回资源应答消 息。
S303 : 第一业务路由器接收所述资源应答消息后, 向返回资源应答消息 的相邻业务路由器发送资源部署消息,以便返回资源应答消息的相邻业务路 由器处理所述业务请求消息。
本发明实施例三第一业务路由器确定自身没有足够资源处理接收到的业务 请求消息, 则向第一业务路由器的相邻业务路由器发送资源请求消息。 然后由 相邻业务路由器确定是否有资源处理该业务请求,如果有资源处理该业务请求, 则向第一业务路由器返回资源应答消息, 则第一业务路由器接收资源应答消息 后, 向返回资源应答消息的相邻业务路由器发送资源部署消息, 由返回资源应 答消息的相邻业务路由器处理该业务请求。 这样使得第一业务路由器在业务量 突增或持续增加的情况下, 仍能保证业务路由器不会过载, 并且不会导致局部 业务路由器不可用, 保证业务交互的便捷高效。
可选的: 本发明实施例三还进一步包括: 第一业务路由器接收所述资源 应答消息后,还向所述返回资源应答消息的相邻业务路由器发送业务请求消 息, 以便第二业务路由器处理所述业务请求消息, 其中, 将所述业务请求消 息合并在所述资源部署消息中向所述返回资源应答消息的相邻业务路由器 发送,或者将所述业务请求消息和所述资源部署消息分别发送给所述返回资 源应答消息的相邻业务路由器。 可选的: 资源应答消息包含有效时间, 此时返回资源应答消息的相邻业 务路由器在有效时间内处理业务请求消息。
可选的: 第一业务路由器接收所述资源应答消息后, 还设置中转策略, 后续接收到新业务请求消息时,将新业务请求消息转发到所述返回资源应答 消息的相邻业务路由器, 由返回资源应答消息的相邻业务路由器进行处理。 本发明实施例中转策略进一步包含有效时间, 在有效时间内, 接收到新业务 请求消息时,将该新业务请求消息转发到返回资源应答消息的相邻业务路由 器, 其中, 本发明实施例中新业务请求消息为与返回资源应答消息的相邻业 务路由器处理的业务请求消息相同业务的消息。
可选的: 返回资源应答消息的相邻业务路由器发送资源应答消息后, 返 回资源应答消息的相邻业务路由器进一步向第一业务路由器的相邻业务路 由器发送路由表更新消息,路由表更新消息包含返回资源应答消息的相邻业 务路由器的地址,以便于第一业务路由器的其他相邻业务路由器在接收到归 属于第一业务路由器的新业务请求消息时,将该新业务请求消息发送给所述 返回资源应答消息的相邻业务路由器。本发明实施例的路由表更新消息还可 以包含有效时间,则第一业务路由器的其他相邻业务路由器在接收到归属于 第一业务路由器新业务请求消息时, 在有效时间内, 将该新业务请求消息发 送给所述返回资源应答消息的相邻业务路由器。 其中, 所述第一业务路由器 的相邻业务路由器的地址可以携带在资源请求消息中。
可选的: 返回资源应答消息的相邻业务路由器发送资源应答消息后, 还 向业务目录发送发布信息更新消息,所述发布信息更新消息可以包含返回资 源应答消息的相邻业务路由器的地址,可以包含发送资源请求消息的第一业 务路由器的地址, 可以包含唯一标识业务的业务标识, 以便于业务目录在接 收到发布信息更新消息后能够及时更新对应的所述业务的发布信息。后续对 所诉业务的新业务请求消息根据业务目录所记录的发布信息被业务路由器 路由到返回资源应答消息的相邻业务路由器。本发明实施例发布信息更新消 息还可以进一步包含有效时间, 在有效时间内, 所述业务的新业务请求消息 被业务路由器路由到返回资源应答消息的相邻业务路由器;在有效时间失效 后, 所述业务的新业务请求消息被业务路由器路由到第一业务路由器。
本发明实施例的另一种实现防止业务路由器过载的方法如图 4所示, 业务 路由器 A是业务路由器 B的上一跳路由器,业务路由器 B是原处理业务请求消 息 S1 的业务路由器, 因资源限制无法处理新的业务请求消息 S1 , 需要请求消 息其他业务路由器处理该业务。 业务路由器 A, C, D是业务路由器 B相邻的业 务路由器。 当业务路由器 A接收业务请求消息请求业务 S1时, 根据路由表信 息将业务请求消息发送到业务路由器 B, 业务路由器 B对该进行判断, 如果业 务请求消息为新请求消息并且业务路由器 B没有足够的资源处理该请求消息, 则向相邻的业务路由器 C和业务路由器 D发送资源请求消息, 业务路由器 D 由于有足够的资源应答该资源请求消息, 于是业务路由器 B将上述业务 S1的 资源部署消息发送到业务路由器 D, 并且业务路由器 A更新业务 S1路由表信 息。 具体过程包括:
S401 : 业务路由器 A接收到用户或其它业务路由器发送的业务请求消息, 该业务请求消息请求处理业务 S1 , 该业务请求消息包含业务标识。
S402: 业务路由器 A根据业务标识从业务目录中查找该业务所归属的业务 路由器, 并将该业务请求消息发送至该业务归属的业务路由器。
业务路由器 A根据业务标识从业务目录中查找业务 S1所归属的业务路由 器为业务路由器 B, 并根据路由表信息中包含业务路由器 B的地址, 将上述业 务请求消息发送到业务路由器 B。
S403: 业务路由器 B接收该业务请求消息后, 从业务请求消息中获取该业 务标识; 根据该业务标识, 确定该业务路由器 B就是该业务请求消息对应的业 务的归属业务路由器, 则根据业务标识获取业务的状态, 并解析该业务状态, 如果该业务状态是后续的请求消息, 则处理该业务请求消息, 也就是更新该请 求消息业务状态, 比如从业务状态 1转变成业务状态 2, 并将业务请求消息发 送到该业务中; 如果该业务状态是新的请求消息, 则查询获取业务 S1需占用资 源, 并且检查业务路由器 B 自身已使用资源; 如果业务 S1需占用资源与业务 路由器 B自身已使用资源之和高于或等于预设阔值, 则向相邻路由器发送资源 请求消息。 如果业务 S1需占用资源与业务路由器 B 自身已使用资源之和低于 预设阔值, 则处理该业务请求消息。
殳设业务路由器 A 地址 sip@192.168.1.1 , 业务路由器 B 地址 sip@192.168.1.2; 业务 S1归属于业务路由器 B, 业务 ID为 12345。 以内存占 用率为说明资源使用情况, 说明资源使用情况可以有两种表示方式: 可以用资 源占用率, 比如: 业务路由器的内存占用率已经为 80%; 也可以使用资源实际 占用的情况, 比如: 业务路由器的内存已经被占用 1MB ( megabyte, 兆字节)。 如果业务路由器八、 B、 C、 D是完全相同的业务路由器, 这两种方式都可以使 用, 如果业务路由器八、 B、 C、 D的性能是不同的话, 则只能以使用资源实际 占用的情况来做说明, 在本发明实施例中, 假设业务路由器八、 B、 C、 D是完 全相同的业务路由器, 并假设业务路由器 B的资源占用率是 80%, 业务路由器 C的资源占用率是 80%, 业务路由器 D的资源占用率是 20%, 业务 S1的需占 用资源为 10%, 各路由器设定阔值为 90%。 并且假设业务路由器 B分析业务 S1请求消息是新请求消息, 业务 S1的资源占用率为 10%, 而业务路由器 B的 资源占用率是 80%, 路由器设定阔值为 90%。 判断业务路由器 B不能处理该业 务请求消息。
S404: 根据上述业务路由器 B判断不能处理业务 S1 , 则根据路由表信息, 获取业务路由器 B的相邻的业务路由器 C和业务路由器 D的地址,并根据上述 地址向相邻的业务路由器 C和业务路由器 D发送资源请求消息。路由表信息记 载了包括业务路由器的相邻业务路由器地址。
该资源请求消息包括必选项: 消息类型和业务信息, 其中业务信息可以包 含业务标识、 业务地址、 业务状态和业务需占用资源等信息, 资源请求消息还 包括可选项: 上一跳业务路由器地址和有效时间, 其中上一跳业务路由器指的 是, 在业务请求消息在路由过程中, 路由到当前业务路由器的前一个业务路由 器, 例如: 本发明实施例中, 在路由业务 S1的业务请求消息时, 业务路由器 A 就是业务路由器 B的上一跳业务路由器。 资源请求消息具体的参数描述如下: 消息类型: Oc-REQ, 标识该消息为资源请求消息; 业务信息, 包括业务标 识 (identity , ID ) , 业务标识唯一标识该业务, 如 12345 ; 业务地址, 如 sip@weather.web.sina; 业务^ 态, 口 0表示初始^ 态, 也尤是该业务为一个新 业务请求; 业务需占用资源, 如 20, 其中表示内存占有率需要 20%, 业务需占 用资源可以包括: 内存资源占用率, CPU资源占用率, 需占用带宽大小等等, 本发明实施例只是用内存资源占用率来做说明, 其他的资源占用的处理的方法 与之类似。 上一跳路由器地址: sip@192.168.1.1 ; 有效时间: 如 60min, 表示 请求相邻业务路由器分担处理业务 S1的新的业务请求有效时间为 60分钟, 60 分钟的有效时间满后, 业务路由器 B可以重新处理 S1的新的业务请求; 资源请求消息字段格式
Figure imgf000012_0001
S405: 业务路由器 C和业务路由器 D收到该资源请求消息后, 分别分析该 资源请求消息,确定是否有资源处理该业务。其中分析资源请求消息操作如下:
1 )检查自身业务路由器的已使用资源; 例如: 根据本实施例中所假设的, 业务路由器 C的资源占用率是 80%, 业务路由器 D的资源占用率是 20%;
2 )计算输入参数业务 S1的需占用资源与自身已使用资源之和, 并且与阔 值进行比较;
3 )如果输入参数业务 S1的需占用资源与自身已使用资源之和高于或等于 阔值, 则放弃处理业务 S1 , 丟弃该资源请求消息;
例如: 根据本实施例中所假设的, 由于业务 S1 需占用资源为 10%, 则业 务路由器 C自身已使用资源与业务 SI需占用资源之和为 90%,而业务路由器 C 预先设定阔值为 90%, 则业务路由器 C不能处理,放弃处理业务 S1 , 丟弃资源 请求消息。
4 )如果输入参数业务 S1的需占用资源与自身已使用资源之和小于阔值, 则确定可以处理业务 Sl。
例如: 根据本实施例中所假设的, 由于业务 S1 需占用资源为 10%, 则业 务路由器 D 自身已使用资源与业务 S1需占用资源之和为 30%, 而业务路由器 D预先设定阔值为 90%, 则业务路由器 D可以处理业务 Sl。
如果业务路由 B的所有相邻路由器都不能负荷该业务请求消息, 则向业务 路由器 A返回出错消息, 业务路由器 B可以丟弃该业务请求数据包。
S406: 业务路由器 D分析该资源请求消息后, 确认有足够的资源负荷该业 务请求消息, 则向业务路由器 B发送资源应答消息; 其中资源应答消息具体的 参数描述如下:
消息类型: 必选项, Oc-ACK用于表示该消息为资源应答消息; 业务信息, 必选项, 包括业务 ID , 用于唯一标识业务, 如 12345 ; 业务地址, 如 sip@weather.web.sina。 上一跳路由器地址: 可选项, 例如 sip@192.168.1.1 ; 有 效时间: 可选项, 例如 60min, 表示业务路由器 D应答分担处理 SI的新的业务 请求的有效时间为 60分钟, 60分钟的有效时间满后, 业务路由器 B可以重新 处理 S1的新的业务请求。
表 2: 资源应答消息字段格式
Figure imgf000013_0001
S407: 业务路由器 B收到业务路由器 D的资源应答消息后,还可以向业务 路由器 B各个相邻业务路由器发送路由更新消息, 也就是说可以向业务路由器 A, C, D发送路由更新消息, 该路由表更新消息中携带业务路由器 D的地址信 息。 其中路由表更新消息具体的参数描述如下:
消息类型: 必选项, Oc-Update表示该消息为资源应答消息; 替代路由器 地址: 必选项, 例如 sip@192.168.1.1 ; 业务信息, 可选项, 包括业务 ID, 用于 唯一标 i只业务, ¾口 12345; 业务地址, 可选项, ¾口 sip@weather.web.sina。 有效 时间: 可选项, 如 60min, 表示业务路由器 D应答分担处理业务 SI的新的业务 请求设定的有效时间为 60分钟, 60分钟的有效时间满后, 业务路由器 B重新 处理业务 S1的新的业务请求,业务路由器 D就不处理业务 S1的新的业务请求。
表 3: 路由表更新消息字段格式
Figure imgf000014_0001
S408: 业务路由器 A接收路由表更新消息后, 更新路由表信息, 更新业务 S1的路由路径, 将业务 S1的归属业务路由器更新为业务路由器 D, 并设定有 效时间; 更新路由表信息后就启动定时器, 定时到时就将超时地址删除。
S409: 业务路由器 B向业务路由器 D发送资源部署消息和上述请求业务 S1的业务请求消息, 其中资源部署消息包含业务 S1的业务信息, 例如业务 S1 的状态信息, 业务地址 sip@weather.web.sina, 接口, 协议和业务的物理地址信 息等。 资源部署消息的具体的参数描述如下:
消息类型: Oc-Deploy; 有效时间; 业务信息, 包括: 业务 ID, 唯一标识 业务, ^ 12345 , 业务地址, ^ sip@weather.web.sina; 业务^ 态: 0, 表示初始 状态。
表 4: 资源部署消息字段格式
消息类型 业务信息 有效时间
Oc-Deploy 必选 可选 业务 ID: 12345
业务地址: sip(¾.weather.web.sina
Oc-Deploy 60
业务状态: 0
业务的物理地址: 192.168.0.9 本发明另一实施例中,业务路由器 B还可以向业务路由器 D只发送资源部 署消息,该资源部署消息不仅包含业务 S1的业务信息,还可以包含上述业务请 求消息的信息。
这时, 业务路由器 D接收到资源部署消息和上述请求业务 S1的业务请求 消息, 或者只是接收到资源部署消息后, 处理该业务请求消息, 并根据业务 S1 的地址将上述业务请求消息发送到业务 Sl。
S410: 业务路由器 C, D接收到上述业务路由 B发送的路由表更新消息, 更新路由表信息, 以使得在有效时间内 (如果路由更新消息包含有效时间)内, 所有新业务请求消息的原归属业务路由器为业务路由器 B, 并且原本由业务路 由器 C发送给业务路由器 B的该新业务请求消息, 都将转发给业务路由器 D, 由业务路由器 D来处理, 而不发送给业务路由器 B了, 或者所有新业务请求消 息的原归属业务路由器为业务路由器 B, 并且原本由业务路由器 D发送给业务 路由器 B的该新业务请求消息,无需再向业务路由器 B发送该新业务请求消息, 就由业务路由器 D自身来处理该新业务请求消息。
当然 S407与 S409, S410并没有时间上的先后顺序。
此时如果业务路由器 A接收到业务 S1的业务请求消息时, 业务路由器 A 对该业务请求消息进行解析;
1 )如果是初始状态的新业务请求消息,在有效时间范围内则将业务请求消 息路由到业务路由器 D; 如果有效时间过期, 则仍然将业务请求消息发送到业 务路由器^
2 )如果不是新的业务请求消息,则将该业务请求消息发送到业务路由器 B。 本发明实施例中, 业务路由器 B确定自身有没有足够资源处理接收到的业 务请求消息, 如果有, 则表明业务路由器 B处理该业务请求消息后不会过载, 业务路由器 B处理该业务请求, 如果没有, 则表明业务路由器 B处理该业务请 求消息后会导致过载, 则向业务路由器 C, D发送资源请求消息。 然后由业务 路由器判断 C, D是否有资源处理该业务请求, 业务路由器 C没有资源处理该 业务请求, 则第二业务路由器丟弃资源请求消息, 业务路由器 D有资源处理该 业务请求, 则向第一业务路由器返回资源应答消息, 则业务路由器 B接收资源 应答消息后, 向第二业务路由器发送资源部署消息, 由第二业务路由器处理该 业务请求。 这样使得在业务量突增或持续增加的情况下, 仍能保证业务路由器 不会过载, 和不会导致局部业务路由器不可用, 保证业务交互的便捷高效。
通过解析业务请求消息和检查自身可用资源, 判断业务路由器是否可能过 载, 如果可能过载, 则向相邻的业务路由器发送资源请求消息, 以便于相邻业 务路由器处理该业务请求消息。 这样使得在业务量突增或持续增加的情况下, 实现动态处理业务路由器过载, 确保业务路由器的负载均衡和业务交互的便捷 高效。 并且业务路由器的负载均衡实现由业务路由器自身完成, 无需额外的硬 件开销。
本发明另一实施例中, 上述 S408中, 业务路由器 B还可以在收到资源应 答消息后设置中转策略, 也就是业务路由器 B设置一个有效时间, 在该有效时 间内,如果用户或其他业务路由器发送请求业务 S1的业务请求消息时,业务路 由器解析该业务请求为请求 S1的业务请求,则直接将该业务请求转发给业务路 由器 D。 例如: 有效时间为 60分钟, 则在 60分钟内, 业务路由器 B后续接收 到业务 ID为 12345的业务 S1的业务请求消息时, 就直接将该业务请求消息转 发到业务路由器 D, 业务路由器 B只是做为业务 S1的中转路由器。 其他过程 同可以参照图 4对应的实施例。
本发明另一实施例中, 上述 S408中, 业务路由器 D在发送资源应答消息 后可以向业务目录发送发布信息更新消息, 该发布信息更新消息包含业务路由 器 D的地址, 更改业务目录中业务 S1的发布信息, 将业务 S1的归属业务路由 器由业务路由器 B改成业务路由器 D, 并可以进一步设置有效时间, 在有效时 间内,该业务 S1的归属业务路由器就是为业务路由器 D,如果有效时间届满后, 则仍然将该业务 SI的归属业务路由器该为业务路由 B。此时只要在有效时间内, 业务请求者对业务 S1进行业务请求, 根据业务目录中的信息 (业务 S1的归属 路由器在有效时间内是业务路由器 D ), 该业务请求被路由到业务路由器 D。如 果有效时间失效后,业务请求者对业务 S1进行业务请求时,根据业务目录中的 信息 (业务 S1的归属路由器是业务路由器 B ), 该业务请求被路由到业务路由 器 B。后续业务路由器 B或业务路由器 D对该业务请求进行业务处理同上述图 2对应的实施例相同。
在本发明的另一个实施例中, 步骤 S406中, S407中, 业务路由器 D收到 业务路由器 B的资源应答消息后,还可以根据业务路由器 B的各个相邻业务路 由器的地址, 向业务路由器 B的各个相邻业务路由器发送路由更新消息, 业务 路由器 B发送给业务路由器 D的资源部署消息中可以包含业务路由器 B的各个 相邻业务路由器的地址。 该路由表更新消息中携带业务路由器 D的地址信息。 在本发明实施例中业务路由器 B的相邻业务路由器为业务路由器 A、 业务路由 器 C和业务路由器 D,业务路由器 A和业务路由器 C接收到上述路由更新消息 后更新路由表信息, 以使得在有效时间内 (如果路由更新消息包含有效时间) 内, 所有新业务请求消息的原归属业务路由器为业务路由器 B, 并且原本由业 务路由器 A或 C发送给业务路由器 B的该新业务请求消息,都将转发给业务路 由器 D, 由业务路由器 D来处理, 而不发送给业务路由器 B了。 当然业务路由 器 D无需向自身发送路由更新消息, 就可以修改自身的路由表信息, 在有效时 间内 (如果路由更新消息包含有效时间) 内, 所有新业务请求消息原归属业务 路由器为业务路由 B, 并且原本由业务路由器 D发送给业务路由器 B的新业务 请求消息, 无需再向业务路由器 B发送该新业务请求消息, 而直接由业务路由 器 D自身来处理该新业务请求消息。
本发明实施例的一种业务路由器如图 5所示, 具体包括第一请求消息处理 单元 51、 第一负载均衡单元 52和业务部署单元 53。 其中, 第一请求消息处理 单元 51用于接收业务请求消息,判断所述业务请求消息对应的业务是新业务请 求时, 向负载均衡处理单元 52发送所述业务请求消息; 第一负载均衡单元 52 用于确定自身是否有资源处理所述业务请求消息,向业务部署单元 53发送确定 的结果; 业务部署单元 53用于在所述负载均衡单元 52判断没有资源处理所述 业务请求消息时向所述业务路由器的相邻业务路由器发送资源请求消息, 接收 所述有资源处理所述业务请求消息的相邻业务路由器根据所述资源请求消息返 回的资源应答消息, 向所述返回资源应答消息的相邻业务路由器发送资源部署 消息所述业务请求消息, 以便于所述返回资源应答消息的相邻业务路由器处理 所述业务请求消息。
第一负载均衡单元 52确定自身没有资源处理所述业务请求消息具体包括: 检查自身已使用资源的值和获取所述业务请求消息对应的业务需占用资源的 值, 确定所述业务请求消息对应的业务需占用资源的值与所述自身已使用资源 的值之和高于或等于预设阔值, 则自身没有资源处理所述业务请求消息, 其中, 获取所述业务请求消息对应的业务需占用资源的值可以包括如下两种情况, 一 种情况是将所述业务请求消息对应的业务需占用资源的值的相关信息保存在业 务路由器自身上, 需要的时候可以在自身查找得到, 或者, 另一种情况就是所 述业务请求消息对应的业务需占用资源的值的相关信息保存在业务注册器上, 需要的时候可以在业务路由器从业务注册器获取得到。
所述业务路由器还可以包括中转策略设置单元 54 , 中转策略设置单元 54 用于在所述业务部署单元接收所述资源应答消息后设置中转策略, 后续接收到 归属于所述业务路由器的新的业务请求消息时, 则根据所述中转策略将所述新 业务请求消息转发给所述返回资源应答消息的相邻业务路由器。 所述中转策略 设置单元 54还可以设置中转策略的有效时间, 则中转策略设置单元 54在所述 中转策略的有效时间内, 将所述新业务请求消息转发给所述返回资源应答消息 的相邻业务路由器。
所述业务路由器还可以包括第一路由表更新单元 55 , 用于在所述业务路由 器接收资源应答消息后, 向所述业务路由器的相邻业务路由器发送路由表更新 消息, 所述路由表更新消息包含所述返回资源应答消息的相邻业务路由器的地 址, 以便于所述业务路由器的相邻业务路由器在接收到归属于所述业务路由器 的新业务请求消息时, 将所述新业务请求消息发送给所述返回资源应答消息的 相邻业务路由器。进一步地, 第一路由表更新单元 55可以设置路由表更新消息 的有效时间, 所述业务路由器的相邻业务路由器在接收到归属于所述第一业务 路由器的新业务请求消息时, 在有效时间内将所述新业务请求消息发送给所述 返回资源应答消息的相邻业务路由器。
进一步地, 所述业务路由器包括发布信息更新单元, 在接收所述资源应答 消息后, 向业务目录发送发布信息更新消息, 所述发布信息更新消息可以包含 所述返回资源应答消息的相邻业务路由器的地址。 进一步地, 所述发布信息更 新单元 64可以设置发布信息更新消息的有效时间。
其中, 本发明业务路由器实施例所涉及的具体工作过程, 可以参考本发明 上述各个实施例的相关内容, 在此不再赘述。
本发明实施例通过解析业务请求消息和检查自身可用资源, 判断业务路由 器是否可能过载, 如果可能过载, 则向相邻的业务路由器发送资源请求消息, 以便于相邻业务路由器处理该业务请求消息。 这样使得在业务量突增或持续增 加的情况下, 实现动态处理业务路由器过载, 确保业务路由器的负载均衡和业 务交互的便捷高效。 并且业务路由器的负载均衡实现由业务路由器自身完成, 无需额外的硬件开销。
本发明实施例的另一种业务路由器如图 6所示, 具体包括第二请求消息处 理单元 61和第二负载均衡单元 62。 第二请求消息处理单元 61用于接收第一业 务路由器发送的资源请求消息, 接收所述其他业务路由器发送的资源部署消息 和业务请求消息, 处理所述业务请求消息, 其中, 所述资源请求消息是在所述 第一业务路由器自身没有资源处理所述业务请求消息, 且所述业务请求消息对 应的业务状态为新业务请求时, 由所述第一业务路由器发送的; 第二负载均衡 单元 62, 用于确定自身是否有资源处理业务请求消息, 且在有资处理所述业务 请求消息时向所述第一业务路由器发送资源应答消息。
第二负载均衡单元 62确定自身没有资源处理所述业务请求消息具体包括: 检查自身已使用资源的值和获取所述业务请求消息对应的业务需占用资源的 值, 确定所述业务请求消息对应的业务需占用资源的值与所述自身已使用资源 的值之和高于或等于预设阔值, 则自身没有资源处理所述业务请求消息, 其中, 获取所述业务请求消息对应的业务需占用资源的值可以包括如下两种情况, 一 种情况是将所述业务请求消息对应的业务需占用资源的值的相关信息保存在业 务路由器自身上, 需要的时候可以在自身查找得到, 或者, 另一种情况就是所 述业务请求消息对应的业务需占用资源的值的相关信息保存在业务注册器上, 需要的时候可以在业务路由器从业务注册器获取得到。
进一步地, 所述路由器包括第二路由表更新单元 63 , 在发送资源应答消息 后,第二路由表更新单元 63向所述第一业务路由器的相邻业务路由器发送路由 表更新消息, 其中所述第一业务路由器的相邻业务路由器地址可以包含在所述 资源部署消息中。 所述路由表更新消息包含所述返回资源应答消息的相邻业务 路由器的地址, 以便于所述第一业务路由器的相邻业务路由器在接收到归属于 第一业务路由器的新业务请求时, 将所述新业务请求消息发送给所述返回资源 应答消息的相邻业务路由器。进一步地, 第二路由表更新单元 63还以设置路由 表的有效时间, 可以使得所述第一业务路由器的相邻业务路由器在接收到归属 于第一业务路由器的新业务请求消息时, 在有效时间内, 将所述新业务请求消 息发送给所述返回资源应答消息的相邻业务路由器。 进一步地, 第二路由表更 新单元 63还可以在发送所述资源应答消息之后,向所述第一业务路由器的上一 跳业务路由器发送路由表更新消息, 所述路由表更新消息包含所述返回资源应 答消息的相邻业务路由器的地址, 以便于所述第一业务路由器的上一跳业务路 由器在接收到归属于第一业务路由器的新业务请求消息时, 将所述新业务请求 消息发送给所述返回资源应答消息的相邻业务路由器。
进一步地, 所述路由器包括发布信息更新单元 64 , 在发送所述资源应答消 息后,发布信息更新单元 64向业务目录发送发布信息更新消息, 所述发布信息 更新消息可以包含所述返回资源应答消息的相邻业务路由器的地址。进一步地, 所述发布信息更新单元 64可以设置发布信息更新消息的有效时间。
其中, 本发明实施例所涉及的具体工作过程, 可以参考上述各个实施例的 相关内容, 在此不再赘述。
本发明是实例中, 第一业务路由器确定自身没有足够资源处理接收到的业 务请求消息, 则向第一业务路由器的相邻业务路由器发送资源请求消息。 然后 相邻业务路由器确定有资源处理该业务请求消息时, 则向第一业务路由器返回 资源应答消息, 接收第一业务路由器发送的资源部署消息和业务请求消息, 由 返回资源应答消息的相邻业务路由器处理该业务请求。 这样使得第一业务路由 器在业务量突增或持续增加的情况下, 仍能保证第一业务路由器不会过载, 并 且不会导致局部业务路由器不可用, 保证业务交互的便捷高效。
本发明实施例的一种业务路由的系统, 如图 7所示, 具体包括: 第一业务 路由器 71和至少一个第二业务路由器 72, 其中第二业务路由器 72为第一业务 路由器 71的相邻业务路由器。
第一业务路由器 71 , 用于接收业务请求消息, 确定所述业务请求消息对应 的业务状态为新业务请求, 且自身没有资源处理所述业务请求消息, 则向第一 业务路由器的相邻业务路由器第二业务路由器 72发送资源请求消息,接收有资 源处理所述业务请求消息的相邻业务路由器第二业务路由器 72 根据所述资源 请求消息返回的资源应答消息, 向所述返回资源应答消息的相邻业务路由器第 二业务路由器 72发送资源部署消息和所述业务请求消息。
第二业务路由器 72 , 用于接收第一业务路由器发送的资源请求消息, 确定 自身有资源处理业务请求消息, 向所述第一业务路由器 71发送资源应答消息, 接收第一业务路由器 71发送的资源部署消息和业务请求消息, 处理所述业务请 求消息。
本实施例的系统也可以进一步包括上一跳业务路由器和业务目录, 当然, 本发明系统实施例的相关描述可以参照上述业务路由器实施例的相关描述, 在 此不再赘述。
本发明实施例提供防止业务路由的系统中, 第一业务路由器确定自身没有 足够资源处理接收到的业务请求消息, 则向第一业务路由器的相邻业务路由器 发送资源请求消息。然后在相邻业务路由器确定有资源处理该业务请求消息时, 则向第一业务路由器返回资源应答消息, 则第一业务路由器接收资源应答消息 后, 向返回资源应答消息的业务路由器发送资源部署消息和业务请求消息, 由 返回资源应答消息的业务路由器处理该业务请求。 这样使得第一业务路由器在 业务量突增或持续增加的情况下, 仍能保证业务路由器不会过载, 并且不会导 致局部业务路由器不可用, 保证业务交互的便捷高效。
通过以上实施例的描述, 本领域的技术人员可以清楚地了解到本发明可借 助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件, 但很多情 况下前者是更佳的实施方式。 基于这样的理解, 本发明实施例的技术方案本质 上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该软件 产品存储在一个存储介质中, 包括若干指令用以使得移动设备(可以是手机, 个人计算机, 媒体播放器等)执行本发明各个实施例所述的方法。 这里所称的 存储介质, 如: R0M/RAM、 磁盘、 光盘等。 明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权利要求及 其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。

Claims

权 利 要 求 书
1、 一种防止业务路由器过载的方法, 其特征在于, 包括:
第一业务路由器接收业务请求消息;
确定所述业务请求消息为新业务请求, 且自身没有资源处理所述业务请求 消息, 则向第一业务路由器的相邻业务路由器发送资源请求消息;
接收有资源处理所述业务请求消息的相邻业务路由器根据所述资源请求消 息返回的资源应答消息;
向所述返回资源应答消息的相邻业务路由器发送资源部署消息和所述业务 请求消息, 以便所述返回资源应答消息的相邻业务路由器处理所述业务请求消 息。
2、 如权利要求 1所述方法, 其特征在于, 所述确定所述业务请求消息为新 业务请求, 且自身没有资源处理所述业务请求消息具体包括:
第一业务路由器确定所述业务请求消息的业务状态为新业务请求, 检查自 身已使用资源的值和获取所述业务请求消息对应的业务需占用资源的值;
确定所述业务请求消息对应的业务需占用资源的值与所述自身已使用资源 的值之和高于或等于预设阔值。
3、 如权利要求 1所述方法, 其特征在于, 所述资源部署消息还包含有效时 间;
所述以便所述返回资源应答消息的相邻业务路由器处理所述业务请求消 息, 具体包括:
所述返回资源应答消息的相邻业务路由器在所述有效时间内处理所述业务 请求消息。
4、 如权利要求 1所述方法, 其特征在于, 还包括: 所述向所述返回资源应 答消息的相邻业务路由器发送资源部署消息和所述业务请求消息 , 具体包括: 将所述业务请求消息合并在所述资源部署消息中向所述返回资源应答消息 的相邻业务路由器发送, 或者;
将所述业务请求消息和所述资源部署消息分别发送给所述返回资源应答消 息的相邻业务路由器。
5、 如权利要求 1所述方法, 其特征在于, 还包括: 所述第一业务路由器接 收所述资源应答消息后设置中转策略, 后续接收到归属于第一业务路由器的所 述新业务请求消息时, 则根据所述中转策略将所述新业务请求消息转发给所述 返回资源应答消息的相邻业务路由器。
6、 如权利要求 5所述方法, 其特征在于, 所述中转策略包含有效时间; 所述根据所述中转策略将所述新业务请求消息转发到所述返回资源应答消 息的相邻业务路由器, 具体包括:
在所述中转策略的有效时间内, 将所述新业务请求消息转发给所述返回资 源应答消息的相邻业务路由器。
7、 如权利要求 1所述方法, 其特征在于, 还包括:
所述第一业务路由器接收资源应答消息后, 向所述第一业务路由器的相邻 业务路由器发送路由表更新消息, 所述路由表更新消息包含所述返回资源应答 消息的相邻业务路由器的地址, 以便于所述第一业务路由器的相邻业务路由器 在接收到归属于所述第一业务路由器的所述新业务请求消息时, 将所述新业务 请求消息发送给所述返回资源应答消息的相邻业务路由器。
8、 如权利要求 7所述方法, 其特征在于, 所述路由表更新消息包含有效时 间;
所述以便于所述第一业务路由器的相邻业务路由器在接收到归属于第一业 务路由器的所述新业务请求消息时, 将所述新业务请求消息发送给所述返回资 源应答消息的相邻业务路由器, 具体包括:
所述第一业务路由器的的相邻业务路由器在接收到归属于所述第一业务路 由器的新业务请求消息时, 在有效时间内将所述新业务请求消息发送给所述返 回资源应答消息的相邻业务路由器。
9、 一种防止业务路由器过载的方法, 其特征在于, 包括:
第一业务路由器的相邻业务路由器接收第一业务路由器发送的资源请求消 息, 其中, 所述资源请求消息是在所述第一业务路由器自身没有资源处理所述 业务请求消息, 且所述业务请求消息对应的业务状态为新业务请求时, 由所述 第一业务路由器发送的;
确定自身有资源处理业务请求消息,向第一业务路由器发送资源应答消息; 接收第一业务路由器发送的资源部署消息和业务请求消息, 处理所述业务 请求消息。
10、 如权利要求 9所述方法, 其特征在于, 所述返回资源应答消息的相邻 业务路由器确定有资源处理业务请求消息具体包括:
所述返回资源应答消息的相邻业务路由器获取所述资源请求消息对应的业 务需占用资源的值, 检查自身已使用资源的值;
确定所述资源请求消息对应的业务需占用资源的值与所述自身已使用资源 的值之和低于预设阔值。
11、 如权利要求 9所述方法, 其特征在于, 还包括:
所述资源部署消息还包含所述第一业务路由器的相邻业务路由器地址, 所 述返回资源应答消息的相邻业务路由器向所述第一业务路由器的相邻业务路由 器发送路由表更新消息, 所述路由表更新消息包含所述返回资源应答消息的相 邻业务路由器的地址, 以便于所述第一业务路由器的相邻业务路由器在接收到 归属于第一业务路由器的所述新业务请求时, 将所述新业务请求消息发送给所 述返回资源应答消息的相邻业务路由器。
12、 如权利要求 11所述方法, 其特征在于, 所述路由表更新消息包含有效 时间;
所述以便于所述第一业务路由器的相邻业务路由器在接收到归属于第一业 务路由器的所述新业务请求消息时, 将所述新业务请求消息发送给所述返回资 源应答消息的相邻业务路由器, 具体包括:
所述第一业务路由器的相邻业务路由器在接收到归属于第一业务路由器的 所述新业务请求消息时, 在有效时间内, 将所述新业务请求消息发送给所述返 回资源应答消息的相邻业务路由器。
13、 如权利要求 9所述方法, 其特征在于, 还包括: 所述返回资源应答消息的相邻业务路由器发送所述资源应答消息后, 向业 务目录发送发布信息更新消息, 所述发布信息更新消息包含所述返回资源应答 消息的相邻业务路由器的地址。
14、 如权利要求 1所述方法, 其特征在于, 还包括:
所述资源请求消息包含所述业务请求消息的所述第一业务路由器的上一跳 业务路由器的地址;
所述返回资源应答消息的相邻业务路由器在发送所述资源应答消息之后, 向所述第一业务路由器的上一跳业务路由器发送路由表更新消息, 所述路由表 更新消息包含所述返回资源应答消息的相邻业务路由器的地址, 以便于所述第 一业务路由器的上一跳业务路由器在接收到归属于第一业务路由器的所述新业 务请求消息时, 将所述新业务请求消息发送给所述返回资源应答消息的相邻业 务路由器。
15、 一种业务路由器, 其特征在于, 包括:
第一请求消息处理单元, 用于接收业务请求消息, 判断所述业务请求消息 对应的业务是新业务请求时, 向负载均衡处理单元发送所述业务请求消息; 第一负载均衡单元, 用于确定自身是否有资源处理所述业务请求消息, 向 业务部署单元发送确定的结果;
业务部署单元, 用于在所述负载均衡单元判断没有资源处理所述业务请求 消息时向所述业务路由器的相邻业务路由器发送资源请求消息, 接收所述有资 源处理所述业务请求消息的相邻业务路由器根据所述资源请求消息返回的资源 应答消息, 向所述返回资源应答消息的相邻业务路由器发送资源部署消息所述 业务请求消息, 以便于所述返回资源应答消息的相邻业务路由器处理所述业务 请求消息。
16、 如权利要求 15所述的业务路由器, 其特征在于, 还包括:
中转策略设置单元, 用于在所述业务部署单元接收所述资源应答消息后设 置中转策略, 后续接收到归属于所述业务路由器的所述新业务请求消息时, 则 根据所述中转策略将所述新业务请求消息转发给所述返回资源应答消息的相邻 业务路由器。
17、 如权利要求 15或 16所述的业务路由器, 其特征在于, 还包括: 第一路由表更新单元, 用于在所述业务路由器接收资源应答消息后, 向所 述业务路由器的相邻业务路由器发送路由表更新消息, 所述路由表更新消息包 含所述返回资源应答消息的相邻业务路由器的地址, 以便于所述业务路由器的 相邻业务路由器在接收到归属于所述业务路由器的所述新业务请求消息时, 将 所述新业务请求消息发送给所述返回资源应答消息的相邻业务路由器。
18、 一种业务路由器, 其特征在于, 包括:
第二请求消息处理单元, 用于接收第一业务路由器发送的资源请求消息, 在发送资源应答消息后接收所述第一业务路由器发送的资源部署消息和业务请 求消息, 处理所述业务请求消息, 其中, 所述资源请求消息是在所述第一业务 路由器自身没有资源处理所述业务请求消息, 且所述业务请求消息对应的业务 状态为新业务请求时, 所述第一业务路由器发送的;
第二负载均衡单元, 用于确定自身是否有资源处理业务请求消息, 且在有 资源处理所述业务请求消息时发送确认消息。
19、 一种业务路由的系统, 其特征在于, 包括第一业务路由器和至少一个 第二业务路由器, 其中, 所述第二业务路由器为所述第一业务路由器的相邻业 务路由器;
第一业务路由器, 用于接收业务请求消息, 确定所述业务请求消息对应的 业务状态为新业务请求, 且自身没有资源处理所述业务请求消息, 则向第一业 务路由器的相邻业务路由器发送资源请求消息, 接收有资源处理所述业务请求 消息的相邻业务路由器第二业务路由器根据所述资源请求消息返回的资源应答 消息, 向所述返回资源应答消息的第二业务路由器发送资源部署消息和所述业 务请求消息;
第二业务路由器, 用于接收第一业务路由器发送的资源请求消息, 确定自 身有资源处理业务请求消息, 向所述第一业务路由器发送资源应答消息; 接收 第一业务路由器发送的资源部署消息和业务请求消息,处理所述业务请求消息。
PCT/CN2009/076263 2009-03-31 2009-12-30 一种防止业务路由器过载的方法、装置及系统 WO2010111877A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910106427.9 2009-03-31
CN2009101064279A CN101854292B (zh) 2009-03-31 2009-03-31 一种实现防止业务路由器过载的方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2010111877A1 true WO2010111877A1 (zh) 2010-10-07

Family

ID=42805569

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/076263 WO2010111877A1 (zh) 2009-03-31 2009-12-30 一种防止业务路由器过载的方法、装置及系统

Country Status (2)

Country Link
CN (1) CN101854292B (zh)
WO (1) WO2010111877A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105978938A (zh) * 2016-04-25 2016-09-28 乐视控股(北京)有限公司 一种业务处理设备的业务状态确定方法及调度设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6430155B1 (en) * 1998-11-30 2002-08-06 Cisco Technology, Inc. Congestion avoidance on communications networks
CN1423879A (zh) * 2000-10-09 2003-06-11 西门子公司 一种在ip子网中用于拥塞控制的方法
CN1506860A (zh) * 2002-12-11 2004-06-23 中国科学院计算技术研究所 网络环境下的资源定位系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6430155B1 (en) * 1998-11-30 2002-08-06 Cisco Technology, Inc. Congestion avoidance on communications networks
CN1423879A (zh) * 2000-10-09 2003-06-11 西门子公司 一种在ip子网中用于拥塞控制的方法
CN1506860A (zh) * 2002-12-11 2004-06-23 中国科学院计算技术研究所 网络环境下的资源定位系统

Also Published As

Publication number Publication date
CN101854292A (zh) 2010-10-06
CN101854292B (zh) 2013-03-20

Similar Documents

Publication Publication Date Title
JP5323861B2 (ja) ネットワーク・リソースをプールするための方法および装置
CN110572377B (zh) 一种数据转发方法、插件和域名服务器
EP2426885B1 (en) Method, device and system for mobile virtual private network communication
WO2011044790A1 (zh) 信息通知方法、切换过程中数据报文的转发方法及an
WO2008003241A1 (fr) Procédé d'attribution d'adresse ip, serveur de protocole de configuration d'hôte dynamique et procédé de mise en relais pour l'attribution d'adresse ip
US9277356B2 (en) System and method for acquiring user location through user bearer identifier
WO2009089780A1 (fr) Procédé d'établissement d'une connexion de données dans un réseau mobile, réseau mobile et entité de contrôle de politique
KR20110113651A (ko) 로컬 교환을 구현하는 방법 및 시스템
WO2012065531A1 (zh) 实现中继选择的方法及装置、系统
WO2006050672A1 (fr) Procede de communication entre noeuds serveurs de prise en charge de services de radiotransmission par paquets generaux
AU2010231946B2 (en) A system and method operable to enable shortest connection route
WO2011032455A1 (zh) 切换管理及切换时用户数据管理的方法、系统和agr
WO2011032417A1 (zh) 发起通信、信息/数据报文的转发及路由配置方法和系统
WO2014059647A1 (zh) 一种数据域业务处理方法、装置及系统
US11909716B1 (en) Locator lookup-based, low-latency, multi-access IP mobility
US7768946B2 (en) Resource determination in IP-based networks
WO2012089032A1 (zh) 一种采用多种接入方式中的数据传输方法和接入设备
WO2013023465A1 (zh) 身份位置分离与传统网络互联互通方法、ilr和asr
WO2010111877A1 (zh) 一种防止业务路由器过载的方法、装置及系统
WO2011044791A1 (zh) 互通业务报文的发送方法以及接入支持节点
WO2011085636A1 (zh) 一种wcdma核心网及基于wcdma核心网的切换方法
JP2014505387A (ja) Id/ロケータ分離ネットワークのモニタリング方法及びシステム
WO2012088828A1 (zh) 表维护方法、系统和接入网关路由器
WO2011026355A1 (zh) 节点接入家乡代理的方法、家乡代理集群系统及业务路由器
JP4261395B2 (ja) サーバ装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09842533

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09842533

Country of ref document: EP

Kind code of ref document: A1