Method and apparatus for detecting access path
First Claim
1. A method for detecting an access path, comprising:
- in response to receiving an access request for a source website, selecting a plurality of preset paths as candidate paths according to an address of the source website;
wherein the plurality of preset paths comprise at least one of;
a directly transmitting path, a path transmitting via an inter-network node, or a path transmitting via a same-network node;
transmitting the access request to the source website along each of the candidate paths in sequence until a successful transmission is detected; and
in response to detecting the successful transmission, recording a successfully transmitting path as a default path for accessing the source website next time;
wherein in response to transmitting the access request along an indirectly transmitting path, adding a counter into an HTTP request header of the access request, wherein an initial value of the counter is a number of nodes comprised in the indirectly transmitting path, and one is subtracted from the counter every time one node is passed.
1 Assignment
0 Petitions
Accused Products
Abstract
The present disclosure discloses a method and an apparatus for detecting an access path. A specific implementation of the method includes: in response to receiving an access request for a source website, selecting a plurality of preset paths as candidate paths according to an address of the source website; transmitting the access request to the source website along each of the candidate paths in sequence until a successful transmission is detected; and in response to detecting the successful transmission, recording a successfully transmitting path as a default path for accessing the source website next time. This implementation implements dynamic adjustment of a website access path and maximizes a website access success ratio.
6 Citations
12 Claims
-
1. A method for detecting an access path, comprising:
-
in response to receiving an access request for a source website, selecting a plurality of preset paths as candidate paths according to an address of the source website;
wherein the plurality of preset paths comprise at least one of;
a directly transmitting path, a path transmitting via an inter-network node, or a path transmitting via a same-network node;transmitting the access request to the source website along each of the candidate paths in sequence until a successful transmission is detected; and in response to detecting the successful transmission, recording a successfully transmitting path as a default path for accessing the source website next time; wherein in response to transmitting the access request along an indirectly transmitting path, adding a counter into an HTTP request header of the access request, wherein an initial value of the counter is a number of nodes comprised in the indirectly transmitting path, and one is subtracted from the counter every time one node is passed. - View Dependent Claims (2, 3, 4)
-
-
5. A device, comprising:
-
a processor; and a memory, the memory storing computer-readable instructions, which when executed by the processor, cause the processor to perform operations, the operations comprising; in response to receiving an access request for a source website, selecting a plurality of preset paths as candidate paths according to an address of the source website;
wherein the plurality of preset paths comprise at least one of;
a directly transmitting path, a path transmitting via an inter-network node, or a path transmitting via a same-network node;transmitting the access request to the source website along each of the candidate paths in sequence until a successful transmission is detected; and in response to detecting the successful transmission, recording a successfully transmitting path as a default path for accessing the source website next time; wherein in response to transmitting the access request along an indirectly transmitting path, adding a counter into an HTTP request header of the access request, wherein an initial value of the counter is a number of nodes comprised in the indirectly transmitting path, and one is subtracted from the counter every time one node is passed. - View Dependent Claims (6, 7, 8)
-
-
9. A non-transitory computer storage medium, storing computer-readable instructions, which when executed by a processor, cause the processor to perform operations, the operations comprising:
-
in response to receiving an access request for a source website, selecting a plurality of preset paths as candidate paths according to an address of the source website;
wherein the plurality of preset paths comprise at least one of;
a directly transmitting path, a path transmitting via an inter-network node, or a path transmitting via a same-network node;transmitting the access request to the source website along each of the candidate paths in sequence until a successful transmission is detected; and in response to detecting the successful transmission, recording a successfully transmitting path as a default path for accessing the source website next time; wherein in response to transmitting the access request along an indirectly transmitting path, adding a counter into an HTTP request header of the access request, wherein an initial value of the counter is a number of nodes comprised in the indirectly transmitting path, and one is subtracted from the counter every time one node is passed. - View Dependent Claims (10, 11, 12)
-
Specification