Managing network packet flows based on device information
Methods and apparatus are disclosed that enable information about devices connected behind a gateway, such as a home gateway, to be made available to and used by other entities, such as servers and routers, on a communications network.
1. A method, comprising:
receiving, by a gateway of a communications network, from a device configured to communicate with the gateway, one or more packets of a packet flow initiated by the device;
determining at least one of the one or more packets comprise a Transmission Control Protocol synchronization (TCP/SYN) packet;
appending, based on the determining and to the one or more of the packets of the packet flow, at least a portion of information associated with the device, wherein the information associated with the device is maintained by the gateway and comprises at least an identifier associated with the device; and
sending, by the gateway, to a network device of the communications network, the one or more packets of the packet flow with the appended information, wherein the appended information facilitates enforcement of a per-device policy.
2. The method of claim 1 , wherein the information associated with the device further comprises one or more of a media access control (MAC) address of the device, a hostname associated with the device, and an identifier associated with the packet flow received from the device.
3. The method of claim 1 , wherein the information associated with the device further comprises a Hypertext Transfer Protocol (HTTP) header of at least one of the packets of the packet flow.
4. The method of claim 1 , wherein the information associated with the device further comprises a source IP address associated with the packet flow.
5. The method of claim 1 , wherein the appending comprises inserting the at least a portion of the information in the TCP/SYN packet of the packet flow.
6. The method of claim 5 , wherein inserting the at least a portion of the information in the TCP/SYN packet comprises inserting the at least a portion of the information in a Network Service Header (NSH) of the TCP/SYN packet.
7. The method of claim 1 , wherein the per-device policy comprises a rate-limit policy, an application control policy, a web domain filter, or a combination thereof.
8. A method, comprising:
receiving, by a gateway of a communications network, from a device configured to communicate with the gateway, one or more packets of a packet flow initiated by the device;
determining a profile associated with the device comprises updated profile information, wherein the profile associated with the device is maintained by the gateway and comprises at least an identifier associated with the device;
appending, based on the determining and to one or more of the packets of the packet flow, at least a portion of information associated with the device; and
sending, by the gateway, to a network device of the communications network, the one or more packets of the packet flow with the appended information, wherein the appended information facilitates enforcement of a per-device policy.
9. The method of claim 8 , wherein the information associated with the device further comprises one or more of a media access control (MAC) address of the device, a hostname associated with the device, and an identifier associated with the packet flow received from the device.
10. The method of claim 8 , wherein the information associated with the device further comprises a Hypertext Transfer Protocol (HTTP) header of at least one of the packets of the packet flow.
11. The method of claim 8 , wherein the information associated with the device further comprises a source IP address associated with the packet flow.
12. The method of claim 8 , wherein the appending comprises inserting the at least a portion of the information in a Transmission Control Protocol synchronization (TCP/SYN) packet of the packet flow.
13. The method of claim 12 , wherein inserting the at least a portion of the information in the TCP/SYN packet comprises inserting the at least a portion of the information in a Network Service Header (NSH) of the TCP/SYN packet.
14. The method of claim 8 , wherein the per-device policy comprises a rate-limit policy, an application control policy, a web domain filter, or a combination thereof.
15. A method, comprising:
receiving, by a gateway of a communications network, from a device configured to communicate with the gateway, data indicative of an initiation of a communication session of the device;
embedding, to one or more data packets corresponding to the communication session, at least a portion of information associated with the device, wherein the information associated with the device is maintained by the gateway and comprises at least an identifier associated with the device; and
sending, by the gateway, to a network device of the communications network, the one or more data packets with the embedded information, wherein the embedded information facilitates enforcement of a per-device policy.
16. The method of claim 15 , wherein the information associated with the device further comprises one or more of a media access control (MAC) address of the device, a hostname associated with the device, and an identifier associated with the one or more data packets received from the device.
17. The method of claim 15 , wherein the information associated with the device further comprises a Hypertext Transfer Protocol (HTTP) header of at least one of the one or more data packets.
18. The method of claim 15 , wherein the information associated with the device further comprises a source IP address associated with the one or more data packets.
19. The method of claim 15 , wherein the embedding comprises inserting the at least a portion of the information in a Transmission Control Protocol synchronization (TCP/SYN) packet of the one or more data packets.
20. The method of claim 19 , wherein inserting the at least a portion of the information in the TCP/SYN packet comprises inserting the at least a portion of the information in a Network Service Header (NSH) of the TCP/SYN packet.