Method and apparatus for transmitting packets in the network
First Claim
1. A method for processing data download messages in a peer-to-peer network using a network device comprising:
- receiving, at a network device, a data download request message from a download requester, the data download request message comprising a download requester identifier, a download provider identifier and a first data segment identifier;
determining whether a first data segment corresponding to the first data segment identifier is stored in a segment table in a storage unit of the network device; and
if the first data segment is stored in the segment table, with the network device, sending the download requester a response message comprising the first data segment corresponding to the first data segment identifier, and not forwarding the download request to the download provider;
in which, if the first data segment is not stored in the segment table, forwarding, with the network device, the download request to the download provider.
4 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides a method and apparatus for packet transmission in the network. When the network device receives data packets from the first user, the network device extracts and saves the data encapsulated in the data packets and then forwards the packets according to the destination addresses of the data packets. When it receives the request from a second user for the data mentioned above, it encapsulates the saved data in data packets and sends the data packets to the second user. With the present invention deployed, the uploaded data packets are saved on network devices and can be directly transmitted to users requesting them. In this way, the present invention avoids repeated traffic upload, reduces upload traffic in the network, decreases network bandwidth occupied by traffic, and thus improves the overall network performance.
-
Citations
27 Claims
-
1. A method for processing data download messages in a peer-to-peer network using a network device comprising:
-
receiving, at a network device, a data download request message from a download requester, the data download request message comprising a download requester identifier, a download provider identifier and a first data segment identifier; determining whether a first data segment corresponding to the first data segment identifier is stored in a segment table in a storage unit of the network device; and if the first data segment is stored in the segment table, with the network device, sending the download requester a response message comprising the first data segment corresponding to the first data segment identifier, and not forwarding the download request to the download provider; in which, if the first data segment is not stored in the segment table, forwarding, with the network device, the download request to the download provider. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. An apparatus for processing data download messages in a peer-to-peer network comprising:
-
a storage unit to store a segment table, in which the segment table comprises a number of data segment identifiers, a number of data segments each corresponding to one data segment identifier from the data segment identifiers, and a mapping between the data segment identifiers and the data segments; a processing unit to; receive a data download request message from a download requester, the data download request message comprising a download requester identifier, a download provider identifier, and a first data segment identifier, determine whether a first data segment corresponding to the first data segment identifier is stored in the segment table stored in the storage unit; and if the first data segment is stored in the segment table, send a first response message comprising the download requester identifier, the download provider identifier, the first data segment identifier, and the first data segment to the data requester, and not forward the download request to a download provider. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
-
-
25. A method for processing packet transmission on a network device comprising:
-
receiving, at a network device, a data packet from a first user across a network, the data packet comprising a destination address and encapsulated data, the encapsulated data comprising a first data segment; extracting the encapsulated data from the data packet; storing the first data segment in a storage unit on the network device; forwarding the data packet to a destination based on the destination address using one or more communication protocols; receiving, at the network device, a data download request message from a download requester, the data download request message comprising a download requester identifier, and a data segment identifier; if the data identifier identifies the first data segment stored in the storage unit on the network device, sending the download requester a response message comprising the first data segment corresponding to the data identifier, and not forwarding the download request to the first user; receiving, at the network device, a data download response message from the first user, the data download response message comprising the download requester identifier, the download provider identifier, a subsequent data segment identifier, and a subsequent data segment corresponding to the subsequent data segment identifier; determining whether the subsequent data segment is stored in the segment table; storing the subsequent segment identifier and the subsequent data segment in the segment table if the segment table does not contain the subsequent data segment; and forwarding the data download response message to the download requester corresponding to the download requester identifier.
-
-
26. A network device that forwards a data packet across a network comprising:
-
a data processing module to extract data from a data packet sent from a download provider and forward the data packet based on a destination address, in which the data packet includes the destination address and comprises a first data segment; and a monitoring module to monitor a plurality of data requests received by the network device from a number of users, the data requests comprising a download requester identifier, and a first data segment identifier, access data saved in a storage unit, encapsulate the first data segment into the data packet, and send the data packet to the users, and not forward the download requests to the download provider, in which the data processing module receives, at the network device, a data download response message from the download provider, the data download response message comprising the download requester identifier, the download provider identifier, a subsequent data segment identifier, and a subsequent data segment; determines whether the subsequent data segment is stored in the segment table; and stores the subsequent data segment into the segment table if the segment table does not contain the subsequent data segment.
-
-
27. A method for processing data download messages in a network comprising:
-
receiving a download response message comprising a data segment by an access device located at an edge of the network, from a core-edge direction to a first client, in which the access device provides access service for at least two clients; determining whether the data segment is cached in a storage unit of the access device; caching the data segment in the storage unit of the access device if the data segment is not cached in the storage unit of the access device; receiving a download request message from a second client from an edge-core direction to a core of the network, the download request message comprising a data segment identifier; determining whether the data segment corresponding to the data segment identifier is cached in the storage unit of the access device; if the first data segment is stored in the segment table, forwarding a download response message to the second client, the download response message comprising the data segment corresponding to the data segment identifier, and not forwarding the download request message to an intended recipient of the download request message.
-
Specification