Routing entry obtaining method and apparatus, and device
Abstract
A routing entry obtaining method and apparatus applied to a network device and includes obtaining an identifier of an application program, a computing capability of a first apparatus running the application program, and a computing capability of a second apparatus running the application program; and obtaining a routing entry based on the identifier of the application program, the computing capability of the first apparatus, and the computing capability of the second apparatus, wherein the routing entry comprises the identifier of the application program and an egress port, where the egress port is capable of communicating with a target apparatus determined according to the computing capability of the first apparatus and the computing capability of the second apparatus.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 33 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method implemented by a network device, wherein the method comprises: receiving, by the network device and from a first apparatus running an application program, a first Border Gateway Protocol (BGP) packet comprising a first computing capability of the first apparatus and an identifier of the application program; receiving, by the network device and from a second apparatus running the application program, a second BGP packet comprising a second computing capability of the second apparatus and the identifier of the application program; selecting, according to the identifier of the application program, the first computing capability, and the second computing capability, at least one of the first apparatus or the second apparatus as a target apparatus by selecting, based on a comparison of the first computing capability and the second computing capability to a computing capability threshold, the at least one of the first apparatus or the second apparatus as the target apparatus, wherei
- Claim 2Depends on #1
The method of claim 1, further comprising receiving, from a virtual router, a third packet comprising the identifier of the application program, the first computing capability, and the second computing capability.
- Claim 3Depends on #2
The method of claim 2, wherein the third packet is a third BGP packet.
- Claim 4Depends on #1
The method of claim 1, further comprising receiving, from a terminal device, a fourth packet comprising the identifier of the application program, wherein identifying the egress port comprises obtaining, based on the identifier of the application program and a routing entry, the egress port, and wherein the method further comprises sending the fourth packet through the egress port.
- Claim 5Depends on #1
The method of claim 1, wherein selecting the at least one of the first apparatus or the second apparatus as the target apparatus comprises selecting, based on the first computing capability or the second computing capability meeting a preset condition, the at least one of the first apparatus or the second apparatus as the target apparatus.
- Claim 6Depends on #5
The method of claim 5, further comprising: receiving a routing entry that comprises a network performance of the path; obtaining the network performance; and identifying, based on the network performance, the next-hop device.
- Claim 7Depends on #6
The method of claim 6, further comprising receiving, from a terminal device, a fifth packet comprising the identifier of the application program and a network performance requirement of the application program, wherein selecting the at least one of the first apparatus or the second apparatus as the target apparatus comprises selecting, based on the identifier of the application program, the network performance matching the network performance requirement, and the routing entry, the at least one of the first apparatus or the second apparatus as the target apparatus, and wherein the method further comprises sending the fifth packet through the egress port.
- Claim 8Depends on #1
The method of claim 1, further comprising obtaining a routing entry comprising a weight value identifying a probability of sending a sixth packet to the target apparatus through the egress port.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This is a continuation of International Patent Application No. PCT/CN2020/106496 filed on Aug. 3, 2020, which claims priority to Chinese Patent Application No. 201910713391.4 filed on Aug. 2, 2019. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD This application relates to the network field, and in particular, to a routing entry obtaining method and apparatus, and a device. BACKGROUND An application program (APP), which is also referred to as application software (APP), is a computer program designated to carry out one or more specific tasks, and usually needs to interact with a user. The application program usually includes a client and a server side. The client is installed in a terminal device, and is configured to interact with the user. The server side is installed in a server, and is configured to respond to a request from the client, deliver software update content to the client, and the like. In an existing technology, to enhance a computing capability of an application program, a plurality of instances of a server side of a same application program may be deployed in different apparatuses, and each apparatus may run one or more application program instances. Apparatuses running different application program instances of the same application program may have different computing capabilities. Because a computing capability of an apparatus directly affects user experience of a client of an application program, it is quite important to select an apparatus with an appropriate computing capability to respond to a request from the client of the application program. SUMMARY Embodiments of this application provide a routing entry obtaining method and apparatus, to provide a user with an apparatus with an appropriate computing capability to interact with a terminal device. According to a first aspect, an embodiment of this application provides a routin
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.