Network communication method and apparatus
AssigneeAlibaba Group Holding Limited
InventorZhuo Song
Life of this patent
Estimating the term…
Abstract
The present application discloses a network communication method and apparatus. The method includes: receiving and parsing a packet so as to acquire a destination host Internet Protocol address; performing a single query on a route-neighbor table according to the destination host Internet Protocol address so as to acquire a physical address and a route type of a next hop route; and sending the packet according to the physical address and the route type. The present application simplifies an entire three-layer encapsulation processing process, and reduces occupancy of resources.
Claims28
A network communication method, comprising:
- receiving and parsing a packet so as to acquire a destination host Internet Protocol address;
- performing a single query on a route-neighbor table according to the destination host Internet Protocol address so as to acquire a physical address and a route type of a next hop route, wherein the route type comprises a local area network, wherein if a number of hosts in the local area network is countable, then the route-neighbor table stores Internet Protocol addresses, physical addresses, route information, and route types, wherein the route-neighbor table is a data structure that combines a routing table and a neighbor table into one table, and wherein information of the routing table and the neighbor table is stored in one data structure;
- and
- sending the packet according to the physical address and the route type.
A network communication method, comprising:
- receiving and parsing a packet so as to acquire a destination host Internet Protocol address;
- determining whether a route-neighbor table is enabled, and if so, then performing a single query on the route-neighbor table so as to acquire a physical address and a route type of a next hop route, wherein the route type comprises a local area network, wherein if a number of hosts in the local area network is countable, then the route-neighbor table stores Internet Protocol addresses, physical addresses, route information, and route types, wherein the route-neighbor table is a data structure that combines a routing table and a neighbor table into one table, and wherein information of the routing table and the neighbor table is stored in one data structure;
- and
- sending the packet according to the physical address and the route type.
A network communication method, comprising:
- receiving and parsing a packet so as to acquire a destination host Internet Protocol address;
- determining whether a route-neighbor table is enabled;
- if so, then performing a single query on the route-neighbor table, and if a physical address of a next hop route is not found, then performing a next step, wherein the route-neighbor table comprises a route type, wherein the route type comprises a local area network, wherein if a number of hosts in the local area network is countable, then the route-neighbor table stores Internet Protocol addresses, physical addresses, route information, and route types, wherein the route-neighbor table is a data structure that combines a routing table and a neighbor table into one table, and wherein information of the routing table and the neighbor table is stored in one data structure;
- acquiring an Internet Protocol address of the next hop route by means of a route matching algorithm;
- acquiring the physical address of the next hop route according to the Internet Protocol address of the next hop route;
- and
- updating the physical address of the next hop route to the route-neighbor table, and sending the packet to the physical address.
A network communication method, comprising:
- receiving and parsing a packet so as to acquire a destination host Internet Protocol address;
- determining whether a route-neighbor table is enabled, and if not, then querying a routing table according to the destination host Internet Protocol address so as to acquire an Internet Protocol address of a next hop route, wherein the route-neighbor table comprises a route type, wherein the route type comprises a local area network, wherein if a number of hosts in the local area network is countable, then the route-neighbor table stores Internet Protocol addresses, physical addresses, route information, and route types, wherein the route-neighbor table is a data structure that combines a routing table and a neighbor table into one table, and wherein information of the routing table and the neighbor table is stored in one data structure;
- querying a neighbor table according to the Internet Protocol address of the next hop route so as to acquire a physical address of the next hop route;
- and
- sending the packet to the physical address.
A network communication method, comprising:
- verifying whether a destination host Internet Protocol address is a local address;
- if so, then receiving a packet, and
- sending the packet to a target application according to a packet port number;
- and
- if not, then when a forwarding function is enabled, performing a single query on a route-neighbor table so as to acquire a router physical address, wherein the route-neighbor table comprises a route type, wherein the route type comprises a local area network, wherein if a number of hosts in the local area network is countable, then the route-neighbor table stores Internet Protocol addresses, physical addresses, route information, and route types, wherein the route-neighbor table is a data structure that combines a routing table and a neighbor table into one table, and wherein information of the routing table and the neighbor table is stored in one data structure, replacing a physical address of a received packet with the router physical address, and forwarding the received packet to the router physical address.
A network communication apparatus, comprising:
- a parsing unit configured to receive and parse a packet so as to acquire a destination host Internet Protocol address;
- a query unit configured to perform a single query on a route-neighbor table according to the destination host Internet Protocol address so as to acquire a physical address and a route type of a next hop route, wherein the route type comprises a local area network, wherein if a number of hosts in the local area network is countable, then the route-neighbor table stores Internet Protocol addresses, physical addresses, route information, and route types, wherein the route-neighbor table is a data structure that combines a routing table and a neighbor table into one table, and wherein information of the routing table and the neighbor table is stored in one data structure;
- and
- a packet sending unit configured to send the packet according to the physical address and the route type.
A network communication apparatus, comprising:
- a parsing unit configured to receive and parse a packet so as to acquire a destination host Internet Protocol address;
- a determination unit configured to determine whether a route-neighbor table is enabled;
- a query unit configured to, when the route-neighbor table is enabled, perform a single query on the route-neighbor table so as to acquire a physical address and a route type of a next hop route, wherein the route type comprises a local area network, wherein if a number of hosts in the local area network is countable, then the route-neighbor table stores Internet Protocol addresses, physical addresses, route information, and route types, wherein the route-neighbor table is a data structure that combines a routing table and a neighbor table into one table, and wherein information of the routing table and the neighbor table is stored in one data structure;
- and
- a packet sending unit configured to send the packet according to the physical address and the route type.
Dependencies are inferred from the claim text.